digital-ide/resources/dide-doc/view/js/chunk-vendors.bfc2ce54.js

71 lines
2.5 MiB
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(self["webpackChunkdigital_codedoc_render"]=self["webpackChunkdigital_codedoc_render"]||[]).push([[504],{4188:function(){},2457:function(e,t){"use strict";t.Jf=t.dz=void 0;var n=/^([^\w]*)(javascript|data|vbscript)/im,r=/&#(\w+)(^\w|;)?/g,a=/&(newline|tab);/gi,i=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,o=/^.+(:|&colon;)/gim,s=[".","/"];function l(e){return s.indexOf(e[0])>-1}function c(e){var t=e.replace(i,"");return t.replace(r,(function(e,t){return String.fromCharCode(t)}))}function u(e){if(!e)return t.dz;var r=c(e).replace(a,"").replace(i,"").trim();if(!r)return t.dz;if(l(r))return r;var s=r.match(o);if(!s)return r;var u=s[0];return n.test(u)?t.dz:r}t.dz="about:blank",t.Jf=u},1513:function(e,t,n){"use strict";n.d(t,{q:function(){return O}});n(4114);function r(e,t){i(e)&&(e="100%");var n=o(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t)),e)}function a(e){return Math.min(1,Math.max(0,e))}function i(e){return"string"===typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)}function o(e){return"string"===typeof e&&-1!==e.indexOf("%")}function s(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function l(e){return e<=1?"".concat(100*Number(e),"%"):e}function c(e){return 1===e.length?"0"+e:String(e)}function u(e,t,n){return{r:255*r(e,255),g:255*r(t,255),b:255*r(n,255)}}function d(e,t,n){e=r(e,255),t=r(t,255),n=r(n,255);var a=Math.max(e,t,n),i=Math.min(e,t,n),o=0,s=0,l=(a+i)/2;if(a===i)s=0,o=0;else{var c=a-i;switch(s=l>.5?c/(2-a-i):c/(a+i),a){case e:o=(t-n)/c+(t<n?6:0);break;case t:o=(n-e)/c+2;break;case n:o=(e-t)/c+4;break;default:break}o/=6}return{h:o,s:s,l:l}}function h(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function p(e,t,n){var a,i,o;if(e=r(e,360),t=r(t,100),n=r(n,100),0===t)i=n,o=n,a=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;a=h(l,s,e+1/3),i=h(l,s,e),o=h(l,s,e-1/3)}return{r:255*a,g:255*i,b:255*o}}function f(e,t,n){e=r(e,255),t=r(t,255),n=r(n,255);var a=Math.max(e,t,n),i=Math.min(e,t,n),o=0,s=a,l=a-i,c=0===a?0:l/a;if(a===i)o=0;else{switch(a){case e:o=(t-n)/l+(t<n?6:0);break;case t:o=(n-e)/l+2;break;case n:o=(e-t)/l+4;break;default:break}o/=6}return{h:o,s:c,v:s}}function m(e,t,n){e=6*r(e,360),t=r(t,100),n=r(n,100);var a=Math.floor(e),i=e-a,o=n*(1-t),s=n*(1-i*t),l=n*(1-(1-i)*t),c=a%6,u=[n,s,o,o,l,n][c],d=[l,n,n,s,o,o][c],h=[o,o,l,n,n,s][c];return{r:255*u,g:255*d,b:255*h}}function g(e,t,n,r){var a=[c(Math.round(e).toString(16)),c(Math.round(t).toString(16)),c(Math.round(n).toString(16))];return r&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function v(e,t,n,r,a){var i=[c(Math.round(e).toString(16)),c(Math.round(t).toString(16)),c(Math.round(n).toString(16)),c(y(r))];return a&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function y(e){return Math.round(255*parseFloat(e)).toString(16)}function b(e){return w(e)/255}function w(e){return parseInt(e,16)}function x(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}var k={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function _(e){var t={r:0,g:0,b:0},n=1,r=null,a=null,i=null,o=!1,c=!1;return"string"===typeof e&&(e=M(e)),"object"===typeof e&&(L(e.r)&&L(e.g)&&L(e.b)?(t=u(e.r,e.g,e.b),o=!0,c="%"===String(e.r).substr(-1)?"prgb":"rgb"):L(e.h)&&L(e.s)&&L(e.v)?(r=l(e.s),a=l(e.v),t=m(e.h,r,a),o=!0,c="hsv"):L(e.h)&&L(e.s)&&L(e.l)&&(r=l(e.s),i=l(e.l),t=p(e.h,r,i),o=!0,c="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=s(n),{ok:o,format:e.format||c,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var C="[-\\+]?\\d+%?",E="[-\\+]?\\d*\\.\\d+%?",R="(?:".concat(E,")|(?:").concat(C,")"),S="[\\s|\\(]+(".concat(R,")[,|\\s]+(").concat(R,")[,|\\s]+(").concat(R,")\\s*\\)?"),A="[\\s|\\(]+(".concat(R,")[,|\\s]+(").concat(R,")[,|\\s]+(").concat(R,")[,|\\s]+(").concat(R,")\\s*\\)?"),T={CSS_UNIT:new RegExp(R),rgb:new RegExp("rgb"+S),rgba:new RegExp("rgba"+A),hsl:new RegExp("hsl"+S),hsla:new RegExp("hsla"+A),hsv:new RegExp("hsv"+S),hsva:new RegExp("hsva"+A),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function M(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if(k[e])e=k[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=T.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=T.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=T.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=T.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=T.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=T.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=T.hex8.exec(e),n?{r:w(n[1]),g:w(n[2]),b:w(n[3]),a:b(n[4]),format:t?"name":"hex8"}:(n=T.hex6.exec(e),n?{r:w(n[1]),g:w(n[2]),b:w(n[3]),format:t?"name":"hex"}:(n=T.hex4.exec(e),n?{r:w(n[1]+n[1]),g:w(n[2]+n[2]),b:w(n[3]+n[3]),a:b(n[4]+n[4]),format:t?"name":"hex8"}:(n=T.hex3.exec(e),!!n&&{r:w(n[1]+n[1]),g:w(n[2]+n[2]),b:w(n[3]+n[3]),format:t?"name":"hex"})))))))))}function L(e){return Boolean(T.CSS_UNIT.exec(String(e)))}var O=function(){function e(t,n){var r;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"===typeof t&&(t=x(t)),this.originalInput=t;var a=_(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(r=n.format)&&void 0!==r?r:a.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e,t,n,r=this.toRgb(),a=r.r/255,i=r.g/255,o=r.b/255;return e=a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4),t=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4),n=o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4),.2126*e+.7152*t+.0722*n},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=s(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var e=this.toHsl().s;return 0===e},e.prototype.toHsv=function(){var e=f(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=f(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=d(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=d(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),g(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),v(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*r(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*r(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+g(this.r,this.g,this.b,!1),t=0,n=Object.entries(k);t<n.length;t++){var r=n[t],a=r[0],i=r[1];if(e===i)return a}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!==e&&void 0!==e?e:this.format;var n=!1,r=this.a<1&&this.a>=0,a=!t&&r&&(e.startsWith("hex")||"name"===e);return a?"name"===e&&0===this.a?this.toName():this.toRgbString():("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=a(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=a(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=a(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=a(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),a=new e(t).toRgb(),i=n/100,o={r:(a.r-r.r)*i+r.r,g:(a.g-r.g)*i+r.g,b:(a.b-r.b)*i+r.b,a:(a.a-r.a)*i+r.a};return new e(o)},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),a=360/n,i=[this];for(r.h=(r.h-(a*t>>1)+720)%360;--t;)r.h=(r.h+a)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);var n=this.toHsv(),r=n.h,a=n.s,i=n.v,o=[],s=1/t;while(t--)o.push(new e({h:r,s:a,v:i})),i=(i+s)%1;return o},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),a=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/a,g:(n.g*n.a+r.g*r.a*(1-n.a))/a,b:(n.b*n.a+r.b*r.a*(1-n.a))/a,a:a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,a=[this],i=360/t,o=1;o<t;o++)a.push(new e({h:(r+o*i)%360,s:n.s,l:n.l}));return a},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}()},144:function(e,t,n){"use strict";n.d(t,{C4:function(){return R},EW:function(){return qe},Gc:function(){return we},IG:function(){return Ae},IJ:function(){return Ie},KR:function(){return Oe},Kh:function(){return be},Pr:function(){return $e},QW:function(){return We},R1:function(){return De},X2:function(){return d},bl:function(){return S},fE:function(){return Ee},g8:function(){return _e},hV:function(){return Je},hZ:function(){return $},i9:function(){return Le},jr:function(){return c},ju:function(){return Re},lJ:function(){return Te},lW:function(){return Ue},o5:function(){return l},qA:function(){return W},rY:function(){return ze},tB:function(){return xe},u4:function(){return F},uY:function(){return s},ux:function(){return Se},wB:function(){return Ze},yC:function(){return o}});n(4114),n(9678),n(7145),n(1658),n(9479),n(7642),n(8004),n(3853),n(5876),n(2475),n(5024),n(1698),n(8992),n(4520),n(3949),n(1454),n(7550);var r=n(4232);let a,i;class o{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=a,!e&&a&&(this.index=(a.scopes||(a.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){let e,t;if(this._isPaused=!0,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){let e,t;if(this._isPaused=!1,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){const t=a;try{return a=this,e()}finally{a=t}}else 0}on(){a=this}off(){a=this.parent}stop(e){if(this._active){let t,n;for(this._active=!1,t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}}function s(e){return new o(e)}function l(){return a}function c(e,t=!1){a&&a.cleanups.push(e)}const u=new WeakSet;class d{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,a&&a.active&&a.effects.push(this)}pause(){this.flags|=64}resume(){64&this.flags&&(this.flags&=-65,u.has(this)&&(u.delete(this),this.trigger()))}notify(){2&this.flags&&!(32&this.flags)||8&this.flags||m(this)}run(){if(!(1&this.flags))return this.fn();this.flags|=2,A(this),y(this);const e=i,t=C;i=this,C=!0;try{return this.fn()}finally{0,b(this),i=e,C=t,this.flags&=-3}}stop(){if(1&this.flags){for(let e=this.deps;e;e=e.nextDep)k(e);this.deps=this.depsTail=void 0,A(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){64&this.flags?u.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){w(this)&&this.run()}get dirty(){return w(this)}}let h,p,f=0;function m(e,t=!1){if(e.flags|=8,t)return e.next=p,void(p=e);e.next=h,h=e}function g(){f++}function v(){if(--f>0)return;if(p){let e=p;p=void 0;while(e){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;while(h){let n=h;h=void 0;while(n){const r=n.next;if(n.next=void 0,n.flags&=-9,1&n.flags)try{n.trigger()}catch(t){e||(e=t)}n=r}}if(e)throw e}function y(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function b(e){let t,n=e.depsTail,r=n;while(r){const e=r.prevDep;-1===r.version?(r===n&&(n=e),k(r),_(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function w(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(x(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function x(e){if(4&e.flags&&!(16&e.flags))return;if(e.flags&=-17,e.globalVersion===T)return;e.globalVersion=T;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!w(e))return void(e.flags&=-3);const n=i,a=C;i=e,C=!0;try{y(e);const n=e.fn(e._value);(0===t.version||(0,r.$H)(n,e._value))&&(e._value=n,t.version++)}catch(o){throw t.version++,o}finally{i=n,C=a,b(e),e.flags&=-3}}function k(e,t=!1){const{dep:n,prevSub:r,nextSub:a}=e;if(r&&(r.nextSub=a,e.prevSub=void 0),a&&(a.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)k(e,!0)}t||--n.sc||!n.map||n.map.delete(n.key)}function _(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let C=!0;const E=[];function R(){E.push(C),C=!1}function S(){const e=E.pop();C=void 0===e||e}function A(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const e=i;i=void 0;try{t()}finally{i=e}}}let T=0;class M{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class L{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(e){if(!i||!C||i===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==i)t=this.activeLink=new M(i,this),i.deps?(t.prevDep=i.depsTail,i.depsTail.nextDep=t,i.depsTail=t):i.deps=i.depsTail=t,O(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){const e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=i.depsTail,t.nextDep=void 0,i.depsTail.nextDep=t,i.depsTail=t,i.deps===t&&(i.deps=e)}return t}trigger(e){this.version++,T++,this.notify(e)}notify(e){g();try{0;for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{v()}}}function O(e){if(e.dep.sc++,4&e.sub.flags){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)O(e)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const I=new WeakMap,N=Symbol(""),B=Symbol(""),D=Symbol("");function F(e,t,n){if(C&&i){let t=I.get(e);t||I.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new L),r.map=t,r.key=n),r.track()}}function $(e,t,n,a,i,o){const s=I.get(e);if(!s)return void T++;const l=e=>{e&&e.trigger()};if(g(),"clear"===t)s.forEach(l);else{const i=(0,r.cy)(e),o=i&&(0,r.yI)(n);if(i&&"length"===n){const e=Number(a);s.forEach(((t,n)=>{("length"===n||n===D||!(0,r.Bm)(n)&&n>=e)&&l(t)}))}else switch((void 0!==n||s.has(void 0))&&l(s.get(n)),o&&l(s.get(D)),t){case"add":i?o&&l(s.get("length")):(l(s.get(N)),(0,r.CE)(e)&&l(s.get(B)));break;case"delete":i||(l(s.get(N)),(0,r.CE)(e)&&l(s.get(B)));break;case"set":(0,r.CE)(e)&&l(s.get(N));break}}v()}function P(e,t){const n=I.get(e);return n&&n.get(t)}function z(e){const t=Se(e);return t===e?t:(F(t,"iterate",D),Ee(e)?t:t.map(Te))}function W(e){return F(e=Se(e),"iterate",D),e}const j={__proto__:null,[Symbol.iterator](){return V(this,Symbol.iterator,Te)},concat(...e){return z(this).concat(...e.map((e=>(0,r.cy)(e)?z(e):e)))},entries(){return V(this,"entries",(e=>(e[1]=Te(e[1]),e)))},every(e,t){return K(this,"every",e,t,void 0,arguments)},filter(e,t){return K(this,"filter",e,t,(e=>e.map(Te)),arguments)},find(e,t){return K(this,"find",e,t,Te,arguments)},findIndex(e,t){return K(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return K(this,"findLast",e,t,Te,arguments)},findLastIndex(e,t){return K(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return K(this,"forEach",e,t,void 0,arguments)},includes(...e){return q(this,"includes",e)},indexOf(...e){return q(this,"indexOf",e)},join(e){return z(this).join(e)},lastIndexOf(...e){return q(this,"lastIndexOf",e)},map(e,t){return K(this,"map",e,t,void 0,arguments)},pop(){return G(this,"pop")},push(...e){return G(this,"push",e)},reduce(e,...t){return H(this,"reduce",e,t)},reduceRight(e,...t){return H(this,"reduceRight",e,t)},shift(){return G(this,"shift")},some(e,t){return K(this,"some",e,t,void 0,arguments)},splice(...e){return G(this,"splice",e)},toReversed(){return z(this).toReversed()},toSorted(e){return z(this).toSorted(e)},toSpliced(...e){return z(this).toSpliced(...e)},unshift(...e){return G(this,"unshift",e)},values(){return V(this,"values",Te)}};function V(e,t,n){const r=W(e),a=r[t]();return r===e||Ee(e)||(a._next=a.next,a.next=()=>{const e=a._next();return e.value&&(e.value=n(e.value)),e}),a}const U=Array.prototype;function K(e,t,n,r,a,i){const o=W(e),s=o!==e&&!Ee(e),l=o[t];if(l!==U[t]){const t=l.apply(e,i);return s?Te(t):t}let c=n;o!==e&&(s?c=function(t,r){return n.call(this,Te(t),r,e)}:n.length>2&&(c=function(t,r){return n.call(this,t,r,e)}));const u=l.call(o,c,r);return s&&a?a(u):u}function H(e,t,n,r){const a=W(e);let i=n;return a!==e&&(Ee(e)?n.length>3&&(i=function(t,r,a){return n.call(this,t,r,a,e)}):i=function(t,r,a){return n.call(this,t,Te(r),a,e)}),a[t](i,...r)}function q(e,t,n){const r=Se(e);F(r,"iterate",D);const a=r[t](...n);return-1!==a&&!1!==a||!Re(n[0])?a:(n[0]=Se(n[0]),r[t](...n))}function G(e,t,n=[]){R(),g();const r=Se(e)[t].apply(e,n);return v(),S(),r}const X=(0,r.pD)("__proto__,__v_isRef,__isVue"),Y=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(r.Bm));function Q(e){(0,r.Bm)(e)||(e=String(e));const t=Se(this);return F(t,"has",e),t.hasOwnProperty(e)}class Z{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if("__v_skip"===t)return e["__v_skip"];const a=this._isReadonly,i=this._isShallow;if("__v_isReactive"===t)return!a;if("__v_isReadonly"===t)return a;if("__v_isShallow"===t)return i;if("__v_raw"===t)return n===(a?i?ge:me:i?fe:pe).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const o=(0,r.cy)(e);if(!a){let e;if(o&&(e=j[t]))return e;if("hasOwnProperty"===t)return Q}const s=Reflect.get(e,t,Le(e)?e:n);return((0,r.Bm)(t)?Y.has(t):X(t))?s:(a||F(e,"get",t),i?s:Le(s)?o&&(0,r.yI)(t)?s:s.value:(0,r.Gv)(s)?a?xe(s):be(s):s)}}class J extends Z{constructor(e=!1){super(!1,e)}set(e,t,n,a){let i=e[t];if(!this._isShallow){const t=Ce(i);if(Ee(n)||Ce(n)||(i=Se(i),n=Se(n)),!(0,r.cy)(e)&&Le(i)&&!Le(n))return!t&&(i.value=n,!0)}const o=(0,r.cy)(e)&&(0,r.yI)(t)?Number(t)<e.length:(0,r.$3)(e,t),s=Reflect.set(e,t,n,Le(e)?e:a);return e===Se(a)&&(o?(0,r.$H)(n,i)&&$(e,"set",t,n,i):$(e,"add",t,n)),s}deleteProperty(e,t){const n=(0,r.$3)(e,t),a=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&$(e,"delete",t,void 0,a),i}has(e,t){const n=Reflect.has(e,t);return(0,r.Bm)(t)&&Y.has(t)||F(e,"has",t),n}ownKeys(e){return F(e,"iterate",(0,r.cy)(e)?"length":N),Reflect.ownKeys(e)}}class ee extends Z{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const te=new J,ne=new ee,re=new J(!0),ae=e=>e,ie=e=>Reflect.getPrototypeOf(e);function oe(e,t,n){return function(...a){const i=this["__v_raw"],o=Se(i),s=(0,r.CE)(o),l="entries"===e||e===Symbol.iterator&&s,c="keys"===e&&s,u=i[e](...a),d=n?ae:t?Me:Te;return!t&&F(o,"iterate",c?B:N),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:l?[d(e[0]),d(e[1])]:d(e),done:t}},[Symbol.iterator](){return this}}}}function se(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function le(e,t){const n={get(n){const a=this["__v_raw"],i=Se(a),o=Se(n);e||((0,r.$H)(n,o)&&F(i,"get",n),F(i,"get",o));const{has:s}=ie(i),l=t?ae:e?Me:Te;return s.call(i,n)?l(a.get(n)):s.call(i,o)?l(a.get(o)):void(a!==i&&a.get(n))},get size(){const t=this["__v_raw"];return!e&&F(Se(t),"iterate",N),Reflect.get(t,"size",t)},has(t){const n=this["__v_raw"],a=Se(n),i=Se(t);return e||((0,r.$H)(t,i)&&F(a,"has",t),F(a,"has",i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){const a=this,i=a["__v_raw"],o=Se(i),s=t?ae:e?Me:Te;return!e&&F(o,"iterate",N),i.forEach(((e,t)=>n.call(r,s(e),s(t),a)))}};(0,r.X$)(n,e?{add:se("add"),set:se("set"),delete:se("delete"),clear:se("clear")}:{add(e){t||Ee(e)||Ce(e)||(e=Se(e));const n=Se(this),r=ie(n),a=r.has.call(n,e);return a||(n.add(e),$(n,"add",e,e)),this},set(e,n){t||Ee(n)||Ce(n)||(n=Se(n));const a=Se(this),{has:i,get:o}=ie(a);let s=i.call(a,e);s||(e=Se(e),s=i.call(a,e));const l=o.call(a,e);return a.set(e,n),s?(0,r.$H)(n,l)&&$(a,"set",e,n,l):$(a,"add",e,n),this},delete(e){const t=Se(this),{has:n,get:r}=ie(t);let a=n.call(t,e);a||(e=Se(e),a=n.call(t,e));const i=r?r.call(t,e):void 0,o=t.delete(e);return a&&$(t,"delete",e,void 0,i),o},clear(){const e=Se(this),t=0!==e.size,n=void 0,r=e.clear();return t&&$(e,"clear",void 0,void 0,n),r}});const a=["keys","values","entries",Symbol.iterator];return a.forEach((r=>{n[r]=oe(r,e,t)})),n}function ce(e,t){const n=le(e,t);return(t,a,i)=>"__v_isReactive"===a?!e:"__v_isReadonly"===a?e:"__v_raw"===a?t:Reflect.get((0,r.$3)(n,a)&&a in t?n:t,a,i)}const ue={get:ce(!1,!1)},de={get:ce(!1,!0)},he={get:ce(!0,!1)};const pe=new WeakMap,fe=new WeakMap,me=new WeakMap,ge=new WeakMap;function ve(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ye(e){return e["__v_skip"]||!Object.isExtensible(e)?0:ve((0,r.Zf)(e))}function be(e){return Ce(e)?e:ke(e,!1,te,ue,pe)}function we(e){return ke(e,!1,re,de,fe)}function xe(e){return ke(e,!0,ne,he,me)}function ke(e,t,n,a,i){if(!(0,r.Gv)(e))return e;if(e["__v_raw"]&&(!t||!e["__v_isReactive"]))return e;const o=i.get(e);if(o)return o;const s=ye(e);if(0===s)return e;const l=new Proxy(e,2===s?a:n);return i.set(e,l),l}function _e(e){return Ce(e)?_e(e["__v_raw"]):!(!e||!e["__v_isReactive"])}function Ce(e){return!(!e||!e["__v_isReadonly"])}function Ee(e){return!(!e||!e["__v_isShallow"])}function Re(e){return!!e&&!!e["__v_raw"]}function Se(e){const t=e&&e["__v_raw"];return t?Se(t):e}function Ae(e){return!(0,r.$3)(e,"__v_skip")&&Object.isExtensible(e)&&(0,r.yQ)(e,"__v_skip",!0),e}const Te=e=>(0,r.Gv)(e)?be(e):e,Me=e=>(0,r.Gv)(e)?xe(e):e;function Le(e){return!!e&&!0===e["__v_isRef"]}function Oe(e){return Ne(e,!1)}function Ie(e){return Ne(e,!0)}function Ne(e,t){return Le(e)?e:new Be(e,t)}class Be{constructor(e,t){this.dep=new L,this["__v_isRef"]=!0,this["__v_isShallow"]=!1,this._rawValue=t?e:Se(e),this._value=t?e:Te(e),this["__v_isShallow"]=t}get value(){return this.dep.track(),this._value}set value(e){const t=this._rawValue,n=this["__v_isShallow"]||Ee(e)||Ce(e);e=n?e:Se(e),(0,r.$H)(e,t)&&(this._rawValue=e,this._value=n?e:Te(e),this.dep.trigger())}}function De(e){return Le(e)?e.value:e}const Fe={get:(e,t,n)=>"__v_raw"===t?e:De(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const a=e[t];return Le(a)&&!Le(n)?(a.value=n,!0):Reflect.set(e,t,n,r)}};function $e(e){return _e(e)?e:new Proxy(e,Fe)}class Pe{constructor(e){this["__v_isRef"]=!0,this._value=void 0;const t=this.dep=new L,{get:n,set:r}=e(t.track.bind(t),t.trigger.bind(t));this._get=n,this._set=r}get value(){return this._value=this._get()}set value(e){this._set(e)}}function ze(e){return new Pe(e)}function We(e){const t=(0,r.cy)(e)?new Array(e.length):{};for(const n in e)t[n]=Ke(e,n);return t}class je{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this["__v_isRef"]=!0,this._value=void 0}get value(){const e=this._object[this._key];return this._value=void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return P(Se(this._object),this._key)}}class Ve{constructor(e){this._getter=e,this["__v_isRef"]=!0,this["__v_isReadonly"]=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Ue(e,t,n){return Le(e)?e:(0,r.Tn)(e)?new Ve(e):(0,r.Gv)(e)&&arguments.length>1?Ke(e,t,n):Oe(e)}function Ke(e,t,n){const r=e[t];return Le(r)?r:new je(e,t,n)}class He{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new L(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=T-1,this.next=void 0,this.effect=this,this["__v_isReadonly"]=!t,this.isSSR=n}notify(){if(this.flags|=16,!(8&this.flags||i===this))return m(this,!0),!0}get value(){const e=this.dep.track();return x(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function qe(e,t,n=!1){let a,i;(0,r.Tn)(e)?a=e:(a=e.get,i=e.set);const o=new He(a,i,n);return o}const Ge={},Xe=new WeakMap;let Ye;function Qe(e,t=!1,n=Ye){if(n){let t=Xe.get(n);t||Xe.set(n,t=[]),t.push(e)}else 0}function Ze(e,t,n=r.MZ){const{immediate:a,deep:i,once:o,scheduler:s,augmentJob:c,call:u}=n,h=e=>i?e:Ee(e)||!1===i||0===i?Je(e,1):Je(e);let p,f,m,g,v=!1,y=!1;if(Le(e)?(f=()=>e.value,v=Ee(e)):_e(e)?(f=()=>h(e),v=!0):(0,r.cy)(e)?(y=!0,v=e.some((e=>_e(e)||Ee(e))),f=()=>e.map((e=>Le(e)?e.value:_e(e)?h(e):(0,r.Tn)(e)?u?u(e,2):e():void 0))):f=(0,r.Tn)(e)?t?u?()=>u(e,2):e:()=>{if(m){R();try{m()}finally{S()}}const t=Ye;Ye=p;try{return u?u(e,3,[g]):e(g)}finally{Ye=t}}:r.tE,t&&i){const e=f,t=!0===i?1/0:i;f=()=>Je(e(),t)}const b=l(),w=()=>{p.stop(),b&&b.active&&(0,r.TF)(b.effects,p)};if(o&&t){const e=t;t=(...t)=>{e(...t),w()}}let x=y?new Array(e.length).fill(Ge):Ge;const k=e=>{if(1&p.flags&&(p.dirty||e))if(t){const e=p.run();if(i||v||(y?e.some(((e,t)=>(0,r.$H)(e,x[t]))):(0,r.$H)(e,x))){m&&m();const n=Ye;Ye=p;try{const n=[e,x===Ge?void 0:y&&x[0]===Ge?[]:x,g];u?u(t,3,n):t(...n),x=e}finally{Ye=n}}}else p.run()};return c&&c(k),p=new d(f),p.scheduler=s?()=>s(k,!1):k,g=e=>Qe(e,!1,p),m=p.onStop=()=>{const e=Xe.get(p);if(e){if(u)u(e,4);else for(const t of e)t();Xe.delete(p)}},t?a?k(!0):x=p.run():s?s(k.bind(null,!0),!0):p.run(),w.pause=p.pause.bind(p),w.resume=p.resume.bind(p),w.stop=w,w}function Je(e,t=1/0,n){if(t<=0||!(0,r.Gv)(e)||e["__v_skip"])return e;if(n=n||new Set,n.has(e))return e;if(n.add(e),t--,Le(e))Je(e.value,t,n);else if((0,r.cy)(e))for(let r=0;r<e.length;r++)Je(e[r],t,n);else if((0,r.vM)(e)||(0,r.CE)(e))e.forEach((e=>{Je(e,t,n)}));else if((0,r.Qd)(e)){for(const r in e)Je(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Je(e[r],t,n)}return e}},6768:function(e,t,n){"use strict";n.d(t,{$u:function(){return ke},$y:function(){return Ie},CE:function(){return _n},Df:function(){return ae},E3:function(){return In},EW:function(){return cr},EY:function(){return pn},FK:function(){return hn},Gt:function(){return mt},Gy:function(){return H},Ht:function(){return He},Ic:function(){return xe},Im:function(){return W},K9:function(){return Ft},KC:function(){return be},Lk:function(){return Tn},MZ:function(){return re},Mw:function(){return fn},Ng:function(){return On},OA:function(){return qe},OW:function(){return ee},Q3:function(){return Bn},QP:function(){return G},R8:function(){return hr},RG:function(){return Pe},Tb:function(){return We},WQ:function(){return gt},Wv:function(){return Cn},Y4:function(){return he},bF:function(){return Mn},bo:function(){return T},dY:function(){return g},eW:function(){return Nn},eX:function(){return $e},g2:function(){return Le},gN:function(){return Ne},h:function(){return ur},hi:function(){return Ce},k6:function(){return A},n:function(){return de},nI:function(){return Kn},nT:function(){return Gt},pI:function(){return Fe},pM:function(){return ie},pR:function(){return Z},qL:function(){return o},sV:function(){return we},uX:function(){return yn},v6:function(){return Pn},vv:function(){return En},wB:function(){return Xt},xo:function(){return _e}});n(4114),n(9479),n(7642),n(8004),n(3853),n(5876),n(2475),n(5024),n(1698),n(8992),n(3215),n(4520),n(3949),n(1454),n(8872),n(7550);var r=n(144),a=n(4232);function i(e,t,n,r){try{return r?e(...r):e()}catch(a){s(a,t,n)}}function o(e,t,n,r){if((0,a.Tn)(e)){const o=i(e,t,n,r);return o&&(0,a.yL)(o)&&o.catch((e=>{s(e,t,n)})),o}if((0,a.cy)(e)){const a=[];for(let i=0;i<e.length;i++)a.push(o(e[i],t,n,r));return a}}function s(e,t,n,o=!0){const s=t?t.vnode:null,{errorHandler:c,throwUnhandledErrorInProduction:u}=t&&t.appContext.config||a.MZ;if(t){let a=t.parent;const o=t.proxy,s=`https://vuejs.org/error-reference/#runtime-${n}`;while(a){const t=a.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,o,s))return;a=a.parent}if(c)return(0,r.C4)(),i(c,null,10,[e,o,s]),void(0,r.bl)()}l(e,n,s,o,u)}function l(e,t,n,r=!0,a=!1){if(a)throw e;console.error(e)}const c=[];let u=-1;const d=[];let h=null,p=0;const f=Promise.resolve();let m=null;function g(e){const t=m||f;return e?t.then(this?e.bind(this):e):t}function v(e){let t=u+1,n=c.length;while(t<n){const r=t+n>>>1,a=c[r],i=_(a);i<e||i===e&&2&a.flags?t=r+1:n=r}return t}function y(e){if(!(1&e.flags)){const t=_(e),n=c[c.length-1];!n||!(2&e.flags)&&t>=_(n)?c.push(e):c.splice(v(t),0,e),e.flags|=1,b()}}function b(){m||(m=f.then(C))}function w(e){(0,a.cy)(e)?d.push(...e):h&&-1===e.id?h.splice(p+1,0,e):1&e.flags||(d.push(e),e.flags|=1),b()}function x(e,t,n=u+1){for(0;n<c.length;n++){const t=c[n];if(t&&2&t.flags){if(e&&t.id!==e.uid)continue;0,c.splice(n,1),n--,4&t.flags&&(t.flags&=-2),t(),4&t.flags||(t.flags&=-2)}}}function k(e){if(d.length){const e=[...new Set(d)].sort(((e,t)=>_(e)-_(t)));if(d.length=0,h)return void h.push(...e);for(h=e,p=0;p<h.length;p++){const e=h[p];0,4&e.flags&&(e.flags&=-2),8&e.flags||e(),e.flags&=-2}h=null,p=0}}const _=e=>null==e.id?2&e.flags?-1:1/0:e.id;function C(e){a.tE;try{for(u=0;u<c.length;u++){const e=c[u];!e||8&e.flags||(4&e.flags&&(e.flags&=-2),i(e,e.i,e.i?15:14),4&e.flags||(e.flags&=-2))}}finally{for(;u<c.length;u++){const e=c[u];e&&(e.flags&=-2)}u=-1,c.length=0,k(e),m=null,(c.length||d.length)&&C(e)}}let E=null,R=null;function S(e){const t=E;return E=e,R=e&&e.type.__scopeId||null,t}function A(e,t=E,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&xn(-1);const a=S(t);let i;try{i=e(...n)}finally{S(a),r._d&&xn(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function T(e,t){if(null===E)return e;const n=or(E),i=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[e,s,l,c=a.MZ]=t[o];e&&((0,a.Tn)(e)&&(e={mounted:e,updated:e}),e.deep&&(0,r.hV)(s),i.push({dir:e,instance:n,value:s,oldValue:void 0,arg:l,modifiers:c}))}return e}function M(e,t,n,a){const i=e.dirs,s=t&&t.dirs;for(let l=0;l<i.length;l++){const c=i[l];s&&(c.oldValue=s[l].value);let u=c.dir[a];u&&((0,r.C4)(),o(u,n,8,[e.el,c,e,t]),(0,r.bl)())}}const L=Symbol("_vte"),O=e=>e.__isTeleport,I=e=>e&&(e.disabled||""===e.disabled),N=e=>e&&(e.defer||""===e.defer),B=e=>"undefined"!==typeof SVGElement&&e instanceof SVGElement,D=e=>"function"===typeof MathMLElement&&e instanceof MathMLElement,F=(e,t)=>{const n=e&&e.to;if((0,a.Kg)(n)){if(t){const e=t(n);return e}return null}return n},$={name:"Teleport",__isTeleport:!0,process(e,t,n,r,a,i,o,s,l,c){const{mc:u,pc:d,pbc:h,o:{insert:p,querySelector:f,createText:m,createComment:g}}=c,v=I(t.props);let{shapeFlag:y,children:b,dynamicChildren:w}=t;if(null==e){const e=t.el=m(""),c=t.anchor=m("");p(e,n,r),p(c,n,r);const d=(e,t)=>{16&y&&(a&&a.isCE&&(a.ce._teleportTarget=e),u(b,e,t,a,i,o,s,l))},h=()=>{const e=t.target=F(t.props,f),n=V(e,t,m,p);e&&("svg"!==o&&B(e)?o="svg":"mathml"!==o&&D(e)&&(o="mathml"),v||(d(e,n),j(t,!1)))};v&&(d(n,c),j(t,!0)),N(t.props)?Dt((()=>{h(),t.el.__isMounted=!0}),i):h()}else{if(N(t.props)&&!e.el.__isMounted)return void Dt((()=>{$.process(e,t,n,r,a,i,o,s,l,c),delete e.el.__isMounted}),i);t.el=e.el,t.targetStart=e.targetStart;const u=t.anchor=e.anchor,p=t.target=e.target,m=t.targetAnchor=e.targetAnchor,g=I(e.props),y=g?n:p,b=g?u:m;if("svg"===o||B(p)?o="svg":("mathml"===o||D(p))&&(o="mathml"),w?(h(e.dynamicChildren,w,y,a,i,o,s),jt(e,t,!0)):l||d(e,t,y,b,a,i,o,s,!1),v)g?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):P(t,n,u,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=F(t.props,f);e&&P(t,e,null,c,0)}else g&&P(t,p,m,c,1);j(t,v)}},remove(e,t,n,{um:r,o:{remove:a}},i){const{shapeFlag:o,children:s,anchor:l,targetStart:c,targetAnchor:u,target:d,props:h}=e;if(d&&(a(c),a(u)),i&&a(l),16&o){const e=i||!I(h);for(let a=0;a<s.length;a++){const i=s[a];r(i,t,n,e,!!i.dynamicChildren)}}},move:P,hydrate:z};function P(e,t,n,{o:{insert:r},m:a},i=2){0===i&&r(e.targetAnchor,t,n);const{el:o,anchor:s,shapeFlag:l,children:c,props:u}=e,d=2===i;if(d&&r(o,t,n),(!d||I(u))&&16&l)for(let h=0;h<c.length;h++)a(c[h],t,n,2);d&&r(s,t,n)}function z(e,t,n,r,a,i,{o:{nextSibling:o,parentNode:s,querySelector:l,insert:c,createText:u}},d){const h=t.target=F(t.props,l);if(h){const l=I(t.props),p=h._lpa||h.firstChild;if(16&t.shapeFlag)if(l)t.anchor=d(o(e),t,s(e),n,r,a,i),t.targetStart=p,t.targetAnchor=p&&o(p);else{t.anchor=o(e);let s=p;while(s){if(s&&8===s.nodeType)if("teleport start anchor"===s.data)t.targetStart=s;else if("teleport anchor"===s.data){t.targetAnchor=s,h._lpa=t.targetAnchor&&o(t.targetAnchor);break}s=o(s)}t.targetAnchor||V(h,t,u,c),d(p&&o(p),t,h,n,r,a,i)}j(t,l)}return t.anchor&&o(t.anchor)}const W=$;function j(e,t){const n=e.ctx;if(n&&n.ut){let r,a;t?(r=e.el,a=e.anchor):(r=e.targetStart,a=e.targetAnchor);while(r&&r!==a)1===r.nodeType&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function V(e,t,n,r){const a=t.targetStart=n(""),i=t.targetAnchor=n("");return a[L]=i,e&&(r(a,e),r(i,e)),i}const U=Symbol("_leaveCb"),K=Symbol("_enterCb");function H(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return we((()=>{e.isMounted=!0})),_e((()=>{e.isUnmounting=!0})),e}const q=[Function,Array],G={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:q,onEnter:q,onAfterEnter:q,onEnterCancelled:q,onBeforeLeave:q,onLeave:q,onAfterLeave:q,onLeaveCancelled:q,onBeforeAppear:q,onAppear:q,onAfterAppear:q,onAppearCancelled:q},X=e=>{const t=e.subTree;return t.component?X(t.component):t},Y={name:"BaseTransition",props:G,setup(e,{slots:t}){const n=Kn(),a=H();return()=>{const i=t.default&&ae(t.default(),!0);if(!i||!i.length)return;const o=Q(i),s=(0,r.ux)(e),{mode:l}=s;if(a.isLeaving)return te(o);const c=ne(o);if(!c)return te(o);let u=ee(c,s,a,n,(e=>u=e));c.type!==fn&&re(c,u);let d=n.subTree&&ne(n.subTree);if(d&&d.type!==fn&&!Rn(c,d)&&X(n).type!==fn){let e=ee(d,s,a,n);if(re(d,e),"out-in"===l&&c.type!==fn)return a.isLeaving=!0,e.afterLeave=()=>{a.isLeaving=!1,8&n.job.flags||n.update(),delete e.afterLeave,d=void 0},te(o);"in-out"===l&&c.type!==fn?e.delayLeave=(e,t,n)=>{const r=J(a,d);r[String(d.key)]=d,e[U]=()=>{t(),e[U]=void 0,delete u.delayedLeave,d=void 0},u.delayedLeave=()=>{n(),delete u.delayedLeave,d=void 0}}:d=void 0}else d&&(d=void 0);return o}}};function Q(e){let t=e[0];if(e.length>1){let n=!1;for(const r of e)if(r.type!==fn){0,t=r,n=!0;break}}return t}const Z=Y;function J(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function ee(e,t,n,r,i){const{appear:s,mode:l,persisted:c=!1,onBeforeEnter:u,onEnter:d,onAfterEnter:h,onEnterCancelled:p,onBeforeLeave:f,onLeave:m,onAfterLeave:g,onLeaveCancelled:v,onBeforeAppear:y,onAppear:b,onAfterAppear:w,onAppearCancelled:x}=t,k=String(e.key),_=J(n,e),C=(e,t)=>{e&&o(e,r,9,t)},E=(e,t)=>{const n=t[1];C(e,t),(0,a.cy)(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},R={mode:l,persisted:c,beforeEnter(t){let r=u;if(!n.isMounted){if(!s)return;r=y||u}t[U]&&t[U](!0);const a=_[k];a&&Rn(e,a)&&a.el[U]&&a.el[U](),C(r,[t])},enter(e){let t=d,r=h,a=p;if(!n.isMounted){if(!s)return;t=b||d,r=w||h,a=x||p}let i=!1;const o=e[K]=t=>{i||(i=!0,C(t?a:r,[e]),R.delayedLeave&&R.delayedLeave(),e[K]=void 0)};t?E(t,[e,o]):o()},leave(t,r){const a=String(e.key);if(t[K]&&t[K](!0),n.isUnmounting)return r();C(f,[t]);let i=!1;const o=t[U]=n=>{i||(i=!0,r(),C(n?v:g,[t]),t[U]=void 0,_[a]===e&&delete _[a])};_[a]=e,m?E(m,[t,o]):o()},clone(e){const a=ee(e,t,n,r,i);return i&&i(a),a}};return R}function te(e){if(ce(e))return e=In(e),e.children=null,e}function ne(e){if(!ce(e))return O(e.type)&&e.children?Q(e.children):e;const{shapeFlag:t,children:n}=e;if(n){if(16&t)return n[0];if(32&t&&(0,a.Tn)(n.default))return n.default()}}function re(e,t){6&e.shapeFlag&&e.component?(e.transition=t,re(e.component.subTree,t)):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ae(e,t=!1,n){let r=[],a=0;for(let i=0;i<e.length;i++){let o=e[i];const s=null==n?o.key:String(n)+String(null!=o.key?o.key:i);o.type===hn?(128&o.patchFlag&&a++,r=r.concat(ae(o.children,t,s))):(t||o.type!==fn)&&r.push(null!=s?In(o,{key:s}):o)}if(a>1)for(let i=0;i<r.length;i++)r[i].patchFlag=-2;return r}
/*! #__NO_SIDE_EFFECTS__ */function ie(e,t){return(0,a.Tn)(e)?(()=>(0,a.X$)({name:e.name},t,{setup:e}))():e}function oe(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function se(e,t,n,o,s=!1){if((0,a.cy)(e))return void e.forEach(((e,r)=>se(e,t&&((0,a.cy)(t)?t[r]:t),n,o,s)));if(le(o)&&!s)return void(512&o.shapeFlag&&o.type.__asyncResolved&&o.component.subTree.component&&se(e,t,n,o.component.subTree));const l=4&o.shapeFlag?or(o.component):o.el,c=s?null:l,{i:u,r:d}=e;const h=t&&t.r,p=u.refs===a.MZ?u.refs={}:u.refs,f=u.setupState,m=(0,r.ux)(f),g=f===a.MZ?()=>!1:e=>(0,a.$3)(m,e);if(null!=h&&h!==d&&((0,a.Kg)(h)?(p[h]=null,g(h)&&(f[h]=null)):(0,r.i9)(h)&&(h.value=null)),(0,a.Tn)(d))i(d,u,12,[c,p]);else{const t=(0,a.Kg)(d),i=(0,r.i9)(d);if(t||i){const r=()=>{if(e.f){const n=t?g(d)?f[d]:p[d]:d.value;s?(0,a.cy)(n)&&(0,a.TF)(n,l):(0,a.cy)(n)?n.includes(l)||n.push(l):t?(p[d]=[l],g(d)&&(f[d]=p[d])):(d.value=[l],e.k&&(p[e.k]=d.value))}else t?(p[d]=c,g(d)&&(f[d]=c)):i&&(d.value=c,e.k&&(p[e.k]=c))};c?(r.id=-1,Dt(r,n)):r()}else 0}}(0,a.We)().requestIdleCallback,(0,a.We)().cancelIdleCallback;const le=e=>!!e.type.__asyncLoader
/*! #__NO_SIDE_EFFECTS__ */;const ce=e=>e.type.__isKeepAlive;RegExp,RegExp;function ue(e,t){return(0,a.cy)(e)?e.some((e=>ue(e,t))):(0,a.Kg)(e)?e.split(",").includes(t):!!(0,a.gd)(e)&&(e.lastIndex=0,e.test(t))}function de(e,t){pe(e,"a",t)}function he(e,t){pe(e,"da",t)}function pe(e,t,n=Un){const r=e.__wdc||(e.__wdc=()=>{let t=n;while(t){if(t.isDeactivated)return;t=t.parent}return e()});if(ve(t,r,n),n){let e=n.parent;while(e&&e.parent)ce(e.parent.vnode)&&fe(r,t,n,e),e=e.parent}}function fe(e,t,n,r){const i=ve(t,e,r,!0);Ce((()=>{(0,a.TF)(r[t],i)}),n)}function me(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function ge(e){return 128&e.shapeFlag?e.ssContent:e}function ve(e,t,n=Un,a=!1){if(n){const i=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...a)=>{(0,r.C4)();const i=Gn(n),s=o(t,n,e,a);return i(),(0,r.bl)(),s});return a?i.unshift(s):i.push(s),s}}const ye=e=>(t,n=Un)=>{Jn&&"sp"!==e||ve(e,((...e)=>t(...e)),n)},be=ye("bm"),we=ye("m"),xe=ye("bu"),ke=ye("u"),_e=ye("bum"),Ce=ye("um"),Ee=ye("sp"),Re=ye("rtg"),Se=ye("rtc");function Ae(e,t=Un){ve("ec",e,t)}const Te="components",Me="directives";function Le(e,t){return Be(Te,e,!0,t)||e}const Oe=Symbol.for("v-ndc");function Ie(e){return(0,a.Kg)(e)?Be(Te,e,!1)||e:e||Oe}function Ne(e){return Be(Me,e)}function Be(e,t,n=!0,r=!1){const i=E||Un;if(i){const n=i.type;if(e===Te){const e=sr(n,!1);if(e&&(e===t||e===(0,a.PT)(t)||e===(0,a.ZH)((0,a.PT)(t))))return n}const o=De(i[e]||n[e],t)||De(i.appContext[e],t);return!o&&r?n:o}}function De(e,t){return e&&(e[t]||e[(0,a.PT)(t)]||e[(0,a.ZH)((0,a.PT)(t))])}function Fe(e,t,n,i){let o;const s=n&&n[i],l=(0,a.cy)(e);if(l||(0,a.Kg)(e)){const n=l&&(0,r.g8)(e);let a=!1;n&&(a=!(0,r.fE)(e),e=(0,r.qA)(e)),o=new Array(e.length);for(let i=0,l=e.length;i<l;i++)o[i]=t(a?(0,r.lJ)(e[i]):e[i],i,void 0,s&&s[i])}else if("number"===typeof e){0,o=new Array(e);for(let n=0;n<e;n++)o[n]=t(n+1,n,void 0,s&&s[n])}else if((0,a.Gv)(e))if(e[Symbol.iterator])o=Array.from(e,((e,n)=>t(e,n,void 0,s&&s[n])));else{const n=Object.keys(e);o=new Array(n.length);for(let r=0,a=n.length;r<a;r++){const a=n[r];o[r]=t(e[a],a,r,s&&s[r])}}else o=[];return n&&(n[i]=o),o}function $e(e,t){for(let n=0;n<t.length;n++){const r=t[n];if((0,a.cy)(r))for(let t=0;t<r.length;t++)e[r[t].name]=r[t].fn;else r&&(e[r.name]=r.key?(...e)=>{const t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e}function Pe(e,t,n={},r,i){if(E.ce||E.parent&&le(E.parent)&&E.parent.ce)return"default"!==t&&(n.name=t),yn(),Cn(hn,null,[Mn("slot",n,r&&r())],64);let o=e[t];o&&o._c&&(o._d=!1),yn();const s=o&&ze(o(n)),l=n.key||s&&s.key,c=Cn(hn,{key:(l&&!(0,a.Bm)(l)?l:`_${t}`)+(!s&&r?"_fb":"")},s||(r?r():[]),s&&1===e._?64:-2);return!i&&c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),o&&o._c&&(o._d=!0),c}function ze(e){return e.some((e=>!En(e)||e.type!==fn&&!(e.type===hn&&!ze(e.children))))?e:null}function We(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:(0,a.rU)(r)]=e[r];return n}const je=e=>e?Yn(e)?or(e):je(e.parent):null,Ve=(0,a.X$)(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>je(e.parent),$root:e=>je(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>tt(e),$forceUpdate:e=>e.f||(e.f=()=>{y(e.update)}),$nextTick:e=>e.n||(e.n=g.bind(e.proxy)),$watch:e=>Qt.bind(e)}),Ue=(e,t)=>e!==a.MZ&&!e.__isScriptSetup&&(0,a.$3)(e,t),Ke={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:n,setupState:i,data:o,props:s,accessCache:l,type:c,appContext:u}=e;let d;if("$"!==t[0]){const r=l[t];if(void 0!==r)switch(r){case 1:return i[t];case 2:return o[t];case 4:return n[t];case 3:return s[t]}else{if(Ue(i,t))return l[t]=1,i[t];if(o!==a.MZ&&(0,a.$3)(o,t))return l[t]=2,o[t];if((d=e.propsOptions[0])&&(0,a.$3)(d,t))return l[t]=3,s[t];if(n!==a.MZ&&(0,a.$3)(n,t))return l[t]=4,n[t];Ye&&(l[t]=0)}}const h=Ve[t];let p,f;return h?("$attrs"===t&&(0,r.u4)(e.attrs,"get",""),h(e)):(p=c.__cssModules)&&(p=p[t])?p:n!==a.MZ&&(0,a.$3)(n,t)?(l[t]=4,n[t]):(f=u.config.globalProperties,(0,a.$3)(f,t)?f[t]:void 0)},set({_:e},t,n){const{data:r,setupState:i,ctx:o}=e;return Ue(i,t)?(i[t]=n,!0):r!==a.MZ&&(0,a.$3)(r,t)?(r[t]=n,!0):!(0,a.$3)(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(o[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:o}},s){let l;return!!n[s]||e!==a.MZ&&(0,a.$3)(e,s)||Ue(t,s)||(l=o[0])&&(0,a.$3)(l,s)||(0,a.$3)(r,s)||(0,a.$3)(Ve,s)||(0,a.$3)(i.config.globalProperties,s)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:(0,a.$3)(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function He(){return Ge().slots}function qe(){return Ge().attrs}function Ge(){const e=Kn();return e.setupContext||(e.setupContext=ir(e))}function Xe(e){return(0,a.cy)(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}let Ye=!0;function Qe(e){const t=tt(e),n=e.proxy,i=e.ctx;Ye=!1,t.beforeCreate&&Je(t.beforeCreate,e,"bc");const{data:o,computed:s,methods:l,watch:c,provide:u,inject:d,created:h,beforeMount:p,mounted:f,beforeUpdate:m,updated:g,activated:v,deactivated:y,beforeDestroy:b,beforeUnmount:w,destroyed:x,unmounted:k,render:_,renderTracked:C,renderTriggered:E,errorCaptured:R,serverPrefetch:S,expose:A,inheritAttrs:T,components:M,directives:L,filters:O}=t,I=null;if(d&&Ze(d,i,I),l)for(const r in l){const e=l[r];(0,a.Tn)(e)&&(i[r]=e.bind(n))}if(o){0;const t=o.call(n,n);0,(0,a.Gv)(t)&&(e.data=(0,r.Kh)(t))}if(Ye=!0,s)for(const r in s){const e=s[r],t=(0,a.Tn)(e)?e.bind(n,n):(0,a.Tn)(e.get)?e.get.bind(n,n):a.tE;0;const o=!(0,a.Tn)(e)&&(0,a.Tn)(e.set)?e.set.bind(n):a.tE,l=cr({get:t,set:o});Object.defineProperty(i,r,{enumerable:!0,configurable:!0,get:()=>l.value,set:e=>l.value=e})}if(c)for(const r in c)et(c[r],i,n,r);if(u){const e=(0,a.Tn)(u)?u.call(n):u;Reflect.ownKeys(e).forEach((t=>{mt(t,e[t])}))}function N(e,t){(0,a.cy)(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(h&&Je(h,e,"c"),N(be,p),N(we,f),N(xe,m),N(ke,g),N(de,v),N(he,y),N(Ae,R),N(Se,C),N(Re,E),N(_e,w),N(Ce,k),N(Ee,S),(0,a.cy)(A))if(A.length){const t=e.exposed||(e.exposed={});A.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});_&&e.render===a.tE&&(e.render=_),null!=T&&(e.inheritAttrs=T),M&&(e.components=M),L&&(e.directives=L),S&&oe(e)}function Ze(e,t,n=a.tE){(0,a.cy)(e)&&(e=ot(e));for(const i in e){const n=e[i];let o;o=(0,a.Gv)(n)?"default"in n?gt(n.from||i,n.default,!0):gt(n.from||i):gt(n),(0,r.i9)(o)?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>o.value,set:e=>o.value=e}):t[i]=o}}function Je(e,t,n){o((0,a.cy)(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function et(e,t,n,r){let i=r.includes(".")?Zt(n,r):()=>n[r];if((0,a.Kg)(e)){const n=t[e];(0,a.Tn)(n)&&Xt(i,n)}else if((0,a.Tn)(e))Xt(i,e.bind(n));else if((0,a.Gv)(e))if((0,a.cy)(e))e.forEach((e=>et(e,t,n,r)));else{const r=(0,a.Tn)(e.handler)?e.handler.bind(n):t[e.handler];(0,a.Tn)(r)&&Xt(i,r,e)}else 0}function tt(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:s}}=e.appContext,l=o.get(t);let c;return l?c=l:i.length||n||r?(c={},i.length&&i.forEach((e=>nt(c,e,s,!0))),nt(c,t,s)):c=t,(0,a.Gv)(t)&&o.set(t,c),c}function nt(e,t,n,r=!1){const{mixins:a,extends:i}=t;i&&nt(e,i,n,!0),a&&a.forEach((t=>nt(e,t,n,!0)));for(const o in t)if(r&&"expose"===o);else{const r=rt[o]||n&&n[o];e[o]=r?r(e[o],t[o]):t[o]}return e}const rt={data:at,props:ct,emits:ct,methods:lt,computed:lt,beforeCreate:st,created:st,beforeMount:st,mounted:st,beforeUpdate:st,updated:st,beforeDestroy:st,beforeUnmount:st,destroyed:st,unmounted:st,activated:st,deactivated:st,errorCaptured:st,serverPrefetch:st,components:lt,directives:lt,watch:ut,provide:at,inject:it};function at(e,t){return t?e?function(){return(0,a.X$)((0,a.Tn)(e)?e.call(this,this):e,(0,a.Tn)(t)?t.call(this,this):t)}:t:e}function it(e,t){return lt(ot(e),ot(t))}function ot(e){if((0,a.cy)(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function st(e,t){return e?[...new Set([].concat(e,t))]:t}function lt(e,t){return e?(0,a.X$)(Object.create(null),e,t):t}function ct(e,t){return e?(0,a.cy)(e)&&(0,a.cy)(t)?[...new Set([...e,...t])]:(0,a.X$)(Object.create(null),Xe(e),Xe(null!=t?t:{})):t}function ut(e,t){if(!e)return t;if(!t)return e;const n=(0,a.X$)(Object.create(null),e);for(const r in t)n[r]=st(e[r],t[r]);return n}function dt(){return{app:null,config:{isNativeTag:a.NO,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let ht=0;function pt(e,t){return function(n,r=null){(0,a.Tn)(n)||(n=(0,a.X$)({},n)),null==r||(0,a.Gv)(r)||(r=null);const i=dt(),s=new WeakSet,l=[];let c=!1;const u=i.app={_uid:ht++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:dr,get config(){return i.config},set config(e){0},use(e,...t){return s.has(e)||(e&&(0,a.Tn)(e.install)?(s.add(e),e.install(u,...t)):(0,a.Tn)(e)&&(s.add(e),e(u,...t))),u},mixin(e){return i.mixins.includes(e)||i.mixins.push(e),u},component(e,t){return t?(i.components[e]=t,u):i.components[e]},directive(e,t){return t?(i.directives[e]=t,u):i.directives[e]},mount(a,o,s){if(!c){0;const l=u._ceVNode||Mn(n,r);return l.appContext=i,!0===s?s="svg":!1===s&&(s=void 0),o&&t?t(l,a):e(l,a,s),c=!0,u._container=a,a.__vue_app__=u,or(l.component)}},onUnmount(e){l.push(e)},unmount(){c&&(o(l,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(e,t){return i.provides[e]=t,u},runWithContext(e){const t=ft;ft=u;try{return e()}finally{ft=t}}};return u}}let ft=null;function mt(e,t){if(Un){let n=Un.provides;const r=Un.parent&&Un.parent.provides;r===n&&(n=Un.provides=Object.create(r)),n[e]=t}else 0}function gt(e,t,n=!1){const r=Un||E;if(r||ft){const i=ft?ft._context.provides:r?null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&(0,a.Tn)(t)?t.call(r&&r.proxy):t}else 0}const vt={},yt=()=>Object.create(vt),bt=e=>Object.getPrototypeOf(e)===vt;function wt(e,t,n,a=!1){const i={},o=yt();e.propsDefaults=Object.create(null),kt(e,t,i,o);for(const r in e.propsOptions[0])r in i||(i[r]=void 0);n?e.props=a?i:(0,r.Gc)(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function xt(e,t,n,i){const{props:o,attrs:s,vnode:{patchFlag:l}}=e,c=(0,r.ux)(o),[u]=e.propsOptions;let d=!1;if(!(i||l>0)||16&l){let r;kt(e,t,o,s)&&(d=!0);for(const i in c)t&&((0,a.$3)(t,i)||(r=(0,a.Tg)(i))!==i&&(0,a.$3)(t,r))||(u?!n||void 0===n[i]&&void 0===n[r]||(o[i]=_t(u,c,i,void 0,e,!0)):delete o[i]);if(s!==c)for(const e in s)t&&(0,a.$3)(t,e)||(delete s[e],d=!0)}else if(8&l){const n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let i=n[r];if(nn(e.emitsOptions,i))continue;const l=t[i];if(u)if((0,a.$3)(s,i))l!==s[i]&&(s[i]=l,d=!0);else{const t=(0,a.PT)(i);o[t]=_t(u,c,t,l,e,!1)}else l!==s[i]&&(s[i]=l,d=!0)}}d&&(0,r.hZ)(e.attrs,"set","")}function kt(e,t,n,i){const[o,s]=e.propsOptions;let l,c=!1;if(t)for(let r in t){if((0,a.SU)(r))continue;const u=t[r];let d;o&&(0,a.$3)(o,d=(0,a.PT)(r))?s&&s.includes(d)?(l||(l={}))[d]=u:n[d]=u:nn(e.emitsOptions,r)||r in i&&u===i[r]||(i[r]=u,c=!0)}if(s){const t=(0,r.ux)(n),i=l||a.MZ;for(let r=0;r<s.length;r++){const l=s[r];n[l]=_t(o,t,l,i[l],e,!(0,a.$3)(i,l))}}return c}function _t(e,t,n,r,i,o){const s=e[n];if(null!=s){const e=(0,a.$3)(s,"default");if(e&&void 0===r){const e=s.default;if(s.type!==Function&&!s.skipFactory&&(0,a.Tn)(e)){const{propsDefaults:a}=i;if(n in a)r=a[n];else{const o=Gn(i);r=a[n]=e.call(null,t),o()}}else r=e;i.ce&&i.ce._setProp(n,r)}s[0]&&(o&&!e?r=!1:!s[1]||""!==r&&r!==(0,a.Tg)(n)||(r=!0))}return r}const Ct=new WeakMap;function Et(e,t,n=!1){const r=n?Ct:t.propsCache,i=r.get(e);if(i)return i;const o=e.props,s={},l=[];let c=!1;if(!(0,a.Tn)(e)){const r=e=>{c=!0;const[n,r]=Et(e,t,!0);(0,a.X$)(s,n),r&&l.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!o&&!c)return(0,a.Gv)(e)&&r.set(e,a.Oj),a.Oj;if((0,a.cy)(o))for(let d=0;d<o.length;d++){0;const e=(0,a.PT)(o[d]);Rt(e)&&(s[e]=a.MZ)}else if(o){0;for(const e in o){const t=(0,a.PT)(e);if(Rt(t)){const n=o[e],r=s[t]=(0,a.cy)(n)||(0,a.Tn)(n)?{type:n}:(0,a.X$)({},n),i=r.type;let c=!1,u=!0;if((0,a.cy)(i))for(let e=0;e<i.length;++e){const t=i[e],n=(0,a.Tn)(t)&&t.name;if("Boolean"===n){c=!0;break}"String"===n&&(u=!1)}else c=(0,a.Tn)(i)&&"Boolean"===i.name;r[0]=c,r[1]=u,(c||(0,a.$3)(r,"default"))&&l.push(t)}}}const u=[s,l];return(0,a.Gv)(e)&&r.set(e,u),u}function Rt(e){return"$"!==e[0]&&!(0,a.SU)(e)}const St=e=>"_"===e[0]||"$stable"===e,At=e=>(0,a.cy)(e)?e.map(Dn):[Dn(e)],Tt=(e,t,n)=>{if(t._n)return t;const r=A(((...e)=>At(t(...e))),n);return r._c=!1,r},Mt=(e,t,n)=>{const r=e._ctx;for(const i in e){if(St(i))continue;const n=e[i];if((0,a.Tn)(n))t[i]=Tt(i,n,r);else if(null!=n){0;const e=At(n);t[i]=()=>e}}},Lt=(e,t)=>{const n=At(t);e.slots.default=()=>n},Ot=(e,t,n)=>{for(const r in t)(n||"_"!==r)&&(e[r]=t[r])},It=(e,t,n)=>{const r=e.slots=yt();if(32&e.vnode.shapeFlag){const e=t._;e?(Ot(r,t,n),n&&(0,a.yQ)(r,"_",e,!0)):Mt(t,r)}else t&&Lt(e,t)},Nt=(e,t,n)=>{const{vnode:r,slots:i}=e;let o=!0,s=a.MZ;if(32&r.shapeFlag){const e=t._;e?n&&1===e?o=!1:Ot(i,t,n):(o=!t.$stable,Mt(t,i)),s=t}else t&&(Lt(e,t),s={default:1});if(o)for(const a in i)St(a)||null!=s[a]||delete i[a]};function Bt(){}const Dt=dn;function Ft(e){return $t(e)}function $t(e,t){Bt();const n=(0,a.We)();n.__VUE__=!0;const{insert:i,remove:o,patchProp:s,createElement:l,createText:c,createComment:u,setText:d,setElementText:h,parentNode:p,nextSibling:f,setScopeId:m=a.tE,insertStaticContent:g}=e,v=(e,t,n,r=null,a=null,i=null,o=void 0,s=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!Rn(e,t)&&(r=Y(e),K(e,a,i,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:d}=t;switch(c){case pn:b(e,t,n,r);break;case fn:w(e,t,n,r);break;case mn:null==e&&_(t,n,r,o);break;case hn:B(e,t,n,r,a,i,o,s,l);break;default:1&d?R(e,t,n,r,a,i,o,s,l):6&d?D(e,t,n,r,a,i,o,s,l):(64&d||128&d)&&c.process(e,t,n,r,a,i,o,s,l,J)}null!=u&&a&&se(u,e&&e.ref,i,t||e,!t)},b=(e,t,n,r)=>{if(null==e)i(t.el=c(t.children),n,r);else{const n=t.el=e.el;t.children!==e.children&&d(n,t.children)}},w=(e,t,n,r)=>{null==e?i(t.el=u(t.children||""),n,r):t.el=e.el},_=(e,t,n,r)=>{[e.el,e.anchor]=g(e.children,t,n,r,e.el,e.anchor)},C=({el:e,anchor:t},n,r)=>{let a;while(e&&e!==t)a=f(e),i(e,n,r),e=a;i(t,n,r)},E=({el:e,anchor:t})=>{let n;while(e&&e!==t)n=f(e),o(e),e=n;o(t)},R=(e,t,n,r,a,i,o,s,l)=>{"svg"===t.type?o="svg":"math"===t.type&&(o="mathml"),null==e?S(t,n,r,a,i,o,s,l):O(e,t,a,i,o,s,l)},S=(e,t,n,r,o,c,u,d)=>{let p,f;const{props:m,shapeFlag:g,transition:v,dirs:y}=e;if(p=e.el=l(e.type,c,m&&m.is,m),8&g?h(p,e.children):16&g&&T(e.children,p,null,r,o,Pt(e,c),u,d),y&&M(e,null,r,"created"),A(p,e,e.scopeId,u,r),m){for(const e in m)"value"===e||(0,a.SU)(e)||s(p,e,null,m[e],c,r);"value"in m&&s(p,"value",null,m.value,c),(f=m.onVnodeBeforeMount)&&zn(f,r,e)}y&&M(e,null,r,"beforeMount");const b=Wt(o,v);b&&v.beforeEnter(p),i(p,t,n),((f=m&&m.onVnodeMounted)||b||y)&&Dt((()=>{f&&zn(f,r,e),b&&v.enter(p),y&&M(e,null,r,"mounted")}),o)},A=(e,t,n,r,a)=>{if(n&&m(e,n),r)for(let i=0;i<r.length;i++)m(e,r[i]);if(a){let n=a.subTree;if(t===n||un(n.type)&&(n.ssContent===t||n.ssFallback===t)){const t=a.vnode;A(e,t,t.scopeId,t.slotScopeIds,a.parent)}}},T=(e,t,n,r,a,i,o,s,l=0)=>{for(let c=l;c<e.length;c++){const l=e[c]=s?Fn(e[c]):Dn(e[c]);v(null,l,t,n,r,a,i,o,s)}},O=(e,t,n,r,i,o,l)=>{const c=t.el=e.el;let{patchFlag:u,dynamicChildren:d,dirs:p}=t;u|=16&e.patchFlag;const f=e.props||a.MZ,m=t.props||a.MZ;let g;if(n&&zt(n,!1),(g=m.onVnodeBeforeUpdate)&&zn(g,n,t,e),p&&M(t,e,n,"beforeUpdate"),n&&zt(n,!0),(f.innerHTML&&null==m.innerHTML||f.textContent&&null==m.textContent)&&h(c,""),d?I(e.dynamicChildren,d,c,n,r,Pt(t,i),o):l||W(e,t,c,null,n,r,Pt(t,i),o,!1),u>0){if(16&u)N(c,f,m,n,i);else if(2&u&&f.class!==m.class&&s(c,"class",null,m.class,i),4&u&&s(c,"style",f.style,m.style,i),8&u){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const r=e[t],a=f[r],o=m[r];o===a&&"value"!==r||s(c,r,a,o,i,n)}}1&u&&e.children!==t.children&&h(c,t.children)}else l||null!=d||N(c,f,m,n,i);((g=m.onVnodeUpdated)||p)&&Dt((()=>{g&&zn(g,n,t,e),p&&M(t,e,n,"updated")}),r)},I=(e,t,n,r,a,i,o)=>{for(let s=0;s<t.length;s++){const l=e[s],c=t[s],u=l.el&&(l.type===hn||!Rn(l,c)||70&l.shapeFlag)?p(l.el):n;v(l,c,u,null,r,a,i,o,!0)}},N=(e,t,n,r,i)=>{if(t!==n){if(t!==a.MZ)for(const o in t)(0,a.SU)(o)||o in n||s(e,o,t[o],null,i,r);for(const o in n){if((0,a.SU)(o))continue;const l=n[o],c=t[o];l!==c&&"value"!==o&&s(e,o,c,l,i,r)}"value"in n&&s(e,"value",t.value,n.value,i)}},B=(e,t,n,r,a,o,s,l,u)=>{const d=t.el=e?e.el:c(""),h=t.anchor=e?e.anchor:c("");let{patchFlag:p,dynamicChildren:f,slotScopeIds:m}=t;m&&(l=l?l.concat(m):m),null==e?(i(d,n,r),i(h,n,r),T(t.children||[],n,h,a,o,s,l,u)):p>0&&64&p&&f&&e.dynamicChildren?(I(e.dynamicChildren,f,n,a,o,s,l),(null!=t.key||a&&t===a.subTree)&&jt(e,t,!0)):W(e,t,n,h,a,o,s,l,u)},D=(e,t,n,r,a,i,o,s,l)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?a.ctx.activate(t,n,r,o,l):F(t,n,r,a,i,o,l):$(e,t,l)},F=(e,t,n,r,a,i,o)=>{const s=e.component=Vn(e,r,a);if(ce(e)&&(s.ctx.renderer=J),er(s,!1,o),s.asyncDep){if(a&&a.registerDep(s,P,o),!e.el){const e=s.subTree=Mn(fn);w(null,e,t,n)}}else P(s,e,t,n,a,i,o)},$=(e,t,n)=>{const r=t.component=e.component;if(sn(e,t,n)){if(r.asyncDep&&!r.asyncResolved)return void z(r,t,n);r.next=t,r.update()}else t.el=e.el,r.vnode=t},P=(e,t,n,i,o,s,l)=>{const c=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:i,vnode:u}=e;{const n=Ut(e);if(n)return t&&(t.el=u.el,z(e,t,l)),void n.asyncDep.then((()=>{e.isUnmounted||c()}))}let d,h=t;0,zt(e,!1),t?(t.el=u.el,z(e,t,l)):t=u,n&&(0,a.DY)(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&zn(d,i,t,u),zt(e,!0);const f=rn(e);0;const m=e.subTree;e.subTree=f,v(m,f,p(m.el),Y(m),e,o,s),t.el=f.el,null===h&&cn(e,f.el),r&&Dt(r,o),(d=t.props&&t.props.onVnodeUpdated)&&Dt((()=>zn(d,i,t,u)),o)}else{let r;const{el:l,props:c}=t,{bm:u,m:d,parent:h,root:p,type:f}=e,m=le(t);if(zt(e,!1),u&&(0,a.DY)(u),!m&&(r=c&&c.onVnodeBeforeMount)&&zn(r,h,t),zt(e,!0),l&&te){const t=()=>{e.subTree=rn(e),te(l,e.subTree,e,o,null)};m&&f.__asyncHydrate?f.__asyncHydrate(l,e,t):t()}else{p.ce&&p.ce._injectChildStyle(f);const r=e.subTree=rn(e);0,v(null,r,n,i,e,o,s),t.el=r.el}if(d&&Dt(d,o),!m&&(r=c&&c.onVnodeMounted)){const e=t;Dt((()=>zn(r,h,e)),o)}(256&t.shapeFlag||h&&le(h.vnode)&&256&h.vnode.shapeFlag)&&e.a&&Dt(e.a,o),e.isMounted=!0,t=n=i=null}};e.scope.on();const u=e.effect=new r.X2(c);e.scope.off();const d=e.update=u.run.bind(u),h=e.job=u.runIfDirty.bind(u);h.i=e,h.id=e.uid,u.scheduler=()=>y(h),zt(e,!0),d()},z=(e,t,n)=>{t.component=e;const a=e.vnode.props;e.vnode=t,e.next=null,xt(e,t.props,a,n),Nt(e,t.children,n),(0,r.C4)(),x(e),(0,r.bl)()},W=(e,t,n,r,a,i,o,s,l=!1)=>{const c=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:p,shapeFlag:f}=t;if(p>0){if(128&p)return void V(c,d,n,r,a,i,o,s,l);if(256&p)return void j(c,d,n,r,a,i,o,s,l)}8&f?(16&u&&X(c,a,i),d!==c&&h(n,d)):16&u?16&f?V(c,d,n,r,a,i,o,s,l):X(c,a,i,!0):(8&u&&h(n,""),16&f&&T(d,n,r,a,i,o,s,l))},j=(e,t,n,r,i,o,s,l,c)=>{e=e||a.Oj,t=t||a.Oj;const u=e.length,d=t.length,h=Math.min(u,d);let p;for(p=0;p<h;p++){const r=t[p]=c?Fn(t[p]):Dn(t[p]);v(e[p],r,n,null,i,o,s,l,c)}u>d?X(e,i,o,!0,!1,h):T(t,n,r,i,o,s,l,c,h)},V=(e,t,n,r,i,o,s,l,c)=>{let u=0;const d=t.length;let h=e.length-1,p=d-1;while(u<=h&&u<=p){const r=e[u],a=t[u]=c?Fn(t[u]):Dn(t[u]);if(!Rn(r,a))break;v(r,a,n,null,i,o,s,l,c),u++}while(u<=h&&u<=p){const r=e[h],a=t[p]=c?Fn(t[p]):Dn(t[p]);if(!Rn(r,a))break;v(r,a,n,null,i,o,s,l,c),h--,p--}if(u>h){if(u<=p){const e=p+1,a=e<d?t[e].el:r;while(u<=p)v(null,t[u]=c?Fn(t[u]):Dn(t[u]),n,a,i,o,s,l,c),u++}}else if(u>p)while(u<=h)K(e[u],i,o,!0),u++;else{const f=u,m=u,g=new Map;for(u=m;u<=p;u++){const e=t[u]=c?Fn(t[u]):Dn(t[u]);null!=e.key&&g.set(e.key,u)}let y,b=0;const w=p-m+1;let x=!1,k=0;const _=new Array(w);for(u=0;u<w;u++)_[u]=0;for(u=f;u<=h;u++){const r=e[u];if(b>=w){K(r,i,o,!0);continue}let a;if(null!=r.key)a=g.get(r.key);else for(y=m;y<=p;y++)if(0===_[y-m]&&Rn(r,t[y])){a=y;break}void 0===a?K(r,i,o,!0):(_[a-m]=u+1,a>=k?k=a:x=!0,v(r,t[a],n,null,i,o,s,l,c),b++)}const C=x?Vt(_):a.Oj;for(y=C.length-1,u=w-1;u>=0;u--){const e=m+u,a=t[e],h=e+1<d?t[e+1].el:r;0===_[u]?v(null,a,n,h,i,o,s,l,c):x&&(y<0||u!==C[y]?U(a,n,h,2):y--)}}},U=(e,t,n,r,a=null)=>{const{el:o,type:s,transition:l,children:c,shapeFlag:u}=e;if(6&u)return void U(e.component.subTree,t,n,r);if(128&u)return void e.suspense.move(t,n,r);if(64&u)return void s.move(e,t,n,J);if(s===hn){i(o,t,n);for(let e=0;e<c.length;e++)U(c[e],t,n,r);return void i(e.anchor,t,n)}if(s===mn)return void C(e,t,n);const d=2!==r&&1&u&&l;if(d)if(0===r)l.beforeEnter(o),i(o,t,n),Dt((()=>l.enter(o)),a);else{const{leave:e,delayLeave:r,afterLeave:a}=l,s=()=>i(o,t,n),c=()=>{e(o,(()=>{s(),a&&a()}))};r?r(o,s,c):c()}else i(o,t,n)},K=(e,t,n,r=!1,a=!1)=>{const{type:i,props:o,ref:s,children:l,dynamicChildren:c,shapeFlag:u,patchFlag:d,dirs:h,cacheIndex:p}=e;if(-2===d&&(a=!1),null!=s&&se(s,null,n,e,!0),null!=p&&(t.renderCache[p]=void 0),256&u)return void t.ctx.deactivate(e);const f=1&u&&h,m=!le(e);let g;if(m&&(g=o&&o.onVnodeBeforeUnmount)&&zn(g,t,e),6&u)G(e.component,n,r);else{if(128&u)return void e.suspense.unmount(n,r);f&&M(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,J,r):c&&!c.hasOnce&&(i!==hn||d>0&&64&d)?X(c,t,n,!1,!0):(i===hn&&384&d||!a&&16&u)&&X(l,t,n),r&&H(e)}(m&&(g=o&&o.onVnodeUnmounted)||f)&&Dt((()=>{g&&zn(g,t,e),f&&M(e,null,t,"unmounted")}),n)},H=e=>{const{type:t,el:n,anchor:r,transition:a}=e;if(t===hn)return void q(n,r);if(t===mn)return void E(e);const i=()=>{o(n),a&&!a.persisted&&a.afterLeave&&a.afterLeave()};if(1&e.shapeFlag&&a&&!a.persisted){const{leave:t,delayLeave:r}=a,o=()=>t(n,i);r?r(e.el,i,o):o()}else i()},q=(e,t)=>{let n;while(e!==t)n=f(e),o(e),e=n;o(t)},G=(e,t,n)=>{const{bum:r,scope:i,job:o,subTree:s,um:l,m:c,a:u}=e;Kt(c),Kt(u),r&&(0,a.DY)(r),i.stop(),o&&(o.flags|=8,K(s,e,t,n)),l&&Dt(l,t),Dt((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},X=(e,t,n,r=!1,a=!1,i=0)=>{for(let o=i;o<e.length;o++)K(e[o],t,n,r,a)},Y=e=>{if(6&e.shapeFlag)return Y(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();const t=f(e.anchor||e.el),n=t&&t[L];return n?f(n):t};let Q=!1;const Z=(e,t,n)=>{null==e?t._vnode&&K(t._vnode,null,null,!0):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e,Q||(Q=!0,x(),k(),Q=!1)},J={p:v,um:K,m:U,r:H,mt:F,mc:T,pc:W,pbc:I,n:Y,o:e};let ee,te;return t&&([ee,te]=t(J)),{render:Z,hydrate:ee,createApp:pt(Z,ee)}}function Pt({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function zt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Wt(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function jt(e,t,n=!1){const r=e.children,i=t.children;if((0,a.cy)(r)&&(0,a.cy)(i))for(let a=0;a<r.length;a++){const e=r[a];let t=i[a];1&t.shapeFlag&&!t.dynamicChildren&&((t.patchFlag<=0||32===t.patchFlag)&&(t=i[a]=Fn(i[a]),t.el=e.el),n||-2===t.patchFlag||jt(e,t)),t.type===pn&&(t.el=e.el)}}function Vt(e){const t=e.slice(),n=[0];let r,a,i,o,s;const l=e.length;for(r=0;r<l;r++){const l=e[r];if(0!==l){if(a=n[n.length-1],e[a]<l){t[r]=a,n.push(r);continue}i=0,o=n.length-1;while(i<o)s=i+o>>1,e[n[s]]<l?i=s+1:o=s;l<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}i=n.length,o=n[i-1];while(i-- >0)n[i]=o,o=t[o];return n}function Ut(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ut(t)}function Kt(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const Ht=Symbol.for("v-scx"),qt=()=>{{const e=gt(Ht);return e}};function Gt(e,t){return Yt(e,null,t)}function Xt(e,t,n){return Yt(e,t,n)}function Yt(e,t,n=a.MZ){const{immediate:i,deep:s,flush:l,once:c}=n;const u=(0,a.X$)({},n);const d=t&&i||!t&&"post"!==l;let h;if(Jn)if("sync"===l){const e=qt();h=e.__watcherHandles||(e.__watcherHandles=[])}else if(!d){const e=()=>{};return e.stop=a.tE,e.resume=a.tE,e.pause=a.tE,e}const p=Un;u.call=(e,t,n)=>o(e,p,t,n);let f=!1;"post"===l?u.scheduler=e=>{Dt(e,p&&p.suspense)}:"sync"!==l&&(f=!0,u.scheduler=(e,t)=>{t?e():y(e)}),u.augmentJob=e=>{t&&(e.flags|=4),f&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};const m=(0,r.wB)(e,t,u);return Jn&&(h?h.push(m):d&&m()),m}function Qt(e,t,n){const r=this.proxy,i=(0,a.Kg)(e)?e.includes(".")?Zt(r,e):()=>r[e]:e.bind(r,r);let o;(0,a.Tn)(t)?o=t:(o=t.handler,n=t);const s=Gn(this),l=Yt(i,o.bind(r),n);return s(),l}function Zt(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}const Jt=(e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[`${t}Modifiers`]||e[`${(0,a.PT)(t)}Modifiers`]||e[`${(0,a.Tg)(t)}Modifiers`];function en(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||a.MZ;let i=n;const s=t.startsWith("update:"),l=s&&Jt(r,t.slice(7));let c;l&&(l.trim&&(i=n.map((e=>(0,a.Kg)(e)?e.trim():e))),l.number&&(i=n.map(a.bB)));let u=r[c=(0,a.rU)(t)]||r[c=(0,a.rU)((0,a.PT)(t))];!u&&s&&(u=r[c=(0,a.rU)((0,a.Tg)(t))]),u&&o(u,e,6,i);const d=r[c+"Once"];if(d){if(e.emitted){if(e.emitted[c])return}else e.emitted={};e.emitted[c]=!0,o(d,e,6,i)}}function tn(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(void 0!==i)return i;const o=e.emits;let s={},l=!1;if(!(0,a.Tn)(e)){const r=e=>{const n=tn(e,t,!0);n&&(l=!0,(0,a.X$)(s,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return o||l?((0,a.cy)(o)?o.forEach((e=>s[e]=null)):(0,a.X$)(s,o),(0,a.Gv)(e)&&r.set(e,s),s):((0,a.Gv)(e)&&r.set(e,null),null)}function nn(e,t){return!(!e||!(0,a.Mp)(t))&&(t=t.slice(2).replace(/Once$/,""),(0,a.$3)(e,t[0].toLowerCase()+t.slice(1))||(0,a.$3)(e,(0,a.Tg)(t))||(0,a.$3)(e,t))}function rn(e){const{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[o],slots:l,attrs:c,emit:u,render:d,renderCache:h,props:p,data:f,setupState:m,ctx:g,inheritAttrs:v}=e,y=S(e);let b,w;try{if(4&n.shapeFlag){const e=i||r,t=e;b=Dn(d.call(t,e,h,p,m,f,g)),w=c}else{const e=t;0,b=Dn(e.length>1?e(p,{attrs:c,slots:l,emit:u}):e(p,null)),w=t.props?c:an(c)}}catch(k){gn.length=0,s(k,e,1),b=Mn(fn)}let x=b;if(w&&!1!==v){const e=Object.keys(w),{shapeFlag:t}=x;e.length&&7&t&&(o&&e.some(a.CP)&&(w=on(w,o)),x=In(x,w,!1,!0))}return n.dirs&&(x=In(x,null,!1,!0),x.dirs=x.dirs?x.dirs.concat(n.dirs):n.dirs),n.transition&&re(x,n.transition),b=x,S(y),b}const an=e=>{let t;for(const n in e)("class"===n||"style"===n||(0,a.Mp)(n))&&((t||(t={}))[n]=e[n]);return t},on=(e,t)=>{const n={};for(const r in e)(0,a.CP)(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function sn(e,t,n){const{props:r,children:a,component:i}=e,{props:o,children:s,patchFlag:l}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!a&&!s||s&&s.$stable)||r!==o&&(r?!o||ln(r,o,c):!!o);if(1024&l)return!0;if(16&l)return r?ln(r,o,c):!!o;if(8&l){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(o[n]!==r[n]&&!nn(c,n))return!0}}return!1}function ln(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let a=0;a<r.length;a++){const i=r[a];if(t[i]!==e[i]&&!nn(n,i))return!0}return!1}function cn({vnode:e,parent:t},n){while(t){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r!==e)break;(e=t.vnode).el=n,t=t.parent}}const un=e=>e.__isSuspense;function dn(e,t){t&&t.pendingBranch?(0,a.cy)(e)?t.effects.push(...e):t.effects.push(e):w(e)}const hn=Symbol.for("v-fgt"),pn=Symbol.for("v-txt"),fn=Symbol.for("v-cmt"),mn=Symbol.for("v-stc"),gn=[];let vn=null;function yn(e=!1){gn.push(vn=e?null:[])}function bn(){gn.pop(),vn=gn[gn.length-1]||null}let wn=1;function xn(e,t=!1){wn+=e,e<0&&vn&&t&&(vn.hasOnce=!0)}function kn(e){return e.dynamicChildren=wn>0?vn||a.Oj:null,bn(),wn>0&&vn&&vn.push(e),e}function _n(e,t,n,r,a,i){return kn(Tn(e,t,n,r,a,i,!0))}function Cn(e,t,n,r,a){return kn(Mn(e,t,n,r,a,!0))}function En(e){return!!e&&!0===e.__v_isVNode}function Rn(e,t){return e.type===t.type&&e.key===t.key}const Sn=({key:e})=>null!=e?e:null,An=({ref:e,ref_key:t,ref_for:n})=>("number"===typeof e&&(e=""+e),null!=e?(0,a.Kg)(e)||(0,r.i9)(e)||(0,a.Tn)(e)?{i:E,r:e,k:t,f:!!n}:e:null);function Tn(e,t=null,n=null,r=0,i=null,o=(e===hn?0:1),s=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Sn(t),ref:t&&An(t),scopeId:R,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:E};return l?($n(c,n),128&o&&e.normalize(c)):n&&(c.shapeFlag|=(0,a.Kg)(n)?8:16),wn>0&&!s&&vn&&(c.patchFlag>0||6&o)&&32!==c.patchFlag&&vn.push(c),c}const Mn=Ln;function Ln(e,t=null,n=null,i=0,o=null,s=!1){if(e&&e!==Oe||(e=fn),En(e)){const r=In(e,t,!0);return n&&$n(r,n),wn>0&&!s&&vn&&(6&r.shapeFlag?vn[vn.indexOf(e)]=r:vn.push(r)),r.patchFlag=-2,r}if(lr(e)&&(e=e.__vccOpts),t){t=On(t);let{class:e,style:n}=t;e&&!(0,a.Kg)(e)&&(t.class=(0,a.C4)(e)),(0,a.Gv)(n)&&((0,r.ju)(n)&&!(0,a.cy)(n)&&(n=(0,a.X$)({},n)),t.style=(0,a.Tr)(n))}const l=(0,a.Kg)(e)?1:un(e)?128:O(e)?64:(0,a.Gv)(e)?4:(0,a.Tn)(e)?2:0;return Tn(e,t,n,i,o,l,s,!0)}function On(e){return e?(0,r.ju)(e)||bt(e)?(0,a.X$)({},e):e:null}function In(e,t,n=!1,r=!1){const{props:i,ref:o,patchFlag:s,children:l,transition:c}=e,u=t?Pn(i||{},t):i,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Sn(u),ref:t&&t.ref?n&&o?(0,a.cy)(o)?o.concat(An(t)):[o,An(t)]:An(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==hn?-1===s?16:16|s:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&In(e.ssContent),ssFallback:e.ssFallback&&In(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&re(d,c.clone(d)),d}function Nn(e=" ",t=0){return Mn(pn,null,e,t)}function Bn(e="",t=!1){return t?(yn(),Cn(fn,null,e)):Mn(fn,null,e)}function Dn(e){return null==e||"boolean"===typeof e?Mn(fn):(0,a.cy)(e)?Mn(hn,null,e.slice()):En(e)?Fn(e):Mn(pn,null,String(e))}function Fn(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:In(e)}function $n(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if((0,a.cy)(t))n=16;else if("object"===typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),$n(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||bt(t)?3===r&&E&&(1===E.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=E}}else(0,a.Tn)(t)?(t={default:t,_ctx:E},n=32):(t=String(t),64&r?(n=16,t=[Nn(t)]):n=8);e.children=t,e.shapeFlag|=n}function Pn(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const e in r)if("class"===e)t.class!==r.class&&(t.class=(0,a.C4)([t.class,r.class]));else if("style"===e)t.style=(0,a.Tr)([t.style,r.style]);else if((0,a.Mp)(e)){const n=t[e],i=r[e];!i||n===i||(0,a.cy)(n)&&n.includes(i)||(t[e]=n?[].concat(n,i):i)}else""!==e&&(t[e]=r[e])}return t}function zn(e,t,n,r=null){o(e,t,7,[n,r])}const Wn=dt();let jn=0;function Vn(e,t,n){const i=e.type,o=(t?t.appContext:e.appContext)||Wn,s={uid:jn++,vnode:e,type:i,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new r.yC(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Et(i,o),emitsOptions:tn(i,o),emit:null,emitted:null,propsDefaults:a.MZ,inheritAttrs:i.inheritAttrs,ctx:a.MZ,data:a.MZ,props:a.MZ,attrs:a.MZ,slots:a.MZ,refs:a.MZ,setupState:a.MZ,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return s.ctx={_:s},s.root=t?t.root:s,s.emit=en.bind(null,s),e.ce&&e.ce(s),s}let Un=null;const Kn=()=>Un||E;let Hn,qn;{const e=(0,a.We)(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach((t=>t(e))):r[0](e)}};Hn=t("__VUE_INSTANCE_SETTERS__",(e=>Un=e)),qn=t("__VUE_SSR_SETTERS__",(e=>Jn=e))}const Gn=e=>{const t=Un;return Hn(e),e.scope.on(),()=>{e.scope.off(),Hn(t)}},Xn=()=>{Un&&Un.scope.off(),Hn(null)};function Yn(e){return 4&e.vnode.shapeFlag}let Qn,Zn,Jn=!1;function er(e,t=!1,n=!1){t&&qn(t);const{props:r,children:a}=e.vnode,i=Yn(e);wt(e,r,i,t),It(e,a,n);const o=i?tr(e,t):void 0;return t&&qn(!1),o}function tr(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ke);const{setup:o}=n;if(o){(0,r.C4)();const n=e.setupContext=o.length>1?ir(e):null,l=Gn(e),c=i(o,e,0,[e.props,n]),u=(0,a.yL)(c);if((0,r.bl)(),l(),!u&&!e.sp||le(e)||oe(e),u){if(c.then(Xn,Xn),t)return c.then((n=>{nr(e,n,t)})).catch((t=>{s(t,e,0)}));e.asyncDep=c}else nr(e,c,t)}else rr(e,t)}function nr(e,t,n){(0,a.Tn)(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:(0,a.Gv)(t)&&(e.setupState=(0,r.Pr)(t)),rr(e,n)}function rr(e,t,n){const i=e.type;if(!e.render){if(!t&&Qn&&!i.render){const t=i.template||tt(e).template;if(t){0;const{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:o,compilerOptions:s}=i,l=(0,a.X$)((0,a.X$)({isCustomElement:n,delimiters:o},r),s);i.render=Qn(t,l)}}e.render=i.render||a.tE,Zn&&Zn(e)}{const t=Gn(e);(0,r.C4)();try{Qe(e)}finally{(0,r.bl)(),t()}}}const ar={get(e,t){return(0,r.u4)(e,"get",""),e[t]}};function ir(e){const t=t=>{e.exposed=t||{}};return{attrs:new Proxy(e.attrs,ar),slots:e.slots,emit:e.emit,expose:t}}function or(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy((0,r.Pr)((0,r.IG)(e.exposed)),{get(t,n){return n in t?t[n]:n in Ve?Ve[n](e):void 0},has(e,t){return t in e||t in Ve}})):e.proxy}function sr(e,t=!0){return(0,a.Tn)(e)?e.displayName||e.name:e.name||t&&e.__name}function lr(e){return(0,a.Tn)(e)&&"__vccOpts"in e}const cr=(e,t)=>{const n=(0,r.EW)(e,t,Jn);return n};function ur(e,t,n){const r=arguments.length;return 2===r?(0,a.Gv)(t)&&!(0,a.cy)(t)?En(t)?Mn(e,null,[t]):Mn(e,t):Mn(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&En(n)&&(n=[n]),Mn(e,t,n))}const dr="3.5.13",hr=a.tE},5130:function(e,t,n){"use strict";n.d(t,{D$:function(){return Ne},Ef:function(){return We},F:function(){return ve},Jo:function(){return Re},XL:function(){return Te},XX:function(){return ze},aG:function(){return $},eB:function(){return w},jR:function(){return De},lH:function(){return Se}});n(4114),n(7642),n(8004),n(3853),n(5876),n(2475),n(5024),n(1698),n(8992),n(4520),n(3949),n(1454),n(7550);var r=n(6768),a=n(4232),i=n(144);
/**
* @vue/runtime-dom v3.5.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/
let o;const s="undefined"!==typeof window&&window.trustedTypes;if(s)try{o=s.createPolicy("vue",{createHTML:e=>e})}catch(Ue){}const l=o?e=>o.createHTML(e):e=>e,c="http://www.w3.org/2000/svg",u="http://www.w3.org/1998/Math/MathML",d="undefined"!==typeof document?document:null,h=d&&d.createElement("template"),p={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const a="svg"===t?d.createElementNS(c,e):"mathml"===t?d.createElementNS(u,e):n?d.createElement(e,{is:n}):d.createElement(e);return"select"===e&&r&&null!=r.multiple&&a.setAttribute("multiple",r.multiple),a},createText:e=>d.createTextNode(e),createComment:e=>d.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>d.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,a,i){const o=n?n.previousSibling:t.lastChild;if(a&&(a===i||a.nextSibling)){while(1)if(t.insertBefore(a.cloneNode(!0),n),a===i||!(a=a.nextSibling))break}else{h.innerHTML=l("svg"===r?`<svg>${e}</svg>`:"mathml"===r?`<math>${e}</math>`:e);const a=h.content;if("svg"===r||"mathml"===r){const e=a.firstChild;while(e.firstChild)a.appendChild(e.firstChild);a.removeChild(e)}t.insertBefore(a,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},f="transition",m="animation",g=Symbol("_vtc"),v={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},y=(0,a.X$)({},r.QP,v),b=e=>(e.displayName="Transition",e.props=y,e),w=b(((e,{slots:t})=>(0,r.h)(r.pR,_(e),t))),x=(e,t=[])=>{(0,a.cy)(e)?e.forEach((e=>e(...t))):e&&e(...t)},k=e=>!!e&&((0,a.cy)(e)?e.some((e=>e.length>1)):e.length>1);function _(e){const t={};for(const a in e)a in v||(t[a]=e[a]);if(!1===e.css)return t;const{name:n="v",type:r,duration:i,enterFromClass:o=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=o,appearActiveClass:u=s,appearToClass:d=l,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:f=`${n}-leave-to`}=e,m=C(i),g=m&&m[0],y=m&&m[1],{onBeforeEnter:b,onEnter:w,onEnterCancelled:_,onLeave:E,onLeaveCancelled:T,onBeforeAppear:L=b,onAppear:O=w,onAppearCancelled:I=_}=t,B=(e,t,n,r)=>{e._enterCancelled=r,S(e,t?d:l),S(e,t?u:s),n&&n()},D=(e,t)=>{e._isLeaving=!1,S(e,h),S(e,f),S(e,p),t&&t()},F=e=>(t,n)=>{const a=e?O:w,i=()=>B(t,e,n);x(a,[t,i]),A((()=>{S(t,e?c:o),R(t,e?d:l),k(a)||M(t,r,g,i)}))};return(0,a.X$)(t,{onBeforeEnter(e){x(b,[e]),R(e,o),R(e,s)},onBeforeAppear(e){x(L,[e]),R(e,c),R(e,u)},onEnter:F(!1),onAppear:F(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>D(e,t);R(e,h),e._enterCancelled?(R(e,p),N()):(N(),R(e,p)),A((()=>{e._isLeaving&&(S(e,h),R(e,f),k(E)||M(e,r,y,n))})),x(E,[e,n])},onEnterCancelled(e){B(e,!1,void 0,!0),x(_,[e])},onAppearCancelled(e){B(e,!0,void 0,!0),x(I,[e])},onLeaveCancelled(e){D(e),x(T,[e])}})}function C(e){if(null==e)return null;if((0,a.Gv)(e))return[E(e.enter),E(e.leave)];{const t=E(e);return[t,t]}}function E(e){const t=(0,a.Ro)(e);return t}function R(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e[g]||(e[g]=new Set)).add(t)}function S(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const n=e[g];n&&(n.delete(t),n.size||(e[g]=void 0))}function A(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let T=0;function M(e,t,n,r){const a=e._endId=++T,i=()=>{a===e._endId&&r()};if(null!=n)return setTimeout(i,n);const{type:o,timeout:s,propCount:l}=L(e,t);if(!o)return r();const c=o+"end";let u=0;const d=()=>{e.removeEventListener(c,h),i()},h=t=>{t.target===e&&++u>=l&&d()};setTimeout((()=>{u<l&&d()}),s+1),e.addEventListener(c,h)}function L(e,t){const n=window.getComputedStyle(e),r=e=>(n[e]||"").split(", "),a=r(`${f}Delay`),i=r(`${f}Duration`),o=O(a,i),s=r(`${m}Delay`),l=r(`${m}Duration`),c=O(s,l);let u=null,d=0,h=0;t===f?o>0&&(u=f,d=o,h=i.length):t===m?c>0&&(u=m,d=c,h=l.length):(d=Math.max(o,c),u=d>0?o>c?f:m:null,h=u?u===f?i.length:l.length:0);const p=u===f&&/\b(transform|all)(,|$)/.test(r(`${f}Property`).toString());return{type:u,timeout:d,propCount:h,hasTransform:p}}function O(e,t){while(e.length<t.length)e=e.concat(e);return Math.max(...t.map(((t,n)=>I(t)+I(e[n]))))}function I(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function N(){return document.body.offsetHeight}function B(e,t,n){const r=e[g];r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const D=Symbol("_vod"),F=Symbol("_vsh"),$={beforeMount(e,{value:t},{transition:n}){e[D]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):P(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!==!n&&(r?t?(r.beforeEnter(e),P(e,!0),r.enter(e)):r.leave(e,(()=>{P(e,!1)})):P(e,t))},beforeUnmount(e,{value:t}){P(e,t)}};function P(e,t){e.style.display=t?e[D]:"none",e[F]=!t}const z=Symbol("");const W=/(^|;)\s*display\s*:/;function j(e,t,n){const r=e.style,i=(0,a.Kg)(n);let o=!1;if(n&&!i){if(t)if((0,a.Kg)(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&U(r,t,"")}else for(const e in t)null==n[e]&&U(r,e,"");for(const e in n)"display"===e&&(o=!0),U(r,e,n[e])}else if(i){if(t!==n){const e=r[z];e&&(n+=";"+e),r.cssText=n,o=W.test(n)}}else t&&e.removeAttribute("style");D in e&&(e[D]=o?r.display:"",e[F]&&(r.display="none"))}const V=/\s*!important$/;function U(e,t,n){if((0,a.cy)(n))n.forEach((n=>U(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=q(e,t);V.test(n)?e.setProperty((0,a.Tg)(r),n.replace(V,""),"important"):e[r]=n}}const K=["Webkit","Moz","ms"],H={};function q(e,t){const n=H[t];if(n)return n;let r=(0,a.PT)(t);if("filter"!==r&&r in e)return H[t]=r;r=(0,a.ZH)(r);for(let a=0;a<K.length;a++){const n=K[a]+r;if(n in e)return H[t]=n}return t}const G="http://www.w3.org/1999/xlink";function X(e,t,n,r,i,o=(0,a.J$)(t)){r&&t.startsWith("xlink:")?null==n?e.removeAttributeNS(G,t.slice(6,t.length)):e.setAttributeNS(G,t,n):null==n||o&&!(0,a.Y2)(n)?e.removeAttribute(t):e.setAttribute(t,o?"":(0,a.Bm)(n)?String(n):n)}function Y(e,t,n,r,i){if("innerHTML"===t||"textContent"===t)return void(null!=n&&(e[t]="innerHTML"===t?l(n):n));const o=e.tagName;if("value"===t&&"PROGRESS"!==o&&!o.includes("-")){const r="OPTION"===o?e.getAttribute("value")||"":e.value,a=null==n?"checkbox"===e.type?"on":"":String(n);return r===a&&"_value"in e||(e.value=a),null==n&&e.removeAttribute(t),void(e._value=n)}let s=!1;if(""===n||null==n){const r=typeof e[t];"boolean"===r?n=(0,a.Y2)(n):null==n&&"string"===r?(n="",s=!0):"number"===r&&(n=0,s=!0)}try{e[t]=n}catch(Ue){0}s&&e.removeAttribute(i||t)}function Q(e,t,n,r){e.addEventListener(t,n,r)}function Z(e,t,n,r){e.removeEventListener(t,n,r)}const J=Symbol("_vei");function ee(e,t,n,r,a=null){const i=e[J]||(e[J]={}),o=i[t];if(r&&o)o.value=r;else{const[n,s]=ne(t);if(r){const o=i[t]=oe(r,a);Q(e,n,o,s)}else o&&(Z(e,n,o,s),i[t]=void 0)}}const te=/(?:Once|Passive|Capture)$/;function ne(e){let t;if(te.test(e)){let n;t={};while(n=e.match(te))e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}const n=":"===e[2]?e.slice(3):(0,a.Tg)(e.slice(2));return[n,t]}let re=0;const ae=Promise.resolve(),ie=()=>re||(ae.then((()=>re=0)),re=Date.now());function oe(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();(0,r.qL)(se(e,n.value),t,5,[e])};return n.value=e,n.attached=ie(),n}function se(e,t){if((0,a.cy)(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}const le=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,ce=(e,t,n,r,i,o)=>{const s="svg"===i;"class"===t?B(e,r,s):"style"===t?j(e,n,r):(0,a.Mp)(t)?(0,a.CP)(t)||ee(e,t,n,r,o):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):ue(e,t,r,s))?(Y(e,t,r),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||X(e,t,r,s,o,"value"!==t)):!e._isVueCE||!/[A-Z]/.test(t)&&(0,a.Kg)(r)?("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),X(e,t,r,s)):Y(e,(0,a.PT)(t),r,o,t)};function ue(e,t,n,r){if(r)return"innerHTML"===t||"textContent"===t||!!(t in e&&le(t)&&(0,a.Tn)(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}return(!le(t)||!(0,a.Kg)(n))&&t in e}
/*! #__NO_SIDE_EFFECTS__ */
"undefined"!==typeof HTMLElement&&HTMLElement;const de=new WeakMap,he=new WeakMap,pe=Symbol("_moveCb"),fe=Symbol("_enterCb"),me=e=>(delete e.props.mode,e),ge=me({name:"TransitionGroup",props:(0,a.X$)({},y,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=(0,r.nI)(),a=(0,r.Gy)();let o,s;return(0,r.$u)((()=>{if(!o.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!xe(o[0].el,n.vnode.el,t))return;o.forEach(ye),o.forEach(be);const r=o.filter(we);N(),r.forEach((e=>{const n=e.el,r=n.style;R(n,t),r.transform=r.webkitTransform=r.transitionDuration="";const a=n[pe]=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",a),n[pe]=null,S(n,t))};n.addEventListener("transitionend",a)}))})),()=>{const l=(0,i.ux)(e),c=_(l);let u=l.tag||r.FK;if(o=[],s)for(let e=0;e<s.length;e++){const t=s[e];t.el&&t.el instanceof Element&&(o.push(t),(0,r.MZ)(t,(0,r.OW)(t,c,a,n)),de.set(t,t.el.getBoundingClientRect()))}s=t.default?(0,r.Df)(t.default()):[];for(let e=0;e<s.length;e++){const t=s[e];null!=t.key&&(0,r.MZ)(t,(0,r.OW)(t,c,a,n))}return(0,r.bF)(u,null,s)}}}),ve=ge;function ye(e){const t=e.el;t[pe]&&t[pe](),t[fe]&&t[fe]()}function be(e){he.set(e,e.el.getBoundingClientRect())}function we(e){const t=de.get(e),n=he.get(e),r=t.left-n.left,a=t.top-n.top;if(r||a){const t=e.el.style;return t.transform=t.webkitTransform=`translate(${r}px,${a}px)`,t.transitionDuration="0s",e}}function xe(e,t,n){const r=e.cloneNode(),a=e[g];a&&a.forEach((e=>{e.split(/\s+/).forEach((e=>e&&r.classList.remove(e)))})),n.split(/\s+/).forEach((e=>e&&r.classList.add(e))),r.style.display="none";const i=1===t.nodeType?t:t.parentNode;i.appendChild(r);const{hasTransform:o}=L(r);return i.removeChild(r),o}const ke=e=>{const t=e.props["onUpdate:modelValue"]||!1;return(0,a.cy)(t)?e=>(0,a.DY)(t,e):t};function _e(e){e.target.composing=!0}function Ce(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ee=Symbol("_assign"),Re={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[Ee]=ke(i);const o=r||i.props&&"number"===i.props.type;Q(e,t?"change":"input",(t=>{if(t.target.composing)return;let r=e.value;n&&(r=r.trim()),o&&(r=(0,a.bB)(r)),e[Ee](r)})),n&&Q(e,"change",(()=>{e.value=e.value.trim()})),t||(Q(e,"compositionstart",_e),Q(e,"compositionend",Ce),Q(e,"change",Ce))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:o}},s){if(e[Ee]=ke(s),e.composing)return;const l=!o&&"number"!==e.type||/^0\d/.test(e.value)?e.value:(0,a.bB)(e.value),c=null==t?"":t;if(l!==c){if(document.activeElement===e&&"range"!==e.type){if(r&&t===n)return;if(i&&e.value.trim()===c)return}e.value=c}}},Se={deep:!0,created(e,t,n){e[Ee]=ke(n),Q(e,"change",(()=>{const t=e._modelValue,n=Me(e),r=e.checked,i=e[Ee];if((0,a.cy)(t)){const e=(0,a.u3)(t,n),o=-1!==e;if(r&&!o)i(t.concat(n));else if(!r&&o){const n=[...t];n.splice(e,1),i(n)}}else if((0,a.vM)(t)){const e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(Le(e,r))}))},mounted:Ae,beforeUpdate(e,t,n){e[Ee]=ke(n),Ae(e,t,n)}};function Ae(e,{value:t,oldValue:n},r){let i;if(e._modelValue=t,(0,a.cy)(t))i=(0,a.u3)(t,r.props.value)>-1;else if((0,a.vM)(t))i=t.has(r.props.value);else{if(t===n)return;i=(0,a.BX)(t,Le(e,!0))}e.checked!==i&&(e.checked=i)}const Te={created(e,{value:t},n){e.checked=(0,a.BX)(t,n.props.value),e[Ee]=ke(n),Q(e,"change",(()=>{e[Ee](Me(e))}))},beforeUpdate(e,{value:t,oldValue:n},r){e[Ee]=ke(r),t!==n&&(e.checked=(0,a.BX)(t,r.props.value))}};function Me(e){return"_value"in e?e._value:e.value}function Le(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Oe=["ctrl","shift","alt","meta"],Ie={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>Oe.some((n=>e[`${n}Key`]&&!t.includes(n)))},Ne=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(n,...r)=>{for(let e=0;e<t.length;e++){const r=Ie[t[e]];if(r&&r(n,t))return}return e(n,...r)})},Be={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},De=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=n=>{if(!("key"in n))return;const r=(0,a.Tg)(n.key);return t.some((e=>e===r||Be[e]===r))?e(n):void 0})},Fe=(0,a.X$)({patchProp:ce},p);let $e;function Pe(){return $e||($e=(0,r.K9)(Fe))}const ze=(...e)=>{Pe().render(...e)},We=(...e)=>{const t=Pe().createApp(...e);const{mount:n}=t;return t.mount=e=>{const r=Ve(e);if(!r)return;const i=t._component;(0,a.Tn)(i)||i.render||i.template||(i.template=r.innerHTML),1===r.nodeType&&(r.textContent="");const o=n(r,!1,je(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t};function je(e){return e instanceof SVGElement?"svg":"function"===typeof MathMLElement&&e instanceof MathMLElement?"mathml":void 0}function Ve(e){if((0,a.Kg)(e)){const t=document.querySelector(e);return t}return e}},4232:function(e,t,n){"use strict";n.d(t,{$3:function(){return p},$H:function(){return F},$P:function(){return v},BH:function(){return K},BX:function(){return re},Bm:function(){return x},C4:function(){return Q},CE:function(){return m},CP:function(){return c},DY:function(){return $},Gv:function(){return k},J$:function(){return ee},Kg:function(){return w},MZ:function(){return a},Mp:function(){return l},NO:function(){return s},Oj:function(){return i},PT:function(){return O},Qd:function(){return S},Ro:function(){return W},SU:function(){return T},TF:function(){return d},Tg:function(){return N},Tn:function(){return b},Tr:function(){return H},We:function(){return V},X$:function(){return u},Y2:function(){return te},ZH:function(){return B},Zf:function(){return R},_B:function(){return Z},bB:function(){return z},cy:function(){return f},gd:function(){return y},pD:function(){return r},rU:function(){return D},tE:function(){return o},u3:function(){return ae},vM:function(){return g},v_:function(){return oe},yI:function(){return A},yL:function(){return _},yQ:function(){return P}});n(4114),n(8992),n(4520),n(3949),n(1454),n(8872);
/**
* @vue/shared v3.5.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/
/*! #__NO_SIDE_EFFECTS__ */
function r(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return e=>e in t}const a={},i=[],o=()=>{},s=()=>!1,l=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),c=e=>e.startsWith("onUpdate:"),u=Object.assign,d=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},h=Object.prototype.hasOwnProperty,p=(e,t)=>h.call(e,t),f=Array.isArray,m=e=>"[object Map]"===E(e),g=e=>"[object Set]"===E(e),v=e=>"[object Date]"===E(e),y=e=>"[object RegExp]"===E(e),b=e=>"function"===typeof e,w=e=>"string"===typeof e,x=e=>"symbol"===typeof e,k=e=>null!==e&&"object"===typeof e,_=e=>(k(e)||b(e))&&b(e.then)&&b(e.catch),C=Object.prototype.toString,E=e=>C.call(e),R=e=>E(e).slice(8,-1),S=e=>"[object Object]"===E(e),A=e=>w(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,T=r(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),M=e=>{const t=Object.create(null);return n=>{const r=t[n];return r||(t[n]=e(n))}},L=/-(\w)/g,O=M((e=>e.replace(L,((e,t)=>t?t.toUpperCase():"")))),I=/\B([A-Z])/g,N=M((e=>e.replace(I,"-$1").toLowerCase())),B=M((e=>e.charAt(0).toUpperCase()+e.slice(1))),D=M((e=>{const t=e?`on${B(e)}`:"";return t})),F=(e,t)=>!Object.is(e,t),$=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},P=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},z=e=>{const t=parseFloat(e);return isNaN(t)?e:t},W=e=>{const t=w(e)?Number(e):NaN;return isNaN(t)?e:t};let j;const V=()=>j||(j="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{});const U="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol",K=r(U);function H(e){if(f(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],a=w(r)?Y(r):H(r);if(a)for(const e in a)t[e]=a[e]}return t}if(w(e)||k(e))return e}const q=/;(?![^(]*\))/g,G=/:([^]+)/,X=/\/\*[^]*?\*\//g;function Y(e){const t={};return e.replace(X,"").split(q).forEach((e=>{if(e){const n=e.split(G);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function Q(e){let t="";if(w(e))t=e;else if(f(e))for(let n=0;n<e.length;n++){const r=Q(e[n]);r&&(t+=r+" ")}else if(k(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Z(e){if(!e)return null;let{class:t,style:n}=e;return t&&!w(t)&&(e.class=Q(t)),n&&(e.style=H(n)),e}const J="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ee=r(J);function te(e){return!!e||""===e}function ne(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=re(e[r],t[r]);return n}function re(e,t){if(e===t)return!0;let n=v(e),r=v(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime();if(n=x(e),r=x(t),n||r)return e===t;if(n=f(e),r=f(t),n||r)return!(!n||!r)&&ne(e,t);if(n=k(e),r=k(t),n||r){if(!n||!r)return!1;const a=Object.keys(e).length,i=Object.keys(t).length;if(a!==i)return!1;for(const n in e){const r=e.hasOwnProperty(n),a=t.hasOwnProperty(n);if(r&&!a||!r&&a||!re(e[n],t[n]))return!1}}return String(e)===String(t)}function ae(e,t){return e.findIndex((e=>re(e,t)))}const ie=e=>!(!e||!0!==e["__v_isRef"]),oe=e=>w(e)?e:null==e?"":f(e)||k(e)&&(e.toString===C||!b(e.toString))?ie(e)?oe(e.value):JSON.stringify(e,se,2):String(e),se=(e,t)=>ie(t)?se(e,t.value):m(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n],r)=>(e[le(t,r)+" =>"]=n,e)),{})}:g(t)?{[`Set(${t.size})`]:[...t.values()].map((e=>le(e)))}:x(t)?le(t):!k(t)||f(t)||S(t)?t:String(t),le=(e,t="")=>{var n;return x(e)?`Symbol(${null!=(n=e.description)?n:t})`:e}},6103:function(e,t,n){"use strict";n(4114),n(6573),n(8100),n(7936),n(7467),n(4732),n(9577),t.byteLength=u,t.toByteArray=h,t.fromByteArray=m;for(var r=[],a=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=o.length;s<l;++s)r[s]=o[s],a[o.charCodeAt(s)]=s;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function u(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r}function d(e,t,n){return 3*(t+n)/4-n}function h(e){var t,n,r=c(e),o=r[0],s=r[1],l=new i(d(e,o,s)),u=0,h=s>0?o-4:o;for(n=0;n<h;n+=4)t=a[e.charCodeAt(n)]<<18|a[e.charCodeAt(n+1)]<<12|a[e.charCodeAt(n+2)]<<6|a[e.charCodeAt(n+3)],l[u++]=t>>16&255,l[u++]=t>>8&255,l[u++]=255&t;return 2===s&&(t=a[e.charCodeAt(n)]<<2|a[e.charCodeAt(n+1)]>>4,l[u++]=255&t),1===s&&(t=a[e.charCodeAt(n)]<<10|a[e.charCodeAt(n+1)]<<4|a[e.charCodeAt(n+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t),l}function p(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function f(e,t,n){for(var r,a=[],i=t;i<n;i+=3)r=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(255&e[i+2]),a.push(p(r));return a.join("")}function m(e){for(var t,n=e.length,a=n%3,i=[],o=16383,s=0,l=n-a;s<l;s+=o)i.push(f(e,s,s+o>l?l:s+o));return 1===a?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===a&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),i.join("")}a["-".charCodeAt(0)]=62,a["_".charCodeAt(0)]=63},6450:function(e,t,n){"use strict";n(4114),n(8992),n(1454),n(8872),n(7550);const r=n(1646),a=Math.round,i=(e,t)=>["svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:t,viewBox:[0,0,e,t].join(" ")}],o=(e,t,n)=>Object.assign({transform:"translate("+e+(t?","+t:"")+")"},"object"===typeof n?n:{}),s={2:"#ff0000",3:"#aaff00",4:"#00ffd5",5:"#ffbf00",6:"#00ff19",7:"#006aff"},l=e=>void 0!==s[e]?";fill:"+s[e]:"",c=(e,t)=>Object.assign(Object.keys(e).reduce(((t,n)=>{const r=Number(e[n]),a=isNaN(r)?0:Math.round(r);return 0!==a&&(t[n]=a),t}),{}),t),u=(e,t,n)=>{if(!("string"===typeof e||e instanceof String))return e;const r=e.length*n;if(r<=t)return e;var i=e.length-(r-t)/n-3;return i>0?e.substring(0,a(i))+"...":e.substring(0,1)+"..."},d=(e,t,n,i)=>{const s={y:6};return void 0!==i&&(s.transform="rotate("+i+")"),["g",o(a(t),a(n)),["text",s].concat(r.parse(e))]},h=(e,t,n)=>["line",c({x1:t,x2:t+e,y1:n,y2:n})],p=(e,t,n)=>["line",c({x1:t,x2:t,y1:n,y2:n+e})],f=(e,t,n,r,a,i)=>{if("number"!==typeof e)return d(e,t,n,i);const o=["g",{}];for(let s=0;s<a;s++)o.push(d(e>>s&1,t+r*(a/2-s-.5),n));return o},m=(e,t,n,r,a)=>{const i=t.vflip?n*((a+r)/2):n*(t.mod-(a+r)/2-1);return Array.isArray(e.attr)?e.attr.reduce(((r,a,o)=>void 0===a||null===a?r:r.concat([f(a,i,t.fontsize*o,n,e.bits)])),["g",{}]):f(e.attr,i,0,n,e.bits)},g=(e,t)=>{const{margin:n,hspace:r,vspace:i,mod:s,index:h,fontsize:p,vflip:g,trim:v,compact:y,offset:b}=t,w=r-n.left-n.right-1,x=i-n.top-n.bottom,k=w/s,_=["g"],C=["g",o(a(k/2),-a(.5*p+4))],E=["g",o(a(k/2),a(.5*x+.4*p-6))],R=["g",o(a(k/2),a(x+.7*p-2))];return e.map((e=>{let n=0,r=s-1,a=h*s,i=(h+1)*s-1;if((e.lsb/s|0)===h)n=e.lsbm,a=e.lsb,(e.msb/s|0)===h&&(i=e.msb,r=e.msbm);else if((e.msb/s|0)===h)i=e.msb,r=e.msbm;else if(!(a>e.lsb&&i<e.msb))return;y||(C.push(d(a+b,k*(g?n:s-n-1))),n!==r&&C.push(d(i+b,k*(g?r:s-r-1)))),void 0!==e.name&&E.push(f(v?u(e.name,k*e.bits,v):e.name,k*(g?(r+n)/2:s-(r+n)/2-1),0,k,e.bits,e.rotate)),void 0!==e.name&&void 0===e.type||t.compact&&void 0===e.type||_.push(["rect",Object.assign({},c({x:k*(g?n:s-r-1),width:k*(r-n+1),height:x},{field:e.name,style:"fill-opacity:0.1"+l(e.type)}),void 0!==e.rect?e.rect:{})]),void 0!==e.attr&&R.push(m(e,t,k,n,r))})),["g",_,C,E,R]},v=(e,t)=>{const n=[];let r=0;return e.map((e=>{n[r%t]=!0,r+=e.bits,n[(r-1)%t]=!0})),n},y=e=>{const{hspace:t,margin:n,fontsize:r,legend:a}=e,i=t-n.left-n.right-1,s=["g",o(n.left,-10)],u=36,h=24;let p=i/2-Object.keys(a).length/2*(u+h);for(const o in a){const e=a[o];s.push(["rect",c({x:p,width:12,height:12},{style:"fill-opacity:0.15; stroke: #000; stroke-width: 1.2;"+l(e)})]),p+=u,s.push(d(o,p,.1*r+4)),p+=h}return s},b=(e,t)=>{const{hspace:n,margin:r,mod:a,fontsize:i,vflip:s,legend:l,offset:c}=t,u=n-r.left-r.right-1,h=u/a,p=["g",o(r.left,l?0:-3)],f=v(e,a);for(let o=0;o<a;o++){const e=s?o:a-o-1;f[e]&&p.push(d(e+c,h*(o+.5),.5*i+4))}return p},w=(e,t,n)=>{if(!t.compact)return!1;const r=e=>void 0===e.name&&void 0===e.type;return-1!==e.findIndex((e=>r(e)&&n>e.lsb&&n<=e.msb+1))},x=(e,t)=>{const{hspace:n,vspace:r,mod:a,margin:i,index:o,vflip:s}=t,l=n-i.left-i.right-1,c=r-i.top-i.bottom,u=["g",{stroke:"black","stroke-width":1,"stroke-linecap":"round"}];if(t.sparse){const e=t.uneven&&t.bits%2===1&&o===t.lanes-1;e?s?u.push(h(l-l/a,0,0),h(l-l/a,0,c)):u.push(h(l-l/a,l/a,0),h(l-l/a,l/a,c)):t.compact||u.push(h(l,0,0),h(l,0,c),p(c,s?l:0,0))}else u.push(h(l,0,0),p(c,s?l:0,0),h(l,0,c));let d=o*a;const f=s?1:-1;let m=s?0:a;if(t.sparse)for(let g=0;g<=a;g++){const n=m*(l/a);(!w(e,t,d)&&0!==g||!w(e,t,d+1)&&g!==a)&&(0===g||g===a||e.some((e=>e.msb+1===d))?u.push(p(c,n,0)):(u.push(p(c>>>3,n,0)),u.push(p(-(c>>>3),n,c)))),t.compact&&0!==g&&!w(e,t,d)&&(u.push(h(l/a,n,0)),u.push(h(l/a,n,c))),d++,m+=f}else for(let h=0;h<a;h++){const t=m*(l/a);0===h||e.some((e=>e.lsb===d))?u.push(p(c,t,0)):u.push(p(c>>>3,t,0),p(-(c>>>3),t,c)),d++,m+=f}return u},k=(e,t)=>{const{index:n,vspace:r,hspace:i,margin:s,hflip:l,lanes:c,compact:u,label:h}=t,p=r-s.top-s.bottom,f=i-s.left-s.right-1;let m=s.left;const v=l?n:c-n-1;let y=a(v*r+s.top);u&&(y=a(v*p+s.top));const b=["g",o(m,y),x(e,t),g(e,t)];if(h&&void 0!==h.left){const e=h.left;let t=n;"string"===typeof e?t=e:"number"===typeof e?t+=e:"object"===typeof e&&(t=e[n]||t),b.push(["g",{"text-anchor":"end"},d(t,-4,a(p/2))])}if(h&&void 0!==h.right){const e=h.right;let t=n;"string"===typeof e?t=e:"number"===typeof e?t+=e:"object"===typeof e&&(t=e[n]||t),b.push(["g",{"text-anchor":"start"},d(t,f+4,a(p/2))])}return b},_=e=>e.reduce(((e,t)=>Math.max(e,void 0===t.attr?0:Array.isArray(t.attr)?t.attr.length:1)),0),C=e=>e.reduce(((e,t)=>e+(void 0===t.bits?0:t.bits)),0),E=e=>t=>{const[n,r,a]=t,i=Math.round(e[n]);e[n]="number"===typeof i&&i>=r?i:a},R=e=>(e="object"===typeof e?e:{},[["hspace",40,800],["lanes",1,1],["bits",1,void 0],["fontsize",6,14]].map(E(e)),e.fontfamily=e.fontfamily||"sans-serif",e.fontweight=e.fontweight||"normal",e.compact=e.compact||!1,e.hflip=e.hflip||!1,e.uneven=e.uneven||!1,e.margin=e.margin||{},e.offset=e.offset||0,e),S=(e,t)=>{t=R(t);const n=_(e);t.vspace=t.vspace||(n+4)*t.fontsize,void 0===t.bits&&(t.bits=C(e));const{hspace:r,vspace:s,lanes:l,margin:c,compact:u,fontsize:d,bits:h,label:p,legend:f}=t;void 0===c.right&&(p&&void 0!==p.right?c.right=a(.1*r):c.right=4),void 0===c.left&&(p&&void 0!==p.left?c.left=a(.1*r):c.left=4),void 0===c.top?(c.top=1.5*d,void 0===c.bottom&&(c.bottom=d*n+4)):void 0===c.bottom&&(c.bottom=4);const m=r;let g=s*l;u&&(g-=(l-1)*(c.top+c.bottom)),f&&(g+=12);const v=["g",o(.5,f?12.5:.5,{"text-anchor":"middle","font-size":t.fontsize,"font-family":t.fontfamily,"font-weight":t.fontweight})];let w=0;const x=Math.ceil(1*h/l);t.mod=0|x,e.map((e=>{e.lsb=w,e.lsbm=w%x,w+=e.bits,e.msb=w-1,e.msbm=e.msb%x}));for(let a=0;a<l;a++)t.index=a,v.push(k(e,t));return u&&v.push(b(e,t)),f&&v.push(y(t)),i(m,g).concat([v])};e.exports=S},712:function(e,t,n){"use strict";
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/n(4114),n(6573),n(8100),n(7936),n(7467),n(4732),n(9577);var r=n(6103),a=n(9046),i="function"===typeof Symbol&&"function"===typeof Symbol["for"]?Symbol["for"]("nodejs.util.inspect.custom"):null;t.Buffer=c,t.SlowBuffer=w,t.INSPECT_MAX_BYTES=50;var o=2147483647;function s(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(n){return!1}}function l(e){if(e>o)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,n){if("number"===typeof e){if("string"===typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return p(e)}return u(e,t,n)}function u(e,t,n){if("string"===typeof e)return f(e,t);if(ArrayBuffer.isView(e))return g(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Q(e,ArrayBuffer)||e&&Q(e.buffer,ArrayBuffer))return v(e,t,n);if("undefined"!==typeof SharedArrayBuffer&&(Q(e,SharedArrayBuffer)||e&&Q(e.buffer,SharedArrayBuffer)))return v(e,t,n);if("number"===typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return c.from(r,t,n);var a=y(e);if(a)return a;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function d(e){if("number"!==typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function h(e,t,n){return d(e),e<=0?l(e):void 0!==t?"string"===typeof n?l(e).fill(t,n):l(e).fill(t):l(e)}function p(e){return d(e),l(e<0?0:0|b(e))}function f(e,t){if("string"===typeof t&&""!==t||(t="utf8"),!c.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|x(e,t),r=l(n),a=r.write(e,t);return a!==n&&(r=r.slice(0,a)),r}function m(e){for(var t=e.length<0?0:0|b(e.length),n=l(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function g(e){if(Q(e,Uint8Array)){var t=new Uint8Array(e);return v(t.buffer,t.byteOffset,t.byteLength)}return m(e)}function v(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');var r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,c.prototype),r}function y(e){if(c.isBuffer(e)){var t=0|b(e.length),n=l(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!==typeof e.length||Z(e.length)?l(0):m(e):"Buffer"===e.type&&Array.isArray(e.data)?m(e.data):void 0}function b(e){if(e>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|e}function w(e){return+e!=e&&(e=0),c.alloc(+e)}function x(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Q(e,ArrayBuffer))return e.byteLength;if("string"!==typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var a=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return H(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return X(e).length;default:if(a)return r?-1:H(e).length;t=(""+t).toLowerCase(),a=!0}}function k(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return F(this,t,n);case"utf8":case"utf-8":return O(this,t,n);case"ascii":return B(this,t,n);case"latin1":case"binary":return D(this,t,n);case"base64":return L(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function _(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function C(e,t,n,r,a){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,Z(n)&&(n=a?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(a)return-1;n=e.length-1}else if(n<0){if(!a)return-1;n=0}if("string"===typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:E(e,t,n,r,a);if("number"===typeof t)return t&=255,"function"===typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):E(e,[t],n,r,a);throw new TypeError("val must be string, number or Buffer")}function E(e,t,n,r,a){var i,o=1,s=e.length,l=t.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,s/=2,l/=2,n/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(a){var u=-1;for(i=n;i<s;i++)if(c(e,i)===c(t,-1===u?0:i-u)){if(-1===u&&(u=i),i-u+1===l)return u*o}else-1!==u&&(i-=i-u),u=-1}else for(n+l>s&&(n=s-l),i=n;i>=0;i--){for(var d=!0,h=0;h<l;h++)if(c(e,i+h)!==c(t,h)){d=!1;break}if(d)return i}return-1}function R(e,t,n,r){n=Number(n)||0;var a=e.length-n;r?(r=Number(r),r>a&&(r=a)):r=a;var i=t.length;r>i/2&&(r=i/2);for(var o=0;o<r;++o){var s=parseInt(t.substr(2*o,2),16);if(Z(s))return o;e[n+o]=s}return o}function S(e,t,n,r){return Y(H(t,e.length-n),e,n,r)}function A(e,t,n,r){return Y(q(t),e,n,r)}function T(e,t,n,r){return Y(X(t),e,n,r)}function M(e,t,n,r){return Y(G(t,e.length-n),e,n,r)}function L(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function O(e,t,n){n=Math.min(e.length,n);var r=[],a=t;while(a<n){var i,o,s,l,c=e[a],u=null,d=c>239?4:c>223?3:c>191?2:1;if(a+d<=n)switch(d){case 1:c<128&&(u=c);break;case 2:i=e[a+1],128===(192&i)&&(l=(31&c)<<6|63&i,l>127&&(u=l));break;case 3:i=e[a+1],o=e[a+2],128===(192&i)&&128===(192&o)&&(l=(15&c)<<12|(63&i)<<6|63&o,l>2047&&(l<55296||l>57343)&&(u=l));break;case 4:i=e[a+1],o=e[a+2],s=e[a+3],128===(192&i)&&128===(192&o)&&128===(192&s)&&(l=(15&c)<<18|(63&i)<<12|(63&o)<<6|63&s,l>65535&&l<1114112&&(u=l))}null===u?(u=65533,d=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),a+=d}return N(r)}t.kMaxLength=o,c.TYPED_ARRAY_SUPPORT=s(),c.TYPED_ARRAY_SUPPORT||"undefined"===typeof console||"function"!==typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(e,t,n){return u(e,t,n)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,n){return h(e,t,n)},c.allocUnsafe=function(e){return p(e)},c.allocUnsafeSlow=function(e){return p(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(Q(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),Q(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,a=0,i=Math.min(n,r);a<i;++a)if(e[a]!==t[a]){n=e[a],r=t[a];break}return n<r?-1:r<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=c.allocUnsafe(t),a=0;for(n=0;n<e.length;++n){var i=e[n];if(Q(i,Uint8Array))a+i.length>r.length?c.from(i).copy(r,a):Uint8Array.prototype.set.call(r,i,a);else{if(!c.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(r,a)}a+=i.length}return r},c.byteLength=x,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)_(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)_(this,t,t+3),_(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)_(this,t,t+7),_(this,t+1,t+6),_(this,t+2,t+5),_(this,t+3,t+4);return this},c.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?O(this,0,e):k.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},i&&(c.prototype[i]=c.prototype.inspect),c.prototype.compare=function(e,t,n,r,a){if(Q(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===a&&(a=this.length),t<0||n>e.length||r<0||a>this.length)throw new RangeError("out of range index");if(r>=a&&t>=n)return 0;if(r>=a)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,a>>>=0,this===e)return 0;for(var i=a-r,o=n-t,s=Math.min(i,o),l=this.slice(r,a),u=e.slice(t,n),d=0;d<s;++d)if(l[d]!==u[d]){i=l[d],o=u[d];break}return i<o?-1:o<i?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return C(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return C(this,e,t,n,!1)},c.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"===typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var a=this.length-t;if((void 0===n||n>a)&&(n=a),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return R(this,e,t,n);case"utf8":case"utf-8":return S(this,e,t,n);case"ascii":case"latin1":case"binary":return A(this,e,t,n);case"base64":return T(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var I=4096;function N(e){var t=e.length;if(t<=I)return String.fromCharCode.apply(String,e);var n="",r=0;while(r<t)n+=String.fromCharCode.apply(String,e.slice(r,r+=I));return n}function B(e,t,n){var r="";n=Math.min(e.length,n);for(var a=t;a<n;++a)r+=String.fromCharCode(127&e[a]);return r}function D(e,t,n){var r="";n=Math.min(e.length,n);for(var a=t;a<n;++a)r+=String.fromCharCode(e[a]);return r}function F(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var a="",i=t;i<n;++i)a+=J[e[i]];return a}function $(e,t,n){for(var r=e.slice(t,n),a="",i=0;i<r.length-1;i+=2)a+=String.fromCharCode(r[i]+256*r[i+1]);return a}function P(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function z(e,t,n,r,a,i){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function W(e,t,n,r,a,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function j(e,t,n,r,i){return t=+t,n>>>=0,i||W(e,t,n,4,34028234663852886e22,-34028234663852886e22),a.write(e,t,n,r,23,4),n+4}function V(e,t,n,r,i){return t=+t,n>>>=0,i||W(e,t,n,8,17976931348623157e292,-17976931348623157e292),a.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return Object.setPrototypeOf(r,c.prototype),r},c.prototype.readUintLE=c.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||P(e,t,this.length);var r=this[e],a=1,i=0;while(++i<t&&(a*=256))r+=this[e+i]*a;return r},c.prototype.readUintBE=c.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||P(e,t,this.length);var r=this[e+--t],a=1;while(t>0&&(a*=256))r+=this[e+--t]*a;return r},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||P(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||P(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||P(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||P(e,t,this.length);var r=this[e],a=1,i=0;while(++i<t&&(a*=256))r+=this[e+i]*a;return a*=128,r>=a&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||P(e,t,this.length);var r=t,a=1,i=this[e+--r];while(r>0&&(a*=256))i+=this[e+--r]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*t)),i},c.prototype.readInt8=function(e,t){return e>>>=0,t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||P(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){e>>>=0,t||P(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return e>>>=0,t||P(e,4,this.length),a.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||P(e,4,this.length),a.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||P(e,8,this.length),a.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||P(e,8,this.length),a.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var a=Math.pow(2,8*n)-1;z(this,e,t,n,a,0)}var i=1,o=0;this[t]=255&e;while(++o<n&&(i*=256))this[t+o]=e/i&255;return t+n},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var a=Math.pow(2,8*n)-1;z(this,e,t,n,a,0)}var i=n-1,o=1;this[t+i]=255&e;while(--i>=0&&(o*=256))this[t+i]=e/o&255;return t+n},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||z(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||z(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||z(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||z(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||z(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var a=Math.pow(2,8*n-1);z(this,e,t,n,a-1,-a)}var i=0,o=1,s=0;this[t]=255&e;while(++i<n&&(o*=256))e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/o|0)-s&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var a=Math.pow(2,8*n-1);z(this,e,t,n,a-1,-a)}var i=n-1,o=1,s=0;this[t+i]=255&e;while(--i>=0&&(o*=256))e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/o|0)-s&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||z(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||z(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||z(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||z(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||z(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeFloatLE=function(e,t,n){return j(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return j(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return V(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return V(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var a=r-n;return this===e&&"function"===typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),a},c.prototype.fill=function(e,t,n,r){if("string"===typeof e){if("string"===typeof t?(r=t,t=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){var a=e.charCodeAt(0);("utf8"===r&&a<128||"latin1"===r)&&(e=a)}}else"number"===typeof e?e&=255:"boolean"===typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(i=t;i<n;++i)this[i]=e;else{var o=c.isBuffer(e)?e:c.from(e,r),s=o.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=o[i%s]}return this};var U=/[^+/0-9A-Za-z-_]/g;function K(e){if(e=e.split("=")[0],e=e.trim().replace(U,""),e.length<2)return"";while(e.length%4!==0)e+="=";return e}function H(e,t){var n;t=t||1/0;for(var r=e.length,a=null,i=[],o=0;o<r;++o){if(n=e.charCodeAt(o),n>55295&&n<57344){if(!a){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&i.push(239,191,189);continue}a=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),a=n;continue}n=65536+(a-55296<<10|n-56320)}else a&&(t-=3)>-1&&i.push(239,191,189);if(a=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function q(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function G(e,t){for(var n,r,a,i=[],o=0;o<e.length;++o){if((t-=2)<0)break;n=e.charCodeAt(o),r=n>>8,a=n%256,i.push(a),i.push(r)}return i}function X(e){return r.toByteArray(K(e))}function Y(e,t,n,r){for(var a=0;a<r;++a){if(a+n>=t.length||a>=e.length)break;t[a+n]=e[a]}return a}function Q(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Z(e){return e!==e}var J=function(){for(var e="0123456789abcdef",t=new Array(256),n=0;n<16;++n)for(var r=16*n,a=0;a<16;++a)t[r+a]=e[n]+e[a];return t}()},1576:function(e){!function(t,n){e.exports=n()}(0,(function(){"use strict";var e=1e3,t=6e4,n=36e5,r="millisecond",a="second",i="minute",o="hour",s="day",l="week",c="month",u="quarter",d="year",h="date",p="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|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,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},v=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),a=n%60;return(t<=0?"+":"-")+v(r,2,"0")+":"+v(a,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),a=t.clone().add(r,c),i=n-a<0,o=t.clone().add(r+(i?-1:1),c);return+(-(r+(n-a)/(i?a-o:o-a))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:d,w:l,d:s,D:h,h:o,m:i,s:a,ms:r,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",w={};w[b]=g;var x="$isDayjsObject",k=function(e){return e instanceof R||!(!e||!e[x])},_=function e(t,n,r){var a;if(!t)return b;if("string"==typeof t){var i=t.toLowerCase();w[i]&&(a=i),n&&(w[i]=n,a=i);var o=t.split("-");if(!a&&o.length>1)return e(o[0])}else{var s=t.name;w[s]=t,a=s}return!r&&a&&(b=a),a||!r&&b},C=function(e,t){if(k(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new R(n)},E=y;E.l=_,E.i=k,E.w=function(e,t){return C(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var R=function(){function g(e){this.$L=_(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var v=g.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(E.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(f);if(r){var a=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],a,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],a,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return E},v.isValid=function(){return!(this.$d.toString()===p)},v.isSame=function(e,t){var n=C(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return C(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<C(e)},v.$g=function(e,t,n){return E.u(e)?this[t]:this.set(n,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var n=this,r=!!E.u(t)||t,u=E.p(e),p=function(e,t){var a=E.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?a:a.endOf(s)},f=function(e,t){return E.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,g=this.$M,v=this.$D,y="set"+(this.$u?"UTC":"");switch(u){case d:return r?p(1,0):p(31,11);case c:return r?p(1,g):p(0,g+1);case l:var b=this.$locale().weekStart||0,w=(m<b?m+7:m)-b;return p(r?v-w:v+(6-w),g);case s:case h:return f(y+"Hours",0);case o:return f(y+"Minutes",1);case i:return f(y+"Seconds",2);case a:return f(y+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var n,l=E.p(e),u="set"+(this.$u?"UTC":""),p=(n={},n[s]=u+"Date",n[h]=u+"Date",n[c]=u+"Month",n[d]=u+"FullYear",n[o]=u+"Hours",n[i]=u+"Minutes",n[a]=u+"Seconds",n[r]=u+"Milliseconds",n)[l],f=l===s?this.$D+(t-this.$W):t;if(l===c||l===d){var m=this.clone().set(h,1);m.$d[p](f),m.init(),this.$d=m.set(h,Math.min(this.$D,m.daysInMonth())).$d}else p&&this.$d[p](f);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[E.p(e)]()},v.add=function(r,u){var h,p=this;r=Number(r);var f=E.p(u),m=function(e){var t=C(p);return E.w(t.date(t.date()+Math.round(e*r)),p)};if(f===c)return this.set(c,this.$M+r);if(f===d)return this.set(d,this.$y+r);if(f===s)return m(1);if(f===l)return m(7);var g=(h={},h[i]=t,h[o]=n,h[a]=e,h)[f]||1,v=this.$d.getTime()+r*g;return E.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||"YYYY-MM-DDTHH:mm:ssZ",a=E.z(this),i=this.$H,o=this.$m,s=this.$M,l=n.weekdays,c=n.months,u=n.meridiem,d=function(e,n,a,i){return e&&(e[n]||e(t,r))||a[n].slice(0,i)},h=function(e){return E.s(i%12||12,e,"0")},f=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(m,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return E.s(t.$y,4,"0");case"M":return s+1;case"MM":return E.s(s+1,2,"0");case"MMM":return d(n.monthsShort,s,c,3);case"MMMM":return d(c,s);case"D":return t.$D;case"DD":return E.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,l,2);case"ddd":return d(n.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(i);case"HH":return E.s(i,2,"0");case"h":return h(1);case"hh":return h(2);case"a":return f(i,o,!0);case"A":return f(i,o,!1);case"m":return String(o);case"mm":return E.s(o,2,"0");case"s":return String(t.$s);case"ss":return E.s(t.$s,2,"0");case"SSS":return E.s(t.$ms,3,"0");case"Z":return a}return null}(e)||a.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(r,h,p){var f,m=this,g=E.p(h),v=C(r),y=(v.utcOffset()-this.utcOffset())*t,b=this-v,w=function(){return E.m(m,v)};switch(g){case d:f=w()/12;break;case c:f=w();break;case u:f=w()/3;break;case l:f=(b-y)/6048e5;break;case s:f=(b-y)/864e5;break;case o:f=b/n;break;case i:f=b/t;break;case a:f=b/e;break;default:f=b}return p?f:E.a(f)},v.daysInMonth=function(){return this.endOf(c).$D},v.$locale=function(){return w[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=_(e,t,!0);return r&&(n.$L=r),n},v.clone=function(){return E.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},g}(),S=R.prototype;return C.prototype=S,[["$ms",r],["$s",a],["$m",i],["$H",o],["$W",s],["$M",c],["$y",d],["$D",h]].forEach((function(e){S[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),C.extend=function(e,t){return e.$i||(e(t,R,C),e.$i=!0),C},C.locale=_,C.isDayjs=k,C.unix=function(e){return C(1e3*e)},C.en=w[b],C.Ls=w,C.p={},C}))},4642:function(e){!function(t,n){e.exports=n()}(0,(function(){"use strict";return function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var a=this.$utils(),i=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return n.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return n.ordinal(t.week(),"W");case"w":case"ww":return a.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return a.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return a.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}}));return r.bind(this)(i)}}}))},6110:function(e,t,n){n(1454),function(t,n){e.exports=n()}(0,(function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,a=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return(e=+e)+(e>68?1900:2e3)},l=function(e){return function(t){this[e]=+t}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],u=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=o.meridiem;if(r){for(var a=1;a<=24;a+=1)if(e.indexOf(r(a,0,t))>-1){n=a>12;break}}else n=e===(t?"pm":"PM");return n},h={A:[i,function(e){this.afternoon=d(e,!1)}],a:[i,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*+e}],SS:[r,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[a,l("seconds")],ss:[a,l("seconds")],m:[a,l("minutes")],mm:[a,l("minutes")],H:[a,l("hours")],h:[a,l("hours")],HH:[a,l("hours")],hh:[a,l("hours")],D:[a,l("day")],DD:[r,l("day")],Do:[i,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],w:[a,l("week")],ww:[r,l("week")],M:[a,l("month")],MM:[r,l("month")],MMM:[i,function(e){var t=u("months"),n=(u("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[i,function(e){var t=u("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,l("year")],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,l("year")],Z:c,ZZ:c};function p(n){var r,a;r=n,a=o&&o.formats;for(var i=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var i=r&&r.toUpperCase();return n||a[r]||e[r]||a[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=i.length,l=0;l<s;l+=1){var c=i[l],u=h[c],d=u&&u[0],p=u&&u[1];i[l]=p?{regex:d,parser:p}:c.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var a=i[n];if("string"==typeof a)r+=a.length;else{var o=a.regex,l=a.parser,c=e.slice(r),u=o.exec(c)[0];l.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,a=r.parse;r.parse=function(e){var t=e.date,r=e.utc,i=e.args;this.$u=r;var s=i[1];if("string"==typeof s){var l=!0===i[2],c=!0===i[3],u=l||c,d=i[2];c&&(d=i[2]),o=this.$locale(),!l&&d&&(o=n.Ls[d]),this.$d=function(e,t,n,r){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var a=p(t)(e),i=a.year,o=a.month,s=a.day,l=a.hours,c=a.minutes,u=a.seconds,d=a.milliseconds,h=a.zone,f=a.week,m=new Date,g=s||(i||o?1:m.getDate()),v=i||m.getFullYear(),y=0;i&&!o||(y=o>0?o-1:m.getMonth());var b,w=l||0,x=c||0,k=u||0,_=d||0;return h?new Date(Date.UTC(v,y,g,w,x,k,_+60*h.offset*1e3)):n?new Date(Date.UTC(v,y,g,w,x,k,_)):(b=new Date(v,y,g,w,x,k,_),f&&(b=r(b).week(f).toDate()),b)}catch(e){return new Date("")}}(t,s,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date("")),o={}}else if(s instanceof Array)for(var h=s.length,f=1;f<=h;f+=1){i[1]=s[f-1];var m=n.apply(this,i);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}f===h&&(this.$d=new Date(""))}else a.call(this,e)}}}))},3569:function(e){!function(t,n){e.exports=n()}(0,(function(){"use strict";return function(e,t,n){t.prototype.dayOfYear=function(e){var t=Math.round((n(this).startOf("day")-n(this).startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"day")}}}))},8083:function(e){!function(t,n){e.exports=n()}(0,(function(){"use strict";return function(e,t){t.prototype.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)}}}))},2899:function(e){!function(t,n){e.exports=n()}(0,(function(){"use strict";return function(e,t){t.prototype.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)}}}))},742:function(e){!function(t,n){e.exports=n()}(0,(function(){"use strict";var e="day";return function(t,n,r){var a=function(t){return t.add(4-t.isoWeekday(),e)},i=n.prototype;i.isoWeekYear=function(){return a(this).year()},i.isoWeek=function(t){if(!this.$utils().u(t))return this.add(7*(t-this.isoWeek()),e);var n,i,o,s,l=a(this),c=(n=this.isoWeekYear(),i=this.$u,o=(i?r.utc:r)().year(n).startOf("year"),s=4-o.isoWeekday(),o.isoWeekday()>4&&(s+=7),o.add(s,e));return l.diff(c,"week")+1},i.isoWeekday=function(e){return this.$utils().u(e)?this.day()||7:this.day(this.day()%7?e:e-7)};var o=i.startOf;i.startOf=function(e,t){var n=this.$utils(),r=!!n.u(t)||t;return"isoweek"===n.p(e)?r?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):o.bind(this)(e,t)}}}))},2317:function(e,t,n){n(1454),function(t,n){e.exports=n()}(0,(function(){"use strict";return function(e,t,n){var r=t.prototype,a=function(e){return e&&(e.indexOf?e:e.s)},i=function(e,t,n,r,i){var o=e.name?e:e.$locale(),s=a(o[t]),l=a(o[n]),c=s||l.map((function(e){return e.slice(0,r)}));if(!i)return c;var u=o.weekStart;return c.map((function(e,t){return c[(t+(u||0))%7]}))},o=function(){return n.Ls[n.locale()]},s=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}(e.formats[t.toUpperCase()])},l=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):i(e,"months")},monthsShort:function(t){return t?t.format("MMM"):i(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):i(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):i(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):i(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return s(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return l.bind(this)()},n.localeData=function(){var e=o();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return s(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return i(o(),"months")},n.monthsShort=function(){return i(o(),"monthsShort","months",3)},n.weekdays=function(e){return i(o(),"weekdays",null,null,e)},n.weekdaysShort=function(e){return i(o(),"weekdaysShort","weekdays",3,e)},n.weekdaysMin=function(e){return i(o(),"weekdaysMin","weekdays",2,e)}}}))},7515:function(e){!function(t,n){e.exports=n()}(0,(function(){"use strict";var e="week",t="year";return function(n,r,a){var i=r.prototype;i.week=function(n){if(void 0===n&&(n=null),null!==n)return this.add(7*(n-this.week()),"day");var r=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var i=a(this).startOf(t).add(1,t).date(r),o=a(this).endOf(e);if(i.isBefore(o))return 1}var s=a(this).startOf(t).date(r).startOf(e).subtract(1,"millisecond"),l=this.diff(s,e,!0);return l<0?a(this).startOf("week").week():Math.ceil(l)},i.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}}))},5806:function(e){!function(t,n){e.exports=n()}(0,(function(){"use strict";return function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),n=this.year();return 1===t&&11===e?n+1:0===e&&t>=52?n-1:n}}}))},8179:function(e,t,n){n(4114),
/*! @license DOMPurify 2.4.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.3/LICENSE */
function(t,n){e.exports=n()}(0,(function(){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,n){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,n)}function n(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function r(e,a,i){return r=n()?Reflect.construct:function(e,n,r){var a=[null];a.push.apply(a,n);var i=Function.bind.apply(e,a),o=new i;return r&&t(o,r.prototype),o},r.apply(null,arguments)}function a(e){return i(e)||o(e)||s(e)||c()}function i(e){if(Array.isArray(e))return l(e)}function o(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function s(e,t){if(e){if("string"===typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u=Object.hasOwnProperty,d=Object.setPrototypeOf,h=Object.isFrozen,p=Object.getPrototypeOf,f=Object.getOwnPropertyDescriptor,m=Object.freeze,g=Object.seal,v=Object.create,y="undefined"!==typeof Reflect&&Reflect,b=y.apply,w=y.construct;b||(b=function(e,t,n){return e.apply(t,n)}),m||(m=function(e){return e}),g||(g=function(e){return e}),w||(w=function(e,t){return r(e,a(t))});var x=O(Array.prototype.forEach),k=O(Array.prototype.pop),_=O(Array.prototype.push),C=O(String.prototype.toLowerCase),E=O(String.prototype.toString),R=O(String.prototype.match),S=O(String.prototype.replace),A=O(String.prototype.indexOf),T=O(String.prototype.trim),M=O(RegExp.prototype.test),L=I(TypeError);function O(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return b(e,t,r)}}function I(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return w(e,n)}}function N(e,t,n){n=n||C,d&&d(e,null);var r=t.length;while(r--){var a=t[r];if("string"===typeof a){var i=n(a);i!==a&&(h(t)||(t[r]=i),a=i)}e[a]=!0}return e}function B(e){var t,n=v(null);for(t in e)!0===b(u,e,[t])&&(n[t]=e[t]);return n}function D(e,t){while(null!==e){var n=f(e,t);if(n){if(n.get)return O(n.get);if("function"===typeof n.value)return O(n.value)}e=p(e)}function r(e){return console.warn("fallback value for",e),null}return r}var F=m(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),$=m(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),P=m(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),z=m(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),W=m(["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"]),j=m(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),V=m(["#text"]),U=m(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),K=m(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),H=m(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),q=m(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),G=g(/\{\{[\w\W]*|[\w\W]*\}\}/gm),X=g(/<%[\w\W]*|[\w\W]*%>/gm),Y=g(/\${[\w\W]*}/gm),Q=g(/^data-[\-\w.\u00B7-\uFFFF]/),Z=g(/^aria-[\-\w]+$/),J=g(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ee=g(/^(?:\w+script|data):/i),te=g(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ne=g(/^html$/i),re=function(){return"undefined"===typeof window?null:window},ae=function(t,n){if("object"!==e(t)||"function"!==typeof t.createPolicy)return null;var r=null,a="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(a)&&(r=n.currentScript.getAttribute(a));var i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(o){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};function ie(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:re(),n=function(e){return ie(e)};if(n.version="2.4.3",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var r=t.document,i=t.document,o=t.DocumentFragment,s=t.HTMLTemplateElement,l=t.Node,c=t.Element,u=t.NodeFilter,d=t.NamedNodeMap,h=void 0===d?t.NamedNodeMap||t.MozNamedAttrMap:d,p=t.HTMLFormElement,f=t.DOMParser,g=t.trustedTypes,v=c.prototype,y=D(v,"cloneNode"),b=D(v,"nextSibling"),w=D(v,"childNodes"),O=D(v,"parentNode");if("function"===typeof s){var I=i.createElement("template");I.content&&I.content.ownerDocument&&(i=I.content.ownerDocument)}var oe=ae(g,r),se=oe?oe.createHTML(""):"",le=i,ce=le.implementation,ue=le.createNodeIterator,de=le.createDocumentFragment,he=le.getElementsByTagName,pe=r.importNode,fe={};try{fe=B(i).documentMode?i.documentMode:{}}catch(Ot){}var me={};n.isSupported="function"===typeof O&&ce&&"undefined"!==typeof ce.createHTMLDocument&&9!==fe;var ge,ve,ye=G,be=X,we=Y,xe=Q,ke=Z,_e=ee,Ce=te,Ee=J,Re=null,Se=N({},[].concat(a(F),a($),a(P),a(W),a(V))),Ae=null,Te=N({},[].concat(a(U),a(K),a(H),a(q))),Me=Object.seal(Object.create(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}})),Le=null,Oe=null,Ie=!0,Ne=!0,Be=!1,De=!1,Fe=!1,$e=!1,Pe=!1,ze=!1,We=!1,je=!1,Ve=!0,Ue=!1,Ke="user-content-",He=!0,qe=!1,Ge={},Xe=null,Ye=N({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Qe=null,Ze=N({},["audio","video","img","source","image","track"]),Je=null,et=N({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),tt="http://www.w3.org/1998/Math/MathML",nt="http://www.w3.org/2000/svg",rt="http://www.w3.org/1999/xhtml",at=rt,it=!1,ot=null,st=N({},[tt,nt,rt],E),lt=["application/xhtml+xml","text/html"],ct="text/html",ut=null,dt=i.createElement("form"),ht=function(e){return e instanceof RegExp||e instanceof Function},pt=function(t){ut&&ut===t||(t&&"object"===e(t)||(t={}),t=B(t),ge=ge=-1===lt.indexOf(t.PARSER_MEDIA_TYPE)?ct:t.PARSER_MEDIA_TYPE,ve="application/xhtml+xml"===ge?E:C,Re="ALLOWED_TAGS"in t?N({},t.ALLOWED_TAGS,ve):Se,Ae="ALLOWED_ATTR"in t?N({},t.ALLOWED_ATTR,ve):Te,ot="ALLOWED_NAMESPACES"in t?N({},t.ALLOWED_NAMESPACES,E):st,Je="ADD_URI_SAFE_ATTR"in t?N(B(et),t.ADD_URI_SAFE_ATTR,ve):et,Qe="ADD_DATA_URI_TAGS"in t?N(B(Ze),t.ADD_DATA_URI_TAGS,ve):Ze,Xe="FORBID_CONTENTS"in t?N({},t.FORBID_CONTENTS,ve):Ye,Le="FORBID_TAGS"in t?N({},t.FORBID_TAGS,ve):{},Oe="FORBID_ATTR"in t?N({},t.FORBID_ATTR,ve):{},Ge="USE_PROFILES"in t&&t.USE_PROFILES,Ie=!1!==t.ALLOW_ARIA_ATTR,Ne=!1!==t.ALLOW_DATA_ATTR,Be=t.ALLOW_UNKNOWN_PROTOCOLS||!1,De=t.SAFE_FOR_TEMPLATES||!1,Fe=t.WHOLE_DOCUMENT||!1,ze=t.RETURN_DOM||!1,We=t.RETURN_DOM_FRAGMENT||!1,je=t.RETURN_TRUSTED_TYPE||!1,Pe=t.FORCE_BODY||!1,Ve=!1!==t.SANITIZE_DOM,Ue=t.SANITIZE_NAMED_PROPS||!1,He=!1!==t.KEEP_CONTENT,qe=t.IN_PLACE||!1,Ee=t.ALLOWED_URI_REGEXP||Ee,at=t.NAMESPACE||rt,t.CUSTOM_ELEMENT_HANDLING&&ht(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Me.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ht(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Me.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"===typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Me.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),De&&(Ne=!1),We&&(ze=!0),Ge&&(Re=N({},a(V)),Ae=[],!0===Ge.html&&(N(Re,F),N(Ae,U)),!0===Ge.svg&&(N(Re,$),N(Ae,K),N(Ae,q)),!0===Ge.svgFilters&&(N(Re,P),N(Ae,K),N(Ae,q)),!0===Ge.mathMl&&(N(Re,W),N(Ae,H),N(Ae,q))),t.ADD_TAGS&&(Re===Se&&(Re=B(Re)),N(Re,t.ADD_TAGS,ve)),t.ADD_ATTR&&(Ae===Te&&(Ae=B(Ae)),N(Ae,t.ADD_ATTR,ve)),t.ADD_URI_SAFE_ATTR&&N(Je,t.ADD_URI_SAFE_ATTR,ve),t.FORBID_CONTENTS&&(Xe===Ye&&(Xe=B(Xe)),N(Xe,t.FORBID_CONTENTS,ve)),He&&(Re["#text"]=!0),Fe&&N(Re,["html","head","body"]),Re.table&&(N(Re,["tbody"]),delete Le.tbody),m&&m(t),ut=t)},ft=N({},["mi","mo","mn","ms","mtext"]),mt=N({},["foreignobject","desc","title","annotation-xml"]),gt=N({},["title","style","font","a","script"]),vt=N({},$);N(vt,P),N(vt,z);var yt=N({},W);N(yt,j);var bt=function(e){var t=O(e);t&&t.tagName||(t={namespaceURI:at,tagName:"template"});var n=C(e.tagName),r=C(t.tagName);return!!ot[e.namespaceURI]&&(e.namespaceURI===nt?t.namespaceURI===rt?"svg"===n:t.namespaceURI===tt?"svg"===n&&("annotation-xml"===r||ft[r]):Boolean(vt[n]):e.namespaceURI===tt?t.namespaceURI===rt?"math"===n:t.namespaceURI===nt?"math"===n&&mt[r]:Boolean(yt[n]):e.namespaceURI===rt?!(t.namespaceURI===nt&&!mt[r])&&(!(t.namespaceURI===tt&&!ft[r])&&(!yt[n]&&(gt[n]||!vt[n]))):!("application/xhtml+xml"!==ge||!ot[e.namespaceURI]))},wt=function(e){_(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(Ot){try{e.outerHTML=se}catch(Ot){e.remove()}}},xt=function(e,t){try{_(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(Ot){_(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Ae[e])if(ze||We)try{wt(t)}catch(Ot){}else try{t.setAttribute(e,"")}catch(Ot){}},kt=function(e){var t,n;if(Pe)e="<remove></remove>"+e;else{var r=R(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===ge&&at===rt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var a=oe?oe.createHTML(e):e;if(at===rt)try{t=(new f).parseFromString(a,ge)}catch(Ot){}if(!t||!t.documentElement){t=ce.createDocument(at,"template",null);try{t.documentElement.innerHTML=it?se:a}catch(Ot){}}var o=t.body||t.documentElement;return e&&n&&o.insertBefore(i.createTextNode(n),o.childNodes[0]||null),at===rt?he.call(t,Fe?"html":"body")[0]:Fe?t.documentElement:o},_t=function(e){return ue.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null,!1)},Ct=function(e){return e instanceof p&&("string"!==typeof e.nodeName||"string"!==typeof e.textContent||"function"!==typeof e.removeChild||!(e.attributes instanceof h)||"function"!==typeof e.removeAttribute||"function"!==typeof e.setAttribute||"string"!==typeof e.namespaceURI||"function"!==typeof e.insertBefore||"function"!==typeof e.hasChildNodes)},Et=function(t){return"object"===e(l)?t instanceof l:t&&"object"===e(t)&&"number"===typeof t.nodeType&&"string"===typeof t.nodeName},Rt=function(e,t,r){me[e]&&x(me[e],(function(e){e.call(n,t,r,ut)}))},St=function(e){var t;if(Rt("beforeSanitizeElements",e,null),Ct(e))return wt(e),!0;if(M(/[\u0080-\uFFFF]/,e.nodeName))return wt(e),!0;var r=ve(e.nodeName);if(Rt("uponSanitizeElement",e,{tagName:r,allowedTags:Re}),e.hasChildNodes()&&!Et(e.firstElementChild)&&(!Et(e.content)||!Et(e.content.firstElementChild))&&M(/<[/\w]/g,e.innerHTML)&&M(/<[/\w]/g,e.textContent))return wt(e),!0;if("select"===r&&M(/<template/i,e.innerHTML))return wt(e),!0;if(!Re[r]||Le[r]){if(!Le[r]&&Tt(r)){if(Me.tagNameCheck instanceof RegExp&&M(Me.tagNameCheck,r))return!1;if(Me.tagNameCheck instanceof Function&&Me.tagNameCheck(r))return!1}if(He&&!Xe[r]){var a=O(e)||e.parentNode,i=w(e)||e.childNodes;if(i&&a)for(var o=i.length,s=o-1;s>=0;--s)a.insertBefore(y(i[s],!0),b(e))}return wt(e),!0}return e instanceof c&&!bt(e)?(wt(e),!0):"noscript"!==r&&"noembed"!==r||!M(/<\/no(script|embed)/i,e.innerHTML)?(De&&3===e.nodeType&&(t=e.textContent,t=S(t,ye," "),t=S(t,be," "),t=S(t,we," "),e.textContent!==t&&(_(n.removed,{element:e.cloneNode()}),e.textContent=t)),Rt("afterSanitizeElements",e,null),!1):(wt(e),!0)},At=function(e,t,n){if(Ve&&("id"===t||"name"===t)&&(n in i||n in dt))return!1;if(Ne&&!Oe[t]&&M(xe,t));else if(Ie&&M(ke,t));else if(!Ae[t]||Oe[t]){if(!(Tt(e)&&(Me.tagNameCheck instanceof RegExp&&M(Me.tagNameCheck,e)||Me.tagNameCheck instanceof Function&&Me.tagNameCheck(e))&&(Me.attributeNameCheck instanceof RegExp&&M(Me.attributeNameCheck,t)||Me.attributeNameCheck instanceof Function&&Me.attributeNameCheck(t))||"is"===t&&Me.allowCustomizedBuiltInElements&&(Me.tagNameCheck instanceof RegExp&&M(Me.tagNameCheck,n)||Me.tagNameCheck instanceof Function&&Me.tagNameCheck(n))))return!1}else if(Je[t]);else if(M(Ee,S(n,Ce,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==A(n,"data:")||!Qe[e]){if(Be&&!M(_e,S(n,Ce,"")));else if(n)return!1}else;return!0},Tt=function(e){return e.indexOf("-")>0},Mt=function(t){var r,a,i,o;Rt("beforeSanitizeAttributes",t,null);var s=t.attributes;if(s){var l={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ae};o=s.length;while(o--){r=s[o];var c=r,u=c.name,d=c.namespaceURI;if(a="value"===u?r.value:T(r.value),i=ve(u),l.attrName=i,l.attrValue=a,l.keepAttr=!0,l.forceKeepAttr=void 0,Rt("uponSanitizeAttribute",t,l),a=l.attrValue,!l.forceKeepAttr&&(xt(u,t),l.keepAttr))if(M(/\/>/i,a))xt(u,t);else{De&&(a=S(a,ye," "),a=S(a,be," "),a=S(a,we," "));var h=ve(t.nodeName);if(At(h,i,a)){if(!Ue||"id"!==i&&"name"!==i||(xt(u,t),a=Ke+a),oe&&"object"===e(g)&&"function"===typeof g.getAttributeType)if(d);else switch(g.getAttributeType(h,i)){case"TrustedHTML":a=oe.createHTML(a);break;case"TrustedScriptURL":a=oe.createScriptURL(a);break}try{d?t.setAttributeNS(d,u,a):t.setAttribute(u,a),k(n.removed)}catch(Ot){}}}}Rt("afterSanitizeAttributes",t,null)}},Lt=function e(t){var n,r=_t(t);Rt("beforeSanitizeShadowDOM",t,null);while(n=r.nextNode())Rt("uponSanitizeShadowNode",n,null),St(n)||(n.content instanceof o&&e(n.content),Mt(n));Rt("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(a){var i,s,c,u,d,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(it=!a,it&&(a="\x3c!--\x3e"),"string"!==typeof a&&!Et(a)){if("function"!==typeof a.toString)throw L("toString is not a function");if(a=a.toString(),"string"!==typeof a)throw L("dirty is not a string, aborting")}if(!n.isSupported){if("object"===e(t.toStaticHTML)||"function"===typeof t.toStaticHTML){if("string"===typeof a)return t.toStaticHTML(a);if(Et(a))return t.toStaticHTML(a.outerHTML)}return a}if($e||pt(h),n.removed=[],"string"===typeof a&&(qe=!1),qe){if(a.nodeName){var p=ve(a.nodeName);if(!Re[p]||Le[p])throw L("root node is forbidden and cannot be sanitized in-place")}}else if(a instanceof l)i=kt("\x3c!----\x3e"),s=i.ownerDocument.importNode(a,!0),1===s.nodeType&&"BODY"===s.nodeName||"HTML"===s.nodeName?i=s:i.appendChild(s);else{if(!ze&&!De&&!Fe&&-1===a.indexOf("<"))return oe&&je?oe.createHTML(a):a;if(i=kt(a),!i)return ze?null:je?se:""}i&&Pe&&wt(i.firstChild);var f=_t(qe?a:i);while(c=f.nextNode())3===c.nodeType&&c===u||St(c)||(c.content instanceof o&&Lt(c.content),Mt(c),u=c);if(u=null,qe)return a;if(ze){if(We){d=de.call(i.ownerDocument);while(i.firstChild)d.appendChild(i.firstChild)}else d=i;return Ae.shadowroot&&(d=pe.call(r,d,!0)),d}var m=Fe?i.outerHTML:i.innerHTML;return Fe&&Re["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&M(ne,i.ownerDocument.doctype.name)&&(m="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+m),De&&(m=S(m,ye," "),m=S(m,be," "),m=S(m,we," ")),oe&&je?oe.createHTML(m):m},n.setConfig=function(e){pt(e),$e=!0},n.clearConfig=function(){ut=null,$e=!1},n.isValidAttribute=function(e,t,n){ut||pt({});var r=ve(e),a=ve(t);return At(r,a,n)},n.addHook=function(e,t){"function"===typeof t&&(me[e]=me[e]||[],_(me[e],t))},n.removeHook=function(e){if(me[e])return k(me[e])},n.removeHooks=function(e){me[e]&&(me[e]=[])},n.removeAllHooks=function(){me={}},n}var oe=ie();return oe}))},9046:function(e,t){
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
t.read=function(e,t,n,r,a){var i,o,s=8*a-r-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?a-1:0,h=n?-1:1,p=e[t+d];for(d+=h,i=p&(1<<-u)-1,p>>=-u,u+=s;u>0;i=256*i+e[t+d],d+=h,u-=8);for(o=i&(1<<-u)-1,i>>=-u,u+=r;u>0;o=256*o+e[t+d],d+=h,u-=8);if(0===i)i=1-c;else{if(i===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,r),i-=c}return(p?-1:1)*o*Math.pow(2,i-r)},t.write=function(e,t,n,r,a,i){var o,s,l,c=8*i-a-1,u=(1<<c)-1,d=u>>1,h=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,f=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),t+=o+d>=1?h/l:h*Math.pow(2,1-d),t*l>=2&&(o++,l/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*l-1)*Math.pow(2,a),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,a),o=0));a>=8;e[n+p]=255&s,p+=f,s/=256,a-=8);for(o=o<<a|s,c+=a;c>0;e[n+p]=255&o,p+=f,o/=256,c-=8);e[n+p-f]|=128*m}},6806:function(e,t,n){"use strict";n(8992),n(8872);const r=n(1646),a="M 4,0 C 4,1.1 3.1,2 2,2 0.9,2 0,1.1 0,0 c 0,-1.1 0.9,-2 2,-2 1.1,0 2,0.9 2,2 z",i="M -11,-6 -11,6 0,0 z m -5,6 5,0",o="m -16,-10 5,0 c 6,0 11,4 11,10 0,6 -5,10 -11,10 l -5,0 z",s="m -18,-10 4,0 c 6,0 12,5 14,10 -2,5 -8,10 -14,10 l -4,0 c 2.5,-5 2.5,-15 0,-20 z",l="m -21,-10 c 1,3 2,6 2,10 m 0,0 c 0,4 -1,7 -2,10 m 3,-20 4,0 c 6,0 12,5 14,10 -2,5 -8,10 -14,10 l -4,0 c 1,-3 2,-6 2,-10 0,-4 -1,-7 -2,-10 z",c="c 0,4.418278 -3.581722,8 -8,8 -4.418278,0 -8,-3.581722 -8,-8 0,-4.418278 3.581722,-8 8,-8 4.418278,0 8,3.581722 8,8 z",u={"=":i,"~":i+a,"&":o,"~&":o+a,"|":s,"~|":s+a,"^":l,"~^":l+a,"+":"m -8,5 0,-10 m -5,5 10,0 m 3,0"+c,"*":"m -4,4 -8,-8 m 0,8 8,-8 m 4,4"+c,"-":"m -3,0 -10,0 m 13,0"+c},d={add:"+",mul:"*",sub:"-",and:"&",or:"|",xor:"^",andr:"&",orr:"|",xorr:"^",input:"="};Object.keys(d).reduce(((e,t)=>(e[t]=u[d[t]],e)),u);const h={is:e=>void 0!==u[e],render:e=>["path",{class:"gate",d:u[e]}]},p={eq:"==",ne:"!=",slt:"<",sle:"<=",sgt:">",sge:">=",ult:"<",ule:"<=",ugt:">",uge:">=",BUF:1,INV:1,AND:"&",NAND:"&",OR:"≥1",NOR:"≥1",XOR:"=1",XNOR:"=1",box:"",MUX:"M"},f={INV:1,NAND:1,NOR:1,XNOR:1},m={is:e=>void 0!==p[e],render:(e,t,n)=>(t===n&&(t=-4,n=4),["g",["path",{class:"gate",d:"m -16,"+(t-3)+" 16,0 0,"+(n-t+6)+" -16,0 z"+(f[e]?a:"")}],["text",{x:-14,y:4,class:"wirename"}].concat(r.parse(p[e]))])};function g(e,t,n){return h.is(e)?h.render(e):m.is(e)?m.render(e,t,n):["text",{x:-14,y:4,class:"wirename"}].concat(r.parse(e))}e.exports=g},2365:function(e,t,n){"use strict";n(4114);const r=n(1646),a=n(7037);function i(e,t){const n=["g"],o=[];if(Array.isArray(e)){o.push(e[0].name),o.push([32*(t-e[0].x),8*e[0].y]);for(let n=1;n<e.length;n++){const r=e[n];Array.isArray(r)?o.push([32*(t-r[0].x),8*r[0].y]):o.push([32*(t-r.x),8*r.y])}n.push(a(o));for(let r=1;r<e.length;r++){const a=e[r];n.push(i(a,t))}return n}const s=e.name,l=32*(t-e.x),c=8*e.y;return n.push(["g",{transform:"translate("+l+","+c+")"},["title"].concat(r.parse(s)),["path",{d:"M 2,0 a 2,2 0 1 1 -4,0 2,2 0 1 1 4,0 z"}],["text",{x:-4,y:4,class:"pinname"}].concat(r.parse(s))]),n}e.exports=i},7037:function(e,t,n){"use strict";n(4114);const r=n(1646),a=n(6806);function i(e){const t=e.length,n=[];for(let r=2;r<t;r++)n.push(e[r][1]);const i=["g"],o=Math.min.apply(null,n),s=Math.max.apply(null,n);i.push(["g",{transform:"translate(16,0)"},["path",{d:"M"+e[2][0]+","+o+" "+e[2][0]+","+s,class:"wire"}]]);for(let r=2;r<t;r++)i.push(["g",["path",{d:"m"+e[r][0]+","+e[r][1]+" 16,0",class:"wire"}]]);return i.push(["g",{transform:"translate("+e[1][0]+","+e[1][1]+")"},["title"].concat(r.parse(e[0])),a(e[0],o-e[1][1],s-e[1][1])]),i}e.exports=i},4590:function(e){"use strict";function t(){return["style",".pinname {font-size:12px; font-style:normal; font-variant:normal; font-weight:500; font-stretch:normal; text-align:center; text-anchor:end; font-family:Helvetica} .wirename {font-size:12px; font-style:normal; font-variant:normal; font-weight:500; font-stretch:normal; text-align:center; text-anchor:start; font-family:Helvetica} .wirename:hover {fill:blue} .gate {color:#000; fill:#ffc; fill-opacity: 1;stroke:#000; stroke-width:1; stroke-opacity:1} .gate:hover {fill:red !important; } .wire {fill:none; stroke:#000; stroke-width:1; stroke-opacity:1} .grid {fill:#fff; fill-opacity:1; stroke:none}"]}e.exports=t},9915:function(e,t,n){"use strict";n(4114);const r=n(1269),a=n(2365),i=n(4590);function o(e,t){let n={x:0,y:2,xmax:0};const o=t.assign,s=o.length;for(let a=0;a<s;a++)n=r(o[a],n),n.x++;const l=n.xmax+3,c=["g"];for(let r=0;r<s;r++)c.push(a(o[r],l));const u=32*(l+1)+1,d=8*(n.y+1)-7;return["svg",{id:"svgcontent_"+e,viewBox:"0 0 "+u+" "+d,width:u,height:d},i(),["g",{transform:"translate(0.5, 0.5)"},c]]}e.exports=o},1269:function(e){"use strict";function t(e,n){n.xmax=Math.max(n.xmax,n.x);const r=n.y,a=e.length;for(let i=1;i<a;i++){const r=e[i];Array.isArray(r)?n=t(r,{x:n.x+1,y:n.y,xmax:n.xmax}):(e[i]={name:r,x:n.x+1,y:n.y},n.y+=2)}return e[0]={name:e[0],x:n.x,y:Math.round((r+(n.y-2))/2)},n.x--,n}e.exports=t},927:function(e,t,n){"use strict";n.d(t,{a:function(){return za},b:function(){return Sd},c:function(){return ft},d:function(){return Oa},e:function(){return ht},f:function(){return jd},g:function(){return wi},h:function(){return Hp},i:function(){return Cu},j:function(){return bo},k:function(){return xo},l:function(){return Ze},m:function(){return uo},n:function(){return at},o:function(){return L_},p:function(){return Wh},s:function(){return Li}});n(4114),n(6573),n(8100),n(7936),n(7642),n(8004),n(3853),n(5876),n(2475),n(5024),n(1698),n(7467),n(4732),n(9577),n(8992),n(3215),n(4520),n(2577),n(3949),n(1454),n(8872),n(7550),n(4979);var r=n(3512),a=n(1576),i=n.n(a),o=n(2457),s=n(8458),l=n(8179),u=n.n(l),d=n(5888),h=n(1258);const p=(e,t)=>{const n=d.A.parse(e);for(const r in t)n[r]=h.A.channel.clamp[r](t[r]);return d.A.stringify(n)};var f=p;const m=(e,t)=>{const n=d.A.parse(e),r={};for(const a in t)t[a]&&(r[a]=n[a]+t[a]);return f(e,r)};var g=m,v=n(1485);const y=(e,t,n=0,r=1)=>{if("number"!==typeof e)return f(e,{a:t});const a=v.A.set({r:h.A.channel.clamp.r(e),g:h.A.channel.clamp.g(t),b:h.A.channel.clamp.b(n),a:h.A.channel.clamp.a(r)});return d.A.stringify(a)};var b=y;const w=(e,t,n=50)=>{const{r:r,g:a,b:i,a:o}=d.A.parse(e),{r:s,g:l,b:c,a:u}=d.A.parse(t),h=n/100,p=2*h-1,f=o-u,m=p*f===-1?p:(p+f)/(1+p*f),g=(m+1)/2,v=1-g,y=r*g+s*v,w=a*g+l*v,x=i*g+c*v,k=o*h+u*(1-h);return b(y,w,x,k)};var x=w;const k=(e,t=100)=>{const n=d.A.parse(e);return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,x(n,e,t)};var _=k,C=n(8602),E=n(9090),R=n(8500),S="comm",A="rule",T="decl",M="@import",L="@namespace",O="@keyframes",I="@layer",N=Math.abs,B=String.fromCharCode;Object.assign;function D(e){return e.trim()}function F(e,t,n){return e.replace(t,n)}function $(e,t,n){return e.indexOf(t,n)}function P(e,t){return 0|e.charCodeAt(t)}function z(e,t,n){return e.slice(t,n)}function W(e){return e.length}function j(e){return e.length}function V(e,t){return t.push(e),e}function U(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function K(e,t,n,r){switch(e.type){case I:if(e.children.length)break;case M:case L:case T:return e.return=e.return||e.value;case S:return"";case O:return e.return=e.value+"{"+U(e.children,r)+"}";case A:if(!W(e.value=e.props.join(",")))return""}return W(n=U(e.children,r))?e.return=e.value+"{"+n+"}":""}var H=1,q=1,G=0,X=0,Y=0,Q="";function Z(e,t,n,r,a,i,o,s){return{value:e,root:t,parent:n,type:r,props:a,children:i,line:H,column:q,length:o,return:"",siblings:s}}function J(){return Y}function ee(){return Y=X>0?P(Q,--X):0,q--,10===Y&&(q=1,H--),Y}function te(){return Y=X<G?P(Q,X++):0,q++,10===Y&&(q=1,H++),Y}function ne(){return P(Q,X)}function re(){return X}function ae(e,t){return z(Q,e,t)}function ie(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function oe(e){return H=q=1,G=W(Q=e),X=0,[]}function se(e){return Q="",e}function le(e){return D(ae(X-1,de(91===e?e+2:40===e?e+1:e)))}function ce(e){while(Y=ne()){if(!(Y<33))break;te()}return ie(e)>2||ie(Y)>3?"":" "}function ue(e,t){while(--t&&te())if(Y<48||Y>102||Y>57&&Y<65||Y>70&&Y<97)break;return ae(e,re()+(t<6&&32==ne()&&32==te()))}function de(e){while(te())switch(Y){case e:return X;case 34:case 39:34!==e&&39!==e&&de(Y);break;case 40:41===e&&de(e);break;case 92:te();break}return X}function he(e,t){while(te()){if(e+Y===57)break;if(e+Y===84&&47===ne())break}return"/*"+ae(t,X-1)+"*"+B(47===e?e:te())}function pe(e){while(!ie(ne()))te();return ae(e,X)}function fe(e){return se(me("",null,null,null,[""],e=oe(e),0,[0],e))}function me(e,t,n,r,a,i,o,s,l){var c=0,u=0,d=o,h=0,p=0,f=0,m=1,g=1,v=1,y=0,b="",w=a,x=i,k=r,_=b;while(g)switch(f=y,y=te()){case 40:if(108!=f&&58==P(_,d-1)){-1!=$(_+=F(le(y),"&","&\f"),"&\f",N(c?s[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:_+=le(y);break;case 9:case 10:case 13:case 32:_+=ce(f);break;case 92:_+=ue(re()-1,7);continue;case 47:switch(ne()){case 42:case 47:V(ve(he(te(),re()),t,n,l),l),5!=ie(f||1)&&5!=ie(ne()||1)||!W(_)||" "===z(_,-1,void 0)||(_+=" ");break;default:_+="/"}break;case 123*m:s[c++]=W(_)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==v&&(_=F(_,/\f/g,"")),p>0&&(W(_)-d||0===m&&47===f)&&V(p>32?ye(_+";",r,n,d-1,l):ye(F(_," ","")+";",r,n,d-2,l),l);break;case 59:_+=";";default:if(V(k=ge(_,t,n,c,u,a,s,b,w=[],x=[],d,i),i),123===y)if(0===u)me(_,t,k,k,w,i,d,s,x);else{switch(h){case 99:if(110===P(_,3))break;case 108:if(97===P(_,2))break;default:u=0;case 100:case 109:case 115:}u?me(e,k,k,r&&V(ge(e,k,k,0,0,a,s,b,a,w=[],d,x),x),a,x,d,s,r?w:x):me(_,k,k,k,[""],x,0,s,x)}}c=u=p=0,m=v=1,b=_="",d=o;break;case 58:d=1+W(_),p=f;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==ee())continue;switch(_+=B(y),y*m){case 38:v=u>0?1:(_+="\f",-1);break;case 44:s[c++]=(W(_)-1)*v,v=1;break;case 64:45===ne()&&(_+=le(te())),h=ne(),u=d=W(b=_+=pe(re())),y++;break;case 45:45===f&&2==W(_)&&(m=0)}}return i}function ge(e,t,n,r,a,i,o,s,l,c,u,d){for(var h=a-1,p=0===a?i:[""],f=j(p),m=0,g=0,v=0;m<r;++m)for(var y=0,b=z(e,h+1,h=N(g=o[m])),w=e;y<f;++y)(w=D(g>0?p[y]+" "+b:F(b,/&\f/g,p[y])))&&(l[v++]=w);return Z(e,t,n,0===a?A:s,l,c,u,d)}function ve(e,t,n,r){return Z(e,t,n,S,B(J()),z(e,2,-2),0,r)}function ye(e,t,n,r,a){return Z(e,t,n,T,z(e,0,r),z(e,r+1,-1),r,a)}var be=n(4038),we=n(8668),xe=n(1636);const ke=[];for(let c=0;c<256;++c)ke.push((c+256).toString(16).slice(1));function _e(e,t=0){return ke[e[t+0]]+ke[e[t+1]]+ke[e[t+2]]+ke[e[t+3]]+"-"+ke[e[t+4]]+ke[e[t+5]]+"-"+ke[e[t+6]]+ke[e[t+7]]+"-"+ke[e[t+8]]+ke[e[t+9]]+"-"+ke[e[t+10]]+ke[e[t+11]]+ke[e[t+12]]+ke[e[t+13]]+ke[e[t+14]]+ke[e[t+15]]}var Ce=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Ee(e){return"string"===typeof e&&Ce.test(e)}var Re=Ee;function Se(e){if(!Re(e))throw TypeError("Invalid UUID");let t;const n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}var Ae=Se;function Te(e){e=unescape(encodeURIComponent(e));const t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}const Me="6ba7b810-9dad-11d1-80b4-00c04fd430c8",Le="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Oe(e,t,n){function r(e,r,a,i){var o;if("string"===typeof e&&(e=Te(e)),"string"===typeof r&&(r=Ae(r)),16!==(null===(o=r)||void 0===o?void 0:o.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let s=new Uint8Array(16+e.length);if(s.set(r),s.set(e,r.length),s=n(s),s[6]=15&s[6]|t,s[8]=63&s[8]|128,a){i=i||0;for(let e=0;e<16;++e)a[i+e]=s[e];return a}return _e(s)}try{r.name=e}catch(a){}return r.DNS=Me,r.URL=Le,r}function Ie(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:return t^n^r;case 2:return t&n^t&r^n&r;case 3:return t^n^r}}function Ne(e,t){return e<<t|e>>>32-t}function Be(e){const t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"===typeof e){const t=unescape(encodeURIComponent(e));e=[];for(let n=0;n<t.length;++n)e.push(t.charCodeAt(n))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);const r=e.length/4+2,a=Math.ceil(r/16),i=new Array(a);for(let o=0;o<a;++o){const t=new Uint32Array(16);for(let n=0;n<16;++n)t[n]=e[64*o+4*n]<<24|e[64*o+4*n+1]<<16|e[64*o+4*n+2]<<8|e[64*o+4*n+3];i[o]=t}i[a-1][14]=8*(e.length-1)/Math.pow(2,32),i[a-1][14]=Math.floor(i[a-1][14]),i[a-1][15]=8*(e.length-1)&4294967295;for(let o=0;o<a;++o){const e=new Uint32Array(80);for(let t=0;t<16;++t)e[t]=i[o][t];for(let t=16;t<80;++t)e[t]=Ne(e[t-3]^e[t-8]^e[t-14]^e[t-16],1);let r=n[0],a=n[1],s=n[2],l=n[3],c=n[4];for(let n=0;n<80;++n){const i=Math.floor(n/20),o=Ne(r,5)+Ie(i,a,s,l)+c+t[i]+e[n]>>>0;c=l,l=s,s=Ne(a,30)>>>0,a=r,r=o}n[0]=n[0]+r>>>0,n[1]=n[1]+a>>>0,n[2]=n[2]+s>>>0,n[3]=n[3]+l>>>0,n[4]=n[4]+c>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}var De=Be;const Fe=Oe("v5",80,De);var $e=Fe,Pe=n(9246),ze=n(4422),We=n(8317),je=n(8845),Ve=n(9862),Ue=n(742),Ke=n.n(Ue),He=n(6110),qe=n.n(He),Ge=n(4642),Xe=n.n(Ge),Ye=n(7297);const Qe={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},Ze={trace:(...e)=>{},debug:(...e)=>{},info:(...e)=>{},warn:(...e)=>{},error:(...e)=>{},fatal:(...e)=>{}},Je=function(e="fatal"){let t=Qe.fatal;"string"===typeof e?(e=e.toLowerCase(),e in Qe&&(t=Qe[e])):"number"===typeof e&&(t=e),Ze.trace=()=>{},Ze.debug=()=>{},Ze.info=()=>{},Ze.warn=()=>{},Ze.error=()=>{},Ze.fatal=()=>{},t<=Qe.fatal&&(Ze.fatal=console.error?console.error.bind(console,et("FATAL"),"color: orange"):console.log.bind(console,"",et("FATAL"))),t<=Qe.error&&(Ze.error=console.error?console.error.bind(console,et("ERROR"),"color: orange"):console.log.bind(console,"",et("ERROR"))),t<=Qe.warn&&(Ze.warn=console.warn?console.warn.bind(console,et("WARN"),"color: orange"):console.log.bind(console,"",et("WARN"))),t<=Qe.info&&(Ze.info=console.info?console.info.bind(console,et("INFO"),"color: lightblue"):console.log.bind(console,"",et("INFO"))),t<=Qe.debug&&(Ze.debug=console.debug?console.debug.bind(console,et("DEBUG"),"color: lightgreen"):console.log.bind(console,"",et("DEBUG"))),t<=Qe.trace&&(Ze.trace=console.debug?console.debug.bind(console,et("TRACE"),"color: lightgreen"):console.log.bind(console,"",et("TRACE")))},et=e=>{const t=i()().format("ss.SSS");return`%c${t} : ${e} : `},tt=e=>{if(!e)return[""];const t=ut(e).replace(/\\n/g,"#br#");return t.split("#br#")},nt=e=>u().sanitize(e),rt=(e,t)=>{var n;if(!1!==(null==(n=t.flowchart)?void 0:n.htmlLabels)){const n=t.securityLevel;"antiscript"===n||"strict"===n?e=nt(e):"loose"!==n&&(e=ut(e),e=e.replace(/</g,"&lt;").replace(/>/g,"&gt;"),e=e.replace(/=/g,"&equals;"),e=ct(e))}return e},at=(e,t)=>e?(e=t.dompurifyConfig?u().sanitize(rt(e,t),t.dompurifyConfig).toString():u().sanitize(rt(e,t),{FORBID_TAGS:["style"]}).toString(),e):e,it=(e,t)=>"string"===typeof e?at(e,t):e.flat().map((e=>at(e,t))),ot=/<br\s*\/?>/gi,st=e=>ot.test(e),lt=e=>e.split(ot),ct=e=>e.replace(/#br#/g,"<br/>"),ut=e=>e.replace(ot,"#br#"),dt=e=>{let t="";return e&&(t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,t=t.replaceAll(/\(/g,"\\("),t=t.replaceAll(/\)/g,"\\)")),t},ht=e=>!1!==e&&!["false","null","0"].includes(String(e).trim().toLowerCase()),pt=function(e){let t=e;if(e.split("~").length-1>=2){let e=t;do{t=e,e=t.replace(/~([^\s,:;]+)~/,"<$1>")}while(e!=t);return pt(e)}return t},ft={getRows:tt,sanitizeText:at,sanitizeTextOrArray:it,hasBreaks:st,splitBreaks:lt,lineBreakRegex:ot,removeScript:nt,getUrl:dt,evaluate:ht},mt=(e,t)=>g(e,t?{s:-40,l:10}:{s:-40,l:-10}),gt="#ffffff",vt="#f2f2f2";let yt=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||g(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||g(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||mt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||mt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||mt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||mt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||_(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||_(this.tertiaryColor),this.lineColor=this.lineColor||_(this.background),this.textColor=this.textColor||this.primaryTextColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?(0,C.A)(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||"grey",this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||(0,C.A)(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||_(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||(0,E.A)(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||g(this.primaryColor,{h:30}),this.cScale4=this.cScale4||g(this.primaryColor,{h:60}),this.cScale5=this.cScale5||g(this.primaryColor,{h:90}),this.cScale6=this.cScale6||g(this.primaryColor,{h:120}),this.cScale7=this.cScale7||g(this.primaryColor,{h:150}),this.cScale8=this.cScale8||g(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||g(this.primaryColor,{h:270}),this.cScale10=this.cScale10||g(this.primaryColor,{h:300}),this.cScale11=this.cScale11||g(this.primaryColor,{h:330}),this.darkMode)for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=(0,C.A)(this["cScale"+t],75);else for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=(0,C.A)(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||_(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this.darkMode?this["cScalePeer"+t]=this["cScalePeer"+t]||(0,E.A)(this["cScale"+t],10):this["cScalePeer"+t]=this["cScalePeer"+t]||(0,C.A)(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;const e=this.darkMode?-4:-1;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||g(this.mainBkg,{h:180,s:-15,l:e*(5+3*t)}),this["surfacePeer"+t]=this["surfacePeer"+t]||g(this.mainBkg,{h:180,s:-15,l:e*(8+3*t)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||g(this.primaryColor,{h:64}),this.fillType3=this.fillType3||g(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||g(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||g(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||g(this.primaryColor,{h:128}),this.fillType7=this.fillType7||g(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||g(this.primaryColor,{l:-10}),this.pie5=this.pie5||g(this.secondaryColor,{l:-10}),this.pie6=this.pie6||g(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||g(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||g(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||g(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||g(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||g(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||g(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?(0,C.A)(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||g(this.primaryColor,{h:-30}),this.git4=this.git4||g(this.primaryColor,{h:-60}),this.git5=this.git5||g(this.primaryColor,{h:-90}),this.git6=this.git6||g(this.primaryColor,{h:60}),this.git7=this.git7||g(this.primaryColor,{h:120}),this.darkMode?(this.git0=(0,E.A)(this.git0,25),this.git1=(0,E.A)(this.git1,25),this.git2=(0,E.A)(this.git2,25),this.git3=(0,E.A)(this.git3,25),this.git4=(0,E.A)(this.git4,25),this.git5=(0,E.A)(this.git5,25),this.git6=(0,E.A)(this.git6,25),this.git7=(0,E.A)(this.git7,25)):(this.git0=(0,C.A)(this.git0,25),this.git1=(0,C.A)(this.git1,25),this.git2=(0,C.A)(this.git2,25),this.git3=(0,C.A)(this.git3,25),this.git4=(0,C.A)(this.git4,25),this.git5=(0,C.A)(this.git5,25),this.git6=(0,C.A)(this.git6,25),this.git7=(0,C.A)(this.git7,25)),this.gitInv0=this.gitInv0||_(this.git0),this.gitInv1=this.gitInv1||_(this.git1),this.gitInv2=this.gitInv2||_(this.git2),this.gitInv3=this.gitInv3||_(this.git3),this.gitInv4=this.gitInv4||_(this.git4),this.gitInv5=this.gitInv5||_(this.git5),this.gitInv6=this.gitInv6||_(this.git6),this.gitInv7=this.gitInv7||_(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||gt,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||vt}calculate(e){if("object"!==typeof e)return void this.updateColors();const t=Object.keys(e);t.forEach((t=>{this[t]=e[t]})),this.updateColors(),t.forEach((t=>{this[t]=e[t]}))}};const bt=e=>{const t=new yt;return t.calculate(e),t};let wt=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=(0,E.A)(this.primaryColor,16),this.tertiaryColor=g(this.primaryColor,{h:-160}),this.primaryBorderColor=_(this.background),this.secondaryBorderColor=mt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=mt(this.tertiaryColor,this.darkMode),this.primaryTextColor=_(this.primaryColor),this.secondaryTextColor=_(this.secondaryColor),this.tertiaryTextColor=_(this.tertiaryColor),this.lineColor=_(this.background),this.textColor=_(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=(0,E.A)(_("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=b(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=(0,C.A)("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.taskBorderColor=b(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=b(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder="calculated",this.personBkg="calculated",this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){this.secondBkg=(0,E.A)(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=(0,E.A)(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=(0,E.A)(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=g(this.primaryColor,{h:64}),this.fillType3=g(this.secondaryColor,{h:64}),this.fillType4=g(this.primaryColor,{h:-64}),this.fillType5=g(this.secondaryColor,{h:-64}),this.fillType6=g(this.primaryColor,{h:128}),this.fillType7=g(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||g(this.primaryColor,{h:30}),this.cScale4=this.cScale4||g(this.primaryColor,{h:60}),this.cScale5=this.cScale5||g(this.primaryColor,{h:90}),this.cScale6=this.cScale6||g(this.primaryColor,{h:120}),this.cScale7=this.cScale7||g(this.primaryColor,{h:150}),this.cScale8=this.cScale8||g(this.primaryColor,{h:210}),this.cScale9=this.cScale9||g(this.primaryColor,{h:270}),this.cScale10=this.cScale10||g(this.primaryColor,{h:300}),this.cScale11=this.cScale11||g(this.primaryColor,{h:330});for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||_(this["cScale"+e]);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScalePeer"+e]=this["cScalePeer"+e]||(0,E.A)(this["cScale"+e],10);for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||g(this.mainBkg,{h:30,s:-30,l:-(4*e-10)}),this["surfacePeer"+e]=this["surfacePeer"+e]||g(this.mainBkg,{h:30,s:-30,l:-(4*e-7)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=this["cScaleLabel"+e]||this.scaleLabelColor;for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["pie"+e]=this["cScale"+e];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?(0,C.A)(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=(0,E.A)(this.secondaryColor,20),this.git1=(0,E.A)(this.pie2||this.secondaryColor,20),this.git2=(0,E.A)(this.pie3||this.tertiaryColor,20),this.git3=(0,E.A)(this.pie4||g(this.primaryColor,{h:-30}),20),this.git4=(0,E.A)(this.pie5||g(this.primaryColor,{h:-60}),20),this.git5=(0,E.A)(this.pie6||g(this.primaryColor,{h:-90}),10),this.git6=(0,E.A)(this.pie7||g(this.primaryColor,{h:60}),10),this.git7=(0,E.A)(this.pie8||g(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||_(this.git0),this.gitInv1=this.gitInv1||_(this.git1),this.gitInv2=this.gitInv2||_(this.git2),this.gitInv3=this.gitInv3||_(this.git3),this.gitInv4=this.gitInv4||_(this.git4),this.gitInv5=this.gitInv5||_(this.git5),this.gitInv6=this.gitInv6||_(this.git6),this.gitInv7=this.gitInv7||_(this.git7),this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||(0,E.A)(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||(0,E.A)(this.background,2)}calculate(e){if("object"!==typeof e)return void this.updateColors();const t=Object.keys(e);t.forEach((t=>{this[t]=e[t]})),this.updateColors(),t.forEach((t=>{this[t]=e[t]}))}};const xt=e=>{const t=new wt;return t.calculate(e),t};let kt=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=g(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=g(this.primaryColor,{h:-160}),this.primaryBorderColor=mt(this.primaryColor,this.darkMode),this.secondaryBorderColor=mt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=mt(this.tertiaryColor,this.darkMode),this.primaryTextColor=_(this.primaryColor),this.secondaryTextColor=_(this.secondaryColor),this.tertiaryTextColor=_(this.tertiaryColor),this.lineColor=_(this.background),this.textColor=_(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=b(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder="calculated",this.personBkg="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||g(this.primaryColor,{h:30}),this.cScale4=this.cScale4||g(this.primaryColor,{h:60}),this.cScale5=this.cScale5||g(this.primaryColor,{h:90}),this.cScale6=this.cScale6||g(this.primaryColor,{h:120}),this.cScale7=this.cScale7||g(this.primaryColor,{h:150}),this.cScale8=this.cScale8||g(this.primaryColor,{h:210}),this.cScale9=this.cScale9||g(this.primaryColor,{h:270}),this.cScale10=this.cScale10||g(this.primaryColor,{h:300}),this.cScale11=this.cScale11||g(this.primaryColor,{h:330}),this["cScalePeer1"]=this["cScalePeer1"]||(0,C.A)(this.secondaryColor,45),this["cScalePeer2"]=this["cScalePeer2"]||(0,C.A)(this.tertiaryColor,40);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=(0,C.A)(this["cScale"+e],10),this["cScalePeer"+e]=this["cScalePeer"+e]||(0,C.A)(this["cScale"+e],25);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||g(this["cScale"+e],{h:180});for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||g(this.mainBkg,{h:30,l:-(5+5*e)}),this["surfacePeer"+e]=this["surfacePeer"+e]||g(this.mainBkg,{h:30,l:-(7+5*e)});if(this.scaleLabelColor="calculated"!==this.scaleLabelColor&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,"calculated"!==this.labelTextColor){this.cScaleLabel0=this.cScaleLabel0||_(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||_(this.labelTextColor);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=this["cScaleLabel"+e]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=(0,E.A)(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=g(this.primaryColor,{h:64}),this.fillType3=g(this.secondaryColor,{h:64}),this.fillType4=g(this.primaryColor,{h:-64}),this.fillType5=g(this.secondaryColor,{h:-64}),this.fillType6=g(this.primaryColor,{h:128}),this.fillType7=g(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||g(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||g(this.primaryColor,{l:-10}),this.pie5=this.pie5||g(this.secondaryColor,{l:-30}),this.pie6=this.pie6||g(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||g(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||g(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||g(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||g(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||g(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||g(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||g(this.primaryColor,{h:-30}),this.git4=this.git4||g(this.primaryColor,{h:-60}),this.git5=this.git5||g(this.primaryColor,{h:-90}),this.git6=this.git6||g(this.primaryColor,{h:60}),this.git7=this.git7||g(this.primaryColor,{h:120}),this.darkMode?(this.git0=(0,E.A)(this.git0,25),this.git1=(0,E.A)(this.git1,25),this.git2=(0,E.A)(this.git2,25),this.git3=(0,E.A)(this.git3,25),this.git4=(0,E.A)(this.git4,25),this.git5=(0,E.A)(this.git5,25),this.git6=(0,E.A)(this.git6,25),this.git7=(0,E.A)(this.git7,25)):(this.git0=(0,C.A)(this.git0,25),this.git1=(0,C.A)(this.git1,25),this.git2=(0,C.A)(this.git2,25),this.git3=(0,C.A)(this.git3,25),this.git4=(0,C.A)(this.git4,25),this.git5=(0,C.A)(this.git5,25),this.git6=(0,C.A)(this.git6,25),this.git7=(0,C.A)(this.git7,25)),this.gitInv0=this.gitInv0||(0,C.A)(_(this.git0),25),this.gitInv1=this.gitInv1||_(this.git1),this.gitInv2=this.gitInv2||_(this.git2),this.gitInv3=this.gitInv3||_(this.git3),this.gitInv4=this.gitInv4||_(this.git4),this.gitInv5=this.gitInv5||_(this.git5),this.gitInv6=this.gitInv6||_(this.git6),this.gitInv7=this.gitInv7||_(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||_(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||_(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||gt,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||vt}calculate(e){if("object"!==typeof e)return void this.updateColors();const t=Object.keys(e);t.forEach((t=>{this[t]=e[t]})),this.updateColors(),t.forEach((t=>{this[t]=e[t]}))}};const _t=e=>{const t=new kt;return t.calculate(e),t};let Ct=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=(0,E.A)("#cde498",10),this.primaryBorderColor=mt(this.primaryColor,this.darkMode),this.secondaryBorderColor=mt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=mt(this.tertiaryColor,this.darkMode),this.primaryTextColor=_(this.primaryColor),this.secondaryTextColor=_(this.secondaryColor),this.tertiaryTextColor=_(this.primaryColor),this.lineColor=_(this.background),this.textColor=_(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder="calculated",this.personBkg="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||g(this.primaryColor,{h:30}),this.cScale4=this.cScale4||g(this.primaryColor,{h:60}),this.cScale5=this.cScale5||g(this.primaryColor,{h:90}),this.cScale6=this.cScale6||g(this.primaryColor,{h:120}),this.cScale7=this.cScale7||g(this.primaryColor,{h:150}),this.cScale8=this.cScale8||g(this.primaryColor,{h:210}),this.cScale9=this.cScale9||g(this.primaryColor,{h:270}),this.cScale10=this.cScale10||g(this.primaryColor,{h:300}),this.cScale11=this.cScale11||g(this.primaryColor,{h:330}),this["cScalePeer1"]=this["cScalePeer1"]||(0,C.A)(this.secondaryColor,45),this["cScalePeer2"]=this["cScalePeer2"]||(0,C.A)(this.tertiaryColor,40);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=(0,C.A)(this["cScale"+e],10),this["cScalePeer"+e]=this["cScalePeer"+e]||(0,C.A)(this["cScale"+e],25);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||g(this["cScale"+e],{h:180});this.scaleLabelColor="calculated"!==this.scaleLabelColor&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=this["cScaleLabel"+e]||this.scaleLabelColor;for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||g(this.mainBkg,{h:30,s:-30,l:-(5+5*e)}),this["surfacePeer"+e]=this["surfacePeer"+e]||g(this.mainBkg,{h:30,s:-30,l:-(8+5*e)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.actorBorder=(0,C.A)(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=g(this.primaryColor,{h:64}),this.fillType3=g(this.secondaryColor,{h:64}),this.fillType4=g(this.primaryColor,{h:-64}),this.fillType5=g(this.secondaryColor,{h:-64}),this.fillType6=g(this.primaryColor,{h:128}),this.fillType7=g(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||g(this.primaryColor,{l:-30}),this.pie5=this.pie5||g(this.secondaryColor,{l:-30}),this.pie6=this.pie6||g(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||g(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||g(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||g(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||g(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||g(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||g(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||g(this.primaryColor,{h:-30}),this.git4=this.git4||g(this.primaryColor,{h:-60}),this.git5=this.git5||g(this.primaryColor,{h:-90}),this.git6=this.git6||g(this.primaryColor,{h:60}),this.git7=this.git7||g(this.primaryColor,{h:120}),this.darkMode?(this.git0=(0,E.A)(this.git0,25),this.git1=(0,E.A)(this.git1,25),this.git2=(0,E.A)(this.git2,25),this.git3=(0,E.A)(this.git3,25),this.git4=(0,E.A)(this.git4,25),this.git5=(0,E.A)(this.git5,25),this.git6=(0,E.A)(this.git6,25),this.git7=(0,E.A)(this.git7,25)):(this.git0=(0,C.A)(this.git0,25),this.git1=(0,C.A)(this.git1,25),this.git2=(0,C.A)(this.git2,25),this.git3=(0,C.A)(this.git3,25),this.git4=(0,C.A)(this.git4,25),this.git5=(0,C.A)(this.git5,25),this.git6=(0,C.A)(this.git6,25),this.git7=(0,C.A)(this.git7,25)),this.gitInv0=this.gitInv0||_(this.git0),this.gitInv1=this.gitInv1||_(this.git1),this.gitInv2=this.gitInv2||_(this.git2),this.gitInv3=this.gitInv3||_(this.git3),this.gitInv4=this.gitInv4||_(this.git4),this.gitInv5=this.gitInv5||_(this.git5),this.gitInv6=this.gitInv6||_(this.git6),this.gitInv7=this.gitInv7||_(this.git7),this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||gt,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||vt}calculate(e){if("object"!==typeof e)return void this.updateColors();const t=Object.keys(e);t.forEach((t=>{this[t]=e[t]})),this.updateColors(),t.forEach((t=>{this[t]=e[t]}))}};const Et=e=>{const t=new Ct;return t.calculate(e),t};class Rt{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=(0,E.A)(this.contrast,55),this.background="#ffffff",this.tertiaryColor=g(this.primaryColor,{h:-160}),this.primaryBorderColor=mt(this.primaryColor,this.darkMode),this.secondaryBorderColor=mt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=mt(this.tertiaryColor,this.darkMode),this.primaryTextColor=_(this.primaryColor),this.secondaryTextColor=_(this.secondaryColor),this.tertiaryTextColor=_(this.tertiaryColor),this.lineColor=_(this.background),this.textColor=_(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder="calculated",this.personBkg="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.secondBkg=(0,E.A)(this.contrast,55),this.border2=this.contrast,this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||_(this["cScale"+e]);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this.darkMode?this["cScalePeer"+e]=this["cScalePeer"+e]||(0,E.A)(this["cScale"+e],10):this["cScalePeer"+e]=this["cScalePeer"+e]||(0,C.A)(this["cScale"+e],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this["cScaleLabel0"]=this["cScaleLabel0"]||this.cScale1,this["cScaleLabel2"]=this["cScaleLabel2"]||this.cScale1;for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=this["cScaleLabel"+e]||this.scaleLabelColor;for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||g(this.mainBkg,{l:-(5+5*e)}),this["surfacePeer"+e]=this["surfacePeer"+e]||g(this.mainBkg,{l:-(8+5*e)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.actorBorder=(0,E.A)(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.sectionBkgColor=(0,E.A)(this.contrast,30),this.sectionBkgColor2=(0,E.A)(this.contrast,30),this.taskBorderColor=(0,C.A)(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=(0,E.A)(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=(0,C.A)(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=g(this.primaryColor,{h:64}),this.fillType3=g(this.secondaryColor,{h:64}),this.fillType4=g(this.primaryColor,{h:-64}),this.fillType5=g(this.secondaryColor,{h:-64}),this.fillType6=g(this.primaryColor,{h:128}),this.fillType7=g(this.secondaryColor,{h:128});for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["pie"+e]=this["cScale"+e];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=(0,C.A)(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||g(this.primaryColor,{h:-30}),this.git4=this.pie5||g(this.primaryColor,{h:-60}),this.git5=this.pie6||g(this.primaryColor,{h:-90}),this.git6=this.pie7||g(this.primaryColor,{h:60}),this.git7=this.pie8||g(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||_(this.git0),this.gitInv1=this.gitInv1||_(this.git1),this.gitInv2=this.gitInv2||_(this.git2),this.gitInv3=this.gitInv3||_(this.git3),this.gitInv4=this.gitInv4||_(this.git4),this.gitInv5=this.gitInv5||_(this.git5),this.gitInv6=this.gitInv6||_(this.git6),this.gitInv7=this.gitInv7||_(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||gt,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||vt}calculate(e){if("object"!==typeof e)return void this.updateColors();const t=Object.keys(e);t.forEach((t=>{this[t]=e[t]})),this.updateColors(),t.forEach((t=>{this[t]=e[t]}))}}const St=e=>{const t=new Rt;return t.calculate(e),t},At={base:{getThemeVariables:bt},dark:{getThemeVariables:xt},default:{getThemeVariables:_t},forest:{getThemeVariables:Et},neutral:{getThemeVariables:St}},Tt={theme:"default",themeVariables:At["default"].getThemeVariables(),themeCSS:void 0,maxTextSize:5e4,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize"],deterministicIds:!1,deterministicIDSeed:void 0,flowchart:{titleTopMargin:25,diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},sequence:{hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",tickInterval:void 0,useMaxWidth:!0,topAxis:!1,useWidth:void 0},journey:{diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},timeline:{diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},class:{titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},state:{titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},er:{titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12,useMaxWidth:!0},pie:{useWidth:void 0,useMaxWidth:!0},requirement:{useWidth:void 0,useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},gitGraph:{titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0},c4:{useWidth:void 0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,useMaxWidth:!0,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,personFont:function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},external_personFont:function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},systemFont:function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},external_systemFont:function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},system_dbFont:function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},external_system_dbFont:function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},system_queueFont:function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},external_system_queueFont:function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},containerFont:function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},external_containerFont:function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},container_dbFont:function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},external_container_dbFont:function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},container_queueFont:function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},external_container_queueFont:function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},componentFont:function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},external_componentFont:function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},component_dbFont:function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},external_component_dbFont:function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},component_queueFont:function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},external_component_queueFont:function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},boundaryFont:function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},fontSize:16};Tt.class&&(Tt.class.arrowMarkerAbsolute=Tt.arrowMarkerAbsolute),Tt.gitGraph&&(Tt.gitGraph.arrowMarkerAbsolute=Tt.arrowMarkerAbsolute);const Mt=(e,t="")=>Object.keys(e).reduce(((n,r)=>Array.isArray(e[r])?n:"object"===typeof e[r]&&null!==e[r]?[...n,t+r,...Mt(e[r],"")]:[...n,t+r]),[]),Lt=Mt(Tt,""),Ot=Tt;/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function It(e){return"undefined"===typeof e||null===e}function Nt(e){return"object"===typeof e&&null!==e}function Bt(e){return Array.isArray(e)?e:It(e)?[]:[e]}function Dt(e,t){var n,r,a,i;if(t)for(i=Object.keys(t),n=0,r=i.length;n<r;n+=1)a=i[n],e[a]=t[a];return e}function Ft(e,t){var n,r="";for(n=0;n<t;n+=1)r+=e;return r}function $t(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e}var Pt=It,zt=Nt,Wt=Bt,jt=Ft,Vt=$t,Ut=Dt,Kt={isNothing:Pt,isObject:zt,toArray:Wt,repeat:jt,isNegativeZero:Vt,extend:Ut};function Ht(e,t){var n="",r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+="\n\n"+e.mark.snippet),r+" "+n):r}function qt(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=Ht(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}qt.prototype=Object.create(Error.prototype),qt.prototype.constructor=qt,qt.prototype.toString=function(e){return this.name+": "+Ht(this,e)};var Gt=qt;function Xt(e,t,n,r,a){var i="",o="",s=Math.floor(a/2)-1;return r-t>s&&(i=" ... ",t=r-s+i.length),n-r>s&&(o=" ...",n=r+s-o.length),{str:i+e.slice(t,n).replace(/\t/g,"→")+o,pos:r-t+i.length}}function Yt(e,t){return Kt.repeat(" ",t-e.length)+e}function Qt(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!==typeof t.indent&&(t.indent=1),"number"!==typeof t.linesBefore&&(t.linesBefore=3),"number"!==typeof t.linesAfter&&(t.linesAfter=2);var n,r=/\r?\n|\r|\0/g,a=[0],i=[],o=-1;while(n=r.exec(e.buffer))i.push(n.index),a.push(n.index+n[0].length),e.position<=n.index&&o<0&&(o=a.length-2);o<0&&(o=a.length-1);var s,l,c="",u=Math.min(e.line+t.linesAfter,i.length).toString().length,d=t.maxLength-(t.indent+u+3);for(s=1;s<=t.linesBefore;s++){if(o-s<0)break;l=Xt(e.buffer,a[o-s],i[o-s],e.position-(a[o]-a[o-s]),d),c=Kt.repeat(" ",t.indent)+Yt((e.line-s+1).toString(),u)+" | "+l.str+"\n"+c}for(l=Xt(e.buffer,a[o],i[o],e.position,d),c+=Kt.repeat(" ",t.indent)+Yt((e.line+1).toString(),u)+" | "+l.str+"\n",c+=Kt.repeat("-",t.indent+u+3+l.pos)+"^\n",s=1;s<=t.linesAfter;s++){if(o+s>=i.length)break;l=Xt(e.buffer,a[o+s],i[o+s],e.position-(a[o]-a[o+s]),d),c+=Kt.repeat(" ",t.indent)+Yt((e.line+s+1).toString(),u)+" | "+l.str+"\n"}return c.replace(/\n$/,"")}var Zt=Qt,Jt=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],en=["scalar","sequence","mapping"];function tn(e){var t={};return null!==e&&Object.keys(e).forEach((function(n){e[n].forEach((function(e){t[String(e)]=n}))})),t}function nn(e,t){if(t=t||{},Object.keys(t).forEach((function(t){if(-1===Jt.indexOf(t))throw new Gt('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')})),this.options=t,this.tag=e,this.kind=t["kind"]||null,this.resolve=t["resolve"]||function(){return!0},this.construct=t["construct"]||function(e){return e},this.instanceOf=t["instanceOf"]||null,this.predicate=t["predicate"]||null,this.represent=t["represent"]||null,this.representName=t["representName"]||null,this.defaultStyle=t["defaultStyle"]||null,this.multi=t["multi"]||!1,this.styleAliases=tn(t["styleAliases"]||null),-1===en.indexOf(this.kind))throw new Gt('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var rn=nn;function an(e,t){var n=[];return e[t].forEach((function(e){var t=n.length;n.forEach((function(n,r){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=r)})),n[t]=e})),n}function on(){var e,t,n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function r(e){e.multi?(n.multi[e.kind].push(e),n.multi["fallback"].push(e)):n[e.kind][e.tag]=n["fallback"][e.tag]=e}for(e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(r);return n}function sn(e){return this.extend(e)}sn.prototype.extend=function(e){var t=[],n=[];if(e instanceof rn)n.push(e);else if(Array.isArray(e))n=n.concat(e);else{if(!e||!Array.isArray(e.implicit)&&!Array.isArray(e.explicit))throw new Gt("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit))}t.forEach((function(e){if(!(e instanceof rn))throw new Gt("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new Gt("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new Gt("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")})),n.forEach((function(e){if(!(e instanceof rn))throw new Gt("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var r=Object.create(sn.prototype);return r.implicit=(this.implicit||[]).concat(t),r.explicit=(this.explicit||[]).concat(n),r.compiledImplicit=an(r,"implicit"),r.compiledExplicit=an(r,"explicit"),r.compiledTypeMap=on(r.compiledImplicit,r.compiledExplicit),r};var ln=sn,cn=new rn("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}}),un=new rn("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}}),dn=new rn("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}}),hn=new ln({explicit:[cn,un,dn]});function pn(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)}function fn(){return null}function mn(e){return null===e}var gn=new rn("tag:yaml.org,2002:null",{kind:"scalar",resolve:pn,construct:fn,predicate:mn,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function vn(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)}function yn(e){return"true"===e||"True"===e||"TRUE"===e}function bn(e){return"[object Boolean]"===Object.prototype.toString.call(e)}var wn=new rn("tag:yaml.org,2002:bool",{kind:"scalar",resolve:vn,construct:yn,predicate:bn,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function xn(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function kn(e){return 48<=e&&e<=55}function _n(e){return 48<=e&&e<=57}function Cn(e){if(null===e)return!1;var t,n=e.length,r=0,a=!1;if(!n)return!1;if(t=e[r],"-"!==t&&"+"!==t||(t=e[++r]),"0"===t){if(r+1===n)return!0;if(t=e[++r],"b"===t){for(r++;r<n;r++)if(t=e[r],"_"!==t){if("0"!==t&&"1"!==t)return!1;a=!0}return a&&"_"!==t}if("x"===t){for(r++;r<n;r++)if(t=e[r],"_"!==t){if(!xn(e.charCodeAt(r)))return!1;a=!0}return a&&"_"!==t}if("o"===t){for(r++;r<n;r++)if(t=e[r],"_"!==t){if(!kn(e.charCodeAt(r)))return!1;a=!0}return a&&"_"!==t}}if("_"===t)return!1;for(;r<n;r++)if(t=e[r],"_"!==t){if(!_n(e.charCodeAt(r)))return!1;a=!0}return!(!a||"_"===t)}function En(e){var t,n=e,r=1;if(-1!==n.indexOf("_")&&(n=n.replace(/_/g,"")),t=n[0],"-"!==t&&"+"!==t||("-"===t&&(r=-1),n=n.slice(1),t=n[0]),"0"===n)return 0;if("0"===t){if("b"===n[1])return r*parseInt(n.slice(2),2);if("x"===n[1])return r*parseInt(n.slice(2),16);if("o"===n[1])return r*parseInt(n.slice(2),8)}return r*parseInt(n,10)}function Rn(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1===0&&!Kt.isNegativeZero(e)}var Sn=new rn("tag:yaml.org,2002:int",{kind:"scalar",resolve:Cn,construct:En,predicate:Rn,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),An=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Tn(e){return null!==e&&!(!An.test(e)||"_"===e[e.length-1])}function Mn(e){var t,n;return t=e.replace(/_/g,"").toLowerCase(),n="-"===t[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:n*parseFloat(t,10)}var Ln=/^[-+]?[0-9]+e/;function On(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Kt.isNegativeZero(e))return"-0.0";return n=e.toString(10),Ln.test(n)?n.replace("e",".e"):n}function In(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!==0||Kt.isNegativeZero(e))}var Nn=new rn("tag:yaml.org,2002:float",{kind:"scalar",resolve:Tn,construct:Mn,predicate:In,represent:On,defaultStyle:"lowercase"}),Bn=hn.extend({implicit:[gn,wn,Sn,Nn]}),Dn=Bn,Fn=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),$n=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function Pn(e){return null!==e&&(null!==Fn.exec(e)||null!==$n.exec(e))}function zn(e){var t,n,r,a,i,o,s,l,c,u,d=0,h=null;if(t=Fn.exec(e),null===t&&(t=$n.exec(e)),null===t)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,a=+t[3],!t[4])return new Date(Date.UTC(n,r,a));if(i=+t[4],o=+t[5],s=+t[6],t[7]){d=t[7].slice(0,3);while(d.length<3)d+="0";d=+d}return t[9]&&(l=+t[10],c=+(t[11]||0),h=6e4*(60*l+c),"-"===t[9]&&(h=-h)),u=new Date(Date.UTC(n,r,a,i,o,s,d)),h&&u.setTime(u.getTime()-h),u}function Wn(e){return e.toISOString()}var jn=new rn("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Pn,construct:zn,instanceOf:Date,represent:Wn});function Vn(e){return"<<"===e||null===e}var Un=new rn("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Vn}),Kn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function Hn(e){if(null===e)return!1;var t,n,r=0,a=e.length,i=Kn;for(n=0;n<a;n++)if(t=i.indexOf(e.charAt(n)),!(t>64)){if(t<0)return!1;r+=6}return r%8===0}function qn(e){var t,n,r=e.replace(/[\r\n=]/g,""),a=r.length,i=Kn,o=0,s=[];for(t=0;t<a;t++)t%4===0&&t&&(s.push(o>>16&255),s.push(o>>8&255),s.push(255&o)),o=o<<6|i.indexOf(r.charAt(t));return n=a%4*6,0===n?(s.push(o>>16&255),s.push(o>>8&255),s.push(255&o)):18===n?(s.push(o>>10&255),s.push(o>>2&255)):12===n&&s.push(o>>4&255),new Uint8Array(s)}function Gn(e){var t,n,r="",a=0,i=e.length,o=Kn;for(t=0;t<i;t++)t%3===0&&t&&(r+=o[a>>18&63],r+=o[a>>12&63],r+=o[a>>6&63],r+=o[63&a]),a=(a<<8)+e[t];return n=i%3,0===n?(r+=o[a>>18&63],r+=o[a>>12&63],r+=o[a>>6&63],r+=o[63&a]):2===n?(r+=o[a>>10&63],r+=o[a>>4&63],r+=o[a<<2&63],r+=o[64]):1===n&&(r+=o[a>>2&63],r+=o[a<<4&63],r+=o[64],r+=o[64]),r}function Xn(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)}var Yn=new rn("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Hn,construct:qn,predicate:Xn,represent:Gn}),Qn=Object.prototype.hasOwnProperty,Zn=Object.prototype.toString;function Jn(e){if(null===e)return!0;var t,n,r,a,i,o=[],s=e;for(t=0,n=s.length;t<n;t+=1){if(r=s[t],i=!1,"[object Object]"!==Zn.call(r))return!1;for(a in r)if(Qn.call(r,a)){if(i)return!1;i=!0}if(!i)return!1;if(-1!==o.indexOf(a))return!1;o.push(a)}return!0}function er(e){return null!==e?e:[]}var tr=new rn("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Jn,construct:er}),nr=Object.prototype.toString;function rr(e){if(null===e)return!0;var t,n,r,a,i,o=e;for(i=new Array(o.length),t=0,n=o.length;t<n;t+=1){if(r=o[t],"[object Object]"!==nr.call(r))return!1;if(a=Object.keys(r),1!==a.length)return!1;i[t]=[a[0],r[a[0]]]}return!0}function ar(e){if(null===e)return[];var t,n,r,a,i,o=e;for(i=new Array(o.length),t=0,n=o.length;t<n;t+=1)r=o[t],a=Object.keys(r),i[t]=[a[0],r[a[0]]];return i}var ir=new rn("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:rr,construct:ar}),or=Object.prototype.hasOwnProperty;function sr(e){if(null===e)return!0;var t,n=e;for(t in n)if(or.call(n,t)&&null!==n[t])return!1;return!0}function lr(e){return null!==e?e:{}}var cr=new rn("tag:yaml.org,2002:set",{kind:"mapping",resolve:sr,construct:lr}),ur=Dn.extend({implicit:[jn,Un],explicit:[Yn,tr,ir,cr]}),dr=Object.prototype.hasOwnProperty,hr=1,pr=2,fr=3,mr=4,gr=1,vr=2,yr=3,br=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,wr=/[\x85\u2028\u2029]/,xr=/[,\[\]\{\}]/,kr=/^(?:!|!!|![a-z\-]+!)$/i,_r=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Cr(e){return Object.prototype.toString.call(e)}function Er(e){return 10===e||13===e}function Rr(e){return 9===e||32===e}function Sr(e){return 9===e||32===e||10===e||13===e}function Ar(e){return 44===e||91===e||93===e||123===e||125===e}function Tr(e){var t;return 48<=e&&e<=57?e-48:(t=32|e,97<=t&&t<=102?t-97+10:-1)}function Mr(e){return 120===e?2:117===e?4:85===e?8:0}function Lr(e){return 48<=e&&e<=57?e-48:-1}function Or(e){return 48===e?"\0":97===e?"":98===e?"\b":116===e||9===e?"\t":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"…":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function Ir(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var Nr=new Array(256),Br=new Array(256),Dr=0;Dr<256;Dr++)Nr[Dr]=Or(Dr)?1:0,Br[Dr]=Or(Dr);function Fr(e,t){this.input=e,this.filename=t["filename"]||null,this.schema=t["schema"]||ur,this.onWarning=t["onWarning"]||null,this.legacy=t["legacy"]||!1,this.json=t["json"]||!1,this.listener=t["listener"]||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function $r(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=Zt(n),new Gt(t,n)}function Pr(e,t){throw $r(e,t)}function zr(e,t){e.onWarning&&e.onWarning.call(null,$r(e,t))}var Wr={YAML:function(e,t,n){var r,a,i;null!==e.version&&Pr(e,"duplication of %YAML directive"),1!==n.length&&Pr(e,"YAML directive accepts exactly one argument"),r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),null===r&&Pr(e,"ill-formed argument of the YAML directive"),a=parseInt(r[1],10),i=parseInt(r[2],10),1!==a&&Pr(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=i<2,1!==i&&2!==i&&zr(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var r,a;2!==n.length&&Pr(e,"TAG directive accepts exactly two arguments"),r=n[0],a=n[1],kr.test(r)||Pr(e,"ill-formed tag handle (first argument) of the TAG directive"),dr.call(e.tagMap,r)&&Pr(e,'there is a previously declared suffix for "'+r+'" tag handle'),_r.test(a)||Pr(e,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch(i){Pr(e,"tag prefix is malformed: "+a)}e.tagMap[r]=a}};function jr(e,t,n,r){var a,i,o,s;if(t<n){if(s=e.input.slice(t,n),r)for(a=0,i=s.length;a<i;a+=1)o=s.charCodeAt(a),9===o||32<=o&&o<=1114111||Pr(e,"expected valid JSON character");else br.test(s)&&Pr(e,"the stream contains non-printable characters");e.result+=s}}function Vr(e,t,n,r){var a,i,o,s;for(Kt.isObject(n)||Pr(e,"cannot merge mappings; the provided source object is unacceptable"),a=Object.keys(n),o=0,s=a.length;o<s;o+=1)i=a[o],dr.call(t,i)||(t[i]=n[i],r[i]=!0)}function Ur(e,t,n,r,a,i,o,s,l){var c,u;if(Array.isArray(a))for(a=Array.prototype.slice.call(a),c=0,u=a.length;c<u;c+=1)Array.isArray(a[c])&&Pr(e,"nested arrays are not supported inside keys"),"object"===typeof a&&"[object Object]"===Cr(a[c])&&(a[c]="[object Object]");if("object"===typeof a&&"[object Object]"===Cr(a)&&(a="[object Object]"),a=String(a),null===t&&(t={}),"tag:yaml.org,2002:merge"===r)if(Array.isArray(i))for(c=0,u=i.length;c<u;c+=1)Vr(e,t,i[c],n);else Vr(e,t,i,n);else e.json||dr.call(n,a)||!dr.call(t,a)||(e.line=o||e.line,e.lineStart=s||e.lineStart,e.position=l||e.position,Pr(e,"duplicated mapping key")),"__proto__"===a?Object.defineProperty(t,a,{configurable:!0,enumerable:!0,writable:!0,value:i}):t[a]=i,delete n[a];return t}function Kr(e){var t;t=e.input.charCodeAt(e.position),10===t?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):Pr(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Hr(e,t,n){var r=0,a=e.input.charCodeAt(e.position);while(0!==a){while(Rr(a))9===a&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),a=e.input.charCodeAt(++e.position);if(t&&35===a)do{a=e.input.charCodeAt(++e.position)}while(10!==a&&13!==a&&0!==a);if(!Er(a))break;Kr(e),a=e.input.charCodeAt(e.position),r++,e.lineIndent=0;while(32===a)e.lineIndent++,a=e.input.charCodeAt(++e.position)}return-1!==n&&0!==r&&e.lineIndent<n&&zr(e,"deficient indentation"),r}function qr(e){var t,n=e.position;return t=e.input.charCodeAt(n),!(45!==t&&46!==t||t!==e.input.charCodeAt(n+1)||t!==e.input.charCodeAt(n+2)||(n+=3,t=e.input.charCodeAt(n),0!==t&&!Sr(t)))}function Gr(e,t){1===t?e.result+=" ":t>1&&(e.result+=Kt.repeat("\n",t-1))}function Xr(e,t,n){var r,a,i,o,s,l,c,u,d,h=e.kind,p=e.result;if(d=e.input.charCodeAt(e.position),Sr(d)||Ar(d)||35===d||38===d||42===d||33===d||124===d||62===d||39===d||34===d||37===d||64===d||96===d)return!1;if((63===d||45===d)&&(a=e.input.charCodeAt(e.position+1),Sr(a)||n&&Ar(a)))return!1;e.kind="scalar",e.result="",i=o=e.position,s=!1;while(0!==d){if(58===d){if(a=e.input.charCodeAt(e.position+1),Sr(a)||n&&Ar(a))break}else if(35===d){if(r=e.input.charCodeAt(e.position-1),Sr(r))break}else{if(e.position===e.lineStart&&qr(e)||n&&Ar(d))break;if(Er(d)){if(l=e.line,c=e.lineStart,u=e.lineIndent,Hr(e,!1,-1),e.lineIndent>=t){s=!0,d=e.input.charCodeAt(e.position);continue}e.position=o,e.line=l,e.lineStart=c,e.lineIndent=u;break}}s&&(jr(e,i,o,!1),Gr(e,e.line-l),i=o=e.position,s=!1),Rr(d)||(o=e.position+1),d=e.input.charCodeAt(++e.position)}return jr(e,i,o,!1),!!e.result||(e.kind=h,e.result=p,!1)}function Yr(e,t){var n,r,a;if(n=e.input.charCodeAt(e.position),39!==n)return!1;e.kind="scalar",e.result="",e.position++,r=a=e.position;while(0!==(n=e.input.charCodeAt(e.position)))if(39===n){if(jr(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),39!==n)return!0;r=e.position,e.position++,a=e.position}else Er(n)?(jr(e,r,a,!0),Gr(e,Hr(e,!1,t)),r=a=e.position):e.position===e.lineStart&&qr(e)?Pr(e,"unexpected end of the document within a single quoted scalar"):(e.position++,a=e.position);Pr(e,"unexpected end of the stream within a single quoted scalar")}function Qr(e,t){var n,r,a,i,o,s;if(s=e.input.charCodeAt(e.position),34!==s)return!1;e.kind="scalar",e.result="",e.position++,n=r=e.position;while(0!==(s=e.input.charCodeAt(e.position))){if(34===s)return jr(e,n,e.position,!0),e.position++,!0;if(92===s){if(jr(e,n,e.position,!0),s=e.input.charCodeAt(++e.position),Er(s))Hr(e,!1,t);else if(s<256&&Nr[s])e.result+=Br[s],e.position++;else if((o=Mr(s))>0){for(a=o,i=0;a>0;a--)s=e.input.charCodeAt(++e.position),(o=Tr(s))>=0?i=(i<<4)+o:Pr(e,"expected hexadecimal character");e.result+=Ir(i),e.position++}else Pr(e,"unknown escape sequence");n=r=e.position}else Er(s)?(jr(e,n,r,!0),Gr(e,Hr(e,!1,t)),n=r=e.position):e.position===e.lineStart&&qr(e)?Pr(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}Pr(e,"unexpected end of the stream within a double quoted scalar")}function Zr(e,t){var n,r,a,i,o,s,l,c,u,d,h,p,f,m=!0,g=e.tag,v=e.anchor,y=Object.create(null);if(f=e.input.charCodeAt(e.position),91===f)s=93,u=!1,i=[];else{if(123!==f)return!1;s=125,u=!0,i={}}null!==e.anchor&&(e.anchorMap[e.anchor]=i),f=e.input.charCodeAt(++e.position);while(0!==f){if(Hr(e,!0,t),f=e.input.charCodeAt(e.position),f===s)return e.position++,e.tag=g,e.anchor=v,e.kind=u?"mapping":"sequence",e.result=i,!0;m?44===f&&Pr(e,"expected the node content, but found ','"):Pr(e,"missed comma between flow collection entries"),h=d=p=null,l=c=!1,63===f&&(o=e.input.charCodeAt(e.position+1),Sr(o)&&(l=c=!0,e.position++,Hr(e,!0,t))),n=e.line,r=e.lineStart,a=e.position,ia(e,t,hr,!1,!0),h=e.tag,d=e.result,Hr(e,!0,t),f=e.input.charCodeAt(e.position),!c&&e.line!==n||58!==f||(l=!0,f=e.input.charCodeAt(++e.position),Hr(e,!0,t),ia(e,t,hr,!1,!0),p=e.result),u?Ur(e,i,y,h,d,p,n,r,a):l?i.push(Ur(e,null,y,h,d,p,n,r,a)):i.push(d),Hr(e,!0,t),f=e.input.charCodeAt(e.position),44===f?(m=!0,f=e.input.charCodeAt(++e.position)):m=!1}Pr(e,"unexpected end of the stream within a flow collection")}function Jr(e,t){var n,r,a,i,o=gr,s=!1,l=!1,c=t,u=0,d=!1;if(i=e.input.charCodeAt(e.position),124===i)r=!1;else{if(62!==i)return!1;r=!0}e.kind="scalar",e.result="";while(0!==i)if(i=e.input.charCodeAt(++e.position),43===i||45===i)gr===o?o=43===i?yr:vr:Pr(e,"repeat of a chomping mode identifier");else{if(!((a=Lr(i))>=0))break;0===a?Pr(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?Pr(e,"repeat of an indentation width identifier"):(c=t+a-1,l=!0)}if(Rr(i)){do{i=e.input.charCodeAt(++e.position)}while(Rr(i));if(35===i)do{i=e.input.charCodeAt(++e.position)}while(!Er(i)&&0!==i)}while(0!==i){Kr(e),e.lineIndent=0,i=e.input.charCodeAt(e.position);while((!l||e.lineIndent<c)&&32===i)e.lineIndent++,i=e.input.charCodeAt(++e.position);if(!l&&e.lineIndent>c&&(c=e.lineIndent),Er(i))u++;else{if(e.lineIndent<c){o===yr?e.result+=Kt.repeat("\n",s?1+u:u):o===gr&&s&&(e.result+="\n");break}r?Rr(i)?(d=!0,e.result+=Kt.repeat("\n",s?1+u:u)):d?(d=!1,e.result+=Kt.repeat("\n",u+1)):0===u?s&&(e.result+=" "):e.result+=Kt.repeat("\n",u):e.result+=Kt.repeat("\n",s?1+u:u),s=!0,l=!0,u=0,n=e.position;while(!Er(i)&&0!==i)i=e.input.charCodeAt(++e.position);jr(e,n,e.position,!1)}}return!0}function ea(e,t){var n,r,a,i=e.tag,o=e.anchor,s=[],l=!1;if(-1!==e.firstTabInLine)return!1;null!==e.anchor&&(e.anchorMap[e.anchor]=s),a=e.input.charCodeAt(e.position);while(0!==a){if(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,Pr(e,"tab characters must not be used in indentation")),45!==a)break;if(r=e.input.charCodeAt(e.position+1),!Sr(r))break;if(l=!0,e.position++,Hr(e,!0,-1)&&e.lineIndent<=t)s.push(null),a=e.input.charCodeAt(e.position);else if(n=e.line,ia(e,t,fr,!1,!0),s.push(e.result),Hr(e,!0,-1),a=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==a)Pr(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return!!l&&(e.tag=i,e.anchor=o,e.kind="sequence",e.result=s,!0)}function ta(e,t,n){var r,a,i,o,s,l,c,u=e.tag,d=e.anchor,h={},p=Object.create(null),f=null,m=null,g=null,v=!1,y=!1;if(-1!==e.firstTabInLine)return!1;null!==e.anchor&&(e.anchorMap[e.anchor]=h),c=e.input.charCodeAt(e.position);while(0!==c){if(v||-1===e.firstTabInLine||(e.position=e.firstTabInLine,Pr(e,"tab characters must not be used in indentation")),r=e.input.charCodeAt(e.position+1),i=e.line,63!==c&&58!==c||!Sr(r)){if(o=e.line,s=e.lineStart,l=e.position,!ia(e,n,pr,!1,!0))break;if(e.line===i){c=e.input.charCodeAt(e.position);while(Rr(c))c=e.input.charCodeAt(++e.position);if(58===c)c=e.input.charCodeAt(++e.position),Sr(c)||Pr(e,"a whitespace character is expected after the key-value separator within a block mapping"),v&&(Ur(e,h,p,f,m,null,o,s,l),f=m=g=null),y=!0,v=!1,a=!1,f=e.tag,m=e.result;else{if(!y)return e.tag=u,e.anchor=d,!0;Pr(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!y)return e.tag=u,e.anchor=d,!0;Pr(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===c?(v&&(Ur(e,h,p,f,m,null,o,s,l),f=m=g=null),y=!0,v=!0,a=!0):v?(v=!1,a=!0):Pr(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,c=r;if((e.line===i||e.lineIndent>t)&&(v&&(o=e.line,s=e.lineStart,l=e.position),ia(e,t,mr,!0,a)&&(v?m=e.result:g=e.result),v||(Ur(e,h,p,f,m,g,o,s,l),f=m=g=null),Hr(e,!0,-1),c=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&0!==c)Pr(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return v&&Ur(e,h,p,f,m,null,o,s,l),y&&(e.tag=u,e.anchor=d,e.kind="mapping",e.result=h),y}function na(e){var t,n,r,a,i=!1,o=!1;if(a=e.input.charCodeAt(e.position),33!==a)return!1;if(null!==e.tag&&Pr(e,"duplication of a tag property"),a=e.input.charCodeAt(++e.position),60===a?(i=!0,a=e.input.charCodeAt(++e.position)):33===a?(o=!0,n="!!",a=e.input.charCodeAt(++e.position)):n="!",t=e.position,i){do{a=e.input.charCodeAt(++e.position)}while(0!==a&&62!==a);e.position<e.length?(r=e.input.slice(t,e.position),a=e.input.charCodeAt(++e.position)):Pr(e,"unexpected end of the stream within a verbatim tag")}else{while(0!==a&&!Sr(a))33===a&&(o?Pr(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),kr.test(n)||Pr(e,"named tag handle cannot contain such characters"),o=!0,t=e.position+1)),a=e.input.charCodeAt(++e.position);r=e.input.slice(t,e.position),xr.test(r)&&Pr(e,"tag suffix cannot contain flow indicator characters")}r&&!_r.test(r)&&Pr(e,"tag name cannot contain such characters: "+r);try{r=decodeURIComponent(r)}catch(s){Pr(e,"tag name is malformed: "+r)}return i?e.tag=r:dr.call(e.tagMap,n)?e.tag=e.tagMap[n]+r:"!"===n?e.tag="!"+r:"!!"===n?e.tag="tag:yaml.org,2002:"+r:Pr(e,'undeclared tag handle "'+n+'"'),!0}function ra(e){var t,n;if(n=e.input.charCodeAt(e.position),38!==n)return!1;null!==e.anchor&&Pr(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;while(0!==n&&!Sr(n)&&!Ar(n))n=e.input.charCodeAt(++e.position);return e.position===t&&Pr(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function aa(e){var t,n,r;if(r=e.input.charCodeAt(e.position),42!==r)return!1;r=e.input.charCodeAt(++e.position),t=e.position;while(0!==r&&!Sr(r)&&!Ar(r))r=e.input.charCodeAt(++e.position);return e.position===t&&Pr(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),dr.call(e.anchorMap,n)||Pr(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],Hr(e,!0,-1),!0}function ia(e,t,n,r,a){var i,o,s,l,c,u,d,h,p,f=1,m=!1,g=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,i=o=s=mr===n||fr===n,r&&Hr(e,!0,-1)&&(m=!0,e.lineIndent>t?f=1:e.lineIndent===t?f=0:e.lineIndent<t&&(f=-1)),1===f)while(na(e)||ra(e))Hr(e,!0,-1)?(m=!0,s=i,e.lineIndent>t?f=1:e.lineIndent===t?f=0:e.lineIndent<t&&(f=-1)):s=!1;if(s&&(s=m||a),1!==f&&mr!==n||(h=hr===n||pr===n?t:t+1,p=e.position-e.lineStart,1===f?s&&(ea(e,p)||ta(e,p,h))||Zr(e,h)?g=!0:(o&&Jr(e,h)||Yr(e,h)||Qr(e,h)?g=!0:aa(e)?(g=!0,null===e.tag&&null===e.anchor||Pr(e,"alias node should not have any properties")):Xr(e,h,hr===n)&&(g=!0,null===e.tag&&(e.tag="?")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===f&&(g=s&&ea(e,p))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&Pr(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),l=0,c=e.implicitTypes.length;l<c;l+=1)if(d=e.implicitTypes[l],d.resolve(e.result)){e.result=d.construct(e.result),e.tag=d.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else if("!"!==e.tag){if(dr.call(e.typeMap[e.kind||"fallback"],e.tag))d=e.typeMap[e.kind||"fallback"][e.tag];else for(d=null,u=e.typeMap.multi[e.kind||"fallback"],l=0,c=u.length;l<c;l+=1)if(e.tag.slice(0,u[l].tag.length)===u[l].tag){d=u[l];break}d||Pr(e,"unknown tag !<"+e.tag+">"),null!==e.result&&d.kind!==e.kind&&Pr(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+d.kind+'", not "'+e.kind+'"'),d.resolve(e.result,e.tag)?(e.result=d.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):Pr(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||g}function oa(e){var t,n,r,a,i=e.position,o=!1;e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);while(0!==(a=e.input.charCodeAt(e.position))){if(Hr(e,!0,-1),a=e.input.charCodeAt(e.position),e.lineIndent>0||37!==a)break;o=!0,a=e.input.charCodeAt(++e.position),t=e.position;while(0!==a&&!Sr(a))a=e.input.charCodeAt(++e.position);n=e.input.slice(t,e.position),r=[],n.length<1&&Pr(e,"directive name must not be less than one character in length");while(0!==a){while(Rr(a))a=e.input.charCodeAt(++e.position);if(35===a){do{a=e.input.charCodeAt(++e.position)}while(0!==a&&!Er(a));break}if(Er(a))break;t=e.position;while(0!==a&&!Sr(a))a=e.input.charCodeAt(++e.position);r.push(e.input.slice(t,e.position))}0!==a&&Kr(e),dr.call(Wr,n)?Wr[n](e,n,r):zr(e,'unknown document directive "'+n+'"')}Hr(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,Hr(e,!0,-1)):o&&Pr(e,"directives end mark is expected"),ia(e,e.lineIndent-1,mr,!1,!0),Hr(e,!0,-1),e.checkLineBreaks&&wr.test(e.input.slice(i,e.position))&&zr(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&qr(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,Hr(e,!0,-1)):e.position<e.length-1&&Pr(e,"end of the stream or a document separator is expected")}function sa(e,t){e=String(e),t=t||{},0!==e.length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var n=new Fr(e,t),r=e.indexOf("\0");-1!==r&&(n.position=r,Pr(n,"null byte is not allowed in input")),n.input+="\0";while(32===n.input.charCodeAt(n.position))n.lineIndent+=1,n.position+=1;while(n.position<n.length-1)oa(n);return n.documents}function la(e,t,n){null!==t&&"object"===typeof t&&"undefined"===typeof n&&(n=t,t=null);var r=sa(e,n);if("function"!==typeof t)return r;for(var a=0,i=r.length;a<i;a+=1)t(r[a])}function ca(e,t){var n=sa(e,t);if(0!==n.length){if(1===n.length)return n[0];throw new Gt("expected a single document in the stream, but found more")}}var ua=la,da=ca,ha={loadAll:ua,load:da},pa=hn,fa=ha.load;const ma=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s;function ga(e,t){var n;const r=e.match(ma);if(r){const a=fa(r[1],{schema:pa});return(null==a?void 0:a.title)&&(null==(n=t.setDiagramTitle)||n.call(t,a.title)),e.slice(r[0].length)}return e}const va=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,ya=/\s*%%.*\n/gm,ba={},wa=function(e,t){e=e.replace(ma,"").replace(va,"").replace(ya,"\n");for(const[n,{detector:r}]of Object.entries(ba)){const a=r(e,t);if(a)return n}throw new Error(`No diagram type detected for text: ${e}`)},xa=(...e)=>{for(const{id:t,detector:n,loader:r}of e)ka(t,n,r)},ka=(e,t,n)=>{ba[e]?Ze.error(`Detector with key ${e} already exists`):ba[e]={detector:t,loader:n},Ze.debug(`Detector with key ${e} added${n?" with loader":""}`)},_a=e=>ba[e].loader,Ca=function(e,t,n){const{depth:r,clobber:a}=Object.assign({depth:2,clobber:!1},n);return Array.isArray(t)&&!Array.isArray(e)?(t.forEach((t=>Ca(e,t,n))),e):Array.isArray(t)&&Array.isArray(e)?(t.forEach((t=>{e.includes(t)||e.push(t)})),e):void 0===e||r<=0?void 0!==e&&null!==e&&"object"===typeof e&&"object"===typeof t?Object.assign(e,t):t:(void 0!==t&&"object"===typeof e&&"object"===typeof t&&Object.keys(t).forEach((n=>{"object"!==typeof t[n]||void 0!==e[n]&&"object"!==typeof e[n]?(a||"object"!==typeof e[n]&&"object"!==typeof t[n])&&(e[n]=t[n]):(void 0===e[n]&&(e[n]=Array.isArray(t[n])?[]:{}),e[n]=Ca(e[n],t[n],{depth:r-1,clobber:a}))})),e)},Ea=Ca,Ra={curveBasis:s.qrM,curveBasisClosed:s.Yu4,curveBasisOpen:s.IA3,curveBumpX:s.Wi0,curveBumpY:s.PGM,curveBundle:s.OEq,curveCardinalClosed:s.olC,curveCardinalOpen:s.IrU,curveCardinal:s.y8u,curveCatmullRomClosed:s.Q7f,curveCatmullRomOpen:s.cVp,curveCatmullRom:s.oDi,curveLinear:s.lUB,curveLinearClosed:s.Lx9,curveMonotoneX:s.nVG,curveMonotoneY:s.uxU,curveNatural:s.Xf2,curveStep:s.GZz,curveStepAfter:s.UPb,curveStepBefore:s.dyv},Sa=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Aa=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Ta=function(e,t){const n=Ma(e,/(?:init\b)|(?:initialize\b)/);let r={};if(Array.isArray(n)){const e=n.map((e=>e.args));ti(e),r=Ea(r,[...e])}else r=n.args;if(r){let n=wa(e,t);["config"].forEach((e=>{void 0!==r[e]&&("flowchart-v2"===n&&(n="flowchart"),r[n]=r[e],delete r[e])}))}return r},Ma=function(e,t=null){try{const n=new RegExp(`[%]{2}(?![{]${Aa.source})(?=[}][%]{2}).*\n`,"ig");let r;e=e.trim().replace(n,"").replace(/'/gm,'"'),Ze.debug(`Detecting diagram directive${null!==t?" type:"+t:""} based on the text:${e}`);const a=[];while(null!==(r=Sa.exec(e)))if(r.index===Sa.lastIndex&&Sa.lastIndex++,r&&!t||t&&r[1]&&r[1].match(t)||t&&r[2]&&r[2].match(t)){const e=r[1]?r[1]:r[2],t=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;a.push({type:e,args:t})}return 0===a.length&&a.push({type:e,args:null}),1===a.length?a[0]:a}catch(n){return Ze.error(`ERROR: ${n.message} - Unable to parse directive\n ${null!==t?" type:"+t:""} based on the text:${e}`),{type:null,args:null}}},La=function(e,t){for(const[n,r]of t.entries())if(r.match(e))return n;return-1};function Oa(e,t){if(!e)return t;const n=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return Ra[n]||t}function Ia(e,t){const n=e.trim();if(n)return"loose"!==t.securityLevel?(0,o.Jf)(n):n}const Na=(e,...t)=>{const n=e.split("."),r=n.length-1,a=n[r];let i=window;for(let o=0;o<r;o++)if(i=i[n[o]],!i)return;i[a](...t)};function Ba(e,t){return e&&t?Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)):0}function Da(e){let t,n=0;e.forEach((e=>{n+=Ba(e,t),t=e}));let r,a=n/2;return t=void 0,e.forEach((e=>{if(t&&!r){const n=Ba(e,t);if(n<a)a-=n;else{const i=a/n;i<=0&&(r=t),i>=1&&(r={x:e.x,y:e.y}),i>0&&i<1&&(r={x:(1-i)*t.x+i*e.x,y:(1-i)*t.y+i*e.y})}}t=e})),r}function Fa(e){return 1===e.length?e[0]:Da(e)}const $a=(e,t,n)=>{let r;Ze.info(`our points ${JSON.stringify(t)}`),t[0]!==n&&(t=t.reverse());const a=25;let i,o=a;r=void 0,t.forEach((e=>{if(r&&!i){const t=Ba(e,r);if(t<o)o-=t;else{const n=o/t;n<=0&&(i=r),n>=1&&(i={x:e.x,y:e.y}),n>0&&n<1&&(i={x:(1-n)*r.x+n*e.x,y:(1-n)*r.y+n*e.y})}}r=e}));const s=e?10:5,l=Math.atan2(t[0].y-i.y,t[0].x-i.x),c={x:0,y:0};return c.x=Math.sin(l)*s+(t[0].x+i.x)/2,c.y=-Math.cos(l)*s+(t[0].y+i.y)/2,c};function Pa(e,t,n){let r,a=JSON.parse(JSON.stringify(n));Ze.info("our points",a),"start_left"!==t&&"start_right"!==t&&(a=a.reverse()),a.forEach((e=>{r=e}));const i=25+e;let o,s=i;r=void 0,a.forEach((e=>{if(r&&!o){const t=Ba(e,r);if(t<s)s-=t;else{const n=s/t;n<=0&&(o=r),n>=1&&(o={x:e.x,y:e.y}),n>0&&n<1&&(o={x:(1-n)*r.x+n*e.x,y:(1-n)*r.y+n*e.y})}}r=e}));const l=10+.5*e,c=Math.atan2(a[0].y-o.y,a[0].x-o.x),u={x:0,y:0};return u.x=Math.sin(c)*l+(a[0].x+o.x)/2,u.y=-Math.cos(c)*l+(a[0].y+o.y)/2,"start_left"===t&&(u.x=Math.sin(c+Math.PI)*l+(a[0].x+o.x)/2,u.y=-Math.cos(c+Math.PI)*l+(a[0].y+o.y)/2),"end_right"===t&&(u.x=Math.sin(c-Math.PI)*l+(a[0].x+o.x)/2-5,u.y=-Math.cos(c-Math.PI)*l+(a[0].y+o.y)/2-5),"end_left"===t&&(u.x=Math.sin(c)*l+(a[0].x+o.x)/2-5,u.y=-Math.cos(c)*l+(a[0].y+o.y)/2-5),u}function za(e){let t="",n="";for(const r of e)void 0!==r&&(r.startsWith("color:")||r.startsWith("text-align:")?n=n+r+";":t=t+r+";");return{style:t,labelStyle:n}}let Wa=0;const ja=()=>(Wa++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Wa);function Va(e){let t="";const n="0123456789abcdef",r=n.length;for(let a=0;a<e;a++)t+=n.charAt(Math.floor(Math.random()*r));return t}const Ua=e=>Va(e.length),Ka=function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0}},Ha=function(e,t){const n=t.text.replace(ft.lineBreakRegex," "),[,r]=oi(t.fontSize),a=e.append("text");a.attr("x",t.x),a.attr("y",t.y),a.style("text-anchor",t.anchor),a.style("font-family",t.fontFamily),a.style("font-size",r),a.style("font-weight",t.fontWeight),a.attr("fill",t.fill),void 0!==t.class&&a.attr("class",t.class);const i=a.append("tspan");return i.attr("x",t.x+2*t.textMargin),i.attr("fill",t.fill),i.text(n),a},qa=(0,R.A)(((e,t,n)=>{if(!e)return e;if(n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},n),ft.lineBreakRegex.test(e))return e;const r=e.split(" "),a=[];let i="";return r.forEach(((e,o)=>{const s=Ya(`${e} `,n),l=Ya(i,n);if(s>t){const{hyphenatedStrings:r,remainingWord:o}=Ga(e,t,"-",n);a.push(i,...r),i=o}else l+s>=t?(a.push(i),i=e):i=[i,e].filter(Boolean).join(" ");const c=o+1,u=c===r.length;u&&a.push(i)})),a.filter((e=>""!==e)).join(n.joinWith)}),((e,t,n)=>`${e}${t}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`)),Ga=(0,R.A)(((e,t,n="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);const a=[...e],i=[];let o="";return a.forEach(((e,s)=>{const l=`${o}${e}`,c=Ya(l,r);if(c>=t){const e=s+1,t=a.length===e,r=`${l}${n}`;i.push(t?l:r),o=""}else o=l})),{hyphenatedStrings:i,remainingWord:o}}),((e,t,n="-",r)=>`${e}${t}${n}${r.fontSize}${r.fontWeight}${r.fontFamily}`));function Xa(e,t){return t=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:15},t),Qa(e,t).height}function Ya(e,t){return t=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},t),Qa(e,t).width}const Qa=(0,R.A)(((e,t)=>{t=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},t);const{fontSize:n,fontFamily:r,fontWeight:a}=t;if(!e)return{width:0,height:0};const[,i]=oi(n),o=["sans-serif",r],l=e.split(ft.lineBreakRegex),c=[],u=(0,s.Ltv)("body");if(!u.remove)return{width:0,height:0,lineHeight:0};const d=u.append("svg");for(const s of o){let e=0;const t={width:0,height:0,lineHeight:0};for(const n of l){const r=Ka();r.text=n;const o=Ha(d,r).style("font-size",i).style("font-weight",a).style("font-family",s),l=(o._groups||o)[0][0].getBBox();t.width=Math.round(Math.max(t.width,l.width)),e=Math.round(l.height),t.height+=e,t.lineHeight=Math.round(Math.max(t.lineHeight,e))}c.push(t)}d.remove();const h=isNaN(c[1].height)||isNaN(c[1].width)||isNaN(c[1].lineHeight)||c[0].height>c[1].height&&c[0].width>c[1].width&&c[0].lineHeight>c[1].lineHeight?0:1;return c[h]}),((e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`)),Za=class{constructor(e,t){this.deterministic=e,this.seed=t,this.count=t?t.length:0}next(){return this.deterministic?this.count++:Date.now()}};let Ja;const ei=function(e){return Ja=Ja||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),Ja.innerHTML=e,unescape(Ja.textContent)},ti=e=>{if(Ze.debug("directiveSanitizer called with",e),"object"===typeof e&&(e.length?e.forEach((e=>ti(e))):Object.keys(e).forEach((t=>{Ze.debug("Checking key",t),t.startsWith("__")&&(Ze.debug("sanitize deleting __ option",t),delete e[t]),t.includes("proto")&&(Ze.debug("sanitize deleting proto option",t),delete e[t]),t.includes("constr")&&(Ze.debug("sanitize deleting constr option",t),delete e[t]),t.includes("themeCSS")&&(Ze.debug("sanitizing themeCss option"),e[t]=ni(e[t])),t.includes("fontFamily")&&(Ze.debug("sanitizing fontFamily option"),e[t]=ni(e[t])),t.includes("altFontFamily")&&(Ze.debug("sanitizing altFontFamily option"),e[t]=ni(e[t])),Lt.includes(t)?"object"===typeof e[t]&&(Ze.debug("sanitize deleting object",t),ti(e[t])):(Ze.debug("sanitize deleting option",t),delete e[t])}))),e.themeVariables){const t=Object.keys(e.themeVariables);for(const n of t){const t=e.themeVariables[n];t&&t.match&&!t.match(/^[\d "#%(),.;A-Za-z]+$/)&&(e.themeVariables[n]="")}}Ze.debug("After sanitization",e)},ni=e=>{let t=0,n=0;for(const r of e){if(t<n)return"{ /* ERROR: Unbalanced CSS */ }";"{"===r?t++:"}"===r&&n++}return t!==n?"{ /* ERROR: Unbalanced CSS */ }":e};function ri(e){return"str"in e}function ai(e){return e instanceof Error?e.message:String(e)}const ii=(e,t,n,r)=>{if(!r)return;const a=e.node().getBBox();e.append("text").text(r).attr("x",a.x+a.width/2).attr("y",-n).attr("class",t)},oi=e=>{if("number"===typeof e)return[e,e+"px"];const t=parseInt(e,10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+"px"]:[t,e]},si={assignWithDepth:Ea,wrapLabel:qa,calculateTextHeight:Xa,calculateTextWidth:Ya,calculateTextDimensions:Qa,detectInit:Ta,detectDirective:Ma,isSubstringInArray:La,interpolateToCurve:Oa,calcLabelPosition:Fa,calcCardinalityPosition:$a,calcTerminalLabelPosition:Pa,formatUrl:Ia,getStylesFromArray:za,generateId:ja,random:Ua,runFunc:Na,entityDecode:ei,initIdGenerator:Za,directiveSanitizer:ti,sanitizeCss:ni,insertTitle:ii,parseFontSize:oi},li="9.4.3",ci=Object.freeze(Ot);let ui,di=Ea({},ci),hi=[],pi=Ea({},ci);const fi=(e,t)=>{let n=Ea({},e),r={};for(const a of t)xi(a),r=Ea(r,a);if(n=Ea(n,r),r.theme&&r.theme in At){const e=Ea({},ui),t=Ea(e.themeVariables||{},r.themeVariables);n.theme&&n.theme in At&&(n.themeVariables=At[n.theme].getThemeVariables(t))}return pi=n,Si(pi),pi},mi=e=>(di=Ea({},ci),di=Ea(di,e),e.theme&&At[e.theme]&&(di.themeVariables=At[e.theme].getThemeVariables(e.themeVariables)),fi(di,hi),di),gi=e=>{ui=Ea({},e)},vi=e=>(di=Ea(di,e),fi(di,hi),di),yi=()=>Ea({},di),bi=e=>(Si(e),Ea(pi,e),wi()),wi=()=>Ea({},pi),xi=e=>{["secure",...di.secure??[]].forEach((t=>{void 0!==e[t]&&(Ze.debug(`Denied attempt to modify a secure key ${t}`,e[t]),delete e[t])})),Object.keys(e).forEach((t=>{0===t.indexOf("__")&&delete e[t]})),Object.keys(e).forEach((t=>{"string"===typeof e[t]&&(e[t].includes("<")||e[t].includes(">")||e[t].includes("url(data:"))&&delete e[t],"object"===typeof e[t]&&xi(e[t])}))},ki=e=>{e.fontFamily&&(e.themeVariables&&e.themeVariables.fontFamily||(e.themeVariables={fontFamily:e.fontFamily})),hi.push(e),fi(di,hi)},_i=(e=di)=>{hi=[],fi(e,hi)};var Ci=(e=>(e["LAZY_LOAD_DEPRECATED"]="The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",e))(Ci||{});const Ei={},Ri=e=>{Ei[e]||(Ze.warn(Ci[e]),Ei[e]=!0)},Si=e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&Ri("LAZY_LOAD_DEPRECATED")},Ai=function(e,t){for(let n of t)e.attr(n[0],n[1])},Ti=function(e,t,n){let r=new Map;return n?(r.set("width","100%"),r.set("style",`max-width: ${t}px;`)):(r.set("height",e),r.set("width",t)),r},Mi=function(e,t,n,r){const a=Ti(t,n,r);Ai(e,a)},Li=function(e,t,n,r){const a=t.node().getBBox(),i=a.width,o=a.height;Ze.info(`SVG bounds: ${i}x${o}`,a);let s=0,l=0;Ze.info(`Graph bounds: ${s}x${l}`,e),s=i+2*n,l=o+2*n,Ze.info(`Calculated bounds: ${s}x${l}`),Mi(t,l,s,r);const c=`${a.x-n} ${a.y-n} ${a.width+2*n} ${a.height+2*n}`;t.attr("viewBox",c)},Oi=e=>`g.classGroup text {\n fill: ${e.nodeBorder};\n fill: ${e.classText};\n stroke: none;\n font-family: ${e.fontFamily};\n font-size: 10px;\n\n .title {\n font-weight: bolder;\n }\n\n}\n\n.nodeLabel, .edgeLabel {\n color: ${e.classText};\n}\n.edgeLabel .label rect {\n fill: ${e.mainBkg};\n}\n.label text {\n fill: ${e.classText};\n}\n.edgeLabel .label span {\n background: ${e.mainBkg};\n}\n\n.classTitle {\n font-weight: bolder;\n}\n.node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${e.mainBkg};\n stroke: ${e.nodeBorder};\n stroke-width: 1px;\n }\n\n\n.divider {\n stroke: ${e.nodeBorder};\n stroke: 1;\n}\n\ng.clickable {\n cursor: pointer;\n}\n\ng.classGroup rect {\n fill: ${e.mainBkg};\n stroke: ${e.nodeBorder};\n}\n\ng.classGroup line {\n stroke: ${e.nodeBorder};\n stroke-width: 1;\n}\n\n.classLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ${e.mainBkg};\n opacity: 0.5;\n}\n\n.classLabel .label {\n fill: ${e.nodeBorder};\n font-size: 10px;\n}\n\n.relation {\n stroke: ${e.lineColor};\n stroke-width: 1;\n fill: none;\n}\n\n.dashed-line{\n stroke-dasharray: 3;\n}\n\n.dotted-line{\n stroke-dasharray: 1 2;\n}\n\n#compositionStart, .composition {\n fill: ${e.lineColor} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n#compositionEnd, .composition {\n fill: ${e.lineColor} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n fill: ${e.lineColor} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n fill: ${e.lineColor} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n#extensionStart, .extension {\n fill: ${e.mainBkg} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n#extensionEnd, .extension {\n fill: ${e.mainBkg} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n#aggregationStart, .aggregation {\n fill: ${e.mainBkg} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n#aggregationEnd, .aggregation {\n fill: ${e.mainBkg} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n#lollipopStart, .lollipop {\n fill: ${e.mainBkg} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n#lollipopEnd, .lollipop {\n fill: ${e.mainBkg} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n.edgeTerminals {\n font-size: 11px;\n}\n\n.classTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${e.textColor};\n}\n`,Ii=Oi,Ni=e=>`\n .entityBox {\n fill: ${e.mainBkg};\n stroke: ${e.nodeBorder};\n }\n\n .attributeBoxOdd {\n fill: ${e.attributeBackgroundColorOdd};\n stroke: ${e.nodeBorder};\n }\n\n .attributeBoxEven {\n fill: ${e.attributeBackgroundColorEven};\n stroke: ${e.nodeBorder};\n }\n\n .relationshipLabelBox {\n fill: ${e.tertiaryColor};\n opacity: 0.7;\n background-color: ${e.tertiaryColor};\n rect {\n opacity: 0.5;\n }\n }\n\n .relationshipLine {\n stroke: ${e.lineColor};\n }\n\n .entityTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${e.textColor};\n } \n`,Bi=Ni,Di=()=>"",Fi=Di,$i=e=>`.label {\n font-family: ${e.fontFamily};\n color: ${e.nodeTextColor||e.textColor};\n }\n .cluster-label text {\n fill: ${e.titleColor};\n }\n .cluster-label span {\n color: ${e.titleColor};\n }\n\n .label text,span {\n fill: ${e.nodeTextColor||e.textColor};\n color: ${e.nodeTextColor||e.textColor};\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${e.mainBkg};\n stroke: ${e.nodeBorder};\n stroke-width: 1px;\n }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ${e.arrowheadColor};\n }\n\n .edgePath .path {\n stroke: ${e.lineColor};\n stroke-width: 2.0px;\n }\n\n .flowchart-link {\n stroke: ${e.lineColor};\n fill: none;\n }\n\n .edgeLabel {\n background-color: ${e.edgeLabelBackground};\n rect {\n opacity: 0.5;\n background-color: ${e.edgeLabelBackground};\n fill: ${e.edgeLabelBackground};\n }\n text-align: center;\n }\n\n .cluster rect {\n fill: ${e.clusterBkg};\n stroke: ${e.clusterBorder};\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ${e.titleColor};\n }\n\n .cluster span {\n color: ${e.titleColor};\n }\n /* .cluster div {\n color: ${e.titleColor};\n } */\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: ${e.fontFamily};\n font-size: 12px;\n background: ${e.tertiaryColor};\n border: 1px solid ${e.border2};\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .flowchartTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${e.textColor};\n }\n`,Pi=$i,zi=e=>`\n .mermaid-main-font {\n font-family: "trebuchet ms", verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n .exclude-range {\n fill: ${e.excludeBkgColor};\n }\n\n .section {\n stroke: none;\n opacity: 0.2;\n }\n\n .section0 {\n fill: ${e.sectionBkgColor};\n }\n\n .section2 {\n fill: ${e.sectionBkgColor2};\n }\n\n .section1,\n .section3 {\n fill: ${e.altSectionBkgColor};\n opacity: 0.2;\n }\n\n .sectionTitle0 {\n fill: ${e.titleColor};\n }\n\n .sectionTitle1 {\n fill: ${e.titleColor};\n }\n\n .sectionTitle2 {\n fill: ${e.titleColor};\n }\n\n .sectionTitle3 {\n fill: ${e.titleColor};\n }\n\n .sectionTitle {\n text-anchor: start;\n // font-size: ${e.ganttFontSize};\n // text-height: 14px;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n\n }\n\n\n /* Grid and axis */\n\n .grid .tick {\n stroke: ${e.gridColor};\n opacity: 0.8;\n shape-rendering: crispEdges;\n text {\n font-family: ${e.fontFamily};\n fill: ${e.textColor};\n }\n }\n\n .grid path {\n stroke-width: 0;\n }\n\n\n /* Today line */\n\n .today {\n fill: none;\n stroke: ${e.todayLineColor};\n stroke-width: 2px;\n }\n\n\n /* Task styling */\n\n /* Default task */\n\n .task {\n stroke-width: 2;\n }\n\n .taskText {\n text-anchor: middle;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n\n // .taskText:not([font-size]) {\n // font-size: ${e.ganttFontSize};\n // }\n\n .taskTextOutsideRight {\n fill: ${e.taskTextDarkColor};\n text-anchor: start;\n // font-size: ${e.ganttFontSize};\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n\n }\n\n .taskTextOutsideLeft {\n fill: ${e.taskTextDarkColor};\n text-anchor: end;\n // font-size: ${e.ganttFontSize};\n }\n\n /* Special case clickable */\n .task.clickable {\n cursor: pointer;\n }\n .taskText.clickable {\n cursor: pointer;\n fill: ${e.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n .taskTextOutsideLeft.clickable {\n cursor: pointer;\n fill: ${e.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n .taskTextOutsideRight.clickable {\n cursor: pointer;\n fill: ${e.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n /* Specific task settings for the sections*/\n\n .taskText0,\n .taskText1,\n .taskText2,\n .taskText3 {\n fill: ${e.taskTextColor};\n }\n\n .task0,\n .task1,\n .task2,\n .task3 {\n fill: ${e.taskBkgColor};\n stroke: ${e.taskBorderColor};\n }\n\n .taskTextOutside0,\n .taskTextOutside2\n {\n fill: ${e.taskTextOutsideColor};\n }\n\n .taskTextOutside1,\n .taskTextOutside3 {\n fill: ${e.taskTextOutsideColor};\n }\n\n\n /* Active task */\n\n .active0,\n .active1,\n .active2,\n .active3 {\n fill: ${e.activeTaskBkgColor};\n stroke: ${e.activeTaskBorderColor};\n }\n\n .activeText0,\n .activeText1,\n .activeText2,\n .activeText3 {\n fill: ${e.taskTextDarkColor} !important;\n }\n\n\n /* Completed task */\n\n .done0,\n .done1,\n .done2,\n .done3 {\n stroke: ${e.doneTaskBorderColor};\n fill: ${e.doneTaskBkgColor};\n stroke-width: 2;\n }\n\n .doneText0,\n .doneText1,\n .doneText2,\n .doneText3 {\n fill: ${e.taskTextDarkColor} !important;\n }\n\n\n /* Tasks on the critical line */\n\n .crit0,\n .crit1,\n .crit2,\n .crit3 {\n stroke: ${e.critBorderColor};\n fill: ${e.critBkgColor};\n stroke-width: 2;\n }\n\n .activeCrit0,\n .activeCrit1,\n .activeCrit2,\n .activeCrit3 {\n stroke: ${e.critBorderColor};\n fill: ${e.activeTaskBkgColor};\n stroke-width: 2;\n }\n\n .doneCrit0,\n .doneCrit1,\n .doneCrit2,\n .doneCrit3 {\n stroke: ${e.critBorderColor};\n fill: ${e.doneTaskBkgColor};\n stroke-width: 2;\n cursor: pointer;\n shape-rendering: crispEdges;\n }\n\n .milestone {\n transform: rotate(45deg) scale(0.8,0.8);\n }\n\n .milestoneText {\n font-style: italic;\n }\n .doneCritText0,\n .doneCritText1,\n .doneCritText2,\n .doneCritText3 {\n fill: ${e.taskTextDarkColor} !important;\n }\n\n .activeCritText0,\n .activeCritText1,\n .activeCritText2,\n .activeCritText3 {\n fill: ${e.taskTextDarkColor} !important;\n }\n\n .titleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${e.textColor} ;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n`,Wi=zi,ji=()=>"",Vi=ji,Ui=e=>`\n .pieCircle{\n stroke: ${e.pieStrokeColor};\n stroke-width : ${e.pieStrokeWidth};\n opacity : ${e.pieOpacity};\n }\n .pieTitleText {\n text-anchor: middle;\n font-size: ${e.pieTitleTextSize};\n fill: ${e.pieTitleTextColor};\n font-family: ${e.fontFamily};\n }\n .slice {\n font-family: ${e.fontFamily};\n fill: ${e.pieSectionTextColor};\n font-size:${e.pieSectionTextSize};\n // fill: white;\n }\n .legend text {\n fill: ${e.pieLegendTextColor};\n font-family: ${e.fontFamily};\n font-size: ${e.pieLegendTextSize};\n }\n`,Ki=Ui,Hi=e=>`\n\n marker {\n fill: ${e.relationColor};\n stroke: ${e.relationColor};\n }\n\n marker.cross {\n stroke: ${e.lineColor};\n }\n\n svg {\n font-family: ${e.fontFamily};\n font-size: ${e.fontSize};\n }\n\n .reqBox {\n fill: ${e.requirementBackground};\n fill-opacity: 100%;\n stroke: ${e.requirementBorderColor};\n stroke-width: ${e.requirementBorderSize};\n }\n \n .reqTitle, .reqLabel{\n fill: ${e.requirementTextColor};\n }\n .reqLabelBox {\n fill: ${e.relationLabelBackground};\n fill-opacity: 100%;\n }\n\n .req-title-line {\n stroke: ${e.requirementBorderColor};\n stroke-width: ${e.requirementBorderSize};\n }\n .relationshipLine {\n stroke: ${e.relationColor};\n stroke-width: 1;\n }\n .relationshipLabel {\n fill: ${e.relationLabelColor};\n }\n\n`,qi=Hi,Gi=e=>`.actor {\n stroke: ${e.actorBorder};\n fill: ${e.actorBkg};\n }\n\n text.actor > tspan {\n fill: ${e.actorTextColor};\n stroke: none;\n }\n\n .actor-line {\n stroke: ${e.actorLineColor};\n }\n\n .messageLine0 {\n stroke-width: 1.5;\n stroke-dasharray: none;\n stroke: ${e.signalColor};\n }\n\n .messageLine1 {\n stroke-width: 1.5;\n stroke-dasharray: 2, 2;\n stroke: ${e.signalColor};\n }\n\n #arrowhead path {\n fill: ${e.signalColor};\n stroke: ${e.signalColor};\n }\n\n .sequenceNumber {\n fill: ${e.sequenceNumberColor};\n }\n\n #sequencenumber {\n fill: ${e.signalColor};\n }\n\n #crosshead path {\n fill: ${e.signalColor};\n stroke: ${e.signalColor};\n }\n\n .messageText {\n fill: ${e.signalTextColor};\n stroke: none;\n }\n\n .labelBox {\n stroke: ${e.labelBoxBorderColor};\n fill: ${e.labelBoxBkgColor};\n }\n\n .labelText, .labelText > tspan {\n fill: ${e.labelTextColor};\n stroke: none;\n }\n\n .loopText, .loopText > tspan {\n fill: ${e.loopTextColor};\n stroke: none;\n }\n\n .loopLine {\n stroke-width: 2px;\n stroke-dasharray: 2, 2;\n stroke: ${e.labelBoxBorderColor};\n fill: ${e.labelBoxBorderColor};\n }\n\n .note {\n //stroke: #decc93;\n stroke: ${e.noteBorderColor};\n fill: ${e.noteBkgColor};\n }\n\n .noteText, .noteText > tspan {\n fill: ${e.noteTextColor};\n stroke: none;\n }\n\n .activation0 {\n fill: ${e.activationBkgColor};\n stroke: ${e.activationBorderColor};\n }\n\n .activation1 {\n fill: ${e.activationBkgColor};\n stroke: ${e.activationBorderColor};\n }\n\n .activation2 {\n fill: ${e.activationBkgColor};\n stroke: ${e.activationBorderColor};\n }\n\n .actorPopupMenu {\n position: absolute;\n }\n\n .actorPopupMenuPanel {\n position: absolute;\n fill: ${e.actorBkg};\n box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);\n filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));\n}\n .actor-man line {\n stroke: ${e.actorBorder};\n fill: ${e.actorBkg};\n }\n .actor-man circle, line {\n stroke: ${e.actorBorder};\n fill: ${e.actorBkg};\n stroke-width: 2px;\n }\n`,Xi=Gi,Yi=e=>`\ndefs #statediagram-barbEnd {\n fill: ${e.transitionColor};\n stroke: ${e.transitionColor};\n }\ng.stateGroup text {\n fill: ${e.nodeBorder};\n stroke: none;\n font-size: 10px;\n}\ng.stateGroup text {\n fill: ${e.textColor};\n stroke: none;\n font-size: 10px;\n\n}\ng.stateGroup .state-title {\n font-weight: bolder;\n fill: ${e.stateLabelColor};\n}\n\ng.stateGroup rect {\n fill: ${e.mainBkg};\n stroke: ${e.nodeBorder};\n}\n\ng.stateGroup line {\n stroke: ${e.lineColor};\n stroke-width: 1;\n}\n\n.transition {\n stroke: ${e.transitionColor};\n stroke-width: 1;\n fill: none;\n}\n\n.stateGroup .composit {\n fill: ${e.background};\n border-bottom: 1px\n}\n\n.stateGroup .alt-composit {\n fill: #e0e0e0;\n border-bottom: 1px\n}\n\n.state-note {\n stroke: ${e.noteBorderColor};\n fill: ${e.noteBkgColor};\n\n text {\n fill: ${e.noteTextColor};\n stroke: none;\n font-size: 10px;\n }\n}\n\n.stateLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ${e.mainBkg};\n opacity: 0.5;\n}\n\n.edgeLabel .label rect {\n fill: ${e.labelBackgroundColor};\n opacity: 0.5;\n}\n.edgeLabel .label text {\n fill: ${e.transitionLabelColor||e.tertiaryTextColor};\n}\n.label div .edgeLabel {\n color: ${e.transitionLabelColor||e.tertiaryTextColor};\n}\n\n.stateLabel text {\n fill: ${e.stateLabelColor};\n font-size: 10px;\n font-weight: bold;\n}\n\n.node circle.state-start {\n fill: ${e.specialStateColor};\n stroke: ${e.specialStateColor};\n}\n\n.node .fork-join {\n fill: ${e.specialStateColor};\n stroke: ${e.specialStateColor};\n}\n\n.node circle.state-end {\n fill: ${e.innerEndBackground};\n stroke: ${e.background};\n stroke-width: 1.5\n}\n.end-state-inner {\n fill: ${e.compositeBackground||e.background};\n // stroke: ${e.background};\n stroke-width: 1.5\n}\n\n.node rect {\n fill: ${e.stateBkg||e.mainBkg};\n stroke: ${e.stateBorder||e.nodeBorder};\n stroke-width: 1px;\n}\n.node polygon {\n fill: ${e.mainBkg};\n stroke: ${e.stateBorder||e.nodeBorder};;\n stroke-width: 1px;\n}\n#statediagram-barbEnd {\n fill: ${e.lineColor};\n}\n\n.statediagram-cluster rect {\n fill: ${e.compositeTitleBackground};\n stroke: ${e.stateBorder||e.nodeBorder};\n stroke-width: 1px;\n}\n\n.cluster-label, .nodeLabel {\n color: ${e.stateLabelColor};\n}\n\n.statediagram-cluster rect.outer {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state .divider {\n stroke: ${e.stateBorder||e.nodeBorder};\n}\n\n.statediagram-state .title-state {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-cluster.statediagram-cluster .inner {\n fill: ${e.compositeBackground||e.background};\n}\n.statediagram-cluster.statediagram-cluster-alt .inner {\n fill: ${e.altBackground?e.altBackground:"#efefef"};\n}\n\n.statediagram-cluster .inner {\n rx:0;\n ry:0;\n}\n\n.statediagram-state rect.basic {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state rect.divider {\n stroke-dasharray: 10,10;\n fill: ${e.altBackground?e.altBackground:"#efefef"};\n}\n\n.note-edge {\n stroke-dasharray: 5;\n}\n\n.statediagram-note rect {\n fill: ${e.noteBkgColor};\n stroke: ${e.noteBorderColor};\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n.statediagram-note rect {\n fill: ${e.noteBkgColor};\n stroke: ${e.noteBorderColor};\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n\n.statediagram-note text {\n fill: ${e.noteTextColor};\n}\n\n.statediagram-note .nodeLabel {\n color: ${e.noteTextColor};\n}\n.statediagram .edgeLabel {\n color: red; // ${e.noteTextColor};\n}\n\n#dependencyStart, #dependencyEnd {\n fill: ${e.lineColor};\n stroke: ${e.lineColor};\n stroke-width: 1;\n}\n\n.statediagramTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${e.textColor};\n}\n`,Qi=Yi,Zi=e=>`.label {\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n color: ${e.textColor};\n }\n .mouth {\n stroke: #666;\n }\n\n line {\n stroke: ${e.textColor}\n }\n\n .legend {\n fill: ${e.textColor};\n }\n\n .label text {\n fill: #333;\n }\n .label {\n color: ${e.textColor}\n }\n\n .face {\n ${e.faceColor?`fill: ${e.faceColor}`:"fill: #FFF8DC"};\n stroke: #999;\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${e.mainBkg};\n stroke: ${e.nodeBorder};\n stroke-width: 1px;\n }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ${e.arrowheadColor};\n }\n\n .edgePath .path {\n stroke: ${e.lineColor};\n stroke-width: 1.5px;\n }\n\n .flowchart-link {\n stroke: ${e.lineColor};\n fill: none;\n }\n\n .edgeLabel {\n background-color: ${e.edgeLabelBackground};\n rect {\n opacity: 0.5;\n }\n text-align: center;\n }\n\n .cluster rect {\n }\n\n .cluster text {\n fill: ${e.titleColor};\n }\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n font-size: 12px;\n background: ${e.tertiaryColor};\n border: 1px solid ${e.border2};\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .task-type-0, .section-type-0 {\n ${e.fillType0?`fill: ${e.fillType0}`:""};\n }\n .task-type-1, .section-type-1 {\n ${e.fillType0?`fill: ${e.fillType1}`:""};\n }\n .task-type-2, .section-type-2 {\n ${e.fillType0?`fill: ${e.fillType2}`:""};\n }\n .task-type-3, .section-type-3 {\n ${e.fillType0?`fill: ${e.fillType3}`:""};\n }\n .task-type-4, .section-type-4 {\n ${e.fillType0?`fill: ${e.fillType4}`:""};\n }\n .task-type-5, .section-type-5 {\n ${e.fillType0?`fill: ${e.fillType5}`:""};\n }\n .task-type-6, .section-type-6 {\n ${e.fillType0?`fill: ${e.fillType6}`:""};\n }\n .task-type-7, .section-type-7 {\n ${e.fillType0?`fill: ${e.fillType7}`:""};\n }\n\n .actor-0 {\n ${e.actor0?`fill: ${e.actor0}`:""};\n }\n .actor-1 {\n ${e.actor1?`fill: ${e.actor1}`:""};\n }\n .actor-2 {\n ${e.actor2?`fill: ${e.actor2}`:""};\n }\n .actor-3 {\n ${e.actor3?`fill: ${e.actor3}`:""};\n }\n .actor-4 {\n ${e.actor4?`fill: ${e.actor4}`:""};\n }\n .actor-5 {\n ${e.actor5?`fill: ${e.actor5}`:""};\n }\n`,Ji=Zi,eo=e=>`.person {\n stroke: ${e.personBorder};\n fill: ${e.personBkg};\n }\n`,to=eo,no={flowchart:Pi,"flowchart-v2":Pi,sequence:Xi,gantt:Wi,classDiagram:Ii,"classDiagram-v2":Ii,class:Ii,stateDiagram:Qi,state:Qi,info:Vi,pie:Ki,er:Bi,error:Fi,journey:Ji,requirement:qi,c4:to},ro=(e,t,n)=>{let r="";return e in no&&no[e]?r=no[e](n):Ze.warn(`No theme found for ${e}`),` & {\n font-family: ${n.fontFamily};\n font-size: ${n.fontSize};\n fill: ${n.textColor}\n }\n\n /* Classes common for multiple diagrams */\n\n & .error-icon {\n fill: ${n.errorBkgColor};\n }\n & .error-text {\n fill: ${n.errorTextColor};\n stroke: ${n.errorTextColor};\n }\n\n & .edge-thickness-normal {\n stroke-width: 2px;\n }\n & .edge-thickness-thick {\n stroke-width: 3.5px\n }\n & .edge-pattern-solid {\n stroke-dasharray: 0;\n }\n\n & .edge-pattern-dashed{\n stroke-dasharray: 3;\n }\n .edge-pattern-dotted {\n stroke-dasharray: 2;\n }\n\n & .marker {\n fill: ${n.lineColor};\n stroke: ${n.lineColor};\n }\n & .marker.cross {\n stroke: ${n.lineColor};\n }\n\n & svg {\n font-family: ${n.fontFamily};\n font-size: ${n.fontSize};\n }\n\n ${r}\n\n ${t}\n`},ao=(e,t)=>{no[e]=t},io=ro;let oo="",so="",lo="";const co=e=>at(e,wi()),uo=function(){oo="",lo="",so=""},ho=function(e){oo=co(e).replace(/^\s+/g,"")},po=function(){return oo||so},fo=function(e){lo=co(e).replace(/\n\s+/g,"\n")},mo=function(){return lo},go=function(e){so=co(e)},vo=function(){return so},yo={setAccTitle:ho,getAccTitle:po,setDiagramTitle:go,getDiagramTitle:vo,getAccDescription:mo,setAccDescription:fo,clear:uo},bo=Object.freeze(Object.defineProperty({__proto__:null,clear:uo,default:yo,getAccDescription:mo,getAccTitle:po,getDiagramTitle:vo,setAccDescription:fo,setAccTitle:ho,setDiagramTitle:go},Symbol.toStringTag,{value:"Module"}));let wo={};const xo=function(e,t,n,r){Ze.debug("parseDirective is being called",t,n,r);try{if(void 0!==t)switch(t=t.trim(),n){case"open_directive":wo={};break;case"type_directive":if(!wo)throw new Error("currentDirective is undefined");wo.type=t.toLowerCase();break;case"arg_directive":if(!wo)throw new Error("currentDirective is undefined");wo.args=JSON.parse(t);break;case"close_directive":ko(e,wo,r),wo=void 0;break}}catch(a){Ze.error(`Error while rendering sequenceDiagram directive: ${t} jison context: ${n}`),Ze.error(a.message)}},ko=function(e,t,n){switch(Ze.info(`Directive type=${t.type} with args:`,t.args),t.type){case"init":case"initialize":["config"].forEach((e=>{void 0!==t.args[e]&&("flowchart-v2"===n&&(n="flowchart"),t.args[n]=t.args[e],delete t.args[e])})),Ze.info("sanitize in handleDirective",t.args),ti(t.args),Ze.info("sanitize in handleDirective (done)",t.args),ki(t.args);break;case"wrap":case"nowrap":e&&e["setWrap"]&&e.setWrap("wrap"===t.type);break;case"themeCss":Ze.warn("themeCss encountered");break;default:Ze.warn(`Unhandled directive: source: '%%{${t.type}: ${JSON.stringify(t.args?t.args:{})}}%%`,t);break}},_o=Ze,Co=Je,Eo=wi,Ro=e=>at(e,Eo()),So=Li,Ao=()=>bo,To=(e,t,n,r)=>xo(e,t,n,r),Mo={},Lo=(e,t,n)=>{if(Mo[e])throw new Error(`Diagram ${e} already registered.`);Mo[e]=t,n&&ka(e,n),ao(e,t.styles),t.injectUtils&&t.injectUtils(_o,Co,Eo,Ro,So,Ao(),To)},Oo=e=>{if(e in Mo)return Mo[e];throw new Error(`Diagram ${e} not found.`)};var Io=function(){var e=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},t=[1,4],n=[1,7],r=[1,5],a=[1,9],i=[1,6],o=[2,6],s=[1,16],l=[6,8,14,20,22,24,25,27,29,32,37,40,50,55],c=[8,14,20,22,24,25,27,29,32,37,40],u=[8,13,14,20,22,24,25,27,29,32,37,40],d=[1,26],h=[6,8,14,50,55],p=[8,14,55],f=[1,53],m=[1,52],g=[8,14,30,33,35,38,55],v=[1,67],y=[1,68],b=[1,69],w=[8,14,33,35,42,55],x={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,GG:6,document:7,EOF:8,":":9,DIR:10,options:11,body:12,OPT:13,NL:14,line:15,statement:16,commitStatement:17,mergeStatement:18,cherryPickStatement:19,acc_title:20,acc_title_value:21,acc_descr:22,acc_descr_value:23,acc_descr_multiline_value:24,section:25,branchStatement:26,CHECKOUT:27,ref:28,BRANCH:29,ORDER:30,NUM:31,CHERRY_PICK:32,COMMIT_ID:33,STR:34,COMMIT_TAG:35,EMPTYSTR:36,MERGE:37,COMMIT_TYPE:38,commitType:39,COMMIT:40,commit_arg:41,COMMIT_MSG:42,NORMAL:43,REVERSE:44,HIGHLIGHT:45,openDirective:46,typeDirective:47,closeDirective:48,argDirective:49,open_directive:50,type_directive:51,arg_directive:52,close_directive:53,ID:54,";":55,$accept:0,$end:1},terminals_:{2:"error",6:"GG",8:"EOF",9:":",10:"DIR",13:"OPT",14:"NL",20:"acc_title",21:"acc_title_value",22:"acc_descr",23:"acc_descr_value",24:"acc_descr_multiline_value",25:"section",27:"CHECKOUT",29:"BRANCH",30:"ORDER",31:"NUM",32:"CHERRY_PICK",33:"COMMIT_ID",34:"STR",35:"COMMIT_TAG",36:"EMPTYSTR",37:"MERGE",38:"COMMIT_TYPE",40:"COMMIT",42:"COMMIT_MSG",43:"NORMAL",44:"REVERSE",45:"HIGHLIGHT",50:"open_directive",51:"type_directive",52:"arg_directive",53:"close_directive",54:"ID",55:";"},productions_:[0,[3,2],[3,2],[3,3],[3,4],[3,5],[7,0],[7,2],[11,2],[11,1],[12,0],[12,2],[15,2],[15,1],[16,1],[16,1],[16,1],[16,2],[16,2],[16,1],[16,1],[16,1],[16,2],[26,2],[26,4],[19,3],[19,5],[19,5],[19,5],[19,5],[18,2],[18,4],[18,4],[18,4],[18,6],[18,6],[18,6],[18,6],[18,6],[18,6],[18,8],[18,8],[18,8],[18,8],[18,8],[18,8],[17,2],[17,3],[17,3],[17,5],[17,5],[17,3],[17,5],[17,5],[17,5],[17,5],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,3],[17,5],[17,5],[17,5],[17,5],[17,5],[17,5],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[41,0],[41,1],[39,1],[39,1],[39,1],[5,3],[5,5],[46,1],[47,1],[49,1],[48,1],[28,1],[28,1],[4,1],[4,1],[4,1]],performAction:function(e,t,n,r,a,i,o){var s=i.length-1;switch(a){case 3:return i[s];case 4:return i[s-1];case 5:return r.setDirection(i[s-3]),i[s-1];case 7:r.setOptions(i[s-1]),this.$=i[s];break;case 8:i[s-1]+=i[s],this.$=i[s-1];break;case 10:this.$=[];break;case 11:i[s-1].push(i[s]),this.$=i[s-1];break;case 12:this.$=i[s-1];break;case 17:this.$=i[s].trim(),r.setAccTitle(this.$);break;case 18:case 19:this.$=i[s].trim(),r.setAccDescription(this.$);break;case 20:r.addSection(i[s].substr(8)),this.$=i[s].substr(8);break;case 22:r.checkout(i[s]);break;case 23:r.branch(i[s]);break;case 24:r.branch(i[s-2],i[s]);break;case 25:r.cherryPick(i[s],"",void 0);break;case 26:r.cherryPick(i[s-2],"",i[s]);break;case 27:case 29:r.cherryPick(i[s-2],"","");break;case 28:r.cherryPick(i[s],"",i[s-2]);break;case 30:r.merge(i[s],"","","");break;case 31:r.merge(i[s-2],i[s],"","");break;case 32:r.merge(i[s-2],"",i[s],"");break;case 33:r.merge(i[s-2],"","",i[s]);break;case 34:r.merge(i[s-4],i[s],"",i[s-2]);break;case 35:r.merge(i[s-4],"",i[s],i[s-2]);break;case 36:r.merge(i[s-4],"",i[s-2],i[s]);break;case 37:r.merge(i[s-4],i[s-2],i[s],"");break;case 38:r.merge(i[s-4],i[s-2],"",i[s]);break;case 39:r.merge(i[s-4],i[s],i[s-2],"");break;case 40:r.merge(i[s-6],i[s-4],i[s-2],i[s]);break;case 41:r.merge(i[s-6],i[s],i[s-4],i[s-2]);break;case 42:r.merge(i[s-6],i[s-4],i[s],i[s-2]);break;case 43:r.merge(i[s-6],i[s-2],i[s-4],i[s]);break;case 44:r.merge(i[s-6],i[s],i[s-2],i[s-4]);break;case 45:r.merge(i[s-6],i[s-2],i[s],i[s-4]);break;case 46:r.commit(i[s]);break;case 47:r.commit("","",r.commitType.NORMAL,i[s]);break;case 48:r.commit("","",i[s],"");break;case 49:r.commit("","",i[s],i[s-2]);break;case 50:r.commit("","",i[s-2],i[s]);break;case 51:r.commit("",i[s],r.commitType.NORMAL,"");break;case 52:r.commit("",i[s-2],r.commitType.NORMAL,i[s]);break;case 53:r.commit("",i[s],r.commitType.NORMAL,i[s-2]);break;case 54:r.commit("",i[s-2],i[s],"");break;case 55:r.commit("",i[s],i[s-2],"");break;case 56:r.commit("",i[s-4],i[s-2],i[s]);break;case 57:r.commit("",i[s-4],i[s],i[s-2]);break;case 58:r.commit("",i[s-2],i[s-4],i[s]);break;case 59:r.commit("",i[s],i[s-4],i[s-2]);break;case 60:r.commit("",i[s],i[s-2],i[s-4]);break;case 61:r.commit("",i[s-2],i[s],i[s-4]);break;case 62:r.commit(i[s],"",r.commitType.NORMAL,"");break;case 63:r.commit(i[s],"",r.commitType.NORMAL,i[s-2]);break;case 64:r.commit(i[s-2],"",r.commitType.NORMAL,i[s]);break;case 65:r.commit(i[s-2],"",i[s],"");break;case 66:r.commit(i[s],"",i[s-2],"");break;case 67:r.commit(i[s],i[s-2],r.commitType.NORMAL,"");break;case 68:r.commit(i[s-2],i[s],r.commitType.NORMAL,"");break;case 69:r.commit(i[s-4],"",i[s-2],i[s]);break;case 70:r.commit(i[s-4],"",i[s],i[s-2]);break;case 71:r.commit(i[s-2],"",i[s-4],i[s]);break;case 72:r.commit(i[s],"",i[s-4],i[s-2]);break;case 73:r.commit(i[s],"",i[s-2],i[s-4]);break;case 74:r.commit(i[s-2],"",i[s],i[s-4]);break;case 75:r.commit(i[s-4],i[s],i[s-2],"");break;case 76:r.commit(i[s-4],i[s-2],i[s],"");break;case 77:r.commit(i[s-2],i[s],i[s-4],"");break;case 78:r.commit(i[s],i[s-2],i[s-4],"");break;case 79:r.commit(i[s],i[s-4],i[s-2],"");break;case 80:r.commit(i[s-2],i[s-4],i[s],"");break;case 81:r.commit(i[s-4],i[s],r.commitType.NORMAL,i[s-2]);break;case 82:r.commit(i[s-4],i[s-2],r.commitType.NORMAL,i[s]);break;case 83:r.commit(i[s-2],i[s],r.commitType.NORMAL,i[s-4]);break;case 84:r.commit(i[s],i[s-2],r.commitType.NORMAL,i[s-4]);break;case 85:r.commit(i[s],i[s-4],r.commitType.NORMAL,i[s-2]);break;case 86:r.commit(i[s-2],i[s-4],r.commitType.NORMAL,i[s]);break;case 87:r.commit(i[s-6],i[s-4],i[s-2],i[s]);break;case 88:r.commit(i[s-6],i[s-4],i[s],i[s-2]);break;case 89:r.commit(i[s-6],i[s-2],i[s-4],i[s]);break;case 90:r.commit(i[s-6],i[s],i[s-4],i[s-2]);break;case 91:r.commit(i[s-6],i[s-2],i[s],i[s-4]);break;case 92:r.commit(i[s-6],i[s],i[s-2],i[s-4]);break;case 93:r.commit(i[s-4],i[s-6],i[s-2],i[s]);break;case 94:r.commit(i[s-4],i[s-6],i[s],i[s-2]);break;case 95:r.commit(i[s-2],i[s-6],i[s-4],i[s]);break;case 96:r.commit(i[s],i[s-6],i[s-4],i[s-2]);break;case 97:r.commit(i[s-2],i[s-6],i[s],i[s-4]);break;case 98:r.commit(i[s],i[s-6],i[s-2],i[s-4]);break;case 99:r.commit(i[s],i[s-4],i[s-2],i[s-6]);break;case 100:r.commit(i[s-2],i[s-4],i[s],i[s-6]);break;case 101:r.commit(i[s],i[s-2],i[s-4],i[s-6]);break;case 102:r.commit(i[s-2],i[s],i[s-4],i[s-6]);break;case 103:r.commit(i[s-4],i[s-2],i[s],i[s-6]);break;case 104:r.commit(i[s-4],i[s],i[s-2],i[s-6]);break;case 105:r.commit(i[s-2],i[s-4],i[s-6],i[s]);break;case 106:r.commit(i[s],i[s-4],i[s-6],i[s-2]);break;case 107:r.commit(i[s-2],i[s],i[s-6],i[s-4]);break;case 108:r.commit(i[s],i[s-2],i[s-6],i[s-4]);break;case 109:r.commit(i[s-4],i[s-2],i[s-6],i[s]);break;case 110:r.commit(i[s-4],i[s],i[s-6],i[s-2]);break;case 111:this.$="";break;case 112:this.$=i[s];break;case 113:this.$=r.commitType.NORMAL;break;case 114:this.$=r.commitType.REVERSE;break;case 115:this.$=r.commitType.HIGHLIGHT;break;case 118:r.parseDirective("%%{","open_directive");break;case 119:r.parseDirective(i[s],"type_directive");break;case 120:i[s]=i[s].trim().replace(/'/g,'"'),r.parseDirective(i[s],"arg_directive");break;case 121:r.parseDirective("}%%","close_directive","gitGraph");break}},table:[{3:1,4:2,5:3,6:t,8:n,14:r,46:8,50:a,55:i},{1:[3]},{3:10,4:2,5:3,6:t,8:n,14:r,46:8,50:a,55:i},{3:11,4:2,5:3,6:t,8:n,14:r,46:8,50:a,55:i},{7:12,8:o,9:[1,13],10:[1,14],11:15,14:s},e(l,[2,124]),e(l,[2,125]),e(l,[2,126]),{47:17,51:[1,18]},{51:[2,118]},{1:[2,1]},{1:[2,2]},{8:[1,19]},{7:20,8:o,11:15,14:s},{9:[1,21]},e(c,[2,10],{12:22,13:[1,23]}),e(u,[2,9]),{9:[1,25],48:24,53:d},e([9,53],[2,119]),{1:[2,3]},{8:[1,27]},{7:28,8:o,11:15,14:s},{8:[2,7],14:[1,31],15:29,16:30,17:32,18:33,19:34,20:[1,35],22:[1,36],24:[1,37],25:[1,38],26:39,27:[1,40],29:[1,44],32:[1,43],37:[1,42],40:[1,41]},e(u,[2,8]),e(h,[2,116]),{49:45,52:[1,46]},e(h,[2,121]),{1:[2,4]},{8:[1,47]},e(c,[2,11]),{4:48,8:n,14:r,55:i},e(c,[2,13]),e(p,[2,14]),e(p,[2,15]),e(p,[2,16]),{21:[1,49]},{23:[1,50]},e(p,[2,19]),e(p,[2,20]),e(p,[2,21]),{28:51,34:f,54:m},e(p,[2,111],{41:54,33:[1,57],34:[1,59],35:[1,55],38:[1,56],42:[1,58]}),{28:60,34:f,54:m},{33:[1,61],35:[1,62]},{28:63,34:f,54:m},{48:64,53:d},{53:[2,120]},{1:[2,5]},e(c,[2,12]),e(p,[2,17]),e(p,[2,18]),e(p,[2,22]),e(g,[2,122]),e(g,[2,123]),e(p,[2,46]),{34:[1,65]},{39:66,43:v,44:y,45:b},{34:[1,70]},{34:[1,71]},e(p,[2,112]),e(p,[2,30],{33:[1,72],35:[1,74],38:[1,73]}),{34:[1,75]},{34:[1,76],36:[1,77]},e(p,[2,23],{30:[1,78]}),e(h,[2,117]),e(p,[2,47],{33:[1,80],38:[1,79],42:[1,81]}),e(p,[2,48],{33:[1,83],35:[1,82],42:[1,84]}),e(w,[2,113]),e(w,[2,114]),e(w,[2,115]),e(p,[2,51],{35:[1,85],38:[1,86],42:[1,87]}),e(p,[2,62],{33:[1,90],35:[1,88],38:[1,89]}),{34:[1,91]},{39:92,43:v,44:y,45:b},{34:[1,93]},e(p,[2,25],{35:[1,94]}),{33:[1,95]},{33:[1,96]},{31:[1,97]},{39:98,43:v,44:y,45:b},{34:[1,99]},{34:[1,100]},{34:[1,101]},{34:[1,102]},{34:[1,103]},{34:[1,104]},{39:105,43:v,44:y,45:b},{34:[1,106]},{34:[1,107]},{39:108,43:v,44:y,45:b},{34:[1,109]},e(p,[2,31],{35:[1,111],38:[1,110]}),e(p,[2,32],{33:[1,113],35:[1,112]}),e(p,[2,33],{33:[1,114],38:[1,115]}),{34:[1,116],36:[1,117]},{34:[1,118]},{34:[1,119]},e(p,[2,24]),e(p,[2,49],{33:[1,120],42:[1,121]}),e(p,[2,53],{38:[1,122],42:[1,123]}),e(p,[2,63],{33:[1,125],38:[1,124]}),e(p,[2,50],{33:[1,126],42:[1,127]}),e(p,[2,55],{35:[1,128],42:[1,129]}),e(p,[2,66],{33:[1,131],35:[1,130]}),e(p,[2,52],{38:[1,132],42:[1,133]}),e(p,[2,54],{35:[1,134],42:[1,135]}),e(p,[2,67],{35:[1,137],38:[1,136]}),e(p,[2,64],{33:[1,139],38:[1,138]}),e(p,[2,65],{33:[1,141],35:[1,140]}),e(p,[2,68],{35:[1,143],38:[1,142]}),{39:144,43:v,44:y,45:b},{34:[1,145]},{34:[1,146]},{34:[1,147]},{34:[1,148]},{39:149,43:v,44:y,45:b},e(p,[2,26]),e(p,[2,27]),e(p,[2,28]),e(p,[2,29]),{34:[1,150]},{34:[1,151]},{39:152,43:v,44:y,45:b},{34:[1,153]},{39:154,43:v,44:y,45:b},{34:[1,155]},{34:[1,156]},{34:[1,157]},{34:[1,158]},{34:[1,159]},{34:[1,160]},{34:[1,161]},{39:162,43:v,44:y,45:b},{34:[1,163]},{34:[1,164]},{34:[1,165]},{39:166,43:v,44:y,45:b},{34:[1,167]},{39:168,43:v,44:y,45:b},{34:[1,169]},{34:[1,170]},{34:[1,171]},{39:172,43:v,44:y,45:b},{34:[1,173]},e(p,[2,37],{35:[1,174]}),e(p,[2,38],{38:[1,175]}),e(p,[2,36],{33:[1,176]}),e(p,[2,39],{35:[1,177]}),e(p,[2,34],{38:[1,178]}),e(p,[2,35],{33:[1,179]}),e(p,[2,60],{42:[1,180]}),e(p,[2,73],{33:[1,181]}),e(p,[2,61],{42:[1,182]}),e(p,[2,84],{38:[1,183]}),e(p,[2,74],{33:[1,184]}),e(p,[2,83],{38:[1,185]}),e(p,[2,59],{42:[1,186]}),e(p,[2,72],{33:[1,187]}),e(p,[2,58],{42:[1,188]}),e(p,[2,78],{35:[1,189]}),e(p,[2,71],{33:[1,190]}),e(p,[2,77],{35:[1,191]}),e(p,[2,57],{42:[1,192]}),e(p,[2,85],{38:[1,193]}),e(p,[2,56],{42:[1,194]}),e(p,[2,79],{35:[1,195]}),e(p,[2,80],{35:[1,196]}),e(p,[2,86],{38:[1,197]}),e(p,[2,70],{33:[1,198]}),e(p,[2,81],{38:[1,199]}),e(p,[2,69],{33:[1,200]}),e(p,[2,75],{35:[1,201]}),e(p,[2,76],{35:[1,202]}),e(p,[2,82],{38:[1,203]}),{34:[1,204]},{39:205,43:v,44:y,45:b},{34:[1,206]},{34:[1,207]},{39:208,43:v,44:y,45:b},{34:[1,209]},{34:[1,210]},{34:[1,211]},{34:[1,212]},{39:213,43:v,44:y,45:b},{34:[1,214]},{39:215,43:v,44:y,45:b},{34:[1,216]},{34:[1,217]},{34:[1,218]},{34:[1,219]},{34:[1,220]},{34:[1,221]},{34:[1,222]},{39:223,43:v,44:y,45:b},{34:[1,224]},{34:[1,225]},{34:[1,226]},{39:227,43:v,44:y,45:b},{34:[1,228]},{39:229,43:v,44:y,45:b},{34:[1,230]},{34:[1,231]},{34:[1,232]},{39:233,43:v,44:y,45:b},e(p,[2,40]),e(p,[2,42]),e(p,[2,41]),e(p,[2,43]),e(p,[2,45]),e(p,[2,44]),e(p,[2,101]),e(p,[2,102]),e(p,[2,99]),e(p,[2,100]),e(p,[2,104]),e(p,[2,103]),e(p,[2,108]),e(p,[2,107]),e(p,[2,106]),e(p,[2,105]),e(p,[2,110]),e(p,[2,109]),e(p,[2,98]),e(p,[2,97]),e(p,[2,96]),e(p,[2,95]),e(p,[2,93]),e(p,[2,94]),e(p,[2,92]),e(p,[2,91]),e(p,[2,90]),e(p,[2,89]),e(p,[2,87]),e(p,[2,88])],defaultActions:{9:[2,118],10:[2,1],11:[2,2],19:[2,3],27:[2,4],46:[2,120],47:[2,5]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],r=[],a=[null],i=[],o=this.table,s="",l=0,c=0,u=2,d=1,h=i.slice.call(arguments,1),p=Object.create(this.lexer),f={yy:{}};for(var m in this.yy)Object.prototype.hasOwnProperty.call(this.yy,m)&&(f.yy[m]=this.yy[m]);p.setInput(e,f.yy),f.yy.lexer=p,f.yy.parser=this,"undefined"==typeof p.yylloc&&(p.yylloc={});var g=p.yylloc;i.push(g);var v=p.options&&p.options.ranges;function y(){var e;return e=r.pop()||p.lex()||d,"number"!==typeof e&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}"function"===typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;var b,w,x,k,_,C,E,R,S={};while(1){if(w=n[n.length-1],this.defaultActions[w]?x=this.defaultActions[w]:(null!==b&&"undefined"!=typeof b||(b=y()),x=o[w]&&o[w][b]),"undefined"===typeof x||!x.length||!x[0]){var A="";for(_ in R=[],o[w])this.terminals_[_]&&_>u&&R.push("'"+this.terminals_[_]+"'");A=p.showPosition?"Parse error on line "+(l+1)+":\n"+p.showPosition()+"\nExpecting "+R.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(l+1)+": Unexpected "+(b==d?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(A,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:g,expected:R})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+b);switch(x[0]){case 1:n.push(b),a.push(p.yytext),i.push(p.yylloc),n.push(x[1]),b=null,c=p.yyleng,s=p.yytext,l=p.yylineno,g=p.yylloc;break;case 2:if(C=this.productions_[x[1]][1],S.$=a[a.length-C],S._$={first_line:i[i.length-(C||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(C||1)].first_column,last_column:i[i.length-1].last_column},v&&(S._$.range=[i[i.length-(C||1)].range[0],i[i.length-1].range[1]]),k=this.performAction.apply(S,[s,c,l,f.yy,x[1],a,i].concat(h)),"undefined"!==typeof k)return k;C&&(n=n.slice(0,-1*C*2),a=a.slice(0,-1*C),i=i.slice(0,-1*C)),n.push(this.productions_[x[1]][0]),a.push(S.$),i.push(S._$),E=o[n[n.length-2]][n[n.length-1]],n.push(E);break;case 3:return!0}}return!0}},k=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e;var t=e.match(/(?:\r\n?|\n).*/g);return t?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var a=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,a;if(this.options.backtrack_lexer&&(a={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(a.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var i in a)this[i]=a[i];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var a=this._currentRules(),i=0;i<a.length;i++)if(n=this._input.match(this.rules[a[i]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=i,this.options.backtrack_lexer){if(e=this.test_match(n,a[i]),!1!==e)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,a[r]),!1!==e&&e):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){var e=this.conditionStack.length-1;return e>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions["INITIAL"].rules},topState:function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return this.begin("open_directive"),50;case 1:return this.begin("type_directive"),51;case 2:return this.popState(),this.begin("arg_directive"),9;case 3:return this.popState(),this.popState(),53;case 4:return 52;case 5:return this.begin("acc_title"),20;case 6:return this.popState(),"acc_title_value";case 7:return this.begin("acc_descr"),22;case 8:return this.popState(),"acc_descr_value";case 9:this.begin("acc_descr_multiline");break;case 10:this.popState();break;case 11:return"acc_descr_multiline_value";case 12:return 14;case 13:break;case 14:break;case 15:return 6;case 16:return 40;case 17:return 33;case 18:return 38;case 19:return 42;case 20:return 43;case 21:return 44;case 22:return 45;case 23:return 35;case 24:return 29;case 25:return 30;case 26:return 37;case 27:return 32;case 28:return 27;case 29:return 10;case 30:return 10;case 31:return 9;case 32:return"CARET";case 33:this.begin("options");break;case 34:this.popState();break;case 35:return 13;case 36:return 36;case 37:this.begin("string");break;case 38:this.popState();break;case 39:return 34;case 40:return 31;case 41:return 54;case 42:return 8}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:gitGraph\b)/i,/^(?:commit(?=\s|$))/i,/^(?:id:)/i,/^(?:type:)/i,/^(?:msg:)/i,/^(?:NORMAL\b)/i,/^(?:REVERSE\b)/i,/^(?:HIGHLIGHT\b)/i,/^(?:tag:)/i,/^(?:branch(?=\s|$))/i,/^(?:order:)/i,/^(?:merge(?=\s|$))/i,/^(?:cherry-pick(?=\s|$))/i,/^(?:checkout(?=\s|$))/i,/^(?:LR\b)/i,/^(?:BT\b)/i,/^(?::)/i,/^(?:\^)/i,/^(?:options\r?\n)/i,/^(?:[ \r\n\t]+end\b)/i,/^(?:[\s\S]+(?=[ \r\n\t]+end))/i,/^(?:["]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[0-9]+(?=\s|$))/i,/^(?:\w([-\./\w]*[-\w])?)/i,/^(?:$)/i,/^(?:\s+)/i],conditions:{acc_descr_multiline:{rules:[10,11],inclusive:!1},acc_descr:{rules:[8],inclusive:!1},acc_title:{rules:[6],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},options:{rules:[34,35],inclusive:!1},string:{rules:[38,39],inclusive:!1},INITIAL:{rules:[0,5,7,9,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,36,37,40,41,42,43],inclusive:!0}}};return e}();function _(){this.yy={}}return x.lexer=k,_.prototype=x,x.Parser=_,new _}();Io.parser=Io;const No=Io,Bo=e=>null!==e.match(/^\s*gitGraph/);let Do=wi().gitGraph.mainBranchName,Fo=wi().gitGraph.mainBranchOrder,$o={},Po=null,zo={};zo[Do]={name:Do,order:Fo};let Wo={};Wo[Do]=Po;let jo=Do,Vo="LR",Uo=0;function Ko(){return Ua({length:7})}const Ho=function(e,t,n){m_.parseDirective(this,e,t,n)};function qo(e,t){const n=Object.create(null);return e.reduce(((e,r)=>{const a=t(r);return n[a]||(n[a]=!0,e.push(r)),e}),[])}const Go=function(e){Vo=e};let Xo={};const Yo=function(e){Ze.debug("options str",e),e=e&&e.trim(),e=e||"{}";try{Xo=JSON.parse(e)}catch(t){Ze.error("error while parsing gitGraph options",t.message)}},Qo=function(){return Xo},Zo=function(e,t,n,r){Ze.debug("Entering commit:",e,t,n,r),t=ft.sanitizeText(t,wi()),e=ft.sanitizeText(e,wi()),r=ft.sanitizeText(r,wi());const a={id:t||Uo+"-"+Ko(),message:e,seq:Uo++,type:n||fs.NORMAL,tag:r||"",parents:null==Po?[]:[Po.id],branch:jo};Po=a,$o[a.id]=a,Wo[jo]=a.id,Ze.debug("in pushCommit "+a.id)},Jo=function(e,t){if(e=ft.sanitizeText(e,wi()),void 0!==Wo[e]){let t=new Error('Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout '+e+'")');throw t.hash={text:"branch "+e,token:"branch "+e,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"checkout '+e+'"']},t}Wo[e]=null!=Po?Po.id:null,zo[e]={name:e,order:t?parseInt(t,10):null},ns(e),Ze.debug("in createBranch")},es=function(e,t,n,r){e=ft.sanitizeText(e,wi()),t=ft.sanitizeText(t,wi());const a=$o[Wo[jo]],i=$o[Wo[e]];if(jo===e){let t=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw t.hash={text:"merge "+e,token:"merge "+e,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},t}if(void 0===a||!a){let t=new Error('Incorrect usage of "merge". Current branch ('+jo+")has no commits");throw t.hash={text:"merge "+e,token:"merge "+e,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["commit"]},t}if(void 0===Wo[e]){let t=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") does not exist");throw t.hash={text:"merge "+e,token:"merge "+e,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch "+e]},t}if(void 0===i||!i){let t=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") has no commits");throw t.hash={text:"merge "+e,token:"merge "+e,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"commit"']},t}if(a===i){let t=new Error('Incorrect usage of "merge". Both branches have same head');throw t.hash={text:"merge "+e,token:"merge "+e,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},t}if(t&&void 0!==$o[t]){let a=new Error('Incorrect usage of "merge". Commit with id:'+t+" already exists, use different custom Id");throw a.hash={text:"merge "+e+t+n+r,token:"merge "+e+t+n+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["merge "+e+" "+t+"_UNIQUE "+n+" "+r]},a}const o={id:t||Uo+"-"+Ko(),message:"merged branch "+e+" into "+jo,seq:Uo++,parents:[null==Po?null:Po.id,Wo[e]],branch:jo,type:fs.MERGE,customType:n,customId:!!t,tag:r||""};Po=o,$o[o.id]=o,Wo[jo]=o.id,Ze.debug(Wo),Ze.debug("in mergeBranch")},ts=function(e,t,n){if(Ze.debug("Entering cherryPick:",e,t,n),e=ft.sanitizeText(e,wi()),t=ft.sanitizeText(t,wi()),n=ft.sanitizeText(n,wi()),!e||void 0===$o[e]){let n=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw n.hash={text:"cherryPick "+e+" "+t,token:"cherryPick "+e+" "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},n}let r=$o[e],a=r.branch;if(r.type===fs.MERGE){let n=new Error('Incorrect usage of "cherryPick". Source commit should not be a merge commit');throw n.hash={text:"cherryPick "+e+" "+t,token:"cherryPick "+e+" "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},n}if(!t||void 0===$o[t]){if(a===jo){let n=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw n.hash={text:"cherryPick "+e+" "+t,token:"cherryPick "+e+" "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},n}const i=$o[Wo[jo]];if(void 0===i||!i){let n=new Error('Incorrect usage of "cherry-pick". Current branch ('+jo+")has no commits");throw n.hash={text:"cherryPick "+e+" "+t,token:"cherryPick "+e+" "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},n}const o={id:Uo+"-"+Ko(),message:"cherry-picked "+r+" into "+jo,seq:Uo++,parents:[null==Po?null:Po.id,r.id],branch:jo,type:fs.CHERRY_PICK,tag:n??"cherry-pick:"+r.id};Po=o,$o[o.id]=o,Wo[jo]=o.id,Ze.debug(Wo),Ze.debug("in cherryPick")}},ns=function(e){if(e=ft.sanitizeText(e,wi()),void 0===Wo[e]){let t=new Error('Trying to checkout branch which is not yet created. (Help try using "branch '+e+'")');throw t.hash={text:"checkout "+e,token:"checkout "+e,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"branch '+e+'"']},t}{jo=e;const t=Wo[jo];Po=$o[t]}};function rs(e,t,n){const r=e.indexOf(t);-1===r?e.push(n):e.splice(r,1,n)}function as(e){const t=e.reduce(((e,t)=>e.seq>t.seq?e:t),e[0]);let n="";e.forEach((function(e){n+=e===t?"\t*":"\t|"}));const r=[n,t.id,t.seq];for(let a in Wo)Wo[a]===t.id&&r.push(a);if(Ze.debug(r.join(" ")),t.parents&&2==t.parents.length){const n=$o[t.parents[0]];rs(e,t,n),e.push($o[t.parents[1]])}else{if(0==t.parents.length)return;{const n=$o[t.parents];rs(e,t,n)}}e=qo(e,(e=>e.id)),as(e)}const is=function(){Ze.debug($o);const e=us()[0];as([e])},os=function(){$o={},Po=null;let e=wi().gitGraph.mainBranchName,t=wi().gitGraph.mainBranchOrder;Wo={},Wo[e]=null,zo={},zo[e]={name:e,order:t},jo=e,Uo=0,uo()},ss=function(){const e=Object.values(zo).map(((e,t)=>null!==e.order?e:{...e,order:parseFloat(`0.${t}`,10)})).sort(((e,t)=>e.order-t.order)).map((({name:e})=>({name:e})));return e},ls=function(){return Wo},cs=function(){return $o},us=function(){const e=Object.keys($o).map((function(e){return $o[e]}));return e.forEach((function(e){Ze.debug(e.id)})),e.sort(((e,t)=>e.seq-t.seq)),e},ds=function(){return jo},hs=function(){return Vo},ps=function(){return Po},fs={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},ms={parseDirective:Ho,getConfig:()=>wi().gitGraph,setDirection:Go,setOptions:Yo,getOptions:Qo,commit:Zo,branch:Jo,merge:es,cherryPick:ts,checkout:ns,prettyPrint:is,clear:os,getBranchesAsObjArray:ss,getBranches:ls,getCommits:cs,getCommitsArray:us,getCurrentBranch:ds,getDirection:hs,getHead:ps,setAccTitle:ho,getAccTitle:po,getAccDescription:mo,setAccDescription:fo,setDiagramTitle:go,getDiagramTitle:vo,commitType:fs};let gs={};const vs={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},ys=8;let bs={},ws={},xs=[],ks=0;const _s=()=>{bs={},ws={},gs={},ks=0,xs=[]},Cs=e=>{const t=document.createElementNS("http://www.w3.org/2000/svg","text");let n=[];n="string"===typeof e?e.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(e)?e:[];for(const r of n){const e=document.createElementNS("http://www.w3.org/2000/svg","tspan");e.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),e.setAttribute("dy","1em"),e.setAttribute("x","0"),e.setAttribute("class","row"),e.textContent=r.trim(),t.appendChild(e)}return t},Es=(e,t,n)=>{const r=Eo().gitGraph,a=e.append("g").attr("class","commit-bullets"),i=e.append("g").attr("class","commit-labels");let o=0;const s=Object.keys(t),l=s.sort(((e,n)=>t[e].seq-t[n].seq));l.forEach((e=>{const s=t[e],l=bs[s.branch].pos,c=o+10;if(n){let e,t=void 0!==s.customType&&""!==s.customType?s.customType:s.type;switch(t){case vs.NORMAL:e="commit-normal";break;case vs.REVERSE:e="commit-reverse";break;case vs.HIGHLIGHT:e="commit-highlight";break;case vs.MERGE:e="commit-merge";break;case vs.CHERRY_PICK:e="commit-cherry-pick";break;default:e="commit-normal"}if(t===vs.HIGHLIGHT){const t=a.append("rect");t.attr("x",c-10),t.attr("y",l-10),t.attr("height",20),t.attr("width",20),t.attr("class",`commit ${s.id} commit-highlight${bs[s.branch].index%ys} ${e}-outer`),a.append("rect").attr("x",c-6).attr("y",l-6).attr("height",12).attr("width",12).attr("class",`commit ${s.id} commit${bs[s.branch].index%ys} ${e}-inner`)}else if(t===vs.CHERRY_PICK)a.append("circle").attr("cx",c).attr("cy",l).attr("r",10).attr("class",`commit ${s.id} ${e}`),a.append("circle").attr("cx",c-3).attr("cy",l+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${s.id} ${e}`),a.append("circle").attr("cx",c+3).attr("cy",l+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${s.id} ${e}`),a.append("line").attr("x1",c+3).attr("y1",l+1).attr("x2",c).attr("y2",l-5).attr("stroke","#fff").attr("class",`commit ${s.id} ${e}`),a.append("line").attr("x1",c-3).attr("y1",l+1).attr("x2",c).attr("y2",l-5).attr("stroke","#fff").attr("class",`commit ${s.id} ${e}`);else{const n=a.append("circle");if(n.attr("cx",c),n.attr("cy",l),n.attr("r",s.type===vs.MERGE?9:10),n.attr("class",`commit ${s.id} commit${bs[s.branch].index%ys}`),t===vs.MERGE){const t=a.append("circle");t.attr("cx",c),t.attr("cy",l),t.attr("r",6),t.attr("class",`commit ${e} ${s.id} commit${bs[s.branch].index%ys}`)}if(t===vs.REVERSE){const t=a.append("path");t.attr("d",`M ${c-5},${l-5}L${c+5},${l+5}M${c-5},${l+5}L${c+5},${l-5}`).attr("class",`commit ${e} ${s.id} commit${bs[s.branch].index%ys}`)}}}if(ws[s.id]={x:o+10,y:l},n){const e=4,t=2;if(s.type!==vs.CHERRY_PICK&&(s.customId&&s.type===vs.MERGE||s.type!==vs.MERGE)&&r.showCommitLabel){const e=i.append("g"),n=e.insert("rect").attr("class","commit-label-bkg"),a=e.append("text").attr("x",o).attr("y",l+25).attr("class","commit-label").text(s.id);let c=a.node().getBBox();if(n.attr("x",o+10-c.width/2-t).attr("y",l+13.5).attr("width",c.width+2*t).attr("height",c.height+2*t),a.attr("x",o+10-c.width/2),r.rotateCommitLabel){let t=-7.5-(c.width+10)/25*9.5,n=10+c.width/25*8.5;e.attr("transform","translate("+t+", "+n+") rotate("+"-45, "+o+", "+l+")")}}if(s.tag){const n=i.insert("polygon"),r=i.append("circle"),a=i.append("text").attr("y",l-16).attr("class","tag-label").text(s.tag);let c=a.node().getBBox();a.attr("x",o+10-c.width/2);const u=c.height/2,d=l-19.2;n.attr("class","tag-label-bkg").attr("points",`\n ${o-c.width/2-e/2},${d+t}\n ${o-c.width/2-e/2},${d-t}\n ${o+10-c.width/2-e},${d-u-t}\n ${o+10+c.width/2+e},${d-u-t}\n ${o+10+c.width/2+e},${d+u+t}\n ${o+10-c.width/2-e},${d+u+t}`),r.attr("cx",o-c.width/2+e/2).attr("cy",d).attr("r",1.5).attr("class","tag-hole")}}o+=50,o>ks&&(ks=o)}))},Rs=(e,t,n)=>{const r=Object.keys(n),a=r.filter((r=>n[r].branch===t.branch&&n[r].seq>e.seq&&n[r].seq<t.seq));return a.length>0},Ss=(e,t,n=0)=>{const r=e+Math.abs(e-t)/2;if(n>5)return r;let a=xs.every((e=>Math.abs(e-r)>=10));if(a)return xs.push(r),r;const i=Math.abs(e-t);return Ss(e,t-i/5,n+1)},As=(e,t,n,r)=>{const a=ws[t.id],i=ws[n.id],o=Rs(t,n,r);let s,l="",c="",u=0,d=0,h=bs[n.branch].index;if(o){l="A 10 10, 0, 0, 0,",c="A 10 10, 0, 0, 1,",u=10,d=10,h=bs[n.branch].index;const e=a.y<i.y?Ss(a.y,i.y):Ss(i.y,a.y);s=a.y<i.y?`M ${a.x} ${a.y} L ${a.x} ${e-u} ${l} ${a.x+d} ${e} L ${i.x-u} ${e} ${c} ${i.x} ${e+d} L ${i.x} ${i.y}`:`M ${a.x} ${a.y} L ${a.x} ${e+u} ${c} ${a.x+d} ${e} L ${i.x-u} ${e} ${l} ${i.x} ${e-d} L ${i.x} ${i.y}`}else a.y<i.y&&(l="A 20 20, 0, 0, 0,",u=20,d=20,h=bs[n.branch].index,s=`M ${a.x} ${a.y} L ${a.x} ${i.y-u} ${l} ${a.x+d} ${i.y} L ${i.x} ${i.y}`),a.y>i.y&&(l="A 20 20, 0, 0, 0,",u=20,d=20,h=bs[t.branch].index,s=`M ${a.x} ${a.y} L ${i.x-u} ${a.y} ${l} ${i.x} ${a.y-d} L ${i.x} ${i.y}`),a.y===i.y&&(h=bs[t.branch].index,s=`M ${a.x} ${a.y} L ${a.x} ${i.y-u} ${l} ${a.x+d} ${i.y} L ${i.x} ${i.y}`);e.append("path").attr("d",s).attr("class","arrow arrow"+h%ys)},Ts=(e,t)=>{const n=e.append("g").attr("class","commit-arrows");Object.keys(t).forEach((e=>{const r=t[e];r.parents&&r.parents.length>0&&r.parents.forEach((e=>{As(n,t[e],r,t)}))}))},Ms=(e,t)=>{const n=Eo().gitGraph,r=e.append("g");t.forEach(((e,t)=>{const a=t%ys,i=bs[e.name].pos,o=r.append("line");o.attr("x1",0),o.attr("y1",i),o.attr("x2",ks),o.attr("y2",i),o.attr("class","branch branch"+a),xs.push(i);let s=e.name;const l=Cs(s),c=r.insert("rect"),u=r.insert("g").attr("class","branchLabel"),d=u.insert("g").attr("class","label branch-label"+a);d.node().appendChild(l);let h=l.getBBox();c.attr("class","branchLabelBkg label"+a).attr("rx",4).attr("ry",4).attr("x",-h.width-4-(!0===n.rotateCommitLabel?30:0)).attr("y",-h.height/2+8).attr("width",h.width+18).attr("height",h.height+4),d.attr("transform","translate("+(-h.width-14-(!0===n.rotateCommitLabel?30:0))+", "+(i-h.height/2-1)+")"),c.attr("transform","translate(-19, "+(i-h.height/2)+")")}))},Ls=function(e,t,n,r){_s();const a=Eo(),i=a.gitGraph;Ze.debug("in gitgraph renderer",e+"\n","id:",t,n),gs=r.db.getCommits();const o=r.db.getBranchesAsObjArray();let l=0;o.forEach(((e,t)=>{bs[e.name]={pos:l,index:t},l+=50+(i.rotateCommitLabel?40:0)}));const c=(0,s.Ltv)(`[id="${t}"]`);Es(c,gs,!1),i.showBranches&&Ms(c,o),Ts(c,gs),Es(c,gs,!0),si.insertTitle(c,"gitTitleText",i.titleTopMargin,r.db.getDiagramTitle()),So(void 0,c,i.diagramPadding,i.useMaxWidth??a.useMaxWidth)},Os={draw:Ls},Is=e=>`\n .commit-id,\n .commit-msg,\n .branch-label {\n fill: lightgrey;\n color: lightgrey;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n ${[0,1,2,3,4,5,6,7].map((t=>`\n .branch-label${t} { fill: ${e["gitBranchLabel"+t]}; }\n .commit${t} { stroke: ${e["git"+t]}; fill: ${e["git"+t]}; }\n .commit-highlight${t} { stroke: ${e["gitInv"+t]}; fill: ${e["gitInv"+t]}; }\n .label${t} { fill: ${e["git"+t]}; }\n .arrow${t} { stroke: ${e["git"+t]}; }\n `)).join("\n")}\n\n .branch {\n stroke-width: 1;\n stroke: ${e.lineColor};\n stroke-dasharray: 2;\n }\n .commit-label { font-size: ${e.commitLabelFontSize}; fill: ${e.commitLabelColor};}\n .commit-label-bkg { font-size: ${e.commitLabelFontSize}; fill: ${e.commitLabelBackground}; opacity: 0.5; }\n .tag-label { font-size: ${e.tagLabelFontSize}; fill: ${e.tagLabelColor};}\n .tag-label-bkg { fill: ${e.tagLabelBackground}; stroke: ${e.tagLabelBorder}; }\n .tag-hole { fill: ${e.textColor}; }\n\n .commit-merge {\n stroke: ${e.primaryColor};\n fill: ${e.primaryColor};\n }\n .commit-reverse {\n stroke: ${e.primaryColor};\n fill: ${e.primaryColor};\n stroke-width: 3;\n }\n .commit-highlight-outer {\n }\n .commit-highlight-inner {\n stroke: ${e.primaryColor};\n fill: ${e.primaryColor};\n }\n\n .arrow { stroke-width: 8; stroke-linecap: round; fill: none}\n .gitTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${e.textColor};\n }\n }\n`,Ns=Is;var Bs=function(){var e=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},t=[1,6],n=[1,7],r=[1,8],a=[1,9],i=[1,16],o=[1,11],s=[1,12],l=[1,13],u=[1,14],d=[1,15],h=[1,27],p=[1,33],f=[1,34],m=[1,35],g=[1,36],v=[1,37],y=[1,72],b=[1,73],w=[1,74],x=[1,75],k=[1,76],_=[1,77],C=[1,78],E=[1,38],R=[1,39],S=[1,40],A=[1,41],T=[1,42],M=[1,43],L=[1,44],O=[1,45],I=[1,46],N=[1,47],B=[1,48],D=[1,49],F=[1,50],$=[1,51],P=[1,52],z=[1,53],W=[1,54],j=[1,55],V=[1,56],U=[1,57],K=[1,59],H=[1,60],q=[1,61],G=[1,62],X=[1,63],Y=[1,64],Q=[1,65],Z=[1,66],J=[1,67],ee=[1,68],te=[1,69],ne=[24,52],re=[24,44,46,47,48,49,50,51,52,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84],ae=[15,24,44,46,47,48,49,50,51,52,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84],ie=[1,94],oe=[1,95],se=[1,96],le=[1,97],ce=[15,24,52],ue=[7,8,9,10,18,22,25,26,27,28],de=[15,24,43,52],he=[15,24,43,52,86,87,89,90],pe=[15,43],fe=[44,46,47,48,49,50,51,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84],me={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,directive:6,direction_tb:7,direction_bt:8,direction_rl:9,direction_lr:10,graphConfig:11,openDirective:12,typeDirective:13,closeDirective:14,NEWLINE:15,":":16,argDirective:17,open_directive:18,type_directive:19,arg_directive:20,close_directive:21,C4_CONTEXT:22,statements:23,EOF:24,C4_CONTAINER:25,C4_COMPONENT:26,C4_DYNAMIC:27,C4_DEPLOYMENT:28,otherStatements:29,diagramStatements:30,otherStatement:31,title:32,accDescription:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,boundaryStatement:39,boundaryStartStatement:40,boundaryStopStatement:41,boundaryStart:42,LBRACE:43,ENTERPRISE_BOUNDARY:44,attributes:45,SYSTEM_BOUNDARY:46,BOUNDARY:47,CONTAINER_BOUNDARY:48,NODE:49,NODE_L:50,NODE_R:51,RBRACE:52,diagramStatement:53,PERSON:54,PERSON_EXT:55,SYSTEM:56,SYSTEM_DB:57,SYSTEM_QUEUE:58,SYSTEM_EXT:59,SYSTEM_EXT_DB:60,SYSTEM_EXT_QUEUE:61,CONTAINER:62,CONTAINER_DB:63,CONTAINER_QUEUE:64,CONTAINER_EXT:65,CONTAINER_EXT_DB:66,CONTAINER_EXT_QUEUE:67,COMPONENT:68,COMPONENT_DB:69,COMPONENT_QUEUE:70,COMPONENT_EXT:71,COMPONENT_EXT_DB:72,COMPONENT_EXT_QUEUE:73,REL:74,BIREL:75,REL_U:76,REL_D:77,REL_L:78,REL_R:79,REL_B:80,REL_INDEX:81,UPDATE_EL_STYLE:82,UPDATE_REL_STYLE:83,UPDATE_LAYOUT_CONFIG:84,attribute:85,STR:86,STR_KEY:87,STR_VALUE:88,ATTRIBUTE:89,ATTRIBUTE_EMPTY:90,$accept:0,$end:1},terminals_:{2:"error",7:"direction_tb",8:"direction_bt",9:"direction_rl",10:"direction_lr",15:"NEWLINE",16:":",18:"open_directive",19:"type_directive",20:"arg_directive",21:"close_directive",22:"C4_CONTEXT",24:"EOF",25:"C4_CONTAINER",26:"C4_COMPONENT",27:"C4_DYNAMIC",28:"C4_DEPLOYMENT",32:"title",33:"accDescription",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",43:"LBRACE",44:"ENTERPRISE_BOUNDARY",46:"SYSTEM_BOUNDARY",47:"BOUNDARY",48:"CONTAINER_BOUNDARY",49:"NODE",50:"NODE_L",51:"NODE_R",52:"RBRACE",54:"PERSON",55:"PERSON_EXT",56:"SYSTEM",57:"SYSTEM_DB",58:"SYSTEM_QUEUE",59:"SYSTEM_EXT",60:"SYSTEM_EXT_DB",61:"SYSTEM_EXT_QUEUE",62:"CONTAINER",63:"CONTAINER_DB",64:"CONTAINER_QUEUE",65:"CONTAINER_EXT",66:"CONTAINER_EXT_DB",67:"CONTAINER_EXT_QUEUE",68:"COMPONENT",69:"COMPONENT_DB",70:"COMPONENT_QUEUE",71:"COMPONENT_EXT",72:"COMPONENT_EXT_DB",73:"COMPONENT_EXT_QUEUE",74:"REL",75:"BIREL",76:"REL_U",77:"REL_D",78:"REL_L",79:"REL_R",80:"REL_B",81:"REL_INDEX",82:"UPDATE_EL_STYLE",83:"UPDATE_REL_STYLE",84:"UPDATE_LAYOUT_CONFIG",86:"STR",87:"STR_KEY",88:"STR_VALUE",89:"ATTRIBUTE",90:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[3,2],[5,1],[5,1],[5,1],[5,1],[4,1],[6,4],[6,6],[12,1],[13,1],[17,1],[14,1],[11,4],[11,4],[11,4],[11,4],[11,4],[23,1],[23,1],[23,2],[29,1],[29,2],[29,3],[31,1],[31,1],[31,2],[31,2],[31,1],[39,3],[40,3],[40,3],[40,4],[42,2],[42,2],[42,2],[42,2],[42,2],[42,2],[42,2],[41,1],[30,1],[30,2],[30,3],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,1],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[45,1],[45,2],[85,1],[85,2],[85,1],[85,1]],performAction:function(e,t,n,r,a,i,o){var s=i.length-1;switch(a){case 4:r.setDirection("TB");break;case 5:r.setDirection("BT");break;case 6:r.setDirection("RL");break;case 7:r.setDirection("LR");break;case 11:r.parseDirective("%%{","open_directive");break;case 12:break;case 13:i[s]=i[s].trim().replace(/'/g,'"'),r.parseDirective(i[s],"arg_directive");break;case 14:r.parseDirective("}%%","close_directive","c4Context");break;case 15:case 16:case 17:case 18:case 19:r.setC4Type(i[s-3]);break;case 26:r.setTitle(i[s].substring(6)),this.$=i[s].substring(6);break;case 27:r.setAccDescription(i[s].substring(15)),this.$=i[s].substring(15);break;case 28:this.$=i[s].trim(),r.setTitle(this.$);break;case 29:case 30:this.$=i[s].trim(),r.setAccDescription(this.$);break;case 35:case 36:i[s].splice(2,0,"ENTERPRISE"),r.addPersonOrSystemBoundary(...i[s]),this.$=i[s];break;case 37:r.addPersonOrSystemBoundary(...i[s]),this.$=i[s];break;case 38:i[s].splice(2,0,"CONTAINER"),r.addContainerBoundary(...i[s]),this.$=i[s];break;case 39:r.addDeploymentNode("node",...i[s]),this.$=i[s];break;case 40:r.addDeploymentNode("nodeL",...i[s]),this.$=i[s];break;case 41:r.addDeploymentNode("nodeR",...i[s]),this.$=i[s];break;case 42:r.popBoundaryParseStack();break;case 46:r.addPersonOrSystem("person",...i[s]),this.$=i[s];break;case 47:r.addPersonOrSystem("external_person",...i[s]),this.$=i[s];break;case 48:r.addPersonOrSystem("system",...i[s]),this.$=i[s];break;case 49:r.addPersonOrSystem("system_db",...i[s]),this.$=i[s];break;case 50:r.addPersonOrSystem("system_queue",...i[s]),this.$=i[s];break;case 51:r.addPersonOrSystem("external_system",...i[s]),this.$=i[s];break;case 52:r.addPersonOrSystem("external_system_db",...i[s]),this.$=i[s];break;case 53:r.addPersonOrSystem("external_system_queue",...i[s]),this.$=i[s];break;case 54:r.addContainer("container",...i[s]),this.$=i[s];break;case 55:r.addContainer("container_db",...i[s]),this.$=i[s];break;case 56:r.addContainer("container_queue",...i[s]),this.$=i[s];break;case 57:r.addContainer("external_container",...i[s]),this.$=i[s];break;case 58:r.addContainer("external_container_db",...i[s]),this.$=i[s];break;case 59:r.addContainer("external_container_queue",...i[s]),this.$=i[s];break;case 60:r.addComponent("component",...i[s]),this.$=i[s];break;case 61:r.addComponent("component_db",...i[s]),this.$=i[s];break;case 62:r.addComponent("component_queue",...i[s]),this.$=i[s];break;case 63:r.addComponent("external_component",...i[s]),this.$=i[s];break;case 64:r.addComponent("external_component_db",...i[s]),this.$=i[s];break;case 65:r.addComponent("external_component_queue",...i[s]),this.$=i[s];break;case 67:r.addRel("rel",...i[s]),this.$=i[s];break;case 68:r.addRel("birel",...i[s]),this.$=i[s];break;case 69:r.addRel("rel_u",...i[s]),this.$=i[s];break;case 70:r.addRel("rel_d",...i[s]),this.$=i[s];break;case 71:r.addRel("rel_l",...i[s]),this.$=i[s];break;case 72:r.addRel("rel_r",...i[s]),this.$=i[s];break;case 73:r.addRel("rel_b",...i[s]),this.$=i[s];break;case 74:i[s].splice(0,1),r.addRel("rel",...i[s]),this.$=i[s];break;case 75:r.updateElStyle("update_el_style",...i[s]),this.$=i[s];break;case 76:r.updateRelStyle("update_rel_style",...i[s]),this.$=i[s];break;case 77:r.updateLayoutConfig("update_layout_config",...i[s]),this.$=i[s];break;case 78:this.$=[i[s]];break;case 79:i[s].unshift(i[s-1]),this.$=i[s];break;case 80:case 82:this.$=i[s].trim();break;case 81:let e={};e[i[s-1].trim()]=i[s].trim(),this.$=e;break;case 83:this.$="";break}},table:[{3:1,4:2,5:3,6:4,7:t,8:n,9:r,10:a,11:5,12:10,18:i,22:o,25:s,26:l,27:u,28:d},{1:[3]},{1:[2,1]},{1:[2,2]},{3:17,4:2,5:3,6:4,7:t,8:n,9:r,10:a,11:5,12:10,18:i,22:o,25:s,26:l,27:u,28:d},{1:[2,8]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{1:[2,7]},{13:18,19:[1,19]},{15:[1,20]},{15:[1,21]},{15:[1,22]},{15:[1,23]},{15:[1,24]},{19:[2,11]},{1:[2,3]},{14:25,16:[1,26],21:h},e([16,21],[2,12]),{23:28,29:29,30:30,31:31,32:p,33:f,34:m,36:g,38:v,39:58,40:70,42:71,44:y,46:b,47:w,48:x,49:k,50:_,51:C,53:32,54:E,55:R,56:S,57:A,58:T,59:M,60:L,61:O,62:I,63:N,64:B,65:D,66:F,67:$,68:P,69:z,70:W,71:j,72:V,73:U,74:K,75:H,76:q,77:G,78:X,79:Y,80:Q,81:Z,82:J,83:ee,84:te},{23:79,29:29,30:30,31:31,32:p,33:f,34:m,36:g,38:v,39:58,40:70,42:71,44:y,46:b,47:w,48:x,49:k,50:_,51:C,53:32,54:E,55:R,56:S,57:A,58:T,59:M,60:L,61:O,62:I,63:N,64:B,65:D,66:F,67:$,68:P,69:z,70:W,71:j,72:V,73:U,74:K,75:H,76:q,77:G,78:X,79:Y,80:Q,81:Z,82:J,83:ee,84:te},{23:80,29:29,30:30,31:31,32:p,33:f,34:m,36:g,38:v,39:58,40:70,42:71,44:y,46:b,47:w,48:x,49:k,50:_,51:C,53:32,54:E,55:R,56:S,57:A,58:T,59:M,60:L,61:O,62:I,63:N,64:B,65:D,66:F,67:$,68:P,69:z,70:W,71:j,72:V,73:U,74:K,75:H,76:q,77:G,78:X,79:Y,80:Q,81:Z,82:J,83:ee,84:te},{23:81,29:29,30:30,31:31,32:p,33:f,34:m,36:g,38:v,39:58,40:70,42:71,44:y,46:b,47:w,48:x,49:k,50:_,51:C,53:32,54:E,55:R,56:S,57:A,58:T,59:M,60:L,61:O,62:I,63:N,64:B,65:D,66:F,67:$,68:P,69:z,70:W,71:j,72:V,73:U,74:K,75:H,76:q,77:G,78:X,79:Y,80:Q,81:Z,82:J,83:ee,84:te},{23:82,29:29,30:30,31:31,32:p,33:f,34:m,36:g,38:v,39:58,40:70,42:71,44:y,46:b,47:w,48:x,49:k,50:_,51:C,53:32,54:E,55:R,56:S,57:A,58:T,59:M,60:L,61:O,62:I,63:N,64:B,65:D,66:F,67:$,68:P,69:z,70:W,71:j,72:V,73:U,74:K,75:H,76:q,77:G,78:X,79:Y,80:Q,81:Z,82:J,83:ee,84:te},{15:[1,83]},{17:84,20:[1,85]},{15:[2,14]},{24:[1,86]},e(ne,[2,20],{53:32,39:58,40:70,42:71,30:87,44:y,46:b,47:w,48:x,49:k,50:_,51:C,54:E,55:R,56:S,57:A,58:T,59:M,60:L,61:O,62:I,63:N,64:B,65:D,66:F,67:$,68:P,69:z,70:W,71:j,72:V,73:U,74:K,75:H,76:q,77:G,78:X,79:Y,80:Q,81:Z,82:J,83:ee,84:te}),e(ne,[2,21]),e(re,[2,23],{15:[1,88]}),e(ne,[2,43],{15:[1,89]}),e(ae,[2,26]),e(ae,[2,27]),{35:[1,90]},{37:[1,91]},e(ae,[2,30]),{45:92,85:93,86:ie,87:oe,89:se,90:le},{45:98,85:93,86:ie,87:oe,89:se,90:le},{45:99,85:93,86:ie,87:oe,89:se,90:le},{45:100,85:93,86:ie,87:oe,89:se,90:le},{45:101,85:93,86:ie,87:oe,89:se,90:le},{45:102,85:93,86:ie,87:oe,89:se,90:le},{45:103,85:93,86:ie,87:oe,89:se,90:le},{45:104,85:93,86:ie,87:oe,89:se,90:le},{45:105,85:93,86:ie,87:oe,89:se,90:le},{45:106,85:93,86:ie,87:oe,89:se,90:le},{45:107,85:93,86:ie,87:oe,89:se,90:le},{45:108,85:93,86:ie,87:oe,89:se,90:le},{45:109,85:93,86:ie,87:oe,89:se,90:le},{45:110,85:93,86:ie,87:oe,89:se,90:le},{45:111,85:93,86:ie,87:oe,89:se,90:le},{45:112,85:93,86:ie,87:oe,89:se,90:le},{45:113,85:93,86:ie,87:oe,89:se,90:le},{45:114,85:93,86:ie,87:oe,89:se,90:le},{45:115,85:93,86:ie,87:oe,89:se,90:le},{45:116,85:93,86:ie,87:oe,89:se,90:le},e(ce,[2,66]),{45:117,85:93,86:ie,87:oe,89:se,90:le},{45:118,85:93,86:ie,87:oe,89:se,90:le},{45:119,85:93,86:ie,87:oe,89:se,90:le},{45:120,85:93,86:ie,87:oe,89:se,90:le},{45:121,85:93,86:ie,87:oe,89:se,90:le},{45:122,85:93,86:ie,87:oe,89:se,90:le},{45:123,85:93,86:ie,87:oe,89:se,90:le},{45:124,85:93,86:ie,87:oe,89:se,90:le},{45:125,85:93,86:ie,87:oe,89:se,90:le},{45:126,85:93,86:ie,87:oe,89:se,90:le},{45:127,85:93,86:ie,87:oe,89:se,90:le},{30:128,39:58,40:70,42:71,44:y,46:b,47:w,48:x,49:k,50:_,51:C,53:32,54:E,55:R,56:S,57:A,58:T,59:M,60:L,61:O,62:I,63:N,64:B,65:D,66:F,67:$,68:P,69:z,70:W,71:j,72:V,73:U,74:K,75:H,76:q,77:G,78:X,79:Y,80:Q,81:Z,82:J,83:ee,84:te},{15:[1,130],43:[1,129]},{45:131,85:93,86:ie,87:oe,89:se,90:le},{45:132,85:93,86:ie,87:oe,89:se,90:le},{45:133,85:93,86:ie,87:oe,89:se,90:le},{45:134,85:93,86:ie,87:oe,89:se,90:le},{45:135,85:93,86:ie,87:oe,89:se,90:le},{45:136,85:93,86:ie,87:oe,89:se,90:le},{45:137,85:93,86:ie,87:oe,89:se,90:le},{24:[1,138]},{24:[1,139]},{24:[1,140]},{24:[1,141]},e(ue,[2,9]),{14:142,21:h},{21:[2,13]},{1:[2,15]},e(ne,[2,22]),e(re,[2,24],{31:31,29:143,32:p,33:f,34:m,36:g,38:v}),e(ne,[2,44],{29:29,30:30,31:31,53:32,39:58,40:70,42:71,23:144,32:p,33:f,34:m,36:g,38:v,44:y,46:b,47:w,48:x,49:k,50:_,51:C,54:E,55:R,56:S,57:A,58:T,59:M,60:L,61:O,62:I,63:N,64:B,65:D,66:F,67:$,68:P,69:z,70:W,71:j,72:V,73:U,74:K,75:H,76:q,77:G,78:X,79:Y,80:Q,81:Z,82:J,83:ee,84:te}),e(ae,[2,28]),e(ae,[2,29]),e(ce,[2,46]),e(de,[2,78],{85:93,45:145,86:ie,87:oe,89:se,90:le}),e(he,[2,80]),{88:[1,146]},e(he,[2,82]),e(he,[2,83]),e(ce,[2,47]),e(ce,[2,48]),e(ce,[2,49]),e(ce,[2,50]),e(ce,[2,51]),e(ce,[2,52]),e(ce,[2,53]),e(ce,[2,54]),e(ce,[2,55]),e(ce,[2,56]),e(ce,[2,57]),e(ce,[2,58]),e(ce,[2,59]),e(ce,[2,60]),e(ce,[2,61]),e(ce,[2,62]),e(ce,[2,63]),e(ce,[2,64]),e(ce,[2,65]),e(ce,[2,67]),e(ce,[2,68]),e(ce,[2,69]),e(ce,[2,70]),e(ce,[2,71]),e(ce,[2,72]),e(ce,[2,73]),e(ce,[2,74]),e(ce,[2,75]),e(ce,[2,76]),e(ce,[2,77]),{41:147,52:[1,148]},{15:[1,149]},{43:[1,150]},e(pe,[2,35]),e(pe,[2,36]),e(pe,[2,37]),e(pe,[2,38]),e(pe,[2,39]),e(pe,[2,40]),e(pe,[2,41]),{1:[2,16]},{1:[2,17]},{1:[2,18]},{1:[2,19]},{15:[1,151]},e(re,[2,25]),e(ne,[2,45]),e(de,[2,79]),e(he,[2,81]),e(ce,[2,31]),e(ce,[2,42]),e(fe,[2,32]),e(fe,[2,33],{15:[1,152]}),e(ue,[2,10]),e(fe,[2,34])],defaultActions:{2:[2,1],3:[2,2],5:[2,8],6:[2,4],7:[2,5],8:[2,6],9:[2,7],16:[2,11],17:[2,3],27:[2,14],85:[2,13],86:[2,15],138:[2,16],139:[2,17],140:[2,18],141:[2,19]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],r=[],a=[null],i=[],o=this.table,s="",l=0,c=0,u=2,d=1,h=i.slice.call(arguments,1),p=Object.create(this.lexer),f={yy:{}};for(var m in this.yy)Object.prototype.hasOwnProperty.call(this.yy,m)&&(f.yy[m]=this.yy[m]);p.setInput(e,f.yy),f.yy.lexer=p,f.yy.parser=this,"undefined"==typeof p.yylloc&&(p.yylloc={});var g=p.yylloc;i.push(g);var v=p.options&&p.options.ranges;function y(){var e;return e=r.pop()||p.lex()||d,"number"!==typeof e&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}"function"===typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;var b,w,x,k,_,C,E,R,S={};while(1){if(w=n[n.length-1],this.defaultActions[w]?x=this.defaultActions[w]:(null!==b&&"undefined"!=typeof b||(b=y()),x=o[w]&&o[w][b]),"undefined"===typeof x||!x.length||!x[0]){var A="";for(_ in R=[],o[w])this.terminals_[_]&&_>u&&R.push("'"+this.terminals_[_]+"'");A=p.showPosition?"Parse error on line "+(l+1)+":\n"+p.showPosition()+"\nExpecting "+R.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(l+1)+": Unexpected "+(b==d?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(A,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:g,expected:R})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+b);switch(x[0]){case 1:n.push(b),a.push(p.yytext),i.push(p.yylloc),n.push(x[1]),b=null,c=p.yyleng,s=p.yytext,l=p.yylineno,g=p.yylloc;break;case 2:if(C=this.productions_[x[1]][1],S.$=a[a.length-C],S._$={first_line:i[i.length-(C||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(C||1)].first_column,last_column:i[i.length-1].last_column},v&&(S._$.range=[i[i.length-(C||1)].range[0],i[i.length-1].range[1]]),k=this.performAction.apply(S,[s,c,l,f.yy,x[1],a,i].concat(h)),"undefined"!==typeof k)return k;C&&(n=n.slice(0,-1*C*2),a=a.slice(0,-1*C),i=i.slice(0,-1*C)),n.push(this.productions_[x[1]][0]),a.push(S.$),i.push(S._$),E=o[n[n.length-2]][n[n.length-1]],n.push(E);break;case 3:return!0}}return!0}},ge=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e;var t=e.match(/(?:\r\n?|\n).*/g);return t?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var a=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,a;if(this.options.backtrack_lexer&&(a={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(a.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var i in a)this[i]=a[i];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var a=this._currentRules(),i=0;i<a.length;i++)if(n=this._input.match(this.rules[a[i]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=i,this.options.backtrack_lexer){if(e=this.test_match(n,a[i]),!1!==e)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,a[r]),!1!==e&&e):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){var e=this.conditionStack.length-1;return e>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions["INITIAL"].rules},topState:function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(e,t,n,r){switch(n){case 0:return this.begin("open_directive"),18;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 10;case 5:return this.begin("type_directive"),19;case 6:return this.popState(),this.begin("arg_directive"),16;case 7:return this.popState(),this.popState(),21;case 8:return 20;case 9:return 32;case 10:return 33;case 11:return this.begin("acc_title"),34;case 12:return this.popState(),"acc_title_value";case 13:return this.begin("acc_descr"),36;case 14:return this.popState(),"acc_descr_value";case 15:this.begin("acc_descr_multiline");break;case 16:this.popState();break;case 17:return"acc_descr_multiline_value";case 18:break;case 19:c;break;case 20:return 15;case 21:break;case 22:return 22;case 23:return 25;case 24:return 26;case 25:return 27;case 26:return 28;case 27:return this.begin("person_ext"),55;case 28:return this.begin("person"),54;case 29:return this.begin("system_ext_queue"),61;case 30:return this.begin("system_ext_db"),60;case 31:return this.begin("system_ext"),59;case 32:return this.begin("system_queue"),58;case 33:return this.begin("system_db"),57;case 34:return this.begin("system"),56;case 35:return this.begin("boundary"),47;case 36:return this.begin("enterprise_boundary"),44;case 37:return this.begin("system_boundary"),46;case 38:return this.begin("container_ext_queue"),67;case 39:return this.begin("container_ext_db"),66;case 40:return this.begin("container_ext"),65;case 41:return this.begin("container_queue"),64;case 42:return this.begin("container_db"),63;case 43:return this.begin("container"),62;case 44:return this.begin("container_boundary"),48;case 45:return this.begin("component_ext_queue"),73;case 46:return this.begin("component_ext_db"),72;case 47:return this.begin("component_ext"),71;case 48:return this.begin("component_queue"),70;case 49:return this.begin("component_db"),69;case 50:return this.begin("component"),68;case 51:return this.begin("node"),49;case 52:return this.begin("node"),49;case 53:return this.begin("node_l"),50;case 54:return this.begin("node_r"),51;case 55:return this.begin("rel"),74;case 56:return this.begin("birel"),75;case 57:return this.begin("rel_u"),76;case 58:return this.begin("rel_u"),76;case 59:return this.begin("rel_d"),77;case 60:return this.begin("rel_d"),77;case 61:return this.begin("rel_l"),78;case 62:return this.begin("rel_l"),78;case 63:return this.begin("rel_r"),79;case 64:return this.begin("rel_r"),79;case 65:return this.begin("rel_b"),80;case 66:return this.begin("rel_index"),81;case 67:return this.begin("update_el_style"),82;case 68:return this.begin("update_rel_style"),83;case 69:return this.begin("update_layout_config"),84;case 70:return"EOF_IN_STRUCT";case 71:return this.begin("attribute"),"ATTRIBUTE_EMPTY";case 72:this.begin("attribute");break;case 73:this.popState(),this.popState();break;case 74:return 90;case 75:break;case 76:return 90;case 77:this.begin("string");break;case 78:this.popState();break;case 79:return"STR";case 80:this.begin("string_kv");break;case 81:return this.begin("string_kv_key"),"STR_KEY";case 82:this.popState(),this.begin("string_kv_value");break;case 83:return"STR_VALUE";case 84:this.popState(),this.popState();break;case 85:return"STR";case 86:return"LBRACE";case 87:return"RBRACE";case 88:return"SPACE";case 89:return"EOL";case 90:return 24}},rules:[/^(?:%%\{)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[16,17],inclusive:!1},acc_descr:{rules:[14],inclusive:!1},acc_title:{rules:[12],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[7,8],inclusive:!1},type_directive:{rules:[6,7],inclusive:!1},open_directive:{rules:[5],inclusive:!1},string_kv_value:{rules:[83,84],inclusive:!1},string_kv_key:{rules:[82],inclusive:!1},string_kv:{rules:[81],inclusive:!1},string:{rules:[78,79],inclusive:!1},attribute:{rules:[73,74,75,76,77,80,85],inclusive:!1},update_layout_config:{rules:[70,71,72,73],inclusive:!1},update_rel_style:{rules:[70,71,72,73],inclusive:!1},update_el_style:{rules:[70,71,72,73],inclusive:!1},rel_b:{rules:[70,71,72,73],inclusive:!1},rel_r:{rules:[70,71,72,73],inclusive:!1},rel_l:{rules:[70,71,72,73],inclusive:!1},rel_d:{rules:[70,71,72,73],inclusive:!1},rel_u:{rules:[70,71,72,73],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[70,71,72,73],inclusive:!1},node_r:{rules:[70,71,72,73],inclusive:!1},node_l:{rules:[70,71,72,73],inclusive:!1},node:{rules:[70,71,72,73],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[70,71,72,73],inclusive:!1},component_ext_queue:{rules:[],inclusive:!1},component_ext_db:{rules:[70,71,72,73],inclusive:!1},component_ext:{rules:[70,71,72,73],inclusive:!1},component_queue:{rules:[70,71,72,73],inclusive:!1},component_db:{rules:[70,71,72,73],inclusive:!1},component:{rules:[70,71,72,73],inclusive:!1},container_boundary:{rules:[70,71,72,73],inclusive:!1},container_ext_queue:{rules:[],inclusive:!1},container_ext_db:{rules:[70,71,72,73],inclusive:!1},container_ext:{rules:[70,71,72,73],inclusive:!1},container_queue:{rules:[70,71,72,73],inclusive:!1},container_db:{rules:[70,71,72,73],inclusive:!1},container:{rules:[70,71,72,73],inclusive:!1},birel:{rules:[70,71,72,73],inclusive:!1},system_boundary:{rules:[70,71,72,73],inclusive:!1},enterprise_boundary:{rules:[70,71,72,73],inclusive:!1},boundary:{rules:[70,71,72,73],inclusive:!1},system_ext_queue:{rules:[70,71,72,73],inclusive:!1},system_ext_db:{rules:[70,71,72,73],inclusive:!1},system_ext:{rules:[70,71,72,73],inclusive:!1},system_queue:{rules:[70,71,72,73],inclusive:!1},system_db:{rules:[70,71,72,73],inclusive:!1},system:{rules:[70,71,72,73],inclusive:!1},person_ext:{rules:[70,71,72,73],inclusive:!1},person:{rules:[70,71,72,73],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,13,15,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,86,87,88,89,90],inclusive:!0}}};return e}();function ve(){this.yy={}}return me.lexer=ge,ve.prototype=me,me.Parser=ve,new ve}();Bs.parser=Bs;const Ds=Bs,Fs=e=>null!==e.match(/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/);let $s=[],Ps=[""],zs="global",Ws="",js=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],Vs=[],Us="",Ks=!1,Hs=4,qs=2;var Gs;const Xs=function(){return Gs},Ys=function(e){let t=at(e,wi());Gs=t},Qs=function(e,t,n){m_.parseDirective(this,e,t,n)},Zs=function(e,t,n,r,a,i,o,s,l){if(void 0===e||null===e||void 0===t||null===t||void 0===n||null===n||void 0===r||null===r)return;let c={};const u=Vs.find((e=>e.from===t&&e.to===n));if(u?c=u:Vs.push(c),c.type=e,c.from=t,c.to=n,c.label={text:r},void 0===a||null===a)c.techn={text:""};else if("object"===typeof a){let[e,t]=Object.entries(a)[0];c[e]={text:t}}else c.techn={text:a};if(void 0===i||null===i)c.descr={text:""};else if("object"===typeof i){let[e,t]=Object.entries(i)[0];c[e]={text:t}}else c.descr={text:i};if("object"===typeof o){let[e,t]=Object.entries(o)[0];c[e]=t}else c.sprite=o;if("object"===typeof s){let[e,t]=Object.entries(s)[0];c[e]=t}else c.tags=s;if("object"===typeof l){let[e,t]=Object.entries(l)[0];c[e]=t}else c.link=l;c.wrap=wl()},Js=function(e,t,n,r,a,i,o){if(null===t||null===n)return;let s={};const l=$s.find((e=>e.alias===t));if(l&&t===l.alias?s=l:(s.alias=t,$s.push(s)),s.label=void 0===n||null===n?{text:""}:{text:n},void 0===r||null===r)s.descr={text:""};else if("object"===typeof r){let[e,t]=Object.entries(r)[0];s[e]={text:t}}else s.descr={text:r};if("object"===typeof a){let[e,t]=Object.entries(a)[0];s[e]=t}else s.sprite=a;if("object"===typeof i){let[e,t]=Object.entries(i)[0];s[e]=t}else s.tags=i;if("object"===typeof o){let[e,t]=Object.entries(o)[0];s[e]=t}else s.link=o;s.typeC4Shape={text:e},s.parentBoundary=zs,s.wrap=wl()},el=function(e,t,n,r,a,i,o,s){if(null===t||null===n)return;let l={};const c=$s.find((e=>e.alias===t));if(c&&t===c.alias?l=c:(l.alias=t,$s.push(l)),l.label=void 0===n||null===n?{text:""}:{text:n},void 0===r||null===r)l.techn={text:""};else if("object"===typeof r){let[e,t]=Object.entries(r)[0];l[e]={text:t}}else l.techn={text:r};if(void 0===a||null===a)l.descr={text:""};else if("object"===typeof a){let[e,t]=Object.entries(a)[0];l[e]={text:t}}else l.descr={text:a};if("object"===typeof i){let[e,t]=Object.entries(i)[0];l[e]=t}else l.sprite=i;if("object"===typeof o){let[e,t]=Object.entries(o)[0];l[e]=t}else l.tags=o;if("object"===typeof s){let[e,t]=Object.entries(s)[0];l[e]=t}else l.link=s;l.wrap=wl(),l.typeC4Shape={text:e},l.parentBoundary=zs},tl=function(e,t,n,r,a,i,o,s){if(null===t||null===n)return;let l={};const c=$s.find((e=>e.alias===t));if(c&&t===c.alias?l=c:(l.alias=t,$s.push(l)),l.label=void 0===n||null===n?{text:""}:{text:n},void 0===r||null===r)l.techn={text:""};else if("object"===typeof r){let[e,t]=Object.entries(r)[0];l[e]={text:t}}else l.techn={text:r};if(void 0===a||null===a)l.descr={text:""};else if("object"===typeof a){let[e,t]=Object.entries(a)[0];l[e]={text:t}}else l.descr={text:a};if("object"===typeof i){let[e,t]=Object.entries(i)[0];l[e]=t}else l.sprite=i;if("object"===typeof o){let[e,t]=Object.entries(o)[0];l[e]=t}else l.tags=o;if("object"===typeof s){let[e,t]=Object.entries(s)[0];l[e]=t}else l.link=s;l.wrap=wl(),l.typeC4Shape={text:e},l.parentBoundary=zs},nl=function(e,t,n,r,a){if(null===e||null===t)return;let i={};const o=js.find((t=>t.alias===e));if(o&&e===o.alias?i=o:(i.alias=e,js.push(i)),i.label=void 0===t||null===t?{text:""}:{text:t},void 0===n||null===n)i.type={text:"system"};else if("object"===typeof n){let[e,t]=Object.entries(n)[0];i[e]={text:t}}else i.type={text:n};if("object"===typeof r){let[e,t]=Object.entries(r)[0];i[e]=t}else i.tags=r;if("object"===typeof a){let[e,t]=Object.entries(a)[0];i[e]=t}else i.link=a;i.parentBoundary=zs,i.wrap=wl(),Ws=zs,zs=e,Ps.push(Ws)},rl=function(e,t,n,r,a){if(null===e||null===t)return;let i={};const o=js.find((t=>t.alias===e));if(o&&e===o.alias?i=o:(i.alias=e,js.push(i)),i.label=void 0===t||null===t?{text:""}:{text:t},void 0===n||null===n)i.type={text:"container"};else if("object"===typeof n){let[e,t]=Object.entries(n)[0];i[e]={text:t}}else i.type={text:n};if("object"===typeof r){let[e,t]=Object.entries(r)[0];i[e]=t}else i.tags=r;if("object"===typeof a){let[e,t]=Object.entries(a)[0];i[e]=t}else i.link=a;i.parentBoundary=zs,i.wrap=wl(),Ws=zs,zs=e,Ps.push(Ws)},al=function(e,t,n,r,a,i,o,s){if(null===t||null===n)return;let l={};const c=js.find((e=>e.alias===t));if(c&&t===c.alias?l=c:(l.alias=t,js.push(l)),l.label=void 0===n||null===n?{text:""}:{text:n},void 0===r||null===r)l.type={text:"node"};else if("object"===typeof r){let[e,t]=Object.entries(r)[0];l[e]={text:t}}else l.type={text:r};if(void 0===a||null===a)l.descr={text:""};else if("object"===typeof a){let[e,t]=Object.entries(a)[0];l[e]={text:t}}else l.descr={text:a};if("object"===typeof o){let[e,t]=Object.entries(o)[0];l[e]=t}else l.tags=o;if("object"===typeof s){let[e,t]=Object.entries(s)[0];l[e]=t}else l.link=s;l.nodeType=e,l.parentBoundary=zs,l.wrap=wl(),Ws=zs,zs=t,Ps.push(Ws)},il=function(){zs=Ws,Ps.pop(),Ws=Ps.pop(),Ps.push(Ws)},ol=function(e,t,n,r,a,i,o,s,l,c,u){let d=$s.find((e=>e.alias===t));if(void 0!==d||(d=js.find((e=>e.alias===t)),void 0!==d)){if(void 0!==n&&null!==n)if("object"===typeof n){let[e,t]=Object.entries(n)[0];d[e]=t}else d.bgColor=n;if(void 0!==r&&null!==r)if("object"===typeof r){let[e,t]=Object.entries(r)[0];d[e]=t}else d.fontColor=r;if(void 0!==a&&null!==a)if("object"===typeof a){let[e,t]=Object.entries(a)[0];d[e]=t}else d.borderColor=a;if(void 0!==i&&null!==i)if("object"===typeof i){let[e,t]=Object.entries(i)[0];d[e]=t}else d.shadowing=i;if(void 0!==o&&null!==o)if("object"===typeof o){let[e,t]=Object.entries(o)[0];d[e]=t}else d.shape=o;if(void 0!==s&&null!==s)if("object"===typeof s){let[e,t]=Object.entries(s)[0];d[e]=t}else d.sprite=s;if(void 0!==l&&null!==l)if("object"===typeof l){let[e,t]=Object.entries(l)[0];d[e]=t}else d.techn=l;if(void 0!==c&&null!==c)if("object"===typeof c){let[e,t]=Object.entries(c)[0];d[e]=t}else d.legendText=c;if(void 0!==u&&null!==u)if("object"===typeof u){let[e,t]=Object.entries(u)[0];d[e]=t}else d.legendSprite=u}},sl=function(e,t,n,r,a,i,o){const s=Vs.find((e=>e.from===t&&e.to===n));if(void 0!==s){if(void 0!==r&&null!==r)if("object"===typeof r){let[e,t]=Object.entries(r)[0];s[e]=t}else s.textColor=r;if(void 0!==a&&null!==a)if("object"===typeof a){let[e,t]=Object.entries(a)[0];s[e]=t}else s.lineColor=a;if(void 0!==i&&null!==i)if("object"===typeof i){let[e,t]=Object.entries(i)[0];s[e]=parseInt(t)}else s.offsetX=parseInt(i);if(void 0!==o&&null!==o)if("object"===typeof o){let[e,t]=Object.entries(o)[0];s[e]=parseInt(t)}else s.offsetY=parseInt(o)}},ll=function(e,t,n){let r=Hs,a=qs;if("object"===typeof t){const e=Object.values(t)[0];r=parseInt(e)}else r=parseInt(t);if("object"===typeof n){const e=Object.values(n)[0];a=parseInt(e)}else a=parseInt(n);r>=1&&(Hs=r),a>=1&&(qs=a)},cl=function(){return Hs},ul=function(){return qs},dl=function(){return zs},hl=function(){return Ws},pl=function(e){return void 0===e||null===e?$s:$s.filter((t=>t.parentBoundary===e))},fl=function(e){return $s.find((t=>t.alias===e))},ml=function(e){return Object.keys(pl(e))},gl=function(e){return void 0===e||null===e?js:js.filter((t=>t.parentBoundary===e))},vl=function(){return Vs},yl=function(){return Us},bl=function(e){Ks=e},wl=function(){return Ks},xl=function(){$s=[],js=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],Ws="",zs="global",Ps=[""],Vs=[],Ps=[""],Us="",Ks=!1,Hs=4,qs=2},kl={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},_l={FILLED:0,OPEN:1},Cl={LEFTOF:0,RIGHTOF:1,OVER:2},El=function(e){let t=at(e,wi());Us=t},Rl={addPersonOrSystem:Js,addPersonOrSystemBoundary:nl,addContainer:el,addContainerBoundary:rl,addComponent:tl,addDeploymentNode:al,popBoundaryParseStack:il,addRel:Zs,updateElStyle:ol,updateRelStyle:sl,updateLayoutConfig:ll,autoWrap:wl,setWrap:bl,getC4ShapeArray:pl,getC4Shape:fl,getC4ShapeKeys:ml,getBoundarys:gl,getCurrentBoundaryParse:dl,getParentBoundaryParse:hl,getRels:vl,getTitle:yl,getC4Type:Xs,getC4ShapeInRow:cl,getC4BoundaryInRow:ul,setAccTitle:ho,getAccTitle:po,getAccDescription:mo,setAccDescription:fo,parseDirective:Qs,getConfig:()=>wi().c4,clear:xl,LINETYPE:kl,ARROWTYPE:_l,PLACEMENT:Cl,setTitle:El,setC4Type:Ys},Sl=function(e,t){const n=e.append("rect");if(n.attr("x",t.x),n.attr("y",t.y),n.attr("fill",t.fill),n.attr("stroke",t.stroke),n.attr("width",t.width),n.attr("height",t.height),n.attr("rx",t.rx),n.attr("ry",t.ry),"undefined"!==t.attrs&&null!==t.attrs)for(let r in t.attrs)n.attr(r,t.attrs[r]);return"undefined"!==t.class&&n.attr("class",t.class),n},Al=function(e,t,n,r,a,i){const s=e.append("image");s.attr("width",t),s.attr("height",n),s.attr("x",r),s.attr("y",a);let l=i.startsWith("data:image/png;base64")?i:(0,o.Jf)(i);s.attr("xlink:href",l)},Tl=(e,t,n)=>{const r=e.append("g");let a=0;for(let i of t){let e=i.textColor?i.textColor:"#444444",t=i.lineColor?i.lineColor:"#444444",o=i.offsetX?parseInt(i.offsetX):0,s=i.offsetY?parseInt(i.offsetY):0,l="";if(0===a){let e=r.append("line");e.attr("x1",i.startPoint.x),e.attr("y1",i.startPoint.y),e.attr("x2",i.endPoint.x),e.attr("y2",i.endPoint.y),e.attr("stroke-width","1"),e.attr("stroke",t),e.style("fill","none"),"rel_b"!==i.type&&e.attr("marker-end","url("+l+"#arrowhead)"),"birel"!==i.type&&"rel_b"!==i.type||e.attr("marker-start","url("+l+"#arrowend)"),a=-1}else{let e=r.append("path");e.attr("fill","none").attr("stroke-width","1").attr("stroke",t).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",i.startPoint.x).replaceAll("starty",i.startPoint.y).replaceAll("controlx",i.startPoint.x+(i.endPoint.x-i.startPoint.x)/2-(i.endPoint.x-i.startPoint.x)/4).replaceAll("controly",i.startPoint.y+(i.endPoint.y-i.startPoint.y)/2).replaceAll("stopx",i.endPoint.x).replaceAll("stopy",i.endPoint.y)),"rel_b"!==i.type&&e.attr("marker-end","url("+l+"#arrowhead)"),"birel"!==i.type&&"rel_b"!==i.type||e.attr("marker-start","url("+l+"#arrowend)")}let c=n.messageFont();jl(n)(i.label.text,r,Math.min(i.startPoint.x,i.endPoint.x)+Math.abs(i.endPoint.x-i.startPoint.x)/2+o,Math.min(i.startPoint.y,i.endPoint.y)+Math.abs(i.endPoint.y-i.startPoint.y)/2+s,i.label.width,i.label.height,{fill:e},c),i.techn&&""!==i.techn.text&&(c=n.messageFont(),jl(n)("["+i.techn.text+"]",r,Math.min(i.startPoint.x,i.endPoint.x)+Math.abs(i.endPoint.x-i.startPoint.x)/2+o,Math.min(i.startPoint.y,i.endPoint.y)+Math.abs(i.endPoint.y-i.startPoint.y)/2+n.messageFontSize+5+s,Math.max(i.label.width,i.techn.width),i.techn.height,{fill:e,"font-style":"italic"},c))}},Ml=function(e,t,n){const r=e.append("g");let a=t.bgColor?t.bgColor:"none",i=t.borderColor?t.borderColor:"#444444",o=t.fontColor?t.fontColor:"black",s={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};t.nodeType&&(s={"stroke-width":1});let l={x:t.x,y:t.y,fill:a,stroke:i,width:t.width,height:t.height,rx:2.5,ry:2.5,attrs:s};Sl(r,l);let c=n.boundaryFont();c.fontWeight="bold",c.fontSize=c.fontSize+2,c.fontColor=o,jl(n)(t.label.text,r,t.x,t.y+t.label.Y,t.width,t.height,{fill:"#444444"},c),t.type&&""!==t.type.text&&(c=n.boundaryFont(),c.fontColor=o,jl(n)(t.type.text,r,t.x,t.y+t.type.Y,t.width,t.height,{fill:"#444444"},c)),t.descr&&""!==t.descr.text&&(c=n.boundaryFont(),c.fontSize=c.fontSize-2,c.fontColor=o,jl(n)(t.descr.text,r,t.x,t.y+t.descr.Y,t.width,t.height,{fill:"#444444"},c))},Ll=function(e,t,n){var r;let a=t.bgColor?t.bgColor:n[t.typeC4Shape.text+"_bg_color"],i=t.borderColor?t.borderColor:n[t.typeC4Shape.text+"_border_color"],o=t.fontColor?t.fontColor:"#FFFFFF",s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";switch(t.typeC4Shape.text){case"person":s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";break;case"external_person":s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII=";break}const l=e.append("g");l.attr("class","person-man");const c=zl();switch(t.typeC4Shape.text){case"person":case"external_person":case"system":case"external_system":case"container":case"external_container":case"component":case"external_component":c.x=t.x,c.y=t.y,c.fill=a,c.width=t.width,c.height=t.height,c.stroke=i,c.rx=2.5,c.ry=2.5,c.attrs={"stroke-width":.5},Sl(l,c);break;case"system_db":case"external_system_db":case"container_db":case"external_container_db":case"component_db":case"external_component_db":l.append("path").attr("fill",a).attr("stroke-width","0.5").attr("stroke",i).attr("d","Mstartx,startyc0,-10 half,-10 half,-10c0,0 half,0 half,10l0,heightc0,10 -half,10 -half,10c0,0 -half,0 -half,-10l0,-height".replaceAll("startx",t.x).replaceAll("starty",t.y).replaceAll("half",t.width/2).replaceAll("height",t.height)),l.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",i).attr("d","Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx",t.x).replaceAll("starty",t.y).replaceAll("half",t.width/2));break;case"system_queue":case"external_system_queue":case"container_queue":case"external_container_queue":case"component_queue":case"external_component_queue":l.append("path").attr("fill",a).attr("stroke-width","0.5").attr("stroke",i).attr("d","Mstartx,startylwidth,0c5,0 5,half 5,halfc0,0 0,half -5,halfl-width,0c-5,0 -5,-half -5,-halfc0,0 0,-half 5,-half".replaceAll("startx",t.x).replaceAll("starty",t.y).replaceAll("width",t.width).replaceAll("half",t.height/2)),l.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",i).attr("d","Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx",t.x+t.width).replaceAll("starty",t.y).replaceAll("half",t.height/2));break}let u=Wl(n,t.typeC4Shape.text);switch(l.append("text").attr("fill",o).attr("font-family",u.fontFamily).attr("font-size",u.fontSize-2).attr("font-style","italic").attr("lengthAdjust","spacing").attr("textLength",t.typeC4Shape.width).attr("x",t.x+t.width/2-t.typeC4Shape.width/2).attr("y",t.y+t.typeC4Shape.Y).text("<<"+t.typeC4Shape.text+">>"),t.typeC4Shape.text){case"person":case"external_person":Al(l,48,48,t.x+t.width/2-24,t.y+t.image.Y,s);break}let d=n[t.typeC4Shape.text+"Font"]();return d.fontWeight="bold",d.fontSize=d.fontSize+2,d.fontColor=o,jl(n)(t.label.text,l,t.x,t.y+t.label.Y,t.width,t.height,{fill:o},d),d=n[t.typeC4Shape.text+"Font"](),d.fontColor=o,t.techn&&""!==(null==(r=t.techn)?void 0:r.text)?jl(n)(t.techn.text,l,t.x,t.y+t.techn.Y,t.width,t.height,{fill:o,"font-style":"italic"},d):t.type&&""!==t.type.text&&jl(n)(t.type.text,l,t.x,t.y+t.type.Y,t.width,t.height,{fill:o,"font-style":"italic"},d),t.descr&&""!==t.descr.text&&(d=n.personFont(),d.fontColor=o,jl(n)(t.descr.text,l,t.x,t.y+t.descr.Y,t.width,t.height,{fill:o},d)),t.height},Ol=function(e){e.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},Il=function(e){e.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},Nl=function(e){e.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},Bl=function(e){e.append("defs").append("marker").attr("id","arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},Dl=function(e){e.append("defs").append("marker").attr("id","arrowend").attr("refX",1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z")},Fl=function(e){e.append("defs").append("marker").attr("id","filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},$l=function(e){e.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},Pl=function(e){const t=e.append("defs"),n=t.append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);n.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),n.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")},zl=function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},Wl=(e,t)=>({fontFamily:e[t+"FontFamily"],fontSize:e[t+"FontSize"],fontWeight:e[t+"FontWeight"]}),jl=function(){function e(e,t,n,a,i,o,s){const l=t.append("text").attr("x",n+i/2).attr("y",a+o/2+5).style("text-anchor","middle").text(e);r(l,s)}function t(e,t,n,a,i,o,s,l){const{fontSize:c,fontFamily:u,fontWeight:d}=l,h=e.split(ft.lineBreakRegex);for(let p=0;p<h.length;p++){const e=p*c-c*(h.length-1)/2,o=t.append("text").attr("x",n+i/2).attr("y",a).style("text-anchor","middle").attr("dominant-baseline","middle").style("font-size",c).style("font-weight",d).style("font-family",u);o.append("tspan").attr("dy",e).text(h[p]).attr("alignment-baseline","mathematical"),r(o,s)}}function n(e,n,a,i,o,s,l,c){const u=n.append("switch"),d=u.append("foreignObject").attr("x",a).attr("y",i).attr("width",o).attr("height",s),h=d.append("xhtml:div").style("display","table").style("height","100%").style("width","100%");h.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(e),t(e,u,a,i,o,s,l,c),r(h,l)}function r(e,t){for(const n in t)t.hasOwnProperty(n)&&e.attr(n,t[n])}return function(r){return"fo"===r.textPlacement?n:"old"===r.textPlacement?e:t}}(),Vl={drawRect:Sl,drawBoundary:Ml,drawC4Shape:Ll,drawRels:Tl,drawImage:Al,insertArrowHead:Bl,insertArrowEnd:Dl,insertArrowFilledHead:Fl,insertDynamicNumber:$l,insertArrowCrossHead:Pl,insertDatabaseIcon:Ol,insertComputerIcon:Il,insertClockIcon:Nl,getNoteRect:zl,sanitizeUrl:o.Jf};let Ul=0,Kl=0,Hl=4,ql=2;Bs.yy=Rl;let Gl={};class Xl{constructor(e){this.name="",this.data={},this.data.startx=void 0,this.data.stopx=void 0,this.data.starty=void 0,this.data.stopy=void 0,this.data.widthLimit=void 0,this.nextData={},this.nextData.startx=void 0,this.nextData.stopx=void 0,this.nextData.starty=void 0,this.nextData.stopy=void 0,this.nextData.cnt=0,Yl(e.db.getConfig())}setData(e,t,n,r){this.nextData.startx=this.data.startx=e,this.nextData.stopx=this.data.stopx=t,this.nextData.starty=this.data.starty=n,this.nextData.stopy=this.data.stopy=r}updateVal(e,t,n,r){void 0===e[t]?e[t]=n:e[t]=r(n,e[t])}insert(e){this.nextData.cnt=this.nextData.cnt+1;let t=this.nextData.startx===this.nextData.stopx?this.nextData.stopx+e.margin:this.nextData.stopx+2*e.margin,n=t+e.width,r=this.nextData.starty+2*e.margin,a=r+e.height;(t>=this.data.widthLimit||n>=this.data.widthLimit||this.nextData.cnt>Hl)&&(t=this.nextData.startx+e.margin+Gl.nextLinePaddingX,r=this.nextData.stopy+2*e.margin,this.nextData.stopx=n=t+e.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=a=r+e.height,this.nextData.cnt=1),e.x=t,e.y=r,this.updateVal(this.data,"startx",t,Math.min),this.updateVal(this.data,"starty",r,Math.min),this.updateVal(this.data,"stopx",n,Math.max),this.updateVal(this.data,"stopy",a,Math.max),this.updateVal(this.nextData,"startx",t,Math.min),this.updateVal(this.nextData,"starty",r,Math.min),this.updateVal(this.nextData,"stopx",n,Math.max),this.updateVal(this.nextData,"stopy",a,Math.max)}init(e){this.name="",this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},Yl(e.db.getConfig())}bumpLastMargin(e){this.data.stopx+=e,this.data.stopy+=e}}const Yl=function(e){Ea(Gl,e),e.fontFamily&&(Gl.personFontFamily=Gl.systemFontFamily=Gl.messageFontFamily=e.fontFamily),e.fontSize&&(Gl.personFontSize=Gl.systemFontSize=Gl.messageFontSize=e.fontSize),e.fontWeight&&(Gl.personFontWeight=Gl.systemFontWeight=Gl.messageFontWeight=e.fontWeight)},Ql=(e,t)=>({fontFamily:e[t+"FontFamily"],fontSize:e[t+"FontSize"],fontWeight:e[t+"FontWeight"]}),Zl=e=>({fontFamily:e.boundaryFontFamily,fontSize:e.boundaryFontSize,fontWeight:e.boundaryFontWeight}),Jl=e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight});function ec(e,t,n,r,a){if(!t[e].width)if(n)t[e].text=qa(t[e].text,a,r),t[e].textLines=t[e].text.split(ft.lineBreakRegex).length,t[e].width=a,t[e].height=Xa(t[e].text,r);else{let n=t[e].text.split(ft.lineBreakRegex);t[e].textLines=n.length;let a=0;t[e].height=0,t[e].width=0;for(const i of n)t[e].width=Math.max(Ya(i,r),t[e].width),a=Xa(i,r),t[e].height=t[e].height+a}}const tc=function(e,t,n){t.x=n.data.startx,t.y=n.data.starty,t.width=n.data.stopx-n.data.startx,t.height=n.data.stopy-n.data.starty,t.label.y=Gl.c4ShapeMargin-35;let r=t.wrap&&Gl.wrap,a=Zl(Gl);a.fontSize=a.fontSize+2,a.fontWeight="bold";let i=Ya(t.label.text,a);ec("label",t,r,a,i),Vl.drawBoundary(e,t,Gl)},nc=function(e,t,n,r){let a=0;for(const i of r){a=0;const r=n[i];let o=Ql(Gl,r.typeC4Shape.text);switch(o.fontSize=o.fontSize-2,r.typeC4Shape.width=Ya("<<"+r.typeC4Shape.text+">>",o),r.typeC4Shape.height=o.fontSize+2,r.typeC4Shape.Y=Gl.c4ShapePadding,a=r.typeC4Shape.Y+r.typeC4Shape.height-4,r.image={width:0,height:0,Y:0},r.typeC4Shape.text){case"person":case"external_person":r.image.width=48,r.image.height=48,r.image.Y=a,a=r.image.Y+r.image.height;break}r.sprite&&(r.image.width=48,r.image.height=48,r.image.Y=a,a=r.image.Y+r.image.height);let s=r.wrap&&Gl.wrap,l=Gl.width-2*Gl.c4ShapePadding,c=Ql(Gl,r.typeC4Shape.text);if(c.fontSize=c.fontSize+2,c.fontWeight="bold",ec("label",r,s,c,l),r["label"].Y=a+8,a=r["label"].Y+r["label"].height,r.type&&""!==r.type.text){r.type.text="["+r.type.text+"]";let e=Ql(Gl,r.typeC4Shape.text);ec("type",r,s,e,l),r["type"].Y=a+5,a=r["type"].Y+r["type"].height}else if(r.techn&&""!==r.techn.text){r.techn.text="["+r.techn.text+"]";let e=Ql(Gl,r.techn.text);ec("techn",r,s,e,l),r["techn"].Y=a+5,a=r["techn"].Y+r["techn"].height}let u=a,d=r.label.width;if(r.descr&&""!==r.descr.text){let e=Ql(Gl,r.typeC4Shape.text);ec("descr",r,s,e,l),r["descr"].Y=a+20,a=r["descr"].Y+r["descr"].height,d=Math.max(r.label.width,r.descr.width),u=a-5*r["descr"].textLines}d+=Gl.c4ShapePadding,r.width=Math.max(r.width||Gl.width,d,Gl.width),r.height=Math.max(r.height||Gl.height,u,Gl.height),r.margin=r.margin||Gl.c4ShapeMargin,e.insert(r),Vl.drawC4Shape(t,r,Gl)}e.bumpLastMargin(Gl.c4ShapeMargin)};class rc{constructor(e,t){this.x=e,this.y=t}}let ac=function(e,t){let n=e.x,r=e.y,a=t.x,i=t.y,o=n+e.width/2,s=r+e.height/2,l=Math.abs(n-a),c=Math.abs(r-i),u=c/l,d=e.height/e.width,h=null;return r==i&&n<a?h=new rc(n+e.width,s):r==i&&n>a?h=new rc(n,s):n==a&&r<i?h=new rc(o,r+e.height):n==a&&r>i&&(h=new rc(o,r)),n>a&&r<i?h=d>=u?new rc(n,s+u*e.width/2):new rc(o-l/c*e.height/2,r+e.height):n<a&&r<i?h=d>=u?new rc(n+e.width,s+u*e.width/2):new rc(o+l/c*e.height/2,r+e.height):n<a&&r>i?h=d>=u?new rc(n+e.width,s-u*e.width/2):new rc(o+e.height/2*l/c,r):n>a&&r>i&&(h=d>=u?new rc(n,s-e.width/2*u):new rc(o-e.height/2*l/c,r)),h},ic=function(e,t){let n={x:0,y:0};n.x=t.x+t.width/2,n.y=t.y+t.height/2;let r=ac(e,n);n.x=e.x+e.width/2,n.y=e.y+e.height/2;let a=ac(t,n);return{startPoint:r,endPoint:a}};const oc=function(e,t,n,r){let a=0;for(let i of t){a+=1;let e=i.wrap&&Gl.wrap,t=Jl(Gl),o=r.db.getC4Type();"C4Dynamic"===o&&(i.label.text=a+": "+i.label.text);let s=Ya(i.label.text,t);ec("label",i,e,t,s),i.techn&&""!==i.techn.text&&(s=Ya(i.techn.text,t),ec("techn",i,e,t,s)),i.descr&&""!==i.descr.text&&(s=Ya(i.descr.text,t),ec("descr",i,e,t,s));let l=n(i.from),c=n(i.to),u=ic(l,c);i.startPoint=u.startPoint,i.endPoint=u.endPoint}Vl.drawRels(e,t,Gl)};function sc(e,t,n,r,a){let i=new Xl(a);i.data.widthLimit=n.data.widthLimit/Math.min(ql,r.length);for(let[o,s]of r.entries()){let r=0;s.image={width:0,height:0,Y:0},s.sprite&&(s.image.width=48,s.image.height=48,s.image.Y=r,r=s.image.Y+s.image.height);let l=s.wrap&&Gl.wrap,c=Zl(Gl);if(c.fontSize=c.fontSize+2,c.fontWeight="bold",ec("label",s,l,c,i.data.widthLimit),s["label"].Y=r+8,r=s["label"].Y+s["label"].height,s.type&&""!==s.type.text){s.type.text="["+s.type.text+"]";let e=Zl(Gl);ec("type",s,l,e,i.data.widthLimit),s["type"].Y=r+5,r=s["type"].Y+s["type"].height}if(s.descr&&""!==s.descr.text){let e=Zl(Gl);e.fontSize=e.fontSize-2,ec("descr",s,l,e,i.data.widthLimit),s["descr"].Y=r+20,r=s["descr"].Y+s["descr"].height}if(0==o||o%ql===0){let e=n.data.startx+Gl.diagramMarginX,t=n.data.stopy+Gl.diagramMarginY+r;i.setData(e,e,t,t)}else{let e=i.data.stopx!==i.data.startx?i.data.stopx+Gl.diagramMarginX:i.data.startx,t=i.data.starty;i.setData(e,e,t,t)}i.name=s.alias;let u=a.db.getC4ShapeArray(s.alias),d=a.db.getC4ShapeKeys(s.alias);d.length>0&&nc(i,e,u,d),t=s.alias;let h=a.db.getBoundarys(t);h.length>0&&sc(e,t,i,h,a),"global"!==s.alias&&tc(e,s,i),n.data.stopy=Math.max(i.data.stopy+Gl.c4ShapeMargin,n.data.stopy),n.data.stopx=Math.max(i.data.stopx+Gl.c4ShapeMargin,n.data.stopx),Ul=Math.max(Ul,n.data.stopx),Kl=Math.max(Kl,n.data.stopy)}}const lc=function(e,t,n,r){Gl=wi().c4;const a=wi().securityLevel;let i;"sandbox"===a&&(i=(0,s.Ltv)("#i"+t));const o="sandbox"===a?(0,s.Ltv)(i.nodes()[0].contentDocument.body):(0,s.Ltv)("body");let l=r.db;r.db.setWrap(Gl.wrap),Hl=l.getC4ShapeInRow(),ql=l.getC4BoundaryInRow(),Ze.debug(`C:${JSON.stringify(Gl,null,2)}`);const c="sandbox"===a?o.select(`[id="${t}"]`):(0,s.Ltv)(`[id="${t}"]`);Vl.insertComputerIcon(c),Vl.insertDatabaseIcon(c),Vl.insertClockIcon(c);let u=new Xl(r);u.setData(Gl.diagramMarginX,Gl.diagramMarginX,Gl.diagramMarginY,Gl.diagramMarginY),u.data.widthLimit=screen.availWidth,Ul=Gl.diagramMarginX,Kl=Gl.diagramMarginY;const d=r.db.getTitle();let h=r.db.getBoundarys("");sc(c,"",u,h,r),Vl.insertArrowHead(c),Vl.insertArrowEnd(c),Vl.insertArrowCrossHead(c),Vl.insertArrowFilledHead(c),oc(c,r.db.getRels(),r.db.getC4Shape,r),u.data.stopx=Ul,u.data.stopy=Kl;const p=u.data;let f=p.stopy-p.starty,m=f+2*Gl.diagramMarginY,g=p.stopx-p.startx;const v=g+2*Gl.diagramMarginX;d&&c.append("text").text(d).attr("x",(p.stopx-p.startx)/2-4*Gl.diagramMarginX).attr("y",p.starty+Gl.diagramMarginY),Mi(c,m,v,Gl.useMaxWidth);const y=d?60:0;c.attr("viewBox",p.startx-Gl.diagramMarginX+" -"+(Gl.diagramMarginY+y)+" "+v+" "+(m+y)),Ze.debug("models:",p)},cc={drawPersonOrSystemArray:nc,drawBoundary:tc,setConf:Yl,draw:lc};var uc=function(){var e=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},t=[1,3],n=[1,7],r=[1,8],a=[1,9],i=[1,10],o=[1,13],s=[1,12],l=[1,16,25],c=[1,20],u=[1,32],d=[1,33],h=[1,34],p=[1,36],f=[1,39],m=[1,37],g=[1,38],v=[1,44],y=[1,45],b=[1,40],w=[1,41],x=[1,42],k=[1,43],_=[1,48],C=[1,49],E=[1,50],R=[1,51],S=[16,25],A=[1,65],T=[1,66],M=[1,67],L=[1,68],O=[1,69],I=[1,70],N=[1,71],B=[1,80],D=[16,25,32,45,46,54,60,61,62,63,64,65,66,71,73],F=[16,25,30,32,45,46,50,54,60,61,62,63,64,65,66,71,73,88,89,90,91],$=[5,8,9,10,11,16,19,23,25],P=[54,88,89,90,91],z=[54,65,66,88,89,90,91],W=[54,60,61,62,63,64,88,89,90,91],j=[16,25,32],V=[1,107],U={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statments:5,direction:6,directive:7,direction_tb:8,direction_bt:9,direction_rl:10,direction_lr:11,graphConfig:12,openDirective:13,typeDirective:14,closeDirective:15,NEWLINE:16,":":17,argDirective:18,open_directive:19,type_directive:20,arg_directive:21,close_directive:22,CLASS_DIAGRAM:23,statements:24,EOF:25,statement:26,className:27,alphaNumToken:28,classLiteralName:29,GENERICTYPE:30,relationStatement:31,LABEL:32,classStatement:33,methodStatement:34,annotationStatement:35,clickStatement:36,cssClassStatement:37,noteStatement:38,acc_title:39,acc_title_value:40,acc_descr:41,acc_descr_value:42,acc_descr_multiline_value:43,CLASS:44,STYLE_SEPARATOR:45,STRUCT_START:46,members:47,STRUCT_STOP:48,ANNOTATION_START:49,ANNOTATION_END:50,MEMBER:51,SEPARATOR:52,relation:53,STR:54,NOTE_FOR:55,noteText:56,NOTE:57,relationType:58,lineType:59,AGGREGATION:60,EXTENSION:61,COMPOSITION:62,DEPENDENCY:63,LOLLIPOP:64,LINE:65,DOTTED_LINE:66,CALLBACK:67,LINK:68,LINK_TARGET:69,CLICK:70,CALLBACK_NAME:71,CALLBACK_ARGS:72,HREF:73,CSSCLASS:74,commentToken:75,textToken:76,graphCodeTokens:77,textNoTagsToken:78,TAGSTART:79,TAGEND:80,"==":81,"--":82,PCT:83,DEFAULT:84,SPACE:85,MINUS:86,keywords:87,UNICODE_TEXT:88,NUM:89,ALPHA:90,BQUOTE_STR:91,$accept:0,$end:1},terminals_:{2:"error",5:"statments",8:"direction_tb",9:"direction_bt",10:"direction_rl",11:"direction_lr",16:"NEWLINE",17:":",19:"open_directive",20:"type_directive",21:"arg_directive",22:"close_directive",23:"CLASS_DIAGRAM",25:"EOF",30:"GENERICTYPE",32:"LABEL",39:"acc_title",40:"acc_title_value",41:"acc_descr",42:"acc_descr_value",43:"acc_descr_multiline_value",44:"CLASS",45:"STYLE_SEPARATOR",46:"STRUCT_START",48:"STRUCT_STOP",49:"ANNOTATION_START",50:"ANNOTATION_END",51:"MEMBER",52:"SEPARATOR",54:"STR",55:"NOTE_FOR",57:"NOTE",60:"AGGREGATION",61:"EXTENSION",62:"COMPOSITION",63:"DEPENDENCY",64:"LOLLIPOP",65:"LINE",66:"DOTTED_LINE",67:"CALLBACK",68:"LINK",69:"LINK_TARGET",70:"CLICK",71:"CALLBACK_NAME",72:"CALLBACK_ARGS",73:"HREF",74:"CSSCLASS",77:"graphCodeTokens",79:"TAGSTART",80:"TAGEND",81:"==",82:"--",83:"PCT",84:"DEFAULT",85:"SPACE",86:"MINUS",87:"keywords",88:"UNICODE_TEXT",89:"NUM",90:"ALPHA",91:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[3,1],[3,2],[6,1],[6,1],[6,1],[6,1],[4,1],[7,4],[7,6],[13,1],[14,1],[18,1],[15,1],[12,4],[24,1],[24,2],[24,3],[27,1],[27,1],[27,2],[27,2],[27,2],[26,1],[26,2],[26,1],[26,1],[26,1],[26,1],[26,1],[26,1],[26,1],[26,1],[26,2],[26,2],[26,1],[33,2],[33,4],[33,5],[33,7],[35,4],[47,1],[47,2],[34,1],[34,2],[34,1],[34,1],[31,3],[31,4],[31,4],[31,5],[38,3],[38,2],[53,3],[53,2],[53,2],[53,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[36,3],[36,4],[36,3],[36,4],[36,4],[36,5],[36,3],[36,4],[36,4],[36,5],[36,3],[36,4],[36,4],[36,5],[37,3],[75,1],[75,1],[76,1],[76,1],[76,1],[76,1],[76,1],[76,1],[76,1],[78,1],[78,1],[78,1],[78,1],[28,1],[28,1],[28,1],[29,1],[56,1]],performAction:function(e,t,n,r,a,i,o){var s=i.length-1;switch(a){case 5:r.setDirection("TB");break;case 6:r.setDirection("BT");break;case 7:r.setDirection("RL");break;case 8:r.setDirection("LR");break;case 12:r.parseDirective("%%{","open_directive");break;case 13:r.parseDirective(i[s],"type_directive");break;case 14:i[s]=i[s].trim().replace(/'/g,'"'),r.parseDirective(i[s],"arg_directive");break;case 15:r.parseDirective("}%%","close_directive","class");break;case 20:case 21:this.$=i[s];break;case 22:this.$=i[s-1]+i[s];break;case 23:case 24:this.$=i[s-1]+"~"+i[s];break;case 25:r.addRelation(i[s]);break;case 26:i[s-1].title=r.cleanupLabel(i[s]),r.addRelation(i[s-1]);break;case 35:this.$=i[s].trim(),r.setAccTitle(this.$);break;case 36:case 37:this.$=i[s].trim(),r.setAccDescription(this.$);break;case 38:r.addClass(i[s]);break;case 39:r.addClass(i[s-2]),r.setCssClass(i[s-2],i[s]);break;case 40:r.addClass(i[s-3]),r.addMembers(i[s-3],i[s-1]);break;case 41:r.addClass(i[s-5]),r.setCssClass(i[s-5],i[s-3]),r.addMembers(i[s-5],i[s-1]);break;case 42:r.addAnnotation(i[s],i[s-2]);break;case 43:this.$=[i[s]];break;case 44:i[s].push(i[s-1]),this.$=i[s];break;case 45:break;case 46:r.addMember(i[s-1],r.cleanupLabel(i[s]));break;case 47:break;case 48:break;case 49:this.$={id1:i[s-2],id2:i[s],relation:i[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 50:this.$={id1:i[s-3],id2:i[s],relation:i[s-1],relationTitle1:i[s-2],relationTitle2:"none"};break;case 51:this.$={id1:i[s-3],id2:i[s],relation:i[s-2],relationTitle1:"none",relationTitle2:i[s-1]};break;case 52:this.$={id1:i[s-4],id2:i[s],relation:i[s-2],relationTitle1:i[s-3],relationTitle2:i[s-1]};break;case 53:r.addNote(i[s],i[s-1]);break;case 54:r.addNote(i[s]);break;case 55:this.$={type1:i[s-2],type2:i[s],lineType:i[s-1]};break;case 56:this.$={type1:"none",type2:i[s],lineType:i[s-1]};break;case 57:this.$={type1:i[s-1],type2:"none",lineType:i[s]};break;case 58:this.$={type1:"none",type2:"none",lineType:i[s]};break;case 59:this.$=r.relationType.AGGREGATION;break;case 60:this.$=r.relationType.EXTENSION;break;case 61:this.$=r.relationType.COMPOSITION;break;case 62:this.$=r.relationType.DEPENDENCY;break;case 63:this.$=r.relationType.LOLLIPOP;break;case 64:this.$=r.lineType.LINE;break;case 65:this.$=r.lineType.DOTTED_LINE;break;case 66:case 72:this.$=i[s-2],r.setClickEvent(i[s-1],i[s]);break;case 67:case 73:this.$=i[s-3],r.setClickEvent(i[s-2],i[s-1]),r.setTooltip(i[s-2],i[s]);break;case 68:case 76:this.$=i[s-2],r.setLink(i[s-1],i[s]);break;case 69:this.$=i[s-3],r.setLink(i[s-2],i[s-1],i[s]);break;case 70:case 78:this.$=i[s-3],r.setLink(i[s-2],i[s-1]),r.setTooltip(i[s-2],i[s]);break;case 71:case 79:this.$=i[s-4],r.setLink(i[s-3],i[s-2],i[s]),r.setTooltip(i[s-3],i[s-1]);break;case 74:this.$=i[s-3],r.setClickEvent(i[s-2],i[s-1],i[s]);break;case 75:this.$=i[s-4],r.setClickEvent(i[s-3],i[s-2],i[s-1]),r.setTooltip(i[s-3],i[s]);break;case 77:this.$=i[s-3],r.setLink(i[s-2],i[s-1],i[s]);break;case 80:r.setCssClass(i[s-1],i[s]);break}},table:[{3:1,4:2,5:t,6:4,7:5,8:n,9:r,10:a,11:i,12:6,13:11,19:o,23:s},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{3:14,4:2,5:t,6:4,7:5,8:n,9:r,10:a,11:i,12:6,13:11,19:o,23:s},{1:[2,9]},e(l,[2,5]),e(l,[2,6]),e(l,[2,7]),e(l,[2,8]),{14:15,20:[1,16]},{16:[1,17]},{20:[2,12]},{1:[2,4]},{15:18,17:[1,19],22:c},e([17,22],[2,13]),{6:31,7:30,8:n,9:r,10:a,11:i,13:11,19:o,24:21,26:22,27:35,28:46,29:47,31:23,33:24,34:25,35:26,36:27,37:28,38:29,39:u,41:d,43:h,44:p,49:f,51:m,52:g,55:v,57:y,67:b,68:w,70:x,74:k,88:_,89:C,90:E,91:R},{16:[1,52]},{18:53,21:[1,54]},{16:[2,15]},{25:[1,55]},{16:[1,56],25:[2,17]},e(S,[2,25],{32:[1,57]}),e(S,[2,27]),e(S,[2,28]),e(S,[2,29]),e(S,[2,30]),e(S,[2,31]),e(S,[2,32]),e(S,[2,33]),e(S,[2,34]),{40:[1,58]},{42:[1,59]},e(S,[2,37]),e(S,[2,45],{53:60,58:63,59:64,32:[1,62],54:[1,61],60:A,61:T,62:M,63:L,64:O,65:I,66:N}),{27:72,28:46,29:47,88:_,89:C,90:E,91:R},e(S,[2,47]),e(S,[2,48]),{28:73,88:_,89:C,90:E},{27:74,28:46,29:47,88:_,89:C,90:E,91:R},{27:75,28:46,29:47,88:_,89:C,90:E,91:R},{27:76,28:46,29:47,88:_,89:C,90:E,91:R},{54:[1,77]},{27:78,28:46,29:47,88:_,89:C,90:E,91:R},{54:B,56:79},e(D,[2,20],{28:46,29:47,27:81,30:[1,82],88:_,89:C,90:E,91:R}),e(D,[2,21],{30:[1,83]}),e(F,[2,94]),e(F,[2,95]),e(F,[2,96]),e([16,25,30,32,45,46,54,60,61,62,63,64,65,66,71,73],[2,97]),e($,[2,10]),{15:84,22:c},{22:[2,14]},{1:[2,16]},{6:31,7:30,8:n,9:r,10:a,11:i,13:11,19:o,24:85,25:[2,18],26:22,27:35,28:46,29:47,31:23,33:24,34:25,35:26,36:27,37:28,38:29,39:u,41:d,43:h,44:p,49:f,51:m,52:g,55:v,57:y,67:b,68:w,70:x,74:k,88:_,89:C,90:E,91:R},e(S,[2,26]),e(S,[2,35]),e(S,[2,36]),{27:86,28:46,29:47,54:[1,87],88:_,89:C,90:E,91:R},{53:88,58:63,59:64,60:A,61:T,62:M,63:L,64:O,65:I,66:N},e(S,[2,46]),{59:89,65:I,66:N},e(P,[2,58],{58:90,60:A,61:T,62:M,63:L,64:O}),e(z,[2,59]),e(z,[2,60]),e(z,[2,61]),e(z,[2,62]),e(z,[2,63]),e(W,[2,64]),e(W,[2,65]),e(S,[2,38],{45:[1,91],46:[1,92]}),{50:[1,93]},{54:[1,94]},{54:[1,95]},{71:[1,96],73:[1,97]},{28:98,88:_,89:C,90:E},{54:B,56:99},e(S,[2,54]),e(S,[2,98]),e(D,[2,22]),e(D,[2,23]),e(D,[2,24]),{16:[1,100]},{25:[2,19]},e(j,[2,49]),{27:101,28:46,29:47,88:_,89:C,90:E,91:R},{27:102,28:46,29:47,54:[1,103],88:_,89:C,90:E,91:R},e(P,[2,57],{58:104,60:A,61:T,62:M,63:L,64:O}),e(P,[2,56]),{28:105,88:_,89:C,90:E},{47:106,51:V},{27:108,28:46,29:47,88:_,89:C,90:E,91:R},e(S,[2,66],{54:[1,109]}),e(S,[2,68],{54:[1,111],69:[1,110]}),e(S,[2,72],{54:[1,112],72:[1,113]}),e(S,[2,76],{54:[1,115],69:[1,114]}),e(S,[2,80]),e(S,[2,53]),e($,[2,11]),e(j,[2,51]),e(j,[2,50]),{27:116,28:46,29:47,88:_,89:C,90:E,91:R},e(P,[2,55]),e(S,[2,39],{46:[1,117]}),{48:[1,118]},{47:119,48:[2,43],51:V},e(S,[2,42]),e(S,[2,67]),e(S,[2,69]),e(S,[2,70],{69:[1,120]}),e(S,[2,73]),e(S,[2,74],{54:[1,121]}),e(S,[2,77]),e(S,[2,78],{69:[1,122]}),e(j,[2,52]),{47:123,51:V},e(S,[2,40]),{48:[2,44]},e(S,[2,71]),e(S,[2,75]),e(S,[2,79]),{48:[1,124]},e(S,[2,41])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],6:[2,9],13:[2,12],14:[2,4],20:[2,15],54:[2,14],55:[2,16],85:[2,19],119:[2,44]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],r=[],a=[null],i=[],o=this.table,s="",l=0,c=0,u=2,d=1,h=i.slice.call(arguments,1),p=Object.create(this.lexer),f={yy:{}};for(var m in this.yy)Object.prototype.hasOwnProperty.call(this.yy,m)&&(f.yy[m]=this.yy[m]);p.setInput(e,f.yy),f.yy.lexer=p,f.yy.parser=this,"undefined"==typeof p.yylloc&&(p.yylloc={});var g=p.yylloc;i.push(g);var v=p.options&&p.options.ranges;function y(){var e;return e=r.pop()||p.lex()||d,"number"!==typeof e&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}"function"===typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;var b,w,x,k,_,C,E,R,S={};while(1){if(w=n[n.length-1],this.defaultActions[w]?x=this.defaultActions[w]:(null!==b&&"undefined"!=typeof b||(b=y()),x=o[w]&&o[w][b]),"undefined"===typeof x||!x.length||!x[0]){var A="";for(_ in R=[],o[w])this.terminals_[_]&&_>u&&R.push("'"+this.terminals_[_]+"'");A=p.showPosition?"Parse error on line "+(l+1)+":\n"+p.showPosition()+"\nExpecting "+R.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(l+1)+": Unexpected "+(b==d?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(A,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:g,expected:R})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+b);switch(x[0]){case 1:n.push(b),a.push(p.yytext),i.push(p.yylloc),n.push(x[1]),b=null,c=p.yyleng,s=p.yytext,l=p.yylineno,g=p.yylloc;break;case 2:if(C=this.productions_[x[1]][1],S.$=a[a.length-C],S._$={first_line:i[i.length-(C||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(C||1)].first_column,last_column:i[i.length-1].last_column},v&&(S._$.range=[i[i.length-(C||1)].range[0],i[i.length-1].range[1]]),k=this.performAction.apply(S,[s,c,l,f.yy,x[1],a,i].concat(h)),"undefined"!==typeof k)return k;C&&(n=n.slice(0,-1*C*2),a=a.slice(0,-1*C),i=i.slice(0,-1*C)),n.push(this.productions_[x[1]][0]),a.push(S.$),i.push(S._$),E=o[n[n.length-2]][n[n.length-1]],n.push(E);break;case 3:return!0}}return!0}},K=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e;var t=e.match(/(?:\r\n?|\n).*/g);return t?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var a=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,a;if(this.options.backtrack_lexer&&(a={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(a.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var i in a)this[i]=a[i];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var a=this._currentRules(),i=0;i<a.length;i++)if(n=this._input.match(this.rules[a[i]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=i,this.options.backtrack_lexer){if(e=this.test_match(n,a[i]),!1!==e)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,a[r]),!1!==e&&e):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){var e=this.conditionStack.length-1;return e>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions["INITIAL"].rules},topState:function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(e,t,n,r){switch(n){case 0:return this.begin("open_directive"),19;case 1:return 8;case 2:return 9;case 3:return 10;case 4:return 11;case 5:return this.begin("type_directive"),20;case 6:return this.popState(),this.begin("arg_directive"),17;case 7:return this.popState(),this.popState(),22;case 8:return 21;case 9:break;case 10:break;case 11:return this.begin("acc_title"),39;case 12:return this.popState(),"acc_title_value";case 13:return this.begin("acc_descr"),41;case 14:return this.popState(),"acc_descr_value";case 15:this.begin("acc_descr_multiline");break;case 16:this.popState();break;case 17:return"acc_descr_multiline_value";case 18:return 16;case 19:break;case 20:return 23;case 21:return 23;case 22:return this.begin("struct"),46;case 23:return"EDGE_STATE";case 24:return"EOF_IN_STRUCT";case 25:return"OPEN_IN_STRUCT";case 26:return this.popState(),48;case 27:break;case 28:return"MEMBER";case 29:return 44;case 30:return 74;case 31:return 67;case 32:return 68;case 33:return 70;case 34:return 55;case 35:return 57;case 36:return 49;case 37:return 50;case 38:this.begin("generic");break;case 39:this.popState();break;case 40:return"GENERICTYPE";case 41:this.begin("string");break;case 42:this.popState();break;case 43:return"STR";case 44:this.begin("bqstring");break;case 45:this.popState();break;case 46:return"BQUOTE_STR";case 47:this.begin("href");break;case 48:this.popState();break;case 49:return 73;case 50:this.begin("callback_name");break;case 51:this.popState();break;case 52:this.popState(),this.begin("callback_args");break;case 53:return 71;case 54:this.popState();break;case 55:return 72;case 56:return 69;case 57:return 69;case 58:return 69;case 59:return 69;case 60:return 61;case 61:return 61;case 62:return 63;case 63:return 63;case 64:return 62;case 65:return 60;case 66:return 64;case 67:return 65;case 68:return 66;case 69:return 32;case 70:return 45;case 71:return 86;case 72:return"DOT";case 73:return"PLUS";case 74:return 83;case 75:return"EQUALS";case 76:return"EQUALS";case 77:return 90;case 78:return"PUNCTUATION";case 79:return 89;case 80:return 88;case 81:return 85;case 82:return 25}},rules:[/^(?:%%\{)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:[{])/,/^(?:\[\*\])/,/^(?:$)/,/^(?:[{])/,/^(?:[}])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:class\b)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:[~])/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[`])/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:href[\s]+["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[16,17],inclusive:!1},acc_descr:{rules:[14],inclusive:!1},acc_title:{rules:[12],inclusive:!1},arg_directive:{rules:[7,8],inclusive:!1},type_directive:{rules:[6,7],inclusive:!1},open_directive:{rules:[5],inclusive:!1},callback_args:{rules:[54,55],inclusive:!1},callback_name:{rules:[51,52,53],inclusive:!1},href:{rules:[48,49],inclusive:!1},struct:{rules:[23,24,25,26,27,28],inclusive:!1},generic:{rules:[39,40],inclusive:!1},bqstring:{rules:[45,46],inclusive:!1},string:{rules:[42,43],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,13,15,18,19,20,21,22,23,29,30,31,32,33,34,35,36,37,38,41,44,47,50,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82],inclusive:!0}}};return e}();function H(){this.yy={}}return U.lexer=K,H.prototype=U,U.Parser=H,new H}();uc.parser=uc;const dc=uc,hc=(e,t)=>{var n;return"dagre-wrapper"!==(null==(n=null==t?void 0:t.class)?void 0:n.defaultRenderer)&&null!==e.match(/^\s*classDiagram/)},pc=(e,t)=>{var n;return null!==e.match(/^\s*classDiagram/)&&"dagre-wrapper"===(null==(n=null==t?void 0:t.class)?void 0:n.defaultRenderer)||null!==e.match(/^\s*classDiagram-v2/)},fc="classid-";let mc=[],gc={},vc=[],yc=0,bc=[];const wc=e=>ft.sanitizeText(e,wi()),xc=function(e,t,n){m_.parseDirective(this,e,t,n)},kc=function(e){let t="",n=e;if(e.indexOf("~")>0){let r=e.split("~");n=r[0],t=ft.sanitizeText(r[1],wi())}return{className:n,type:t}},_c=function(e){let t=kc(e);void 0===gc[t.className]&&(gc[t.className]={id:t.className,type:t.type,cssClasses:[],methods:[],members:[],annotations:[],domId:fc+t.className+"-"+yc},yc++)},Cc=function(e){const t=Object.keys(gc);for(const n of t)if(gc[n].id===e)return gc[n].domId},Ec=function(){mc=[],gc={},vc=[],bc=[],bc.push(Kc),uo()},Rc=function(e){return gc[e]},Sc=function(){return gc},Ac=function(){return mc},Tc=function(){return vc},Mc=function(e){Ze.debug("Adding relation: "+JSON.stringify(e)),_c(e.id1),_c(e.id2),e.id1=kc(e.id1).className,e.id2=kc(e.id2).className,e.relationTitle1=ft.sanitizeText(e.relationTitle1.trim(),wi()),e.relationTitle2=ft.sanitizeText(e.relationTitle2.trim(),wi()),mc.push(e)},Lc=function(e,t){const n=kc(e).className;gc[n].annotations.push(t)},Oc=function(e,t){const n=kc(e).className,r=gc[n];if("string"===typeof t){const e=t.trim();e.startsWith("<<")&&e.endsWith(">>")?r.annotations.push(wc(e.substring(2,e.length-2))):e.indexOf(")")>0?r.methods.push(wc(e)):e&&r.members.push(wc(e))}},Ic=function(e,t){Array.isArray(t)&&(t.reverse(),t.forEach((t=>Oc(e,t))))},Nc=function(e,t){const n={id:`note${vc.length}`,class:t,text:e};vc.push(n)},Bc=function(e){return":"===e.substring(0,1)?ft.sanitizeText(e.substr(1).trim(),wi()):wc(e.trim())},Dc=function(e,t){e.split(",").forEach((function(e){let n=e;e[0].match(/\d/)&&(n=fc+n),void 0!==gc[n]&&gc[n].cssClasses.push(t)}))},Fc=function(e,t){const n=wi();e.split(",").forEach((function(e){void 0!==t&&(gc[e].tooltip=ft.sanitizeText(t,n))}))},$c=function(e){return gc[e].tooltip},Pc=function(e,t,n){const r=wi();e.split(",").forEach((function(e){let a=e;e[0].match(/\d/)&&(a=fc+a),void 0!==gc[a]&&(gc[a].link=si.formatUrl(t,r),"sandbox"===r.securityLevel?gc[a].linkTarget="_top":gc[a].linkTarget="string"===typeof n?wc(n):"_blank")})),Dc(e,"clickable")},zc=function(e,t,n){e.split(",").forEach((function(e){Wc(e,t,n),gc[e].haveCallback=!0})),Dc(e,"clickable")},Wc=function(e,t,n){const r=wi();let a=e,i=Cc(a);if("loose"===r.securityLevel&&void 0!==t&&void 0!==gc[a]){let e=[];if("string"===typeof n){e=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let t=0;t<e.length;t++){let n=e[t].trim();'"'===n.charAt(0)&&'"'===n.charAt(n.length-1)&&(n=n.substr(1,n.length-2)),e[t]=n}}0===e.length&&e.push(i),bc.push((function(){const n=document.querySelector(`[id="${i}"]`);null!==n&&n.addEventListener("click",(function(){si.runFunc(t,...e)}),!1)}))}},jc=function(e){bc.forEach((function(t){t(e)}))},Vc={LINE:0,DOTTED_LINE:1},Uc={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},Kc=function(e){let t=(0,s.Ltv)(".mermaidTooltip");null===(t._groups||t)[0][0]&&(t=(0,s.Ltv)("body").append("div").attr("class","mermaidTooltip").style("opacity",0));const n=(0,s.Ltv)(e).select("svg"),r=n.selectAll("g.node");r.on("mouseover",(function(){const e=(0,s.Ltv)(this),n=e.attr("title");if(null===n)return;const r=this.getBoundingClientRect();t.transition().duration(200).style("opacity",".9"),t.text(e.attr("title")).style("left",window.scrollX+r.left+(r.right-r.left)/2+"px").style("top",window.scrollY+r.top-14+document.body.scrollTop+"px"),t.html(t.html().replace(/&lt;br\/&gt;/g,"<br/>")),e.classed("hover",!0)})).on("mouseout",(function(){t.transition().duration(500).style("opacity",0);const e=(0,s.Ltv)(this);e.classed("hover",!1)}))};bc.push(Kc);let Hc="TB";const qc=()=>Hc,Gc=e=>{Hc=e},Xc={parseDirective:xc,setAccTitle:ho,getAccTitle:po,getAccDescription:mo,setAccDescription:fo,getConfig:()=>wi().class,addClass:_c,bindFunctions:jc,clear:Ec,getClass:Rc,getClasses:Sc,getNotes:Tc,addAnnotation:Lc,addNote:Nc,getRelations:Ac,addRelation:Mc,getDirection:qc,setDirection:Gc,addMember:Oc,addMembers:Ic,cleanupLabel:Bc,lineType:Vc,relationType:Uc,setClickEvent:zc,setCssClass:Dc,setLink:Pc,getTooltip:$c,setTooltip:Fc,lookUpDomId:Cc,setDiagramTitle:go,getDiagramTitle:vo};let Yc=0;const Qc=function(e,t,n,r,a){const i=function(e){switch(e){case a.db.relationType.AGGREGATION:return"aggregation";case a.db.relationType.EXTENSION:return"extension";case a.db.relationType.COMPOSITION:return"composition";case a.db.relationType.DEPENDENCY:return"dependency";case a.db.relationType.LOLLIPOP:return"lollipop"}};t.points=t.points.filter((e=>!Number.isNaN(e.y)));const o=t.points,l=(0,s.n8j)().x((function(e){return e.x})).y((function(e){return e.y})).curve(s.qrM),c=e.append("path").attr("d",l(o)).attr("id","edge"+Yc).attr("class","relation");let u,d,h="";r.arrowMarkerAbsolute&&(h=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,h=h.replace(/\(/g,"\\("),h=h.replace(/\)/g,"\\)")),1==n.relation.lineType&&c.attr("class","relation dashed-line"),10==n.relation.lineType&&c.attr("class","relation dotted-line"),"none"!==n.relation.type1&&c.attr("marker-start","url("+h+"#"+i(n.relation.type1)+"Start)"),"none"!==n.relation.type2&&c.attr("marker-end","url("+h+"#"+i(n.relation.type2)+"End)");const p=t.points.length;let f,m,g,v,y=si.calcLabelPosition(t.points);if(u=y.x,d=y.y,p%2!==0&&p>1){let e=si.calcCardinalityPosition("none"!==n.relation.type1,t.points,t.points[0]),r=si.calcCardinalityPosition("none"!==n.relation.type2,t.points,t.points[p-1]);Ze.debug("cardinality_1_point "+JSON.stringify(e)),Ze.debug("cardinality_2_point "+JSON.stringify(r)),f=e.x,m=e.y,g=r.x,v=r.y}if(void 0!==n.title){const t=e.append("g").attr("class","classLabel"),a=t.append("text").attr("class","label").attr("x",u).attr("y",d).attr("fill","red").attr("text-anchor","middle").text(n.title);window.label=a;const i=a.node().getBBox();t.insert("rect",":first-child").attr("class","box").attr("x",i.x-r.padding/2).attr("y",i.y-r.padding/2).attr("width",i.width+r.padding).attr("height",i.height+r.padding)}if(Ze.info("Rendering relation "+JSON.stringify(n)),void 0!==n.relationTitle1&&"none"!==n.relationTitle1){const t=e.append("g").attr("class","cardinality");t.append("text").attr("class","type1").attr("x",f).attr("y",m).attr("fill","black").attr("font-size","6").text(n.relationTitle1)}if(void 0!==n.relationTitle2&&"none"!==n.relationTitle2){const t=e.append("g").attr("class","cardinality");t.append("text").attr("class","type2").attr("x",g).attr("y",v).attr("fill","black").attr("font-size","6").text(n.relationTitle2)}Yc++},Zc=function(e,t,n,r){Ze.debug("Rendering class ",t,n);const a=t.id,i={id:a,label:t.id,width:0,height:0},o=e.append("g").attr("id",r.db.lookUpDomId(a)).attr("class","classGroup");let s;s=t.link?o.append("svg:a").attr("xlink:href",t.link).attr("target",t.linkTarget).append("text").attr("y",n.textHeight+n.padding).attr("x",0):o.append("text").attr("y",n.textHeight+n.padding).attr("x",0);let l=!0;t.annotations.forEach((function(e){const t=s.append("tspan").text("«"+e+"»");l||t.attr("dy",n.textHeight),l=!1}));let c=t.id;void 0!==t.type&&""!==t.type&&(c+="<"+t.type+">");const u=s.append("tspan").text(c).attr("class","title");l||u.attr("dy",n.textHeight);const d=s.node().getBBox().height,h=o.append("line").attr("x1",0).attr("y1",n.padding+d+n.dividerMargin/2).attr("y2",n.padding+d+n.dividerMargin/2),p=o.append("text").attr("x",n.padding).attr("y",d+n.dividerMargin+n.textHeight).attr("fill","white").attr("class","classText");l=!0,t.members.forEach((function(e){au(p,e,l,n),l=!1}));const f=p.node().getBBox(),m=o.append("line").attr("x1",0).attr("y1",n.padding+d+n.dividerMargin+f.height).attr("y2",n.padding+d+n.dividerMargin+f.height),g=o.append("text").attr("x",n.padding).attr("y",d+2*n.dividerMargin+f.height+n.textHeight).attr("fill","white").attr("class","classText");l=!0,t.methods.forEach((function(e){au(g,e,l,n),l=!1}));const v=o.node().getBBox();var y=" ";t.cssClasses.length>0&&(y+=t.cssClasses.join(" "));const b=o.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",v.width+2*n.padding).attr("height",v.height+n.padding+.5*n.dividerMargin).attr("class",y),w=b.node().getBBox().width;return s.node().childNodes.forEach((function(e){e.setAttribute("x",(w-e.getBBox().width)/2)})),t.tooltip&&s.insert("title").text(t.tooltip),h.attr("x2",w),m.attr("x2",w),i.width=w,i.height=v.height+n.padding+.5*n.dividerMargin,i},Jc=function(e,t,n,r){Ze.debug("Rendering note ",t,n);const a=t.id,i={id:a,text:t.text,width:0,height:0},o=e.append("g").attr("id",a).attr("class","classGroup");let s=o.append("text").attr("y",n.textHeight+n.padding).attr("x",0);const l=JSON.parse(`"${t.text}"`).split("\n");l.forEach((function(e){Ze.debug(`Adding line: ${e}`),s.append("tspan").text(e).attr("class","title").attr("dy",n.textHeight)}));const c=o.node().getBBox(),u=o.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",c.width+2*n.padding).attr("height",c.height+l.length*n.textHeight+n.padding+.5*n.dividerMargin),d=u.node().getBBox().width;return s.node().childNodes.forEach((function(e){e.setAttribute("x",(d-e.getBBox().width)/2)})),i.width=d,i.height=c.height+l.length*n.textHeight+n.padding+.5*n.dividerMargin,i},eu=function(e){const t=/^([#+~-])?(\w+)(~\w+~|\[])?\s+(\w+) *([$*])?$/,n=/^([#+|~-])?(\w+) *\( *(.*)\) *([$*])? *(\w*[[\]|~]*\s*\w*~?)$/;let r=e.match(t),a=e.match(n);return r&&!a?tu(r):a?nu(a):ru(e)},tu=function(e){let t="",n="";try{let r=e[1]?e[1].trim():"",a=e[2]?e[2].trim():"",i=e[3]?pt(e[3].trim()):"",o=e[4]?e[4].trim():"",s=e[5]?e[5].trim():"";n=r+a+i+" "+o,t=iu(s)}catch(r){n=e}return{displayText:n,cssStyle:t}},nu=function(e){let t="",n="";try{let r=e[1]?e[1].trim():"",a=e[2]?e[2].trim():"",i=e[3]?pt(e[3].trim()):"",o=e[4]?e[4].trim():"",s=e[5]?" : "+pt(e[5]).trim():"";n=r+a+"("+i+")"+s,t=iu(o)}catch(r){n=e}return{displayText:n,cssStyle:t}},ru=function(e){let t="",n="",r="",a=e.indexOf("("),i=e.indexOf(")");if(a>1&&i>a&&i<=e.length){let o="",s="",l=e.substring(0,1);l.match(/\w/)?s=e.substring(0,a).trim():(l.match(/[#+~-]/)&&(o=l),s=e.substring(1,a).trim());const c=e.substring(a+1,i);e.substring(i+1,1),n=iu(e.substring(i+1,i+2)),t=o+s+"("+pt(c.trim())+")",i<e.length&&(r=e.substring(i+2).trim(),""!==r&&(r=" : "+pt(r),t+=r))}else t=pt(e);return{displayText:t,cssStyle:n}},au=function(e,t,n,r){let a=eu(t);const i=e.append("tspan").attr("x",r.padding).text(a.displayText);""!==a.cssStyle&&i.attr("style",a.cssStyle),n||i.attr("dy",r.textHeight)},iu=function(e){switch(e){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}},ou={drawClass:Zc,drawEdge:Qc,drawNote:Jc,parseMember:eu};let su={};const lu=20,cu=function(e){const t=Object.entries(su).find((t=>t[1].label===e));if(t)return t[0]},uu=function(e){e.append("defs").append("marker").attr("id","extensionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id","extensionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),e.append("defs").append("marker").attr("id","compositionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id","compositionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id","aggregationStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id","aggregationEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id","dependencyStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},du=function(e,t,n,r){const a=wi().class;su={},Ze.info("Rendering diagram "+e);const i=wi().securityLevel;let o;"sandbox"===i&&(o=(0,s.Ltv)("#i"+t));const l="sandbox"===i?(0,s.Ltv)(o.nodes()[0].contentDocument.body):(0,s.Ltv)("body"),c=l.select(`[id='${t}']`);uu(c);const u=new we.T({multigraph:!0});u.setGraph({isMultiGraph:!0}),u.setDefaultEdgeLabel((function(){return{}}));const d=r.db.getClasses(),h=Object.keys(d);for(const s of h){const e=d[s],t=ou.drawClass(c,e,a,r);su[t.id]=t,u.setNode(t.id,t),Ze.info("Org height: "+t.height)}const p=r.db.getRelations();p.forEach((function(e){Ze.info("tjoho"+cu(e.id1)+cu(e.id2)+JSON.stringify(e)),u.setEdge(cu(e.id1),cu(e.id2),{relation:e},e.title||"DEFAULT")}));const f=r.db.getNotes();f.forEach((function(e){Ze.debug(`Adding note: ${JSON.stringify(e)}`);const t=ou.drawNote(c,e,a,r);su[t.id]=t,u.setNode(t.id,t),e.class&&e.class in d&&u.setEdge(e.id,cu(e.class),{relation:{id1:e.id,id2:e.class,relation:{type1:"none",type2:"none",lineType:10}}},"DEFAULT")})),(0,be.Zp)(u),u.nodes().forEach((function(e){void 0!==e&&void 0!==u.node(e)&&(Ze.debug("Node "+e+": "+JSON.stringify(u.node(e))),l.select("#"+(r.db.lookUpDomId(e)||e)).attr("transform","translate("+(u.node(e).x-u.node(e).width/2)+","+(u.node(e).y-u.node(e).height/2)+" )"))})),u.edges().forEach((function(e){void 0!==e&&void 0!==u.edge(e)&&(Ze.debug("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(u.edge(e))),ou.drawEdge(c,u.edge(e),u.edge(e).relation,a,r))}));const m=c.node().getBBox(),g=m.width+2*lu,v=m.height+2*lu;Mi(c,v,g,a.useMaxWidth);const y=`${m.x-lu} ${m.y-lu} ${g} ${v}`;Ze.debug(`viewBox ${y}`),c.attr("viewBox",y)},hu={draw:du},pu=(e,t,n,r)=>{t.forEach((t=>{_u[t](e,n,r)}))},fu=(e,t,n)=>{Ze.trace("Making markers for ",n),e.append("defs").append("marker").attr("id",t+"-extensionStart").attr("class","marker extension "+t).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},mu=(e,t)=>{e.append("defs").append("marker").attr("id",t+"-compositionStart").attr("class","marker composition "+t).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},gu=(e,t)=>{e.append("defs").append("marker").attr("id",t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},vu=(e,t)=>{e.append("defs").append("marker").attr("id",t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},yu=(e,t)=>{e.append("defs").append("marker").attr("id",t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","white").attr("cx",6).attr("cy",7).attr("r",6)},bu=(e,t)=>{e.append("marker").attr("id",t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 12 20").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},wu=(e,t)=>{e.append("marker").attr("id",t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},xu=(e,t)=>{e.append("marker").attr("id",t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},ku=(e,t)=>{e.append("defs").append("marker").attr("id",t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},_u={extension:fu,composition:mu,aggregation:gu,dependency:vu,lollipop:yu,point:bu,circle:wu,cross:xu,barb:ku},Cu=pu;function Eu(e,t){t&&e.attr("style",t)}function Ru(e){const t=(0,s.Ltv)(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),n=t.append("xhtml:div"),r=e.label,a=e.isNode?"nodeLabel":"edgeLabel";return n.html('<span class="'+a+'" '+(e.labelStyle?'style="'+e.labelStyle+'"':"")+">"+r+"</span>"),Eu(n,e.labelStyle),n.style("display","inline-block"),n.style("white-space","nowrap"),n.attr("xmlns","http://www.w3.org/1999/xhtml"),t.node()}const Su=(e,t,n,r)=>{let a=e||"";if("object"===typeof a&&(a=a[0]),ht(wi().flowchart.htmlLabels)){a=a.replace(/\\n|\n/g,"<br />"),Ze.info("vertexText"+a);const e={isNode:r,label:n_(a).replace(/fa[blrs]?:fa-[\w-]+/g,(e=>`<i class='${e.replace(":"," ")}'></i>`)),labelStyle:t.replace("fill:","color:")};let n=Ru(e);return n}{const e=document.createElementNS("http://www.w3.org/2000/svg","text");e.setAttribute("style",t.replace("color:","fill:"));let r=[];r="string"===typeof a?a.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(a)?a:[];for(const t of r){const r=document.createElementNS("http://www.w3.org/2000/svg","tspan");r.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),r.setAttribute("dy","1em"),r.setAttribute("x","0"),n?r.setAttribute("class","title-row"):r.setAttribute("class","row"),r.textContent=t.trim(),e.appendChild(r)}return e}},Au=Su,Tu=(e,t,n,r)=>{let a;a=n||"node default";const i=e.insert("g").attr("class",a).attr("id",t.domId||t.id),o=i.insert("g").attr("class","label").attr("style",t.labelStyle);let l;l=void 0===t.labelText?"":"string"===typeof t.labelText?t.labelText:t.labelText[0];const c=o.node().appendChild(Au(at(n_(l),wi()),t.labelStyle,!1,r));let u=c.getBBox();if(ht(wi().flowchart.htmlLabels)){const e=c.children[0],t=(0,s.Ltv)(c);u=e.getBoundingClientRect(),t.attr("width",u.width),t.attr("height",u.height)}const d=t.padding/2;return o.attr("transform","translate("+-u.width/2+", "+-u.height/2+")"),{shapeSvg:i,bbox:u,halfPadding:d,label:o}},Mu=(e,t)=>{const n=t.node().getBBox();e.width=n.width,e.height=n.height};function Lu(e,t,n,r){return e.insert("polygon",":first-child").attr("points",r.map((function(e){return e.x+","+e.y})).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+n/2+")")}let Ou={},Iu={},Nu={};const Bu=()=>{Iu={},Nu={},Ou={}},Du=(e,t)=>(Ze.trace("In isDecendant",t," ",e," = ",Iu[t].includes(e)),!!Iu[t].includes(e)),Fu=(e,t)=>(Ze.info("Decendants of ",t," is ",Iu[t]),Ze.info("Edge is ",e),e.v!==t&&(e.w!==t&&(Iu[t]?Iu[t].includes(e.v)||Du(e.v,t)||Du(e.w,t)||Iu[t].includes(e.w):(Ze.debug("Tilt, ",t,",not in decendants"),!1)))),$u=(e,t,n,r)=>{Ze.warn("Copying children of ",e,"root",r,"data",t.node(e),r);const a=t.children(e)||[];e!==r&&a.push(e),Ze.warn("Copying (nodes) clusterId",e,"nodes",a),a.forEach((a=>{if(t.children(a).length>0)$u(a,t,n,r);else{const i=t.node(a);Ze.info("cp ",a," to ",r," with parent ",e),n.setNode(a,i),r!==t.parent(a)&&(Ze.warn("Setting parent",a,t.parent(a)),n.setParent(a,t.parent(a))),e!==r&&a!==e?(Ze.debug("Setting parent",a,e),n.setParent(a,e)):(Ze.info("In copy ",e,"root",r,"data",t.node(e),r),Ze.debug("Not Setting parent for node=",a,"cluster!==rootId",e!==r,"node!==clusterId",a!==e));const o=t.edges(a);Ze.debug("Copying Edges",o),o.forEach((a=>{Ze.info("Edge",a);const i=t.edge(a.v,a.w,a.name);Ze.info("Edge data",i,r);try{Fu(a,r)?(Ze.info("Copying as ",a.v,a.w,i,a.name),n.setEdge(a.v,a.w,i,a.name),Ze.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):Ze.info("Skipping copy of edge ",a.v,"--\x3e",a.w," rootId: ",r," clusterId:",e)}catch(o){Ze.error(o)}}))}Ze.debug("Removing node",a),t.removeNode(a)}))},Pu=(e,t)=>{const n=t.children(e);let r=[...n];for(const a of n)Nu[a]=e,r=[...r,...Pu(a,t)];return r},zu=(e,t)=>{Ze.trace("Searching",e);const n=t.children(e);if(Ze.trace("Searching children of id ",e,n),n.length<1)return Ze.trace("This is a valid node",e),e;for(const r of n){const n=zu(r,t);if(n)return Ze.trace("Found replacement for",e," => ",n),n}},Wu=e=>Ou[e]&&Ou[e].externalConnections&&Ou[e]?Ou[e].id:e,ju=(e,t)=>{!e||t>10?Ze.debug("Opting out, no graph "):(Ze.debug("Opting in, graph "),e.nodes().forEach((function(t){const n=e.children(t);n.length>0&&(Ze.warn("Cluster identified",t," Replacement id in edges: ",zu(t,e)),Iu[t]=Pu(t,e),Ou[t]={id:zu(t,e),clusterData:e.node(t)})})),e.nodes().forEach((function(t){const n=e.children(t),r=e.edges();n.length>0?(Ze.debug("Cluster identified",t,Iu),r.forEach((e=>{if(e.v!==t&&e.w!==t){const n=Du(e.v,t),r=Du(e.w,t);n^r&&(Ze.warn("Edge: ",e," leaves cluster ",t),Ze.warn("Decendants of XXX ",t,": ",Iu[t]),Ou[t].externalConnections=!0)}}))):Ze.debug("Not a cluster ",t,Iu)})),e.edges().forEach((function(t){const n=e.edge(t);Ze.warn("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t)),Ze.warn("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(e.edge(t)));let r=t.v,a=t.w;if(Ze.warn("Fix XXX",Ou,"ids:",t.v,t.w,"Translating: ",Ou[t.v]," --- ",Ou[t.w]),Ou[t.v]&&Ou[t.w]&&Ou[t.v]===Ou[t.w]){Ze.warn("Fixing and trixing link to self - removing XXX",t.v,t.w,t.name),Ze.warn("Fixing and trixing - removing XXX",t.v,t.w,t.name),r=Wu(t.v),a=Wu(t.w),e.removeEdge(t.v,t.w,t.name);const i=t.w+"---"+t.v;e.setNode(i,{domId:i,id:i,labelStyle:"",labelText:n.label,padding:0,shape:"labelRect",style:""});const o=JSON.parse(JSON.stringify(n)),s=JSON.parse(JSON.stringify(n));o.label="",o.arrowTypeEnd="none",s.label="",o.fromCluster=t.v,s.toCluster=t.v,e.setEdge(r,i,o,t.name+"-cyclic-special"),e.setEdge(i,a,s,t.name+"-cyclic-special")}else(Ou[t.v]||Ou[t.w])&&(Ze.warn("Fixing and trixing - removing XXX",t.v,t.w,t.name),r=Wu(t.v),a=Wu(t.w),e.removeEdge(t.v,t.w,t.name),r!==t.v&&(n.fromCluster=t.v),a!==t.w&&(n.toCluster=t.w),Ze.warn("Fix Replacing with XXX",r,a,t.name),e.setEdge(r,a,n,t.name))})),Ze.warn("Adjusted Graph",xe.M(e)),Vu(e,0),Ze.trace(Ou))},Vu=(e,t)=>{if(Ze.warn("extractor - ",t,xe.M(e),e.children("D")),t>10)return void Ze.error("Bailing out");let n=e.nodes(),r=!1;for(const a of n){const t=e.children(a);r=r||t.length>0}if(r){Ze.debug("Nodes = ",n,t);for(const r of n)if(Ze.debug("Extracting node",r,Ou,Ou[r]&&!Ou[r].externalConnections,!e.parent(r),e.node(r),e.children("D")," Depth ",t),Ou[r])if(!Ou[r].externalConnections&&e.children(r)&&e.children(r).length>0){Ze.warn("Cluster without external connections, without a parent and with children",r,t);const n=e.graph();let a="TB"===n.rankdir?"LR":"TB";Ou[r]&&Ou[r].clusterData&&Ou[r].clusterData.dir&&(a=Ou[r].clusterData.dir,Ze.warn("Fixing dir",Ou[r].clusterData.dir,a));const i=new we.T({multigraph:!0,compound:!0}).setGraph({rankdir:a,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}}));Ze.warn("Old graph before copy",xe.M(e)),$u(r,e,i,r),e.setNode(r,{clusterNode:!0,id:r,clusterData:Ou[r].clusterData,labelText:Ou[r].labelText,graph:i}),Ze.warn("New graph after copy node: (",r,")",xe.M(i)),Ze.debug("Old graph after copy",xe.M(e))}else Ze.warn("Cluster ** ",r," **not meeting the criteria !externalConnections:",!Ou[r].externalConnections," no parent: ",!e.parent(r)," children ",e.children(r)&&e.children(r).length>0,e.children("D"),t),Ze.debug(Ou);else Ze.debug("Not a cluster",r,t);n=e.nodes(),Ze.warn("New list of nodes",n);for(const r of n){const n=e.node(r);Ze.warn(" Now next level",r,n),n.clusterNode&&Vu(n.graph,t+1)}}else Ze.debug("Done, no node has children",e.nodes())},Uu=(e,t)=>{if(0===t.length)return[];let n=Object.assign(t);return t.forEach((t=>{const r=e.children(t),a=Uu(e,r);n=[...n,...a]})),n},Ku=e=>Uu(e,e.children());function Hu(e,t){return e.intersect(t)}function qu(e,t,n,r){var a=e.x,i=e.y,o=a-r.x,s=i-r.y,l=Math.sqrt(t*t*s*s+n*n*o*o),c=Math.abs(t*n*o/l);r.x<a&&(c=-c);var u=Math.abs(t*n*s/l);return r.y<i&&(u=-u),{x:a+c,y:i+u}}function Gu(e,t,n){return qu(e,t,t,n)}function Xu(e,t,n,r){var a,i,o,s,l,c,u,d,h,p,f,m,g,v,y;if(a=t.y-e.y,o=e.x-t.x,l=t.x*e.y-e.x*t.y,h=a*n.x+o*n.y+l,p=a*r.x+o*r.y+l,(0===h||0===p||!Yu(h,p))&&(i=r.y-n.y,s=n.x-r.x,c=r.x*n.y-n.x*r.y,u=i*e.x+s*e.y+c,d=i*t.x+s*t.y+c,(0===u||0===d||!Yu(u,d))&&(f=a*s-i*o,0!==f)))return m=Math.abs(f/2),g=o*c-s*l,v=g<0?(g-m)/f:(g+m)/f,g=i*l-a*c,y=g<0?(g-m)/f:(g+m)/f,{x:v,y:y}}function Yu(e,t){return e*t>0}function Qu(e,t,n){var r=e.x,a=e.y,i=[],o=Number.POSITIVE_INFINITY,s=Number.POSITIVE_INFINITY;"function"===typeof t.forEach?t.forEach((function(e){o=Math.min(o,e.x),s=Math.min(s,e.y)})):(o=Math.min(o,t.x),s=Math.min(s,t.y));for(var l=r-e.width/2-o,c=a-e.height/2-s,u=0;u<t.length;u++){var d=t[u],h=t[u<t.length-1?u+1:0],p=Xu(e,n,{x:l+d.x,y:c+d.y},{x:l+h.x,y:c+h.y});p&&i.push(p)}return i.length?(i.length>1&&i.sort((function(e,t){var r=e.x-n.x,a=e.y-n.y,i=Math.sqrt(r*r+a*a),o=t.x-n.x,s=t.y-n.y,l=Math.sqrt(o*o+s*s);return i<l?-1:i===l?0:1})),i[0]):e}const Zu=(e,t)=>{var n,r,a=e.x,i=e.y,o=t.x-a,s=t.y-i,l=e.width/2,c=e.height/2;return Math.abs(s)*l>Math.abs(o)*c?(s<0&&(c=-c),n=0===s?0:c*o/s,r=c):(o<0&&(l=-l),n=l,r=0===o?0:l*s/o),{x:a+n,y:i+r}},Ju=Zu,ed={node:Hu,circle:Gu,ellipse:qu,polygon:Qu,rect:Ju},td=(e,t)=>{const{shapeSvg:n,bbox:r,halfPadding:a}=Tu(e,t,"node "+t.classes,!0);Ze.info("Classes = ",t.classes);const i=n.insert("rect",":first-child");return i.attr("rx",t.rx).attr("ry",t.ry).attr("x",-r.width/2-a).attr("y",-r.height/2-a).attr("width",r.width+t.padding).attr("height",r.height+t.padding),Mu(t,i),t.intersect=function(e){return ed.rect(t,e)},n},nd=td,rd=(e,t)=>{const{shapeSvg:n,bbox:r}=Tu(e,t,void 0,!0),a=r.width+t.padding,i=r.height+t.padding,o=a+i,s=[{x:o/2,y:0},{x:o,y:-o/2},{x:o/2,y:-o},{x:0,y:-o/2}];Ze.info("Question main (Circle)");const l=Lu(n,o,o,s);return l.attr("style",t.style),Mu(t,l),t.intersect=function(e){return Ze.warn("Intersect called"),ed.polygon(t,s,e)},n},ad=(e,t)=>{const n=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),r=28,a=[{x:0,y:r/2},{x:r/2,y:0},{x:0,y:-r/2},{x:-r/2,y:0}],i=n.insert("polygon",":first-child").attr("points",a.map((function(e){return e.x+","+e.y})).join(" "));return i.attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),t.width=28,t.height=28,t.intersect=function(e){return ed.circle(t,14,e)},n},id=(e,t)=>{const{shapeSvg:n,bbox:r}=Tu(e,t,void 0,!0),a=4,i=r.height+t.padding,o=i/a,s=r.width+2*o+t.padding,l=[{x:o,y:0},{x:s-o,y:0},{x:s,y:-i/2},{x:s-o,y:-i},{x:o,y:-i},{x:0,y:-i/2}],c=Lu(n,s,i,l);return c.attr("style",t.style),Mu(t,c),t.intersect=function(e){return ed.polygon(t,l,e)},n},od=(e,t)=>{const{shapeSvg:n,bbox:r}=Tu(e,t,void 0,!0),a=r.width+t.padding,i=r.height+t.padding,o=[{x:-i/2,y:0},{x:a,y:0},{x:a,y:-i},{x:-i/2,y:-i},{x:0,y:-i/2}],s=Lu(n,a,i,o);return s.attr("style",t.style),t.width=a+i,t.height=i,t.intersect=function(e){return ed.polygon(t,o,e)},n},sd=(e,t)=>{const{shapeSvg:n,bbox:r}=Tu(e,t,void 0,!0),a=r.width+t.padding,i=r.height+t.padding,o=[{x:-2*i/6,y:0},{x:a-i/6,y:0},{x:a+2*i/6,y:-i},{x:i/6,y:-i}],s=Lu(n,a,i,o);return s.attr("style",t.style),Mu(t,s),t.intersect=function(e){return ed.polygon(t,o,e)},n},ld=(e,t)=>{const{shapeSvg:n,bbox:r}=Tu(e,t,void 0,!0),a=r.width+t.padding,i=r.height+t.padding,o=[{x:2*i/6,y:0},{x:a+i/6,y:0},{x:a-2*i/6,y:-i},{x:-i/6,y:-i}],s=Lu(n,a,i,o);return s.attr("style",t.style),Mu(t,s),t.intersect=function(e){return ed.polygon(t,o,e)},n},cd=(e,t)=>{const{shapeSvg:n,bbox:r}=Tu(e,t,void 0,!0),a=r.width+t.padding,i=r.height+t.padding,o=[{x:-2*i/6,y:0},{x:a+2*i/6,y:0},{x:a-i/6,y:-i},{x:i/6,y:-i}],s=Lu(n,a,i,o);return s.attr("style",t.style),Mu(t,s),t.intersect=function(e){return ed.polygon(t,o,e)},n},ud=(e,t)=>{const{shapeSvg:n,bbox:r}=Tu(e,t,void 0,!0),a=r.width+t.padding,i=r.height+t.padding,o=[{x:i/6,y:0},{x:a-i/6,y:0},{x:a+2*i/6,y:-i},{x:-2*i/6,y:-i}],s=Lu(n,a,i,o);return s.attr("style",t.style),Mu(t,s),t.intersect=function(e){return ed.polygon(t,o,e)},n},dd=(e,t)=>{const{shapeSvg:n,bbox:r}=Tu(e,t,void 0,!0),a=r.width+t.padding,i=r.height+t.padding,o=[{x:0,y:0},{x:a+i/2,y:0},{x:a,y:-i/2},{x:a+i/2,y:-i},{x:0,y:-i}],s=Lu(n,a,i,o);return s.attr("style",t.style),Mu(t,s),t.intersect=function(e){return ed.polygon(t,o,e)},n},hd=(e,t)=>{const{shapeSvg:n,bbox:r}=Tu(e,t,void 0,!0),a=r.width+t.padding,i=a/2,o=i/(2.5+a/50),s=r.height+o+t.padding,l="M 0,"+o+" a "+i+","+o+" 0,0,0 "+a+" 0 a "+i+","+o+" 0,0,0 "+-a+" 0 l 0,"+s+" a "+i+","+o+" 0,0,0 "+a+" 0 l 0,"+-s,c=n.attr("label-offset-y",o).insert("path",":first-child").attr("style",t.style).attr("d",l).attr("transform","translate("+-a/2+","+-(s/2+o)+")");return Mu(t,c),t.intersect=function(e){const n=ed.rect(t,e),r=n.x-t.x;if(0!=i&&(Math.abs(r)<t.width/2||Math.abs(r)==t.width/2&&Math.abs(n.y-t.y)>t.height/2-o)){let a=o*o*(1-r*r/(i*i));0!=a&&(a=Math.sqrt(a)),a=o-a,e.y-t.y>0&&(a=-a),n.y+=a}return n},n},pd=(e,t)=>{const{shapeSvg:n,bbox:r,halfPadding:a}=Tu(e,t,"node "+t.classes,!0);Ze.trace("Classes = ",t.classes);const i=n.insert("rect",":first-child"),o=r.width+t.padding,s=r.height+t.padding;if(i.attr("class","basic label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",-r.width/2-a).attr("y",-r.height/2-a).attr("width",o).attr("height",s),t.props){const e=new Set(Object.keys(t.props));t.props.borders&&(md(i,t.props.borders,o,s),e.delete("borders")),e.forEach((e=>{Ze.warn(`Unknown node property ${e}`)}))}return Mu(t,i),t.intersect=function(e){return ed.rect(t,e)},n},fd=(e,t)=>{const{shapeSvg:n}=Tu(e,t,"label",!0);Ze.trace("Classes = ",t.classes);const r=n.insert("rect",":first-child"),a=0,i=0;if(r.attr("width",a).attr("height",i),n.attr("class","label edgeLabel"),t.props){const e=new Set(Object.keys(t.props));t.props.borders&&(md(r,t.props.borders,a,i),e.delete("borders")),e.forEach((e=>{Ze.warn(`Unknown node property ${e}`)}))}return Mu(t,r),t.intersect=function(e){return ed.rect(t,e)},n};function md(e,t,n,r){const a=[],i=e=>{a.push(e,0)},o=e=>{a.push(0,e)};t.includes("t")?(Ze.debug("add top border"),i(n)):o(n),t.includes("r")?(Ze.debug("add right border"),i(r)):o(r),t.includes("b")?(Ze.debug("add bottom border"),i(n)):o(n),t.includes("l")?(Ze.debug("add left border"),i(r)):o(r),e.attr("stroke-dasharray",a.join(" "))}const gd=(e,t)=>{let n;n=t.classes?"node "+t.classes:"node default";const r=e.insert("g").attr("class",n).attr("id",t.domId||t.id),a=r.insert("rect",":first-child"),i=r.insert("line"),o=r.insert("g").attr("class","label"),l=t.labelText.flat?t.labelText.flat():t.labelText;let c="";c="object"===typeof l?l[0]:l,Ze.info("Label text abc79",c,l,"object"===typeof l);const u=o.node().appendChild(Au(c,t.labelStyle,!0,!0));let d={width:0,height:0};if(ht(wi().flowchart.htmlLabels)){const e=u.children[0],t=(0,s.Ltv)(u);d=e.getBoundingClientRect(),t.attr("width",d.width),t.attr("height",d.height)}Ze.info("Text 2",l);const h=l.slice(1,l.length);let p=u.getBBox();const f=o.node().appendChild(Au(h.join?h.join("<br/>"):h,t.labelStyle,!0,!0));if(ht(wi().flowchart.htmlLabels)){const e=f.children[0],t=(0,s.Ltv)(f);d=e.getBoundingClientRect(),t.attr("width",d.width),t.attr("height",d.height)}const m=t.padding/2;return(0,s.Ltv)(f).attr("transform","translate( "+(d.width>p.width?0:(p.width-d.width)/2)+", "+(p.height+m+5)+")"),(0,s.Ltv)(u).attr("transform","translate( "+(d.width<p.width?0:-(p.width-d.width)/2)+", 0)"),d=o.node().getBBox(),o.attr("transform","translate("+-d.width/2+", "+(-d.height/2-m+3)+")"),a.attr("class","outer title-state").attr("x",-d.width/2-m).attr("y",-d.height/2-m).attr("width",d.width+t.padding).attr("height",d.height+t.padding),i.attr("class","divider").attr("x1",-d.width/2-m).attr("x2",d.width/2+m).attr("y1",-d.height/2-m+p.height+m).attr("y2",-d.height/2-m+p.height+m),Mu(t,a),t.intersect=function(e){return ed.rect(t,e)},r},vd=(e,t)=>{const{shapeSvg:n,bbox:r}=Tu(e,t,void 0,!0),a=r.height+t.padding,i=r.width+a/4+t.padding,o=n.insert("rect",":first-child").attr("style",t.style).attr("rx",a/2).attr("ry",a/2).attr("x",-i/2).attr("y",-a/2).attr("width",i).attr("height",a);return Mu(t,o),t.intersect=function(e){return ed.rect(t,e)},n},yd=(e,t)=>{const{shapeSvg:n,bbox:r,halfPadding:a}=Tu(e,t,void 0,!0),i=n.insert("circle",":first-child");return i.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",r.width/2+a).attr("width",r.width+t.padding).attr("height",r.height+t.padding),Ze.info("Circle main"),Mu(t,i),t.intersect=function(e){return Ze.info("Circle intersect",t,r.width/2+a,e),ed.circle(t,r.width/2+a,e)},n},bd=(e,t)=>{const{shapeSvg:n,bbox:r,halfPadding:a}=Tu(e,t,void 0,!0),i=5,o=n.insert("g",":first-child"),s=o.insert("circle"),l=o.insert("circle");return s.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",r.width/2+a+i).attr("width",r.width+t.padding+2*i).attr("height",r.height+t.padding+2*i),l.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",r.width/2+a).attr("width",r.width+t.padding).attr("height",r.height+t.padding),Ze.info("DoubleCircle main"),Mu(t,s),t.intersect=function(e){return Ze.info("DoubleCircle intersect",t,r.width/2+a+i,e),ed.circle(t,r.width/2+a+i,e)},n},wd=(e,t)=>{const{shapeSvg:n,bbox:r}=Tu(e,t,void 0,!0),a=r.width+t.padding,i=r.height+t.padding,o=[{x:0,y:0},{x:a,y:0},{x:a,y:-i},{x:0,y:-i},{x:0,y:0},{x:-8,y:0},{x:a+8,y:0},{x:a+8,y:-i},{x:-8,y:-i},{x:-8,y:0}],s=Lu(n,a,i,o);return s.attr("style",t.style),Mu(t,s),t.intersect=function(e){return ed.polygon(t,o,e)},n},xd=(e,t)=>{const n=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),r=n.insert("circle",":first-child");return r.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),Mu(t,r),t.intersect=function(e){return ed.circle(t,7,e)},n},kd=(e,t,n)=>{const r=e.insert("g").attr("class","node default").attr("id",t.domId||t.id);let a=70,i=10;"LR"===n&&(a=10,i=70);const o=r.append("rect").attr("x",-1*a/2).attr("y",-1*i/2).attr("width",a).attr("height",i).attr("class","fork-join");return Mu(t,o),t.height=t.height+t.padding/2,t.width=t.width+t.padding/2,t.intersect=function(e){return ed.rect(t,e)},r},_d=(e,t)=>{const n=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),r=n.insert("circle",":first-child"),a=n.insert("circle",":first-child");return a.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),r.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),Mu(t,a),t.intersect=function(e){return ed.circle(t,7,e)},n},Cd=(e,t)=>{const n=t.padding/2,r=4,a=8;let i;i=t.classes?"node "+t.classes:"node default";const o=e.insert("g").attr("class",i).attr("id",t.domId||t.id),l=o.insert("rect",":first-child"),c=o.insert("line"),u=o.insert("line");let d=0,h=r;const p=o.insert("g").attr("class","label");let f=0;const m=t.classData.annotations&&t.classData.annotations[0],g=t.classData.annotations[0]?"«"+t.classData.annotations[0]+"»":"",v=p.node().appendChild(Au(g,t.labelStyle,!0,!0));let y=v.getBBox();if(ht(wi().flowchart.htmlLabels)){const e=v.children[0],t=(0,s.Ltv)(v);y=e.getBoundingClientRect(),t.attr("width",y.width),t.attr("height",y.height)}t.classData.annotations[0]&&(h+=y.height+r,d+=y.width);let b=t.classData.id;void 0!==t.classData.type&&""!==t.classData.type&&(wi().flowchart.htmlLabels?b+="&lt;"+t.classData.type+"&gt;":b+="<"+t.classData.type+">");const w=p.node().appendChild(Au(b,t.labelStyle,!0,!0));(0,s.Ltv)(w).attr("class","classTitle");let x=w.getBBox();if(ht(wi().flowchart.htmlLabels)){const e=w.children[0],t=(0,s.Ltv)(w);x=e.getBoundingClientRect(),t.attr("width",x.width),t.attr("height",x.height)}h+=x.height+r,x.width>d&&(d=x.width);const k=[];t.classData.members.forEach((e=>{const n=eu(e);let a=n.displayText;wi().flowchart.htmlLabels&&(a=a.replace(/</g,"&lt;").replace(/>/g,"&gt;"));const i=p.node().appendChild(Au(a,n.cssStyle?n.cssStyle:t.labelStyle,!0,!0));let o=i.getBBox();if(ht(wi().flowchart.htmlLabels)){const e=i.children[0],t=(0,s.Ltv)(i);o=e.getBoundingClientRect(),t.attr("width",o.width),t.attr("height",o.height)}o.width>d&&(d=o.width),h+=o.height+r,k.push(i)})),h+=a;const _=[];if(t.classData.methods.forEach((e=>{const n=eu(e);let a=n.displayText;wi().flowchart.htmlLabels&&(a=a.replace(/</g,"&lt;").replace(/>/g,"&gt;"));const i=p.node().appendChild(Au(a,n.cssStyle?n.cssStyle:t.labelStyle,!0,!0));let o=i.getBBox();if(ht(wi().flowchart.htmlLabels)){const e=i.children[0],t=(0,s.Ltv)(i);o=e.getBoundingClientRect(),t.attr("width",o.width),t.attr("height",o.height)}o.width>d&&(d=o.width),h+=o.height+r,_.push(i)})),h+=a,m){let e=(d-y.width)/2;(0,s.Ltv)(v).attr("transform","translate( "+(-1*d/2+e)+", "+-1*h/2+")"),f=y.height+r}let C=(d-x.width)/2;return(0,s.Ltv)(w).attr("transform","translate( "+(-1*d/2+C)+", "+(-1*h/2+f)+")"),f+=x.height+r,c.attr("class","divider").attr("x1",-d/2-n).attr("x2",d/2+n).attr("y1",-h/2-n+a+f).attr("y2",-h/2-n+a+f),f+=a,k.forEach((e=>{(0,s.Ltv)(e).attr("transform","translate( "+-d/2+", "+(-1*h/2+f+a/2)+")"),f+=x.height+r})),f+=a,u.attr("class","divider").attr("x1",-d/2-n).attr("x2",d/2+n).attr("y1",-h/2-n+a+f).attr("y2",-h/2-n+a+f),f+=a,_.forEach((e=>{(0,s.Ltv)(e).attr("transform","translate( "+-d/2+", "+(-1*h/2+f)+")"),f+=x.height+r})),l.attr("class","outer title-state").attr("x",-d/2-n).attr("y",-h/2-n).attr("width",d+t.padding).attr("height",h+t.padding),Mu(t,l),t.intersect=function(e){return ed.rect(t,e)},o},Ed={rhombus:rd,question:rd,rect:pd,labelRect:fd,rectWithTitle:gd,choice:ad,circle:yd,doublecircle:bd,stadium:vd,hexagon:id,rect_left_inv_arrow:od,lean_right:sd,lean_left:ld,trapezoid:cd,inv_trapezoid:ud,rect_right_inv_arrow:dd,cylinder:hd,start:xd,end:_d,note:nd,subroutine:wd,fork:kd,join:kd,class_box:Cd};let Rd={};const Sd=(e,t,n)=>{let r,a;if(t.link){let i;"sandbox"===wi().securityLevel?i="_top":t.linkTarget&&(i=t.linkTarget||"_blank"),r=e.insert("svg:a").attr("xlink:href",t.link).attr("target",i),a=Ed[t.shape](r,t,n)}else a=Ed[t.shape](e,t,n),r=a;return t.tooltip&&a.attr("title",t.tooltip),t.class&&a.attr("class","node default "+t.class),Rd[t.id]=r,t.haveCallback&&Rd[t.id].attr("class",Rd[t.id].attr("class")+" clickable"),r},Ad=(e,t)=>{Rd[t.id]=e},Td=()=>{Rd={}},Md=e=>{const t=Rd[e.id];Ze.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");const n=8,r=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+r-e.width/2)+", "+(e.y-e.height/2-n)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),r},Ld=(e,t)=>{Ze.trace("Creating subgraph rect for ",t.id,t);const n=e.insert("g").attr("class","cluster"+(t.class?" "+t.class:"")).attr("id",t.id),r=n.insert("rect",":first-child"),a=n.insert("g").attr("class","cluster-label"),i=a.node().appendChild(Au(t.labelText,t.labelStyle,void 0,!0));let o=i.getBBox();if(ht(wi().flowchart.htmlLabels)){const e=i.children[0],t=(0,s.Ltv)(i);o=e.getBoundingClientRect(),t.attr("width",o.width),t.attr("height",o.height)}const l=0*t.padding,c=l/2,u=t.width<=o.width+l?o.width+l:t.width;t.width<=o.width+l?t.diff=(o.width-t.width)/2-t.padding/2:t.diff=-t.padding/2,Ze.trace("Data ",t,JSON.stringify(t)),r.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-u/2).attr("y",t.y-t.height/2-c).attr("width",u).attr("height",t.height+l),a.attr("transform","translate("+(t.x-o.width/2)+", "+(t.y-t.height/2)+")");const d=r.node().getBBox();return t.width=d.width,t.height=d.height,t.intersect=function(e){return Ju(t,e)},n},Od=(e,t)=>{const n=e.insert("g").attr("class","note-cluster").attr("id",t.id),r=n.insert("rect",":first-child"),a=0*t.padding,i=a/2;r.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-i).attr("y",t.y-t.height/2-i).attr("width",t.width+a).attr("height",t.height+a).attr("fill","none");const o=r.node().getBBox();return t.width=o.width,t.height=o.height,t.intersect=function(e){return Ju(t,e)},n},Id=(e,t)=>{const n=e.insert("g").attr("class",t.classes).attr("id",t.id),r=n.insert("rect",":first-child"),a=n.insert("g").attr("class","cluster-label"),i=n.append("rect"),o=a.node().appendChild(Au(t.labelText,t.labelStyle,void 0,!0));let l=o.getBBox();if(ht(wi().flowchart.htmlLabels)){const e=o.children[0],t=(0,s.Ltv)(o);l=e.getBoundingClientRect(),t.attr("width",l.width),t.attr("height",l.height)}l=o.getBBox();const c=0*t.padding,u=c/2,d=t.width<=l.width+t.padding?l.width+t.padding:t.width;t.width<=l.width+t.padding?t.diff=(l.width+0*t.padding-t.width)/2:t.diff=-t.padding/2,r.attr("class","outer").attr("x",t.x-d/2-u).attr("y",t.y-t.height/2-u).attr("width",d+c).attr("height",t.height+c),i.attr("class","inner").attr("x",t.x-d/2-u).attr("y",t.y-t.height/2-u+l.height-1).attr("width",d+c).attr("height",t.height+c-l.height-3),a.attr("transform","translate("+(t.x-l.width/2)+", "+(t.y-t.height/2-t.padding/3+(ht(wi().flowchart.htmlLabels)?5:3))+")");const h=r.node().getBBox();return t.height=h.height,t.intersect=function(e){return Ju(t,e)},n},Nd=(e,t)=>{const n=e.insert("g").attr("class",t.classes).attr("id",t.id),r=n.insert("rect",":first-child"),a=0*t.padding,i=a/2;r.attr("class","divider").attr("x",t.x-t.width/2-i).attr("y",t.y-t.height/2).attr("width",t.width+a).attr("height",t.height+a);const o=r.node().getBBox();return t.width=o.width,t.height=o.height,t.diff=-t.padding/2,t.intersect=function(e){return Ju(t,e)},n},Bd={rect:Ld,roundedWithTitle:Id,noteGroup:Od,divider:Nd};let Dd={};const Fd=(e,t)=>{Ze.trace("Inserting cluster");const n=t.shape||"rect";Dd[t.id]=Bd[n](e,t)},$d=()=>{Dd={}};let Pd={},zd={};const Wd=()=>{Pd={},zd={}},jd=(e,t)=>{const n=Au(t.label,t.labelStyle),r=e.insert("g").attr("class","edgeLabel"),a=r.insert("g").attr("class","label");a.node().appendChild(n);let i,o=n.getBBox();if(ht(wi().flowchart.htmlLabels)){const e=n.children[0],t=(0,s.Ltv)(n);o=e.getBoundingClientRect(),t.attr("width",o.width),t.attr("height",o.height)}if(a.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),Pd[t.id]=r,t.width=o.width,t.height=o.height,t.startLabelLeft){const n=Au(t.startLabelLeft,t.labelStyle),r=e.insert("g").attr("class","edgeTerminals"),a=r.insert("g").attr("class","inner");i=a.node().appendChild(n);const o=n.getBBox();a.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),zd[t.id]||(zd[t.id]={}),zd[t.id].startLeft=r,Vd(i,t.startLabelLeft)}if(t.startLabelRight){const n=Au(t.startLabelRight,t.labelStyle),r=e.insert("g").attr("class","edgeTerminals"),a=r.insert("g").attr("class","inner");i=r.node().appendChild(n),a.node().appendChild(n);const o=n.getBBox();a.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),zd[t.id]||(zd[t.id]={}),zd[t.id].startRight=r,Vd(i,t.startLabelRight)}if(t.endLabelLeft){const n=Au(t.endLabelLeft,t.labelStyle),r=e.insert("g").attr("class","edgeTerminals"),a=r.insert("g").attr("class","inner");i=a.node().appendChild(n);const o=n.getBBox();a.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),r.node().appendChild(n),zd[t.id]||(zd[t.id]={}),zd[t.id].endLeft=r,Vd(i,t.endLabelLeft)}if(t.endLabelRight){const n=Au(t.endLabelRight,t.labelStyle),r=e.insert("g").attr("class","edgeTerminals"),a=r.insert("g").attr("class","inner");i=a.node().appendChild(n);const o=n.getBBox();a.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),r.node().appendChild(n),zd[t.id]||(zd[t.id]={}),zd[t.id].endRight=r,Vd(i,t.endLabelRight)}return n};function Vd(e,t){wi().flowchart.htmlLabels&&e&&(e.style.width=9*t.length+"px",e.style.height="12px")}const Ud=(e,t)=>{Ze.info("Moving label abc78 ",e.id,e.label,Pd[e.id]);let n=t.updatedPath?t.updatedPath:t.originalPath;if(e.label){const r=Pd[e.id];let a=e.x,i=e.y;if(n){const r=si.calcLabelPosition(n);Ze.info("Moving label "+e.label+" from (",a,",",i,") to (",r.x,",",r.y,") abc78"),t.updatedPath&&(a=r.x,i=r.y)}r.attr("transform","translate("+a+", "+i+")")}if(e.startLabelLeft){const t=zd[e.id].startLeft;let r=e.x,a=e.y;if(n){const t=si.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",n);r=t.x,a=t.y}t.attr("transform","translate("+r+", "+a+")")}if(e.startLabelRight){const t=zd[e.id].startRight;let r=e.x,a=e.y;if(n){const t=si.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",n);r=t.x,a=t.y}t.attr("transform","translate("+r+", "+a+")")}if(e.endLabelLeft){const t=zd[e.id].endLeft;let r=e.x,a=e.y;if(n){const t=si.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",n);r=t.x,a=t.y}t.attr("transform","translate("+r+", "+a+")")}if(e.endLabelRight){const t=zd[e.id].endRight;let r=e.x,a=e.y;if(n){const t=si.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",n);r=t.x,a=t.y}t.attr("transform","translate("+r+", "+a+")")}},Kd=(e,t)=>{const n=e.x,r=e.y,a=Math.abs(t.x-n),i=Math.abs(t.y-r),o=e.width/2,s=e.height/2;return a>=o||i>=s},Hd=(e,t,n)=>{Ze.warn(`intersection calc abc89:\n outsidePoint: ${JSON.stringify(t)}\n insidePoint : ${JSON.stringify(n)}\n node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);const r=e.x,a=e.y,i=Math.abs(r-n.x),o=e.width/2;let s=n.x<t.x?o-i:o+i;const l=e.height/2,c=Math.abs(t.y-n.y),u=Math.abs(t.x-n.x);if(Math.abs(a-t.y)*o>Math.abs(r-t.x)*l){let e=n.y<t.y?t.y-l-a:a-l-t.y;s=u*e/c;const r={x:n.x<t.x?n.x+s:n.x-u+s,y:n.y<t.y?n.y+c-e:n.y-c+e};return 0===s&&(r.x=t.x,r.y=t.y),0===u&&(r.x=t.x),0===c&&(r.y=t.y),Ze.warn(`abc89 topp/bott calc, Q ${c}, q ${e}, R ${u}, r ${s}`,r),r}{s=n.x<t.x?t.x-o-r:r-o-t.x;let e=c*s/u,a=n.x<t.x?n.x+u-s:n.x-u+s,i=n.y<t.y?n.y+e:n.y-e;return Ze.warn(`sides calc abc89, Q ${c}, q ${e}, R ${u}, r ${s}`,{_x:a,_y:i}),0===s&&(a=t.x,i=t.y),0===u&&(a=t.x),0===c&&(i=t.y),{x:a,y:i}}},qd=(e,t)=>{Ze.warn("abc88 cutPathAtIntersect",e,t);let n=[],r=e[0],a=!1;return e.forEach((e=>{if(Ze.info("abc88 checking point",e,t),Kd(t,e)||a)Ze.warn("abc88 outside",e,r),r=e,a||n.push(e);else{const i=Hd(t,r,e);Ze.warn("abc88 inside",e,r,i),Ze.warn("abc88 intersection",i);let o=!1;n.forEach((e=>{o=o||e.x===i.x&&e.y===i.y})),n.some((e=>e.x===i.x&&e.y===i.y))?Ze.warn("abc88 no intersect",i,n):n.push(i),a=!0}})),Ze.warn("abc88 returning points",n),n},Gd=function(e,t,n,r,a,i){let o=n.points,l=!1;const c=i.node(t.v);var u=i.node(t.w);Ze.info("abc88 InsertEdge: ",n),u.intersect&&c.intersect&&(o=o.slice(1,n.points.length-1),o.unshift(c.intersect(o[0])),Ze.info("Last point",o[o.length-1],u,u.intersect(o[o.length-1])),o.push(u.intersect(o[o.length-1]))),n.toCluster&&(Ze.info("to cluster abc88",r[n.toCluster]),o=qd(n.points,r[n.toCluster].node),l=!0),n.fromCluster&&(Ze.info("from cluster abc88",r[n.fromCluster]),o=qd(o.reverse(),r[n.fromCluster].node).reverse(),l=!0);const d=o.filter((e=>!Number.isNaN(e.y)));let h;h=("graph"===a||"flowchart"===a)&&n.curve||s.qrM;const p=(0,s.n8j)().x((function(e){return e.x})).y((function(e){return e.y})).curve(h);let f;switch(n.thickness){case"normal":f="edge-thickness-normal";break;case"thick":f="edge-thickness-thick";break;default:f=""}switch(n.pattern){case"solid":f+=" edge-pattern-solid";break;case"dotted":f+=" edge-pattern-dotted";break;case"dashed":f+=" edge-pattern-dashed";break}const m=e.append("path").attr("d",p(d)).attr("id",n.id).attr("class"," "+f+(n.classes?" "+n.classes:"")).attr("style",n.style);let g="";switch((wi().flowchart.arrowMarkerAbsolute||wi().state.arrowMarkerAbsolute)&&(g=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,g=g.replace(/\(/g,"\\("),g=g.replace(/\)/g,"\\)")),Ze.info("arrowTypeStart",n.arrowTypeStart),Ze.info("arrowTypeEnd",n.arrowTypeEnd),n.arrowTypeStart){case"arrow_cross":m.attr("marker-start","url("+g+"#"+a+"-crossStart)");break;case"arrow_point":m.attr("marker-start","url("+g+"#"+a+"-pointStart)");break;case"arrow_barb":m.attr("marker-start","url("+g+"#"+a+"-barbStart)");break;case"arrow_circle":m.attr("marker-start","url("+g+"#"+a+"-circleStart)");break;case"aggregation":m.attr("marker-start","url("+g+"#"+a+"-aggregationStart)");break;case"extension":m.attr("marker-start","url("+g+"#"+a+"-extensionStart)");break;case"composition":m.attr("marker-start","url("+g+"#"+a+"-compositionStart)");break;case"dependency":m.attr("marker-start","url("+g+"#"+a+"-dependencyStart)");break;case"lollipop":m.attr("marker-start","url("+g+"#"+a+"-lollipopStart)");break}switch(n.arrowTypeEnd){case"arrow_cross":m.attr("marker-end","url("+g+"#"+a+"-crossEnd)");break;case"arrow_point":m.attr("marker-end","url("+g+"#"+a+"-pointEnd)");break;case"arrow_barb":m.attr("marker-end","url("+g+"#"+a+"-barbEnd)");break;case"arrow_circle":m.attr("marker-end","url("+g+"#"+a+"-circleEnd)");break;case"aggregation":m.attr("marker-end","url("+g+"#"+a+"-aggregationEnd)");break;case"extension":m.attr("marker-end","url("+g+"#"+a+"-extensionEnd)");break;case"composition":m.attr("marker-end","url("+g+"#"+a+"-compositionEnd)");break;case"dependency":m.attr("marker-end","url("+g+"#"+a+"-dependencyEnd)");break;case"lollipop":m.attr("marker-end","url("+g+"#"+a+"-lollipopEnd)");break}let v={};return l&&(v.updatedPath=o),v.originalPath=n.points,v},Xd=(e,t,n,r)=>{Ze.info("Graph in recursive render: XXX",xe.M(t),r);const a=t.graph().rankdir;Ze.trace("Dir in recursive render - dir:",a);const i=e.insert("g").attr("class","root");t.nodes()?Ze.info("Recursive render XXX",t.nodes()):Ze.info("No nodes found for",t),t.edges().length>0&&Ze.trace("Recursive edges",t.edge(t.edges()[0]));const o=i.insert("g").attr("class","clusters"),s=i.insert("g").attr("class","edgePaths"),l=i.insert("g").attr("class","edgeLabels"),c=i.insert("g").attr("class","nodes");t.nodes().forEach((function(e){const i=t.node(e);if(void 0!==r){const n=JSON.parse(JSON.stringify(r.clusterData));Ze.info("Setting data for cluster XXX (",e,") ",n,r),t.setNode(r.id,n),t.parent(e)||(Ze.trace("Setting parent",e,r.id),t.setParent(e,r.id,n))}if(Ze.info("(Insert) Node XXX"+e+": "+JSON.stringify(t.node(e))),i&&i.clusterNode){Ze.info("Cluster identified",e,i.width,t.node(e));const r=Xd(c,i.graph,n,t.node(e)),a=r.elem;Mu(i,a),i.diff=r.diff||0,Ze.info("Node bounds (abc123)",e,i,i.width,i.x,i.y),Ad(a,i),Ze.warn("Recursive render complete ",a,i)}else t.children(e).length>0?(Ze.info("Cluster - the non recursive path XXX",e,i.id,i,t),Ze.info(zu(i.id,t)),Ou[i.id]={id:zu(i.id,t),node:i}):(Ze.info("Node - the non recursive path",e,i.id,i),Sd(c,t.node(e),a))})),t.edges().forEach((function(e){const n=t.edge(e.v,e.w,e.name);Ze.info("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(e)),Ze.info("Edge "+e.v+" -> "+e.w+": ",e," ",JSON.stringify(t.edge(e))),Ze.info("Fix",Ou,"ids:",e.v,e.w,"Translateing: ",Ou[e.v],Ou[e.w]),jd(l,n)})),t.edges().forEach((function(e){Ze.info("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(e))})),Ze.info("#############################################"),Ze.info("### Layout ###"),Ze.info("#############################################"),Ze.info(t),(0,be.Zp)(t),Ze.info("Graph after layout:",xe.M(t));let u=0;return Ku(t).forEach((function(e){const n=t.node(e);Ze.info("Position "+e+": "+JSON.stringify(t.node(e))),Ze.info("Position "+e+": ("+n.x,","+n.y,") width: ",n.width," height: ",n.height),n&&n.clusterNode?Md(n):t.children(e).length>0?(Fd(o,n),Ou[n.id].node=n):Md(n)})),t.edges().forEach((function(e){const r=t.edge(e);Ze.info("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(r),r);const a=Gd(s,e,r,Ou,n,t);Ud(r,a)})),t.nodes().forEach((function(e){const n=t.node(e);Ze.info(e,n.type,n.diff),"group"===n.type&&(u=n.diff)})),{elem:i,diff:u}},Yd=(e,t,n,r,a)=>{Cu(e,n,r,a),Td(),Wd(),$d(),Bu(),Ze.warn("Graph at first:",xe.M(t)),ju(t),Ze.warn("Graph after:",xe.M(t)),Xd(e,t,r)},Qd=e=>ft.sanitizeText(e,wi());let Zd={dividerMargin:10,padding:5,textHeight:10};const Jd=function(e,t,n,r){const a=Object.keys(e);Ze.info("keys:",a),Ze.info(e),a.forEach((function(n){const a=e[n];let i="";a.cssClasses.length>0&&(i=i+" "+a.cssClasses.join(" "));const o={labelStyle:""};let s=void 0!==a.text?a.text:a.id,l=0,c="";switch(a.type){case"class":c="class_box";break;default:c="class_box"}t.setNode(a.id,{labelStyle:o.labelStyle,shape:c,labelText:Qd(s),classData:a,rx:l,ry:l,class:i,style:o.style,id:a.id,domId:a.domId,tooltip:r.db.getTooltip(a.id)||"",haveCallback:a.haveCallback,link:a.link,width:"group"===a.type?500:void 0,type:a.type,padding:wi().flowchart.padding}),Ze.info("setNode",{labelStyle:o.labelStyle,shape:c,labelText:s,rx:l,ry:l,class:i,style:o.style,id:a.id,width:"group"===a.type?500:void 0,type:a.type,padding:wi().flowchart.padding})}))},eh=function(e,t,n,r){Ze.info(e),e.forEach((function(e,a){const i=e;let o="";const l={labelStyle:"",style:""};let c=i.text,u=0,d="note";if(t.setNode(i.id,{labelStyle:l.labelStyle,shape:d,labelText:Qd(c),noteData:i,rx:u,ry:u,class:o,style:l.style,id:i.id,domId:i.id,tooltip:"",type:"note",padding:wi().flowchart.padding}),Ze.info("setNode",{labelStyle:l.labelStyle,shape:d,labelText:c,rx:u,ry:u,style:l.style,id:i.id,type:"note",padding:wi().flowchart.padding}),!i.class||!(i.class in r))return;const h=n+a,p={classes:"relation",pattern:"dotted"};p.id=`edgeNote${h}`,p.arrowhead="none",Ze.info(`Note edge: ${JSON.stringify(p)}, ${JSON.stringify(i)}`),p.startLabelRight="",p.endLabelLeft="",p.arrowTypeStart="none",p.arrowTypeEnd="none";let f="fill:none",m="";p.style=f,p.labelStyle=m,p.curve=Oa(Zd.curve,s.lUB),t.setEdge(i.id,i.class,p,h)}))},th=function(e,t){const n=wi().flowchart;let r=0;e.forEach((function(a){r++;const i={classes:"relation"};i.pattern=1==a.relation.lineType?"dashed":"solid",i.id="id"+r,"arrow_open"===a.type?i.arrowhead="none":i.arrowhead="normal",Ze.info(i,a),i.startLabelRight="none"===a.relationTitle1?"":a.relationTitle1,i.endLabelLeft="none"===a.relationTitle2?"":a.relationTitle2,i.arrowTypeStart=ah(a.relation.type1),i.arrowTypeEnd=ah(a.relation.type2);let o="",l="";if(void 0!==a.style){const e=za(a.style);o=e.style,l=e.labelStyle}else o="fill:none";i.style=o,i.labelStyle=l,void 0!==a.interpolate?i.curve=Oa(a.interpolate,s.lUB):void 0!==e.defaultInterpolate?i.curve=Oa(e.defaultInterpolate,s.lUB):i.curve=Oa(n.curve,s.lUB),a.text=a.title,void 0===a.text?void 0!==a.style&&(i.arrowheadStyle="fill: #333"):(i.arrowheadStyle="fill: #333",i.labelpos="c",wi().flowchart.htmlLabels?(i.labelType="html",i.label='<span class="edgeLabel">'+a.text+"</span>"):(i.labelType="text",i.label=a.text.replace(ft.lineBreakRegex,"\n"),void 0===a.style&&(i.style=i.style||"stroke: #333; stroke-width: 1.5px;fill:none"),i.labelStyle=i.labelStyle.replace("color:","fill:"))),t.setEdge(a.id1,a.id2,i,r)}))},nh=function(e){const t=Object.keys(e);t.forEach((function(t){Zd[t]=e[t]}))},rh=function(e,t,n,r){Ze.info("Drawing class - ",t);const a=wi().flowchart,i=wi().securityLevel;Ze.info("config:",a);const o=a.nodeSpacing||50,l=a.rankSpacing||50,c=new we.T({multigraph:!0,compound:!0}).setGraph({rankdir:r.db.getDirection(),nodesep:o,ranksep:l,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}})),u=r.db.getClasses(),d=r.db.getRelations(),h=r.db.getNotes();let p;Ze.info(d),Jd(u,c,t,r),th(d,c),eh(h,c,d.length+1,u),"sandbox"===i&&(p=(0,s.Ltv)("#i"+t));const f="sandbox"===i?(0,s.Ltv)(p.nodes()[0].contentDocument.body):(0,s.Ltv)("body"),m=f.select(`[id="${t}"]`),g=f.select("#"+t+" g");if(Yd(g,c,["aggregation","extension","composition","dependency","lollipop"],"classDiagram",t),si.insertTitle(m,"classTitleText",a.titleTopMargin,r.db.getDiagramTitle()),Li(c,m,a.diagramPadding,a.useMaxWidth),!a.htmlLabels){const e="sandbox"===i?p.nodes()[0].contentDocument:document,n=e.querySelectorAll('[id="'+t+'"] .edgeLabel .label');for(const t of n){const n=t.getBBox(),r=e.createElementNS("http://www.w3.org/2000/svg","rect");r.setAttribute("rx",0),r.setAttribute("ry",0),r.setAttribute("width",n.width),r.setAttribute("height",n.height),t.insertBefore(r,t.firstChild)}}};function ah(e){let t;switch(e){case 0:t="aggregation";break;case 1:t="extension";break;case 2:t="composition";break;case 3:t="dependency";break;case 4:t="lollipop";break;default:t="none"}return t}const ih={setConf:nh,draw:rh};var oh=function(){var e=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},t=[1,2],n=[1,5],r=[6,9,11,23,25,27,29,30,31,51],a=[1,17],i=[1,18],o=[1,19],s=[1,20],l=[1,21],c=[1,22],u=[1,25],d=[1,30],h=[1,31],p=[1,32],f=[1,33],m=[6,9,11,15,20,23,25,27,29,30,31,44,45,46,47,51],g=[1,45],v=[30,31,48,49],y=[4,6,9,11,23,25,27,29,30,31,51],b=[44,45,46,47],w=[22,37],x=[1,65],k=[1,64],_=[22,37,39,41],C={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,entityName:17,relSpec:18,role:19,BLOCK_START:20,attributes:21,BLOCK_STOP:22,title:23,title_value:24,acc_title:25,acc_title_value:26,acc_descr:27,acc_descr_value:28,acc_descr_multiline_value:29,ALPHANUM:30,ENTITY_NAME:31,attribute:32,attributeType:33,attributeName:34,attributeKeyTypeList:35,attributeComment:36,ATTRIBUTE_WORD:37,attributeKeyType:38,COMMA:39,ATTRIBUTE_KEY:40,COMMENT:41,cardinality:42,relType:43,ZERO_OR_ONE:44,ZERO_OR_MORE:45,ONE_OR_MORE:46,ONLY_ONE:47,NON_IDENTIFYING:48,IDENTIFYING:49,WORD:50,open_directive:51,type_directive:52,arg_directive:53,close_directive:54,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",20:"BLOCK_START",22:"BLOCK_STOP",23:"title",24:"title_value",25:"acc_title",26:"acc_title_value",27:"acc_descr",28:"acc_descr_value",29:"acc_descr_multiline_value",30:"ALPHANUM",31:"ENTITY_NAME",37:"ATTRIBUTE_WORD",39:"COMMA",40:"ATTRIBUTE_KEY",41:"COMMENT",44:"ZERO_OR_ONE",45:"ZERO_OR_MORE",46:"ONE_OR_MORE",47:"ONLY_ONE",48:"NON_IDENTIFYING",49:"IDENTIFYING",50:"WORD",51:"open_directive",52:"type_directive",53:"arg_directive",54:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,5],[10,4],[10,3],[10,1],[10,2],[10,2],[10,2],[10,1],[17,1],[17,1],[21,1],[21,2],[32,2],[32,3],[32,3],[32,4],[33,1],[34,1],[35,1],[35,3],[38,1],[36,1],[18,3],[42,1],[42,1],[42,1],[42,1],[43,1],[43,1],[19,1],[19,1],[19,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(e,t,n,r,a,i,o){var s=i.length-1;switch(a){case 1:break;case 3:this.$=[];break;case 4:i[s-1].push(i[s]),this.$=i[s-1];break;case 5:case 6:this.$=i[s];break;case 7:case 8:this.$=[];break;case 12:r.addEntity(i[s-4]),r.addEntity(i[s-2]),r.addRelationship(i[s-4],i[s],i[s-2],i[s-3]);break;case 13:r.addEntity(i[s-3]),r.addAttributes(i[s-3],i[s-1]);break;case 14:r.addEntity(i[s-2]);break;case 15:r.addEntity(i[s]);break;case 16:case 17:this.$=i[s].trim(),r.setAccTitle(this.$);break;case 18:case 19:this.$=i[s].trim(),r.setAccDescription(this.$);break;case 20:case 43:this.$=i[s];break;case 21:case 41:case 42:this.$=i[s].replace(/"/g,"");break;case 22:case 30:this.$=[i[s]];break;case 23:i[s].push(i[s-1]),this.$=i[s];break;case 24:this.$={attributeType:i[s-1],attributeName:i[s]};break;case 25:this.$={attributeType:i[s-2],attributeName:i[s-1],attributeKeyTypeList:i[s]};break;case 26:this.$={attributeType:i[s-2],attributeName:i[s-1],attributeComment:i[s]};break;case 27:this.$={attributeType:i[s-3],attributeName:i[s-2],attributeKeyTypeList:i[s-1],attributeComment:i[s]};break;case 28:case 29:case 32:this.$=i[s];break;case 31:i[s-2].push(i[s]),this.$=i[s-2];break;case 33:this.$=i[s].replace(/"/g,"");break;case 34:this.$={cardA:i[s],relType:i[s-1],cardB:i[s-2]};break;case 35:this.$=r.Cardinality.ZERO_OR_ONE;break;case 36:this.$=r.Cardinality.ZERO_OR_MORE;break;case 37:this.$=r.Cardinality.ONE_OR_MORE;break;case 38:this.$=r.Cardinality.ONLY_ONE;break;case 39:this.$=r.Identification.NON_IDENTIFYING;break;case 40:this.$=r.Identification.IDENTIFYING;break;case 44:r.parseDirective("%%{","open_directive");break;case 45:r.parseDirective(i[s],"type_directive");break;case 46:i[s]=i[s].trim().replace(/'/g,'"'),r.parseDirective(i[s],"arg_directive");break;case 47:r.parseDirective("}%%","close_directive","er");break}},table:[{3:1,4:t,7:3,12:4,51:n},{1:[3]},e(r,[2,3],{5:6}),{3:7,4:t,7:3,12:4,51:n},{13:8,52:[1,9]},{52:[2,44]},{6:[1,10],7:15,8:11,9:[1,12],10:13,11:[1,14],12:4,17:16,23:a,25:i,27:o,29:s,30:l,31:c,51:n},{1:[2,2]},{14:23,15:[1,24],54:u},e([15,54],[2,45]),e(r,[2,8],{1:[2,1]}),e(r,[2,4]),{7:15,10:26,12:4,17:16,23:a,25:i,27:o,29:s,30:l,31:c,51:n},e(r,[2,6]),e(r,[2,7]),e(r,[2,11]),e(r,[2,15],{18:27,42:29,20:[1,28],44:d,45:h,46:p,47:f}),{24:[1,34]},{26:[1,35]},{28:[1,36]},e(r,[2,19]),e(m,[2,20]),e(m,[2,21]),{11:[1,37]},{16:38,53:[1,39]},{11:[2,47]},e(r,[2,5]),{17:40,30:l,31:c},{21:41,22:[1,42],32:43,33:44,37:g},{43:46,48:[1,47],49:[1,48]},e(v,[2,35]),e(v,[2,36]),e(v,[2,37]),e(v,[2,38]),e(r,[2,16]),e(r,[2,17]),e(r,[2,18]),e(y,[2,9]),{14:49,54:u},{54:[2,46]},{15:[1,50]},{22:[1,51]},e(r,[2,14]),{21:52,22:[2,22],32:43,33:44,37:g},{34:53,37:[1,54]},{37:[2,28]},{42:55,44:d,45:h,46:p,47:f},e(b,[2,39]),e(b,[2,40]),{11:[1,56]},{19:57,30:[1,60],31:[1,59],50:[1,58]},e(r,[2,13]),{22:[2,23]},e(w,[2,24],{35:61,36:62,38:63,40:x,41:k}),e([22,37,40,41],[2,29]),e([30,31],[2,34]),e(y,[2,10]),e(r,[2,12]),e(r,[2,41]),e(r,[2,42]),e(r,[2,43]),e(w,[2,25],{36:66,39:[1,67],41:k}),e(w,[2,26]),e(_,[2,30]),e(w,[2,33]),e(_,[2,32]),e(w,[2,27]),{38:68,40:x},e(_,[2,31])],defaultActions:{5:[2,44],7:[2,2],25:[2,47],39:[2,46],45:[2,28],52:[2,23]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],r=[],a=[null],i=[],o=this.table,s="",l=0,c=0,u=2,d=1,h=i.slice.call(arguments,1),p=Object.create(this.lexer),f={yy:{}};for(var m in this.yy)Object.prototype.hasOwnProperty.call(this.yy,m)&&(f.yy[m]=this.yy[m]);p.setInput(e,f.yy),f.yy.lexer=p,f.yy.parser=this,"undefined"==typeof p.yylloc&&(p.yylloc={});var g=p.yylloc;i.push(g);var v=p.options&&p.options.ranges;function y(){var e;return e=r.pop()||p.lex()||d,"number"!==typeof e&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}"function"===typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;var b,w,x,k,_,C,E,R,S={};while(1){if(w=n[n.length-1],this.defaultActions[w]?x=this.defaultActions[w]:(null!==b&&"undefined"!=typeof b||(b=y()),x=o[w]&&o[w][b]),"undefined"===typeof x||!x.length||!x[0]){var A="";for(_ in R=[],o[w])this.terminals_[_]&&_>u&&R.push("'"+this.terminals_[_]+"'");A=p.showPosition?"Parse error on line "+(l+1)+":\n"+p.showPosition()+"\nExpecting "+R.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(l+1)+": Unexpected "+(b==d?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(A,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:g,expected:R})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+b);switch(x[0]){case 1:n.push(b),a.push(p.yytext),i.push(p.yylloc),n.push(x[1]),b=null,c=p.yyleng,s=p.yytext,l=p.yylineno,g=p.yylloc;break;case 2:if(C=this.productions_[x[1]][1],S.$=a[a.length-C],S._$={first_line:i[i.length-(C||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(C||1)].first_column,last_column:i[i.length-1].last_column},v&&(S._$.range=[i[i.length-(C||1)].range[0],i[i.length-1].range[1]]),k=this.performAction.apply(S,[s,c,l,f.yy,x[1],a,i].concat(h)),"undefined"!==typeof k)return k;C&&(n=n.slice(0,-1*C*2),a=a.slice(0,-1*C),i=i.slice(0,-1*C)),n.push(this.productions_[x[1]][0]),a.push(S.$),i.push(S._$),E=o[n[n.length-2]][n[n.length-1]],n.push(E);break;case 3:return!0}}return!0}},E=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e;var t=e.match(/(?:\r\n?|\n).*/g);return t?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var a=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,a;if(this.options.backtrack_lexer&&(a={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(a.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var i in a)this[i]=a[i];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var a=this._currentRules(),i=0;i<a.length;i++)if(n=this._input.match(this.rules[a[i]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=i,this.options.backtrack_lexer){if(e=this.test_match(n,a[i]),!1!==e)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,a[r]),!1!==e&&e):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){var e=this.conditionStack.length-1;return e>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions["INITIAL"].rules},topState:function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return this.begin("acc_title"),25;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),27;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.begin("open_directive"),51;case 8:return this.begin("type_directive"),52;case 9:return this.popState(),this.begin("arg_directive"),15;case 10:return this.popState(),this.popState(),54;case 11:return 53;case 12:break;case 13:break;case 14:return 11;case 15:break;case 16:return 9;case 17:return 31;case 18:return 50;case 19:return 4;case 20:return this.begin("block"),20;case 21:return 39;case 22:break;case 23:return 40;case 24:return 37;case 25:return 37;case 26:return 41;case 27:break;case 28:return this.popState(),22;case 29:return t.yytext[0];case 30:return 44;case 31:return 46;case 32:return 46;case 33:return 46;case 34:return 44;case 35:return 44;case 36:return 45;case 37:return 45;case 38:return 45;case 39:return 45;case 40:return 45;case 41:return 46;case 42:return 45;case 43:return 46;case 44:return 47;case 45:return 47;case 46:return 47;case 47:return 47;case 48:return 44;case 49:return 45;case 50:return 46;case 51:return 48;case 52:return 49;case 53:return 49;case 54:return 48;case 55:return 48;case 56:return 48;case 57:return 30;case 58:return t.yytext[0];case 59:return 6}},rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:,)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:(.*?)[~](.*?)*[~])/i,/^(?:[A-Za-z_][A-Za-z0-9\-_\[\]\(\)]*)/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:1\b)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:[A-Za-z][A-Za-z0-9\-_]*)/i,/^(?:.)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},open_directive:{rules:[8],inclusive:!1},type_directive:{rules:[9,10],inclusive:!1},arg_directive:{rules:[10,11],inclusive:!1},block:{rules:[21,22,23,24,25,26,27,28,29],inclusive:!1},INITIAL:{rules:[0,2,4,7,12,13,14,15,16,17,18,19,20,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59],inclusive:!0}}};return e}();function R(){this.yy={}}return C.lexer=E,R.prototype=C,C.Parser=R,new R}();oh.parser=oh;const sh=oh,lh=e=>null!==e.match(/^\s*erDiagram/);let ch={},uh=[];const dh={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE"},hh={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},ph=function(e,t,n){m_.parseDirective(this,e,t,n)},fh=function(e){return void 0===ch[e]&&(ch[e]={attributes:[]},Ze.info("Added new entity :",e)),ch[e]},mh=()=>ch,gh=function(e,t){let n,r=fh(e);for(n=t.length-1;n>=0;n--)r.attributes.push(t[n]),Ze.debug("Added attribute ",t[n].attributeName)},vh=function(e,t,n,r){let a={entityA:e,roleA:t,entityB:n,relSpec:r};uh.push(a),Ze.debug("Added new relationship :",a)},yh=()=>uh,bh=function(){ch={},uh=[],uo()},wh={Cardinality:dh,Identification:hh,parseDirective:ph,getConfig:()=>wi().er,addEntity:fh,addAttributes:gh,getEntities:mh,addRelationship:vh,getRelationships:yh,clear:bh,setAccTitle:ho,getAccTitle:po,setAccDescription:fo,getAccDescription:mo,setDiagramTitle:go,getDiagramTitle:vo},xh={ONLY_ONE_START:"ONLY_ONE_START",ONLY_ONE_END:"ONLY_ONE_END",ZERO_OR_ONE_START:"ZERO_OR_ONE_START",ZERO_OR_ONE_END:"ZERO_OR_ONE_END",ONE_OR_MORE_START:"ONE_OR_MORE_START",ONE_OR_MORE_END:"ONE_OR_MORE_END",ZERO_OR_MORE_START:"ZERO_OR_MORE_START",ZERO_OR_MORE_END:"ZERO_OR_MORE_END"},kh=function(e,t){let n;e.append("defs").append("marker").attr("id",xh.ONLY_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M9,0 L9,18 M15,0 L15,18"),e.append("defs").append("marker").attr("id",xh.ONLY_ONE_END).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M3,0 L3,18 M9,0 L9,18"),n=e.append("defs").append("marker").attr("id",xh.ZERO_OR_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),n.append("circle").attr("stroke",t.stroke).attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),n.append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M9,0 L9,18"),n=e.append("defs").append("marker").attr("id",xh.ZERO_OR_ONE_END).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),n.append("circle").attr("stroke",t.stroke).attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),n.append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M21,0 L21,18"),e.append("defs").append("marker").attr("id",xh.ONE_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),e.append("defs").append("marker").attr("id",xh.ONE_OR_MORE_END).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"),n=e.append("defs").append("marker").attr("id",xh.ZERO_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),n.append("circle").attr("stroke",t.stroke).attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),n.append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18"),n=e.append("defs").append("marker").attr("id",xh.ZERO_OR_MORE_END).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),n.append("circle").attr("stroke",t.stroke).attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),n.append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},_h={ERMarkers:xh,insertMarkers:kh},Ch=/[^\dA-Za-z](\W)*/g;let Eh={},Rh=new Map;const Sh=function(e){const t=Object.keys(e);for(const n of t)Eh[n]=e[n]},Ah=(e,t,n)=>{const r=Eh.entityPadding/3,a=Eh.entityPadding/3,i=.85*Eh.fontSize,o=t.node().getBBox(),s=[];let l=!1,c=!1,u=0,d=0,h=0,p=0,f=o.height+2*r,m=1;n.forEach((e=>{void 0!==e.attributeKeyTypeList&&e.attributeKeyTypeList.length>0&&(l=!0),void 0!==e.attributeComment&&(c=!0)})),n.forEach((n=>{const a=`${t.node().id}-attr-${m}`;let o=0;const g=pt(n.attributeType),v=e.append("text").classed("er entityLabel",!0).attr("id",`${a}-type`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",wi().fontFamily).style("font-size",i+"px").text(g),y=e.append("text").classed("er entityLabel",!0).attr("id",`${a}-name`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",wi().fontFamily).style("font-size",i+"px").text(n.attributeName),b={};b.tn=v,b.nn=y;const w=v.node().getBBox(),x=y.node().getBBox();if(u=Math.max(u,w.width),d=Math.max(d,x.width),o=Math.max(w.height,x.height),l){const t=void 0!==n.attributeKeyTypeList?n.attributeKeyTypeList.join(","):"",r=e.append("text").classed("er entityLabel",!0).attr("id",`${a}-key`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",wi().fontFamily).style("font-size",i+"px").text(t);b.kn=r;const s=r.node().getBBox();h=Math.max(h,s.width),o=Math.max(o,s.height)}if(c){const t=e.append("text").classed("er entityLabel",!0).attr("id",`${a}-comment`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",wi().fontFamily).style("font-size",i+"px").text(n.attributeComment||"");b.cn=t;const r=t.node().getBBox();p=Math.max(p,r.width),o=Math.max(o,r.height)}b.height=o,s.push(b),f+=o+2*r,m+=1}));let g=4;l&&(g+=2),c&&(g+=2);const v=u+d+h+p,y={width:Math.max(Eh.minEntityWidth,Math.max(o.width+2*Eh.entityPadding,v+a*g)),height:n.length>0?f:Math.max(Eh.minEntityHeight,o.height+2*Eh.entityPadding)};if(n.length>0){const n=Math.max(0,(y.width-v-a*g)/(g/2));t.attr("transform","translate("+y.width/2+","+(r+o.height/2)+")");let i=o.height+2*r,f="attributeBoxOdd";s.forEach((t=>{const o=i+r+t.height/2;t.tn.attr("transform","translate("+a+","+o+")");const s=e.insert("rect","#"+t.tn.node().id).classed(`er ${f}`,!0).attr("x",0).attr("y",i).attr("width",u+2*a+n).attr("height",t.height+2*r),m=parseFloat(s.attr("x"))+parseFloat(s.attr("width"));t.nn.attr("transform","translate("+(m+a)+","+o+")");const g=e.insert("rect","#"+t.nn.node().id).classed(`er ${f}`,!0).attr("x",m).attr("y",i).attr("width",d+2*a+n).attr("height",t.height+2*r);let v=parseFloat(g.attr("x"))+parseFloat(g.attr("width"));if(l){t.kn.attr("transform","translate("+(v+a)+","+o+")");const s=e.insert("rect","#"+t.kn.node().id).classed(`er ${f}`,!0).attr("x",v).attr("y",i).attr("width",h+2*a+n).attr("height",t.height+2*r);v=parseFloat(s.attr("x"))+parseFloat(s.attr("width"))}c&&(t.cn.attr("transform","translate("+(v+a)+","+o+")"),e.insert("rect","#"+t.cn.node().id).classed(`er ${f}`,"true").attr("x",v).attr("y",i).attr("width",p+2*a+n).attr("height",t.height+2*r)),i+=t.height+2*r,f="attributeBoxOdd"===f?"attributeBoxEven":"attributeBoxOdd"}))}else y.height=Math.max(Eh.minEntityHeight,f),t.attr("transform","translate("+y.width/2+","+y.height/2+")");return y},Th=function(e,t,n){const r=Object.keys(t);let a;return r.forEach((function(r){const i=Fh(r,"entity");Rh.set(r,i);const o=e.append("g").attr("id",i);a=void 0===a?i:a;const s="text-"+i,l=o.append("text").classed("er entityLabel",!0).attr("id",s).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","middle").style("font-family",wi().fontFamily).style("font-size",Eh.fontSize+"px").text(r),{width:c,height:u}=Ah(o,l,t[r].attributes),d=o.insert("rect","#"+s).classed("er entityBox",!0).attr("x",0).attr("y",0).attr("width",c).attr("height",u),h=d.node().getBBox();n.setNode(i,{width:h.width,height:h.height,shape:"rect",id:i})})),a},Mh=function(e,t){t.nodes().forEach((function(n){void 0!==n&&void 0!==t.node(n)&&e.select("#"+n).attr("transform","translate("+(t.node(n).x-t.node(n).width/2)+","+(t.node(n).y-t.node(n).height/2)+" )")}))},Lh=function(e){return(e.entityA+e.roleA+e.entityB).replace(/\s/g,"")},Oh=function(e,t){return e.forEach((function(e){t.setEdge(Rh.get(e.entityA),Rh.get(e.entityB),{relationship:e},Lh(e))})),e};let Ih=0;const Nh=function(e,t,n,r,a){Ih++;const i=n.edge(Rh.get(t.entityA),Rh.get(t.entityB),Lh(t)),o=(0,s.n8j)().x((function(e){return e.x})).y((function(e){return e.y})).curve(s.qrM),l=e.insert("path","#"+r).classed("er relationshipLine",!0).attr("d",o(i.points)).style("stroke",Eh.stroke).style("fill","none");t.relSpec.relType===a.db.Identification.NON_IDENTIFYING&&l.attr("stroke-dasharray","8,8");let c="";switch(Eh.arrowMarkerAbsolute&&(c=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,c=c.replace(/\(/g,"\\("),c=c.replace(/\)/g,"\\)")),t.relSpec.cardA){case a.db.Cardinality.ZERO_OR_ONE:l.attr("marker-end","url("+c+"#"+_h.ERMarkers.ZERO_OR_ONE_END+")");break;case a.db.Cardinality.ZERO_OR_MORE:l.attr("marker-end","url("+c+"#"+_h.ERMarkers.ZERO_OR_MORE_END+")");break;case a.db.Cardinality.ONE_OR_MORE:l.attr("marker-end","url("+c+"#"+_h.ERMarkers.ONE_OR_MORE_END+")");break;case a.db.Cardinality.ONLY_ONE:l.attr("marker-end","url("+c+"#"+_h.ERMarkers.ONLY_ONE_END+")");break}switch(t.relSpec.cardB){case a.db.Cardinality.ZERO_OR_ONE:l.attr("marker-start","url("+c+"#"+_h.ERMarkers.ZERO_OR_ONE_START+")");break;case a.db.Cardinality.ZERO_OR_MORE:l.attr("marker-start","url("+c+"#"+_h.ERMarkers.ZERO_OR_MORE_START+")");break;case a.db.Cardinality.ONE_OR_MORE:l.attr("marker-start","url("+c+"#"+_h.ERMarkers.ONE_OR_MORE_START+")");break;case a.db.Cardinality.ONLY_ONE:l.attr("marker-start","url("+c+"#"+_h.ERMarkers.ONLY_ONE_START+")");break}const u=l.node().getTotalLength(),d=l.node().getPointAtLength(.5*u),h="rel"+Ih,p=e.append("text").classed("er relationshipLabel",!0).attr("id",h).attr("x",d.x).attr("y",d.y).style("text-anchor","middle").style("dominant-baseline","middle").style("font-family",wi().fontFamily).style("font-size",Eh.fontSize+"px").text(t.roleA),f=p.node().getBBox();e.insert("rect","#"+h).classed("er relationshipLabelBox",!0).attr("x",d.x-f.width/2).attr("y",d.y-f.height/2).attr("width",f.width).attr("height",f.height)},Bh=function(e,t,n,r){Eh=wi().er,Ze.info("Drawing ER diagram");const a=wi().securityLevel;let i;"sandbox"===a&&(i=(0,s.Ltv)("#i"+t));const o="sandbox"===a?(0,s.Ltv)(i.nodes()[0].contentDocument.body):(0,s.Ltv)("body"),l=o.select(`[id='${t}']`);let c;_h.insertMarkers(l,Eh),c=new we.T({multigraph:!0,directed:!0,compound:!1}).setGraph({rankdir:Eh.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel((function(){return{}}));const u=Th(l,r.db.getEntities(),c),d=Oh(r.db.getRelationships(),c);(0,be.Zp)(c),Mh(l,c),d.forEach((function(e){Nh(l,e,c,u,r)}));const h=Eh.diagramPadding;si.insertTitle(l,"entityTitleText",Eh.titleTopMargin,r.db.getDiagramTitle());const p=l.node().getBBox(),f=p.width+2*h,m=p.height+2*h;Mi(l,m,f,Eh.useMaxWidth),l.attr("viewBox",`${p.x-h} ${p.y-h} ${f} ${m}`)},Dh="28e9f9db-3c8d-5aa5-9faf-44286ae5937c";function Fh(e="",t=""){const n=e.replace(Ch,"");return`${$h(t)}${$h(n)}${$e(e,Dh)}`}function $h(e=""){return e.length>0?`${e}-`:""}const Ph={setConf:Sh,draw:Bh};var zh=function(){var e=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},t=[1,9],n=[1,7],r=[1,6],a=[1,8],i=[1,20,21,22,23,38,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],o=[2,10],s=[1,20],l=[1,21],c=[1,22],u=[1,23],d=[1,30],h=[1,32],p=[1,33],f=[1,34],m=[1,62],g=[1,48],v=[1,52],y=[1,36],b=[1,37],w=[1,38],x=[1,39],k=[1,40],_=[1,56],C=[1,63],E=[1,51],R=[1,53],S=[1,55],A=[1,59],T=[1,60],M=[1,41],L=[1,42],O=[1,43],I=[1,44],N=[1,61],B=[1,50],D=[1,54],F=[1,57],$=[1,58],P=[1,49],z=[1,66],W=[1,71],j=[1,20,21,22,23,38,42,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],V=[1,75],U=[1,74],K=[1,76],H=[20,21,23,81,82],q=[1,99],G=[1,104],X=[1,107],Y=[1,108],Q=[1,101],Z=[1,106],J=[1,109],ee=[1,102],te=[1,114],ne=[1,113],re=[1,103],ae=[1,105],ie=[1,110],oe=[1,111],se=[1,112],le=[1,115],ce=[20,21,22,23,81,82],ue=[20,21,22,23,53,81,82],de=[20,21,22,23,40,52,53,55,57,59,61,63,65,66,67,69,71,73,74,76,81,82,91,95,105,106,109,111,112,122,123,124,125,126,127],he=[20,21,23],pe=[20,21,23,52,66,67,81,82,91,95,105,106,109,111,112,122,123,124,125,126,127],fe=[1,12,20,21,22,23,24,38,42,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],me=[52,66,67,91,95,105,106,109,111,112,122,123,124,125,126,127],ge=[1,149],ve=[1,157],ye=[1,158],be=[1,159],we=[1,160],xe=[1,144],ke=[1,145],_e=[1,141],Ce=[1,152],Ee=[1,153],Re=[1,154],Se=[1,155],Ae=[1,156],Te=[1,161],Me=[1,162],Le=[1,147],Oe=[1,150],Ie=[1,146],Ne=[1,143],Be=[20,21,22,23,38,42,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],De=[1,165],Fe=[20,21,22,23,26,52,66,67,91,105,106,109,111,112,122,123,124,125,126,127],$e=[20,21,22,23,24,26,38,40,41,42,52,56,58,60,62,64,66,67,68,70,72,73,75,77,81,82,86,87,88,89,90,91,92,95,105,106,109,111,112,113,114,122,123,124,125,126,127],Pe=[12,21,22,24],ze=[22,106],We=[1,250],je=[1,245],Ve=[1,246],Ue=[1,254],Ke=[1,251],He=[1,248],qe=[1,247],Ge=[1,249],Xe=[1,252],Ye=[1,253],Qe=[1,255],Ze=[1,273],Je=[20,21,23,106],et=[20,21,22,23,66,67,86,102,105,106,109,110,111,112,113],tt={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,directive:5,openDirective:6,typeDirective:7,closeDirective:8,separator:9,":":10,argDirective:11,open_directive:12,type_directive:13,arg_directive:14,close_directive:15,graphConfig:16,document:17,line:18,statement:19,SEMI:20,NEWLINE:21,SPACE:22,EOF:23,GRAPH:24,NODIR:25,DIR:26,FirstStmtSeperator:27,ending:28,endToken:29,spaceList:30,spaceListNewline:31,verticeStatement:32,styleStatement:33,linkStyleStatement:34,classDefStatement:35,classStatement:36,clickStatement:37,subgraph:38,text:39,SQS:40,SQE:41,end:42,direction:43,acc_title:44,acc_title_value:45,acc_descr:46,acc_descr_value:47,acc_descr_multiline_value:48,link:49,node:50,vertex:51,AMP:52,STYLE_SEPARATOR:53,idString:54,DOUBLECIRCLESTART:55,DOUBLECIRCLEEND:56,PS:57,PE:58,"(-":59,"-)":60,STADIUMSTART:61,STADIUMEND:62,SUBROUTINESTART:63,SUBROUTINEEND:64,VERTEX_WITH_PROPS_START:65,ALPHA:66,COLON:67,PIPE:68,CYLINDERSTART:69,CYLINDEREND:70,DIAMOND_START:71,DIAMOND_STOP:72,TAGEND:73,TRAPSTART:74,TRAPEND:75,INVTRAPSTART:76,INVTRAPEND:77,linkStatement:78,arrowText:79,TESTSTR:80,START_LINK:81,LINK:82,textToken:83,STR:84,keywords:85,STYLE:86,LINKSTYLE:87,CLASSDEF:88,CLASS:89,CLICK:90,DOWN:91,UP:92,textNoTags:93,textNoTagsToken:94,DEFAULT:95,stylesOpt:96,alphaNum:97,CALLBACKNAME:98,CALLBACKARGS:99,HREF:100,LINK_TARGET:101,HEX:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,MINUS:109,UNIT:110,BRKT:111,DOT:112,PCT:113,TAGSTART:114,alphaNumToken:115,idStringToken:116,alphaNumStatement:117,direction_tb:118,direction_bt:119,direction_rl:120,direction_lr:121,PUNCTUATION:122,UNICODE_TEXT:123,PLUS:124,EQUALS:125,MULT:126,UNDERSCORE:127,graphCodeTokens:128,ARROW_CROSS:129,ARROW_POINT:130,ARROW_CIRCLE:131,ARROW_OPEN:132,QUOTE:133,$accept:0,$end:1},terminals_:{2:"error",10:":",12:"open_directive",13:"type_directive",14:"arg_directive",15:"close_directive",20:"SEMI",21:"NEWLINE",22:"SPACE",23:"EOF",24:"GRAPH",25:"NODIR",26:"DIR",38:"subgraph",40:"SQS",41:"SQE",42:"end",44:"acc_title",45:"acc_title_value",46:"acc_descr",47:"acc_descr_value",48:"acc_descr_multiline_value",52:"AMP",53:"STYLE_SEPARATOR",55:"DOUBLECIRCLESTART",56:"DOUBLECIRCLEEND",57:"PS",58:"PE",59:"(-",60:"-)",61:"STADIUMSTART",62:"STADIUMEND",63:"SUBROUTINESTART",64:"SUBROUTINEEND",65:"VERTEX_WITH_PROPS_START",66:"ALPHA",67:"COLON",68:"PIPE",69:"CYLINDERSTART",70:"CYLINDEREND",71:"DIAMOND_START",72:"DIAMOND_STOP",73:"TAGEND",74:"TRAPSTART",75:"TRAPEND",76:"INVTRAPSTART",77:"INVTRAPEND",80:"TESTSTR",81:"START_LINK",82:"LINK",84:"STR",86:"STYLE",87:"LINKSTYLE",88:"CLASSDEF",89:"CLASS",90:"CLICK",91:"DOWN",92:"UP",95:"DEFAULT",98:"CALLBACKNAME",99:"CALLBACKARGS",100:"HREF",101:"LINK_TARGET",102:"HEX",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"MINUS",110:"UNIT",111:"BRKT",112:"DOT",113:"PCT",114:"TAGSTART",118:"direction_tb",119:"direction_bt",120:"direction_rl",121:"direction_lr",122:"PUNCTUATION",123:"UNICODE_TEXT",124:"PLUS",125:"EQUALS",126:"MULT",127:"UNDERSCORE",129:"ARROW_CROSS",130:"ARROW_POINT",131:"ARROW_CIRCLE",132:"ARROW_OPEN",133:"QUOTE"},productions_:[0,[3,1],[3,2],[5,4],[5,6],[6,1],[7,1],[11,1],[8,1],[4,2],[17,0],[17,2],[18,1],[18,1],[18,1],[18,1],[18,1],[16,2],[16,2],[16,2],[16,3],[28,2],[28,1],[29,1],[29,1],[29,1],[27,1],[27,1],[27,2],[31,2],[31,2],[31,1],[31,1],[30,2],[30,1],[19,2],[19,2],[19,2],[19,2],[19,2],[19,2],[19,9],[19,6],[19,4],[19,1],[19,2],[19,2],[19,1],[9,1],[9,1],[9,1],[32,3],[32,4],[32,2],[32,1],[50,1],[50,5],[50,3],[51,4],[51,4],[51,6],[51,4],[51,4],[51,4],[51,8],[51,4],[51,4],[51,4],[51,6],[51,4],[51,4],[51,4],[51,4],[51,4],[51,1],[49,2],[49,3],[49,3],[49,1],[49,3],[78,1],[79,3],[39,1],[39,2],[39,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[93,1],[93,2],[35,5],[35,5],[36,5],[37,2],[37,4],[37,3],[37,5],[37,2],[37,4],[37,4],[37,6],[37,2],[37,4],[37,2],[37,4],[37,4],[37,6],[33,5],[33,5],[34,5],[34,5],[34,9],[34,9],[34,7],[34,7],[103,1],[103,3],[96,1],[96,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[94,1],[94,1],[94,1],[94,1],[54,1],[54,2],[97,1],[97,2],[117,1],[117,1],[117,1],[117,1],[43,1],[43,1],[43,1],[43,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1]],performAction:function(e,t,n,r,a,i,o){var s=i.length-1;switch(a){case 5:r.parseDirective("%%{","open_directive");break;case 6:r.parseDirective(i[s],"type_directive");break;case 7:i[s]=i[s].trim().replace(/'/g,'"'),r.parseDirective(i[s],"arg_directive");break;case 8:r.parseDirective("}%%","close_directive","flowchart");break;case 10:this.$=[];break;case 11:(!Array.isArray(i[s])||i[s].length>0)&&i[s-1].push(i[s]),this.$=i[s-1];break;case 12:case 82:case 84:case 96:case 152:case 154:case 155:this.$=i[s];break;case 19:r.setDirection("TB"),this.$="TB";break;case 20:r.setDirection(i[s-1]),this.$=i[s-1];break;case 35:this.$=i[s-1].nodes;break;case 36:case 37:case 38:case 39:case 40:this.$=[];break;case 41:this.$=r.addSubGraph(i[s-6],i[s-1],i[s-4]);break;case 42:this.$=r.addSubGraph(i[s-3],i[s-1],i[s-3]);break;case 43:this.$=r.addSubGraph(void 0,i[s-1],void 0);break;case 45:this.$=i[s].trim(),r.setAccTitle(this.$);break;case 46:case 47:this.$=i[s].trim(),r.setAccDescription(this.$);break;case 51:r.addLink(i[s-2].stmt,i[s],i[s-1]),this.$={stmt:i[s],nodes:i[s].concat(i[s-2].nodes)};break;case 52:r.addLink(i[s-3].stmt,i[s-1],i[s-2]),this.$={stmt:i[s-1],nodes:i[s-1].concat(i[s-3].nodes)};break;case 53:this.$={stmt:i[s-1],nodes:i[s-1]};break;case 54:this.$={stmt:i[s],nodes:i[s]};break;case 55:this.$=[i[s]];break;case 56:this.$=i[s-4].concat(i[s]);break;case 57:this.$=[i[s-2]],r.setClass(i[s-2],i[s]);break;case 58:this.$=i[s-3],r.addVertex(i[s-3],i[s-1],"square");break;case 59:this.$=i[s-3],r.addVertex(i[s-3],i[s-1],"doublecircle");break;case 60:this.$=i[s-5],r.addVertex(i[s-5],i[s-2],"circle");break;case 61:this.$=i[s-3],r.addVertex(i[s-3],i[s-1],"ellipse");break;case 62:this.$=i[s-3],r.addVertex(i[s-3],i[s-1],"stadium");break;case 63:this.$=i[s-3],r.addVertex(i[s-3],i[s-1],"subroutine");break;case 64:this.$=i[s-7],r.addVertex(i[s-7],i[s-1],"rect",void 0,void 0,void 0,Object.fromEntries([[i[s-5],i[s-3]]]));break;case 65:this.$=i[s-3],r.addVertex(i[s-3],i[s-1],"cylinder");break;case 66:this.$=i[s-3],r.addVertex(i[s-3],i[s-1],"round");break;case 67:this.$=i[s-3],r.addVertex(i[s-3],i[s-1],"diamond");break;case 68:this.$=i[s-5],r.addVertex(i[s-5],i[s-2],"hexagon");break;case 69:this.$=i[s-3],r.addVertex(i[s-3],i[s-1],"odd");break;case 70:this.$=i[s-3],r.addVertex(i[s-3],i[s-1],"trapezoid");break;case 71:this.$=i[s-3],r.addVertex(i[s-3],i[s-1],"inv_trapezoid");break;case 72:this.$=i[s-3],r.addVertex(i[s-3],i[s-1],"lean_right");break;case 73:this.$=i[s-3],r.addVertex(i[s-3],i[s-1],"lean_left");break;case 74:this.$=i[s],r.addVertex(i[s]);break;case 75:i[s-1].text=i[s],this.$=i[s-1];break;case 76:case 77:i[s-2].text=i[s-1],this.$=i[s-2];break;case 78:this.$=i[s];break;case 79:var l=r.destructLink(i[s],i[s-2]);this.$={type:l.type,stroke:l.stroke,length:l.length,text:i[s-1]};break;case 80:l=r.destructLink(i[s]);this.$={type:l.type,stroke:l.stroke,length:l.length};break;case 81:this.$=i[s-1];break;case 83:case 97:case 153:this.$=i[s-1]+""+i[s];break;case 98:case 99:this.$=i[s-4],r.addClass(i[s-2],i[s]);break;case 100:this.$=i[s-4],r.setClass(i[s-2],i[s]);break;case 101:case 109:this.$=i[s-1],r.setClickEvent(i[s-1],i[s]);break;case 102:case 110:this.$=i[s-3],r.setClickEvent(i[s-3],i[s-2]),r.setTooltip(i[s-3],i[s]);break;case 103:this.$=i[s-2],r.setClickEvent(i[s-2],i[s-1],i[s]);break;case 104:this.$=i[s-4],r.setClickEvent(i[s-4],i[s-3],i[s-2]),r.setTooltip(i[s-4],i[s]);break;case 105:case 111:this.$=i[s-1],r.setLink(i[s-1],i[s]);break;case 106:case 112:this.$=i[s-3],r.setLink(i[s-3],i[s-2]),r.setTooltip(i[s-3],i[s]);break;case 107:case 113:this.$=i[s-3],r.setLink(i[s-3],i[s-2],i[s]);break;case 108:case 114:this.$=i[s-5],r.setLink(i[s-5],i[s-4],i[s]),r.setTooltip(i[s-5],i[s-2]);break;case 115:this.$=i[s-4],r.addVertex(i[s-2],void 0,void 0,i[s]);break;case 116:case 118:this.$=i[s-4],r.updateLink(i[s-2],i[s]);break;case 117:this.$=i[s-4],r.updateLink([i[s-2]],i[s]);break;case 119:this.$=i[s-8],r.updateLinkInterpolate([i[s-6]],i[s-2]),r.updateLink([i[s-6]],i[s]);break;case 120:this.$=i[s-8],r.updateLinkInterpolate(i[s-6],i[s-2]),r.updateLink(i[s-6],i[s]);break;case 121:this.$=i[s-6],r.updateLinkInterpolate([i[s-4]],i[s]);break;case 122:this.$=i[s-6],r.updateLinkInterpolate(i[s-4],i[s]);break;case 123:case 125:this.$=[i[s]];break;case 124:case 126:i[s-2].push(i[s]),this.$=i[s-2];break;case 128:this.$=i[s-1]+i[s];break;case 150:this.$=i[s];break;case 151:this.$=i[s-1]+""+i[s];break;case 156:this.$="v";break;case 157:this.$="-";break;case 158:this.$={stmt:"dir",value:"TB"};break;case 159:this.$={stmt:"dir",value:"BT"};break;case 160:this.$={stmt:"dir",value:"RL"};break;case 161:this.$={stmt:"dir",value:"LR"};break}},table:[{3:1,4:2,5:3,6:5,12:t,16:4,21:n,22:r,24:a},{1:[3]},{1:[2,1]},{3:10,4:2,5:3,6:5,12:t,16:4,21:n,22:r,24:a},e(i,o,{17:11}),{7:12,13:[1,13]},{16:14,21:n,22:r,24:a},{16:15,21:n,22:r,24:a},{25:[1,16],26:[1,17]},{13:[2,5]},{1:[2,2]},{1:[2,9],18:18,19:19,20:s,21:l,22:c,23:u,32:24,33:25,34:26,35:27,36:28,37:29,38:d,43:31,44:h,46:p,48:f,50:35,51:45,52:m,54:46,66:g,67:v,86:y,87:b,88:w,89:x,90:k,91:_,95:C,105:E,106:R,109:S,111:A,112:T,116:47,118:M,119:L,120:O,121:I,122:N,123:B,124:D,125:F,126:$,127:P},{8:64,10:[1,65],15:z},e([10,15],[2,6]),e(i,[2,17]),e(i,[2,18]),e(i,[2,19]),{20:[1,68],21:[1,69],22:W,27:67,30:70},e(j,[2,11]),e(j,[2,12]),e(j,[2,13]),e(j,[2,14]),e(j,[2,15]),e(j,[2,16]),{9:72,20:V,21:U,23:K,49:73,78:77,81:[1,78],82:[1,79]},{9:80,20:V,21:U,23:K},{9:81,20:V,21:U,23:K},{9:82,20:V,21:U,23:K},{9:83,20:V,21:U,23:K},{9:84,20:V,21:U,23:K},{9:86,20:V,21:U,22:[1,85],23:K},e(j,[2,44]),{45:[1,87]},{47:[1,88]},e(j,[2,47]),e(H,[2,54],{30:89,22:W}),{22:[1,90]},{22:[1,91]},{22:[1,92]},{22:[1,93]},{26:q,52:G,66:X,67:Y,84:[1,97],91:Q,97:96,98:[1,94],100:[1,95],105:Z,106:J,109:ee,111:te,112:ne,115:100,117:98,122:re,123:ae,124:ie,125:oe,126:se,127:le},e(j,[2,158]),e(j,[2,159]),e(j,[2,160]),e(j,[2,161]),e(ce,[2,55],{53:[1,116]}),e(ue,[2,74],{116:129,40:[1,117],52:m,55:[1,118],57:[1,119],59:[1,120],61:[1,121],63:[1,122],65:[1,123],66:g,67:v,69:[1,124],71:[1,125],73:[1,126],74:[1,127],76:[1,128],91:_,95:C,105:E,106:R,109:S,111:A,112:T,122:N,123:B,124:D,125:F,126:$,127:P}),e(de,[2,150]),e(de,[2,175]),e(de,[2,176]),e(de,[2,177]),e(de,[2,178]),e(de,[2,179]),e(de,[2,180]),e(de,[2,181]),e(de,[2,182]),e(de,[2,183]),e(de,[2,184]),e(de,[2,185]),e(de,[2,186]),e(de,[2,187]),e(de,[2,188]),e(de,[2,189]),e(de,[2,190]),{9:130,20:V,21:U,23:K},{11:131,14:[1,132]},e(he,[2,8]),e(i,[2,20]),e(i,[2,26]),e(i,[2,27]),{21:[1,133]},e(pe,[2,34],{30:134,22:W}),e(j,[2,35]),{50:135,51:45,52:m,54:46,66:g,67:v,91:_,95:C,105:E,106:R,109:S,111:A,112:T,116:47,122:N,123:B,124:D,125:F,126:$,127:P},e(fe,[2,48]),e(fe,[2,49]),e(fe,[2,50]),e(me,[2,78],{79:136,68:[1,138],80:[1,137]}),{22:ge,24:ve,26:ye,38:be,39:139,42:we,52:G,66:X,67:Y,73:xe,81:ke,83:140,84:_e,85:151,86:Ce,87:Ee,88:Re,89:Se,90:Ae,91:Te,92:Me,94:142,95:Le,105:Z,106:J,109:Oe,111:te,112:ne,113:Ie,114:Ne,115:148,122:re,123:ae,124:ie,125:oe,126:se,127:le},e([52,66,67,68,80,91,95,105,106,109,111,112,122,123,124,125,126,127],[2,80]),e(j,[2,36]),e(j,[2,37]),e(j,[2,38]),e(j,[2,39]),e(j,[2,40]),{22:ge,24:ve,26:ye,38:be,39:163,42:we,52:G,66:X,67:Y,73:xe,81:ke,83:140,84:_e,85:151,86:Ce,87:Ee,88:Re,89:Se,90:Ae,91:Te,92:Me,94:142,95:Le,105:Z,106:J,109:Oe,111:te,112:ne,113:Ie,114:Ne,115:148,122:re,123:ae,124:ie,125:oe,126:se,127:le},e(Be,o,{17:164}),e(j,[2,45]),e(j,[2,46]),e(H,[2,53],{52:De}),{26:q,52:G,66:X,67:Y,91:Q,97:166,102:[1,167],105:Z,106:J,109:ee,111:te,112:ne,115:100,117:98,122:re,123:ae,124:ie,125:oe,126:se,127:le},{95:[1,168],103:169,105:[1,170]},{26:q,52:G,66:X,67:Y,91:Q,95:[1,171],97:172,105:Z,106:J,109:ee,111:te,112:ne,115:100,117:98,122:re,123:ae,124:ie,125:oe,126:se,127:le},{26:q,52:G,66:X,67:Y,91:Q,97:173,105:Z,106:J,109:ee,111:te,112:ne,115:100,117:98,122:re,123:ae,124:ie,125:oe,126:se,127:le},e(he,[2,101],{22:[1,174],99:[1,175]}),e(he,[2,105],{22:[1,176]}),e(he,[2,109],{115:100,117:178,22:[1,177],26:q,52:G,66:X,67:Y,91:Q,105:Z,106:J,109:ee,111:te,112:ne,122:re,123:ae,124:ie,125:oe,126:se,127:le}),e(he,[2,111],{22:[1,179]}),e(Fe,[2,152]),e(Fe,[2,154]),e(Fe,[2,155]),e(Fe,[2,156]),e(Fe,[2,157]),e($e,[2,162]),e($e,[2,163]),e($e,[2,164]),e($e,[2,165]),e($e,[2,166]),e($e,[2,167]),e($e,[2,168]),e($e,[2,169]),e($e,[2,170]),e($e,[2,171]),e($e,[2,172]),e($e,[2,173]),e($e,[2,174]),{52:m,54:180,66:g,67:v,91:_,95:C,105:E,106:R,109:S,111:A,112:T,116:47,122:N,123:B,124:D,125:F,126:$,127:P},{22:ge,24:ve,26:ye,38:be,39:181,42:we,52:G,66:X,67:Y,73:xe,81:ke,83:140,84:_e,85:151,86:Ce,87:Ee,88:Re,89:Se,90:Ae,91:Te,92:Me,94:142,95:Le,105:Z,106:J,109:Oe,111:te,112:ne,113:Ie,114:Ne,115:148,122:re,123:ae,124:ie,125:oe,126:se,127:le},{22:ge,24:ve,26:ye,38:be,39:182,42:we,52:G,66:X,67:Y,73:xe,81:ke,83:140,84:_e,85:151,86:Ce,87:Ee,88:Re,89:Se,90:Ae,91:Te,92:Me,94:142,95:Le,105:Z,106:J,109:Oe,111:te,112:ne,113:Ie,114:Ne,115:148,122:re,123:ae,124:ie,125:oe,126:se,127:le},{22:ge,24:ve,26:ye,38:be,39:184,42:we,52:G,57:[1,183],66:X,67:Y,73:xe,81:ke,83:140,84:_e,85:151,86:Ce,87:Ee,88:Re,89:Se,90:Ae,91:Te,92:Me,94:142,95:Le,105:Z,106:J,109:Oe,111:te,112:ne,113:Ie,114:Ne,115:148,122:re,123:ae,124:ie,125:oe,126:se,127:le},{22:ge,24:ve,26:ye,38:be,39:185,42:we,52:G,66:X,67:Y,73:xe,81:ke,83:140,84:_e,85:151,86:Ce,87:Ee,88:Re,89:Se,90:Ae,91:Te,92:Me,94:142,95:Le,105:Z,106:J,109:Oe,111:te,112:ne,113:Ie,114:Ne,115:148,122:re,123:ae,124:ie,125:oe,126:se,127:le},{22:ge,24:ve,26:ye,38:be,39:186,42:we,52:G,66:X,67:Y,73:xe,81:ke,83:140,84:_e,85:151,86:Ce,87:Ee,88:Re,89:Se,90:Ae,91:Te,92:Me,94:142,95:Le,105:Z,106:J,109:Oe,111:te,112:ne,113:Ie,114:Ne,115:148,122:re,123:ae,124:ie,125:oe,126:se,127:le},{22:ge,24:ve,26:ye,38:be,39:187,42:we,52:G,66:X,67:Y,73:xe,81:ke,83:140,84:_e,85:151,86:Ce,87:Ee,88:Re,89:Se,90:Ae,91:Te,92:Me,94:142,95:Le,105:Z,106:J,109:Oe,111:te,112:ne,113:Ie,114:Ne,115:148,122:re,123:ae,124:ie,125:oe,126:se,127:le},{66:[1,188]},{22:ge,24:ve,26:ye,38:be,39:189,42:we,52:G,66:X,67:Y,73:xe,81:ke,83:140,84:_e,85:151,86:Ce,87:Ee,88:Re,89:Se,90:Ae,91:Te,92:Me,94:142,95:Le,105:Z,106:J,109:Oe,111:te,112:ne,113:Ie,114:Ne,115:148,122:re,123:ae,124:ie,125:oe,126:se,127:le},{22:ge,24:ve,26:ye,38:be,39:190,42:we,52:G,66:X,67:Y,71:[1,191],73:xe,81:ke,83:140,84:_e,85:151,86:Ce,87:Ee,88:Re,89:Se,90:Ae,91:Te,92:Me,94:142,95:Le,105:Z,106:J,109:Oe,111:te,112:ne,113:Ie,114:Ne,115:148,122:re,123:ae,124:ie,125:oe,126:se,127:le},{22:ge,24:ve,26:ye,38:be,39:192,42:we,52:G,66:X,67:Y,73:xe,81:ke,83:140,84:_e,85:151,86:Ce,87:Ee,88:Re,89:Se,90:Ae,91:Te,92:Me,94:142,95:Le,105:Z,106:J,109:Oe,111:te,112:ne,113:Ie,114:Ne,115:148,122:re,123:ae,124:ie,125:oe,126:se,127:le},{22:ge,24:ve,26:ye,38:be,39:193,42:we,52:G,66:X,67:Y,73:xe,81:ke,83:140,84:_e,85:151,86:Ce,87:Ee,88:Re,89:Se,90:Ae,91:Te,92:Me,94:142,95:Le,105:Z,106:J,109:Oe,111:te,112:ne,113:Ie,114:Ne,115:148,122:re,123:ae,124:ie,125:oe,126:se,127:le},{22:ge,24:ve,26:ye,38:be,39:194,42:we,52:G,66:X,67:Y,73:xe,81:ke,83:140,84:_e,85:151,86:Ce,87:Ee,88:Re,89:Se,90:Ae,91:Te,92:Me,94:142,95:Le,105:Z,106:J,109:Oe,111:te,112:ne,113:Ie,114:Ne,115:148,122:re,123:ae,124:ie,125:oe,126:se,127:le},e(de,[2,151]),e(Pe,[2,3]),{8:195,15:z},{15:[2,7]},e(i,[2,28]),e(pe,[2,33]),e(H,[2,51],{30:196,22:W}),e(me,[2,75],{22:[1,197]}),{22:[1,198]},{22:ge,24:ve,26:ye,38:be,39:199,42:we,52:G,66:X,67:Y,73:xe,81:ke,83:140,84:_e,85:151,86:Ce,87:Ee,88:Re,89:Se,90:Ae,91:Te,92:Me,94:142,95:Le,105:Z,106:J,109:Oe,111:te,112:ne,113:Ie,114:Ne,115:148,122:re,123:ae,124:ie,125:oe,126:se,127:le},{22:ge,24:ve,26:ye,38:be,42:we,52:G,66:X,67:Y,73:xe,81:ke,82:[1,200],83:201,85:151,86:Ce,87:Ee,88:Re,89:Se,90:Ae,91:Te,92:Me,94:142,95:Le,105:Z,106:J,109:Oe,111:te,112:ne,113:Ie,114:Ne,115:148,122:re,123:ae,124:ie,125:oe,126:se,127:le},e($e,[2,82]),e($e,[2,84]),e($e,[2,140]),e($e,[2,141]),e($e,[2,142]),e($e,[2,143]),e($e,[2,144]),e($e,[2,145]),e($e,[2,146]),e($e,[2,147]),e($e,[2,148]),e($e,[2,149]),e($e,[2,85]),e($e,[2,86]),e($e,[2,87]),e($e,[2,88]),e($e,[2,89]),e($e,[2,90]),e($e,[2,91]),e($e,[2,92]),e($e,[2,93]),e($e,[2,94]),e($e,[2,95]),{9:203,20:V,21:U,22:ge,23:K,24:ve,26:ye,38:be,40:[1,202],42:we,52:G,66:X,67:Y,73:xe,81:ke,83:201,85:151,86:Ce,87:Ee,88:Re,89:Se,90:Ae,91:Te,92:Me,94:142,95:Le,105:Z,106:J,109:Oe,111:te,112:ne,113:Ie,114:Ne,115:148,122:re,123:ae,124:ie,125:oe,126:se,127:le},{18:18,19:19,20:s,21:l,22:c,23:u,32:24,33:25,34:26,35:27,36:28,37:29,38:d,42:[1,204],43:31,44:h,46:p,48:f,50:35,51:45,52:m,54:46,66:g,67:v,86:y,87:b,88:w,89:x,90:k,91:_,95:C,105:E,106:R,109:S,111:A,112:T,116:47,118:M,119:L,120:O,121:I,122:N,123:B,124:D,125:F,126:$,127:P},{22:W,30:205},{22:[1,206],26:q,52:G,66:X,67:Y,91:Q,105:Z,106:J,109:ee,111:te,112:ne,115:100,117:178,122:re,123:ae,124:ie,125:oe,126:se,127:le},{22:[1,207]},{22:[1,208]},{22:[1,209],106:[1,210]},e(ze,[2,123]),{22:[1,211]},{22:[1,212],26:q,52:G,66:X,67:Y,91:Q,105:Z,106:J,109:ee,111:te,112:ne,115:100,117:178,122:re,123:ae,124:ie,125:oe,126:se,127:le},{22:[1,213],26:q,52:G,66:X,67:Y,91:Q,105:Z,106:J,109:ee,111:te,112:ne,115:100,117:178,122:re,123:ae,124:ie,125:oe,126:se,127:le},{84:[1,214]},e(he,[2,103],{22:[1,215]}),{84:[1,216],101:[1,217]},{84:[1,218]},e(Fe,[2,153]),{84:[1,219],101:[1,220]},e(ce,[2,57],{116:129,52:m,66:g,67:v,91:_,95:C,105:E,106:R,109:S,111:A,112:T,122:N,123:B,124:D,125:F,126:$,127:P}),{22:ge,24:ve,26:ye,38:be,41:[1,221],42:we,52:G,66:X,67:Y,73:xe,81:ke,83:201,85:151,86:Ce,87:Ee,88:Re,89:Se,90:Ae,91:Te,92:Me,94:142,95:Le,105:Z,106:J,109:Oe,111:te,112:ne,113:Ie,114:Ne,115:148,122:re,123:ae,124:ie,125:oe,126:se,127:le},{22:ge,24:ve,26:ye,38:be,42:we,52:G,56:[1,222],66:X,67:Y,73:xe,81:ke,83:201,85:151,86:Ce,87:Ee,88:Re,89:Se,90:Ae,91:Te,92:Me,94:142,95:Le,105:Z,106:J,109:Oe,111:te,112:ne,113:Ie,114:Ne,115:148,122:re,123:ae,124:ie,125:oe,126:se,127:le},{22:ge,24:ve,26:ye,38:be,39:223,42:we,52:G,66:X,67:Y,73:xe,81:ke,83:140,84:_e,85:151,86:Ce,87:Ee,88:Re,89:Se,90:Ae,91:Te,92:Me,94:142,95:Le,105:Z,106:J,109:Oe,111:te,112:ne,113:Ie,114:Ne,115:148,122:re,123:ae,124:ie,125:oe,126:se,127:le},{22:ge,24:ve,26:ye,38:be,42:we,52:G,58:[1,224],66:X,67:Y,73:xe,81:ke,83:201,85:151,86:Ce,87:Ee,88:Re,89:Se,90:Ae,91:Te,92:Me,94:142,95:Le,105:Z,106:J,109:Oe,111:te,112:ne,113:Ie,114:Ne,115:148,122:re,123:ae,124:ie,125:oe,126:se,127:le},{22:ge,24:ve,26:ye,38:be,42:we,52:G,60:[1,225],66:X,67:Y,73:xe,81:ke,83:201,85:151,86:Ce,87:Ee,88:Re,89:Se,90:Ae,91:Te,92:Me,94:142,95:Le,105:Z,106:J,109:Oe,111:te,112:ne,113:Ie,114:Ne,115:148,122:re,123:ae,124:ie,125:oe,126:se,127:le},{22:ge,24:ve,26:ye,38:be,42:we,52:G,62:[1,226],66:X,67:Y,73:xe,81:ke,83:201,85:151,86:Ce,87:Ee,88:Re,89:Se,90:Ae,91:Te,92:Me,94:142,95:Le,105:Z,106:J,109:Oe,111:te,112:ne,113:Ie,114:Ne,115:148,122:re,123:ae,124:ie,125:oe,126:se,127:le},{22:ge,24:ve,26:ye,38:be,42:we,52:G,64:[1,227],66:X,67:Y,73:xe,81:ke,83:201,85:151,86:Ce,87:Ee,88:Re,89:Se,90:Ae,91:Te,92:Me,94:142,95:Le,105:Z,106:J,109:Oe,111:te,112:ne,113:Ie,114:Ne,115:148,122:re,123:ae,124:ie,125:oe,126:se,127:le},{67:[1,228]},{22:ge,24:ve,26:ye,38:be,42:we,52:G,66:X,67:Y,70:[1,229],73:xe,81:ke,83:201,85:151,86:Ce,87:Ee,88:Re,89:Se,90:Ae,91:Te,92:Me,94:142,95:Le,105:Z,106:J,109:Oe,111:te,112:ne,113:Ie,114:Ne,115:148,122:re,123:ae,124:ie,125:oe,126:se,127:le},{22:ge,24:ve,26:ye,38:be,42:we,52:G,66:X,67:Y,72:[1,230],73:xe,81:ke,83:201,85:151,86:Ce,87:Ee,88:Re,89:Se,90:Ae,91:Te,92:Me,94:142,95:Le,105:Z,106:J,109:Oe,111:te,112:ne,113:Ie,114:Ne,115:148,122:re,123:ae,124:ie,125:oe,126:se,127:le},{22:ge,24:ve,26:ye,38:be,39:231,42:we,52:G,66:X,67:Y,73:xe,81:ke,83:140,84:_e,85:151,86:Ce,87:Ee,88:Re,89:Se,90:Ae,91:Te,92:Me,94:142,95:Le,105:Z,106:J,109:Oe,111:te,112:ne,113:Ie,114:Ne,115:148,122:re,123:ae,124:ie,125:oe,126:se,127:le},{22:ge,24:ve,26:ye,38:be,41:[1,232],42:we,52:G,66:X,67:Y,73:xe,81:ke,83:201,85:151,86:Ce,87:Ee,88:Re,89:Se,90:Ae,91:Te,92:Me,94:142,95:Le,105:Z,106:J,109:Oe,111:te,112:ne,113:Ie,114:Ne,115:148,122:re,123:ae,124:ie,125:oe,126:se,127:le},{22:ge,24:ve,26:ye,38:be,42:we,52:G,66:X,67:Y,73:xe,75:[1,233],77:[1,234],81:ke,83:201,85:151,86:Ce,87:Ee,88:Re,89:Se,90:Ae,91:Te,92:Me,94:142,95:Le,105:Z,106:J,109:Oe,111:te,112:ne,113:Ie,114:Ne,115:148,122:re,123:ae,124:ie,125:oe,126:se,127:le},{22:ge,24:ve,26:ye,38:be,42:we,52:G,66:X,67:Y,73:xe,75:[1,236],77:[1,235],81:ke,83:201,85:151,86:Ce,87:Ee,88:Re,89:Se,90:Ae,91:Te,92:Me,94:142,95:Le,105:Z,106:J,109:Oe,111:te,112:ne,113:Ie,114:Ne,115:148,122:re,123:ae,124:ie,125:oe,126:se,127:le},{9:237,20:V,21:U,23:K},e(H,[2,52],{52:De}),e(me,[2,77]),e(me,[2,76]),{22:ge,24:ve,26:ye,38:be,42:we,52:G,66:X,67:Y,68:[1,238],73:xe,81:ke,83:201,85:151,86:Ce,87:Ee,88:Re,89:Se,90:Ae,91:Te,92:Me,94:142,95:Le,105:Z,106:J,109:Oe,111:te,112:ne,113:Ie,114:Ne,115:148,122:re,123:ae,124:ie,125:oe,126:se,127:le},e(me,[2,79]),e($e,[2,83]),{22:ge,24:ve,26:ye,38:be,39:239,42:we,52:G,66:X,67:Y,73:xe,81:ke,83:140,84:_e,85:151,86:Ce,87:Ee,88:Re,89:Se,90:Ae,91:Te,92:Me,94:142,95:Le,105:Z,106:J,109:Oe,111:te,112:ne,113:Ie,114:Ne,115:148,122:re,123:ae,124:ie,125:oe,126:se,127:le},e(Be,o,{17:240}),e(j,[2,43]),{51:241,52:m,54:46,66:g,67:v,91:_,95:C,105:E,106:R,109:S,111:A,112:T,116:47,122:N,123:B,124:D,125:F,126:$,127:P},{22:We,66:je,67:Ve,86:Ue,96:242,102:Ke,105:He,107:243,108:244,109:qe,110:Ge,111:Xe,112:Ye,113:Qe},{22:We,66:je,67:Ve,86:Ue,96:256,102:Ke,105:He,107:243,108:244,109:qe,110:Ge,111:Xe,112:Ye,113:Qe},{22:We,66:je,67:Ve,86:Ue,96:257,102:Ke,104:[1,258],105:He,107:243,108:244,109:qe,110:Ge,111:Xe,112:Ye,113:Qe},{22:We,66:je,67:Ve,86:Ue,96:259,102:Ke,104:[1,260],105:He,107:243,108:244,109:qe,110:Ge,111:Xe,112:Ye,113:Qe},{105:[1,261]},{22:We,66:je,67:Ve,86:Ue,96:262,102:Ke,105:He,107:243,108:244,109:qe,110:Ge,111:Xe,112:Ye,113:Qe},{22:We,66:je,67:Ve,86:Ue,96:263,102:Ke,105:He,107:243,108:244,109:qe,110:Ge,111:Xe,112:Ye,113:Qe},{26:q,52:G,66:X,67:Y,91:Q,97:264,105:Z,106:J,109:ee,111:te,112:ne,115:100,117:98,122:re,123:ae,124:ie,125:oe,126:se,127:le},e(he,[2,102]),{84:[1,265]},e(he,[2,106],{22:[1,266]}),e(he,[2,107]),e(he,[2,110]),e(he,[2,112],{22:[1,267]}),e(he,[2,113]),e(ue,[2,58]),e(ue,[2,59]),{22:ge,24:ve,26:ye,38:be,42:we,52:G,58:[1,268],66:X,67:Y,73:xe,81:ke,83:201,85:151,86:Ce,87:Ee,88:Re,89:Se,90:Ae,91:Te,92:Me,94:142,95:Le,105:Z,106:J,109:Oe,111:te,112:ne,113:Ie,114:Ne,115:148,122:re,123:ae,124:ie,125:oe,126:se,127:le},e(ue,[2,66]),e(ue,[2,61]),e(ue,[2,62]),e(ue,[2,63]),{66:[1,269]},e(ue,[2,65]),e(ue,[2,67]),{22:ge,24:ve,26:ye,38:be,42:we,52:G,66:X,67:Y,72:[1,270],73:xe,81:ke,83:201,85:151,86:Ce,87:Ee,88:Re,89:Se,90:Ae,91:Te,92:Me,94:142,95:Le,105:Z,106:J,109:Oe,111:te,112:ne,113:Ie,114:Ne,115:148,122:re,123:ae,124:ie,125:oe,126:se,127:le},e(ue,[2,69]),e(ue,[2,70]),e(ue,[2,72]),e(ue,[2,71]),e(ue,[2,73]),e(Pe,[2,4]),e([22,52,66,67,91,95,105,106,109,111,112,122,123,124,125,126,127],[2,81]),{22:ge,24:ve,26:ye,38:be,41:[1,271],42:we,52:G,66:X,67:Y,73:xe,81:ke,83:201,85:151,86:Ce,87:Ee,88:Re,89:Se,90:Ae,91:Te,92:Me,94:142,95:Le,105:Z,106:J,109:Oe,111:te,112:ne,113:Ie,114:Ne,115:148,122:re,123:ae,124:ie,125:oe,126:se,127:le},{18:18,19:19,20:s,21:l,22:c,23:u,32:24,33:25,34:26,35:27,36:28,37:29,38:d,42:[1,272],43:31,44:h,46:p,48:f,50:35,51:45,52:m,54:46,66:g,67:v,86:y,87:b,88:w,89:x,90:k,91:_,95:C,105:E,106:R,109:S,111:A,112:T,116:47,118:M,119:L,120:O,121:I,122:N,123:B,124:D,125:F,126:$,127:P},e(ce,[2,56]),e(he,[2,115],{106:Ze}),e(Je,[2,125],{108:274,22:We,66:je,67:Ve,86:Ue,102:Ke,105:He,109:qe,110:Ge,111:Xe,112:Ye,113:Qe}),e(et,[2,127]),e(et,[2,129]),e(et,[2,130]),e(et,[2,131]),e(et,[2,132]),e(et,[2,133]),e(et,[2,134]),e(et,[2,135]),e(et,[2,136]),e(et,[2,137]),e(et,[2,138]),e(et,[2,139]),e(he,[2,116],{106:Ze}),e(he,[2,117],{106:Ze}),{22:[1,275]},e(he,[2,118],{106:Ze}),{22:[1,276]},e(ze,[2,124]),e(he,[2,98],{106:Ze}),e(he,[2,99],{106:Ze}),e(he,[2,100],{115:100,117:178,26:q,52:G,66:X,67:Y,91:Q,105:Z,106:J,109:ee,111:te,112:ne,122:re,123:ae,124:ie,125:oe,126:se,127:le}),e(he,[2,104]),{101:[1,277]},{101:[1,278]},{58:[1,279]},{68:[1,280]},{72:[1,281]},{9:282,20:V,21:U,23:K},e(j,[2,42]),{22:We,66:je,67:Ve,86:Ue,102:Ke,105:He,107:283,108:244,109:qe,110:Ge,111:Xe,112:Ye,113:Qe},e(et,[2,128]),{26:q,52:G,66:X,67:Y,91:Q,97:284,105:Z,106:J,109:ee,111:te,112:ne,115:100,117:98,122:re,123:ae,124:ie,125:oe,126:se,127:le},{26:q,52:G,66:X,67:Y,91:Q,97:285,105:Z,106:J,109:ee,111:te,112:ne,115:100,117:98,122:re,123:ae,124:ie,125:oe,126:se,127:le},e(he,[2,108]),e(he,[2,114]),e(ue,[2,60]),{22:ge,24:ve,26:ye,38:be,39:286,42:we,52:G,66:X,67:Y,73:xe,81:ke,83:140,84:_e,85:151,86:Ce,87:Ee,88:Re,89:Se,90:Ae,91:Te,92:Me,94:142,95:Le,105:Z,106:J,109:Oe,111:te,112:ne,113:Ie,114:Ne,115:148,122:re,123:ae,124:ie,125:oe,126:se,127:le},e(ue,[2,68]),e(Be,o,{17:287}),e(Je,[2,126],{108:274,22:We,66:je,67:Ve,86:Ue,102:Ke,105:He,109:qe,110:Ge,111:Xe,112:Ye,113:Qe}),e(he,[2,121],{115:100,117:178,22:[1,288],26:q,52:G,66:X,67:Y,91:Q,105:Z,106:J,109:ee,111:te,112:ne,122:re,123:ae,124:ie,125:oe,126:se,127:le}),e(he,[2,122],{115:100,117:178,22:[1,289],26:q,52:G,66:X,67:Y,91:Q,105:Z,106:J,109:ee,111:te,112:ne,122:re,123:ae,124:ie,125:oe,126:se,127:le}),{22:ge,24:ve,26:ye,38:be,41:[1,290],42:we,52:G,66:X,67:Y,73:xe,81:ke,83:201,85:151,86:Ce,87:Ee,88:Re,89:Se,90:Ae,91:Te,92:Me,94:142,95:Le,105:Z,106:J,109:Oe,111:te,112:ne,113:Ie,114:Ne,115:148,122:re,123:ae,124:ie,125:oe,126:se,127:le},{18:18,19:19,20:s,21:l,22:c,23:u,32:24,33:25,34:26,35:27,36:28,37:29,38:d,42:[1,291],43:31,44:h,46:p,48:f,50:35,51:45,52:m,54:46,66:g,67:v,86:y,87:b,88:w,89:x,90:k,91:_,95:C,105:E,106:R,109:S,111:A,112:T,116:47,118:M,119:L,120:O,121:I,122:N,123:B,124:D,125:F,126:$,127:P},{22:We,66:je,67:Ve,86:Ue,96:292,102:Ke,105:He,107:243,108:244,109:qe,110:Ge,111:Xe,112:Ye,113:Qe},{22:We,66:je,67:Ve,86:Ue,96:293,102:Ke,105:He,107:243,108:244,109:qe,110:Ge,111:Xe,112:Ye,113:Qe},e(ue,[2,64]),e(j,[2,41]),e(he,[2,119],{106:Ze}),e(he,[2,120],{106:Ze})],defaultActions:{2:[2,1],9:[2,5],10:[2,2],132:[2,7]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],r=[],a=[null],i=[],o=this.table,s="",l=0,c=0,u=2,d=1,h=i.slice.call(arguments,1),p=Object.create(this.lexer),f={yy:{}};for(var m in this.yy)Object.prototype.hasOwnProperty.call(this.yy,m)&&(f.yy[m]=this.yy[m]);p.setInput(e,f.yy),f.yy.lexer=p,f.yy.parser=this,"undefined"==typeof p.yylloc&&(p.yylloc={});var g=p.yylloc;i.push(g);var v=p.options&&p.options.ranges;function y(){var e;return e=r.pop()||p.lex()||d,"number"!==typeof e&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}"function"===typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;var b,w,x,k,_,C,E,R,S={};while(1){if(w=n[n.length-1],this.defaultActions[w]?x=this.defaultActions[w]:(null!==b&&"undefined"!=typeof b||(b=y()),x=o[w]&&o[w][b]),"undefined"===typeof x||!x.length||!x[0]){var A="";for(_ in R=[],o[w])this.terminals_[_]&&_>u&&R.push("'"+this.terminals_[_]+"'");A=p.showPosition?"Parse error on line "+(l+1)+":\n"+p.showPosition()+"\nExpecting "+R.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(l+1)+": Unexpected "+(b==d?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(A,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:g,expected:R})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+b);switch(x[0]){case 1:n.push(b),a.push(p.yytext),i.push(p.yylloc),n.push(x[1]),b=null,c=p.yyleng,s=p.yytext,l=p.yylineno,g=p.yylloc;break;case 2:if(C=this.productions_[x[1]][1],S.$=a[a.length-C],S._$={first_line:i[i.length-(C||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(C||1)].first_column,last_column:i[i.length-1].last_column},v&&(S._$.range=[i[i.length-(C||1)].range[0],i[i.length-1].range[1]]),k=this.performAction.apply(S,[s,c,l,f.yy,x[1],a,i].concat(h)),"undefined"!==typeof k)return k;C&&(n=n.slice(0,-1*C*2),a=a.slice(0,-1*C),i=i.slice(0,-1*C)),n.push(this.productions_[x[1]][0]),a.push(S.$),i.push(S._$),E=o[n[n.length-2]][n[n.length-1]],n.push(E);break;case 3:return!0}}return!0}},nt=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e;var t=e.match(/(?:\r\n?|\n).*/g);return t?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var a=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,a;if(this.options.backtrack_lexer&&(a={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(a.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var i in a)this[i]=a[i];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var a=this._currentRules(),i=0;i<a.length;i++)if(n=this._input.match(this.rules[a[i]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=i,this.options.backtrack_lexer){if(e=this.test_match(n,a[i]),!1!==e)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,a[r]),!1!==e&&e):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){var e=this.conditionStack.length-1;return e>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions["INITIAL"].rules},topState:function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(e,t,n,r){switch(n){case 0:return this.begin("open_directive"),12;case 1:return this.begin("type_directive"),13;case 2:return this.popState(),this.begin("arg_directive"),10;case 3:return this.popState(),this.popState(),15;case 4:return 14;case 5:break;case 6:break;case 7:return this.begin("acc_title"),44;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),46;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:this.begin("string");break;case 15:this.popState();break;case 16:return"STR";case 17:return 86;case 18:return 95;case 19:return 87;case 20:return 104;case 21:return 88;case 22:return 89;case 23:this.begin("href");break;case 24:this.popState();break;case 25:return 100;case 26:this.begin("callbackname");break;case 27:this.popState();break;case 28:this.popState(),this.begin("callbackargs");break;case 29:return 98;case 30:this.popState();break;case 31:return 99;case 32:this.begin("click");break;case 33:this.popState();break;case 34:return 90;case 35:return e.lex.firstGraph()&&this.begin("dir"),24;case 36:return e.lex.firstGraph()&&this.begin("dir"),24;case 37:return e.lex.firstGraph()&&this.begin("dir"),24;case 38:return 38;case 39:return 42;case 40:return 101;case 41:return 101;case 42:return 101;case 43:return 101;case 44:return this.popState(),25;case 45:return this.popState(),26;case 46:return this.popState(),26;case 47:return this.popState(),26;case 48:return this.popState(),26;case 49:return this.popState(),26;case 50:return this.popState(),26;case 51:return this.popState(),26;case 52:return this.popState(),26;case 53:return this.popState(),26;case 54:return this.popState(),26;case 55:return 118;case 56:return 119;case 57:return 120;case 58:return 121;case 59:return 105;case 60:return 111;case 61:return 53;case 62:return 67;case 63:return 52;case 64:return 20;case 65:return 106;case 66:return 126;case 67:return 82;case 68:return 82;case 69:return 82;case 70:return 81;case 71:return 81;case 72:return 81;case 73:return 59;case 74:return 60;case 75:return 61;case 76:return 62;case 77:return 63;case 78:return 64;case 79:return 65;case 80:return 69;case 81:return 70;case 82:return 55;case 83:return 56;case 84:return 109;case 85:return 112;case 86:return 127;case 87:return 124;case 88:return 113;case 89:return 125;case 90:return 125;case 91:return 114;case 92:return 73;case 93:return 92;case 94:return"SEP";case 95:return 91;case 96:return 66;case 97:return 75;case 98:return 74;case 99:return 77;case 100:return 76;case 101:return 122;case 102:return 123;case 103:return 68;case 104:return 57;case 105:return 58;case 106:return 40;case 107:return 41;case 108:return 71;case 109:return 72;case 110:return 133;case 111:return 21;case 112:return 22;case 113:return 23}},rules:[/^(?:%%\{)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)[^\n]*)/,/^(?:[^\}]%%[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s]+["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\[)/,/^(?:\]\))/,/^(?:\[\[)/,/^(?:\]\])/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\])/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:-)/,/^(?:\.)/,/^(?:[\_])/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:[A-Za-z]+)/,/^(?:\\\])/,/^(?:\[\/)/,/^(?:\/\])/,/^(?:\[\\)/,/^(?:[!"#$%&'*+,-.`?\\_/])/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\()/,/^(?:\))/,/^(?:\[)/,/^(?:\])/,/^(?:\{)/,/^(?:\})/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},callbackargs:{rules:[30,31],inclusive:!1},callbackname:{rules:[27,28,29],inclusive:!1},href:{rules:[24,25],inclusive:!1},click:{rules:[33,34],inclusive:!1},vertex:{rules:[],inclusive:!1},dir:{rules:[44,45,46,47,48,49,50,51,52,53,54],inclusive:!1},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},string:{rules:[15,16],inclusive:!1},INITIAL:{rules:[0,5,6,7,9,11,14,17,18,19,20,21,22,23,26,32,35,36,37,38,39,40,41,42,43,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113],inclusive:!0}}};return e}();function rt(){this.yy={}}return tt.lexer=nt,rt.prototype=tt,tt.Parser=rt,new rt}();zh.parser=zh;const Wh=zh,jh=(e,t)=>{var n,r;return"dagre-wrapper"!==(null==(n=null==t?void 0:t.flowchart)?void 0:n.defaultRenderer)&&("elk"!==(null==(r=null==t?void 0:t.flowchart)?void 0:r.defaultRenderer)&&null!==e.match(/^\s*graph/))},Vh=(e,t)=>{var n,r;return"dagre-d3"!==(null==(n=null==t?void 0:t.flowchart)?void 0:n.defaultRenderer)&&("elk"!==(null==(r=null==t?void 0:t.flowchart)?void 0:r.defaultRenderer)&&(null!==e.match(/^\s*graph/)||null!==e.match(/^\s*flowchart/)))},Uh="flowchart-";let Kh,Hh,qh=0,Gh=wi(),Xh={},Yh=[],Qh={},Zh=[],Jh={},ep={},tp=0,np=!0,rp=[];const ap=e=>ft.sanitizeText(e,Gh),ip=function(e,t,n){m_.parseDirective(this,e,t,n)},op=function(e){const t=Object.keys(Xh);for(const n of t)if(Xh[n].id===e)return Xh[n].domId;return e},sp=function(e,t,n,r,a,i,o={}){let s,l=e;void 0!==l&&0!==l.trim().length&&(void 0===Xh[l]&&(Xh[l]={id:l,domId:Uh+l+"-"+qh,styles:[],classes:[]}),qh++,void 0!==t?(Gh=wi(),s=ap(t.trim()),'"'===s[0]&&'"'===s[s.length-1]&&(s=s.substring(1,s.length-1)),Xh[l].text=s):void 0===Xh[l].text&&(Xh[l].text=e),void 0!==n&&(Xh[l].type=n),void 0!==r&&null!==r&&r.forEach((function(e){Xh[l].styles.push(e)})),void 0!==a&&null!==a&&a.forEach((function(e){Xh[l].classes.push(e)})),void 0!==i&&(Xh[l].dir=i),void 0===Xh[l].props?Xh[l].props=o:void 0!==o&&Object.assign(Xh[l].props,o))},lp=function(e,t,n,r){let a=e,i=t;const o={start:a,end:i,type:void 0,text:""};r=n.text,void 0!==r&&(o.text=ap(r.trim()),'"'===o.text[0]&&'"'===o.text[o.text.length-1]&&(o.text=o.text.substring(1,o.text.length-1))),void 0!==n&&(o.type=n.type,o.stroke=n.stroke,o.length=n.length),Yh.push(o)},cp=function(e,t,n,r){let a,i;for(a=0;a<e.length;a++)for(i=0;i<t.length;i++)lp(e[a],t[i],n,r)},up=function(e,t){e.forEach((function(e){"default"===e?Yh.defaultInterpolate=t:Yh[e].interpolate=t}))},dp=function(e,t){e.forEach((function(e){"default"===e?Yh.defaultStyle=t:(-1===si.isSubstringInArray("fill",t)&&t.push("fill:none"),Yh[e].style=t)}))},hp=function(e,t){void 0===Qh[e]&&(Qh[e]={id:e,styles:[],textStyles:[]}),void 0!==t&&null!==t&&t.forEach((function(t){if(t.match("color")){const n=t.replace("fill","bgFill"),r=n.replace("color","fill");Qh[e].textStyles.push(r)}Qh[e].styles.push(t)}))},pp=function(e){Kh=e,Kh.match(/.*</)&&(Kh="RL"),Kh.match(/.*\^/)&&(Kh="BT"),Kh.match(/.*>/)&&(Kh="LR"),Kh.match(/.*v/)&&(Kh="TB"),"TD"===Kh&&(Kh="TB")},fp=function(e,t){e.split(",").forEach((function(e){let n=e;void 0!==Xh[n]&&Xh[n].classes.push(t),void 0!==Jh[n]&&Jh[n].classes.push(t)}))},mp=function(e,t){e.split(",").forEach((function(e){void 0!==t&&(ep["gen-1"===Hh?op(e):e]=ap(t))}))},gp=function(e,t,n){let r=op(e);if("loose"!==wi().securityLevel)return;if(void 0===t)return;let a=[];if("string"===typeof n){a=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let e=0;e<a.length;e++){let t=a[e].trim();'"'===t.charAt(0)&&'"'===t.charAt(t.length-1)&&(t=t.substr(1,t.length-2)),a[e]=t}}0===a.length&&a.push(e),void 0!==Xh[e]&&(Xh[e].haveCallback=!0,rp.push((function(){const e=document.querySelector(`[id="${r}"]`);null!==e&&e.addEventListener("click",(function(){si.runFunc(t,...a)}),!1)})))},vp=function(e,t,n){e.split(",").forEach((function(e){void 0!==Xh[e]&&(Xh[e].link=si.formatUrl(t,Gh),Xh[e].linkTarget=n)})),fp(e,"clickable")},yp=function(e){return ep[e]},bp=function(e,t,n){e.split(",").forEach((function(e){gp(e,t,n)})),fp(e,"clickable")},wp=function(e){rp.forEach((function(t){t(e)}))},xp=function(){return Kh.trim()},kp=function(){return Xh},_p=function(){return Yh},Cp=function(){return Qh},Ep=function(e){let t=(0,s.Ltv)(".mermaidTooltip");null===(t._groups||t)[0][0]&&(t=(0,s.Ltv)("body").append("div").attr("class","mermaidTooltip").style("opacity",0));const n=(0,s.Ltv)(e).select("svg"),r=n.selectAll("g.node");r.on("mouseover",(function(){const e=(0,s.Ltv)(this),n=e.attr("title");if(null===n)return;const r=this.getBoundingClientRect();t.transition().duration(200).style("opacity",".9"),t.text(e.attr("title")).style("left",window.scrollX+r.left+(r.right-r.left)/2+"px").style("top",window.scrollY+r.top-14+document.body.scrollTop+"px"),t.html(t.html().replace(/&lt;br\/&gt;/g,"<br/>")),e.classed("hover",!0)})).on("mouseout",(function(){t.transition().duration(500).style("opacity",0);const e=(0,s.Ltv)(this);e.classed("hover",!1)}))};rp.push(Ep);const Rp=function(e="gen-1"){Xh={},Qh={},Yh=[],rp=[Ep],Zh=[],Jh={},tp=0,ep=[],np=!0,Hh=e,uo()},Sp=e=>{Hh=e||"gen-2"},Ap=function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},Tp=function(e,t,n){let r=e.trim(),a=n;function i(e){const t={boolean:{},number:{},string:{}},n=[];let r;const a=e.filter((function(e){const a=typeof e;return e.stmt&&"dir"===e.stmt?(r=e.value,!1):""!==e.trim()&&(a in t?!t[a].hasOwnProperty(e)&&(t[a][e]=!0):!n.includes(e)&&n.push(e))}));return{nodeList:a,dir:r}}e===n&&n.match(/\s/)&&(r=void 0);let o=[];const{nodeList:s,dir:l}=i(o.concat.apply(o,t));if(o=s,"gen-1"===Hh)for(let u=0;u<o.length;u++)o[u]=op(o[u]);r=r||"subGraph"+tp,a=a||"",a=ap(a),tp+=1;const c={id:r,nodes:o,title:a.trim(),classes:[],dir:l};return Ze.info("Adding",c.id,c.nodes,c.dir),c.nodes=Vp(c,Zh).nodes,Zh.push(c),Jh[r]=c,r},Mp=function(e){for(const[t,n]of Zh.entries())if(n.id===e)return t;return-1};let Lp=-1;const Op=[],Ip=function(e,t){const n=Zh[t].nodes;if(Lp+=1,Lp>2e3)return;if(Op[Lp]=t,Zh[t].id===e)return{result:!0,count:0};let r=0,a=1;while(r<n.length){const t=Mp(n[r]);if(t>=0){const n=Ip(e,t);if(n.result)return{result:!0,count:a+n.count};a+=n.count}r+=1}return{result:!1,count:a}},Np=function(e){return Op[e]},Bp=function(){Lp=-1,Zh.length>0&&Ip("none",Zh.length-1)},Dp=function(){return Zh},Fp=()=>!!np&&(np=!1,!0),$p=e=>{let t=e.trim(),n="arrow_open";switch(t[0]){case"<":n="arrow_point",t=t.slice(1);break;case"x":n="arrow_cross",t=t.slice(1);break;case"o":n="arrow_circle",t=t.slice(1);break}let r="normal";return t.includes("=")&&(r="thick"),t.includes(".")&&(r="dotted"),{type:n,stroke:r}},Pp=(e,t)=>{const n=t.length;let r=0;for(let a=0;a<n;++a)t[a]===e&&++r;return r},zp=e=>{const t=e.trim();let n=t.slice(0,-1),r="arrow_open";switch(t.slice(-1)){case"x":r="arrow_cross","x"===t[0]&&(r="double_"+r,n=n.slice(1));break;case">":r="arrow_point","<"===t[0]&&(r="double_"+r,n=n.slice(1));break;case"o":r="arrow_circle","o"===t[0]&&(r="double_"+r,n=n.slice(1));break}let a="normal",i=n.length-1;"="===n[0]&&(a="thick");let o=Pp(".",n);return o&&(a="dotted",i=o),{type:r,stroke:a,length:i}},Wp=(e,t)=>{const n=zp(e);let r;if(t){if(r=$p(t),r.stroke!==n.stroke)return{type:"INVALID",stroke:"INVALID"};if("arrow_open"===r.type)r.type=n.type;else{if(r.type!==n.type)return{type:"INVALID",stroke:"INVALID"};r.type="double_"+r.type}return"double_arrow"===r.type&&(r.type="double_arrow_point"),r.length=n.length,r}return n},jp=(e,t)=>{let n=!1;return e.forEach((e=>{const r=e.nodes.indexOf(t);r>=0&&(n=!0)})),n},Vp=(e,t)=>{const n=[];return e.nodes.forEach(((r,a)=>{jp(t,r)||n.push(e.nodes[a])})),{nodes:n}},Up={firstGraph:Fp},Kp={parseDirective:ip,defaultConfig:()=>ci.flowchart,setAccTitle:ho,getAccTitle:po,getAccDescription:mo,setAccDescription:fo,addVertex:sp,lookUpDomId:op,addLink:cp,updateLinkInterpolate:up,updateLink:dp,addClass:hp,setDirection:pp,setClass:fp,setTooltip:mp,getTooltip:yp,setClickEvent:bp,setLink:vp,bindFunctions:wp,getDirection:xp,getVertices:kp,getEdges:_p,getClasses:Cp,clear:Rp,setGen:Sp,defaultStyle:Ap,addSubGraph:Tp,getDepthFirstPos:Np,indexNodes:Bp,getSubGraphs:Dp,destructLink:Wp,lex:Up,exists:jp,makeUniq:Vp,setDiagramTitle:go,getDiagramTitle:vo},Hp=Object.freeze(Object.defineProperty({__proto__:null,addClass:hp,addLink:cp,addSingleLink:lp,addSubGraph:Tp,addVertex:sp,bindFunctions:wp,clear:Rp,default:Kp,defaultStyle:Ap,destructLink:Wp,firstGraph:Fp,getClasses:Cp,getDepthFirstPos:Np,getDirection:xp,getEdges:_p,getSubGraphs:Dp,getTooltip:yp,getVertices:kp,indexNodes:Bp,lex:Up,lookUpDomId:op,parseDirective:ip,setClass:fp,setClickEvent:bp,setDirection:pp,setGen:Sp,setLink:vp,updateLink:dp,updateLinkInterpolate:up},Symbol.toStringTag,{value:"Module"}));function qp(e,t,n){const r=t.width,a=t.height,i=.9*(r+a),o=[{x:i/2,y:0},{x:i,y:-i/2},{x:i/2,y:-i},{x:0,y:-i/2}],s=sf(e,i,i,o);return n.intersect=function(e){return(0,je.k)(n,o,e)},s}function Gp(e,t,n){const r=4,a=t.height,i=a/r,o=t.width+2*i,s=[{x:i,y:0},{x:o-i,y:0},{x:o,y:-a/2},{x:o-i,y:-a},{x:i,y:-a},{x:0,y:-a/2}],l=sf(e,o,a,s);return n.intersect=function(e){return(0,je.k)(n,s,e)},l}function Xp(e,t,n){const r=t.width,a=t.height,i=[{x:-a/2,y:0},{x:r,y:0},{x:r,y:-a},{x:-a/2,y:-a},{x:0,y:-a/2}],o=sf(e,r,a,i);return n.intersect=function(e){return(0,je.k)(n,i,e)},o}function Yp(e,t,n){const r=t.width,a=t.height,i=[{x:-2*a/6,y:0},{x:r-a/6,y:0},{x:r+2*a/6,y:-a},{x:a/6,y:-a}],o=sf(e,r,a,i);return n.intersect=function(e){return(0,je.k)(n,i,e)},o}function Qp(e,t,n){const r=t.width,a=t.height,i=[{x:2*a/6,y:0},{x:r+a/6,y:0},{x:r-2*a/6,y:-a},{x:-a/6,y:-a}],o=sf(e,r,a,i);return n.intersect=function(e){return(0,je.k)(n,i,e)},o}function Zp(e,t,n){const r=t.width,a=t.height,i=[{x:-2*a/6,y:0},{x:r+2*a/6,y:0},{x:r-a/6,y:-a},{x:a/6,y:-a}],o=sf(e,r,a,i);return n.intersect=function(e){return(0,je.k)(n,i,e)},o}function Jp(e,t,n){const r=t.width,a=t.height,i=[{x:a/6,y:0},{x:r-a/6,y:0},{x:r+2*a/6,y:-a},{x:-2*a/6,y:-a}],o=sf(e,r,a,i);return n.intersect=function(e){return(0,je.k)(n,i,e)},o}function ef(e,t,n){const r=t.width,a=t.height,i=[{x:0,y:0},{x:r+a/2,y:0},{x:r,y:-a/2},{x:r+a/2,y:-a},{x:0,y:-a}],o=sf(e,r,a,i);return n.intersect=function(e){return(0,je.k)(n,i,e)},o}function tf(e,t,n){const r=t.height,a=t.width+r/4,i=e.insert("rect",":first-child").attr("rx",r/2).attr("ry",r/2).attr("x",-a/2).attr("y",-r/2).attr("width",a).attr("height",r);return n.intersect=function(e){return(0,Ve.C)(n,e)},i}function nf(e,t,n){const r=t.width,a=t.height,i=[{x:0,y:0},{x:r,y:0},{x:r,y:-a},{x:0,y:-a},{x:0,y:0},{x:-8,y:0},{x:r+8,y:0},{x:r+8,y:-a},{x:-8,y:-a},{x:-8,y:0}],o=sf(e,r,a,i);return n.intersect=function(e){return(0,je.k)(n,i,e)},o}function rf(e,t,n){const r=t.width,a=r/2,i=a/(2.5+r/50),o=t.height+i,s="M 0,"+i+" a "+a+","+i+" 0,0,0 "+r+" 0 a "+a+","+i+" 0,0,0 "+-r+" 0 l 0,"+o+" a "+a+","+i+" 0,0,0 "+r+" 0 l 0,"+-o,l=e.attr("label-offset-y",i).insert("path",":first-child").attr("d",s).attr("transform","translate("+-r/2+","+-(o/2+i)+")");return n.intersect=function(e){const t=(0,Ve.C)(n,e),r=t.x-n.x;if(0!=a&&(Math.abs(r)<n.width/2||Math.abs(r)==n.width/2&&Math.abs(t.y-n.y)>n.height/2-i)){let o=i*i*(1-r*r/(a*a));0!=o&&(o=Math.sqrt(o)),o=i-o,e.y-n.y>0&&(o=-o),t.y+=o}return t},l}function af(e){e.shapes().question=qp,e.shapes().hexagon=Gp,e.shapes().stadium=tf,e.shapes().subroutine=nf,e.shapes().cylinder=rf,e.shapes().rect_left_inv_arrow=Xp,e.shapes().lean_right=Yp,e.shapes().lean_left=Qp,e.shapes().trapezoid=Zp,e.shapes().inv_trapezoid=Jp,e.shapes().rect_right_inv_arrow=ef}function of(e){e({question:qp}),e({hexagon:Gp}),e({stadium:tf}),e({subroutine:nf}),e({cylinder:rf}),e({rect_left_inv_arrow:Xp}),e({lean_right:Yp}),e({lean_left:Qp}),e({trapezoid:Zp}),e({inv_trapezoid:Jp}),e({rect_right_inv_arrow:ef})}function sf(e,t,n,r){return e.insert("polygon",":first-child").attr("points",r.map((function(e){return e.x+","+e.y})).join(" ")).attr("transform","translate("+-t/2+","+n/2+")")}const lf={addToRender:af,addToRenderV2:of},cf={},uf=function(e){const t=Object.keys(e);for(const n of t)cf[n]=e[n]},df=function(e,t,n,r,a,i){const o=r?r.select(`[id="${n}"]`):(0,s.Ltv)(`[id="${n}"]`),l=a||document,c=Object.keys(e);c.forEach((function(n){const r=e[n];let a="default";r.classes.length>0&&(a=r.classes.join(" "));const s=za(r.styles);let c,u=void 0!==r.text?r.text:r.id;if(ht(wi().flowchart.htmlLabels)){const e={label:u.replace(/fa[blrs]?:fa-[\w-]+/g,(e=>`<i class='${e.replace(":"," ")}'></i>`))};c=(0,We.H)(o,e).node(),c.parentNode.removeChild(c)}else{const e=l.createElementNS("http://www.w3.org/2000/svg","text");e.setAttribute("style",s.labelStyle.replace("color:","fill:"));const t=u.split(ft.lineBreakRegex);for(const n of t){const t=l.createElementNS("http://www.w3.org/2000/svg","tspan");t.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),t.setAttribute("dy","1em"),t.setAttribute("x","1"),t.textContent=n,e.appendChild(t)}c=e}let d=0,h="";switch(r.type){case"round":d=5,h="rect";break;case"square":h="rect";break;case"diamond":h="question";break;case"hexagon":h="hexagon";break;case"odd":h="rect_left_inv_arrow";break;case"lean_right":h="lean_right";break;case"lean_left":h="lean_left";break;case"trapezoid":h="trapezoid";break;case"inv_trapezoid":h="inv_trapezoid";break;case"odd_right":h="rect_left_inv_arrow";break;case"circle":h="circle";break;case"ellipse":h="ellipse";break;case"stadium":h="stadium";break;case"subroutine":h="subroutine";break;case"cylinder":h="cylinder";break;case"group":h="rect";break;default:h="rect"}Ze.warn("Adding node",r.id,r.domId),t.setNode(i.db.lookUpDomId(r.id),{labelType:"svg",labelStyle:s.labelStyle,shape:h,label:c,rx:d,ry:d,class:a,style:s.style,id:i.db.lookUpDomId(r.id)})}))},hf=function(e,t,n){let r,a,i=0;if(void 0!==e.defaultStyle){const t=za(e.defaultStyle);r=t.style,a=t.labelStyle}e.forEach((function(o){i++;var l="L-"+o.start+"-"+o.end,c="LS-"+o.start,u="LE-"+o.end;const d={};"arrow_open"===o.type?d.arrowhead="none":d.arrowhead="normal";let h="",p="";if(void 0!==o.style){const e=za(o.style);h=e.style,p=e.labelStyle}else switch(o.stroke){case"normal":h="fill:none",void 0!==r&&(h=r),void 0!==a&&(p=a);break;case"dotted":h="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":h=" stroke-width: 3.5px;fill:none";break}d.style=h,d.labelStyle=p,void 0!==o.interpolate?d.curve=Oa(o.interpolate,s.lUB):void 0!==e.defaultInterpolate?d.curve=Oa(e.defaultInterpolate,s.lUB):d.curve=Oa(cf.curve,s.lUB),void 0===o.text?void 0!==o.style&&(d.arrowheadStyle="fill: #333"):(d.arrowheadStyle="fill: #333",d.labelpos="c",ht(wi().flowchart.htmlLabels)?(d.labelType="html",d.label=`<span id="L-${l}" class="edgeLabel L-${c}' L-${u}" style="${d.labelStyle}">${o.text.replace(/fa[blrs]?:fa-[\w-]+/g,(e=>`<i class='${e.replace(":"," ")}'></i>`))}</span>`):(d.labelType="text",d.label=o.text.replace(ft.lineBreakRegex,"\n"),void 0===o.style&&(d.style=d.style||"stroke: #333; stroke-width: 1.5px;fill:none"),d.labelStyle=d.labelStyle.replace("color:","fill:"))),d.id=l,d.class=c+" "+u,d.minlen=o.length||1,t.setEdge(n.db.lookUpDomId(o.start),n.db.lookUpDomId(o.end),d,i)}))},pf=function(e,t){Ze.info("Extracting classes"),t.db.clear();try{return t.parse(e),t.db.getClasses()}catch(n){return Ze.error(n),{}}},ff=function(e,t,n,r){Ze.info("Drawing flowchart"),r.db.clear();const{securityLevel:a,flowchart:i}=wi();let o;"sandbox"===a&&(o=(0,s.Ltv)("#i"+t));const l="sandbox"===a?(0,s.Ltv)(o.nodes()[0].contentDocument.body):(0,s.Ltv)("body"),c="sandbox"===a?o.nodes()[0].contentDocument:document;try{r.parser.parse(e)}catch(_){Ze.debug("Parsing failed")}let u=r.db.getDirection();void 0===u&&(u="TD");const d=i.nodeSpacing||50,h=i.rankSpacing||50,p=new we.T({multigraph:!0,compound:!0}).setGraph({rankdir:u,nodesep:d,ranksep:h,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}}));let f;const m=r.db.getSubGraphs();for(let s=m.length-1;s>=0;s--)f=m[s],r.db.addVertex(f.id,f.title,"group",void 0,f.classes);const g=r.db.getVertices();Ze.warn("Get vertices",g);const v=r.db.getEdges();let y=0;for(y=m.length-1;y>=0;y--){f=m[y],(0,s.Ubm)("cluster").append("text");for(let e=0;e<f.nodes.length;e++)Ze.warn("Setting subgraph",f.nodes[e],r.db.lookUpDomId(f.nodes[e]),r.db.lookUpDomId(f.id)),p.setParent(r.db.lookUpDomId(f.nodes[e]),r.db.lookUpDomId(f.id))}df(g,p,t,l,c,r),hf(v,p,r);const b=new Pe.XX;lf.addToRender(b),b.arrows().none=function(e,t,n,r){const a=e.append("marker").attr("id",t).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),i=a.append("path").attr("d","M 0 0 L 0 0 L 0 0 z");(0,ze.AV)(i,n[r+"Style"])},b.arrows().normal=function(e,t){const n=e.append("marker").attr("id",t).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto");n.append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowheadPath").style("stroke-width",1).style("stroke-dasharray","1,0")};const w=l.select(`[id="${t}"]`),x=l.select("#"+t+" g");for(b(x,p),x.selectAll("g.node").attr("title",(function(){return r.db.getTooltip(this.id)})),r.db.indexNodes("subGraph"+y),y=0;y<m.length;y++)if(f=m[y],"undefined"!==f.title){const e=c.querySelectorAll("#"+t+' [id="'+r.db.lookUpDomId(f.id)+'"] rect'),n=c.querySelectorAll("#"+t+' [id="'+r.db.lookUpDomId(f.id)+'"]'),a=e[0].x.baseVal.value,i=e[0].y.baseVal.value,o=e[0].width.baseVal.value,l=(0,s.Ltv)(n[0]),u=l.select(".label");u.attr("transform",`translate(${a+o/2}, ${i+14})`),u.attr("id",t+"Text");for(let t=0;t<f.classes.length;t++)n[0].classList.add(f.classes[t])}if(!i.htmlLabels){const e=c.querySelectorAll('[id="'+t+'"] .edgeLabel .label');for(const t of e){const e=t.getBBox(),n=c.createElementNS("http://www.w3.org/2000/svg","rect");n.setAttribute("rx",0),n.setAttribute("ry",0),n.setAttribute("width",e.width),n.setAttribute("height",e.height),t.insertBefore(n,t.firstChild)}}Li(p,w,i.diagramPadding,i.useMaxWidth);const k=Object.keys(g);k.forEach((function(e){const n=g[e];if(n.link){const i=l.select("#"+t+' [id="'+r.db.lookUpDomId(e)+'"]');if(i){const e=c.createElementNS("http://www.w3.org/2000/svg","a");e.setAttributeNS("http://www.w3.org/2000/svg","class",n.classes.join(" ")),e.setAttributeNS("http://www.w3.org/2000/svg","href",n.link),e.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),"sandbox"===a?e.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):n.linkTarget&&e.setAttributeNS("http://www.w3.org/2000/svg","target",n.linkTarget);const t=i.insert((function(){return e}),":first-child"),r=i.select(".label-container");r&&t.append((function(){return r.node()}));const o=i.select(".label");o&&t.append((function(){return o.node()}))}}}))},mf={setConf:uf,addVertices:df,addEdges:hf,getClasses:pf,draw:ff},gf={},vf=function(e){const t=Object.keys(e);for(const n of t)gf[n]=e[n]},yf=function(e,t,n,r,a,i){const o=r.select(`[id="${n}"]`),s=Object.keys(e);s.forEach((function(n){const r=e[n];let s="default";r.classes.length>0&&(s=r.classes.join(" "));const l=za(r.styles);let c,u=void 0!==r.text?r.text:r.id;if(ht(wi().flowchart.htmlLabels)){const e={label:u.replace(/fa[blrs]?:fa-[\w-]+/g,(e=>`<i class='${e.replace(":"," ")}'></i>`))};c=(0,We.H)(o,e).node(),c.parentNode.removeChild(c)}else{const e=a.createElementNS("http://www.w3.org/2000/svg","text");e.setAttribute("style",l.labelStyle.replace("color:","fill:"));const t=u.split(ft.lineBreakRegex);for(const n of t){const t=a.createElementNS("http://www.w3.org/2000/svg","tspan");t.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),t.setAttribute("dy","1em"),t.setAttribute("x","1"),t.textContent=n,e.appendChild(t)}c=e}let d=0,h="";switch(r.type){case"round":d=5,h="rect";break;case"square":h="rect";break;case"diamond":h="question";break;case"hexagon":h="hexagon";break;case"odd":h="rect_left_inv_arrow";break;case"lean_right":h="lean_right";break;case"lean_left":h="lean_left";break;case"trapezoid":h="trapezoid";break;case"inv_trapezoid":h="inv_trapezoid";break;case"odd_right":h="rect_left_inv_arrow";break;case"circle":h="circle";break;case"ellipse":h="ellipse";break;case"stadium":h="stadium";break;case"subroutine":h="subroutine";break;case"cylinder":h="cylinder";break;case"group":h="rect";break;case"doublecircle":h="doublecircle";break;default:h="rect"}t.setNode(r.id,{labelStyle:l.labelStyle,shape:h,labelText:u,rx:d,ry:d,class:s,style:l.style,id:r.id,link:r.link,linkTarget:r.linkTarget,tooltip:i.db.getTooltip(r.id)||"",domId:i.db.lookUpDomId(r.id),haveCallback:r.haveCallback,width:"group"===r.type?500:void 0,dir:r.dir,type:r.type,props:r.props,padding:wi().flowchart.padding}),Ze.info("setNode",{labelStyle:l.labelStyle,shape:h,labelText:u,rx:d,ry:d,class:s,style:l.style,id:r.id,domId:i.db.lookUpDomId(r.id),width:"group"===r.type?500:void 0,type:r.type,dir:r.dir,props:r.props,padding:wi().flowchart.padding})}))},bf=function(e,t,n){Ze.info("abc78 edges = ",e);let r,a,i=0,o={};if(void 0!==e.defaultStyle){const t=za(e.defaultStyle);r=t.style,a=t.labelStyle}e.forEach((function(n){i++;var l="L-"+n.start+"-"+n.end;void 0===o[l]?(o[l]=0,Ze.info("abc78 new entry",l,o[l])):(o[l]++,Ze.info("abc78 new entry",l,o[l]));let c=l+"-"+o[l];Ze.info("abc78 new link id to be used is",l,c,o[l]);var u="LS-"+n.start,d="LE-"+n.end;const h={style:"",labelStyle:""};switch(h.minlen=n.length||1,"arrow_open"===n.type?h.arrowhead="none":h.arrowhead="normal",h.arrowTypeStart="arrow_open",h.arrowTypeEnd="arrow_open",n.type){case"double_arrow_cross":h.arrowTypeStart="arrow_cross";case"arrow_cross":h.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":h.arrowTypeStart="arrow_point";case"arrow_point":h.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":h.arrowTypeStart="arrow_circle";case"arrow_circle":h.arrowTypeEnd="arrow_circle";break}let p="",f="";switch(n.stroke){case"normal":p="fill:none;",void 0!==r&&(p=r),void 0!==a&&(f=a),h.thickness="normal",h.pattern="solid";break;case"dotted":h.thickness="normal",h.pattern="dotted",h.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":h.thickness="thick",h.pattern="solid",h.style="stroke-width: 3.5px;fill:none;";break}if(void 0!==n.style){const e=za(n.style);p=e.style,f=e.labelStyle}h.style=h.style+=p,h.labelStyle=h.labelStyle+=f,void 0!==n.interpolate?h.curve=Oa(n.interpolate,s.lUB):void 0!==e.defaultInterpolate?h.curve=Oa(e.defaultInterpolate,s.lUB):h.curve=Oa(gf.curve,s.lUB),void 0===n.text?void 0!==n.style&&(h.arrowheadStyle="fill: #333"):(h.arrowheadStyle="fill: #333",h.labelpos="c"),h.labelType="text",h.label=n.text.replace(ft.lineBreakRegex,"\n"),void 0===n.style&&(h.style=h.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),h.labelStyle=h.labelStyle.replace("color:","fill:"),h.id=c,h.classes="flowchart-link "+u+" "+d,t.setEdge(n.start,n.end,h,i)}))},wf=function(e,t){Ze.info("Extracting classes"),t.db.clear();try{return t.parse(e),t.db.getClasses()}catch(n){return}},xf=function(e,t,n,r){Ze.info("Drawing flowchart"),r.db.clear(),Kp.setGen("gen-2"),r.parser.parse(e);let a=r.db.getDirection();void 0===a&&(a="TD");const{securityLevel:i,flowchart:o}=wi(),l=o.nodeSpacing||50,c=o.rankSpacing||50;let u;"sandbox"===i&&(u=(0,s.Ltv)("#i"+t));const d="sandbox"===i?(0,s.Ltv)(u.nodes()[0].contentDocument.body):(0,s.Ltv)("body"),h="sandbox"===i?u.nodes()[0].contentDocument:document,p=new we.T({multigraph:!0,compound:!0}).setGraph({rankdir:a,nodesep:l,ranksep:c,marginx:0,marginy:0}).setDefaultEdgeLabel((function(){return{}}));let f;const m=r.db.getSubGraphs();Ze.info("Subgraphs - ",m);for(let s=m.length-1;s>=0;s--)f=m[s],Ze.info("Subgraph - ",f),r.db.addVertex(f.id,f.title,"group",void 0,f.classes,f.dir);const g=r.db.getVertices(),v=r.db.getEdges();Ze.info("Edges",v);let y=0;for(y=m.length-1;y>=0;y--){f=m[y],(0,s.Ubm)("cluster").append("text");for(let e=0;e<f.nodes.length;e++)Ze.info("Setting up subgraphs",f.nodes[e],f.id),p.setParent(f.nodes[e],f.id)}yf(g,p,t,d,h,r),bf(v,p);const b=d.select(`[id="${t}"]`),w=d.select("#"+t+" g");if(Yd(w,p,["point","circle","cross"],"flowchart",t),si.insertTitle(b,"flowchartTitleText",o.titleTopMargin,r.db.getDiagramTitle()),Li(p,b,o.diagramPadding,o.useMaxWidth),r.db.indexNodes("subGraph"+y),!o.htmlLabels){const e=h.querySelectorAll('[id="'+t+'"] .edgeLabel .label');for(const t of e){const e=t.getBBox(),n=h.createElementNS("http://www.w3.org/2000/svg","rect");n.setAttribute("rx",0),n.setAttribute("ry",0),n.setAttribute("width",e.width),n.setAttribute("height",e.height),t.insertBefore(n,t.firstChild)}}const x=Object.keys(g);x.forEach((function(e){const n=g[e];if(n.link){const r=(0,s.Ltv)("#"+t+' [id="'+e+'"]');if(r){const e=h.createElementNS("http://www.w3.org/2000/svg","a");e.setAttributeNS("http://www.w3.org/2000/svg","class",n.classes.join(" ")),e.setAttributeNS("http://www.w3.org/2000/svg","href",n.link),e.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),"sandbox"===i?e.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):n.linkTarget&&e.setAttributeNS("http://www.w3.org/2000/svg","target",n.linkTarget);const t=r.insert((function(){return e}),":first-child"),a=r.select(".label-container");a&&t.append((function(){return a.node()}));const o=r.select(".label");o&&t.append((function(){return o.node()}))}}}))},kf={setConf:vf,addVertices:yf,addEdges:bf,getClasses:wf,draw:xf};var _f=function(){var e=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},t=[1,3],n=[1,5],r=[7,9,11,12,13,14,15,16,17,18,19,20,21,23,25,26,28,35,40],a=[1,15],i=[1,16],o=[1,17],s=[1,18],l=[1,19],c=[1,20],u=[1,21],d=[1,22],h=[1,23],p=[1,24],f=[1,25],m=[1,26],g=[1,27],v=[1,29],y=[1,31],b=[1,34],w=[5,7,9,11,12,13,14,15,16,17,18,19,20,21,23,25,26,28,35,40],x={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,gantt:5,document:6,EOF:7,line:8,SPACE:9,statement:10,NL:11,dateFormat:12,inclusiveEndDates:13,topAxis:14,axisFormat:15,tickInterval:16,excludes:17,includes:18,todayMarker:19,title:20,acc_title:21,acc_title_value:22,acc_descr:23,acc_descr_value:24,acc_descr_multiline_value:25,section:26,clickStatement:27,taskTxt:28,taskData:29,openDirective:30,typeDirective:31,closeDirective:32,":":33,argDirective:34,click:35,callbackname:36,callbackargs:37,href:38,clickStatementDebug:39,open_directive:40,type_directive:41,arg_directive:42,close_directive:43,$accept:0,$end:1},terminals_:{2:"error",5:"gantt",7:"EOF",9:"SPACE",11:"NL",12:"dateFormat",13:"inclusiveEndDates",14:"topAxis",15:"axisFormat",16:"tickInterval",17:"excludes",18:"includes",19:"todayMarker",20:"title",21:"acc_title",22:"acc_title_value",23:"acc_descr",24:"acc_descr_value",25:"acc_descr_multiline_value",26:"section",28:"taskTxt",29:"taskData",33:":",35:"click",36:"callbackname",37:"callbackargs",38:"href",40:"open_directive",41:"type_directive",42:"arg_directive",43:"close_directive"},productions_:[0,[3,2],[3,3],[6,0],[6,2],[8,2],[8,1],[8,1],[8,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[10,1],[10,1],[10,2],[10,1],[4,4],[4,6],[27,2],[27,3],[27,3],[27,4],[27,3],[27,4],[27,2],[39,2],[39,3],[39,3],[39,4],[39,3],[39,4],[39,2],[30,1],[31,1],[34,1],[32,1]],performAction:function(e,t,n,r,a,i,o){var s=i.length-1;switch(a){case 2:return i[s-1];case 3:this.$=[];break;case 4:i[s-1].push(i[s]),this.$=i[s-1];break;case 5:case 6:this.$=i[s];break;case 7:case 8:this.$=[];break;case 9:r.setDateFormat(i[s].substr(11)),this.$=i[s].substr(11);break;case 10:r.enableInclusiveEndDates(),this.$=i[s].substr(18);break;case 11:r.TopAxis(),this.$=i[s].substr(8);break;case 12:r.setAxisFormat(i[s].substr(11)),this.$=i[s].substr(11);break;case 13:r.setTickInterval(i[s].substr(13)),this.$=i[s].substr(13);break;case 14:r.setExcludes(i[s].substr(9)),this.$=i[s].substr(9);break;case 15:r.setIncludes(i[s].substr(9)),this.$=i[s].substr(9);break;case 16:r.setTodayMarker(i[s].substr(12)),this.$=i[s].substr(12);break;case 17:r.setDiagramTitle(i[s].substr(6)),this.$=i[s].substr(6);break;case 18:this.$=i[s].trim(),r.setAccTitle(this.$);break;case 19:case 20:this.$=i[s].trim(),r.setAccDescription(this.$);break;case 21:r.addSection(i[s].substr(8)),this.$=i[s].substr(8);break;case 23:r.addTask(i[s-1],i[s]),this.$="task";break;case 27:this.$=i[s-1],r.setClickEvent(i[s-1],i[s],null);break;case 28:this.$=i[s-2],r.setClickEvent(i[s-2],i[s-1],i[s]);break;case 29:this.$=i[s-2],r.setClickEvent(i[s-2],i[s-1],null),r.setLink(i[s-2],i[s]);break;case 30:this.$=i[s-3],r.setClickEvent(i[s-3],i[s-2],i[s-1]),r.setLink(i[s-3],i[s]);break;case 31:this.$=i[s-2],r.setClickEvent(i[s-2],i[s],null),r.setLink(i[s-2],i[s-1]);break;case 32:this.$=i[s-3],r.setClickEvent(i[s-3],i[s-1],i[s]),r.setLink(i[s-3],i[s-2]);break;case 33:this.$=i[s-1],r.setLink(i[s-1],i[s]);break;case 34:case 40:this.$=i[s-1]+" "+i[s];break;case 35:case 36:case 38:this.$=i[s-2]+" "+i[s-1]+" "+i[s];break;case 37:case 39:this.$=i[s-3]+" "+i[s-2]+" "+i[s-1]+" "+i[s];break;case 41:r.parseDirective("%%{","open_directive");break;case 42:r.parseDirective(i[s],"type_directive");break;case 43:i[s]=i[s].trim().replace(/'/g,'"'),r.parseDirective(i[s],"arg_directive");break;case 44:r.parseDirective("}%%","close_directive","gantt");break}},table:[{3:1,4:2,5:t,30:4,40:n},{1:[3]},{3:6,4:2,5:t,30:4,40:n},e(r,[2,3],{6:7}),{31:8,41:[1,9]},{41:[2,41]},{1:[2,1]},{4:30,7:[1,10],8:11,9:[1,12],10:13,11:[1,14],12:a,13:i,14:o,15:s,16:l,17:c,18:u,19:d,20:h,21:p,23:f,25:m,26:g,27:28,28:v,30:4,35:y,40:n},{32:32,33:[1,33],43:b},e([33,43],[2,42]),e(r,[2,8],{1:[2,2]}),e(r,[2,4]),{4:30,10:35,12:a,13:i,14:o,15:s,16:l,17:c,18:u,19:d,20:h,21:p,23:f,25:m,26:g,27:28,28:v,30:4,35:y,40:n},e(r,[2,6]),e(r,[2,7]),e(r,[2,9]),e(r,[2,10]),e(r,[2,11]),e(r,[2,12]),e(r,[2,13]),e(r,[2,14]),e(r,[2,15]),e(r,[2,16]),e(r,[2,17]),{22:[1,36]},{24:[1,37]},e(r,[2,20]),e(r,[2,21]),e(r,[2,22]),{29:[1,38]},e(r,[2,24]),{36:[1,39],38:[1,40]},{11:[1,41]},{34:42,42:[1,43]},{11:[2,44]},e(r,[2,5]),e(r,[2,18]),e(r,[2,19]),e(r,[2,23]),e(r,[2,27],{37:[1,44],38:[1,45]}),e(r,[2,33],{36:[1,46]}),e(w,[2,25]),{32:47,43:b},{43:[2,43]},e(r,[2,28],{38:[1,48]}),e(r,[2,29]),e(r,[2,31],{37:[1,49]}),{11:[1,50]},e(r,[2,30]),e(r,[2,32]),e(w,[2,26])],defaultActions:{5:[2,41],6:[2,1],34:[2,44],43:[2,43]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],r=[],a=[null],i=[],o=this.table,s="",l=0,c=0,u=2,d=1,h=i.slice.call(arguments,1),p=Object.create(this.lexer),f={yy:{}};for(var m in this.yy)Object.prototype.hasOwnProperty.call(this.yy,m)&&(f.yy[m]=this.yy[m]);p.setInput(e,f.yy),f.yy.lexer=p,f.yy.parser=this,"undefined"==typeof p.yylloc&&(p.yylloc={});var g=p.yylloc;i.push(g);var v=p.options&&p.options.ranges;function y(){var e;return e=r.pop()||p.lex()||d,"number"!==typeof e&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}"function"===typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;var b,w,x,k,_,C,E,R,S={};while(1){if(w=n[n.length-1],this.defaultActions[w]?x=this.defaultActions[w]:(null!==b&&"undefined"!=typeof b||(b=y()),x=o[w]&&o[w][b]),"undefined"===typeof x||!x.length||!x[0]){var A="";for(_ in R=[],o[w])this.terminals_[_]&&_>u&&R.push("'"+this.terminals_[_]+"'");A=p.showPosition?"Parse error on line "+(l+1)+":\n"+p.showPosition()+"\nExpecting "+R.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(l+1)+": Unexpected "+(b==d?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(A,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:g,expected:R})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+b);switch(x[0]){case 1:n.push(b),a.push(p.yytext),i.push(p.yylloc),n.push(x[1]),b=null,c=p.yyleng,s=p.yytext,l=p.yylineno,g=p.yylloc;break;case 2:if(C=this.productions_[x[1]][1],S.$=a[a.length-C],S._$={first_line:i[i.length-(C||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(C||1)].first_column,last_column:i[i.length-1].last_column},v&&(S._$.range=[i[i.length-(C||1)].range[0],i[i.length-1].range[1]]),k=this.performAction.apply(S,[s,c,l,f.yy,x[1],a,i].concat(h)),"undefined"!==typeof k)return k;C&&(n=n.slice(0,-1*C*2),a=a.slice(0,-1*C),i=i.slice(0,-1*C)),n.push(this.productions_[x[1]][0]),a.push(S.$),i.push(S._$),E=o[n[n.length-2]][n[n.length-1]],n.push(E);break;case 3:return!0}}return!0}},k=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e;var t=e.match(/(?:\r\n?|\n).*/g);return t?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var a=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,a;if(this.options.backtrack_lexer&&(a={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(a.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var i in a)this[i]=a[i];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var a=this._currentRules(),i=0;i<a.length;i++)if(n=this._input.match(this.rules[a[i]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=i,this.options.backtrack_lexer){if(e=this.test_match(n,a[i]),!1!==e)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,a[r]),!1!==e&&e):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){var e=this.conditionStack.length-1;return e>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions["INITIAL"].rules},topState:function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return this.begin("open_directive"),40;case 1:return this.begin("type_directive"),41;case 2:return this.popState(),this.begin("arg_directive"),33;case 3:return this.popState(),this.popState(),43;case 4:return 42;case 5:return this.begin("acc_title"),21;case 6:return this.popState(),"acc_title_value";case 7:return this.begin("acc_descr"),23;case 8:return this.popState(),"acc_descr_value";case 9:this.begin("acc_descr_multiline");break;case 10:this.popState();break;case 11:return"acc_descr_multiline_value";case 12:break;case 13:break;case 14:break;case 15:return 11;case 16:break;case 17:break;case 18:break;case 19:this.begin("href");break;case 20:this.popState();break;case 21:return 38;case 22:this.begin("callbackname");break;case 23:this.popState();break;case 24:this.popState(),this.begin("callbackargs");break;case 25:return 36;case 26:this.popState();break;case 27:return 37;case 28:this.begin("click");break;case 29:this.popState();break;case 30:return 35;case 31:return 5;case 32:return 12;case 33:return 13;case 34:return 14;case 35:return 15;case 36:return 16;case 37:return 18;case 38:return 17;case 39:return 19;case 40:return"date";case 41:return 20;case 42:return"accDescription";case 43:return 26;case 44:return 28;case 45:return 29;case 46:return 33;case 47:return 7;case 48:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[10,11],inclusive:!1},acc_descr:{rules:[8],inclusive:!1},acc_title:{rules:[6],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},callbackargs:{rules:[26,27],inclusive:!1},callbackname:{rules:[23,24,25],inclusive:!1},href:{rules:[20,21],inclusive:!1},click:{rules:[29,30],inclusive:!1},INITIAL:{rules:[0,5,7,9,12,13,14,15,16,17,18,19,22,28,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],inclusive:!0}}};return e}();function _(){this.yy={}}return x.lexer=k,_.prototype=x,x.Parser=_,new _}();_f.parser=_f;const Cf=_f,Ef=e=>null!==e.match(/^\s*gantt/);i().extend(Ke()),i().extend(qe()),i().extend(Xe());let Rf,Sf="",Af="",Tf="",Mf=[],Lf=[],Of={},If=[],Nf=[],Bf="";const Df=["active","done","crit","milestone"];let Ff=[],$f=!1,Pf=!1,zf=0;const Wf=function(e,t,n){m_.parseDirective(this,e,t,n)},jf=function(){If=[],Nf=[],Bf="",Ff=[],mm=0,bm=void 0,wm=void 0,xm=[],Sf="",Af="",Rf=void 0,Tf="",Mf=[],Lf=[],$f=!1,Pf=!1,zf=0,Of={},uo()},Vf=function(e){Af=e},Uf=function(){return Af},Kf=function(e){Rf=e},Hf=function(){return Rf},qf=function(e){Tf=e},Gf=function(){return Tf},Xf=function(e){Sf=e},Yf=function(){$f=!0},Qf=function(){return $f},Zf=function(){Pf=!0},Jf=function(){return Pf},em=function(){return Sf},tm=function(e){Mf=e.toLowerCase().split(/[\s,]+/)},nm=function(){return Mf},rm=function(e){Lf=e.toLowerCase().split(/[\s,]+/)},am=function(){return Lf},im=function(){return Of},om=function(e){Bf=e,If.push(e)},sm=function(){return If},lm=function(){let e=Rm();const t=10;let n=0;while(!e&&n<t)e=Rm(),n++;return Nf=xm,Nf},cm=function(e,t,n,r){return!r.includes(e.format(t.trim()))&&(!!(e.isoWeekday()>=6&&n.includes("weekends"))||(!!n.includes(e.format("dddd").toLowerCase())||n.includes(e.format(t.trim()))))},um=function(e,t,n,r){if(!n.length||e.manualEndTime)return;let a,o;a=e.startTime instanceof Date?i()(e.startTime):i()(e.startTime,t,!0),a=a.add(1,"d"),o=e.endTime instanceof Date?i()(e.endTime):i()(e.endTime,t,!0);const[s,l]=dm(a,o,t,n,r);e.endTime=s.toDate(),e.renderEndTime=l},dm=function(e,t,n,r,a){let i=!1,o=null;while(e<=t)i||(o=t.toDate()),i=cm(e,n,r,a),i&&(t=t.add(1,"d")),e=e.add(1,"d");return[t,o]},hm=function(e,t,n){n=n.trim();const r=/^after\s+([\d\w- ]+)/,a=r.exec(n.trim());if(null!==a){let e=null;if(a[1].split(" ").forEach((function(t){let n=Cm(t);void 0!==n&&(e?n.endTime>e.endTime&&(e=n):e=n)})),e)return e.endTime;{const e=new Date;return e.setHours(0,0,0,0),e}}let o=i()(n,t.trim(),!0);if(o.isValid())return o.toDate();{Ze.debug("Invalid date:"+n),Ze.debug("With date format:"+t.trim());const e=new Date(n);if(void 0===e||isNaN(e.getTime()))throw new Error("Invalid date:"+n);return e}},pm=function(e){const t=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(e.trim());return null!==t?[Number.parseFloat(t[1]),t[2]]:[NaN,"ms"]},fm=function(e,t,n,r=!1){n=n.trim();let a=i()(n,t.trim(),!0);if(a.isValid())return r&&(a=a.add(1,"d")),a.toDate();let o=i()(e);const[s,l]=pm(n);if(!Number.isNaN(s)){const e=o.add(s,l);e.isValid()&&(o=e)}return o.toDate()};let mm=0;const gm=function(e){return void 0===e?(mm+=1,"task"+mm):e},vm=function(e,t){let n;n=":"===t.substr(0,1)?t.substr(1,t.length):t;const r=n.split(","),a={};Nm(r,a,Df);for(let i=0;i<r.length;i++)r[i]=r[i].trim();let o="";switch(r.length){case 1:a.id=gm(),a.startTime=e.endTime,o=r[0];break;case 2:a.id=gm(),a.startTime=hm(void 0,Sf,r[0]),o=r[1];break;case 3:a.id=gm(r[0]),a.startTime=hm(void 0,Sf,r[1]),o=r[2];break}return o&&(a.endTime=fm(a.startTime,Sf,o,$f),a.manualEndTime=i()(o,"YYYY-MM-DD",!0).isValid(),um(a,Sf,Lf,Mf)),a},ym=function(e,t){let n;n=":"===t.substr(0,1)?t.substr(1,t.length):t;const r=n.split(","),a={};Nm(r,a,Df);for(let i=0;i<r.length;i++)r[i]=r[i].trim();switch(r.length){case 1:a.id=gm(),a.startTime={type:"prevTaskEnd",id:e},a.endTime={data:r[0]};break;case 2:a.id=gm(),a.startTime={type:"getStartDate",startData:r[0]},a.endTime={data:r[1]};break;case 3:a.id=gm(r[0]),a.startTime={type:"getStartDate",startData:r[1]},a.endTime={data:r[2]};break}return a};let bm,wm,xm=[];const km={},_m=function(e,t){const n={section:Bf,type:Bf,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:t},task:e,classes:[]},r=ym(wm,t);n.raw.startTime=r.startTime,n.raw.endTime=r.endTime,n.id=r.id,n.prevTaskId=wm,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,n.order=zf,zf++;const a=xm.push(n);wm=n.id,km[n.id]=a-1},Cm=function(e){const t=km[e];return xm[t]},Em=function(e,t){const n={section:Bf,type:Bf,description:e,task:e,classes:[]},r=vm(bm,t);n.startTime=r.startTime,n.endTime=r.endTime,n.id=r.id,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,bm=n,Nf.push(n)},Rm=function(){const e=function(e){const t=xm[e];let n="";switch(xm[e].raw.startTime.type){case"prevTaskEnd":{const e=Cm(t.prevTaskId);t.startTime=e.endTime;break}case"getStartDate":n=hm(void 0,Sf,xm[e].raw.startTime.startData),n&&(xm[e].startTime=n);break}return xm[e].startTime&&(xm[e].endTime=fm(xm[e].startTime,Sf,xm[e].raw.endTime.data,$f),xm[e].endTime&&(xm[e].processed=!0,xm[e].manualEndTime=i()(xm[e].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),um(xm[e],Sf,Lf,Mf))),xm[e].processed};let t=!0;for(const[n,r]of xm.entries())e(n),t=t&&r.processed;return t},Sm=function(e,t){let n=t;"loose"!==wi().securityLevel&&(n=(0,o.Jf)(t)),e.split(",").forEach((function(e){let t=Cm(e);void 0!==t&&(Mm(e,(()=>{window.open(n,"_self")})),Of[e]=n)})),Am(e,"clickable")},Am=function(e,t){e.split(",").forEach((function(e){let n=Cm(e);void 0!==n&&n.classes.push(t)}))},Tm=function(e,t,n){if("loose"!==wi().securityLevel)return;if(void 0===t)return;let r=[];if("string"===typeof n){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let e=0;e<r.length;e++){let t=r[e].trim();'"'===t.charAt(0)&&'"'===t.charAt(t.length-1)&&(t=t.substr(1,t.length-2)),r[e]=t}}0===r.length&&r.push(e);let a=Cm(e);void 0!==a&&Mm(e,(()=>{si.runFunc(t,...r)}))},Mm=function(e,t){Ff.push((function(){const n=document.querySelector(`[id="${e}"]`);null!==n&&n.addEventListener("click",(function(){t()}))}),(function(){const n=document.querySelector(`[id="${e}-text"]`);null!==n&&n.addEventListener("click",(function(){t()}))}))},Lm=function(e,t,n){e.split(",").forEach((function(e){Tm(e,t,n)})),Am(e,"clickable")},Om=function(e){Ff.forEach((function(t){t(e)}))},Im={parseDirective:Wf,getConfig:()=>wi().gantt,clear:jf,setDateFormat:Xf,getDateFormat:em,enableInclusiveEndDates:Yf,endDatesAreInclusive:Qf,enableTopAxis:Zf,topAxisEnabled:Jf,setAxisFormat:Vf,getAxisFormat:Uf,setTickInterval:Kf,getTickInterval:Hf,setTodayMarker:qf,getTodayMarker:Gf,setAccTitle:ho,getAccTitle:po,setDiagramTitle:go,getDiagramTitle:vo,setAccDescription:fo,getAccDescription:mo,addSection:om,getSections:sm,getTasks:lm,addTask:_m,findTaskById:Cm,addTaskOrg:Em,setIncludes:tm,getIncludes:nm,setExcludes:rm,getExcludes:am,setClickEvent:Lm,setLink:Sm,getLinks:im,bindFunctions:Om,parseDuration:pm,isInvalidDate:cm};function Nm(e,t,n){let r=!0;while(r)r=!1,n.forEach((function(n){const a="^\\s*"+n+"\\s*$",i=new RegExp(a);e[0].match(i)&&(t[n]=!0,e.shift(1),r=!0)}))}const Bm=function(){Ze.debug("Something is calling, setConf, remove the call")};let Dm;const Fm=function(e,t,n,r){const a=wi().gantt,o=wi().securityLevel;let l;"sandbox"===o&&(l=(0,s.Ltv)("#i"+t));const c="sandbox"===o?(0,s.Ltv)(l.nodes()[0].contentDocument.body):(0,s.Ltv)("body"),u="sandbox"===o?l.nodes()[0].contentDocument:document,d=u.getElementById(t);Dm=d.parentElement.offsetWidth,void 0===Dm&&(Dm=1200),void 0!==a.useWidth&&(Dm=a.useWidth);const h=r.db.getTasks(),p=h.length*(a.barHeight+a.barGap)+2*a.topPadding;d.setAttribute("viewBox","0 0 "+Dm+" "+p);const f=c.select(`[id="${t}"]`),m=(0,s.w7C)().domain([(0,s.jkA)(h,(function(e){return e.startTime})),(0,s.T9B)(h,(function(e){return e.endTime}))]).rangeRound([0,Dm-a.leftPadding-a.rightPadding]);let g=[];for(const i of h)g.push(i.type);const v=g;function y(e,t){const n=e.startTime,r=t.startTime;let a=0;return n>r?a=1:n<r&&(a=-1),a}function b(e,t,n){const i=a.barHeight,o=i+a.barGap,l=a.topPadding,c=a.leftPadding,u=(0,s.m4Y)().domain([0,g.length]).range(["#00B9FA","#F95002"]).interpolate(s.bEH);x(o,l,c,t,n,e,r.db.getExcludes(),r.db.getIncludes()),k(c,l,t,n),w(e,o,l,c,i,u,t),_(o,l),C(c,l,t,n)}function w(e,n,i,o,l,c,u){f.append("g").selectAll("rect").data(e).enter().append("rect").attr("x",0).attr("y",(function(e,t){return t=e.order,t*n+i-2})).attr("width",(function(){return u-a.rightPadding/2})).attr("height",n).attr("class",(function(e){for(const[t,n]of g.entries())if(e.type===n)return"section section"+t%a.numberSectionStyles;return"section section0"}));const d=f.append("g").selectAll("rect").data(e).enter(),h=r.db.getLinks();d.append("rect").attr("id",(function(e){return e.id})).attr("rx",3).attr("ry",3).attr("x",(function(e){return e.milestone?m(e.startTime)+o+.5*(m(e.endTime)-m(e.startTime))-.5*l:m(e.startTime)+o})).attr("y",(function(e,t){return t=e.order,t*n+i})).attr("width",(function(e){return e.milestone?l:m(e.renderEndTime||e.endTime)-m(e.startTime)})).attr("height",l).attr("transform-origin",(function(e,t){return t=e.order,(m(e.startTime)+o+.5*(m(e.endTime)-m(e.startTime))).toString()+"px "+(t*n+i+.5*l).toString()+"px"})).attr("class",(function(e){const t="task";let n="";e.classes.length>0&&(n=e.classes.join(" "));let r=0;for(const[o,s]of g.entries())e.type===s&&(r=o%a.numberSectionStyles);let i="";return e.active?e.crit?i+=" activeCrit":i=" active":e.done?i=e.crit?" doneCrit":" done":e.crit&&(i+=" crit"),0===i.length&&(i=" task"),e.milestone&&(i=" milestone "+i),i+=r,i+=" "+n,t+i})),d.append("text").attr("id",(function(e){return e.id+"-text"})).text((function(e){return e.task})).attr("font-size",a.fontSize).attr("x",(function(e){let t=m(e.startTime),n=m(e.renderEndTime||e.endTime);e.milestone&&(t+=.5*(m(e.endTime)-m(e.startTime))-.5*l),e.milestone&&(n=t+l);const r=this.getBBox().width;return r>n-t?n+r+1.5*a.leftPadding>u?t+o-5:n+o+5:(n-t)/2+t+o})).attr("y",(function(e,t){return t=e.order,t*n+a.barHeight/2+(a.fontSize/2-2)+i})).attr("text-height",l).attr("class",(function(e){const t=m(e.startTime);let n=m(e.endTime);e.milestone&&(n=t+l);const r=this.getBBox().width;let i="";e.classes.length>0&&(i=e.classes.join(" "));let o=0;for(const[l,c]of g.entries())e.type===c&&(o=l%a.numberSectionStyles);let s="";return e.active&&(s=e.crit?"activeCritText"+o:"activeText"+o),e.done?s=e.crit?s+" doneCritText"+o:s+" doneText"+o:e.crit&&(s=s+" critText"+o),e.milestone&&(s+=" milestoneText"),r>n-t?n+r+1.5*a.leftPadding>u?i+" taskTextOutsideLeft taskTextOutside"+o+" "+s:i+" taskTextOutsideRight taskTextOutside"+o+" "+s+" width-"+r:i+" taskText taskText"+o+" "+s+" width-"+r}));const p=wi().securityLevel;if("sandbox"===p){let e;e=(0,s.Ltv)("#i"+t);const n=e.nodes()[0].contentDocument;d.filter((function(e){return void 0!==h[e.id]})).each((function(e){var t=n.querySelector("#"+e.id),r=n.querySelector("#"+e.id+"-text");const a=t.parentNode;var i=n.createElement("a");i.setAttribute("xlink:href",h[e.id]),i.setAttribute("target","_top"),a.appendChild(i),i.appendChild(t),i.appendChild(r)}))}}function x(e,t,n,o,s,l,c,u){const d=l.reduce(((e,{startTime:t})=>e?Math.min(e,t):t),0),h=l.reduce(((e,{endTime:t})=>e?Math.max(e,t):t),0),p=r.db.getDateFormat();if(!d||!h)return;const g=[];let v=null,y=i()(d);while(y.valueOf()<=h)r.db.isInvalidDate(y,p,c,u)?v?v.end=y:v={start:y,end:y}:v&&(g.push(v),v=null),y=y.add(1,"d");const b=f.append("g").selectAll("rect").data(g).enter();b.append("rect").attr("id",(function(e){return"exclude-"+e.start.format("YYYY-MM-DD")})).attr("x",(function(e){return m(e.start)+n})).attr("y",a.gridLineStartPadding).attr("width",(function(e){const t=e.end.add(1,"day");return m(t)-m(e.start)})).attr("height",s-t-a.gridLineStartPadding).attr("transform-origin",(function(t,r){return(m(t.start)+n+.5*(m(t.end)-m(t.start))).toString()+"px "+(r*e+.5*s).toString()+"px"})).attr("class","exclude-range")}function k(e,t,n,i){let o=(0,s.l78)(m).tickSize(-i+t+a.gridLineStartPadding).tickFormat((0,s.DCK)(r.db.getAxisFormat()||a.axisFormat||"%Y-%m-%d"));const l=/^([1-9]\d*)(minute|hour|day|week|month)$/,c=l.exec(r.db.getTickInterval()||a.tickInterval);if(null!==c){const e=c[1],t=c[2];switch(t){case"minute":o.ticks(s.wXd.every(e));break;case"hour":o.ticks(s.Agd.every(e));break;case"day":o.ticks(s.UAC.every(e));break;case"week":o.ticks(s.Kgo.every(e));break;case"month":o.ticks(s.Ui6.every(e));break}}if(f.append("g").attr("class","grid").attr("transform","translate("+e+", "+(i-50)+")").call(o).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),r.db.topAxisEnabled()||a.topAxis){let n=(0,s.tlR)(m).tickSize(-i+t+a.gridLineStartPadding).tickFormat((0,s.DCK)(r.db.getAxisFormat()||a.axisFormat||"%Y-%m-%d"));if(null!==c){const e=c[1],t=c[2];switch(t){case"minute":n.ticks(s.wXd.every(e));break;case"hour":n.ticks(s.Agd.every(e));break;case"day":n.ticks(s.UAC.every(e));break;case"week":n.ticks(s.Kgo.every(e));break;case"month":n.ticks(s.Ui6.every(e));break}}f.append("g").attr("class","grid").attr("transform","translate("+e+", "+t+")").call(n).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}function _(e,t){const n=[];let r=0;for(const[a,i]of g.entries())n[a]=[i,S(i,v)];f.append("g").selectAll("text").data(n).enter().append((function(e){const t=e[0].split(ft.lineBreakRegex),n=-(t.length-1)/2,r=u.createElementNS("http://www.w3.org/2000/svg","text");r.setAttribute("dy",n+"em");for(const[a,i]of t.entries()){const e=u.createElementNS("http://www.w3.org/2000/svg","tspan");e.setAttribute("alignment-baseline","central"),e.setAttribute("x","10"),a>0&&e.setAttribute("dy","1em"),e.textContent=i,r.appendChild(e)}return r})).attr("x",10).attr("y",(function(a,i){if(!(i>0))return a[1]*e/2+t;for(let o=0;o<i;o++)return r+=n[i-1][1],a[1]*e/2+r*e+t})).attr("font-size",a.sectionFontSize).attr("font-size",a.sectionFontSize).attr("class",(function(e){for(const[t,n]of g.entries())if(e[0]===n)return"sectionTitle sectionTitle"+t%a.numberSectionStyles;return"sectionTitle"}))}function C(e,t,n,i){const o=r.db.getTodayMarker();if("off"===o)return;const s=f.append("g").attr("class","today"),l=new Date,c=s.append("line");c.attr("x1",m(l)+e).attr("x2",m(l)+e).attr("y1",a.titleTopMargin).attr("y2",i-a.titleTopMargin).attr("class","today"),""!==o&&c.attr("style",o.replace(/,/g,";"))}function E(e){const t={},n=[];for(let r=0,a=e.length;r<a;++r)Object.prototype.hasOwnProperty.call(t,e[r])||(t[e[r]]=!0,n.push(e[r]));return n}function R(e){let t=e.length;const n={};while(t)n[e[--t]]=(n[e[t]]||0)+1;return n}function S(e,t){return R(t)[e]||0}g=E(g),h.sort(y),b(h,Dm,p),Mi(f,p,Dm,a.useMaxWidth),f.append("text").text(r.db.getDiagramTitle()).attr("x",Dm/2).attr("y",a.titleTopMargin).attr("class","titleText")},$m={setConf:Bm,draw:Fm};var Pm=function(){var e=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},t=[6,9,10],n={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(e,t,n,r,a,i,o){switch(i.length,a){case 1:return r;case 4:break;case 6:r.setInfo(!0);break}},table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},e(t,[2,3]),e(t,[2,4]),e(t,[2,5]),e(t,[2,6])],defaultActions:{4:[2,1]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],r=[],a=[null],i=[],o=this.table,s="",l=0,c=0,u=2,d=1,h=i.slice.call(arguments,1),p=Object.create(this.lexer),f={yy:{}};for(var m in this.yy)Object.prototype.hasOwnProperty.call(this.yy,m)&&(f.yy[m]=this.yy[m]);p.setInput(e,f.yy),f.yy.lexer=p,f.yy.parser=this,"undefined"==typeof p.yylloc&&(p.yylloc={});var g=p.yylloc;i.push(g);var v=p.options&&p.options.ranges;function y(){var e;return e=r.pop()||p.lex()||d,"number"!==typeof e&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}"function"===typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;var b,w,x,k,_,C,E,R,S={};while(1){if(w=n[n.length-1],this.defaultActions[w]?x=this.defaultActions[w]:(null!==b&&"undefined"!=typeof b||(b=y()),x=o[w]&&o[w][b]),"undefined"===typeof x||!x.length||!x[0]){var A="";for(_ in R=[],o[w])this.terminals_[_]&&_>u&&R.push("'"+this.terminals_[_]+"'");A=p.showPosition?"Parse error on line "+(l+1)+":\n"+p.showPosition()+"\nExpecting "+R.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(l+1)+": Unexpected "+(b==d?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(A,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:g,expected:R})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+b);switch(x[0]){case 1:n.push(b),a.push(p.yytext),i.push(p.yylloc),n.push(x[1]),b=null,c=p.yyleng,s=p.yytext,l=p.yylineno,g=p.yylloc;break;case 2:if(C=this.productions_[x[1]][1],S.$=a[a.length-C],S._$={first_line:i[i.length-(C||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(C||1)].first_column,last_column:i[i.length-1].last_column},v&&(S._$.range=[i[i.length-(C||1)].range[0],i[i.length-1].range[1]]),k=this.performAction.apply(S,[s,c,l,f.yy,x[1],a,i].concat(h)),"undefined"!==typeof k)return k;C&&(n=n.slice(0,-1*C*2),a=a.slice(0,-1*C),i=i.slice(0,-1*C)),n.push(this.productions_[x[1]][0]),a.push(S.$),i.push(S._$),E=o[n[n.length-2]][n[n.length-1]],n.push(E);break;case 3:return!0}}return!0}},r=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e;var t=e.match(/(?:\r\n?|\n).*/g);return t?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var a=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,a;if(this.options.backtrack_lexer&&(a={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(a.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var i in a)this[i]=a[i];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var a=this._currentRules(),i=0;i<a.length;i++)if(n=this._input.match(this.rules[a[i]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=i,this.options.backtrack_lexer){if(e=this.test_match(n,a[i]),!1!==e)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,a[r]),!1!==e&&e):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){var e=this.conditionStack.length-1;return e>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions["INITIAL"].rules},topState:function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return 4;case 1:return 9;case 2:return"space";case 3:return 10;case 4:return 6;case 5:return"TXT"}},rules:[/^(?:info\b)/i,/^(?:[\s\n\r]+)/i,/^(?:[\s]+)/i,/^(?:showInfo\b)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5],inclusive:!0}}};return e}();function a(){this.yy={}}return n.lexer=r,a.prototype=n,n.Parser=a,new a}();Pm.parser=Pm;const zm=Pm;var Wm="",jm=!1;const Vm=e=>{Ze.debug("Setting message to: "+e),Wm=e},Um=()=>Wm,Km=e=>{jm=e},Hm=()=>jm,qm={setMessage:Vm,getMessage:Um,setInfo:Km,getInfo:Hm,clear:uo},Gm=(e,t,n)=>{try{Ze.debug("Rendering info diagram\n"+e);const r=wi().securityLevel;let a;"sandbox"===r&&(a=(0,s.Ltv)("#i"+t));const i="sandbox"===r?(0,s.Ltv)(a.nodes()[0].contentDocument.body):(0,s.Ltv)("body"),o=i.select("#"+t),l=o.append("g");l.append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size","32px").style("text-anchor","middle").text("v "+n),o.attr("height",100),o.attr("width",400)}catch(r){Ze.error("Error while rendering info diagram"),Ze.error(r.message)}},Xm={draw:Gm},Ym=e=>null!==e.match(/^\s*info/);var Qm=function(){var e=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},t=[1,4],n=[1,5],r=[1,6],a=[1,7],i=[1,9],o=[1,11,13,15,17,19,20,26,27,28,29],s=[2,5],l=[1,6,11,13,15,17,19,20,26,27,28,29],c=[26,27,28],u=[2,8],d=[1,18],h=[1,19],p=[1,20],f=[1,21],m=[1,22],g=[1,23],v=[1,28],y=[6,26,27,28,29],b={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,PIE:6,document:7,showData:8,line:9,statement:10,txt:11,value:12,title:13,title_value:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,openDirective:21,typeDirective:22,closeDirective:23,":":24,argDirective:25,NEWLINE:26,";":27,EOF:28,open_directive:29,type_directive:30,arg_directive:31,close_directive:32,$accept:0,$end:1},terminals_:{2:"error",6:"PIE",8:"showData",11:"txt",12:"value",13:"title",14:"title_value",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",24:":",26:"NEWLINE",27:";",28:"EOF",29:"open_directive",30:"type_directive",31:"arg_directive",32:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,3],[7,0],[7,2],[9,2],[10,0],[10,2],[10,2],[10,2],[10,2],[10,1],[10,1],[10,1],[5,3],[5,5],[4,1],[4,1],[4,1],[21,1],[22,1],[25,1],[23,1]],performAction:function(e,t,n,r,a,i,o){var s=i.length-1;switch(a){case 4:r.setShowData(!0);break;case 7:this.$=i[s-1];break;case 9:r.addSection(i[s-1],r.cleanupValue(i[s]));break;case 10:this.$=i[s].trim(),r.setDiagramTitle(this.$);break;case 11:this.$=i[s].trim(),r.setAccTitle(this.$);break;case 12:case 13:this.$=i[s].trim(),r.setAccDescription(this.$);break;case 14:r.addSection(i[s].substr(8)),this.$=i[s].substr(8);break;case 21:r.parseDirective("%%{","open_directive");break;case 22:r.parseDirective(i[s],"type_directive");break;case 23:i[s]=i[s].trim().replace(/'/g,'"'),r.parseDirective(i[s],"arg_directive");break;case 24:r.parseDirective("}%%","close_directive","pie");break}},table:[{3:1,4:2,5:3,6:t,21:8,26:n,27:r,28:a,29:i},{1:[3]},{3:10,4:2,5:3,6:t,21:8,26:n,27:r,28:a,29:i},{3:11,4:2,5:3,6:t,21:8,26:n,27:r,28:a,29:i},e(o,s,{7:12,8:[1,13]}),e(l,[2,18]),e(l,[2,19]),e(l,[2,20]),{22:14,30:[1,15]},{30:[2,21]},{1:[2,1]},{1:[2,2]},e(c,u,{21:8,9:16,10:17,5:24,1:[2,3],11:d,13:h,15:p,17:f,19:m,20:g,29:i}),e(o,s,{7:25}),{23:26,24:[1,27],32:v},e([24,32],[2,22]),e(o,[2,6]),{4:29,26:n,27:r,28:a},{12:[1,30]},{14:[1,31]},{16:[1,32]},{18:[1,33]},e(c,[2,13]),e(c,[2,14]),e(c,[2,15]),e(c,u,{21:8,9:16,10:17,5:24,1:[2,4],11:d,13:h,15:p,17:f,19:m,20:g,29:i}),e(y,[2,16]),{25:34,31:[1,35]},e(y,[2,24]),e(o,[2,7]),e(c,[2,9]),e(c,[2,10]),e(c,[2,11]),e(c,[2,12]),{23:36,32:v},{32:[2,23]},e(y,[2,17])],defaultActions:{9:[2,21],10:[2,1],11:[2,2],35:[2,23]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],r=[],a=[null],i=[],o=this.table,s="",l=0,c=0,u=2,d=1,h=i.slice.call(arguments,1),p=Object.create(this.lexer),f={yy:{}};for(var m in this.yy)Object.prototype.hasOwnProperty.call(this.yy,m)&&(f.yy[m]=this.yy[m]);p.setInput(e,f.yy),f.yy.lexer=p,f.yy.parser=this,"undefined"==typeof p.yylloc&&(p.yylloc={});var g=p.yylloc;i.push(g);var v=p.options&&p.options.ranges;function y(){var e;return e=r.pop()||p.lex()||d,"number"!==typeof e&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}"function"===typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;var b,w,x,k,_,C,E,R,S={};while(1){if(w=n[n.length-1],this.defaultActions[w]?x=this.defaultActions[w]:(null!==b&&"undefined"!=typeof b||(b=y()),x=o[w]&&o[w][b]),"undefined"===typeof x||!x.length||!x[0]){var A="";for(_ in R=[],o[w])this.terminals_[_]&&_>u&&R.push("'"+this.terminals_[_]+"'");A=p.showPosition?"Parse error on line "+(l+1)+":\n"+p.showPosition()+"\nExpecting "+R.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(l+1)+": Unexpected "+(b==d?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(A,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:g,expected:R})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+b);switch(x[0]){case 1:n.push(b),a.push(p.yytext),i.push(p.yylloc),n.push(x[1]),b=null,c=p.yyleng,s=p.yytext,l=p.yylineno,g=p.yylloc;break;case 2:if(C=this.productions_[x[1]][1],S.$=a[a.length-C],S._$={first_line:i[i.length-(C||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(C||1)].first_column,last_column:i[i.length-1].last_column},v&&(S._$.range=[i[i.length-(C||1)].range[0],i[i.length-1].range[1]]),k=this.performAction.apply(S,[s,c,l,f.yy,x[1],a,i].concat(h)),"undefined"!==typeof k)return k;C&&(n=n.slice(0,-1*C*2),a=a.slice(0,-1*C),i=i.slice(0,-1*C)),n.push(this.productions_[x[1]][0]),a.push(S.$),i.push(S._$),E=o[n[n.length-2]][n[n.length-1]],n.push(E);break;case 3:return!0}}return!0}},w=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e;var t=e.match(/(?:\r\n?|\n).*/g);return t?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var a=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,a;if(this.options.backtrack_lexer&&(a={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(a.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var i in a)this[i]=a[i];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var a=this._currentRules(),i=0;i<a.length;i++)if(n=this._input.match(this.rules[a[i]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=i,this.options.backtrack_lexer){if(e=this.test_match(n,a[i]),!1!==e)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,a[r]),!1!==e&&e):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){var e=this.conditionStack.length-1;return e>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions["INITIAL"].rules},topState:function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return this.begin("open_directive"),29;case 1:return this.begin("type_directive"),30;case 2:return this.popState(),this.begin("arg_directive"),24;case 3:return this.popState(),this.popState(),32;case 4:return 31;case 5:break;case 6:break;case 7:return 26;case 8:break;case 9:break;case 10:return this.begin("title"),13;case 11:return this.popState(),"title_value";case 12:return this.begin("acc_title"),15;case 13:return this.popState(),"acc_title_value";case 14:return this.begin("acc_descr"),17;case 15:return this.popState(),"acc_descr_value";case 16:this.begin("acc_descr_multiline");break;case 17:this.popState();break;case 18:return"acc_descr_multiline_value";case 19:this.begin("string");break;case 20:this.popState();break;case 21:return"txt";case 22:return 6;case 23:return 8;case 24:return"value";case 25:return 28}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[\s]+)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:pie\b)/i,/^(?:showData\b)/i,/^(?::[\s]*[\d]+(?:\.[\d]+)?)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},title:{rules:[11],inclusive:!1},string:{rules:[20,21],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,12,14,16,19,22,23,24,25],inclusive:!0}}};return e}();function x(){this.yy={}}return b.lexer=w,x.prototype=b,b.Parser=x,new x}();Qm.parser=Qm;const Zm=Qm,Jm=e=>{const t=null!==e.match(/^\s*pie/)||null!==e.match(/^\s*bar/);return t};let eg={},tg=!1;const ng=function(e,t,n){m_.parseDirective(this,e,t,n)},rg=function(e,t){e=ft.sanitizeText(e,wi()),void 0===eg[e]&&(eg[e]=t,Ze.debug("Added new section :",e))},ag=()=>eg,ig=function(e){tg=e},og=function(){return tg},sg=function(e){return":"===e.substring(0,1)?(e=e.substring(1).trim(),Number(e.trim())):Number(e.trim())},lg=function(){eg={},tg=!1,uo()},cg={parseDirective:ng,getConfig:()=>wi().pie,addSection:rg,getSections:ag,cleanupValue:sg,clear:lg,setAccTitle:ho,getAccTitle:po,setDiagramTitle:go,getDiagramTitle:vo,setShowData:ig,getShowData:og,getAccDescription:mo,setAccDescription:fo};let ug,dg=wi();const hg=450,pg=(e,t,n,r)=>{try{dg=wi(),Ze.debug("Rendering info diagram\n"+e);const n=wi().securityLevel;let b;"sandbox"===n&&(b=(0,s.Ltv)("#i"+t));const w="sandbox"===n?(0,s.Ltv)(b.nodes()[0].contentDocument.body):(0,s.Ltv)("body"),x="sandbox"===n?b.nodes()[0].contentDocument:document;r.db.clear(),r.parser.parse(e),Ze.debug("Parsed info diagram");const k=x.getElementById(t);ug=k.parentElement.offsetWidth,void 0===ug&&(ug=1200),void 0!==dg.useWidth&&(ug=dg.useWidth),void 0!==dg.pie.useWidth&&(ug=dg.pie.useWidth);const _=w.select("#"+t);Mi(_,hg,ug,dg.pie.useMaxWidth),k.setAttribute("viewBox","0 0 "+ug+" "+hg);var a=40,i=18,o=4,l=Math.min(ug,hg)/2-a,c=_.append("g").attr("transform","translate("+ug/2+","+hg/2+")"),u=r.db.getSections(),d=0;Object.keys(u).forEach((function(e){d+=u[e]}));const C=dg.themeVariables;var h=[C.pie1,C.pie2,C.pie3,C.pie4,C.pie5,C.pie6,C.pie7,C.pie8,C.pie9,C.pie10,C.pie11,C.pie12],p=(0,s.UMr)().range(h),f=Object.entries(u).map((function(e,t){return{order:t,name:e[0],value:e[1]}})),m=(0,s.rLf)().value((function(e){return e.value})).sort((function(e,t){return e.order-t.order})),g=m(f),v=(0,s.JLW)().innerRadius(0).outerRadius(l);c.selectAll("mySlices").data(g).enter().append("path").attr("d",v).attr("fill",(function(e){return p(e.data.name)})).attr("class","pieCircle"),c.selectAll("mySlices").data(g).enter().append("text").text((function(e){return(e.data.value/d*100).toFixed(0)+"%"})).attr("transform",(function(e){return"translate("+v.centroid(e)+")"})).style("text-anchor","middle").attr("class","slice"),c.append("text").text(r.db.getDiagramTitle()).attr("x",0).attr("y",-(hg-50)/2).attr("class","pieTitleText");var y=c.selectAll(".legend").data(p.domain()).enter().append("g").attr("class","legend").attr("transform",(function(e,t){const n=i+o,r=n*p.domain().length/2,a=12*i,s=t*n-r;return"translate("+a+","+s+")"}));y.append("rect").attr("width",i).attr("height",i).style("fill",p).style("stroke",p),y.data(g).append("text").attr("x",i+o).attr("y",i-o).text((function(e){return r.db.getShowData()||dg.showData||dg.pie.showData?e.data.name+" ["+e.data.value+"]":e.data.name}))}catch(b){Ze.error("Error while rendering info diagram"),Ze.error(b)}},fg={draw:pg};var mg=function(){var e=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},t=[1,3],n=[1,5],r=[1,6],a=[1,7],i=[1,8],o=[5,6,8,14,16,18,19,40,41,42,43,44,45,53,71,72],s=[1,22],l=[2,13],c=[1,26],u=[1,27],d=[1,28],h=[1,29],p=[1,30],f=[1,31],m=[1,24],g=[1,32],v=[1,33],y=[1,36],b=[71,72],w=[5,8,14,16,18,19,40,41,42,43,44,45,53,60,62,71,72],x=[1,56],k=[1,57],_=[1,58],C=[1,59],E=[1,60],R=[1,61],S=[1,62],A=[62,63],T=[1,74],M=[1,70],L=[1,71],O=[1,72],I=[1,73],N=[1,75],B=[1,79],D=[1,80],F=[1,77],$=[1,78],P=[5,8,14,16,18,19,40,41,42,43,44,45,53,71,72],z={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,openDirective:9,typeDirective:10,closeDirective:11,":":12,argDirective:13,acc_title:14,acc_title_value:15,acc_descr:16,acc_descr_value:17,acc_descr_multiline_value:18,open_directive:19,type_directive:20,arg_directive:21,close_directive:22,requirementDef:23,elementDef:24,relationshipDef:25,requirementType:26,requirementName:27,STRUCT_START:28,requirementBody:29,ID:30,COLONSEP:31,id:32,TEXT:33,text:34,RISK:35,riskLevel:36,VERIFYMTHD:37,verifyType:38,STRUCT_STOP:39,REQUIREMENT:40,FUNCTIONAL_REQUIREMENT:41,INTERFACE_REQUIREMENT:42,PERFORMANCE_REQUIREMENT:43,PHYSICAL_REQUIREMENT:44,DESIGN_CONSTRAINT:45,LOW_RISK:46,MED_RISK:47,HIGH_RISK:48,VERIFY_ANALYSIS:49,VERIFY_DEMONSTRATION:50,VERIFY_INSPECTION:51,VERIFY_TEST:52,ELEMENT:53,elementName:54,elementBody:55,TYPE:56,type:57,DOCREF:58,ref:59,END_ARROW_L:60,relationship:61,LINE:62,END_ARROW_R:63,CONTAINS:64,COPIES:65,DERIVES:66,SATISFIES:67,VERIFIES:68,REFINES:69,TRACES:70,unqString:71,qString:72,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",12:":",14:"acc_title",15:"acc_title_value",16:"acc_descr",17:"acc_descr_value",18:"acc_descr_multiline_value",19:"open_directive",20:"type_directive",21:"arg_directive",22:"close_directive",28:"STRUCT_START",30:"ID",31:"COLONSEP",33:"TEXT",35:"RISK",37:"VERIFYMTHD",39:"STRUCT_STOP",40:"REQUIREMENT",41:"FUNCTIONAL_REQUIREMENT",42:"INTERFACE_REQUIREMENT",43:"PERFORMANCE_REQUIREMENT",44:"PHYSICAL_REQUIREMENT",45:"DESIGN_CONSTRAINT",46:"LOW_RISK",47:"MED_RISK",48:"HIGH_RISK",49:"VERIFY_ANALYSIS",50:"VERIFY_DEMONSTRATION",51:"VERIFY_INSPECTION",52:"VERIFY_TEST",53:"ELEMENT",56:"TYPE",58:"DOCREF",60:"END_ARROW_L",62:"LINE",63:"END_ARROW_R",64:"CONTAINS",65:"COPIES",66:"DERIVES",67:"SATISFIES",68:"VERIFIES",69:"REFINES",70:"TRACES",71:"unqString",72:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,3],[4,5],[4,2],[4,2],[4,1],[9,1],[10,1],[13,1],[11,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[23,5],[29,5],[29,5],[29,5],[29,5],[29,2],[29,1],[26,1],[26,1],[26,1],[26,1],[26,1],[26,1],[36,1],[36,1],[36,1],[38,1],[38,1],[38,1],[38,1],[24,5],[55,5],[55,5],[55,2],[55,1],[25,5],[25,5],[61,1],[61,1],[61,1],[61,1],[61,1],[61,1],[61,1],[27,1],[27,1],[32,1],[32,1],[34,1],[34,1],[54,1],[54,1],[57,1],[57,1],[59,1],[59,1]],performAction:function(e,t,n,r,a,i,o){var s=i.length-1;switch(a){case 6:this.$=i[s].trim(),r.setAccTitle(this.$);break;case 7:case 8:this.$=i[s].trim(),r.setAccDescription(this.$);break;case 9:r.parseDirective("%%{","open_directive");break;case 10:r.parseDirective(i[s],"type_directive");break;case 11:i[s]=i[s].trim().replace(/'/g,'"'),r.parseDirective(i[s],"arg_directive");break;case 12:r.parseDirective("}%%","close_directive","pie");break;case 13:this.$=[];break;case 19:r.addRequirement(i[s-3],i[s-4]);break;case 20:r.setNewReqId(i[s-2]);break;case 21:r.setNewReqText(i[s-2]);break;case 22:r.setNewReqRisk(i[s-2]);break;case 23:r.setNewReqVerifyMethod(i[s-2]);break;case 26:this.$=r.RequirementType.REQUIREMENT;break;case 27:this.$=r.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 28:this.$=r.RequirementType.INTERFACE_REQUIREMENT;break;case 29:this.$=r.RequirementType.PERFORMANCE_REQUIREMENT;break;case 30:this.$=r.RequirementType.PHYSICAL_REQUIREMENT;break;case 31:this.$=r.RequirementType.DESIGN_CONSTRAINT;break;case 32:this.$=r.RiskLevel.LOW_RISK;break;case 33:this.$=r.RiskLevel.MED_RISK;break;case 34:this.$=r.RiskLevel.HIGH_RISK;break;case 35:this.$=r.VerifyType.VERIFY_ANALYSIS;break;case 36:this.$=r.VerifyType.VERIFY_DEMONSTRATION;break;case 37:this.$=r.VerifyType.VERIFY_INSPECTION;break;case 38:this.$=r.VerifyType.VERIFY_TEST;break;case 39:r.addElement(i[s-3]);break;case 40:r.setNewElementType(i[s-2]);break;case 41:r.setNewElementDocRef(i[s-2]);break;case 44:r.addRelationship(i[s-2],i[s],i[s-4]);break;case 45:r.addRelationship(i[s-2],i[s-4],i[s]);break;case 46:this.$=r.Relationships.CONTAINS;break;case 47:this.$=r.Relationships.COPIES;break;case 48:this.$=r.Relationships.DERIVES;break;case 49:this.$=r.Relationships.SATISFIES;break;case 50:this.$=r.Relationships.VERIFIES;break;case 51:this.$=r.Relationships.REFINES;break;case 52:this.$=r.Relationships.TRACES;break}},table:[{3:1,4:2,6:t,9:4,14:n,16:r,18:a,19:i},{1:[3]},{3:10,4:2,5:[1,9],6:t,9:4,14:n,16:r,18:a,19:i},{5:[1,11]},{10:12,20:[1,13]},{15:[1,14]},{17:[1,15]},e(o,[2,8]),{20:[2,9]},{3:16,4:2,6:t,9:4,14:n,16:r,18:a,19:i},{1:[2,2]},{4:21,5:s,7:17,8:l,9:4,14:n,16:r,18:a,19:i,23:18,24:19,25:20,26:23,32:25,40:c,41:u,42:d,43:h,44:p,45:f,53:m,71:g,72:v},{11:34,12:[1,35],22:y},e([12,22],[2,10]),e(o,[2,6]),e(o,[2,7]),{1:[2,1]},{8:[1,37]},{4:21,5:s,7:38,8:l,9:4,14:n,16:r,18:a,19:i,23:18,24:19,25:20,26:23,32:25,40:c,41:u,42:d,43:h,44:p,45:f,53:m,71:g,72:v},{4:21,5:s,7:39,8:l,9:4,14:n,16:r,18:a,19:i,23:18,24:19,25:20,26:23,32:25,40:c,41:u,42:d,43:h,44:p,45:f,53:m,71:g,72:v},{4:21,5:s,7:40,8:l,9:4,14:n,16:r,18:a,19:i,23:18,24:19,25:20,26:23,32:25,40:c,41:u,42:d,43:h,44:p,45:f,53:m,71:g,72:v},{4:21,5:s,7:41,8:l,9:4,14:n,16:r,18:a,19:i,23:18,24:19,25:20,26:23,32:25,40:c,41:u,42:d,43:h,44:p,45:f,53:m,71:g,72:v},{4:21,5:s,7:42,8:l,9:4,14:n,16:r,18:a,19:i,23:18,24:19,25:20,26:23,32:25,40:c,41:u,42:d,43:h,44:p,45:f,53:m,71:g,72:v},{27:43,71:[1,44],72:[1,45]},{54:46,71:[1,47],72:[1,48]},{60:[1,49],62:[1,50]},e(b,[2,26]),e(b,[2,27]),e(b,[2,28]),e(b,[2,29]),e(b,[2,30]),e(b,[2,31]),e(w,[2,55]),e(w,[2,56]),e(o,[2,4]),{13:51,21:[1,52]},e(o,[2,12]),{1:[2,3]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{8:[2,17]},{8:[2,18]},{28:[1,53]},{28:[2,53]},{28:[2,54]},{28:[1,54]},{28:[2,59]},{28:[2,60]},{61:55,64:x,65:k,66:_,67:C,68:E,69:R,70:S},{61:63,64:x,65:k,66:_,67:C,68:E,69:R,70:S},{11:64,22:y},{22:[2,11]},{5:[1,65]},{5:[1,66]},{62:[1,67]},e(A,[2,46]),e(A,[2,47]),e(A,[2,48]),e(A,[2,49]),e(A,[2,50]),e(A,[2,51]),e(A,[2,52]),{63:[1,68]},e(o,[2,5]),{5:T,29:69,30:M,33:L,35:O,37:I,39:N},{5:B,39:D,55:76,56:F,58:$},{32:81,71:g,72:v},{32:82,71:g,72:v},e(P,[2,19]),{31:[1,83]},{31:[1,84]},{31:[1,85]},{31:[1,86]},{5:T,29:87,30:M,33:L,35:O,37:I,39:N},e(P,[2,25]),e(P,[2,39]),{31:[1,88]},{31:[1,89]},{5:B,39:D,55:90,56:F,58:$},e(P,[2,43]),e(P,[2,44]),e(P,[2,45]),{32:91,71:g,72:v},{34:92,71:[1,93],72:[1,94]},{36:95,46:[1,96],47:[1,97],48:[1,98]},{38:99,49:[1,100],50:[1,101],51:[1,102],52:[1,103]},e(P,[2,24]),{57:104,71:[1,105],72:[1,106]},{59:107,71:[1,108],72:[1,109]},e(P,[2,42]),{5:[1,110]},{5:[1,111]},{5:[2,57]},{5:[2,58]},{5:[1,112]},{5:[2,32]},{5:[2,33]},{5:[2,34]},{5:[1,113]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[2,38]},{5:[1,114]},{5:[2,61]},{5:[2,62]},{5:[1,115]},{5:[2,63]},{5:[2,64]},{5:T,29:116,30:M,33:L,35:O,37:I,39:N},{5:T,29:117,30:M,33:L,35:O,37:I,39:N},{5:T,29:118,30:M,33:L,35:O,37:I,39:N},{5:T,29:119,30:M,33:L,35:O,37:I,39:N},{5:B,39:D,55:120,56:F,58:$},{5:B,39:D,55:121,56:F,58:$},e(P,[2,20]),e(P,[2,21]),e(P,[2,22]),e(P,[2,23]),e(P,[2,40]),e(P,[2,41])],defaultActions:{8:[2,9],10:[2,2],16:[2,1],37:[2,3],38:[2,14],39:[2,15],40:[2,16],41:[2,17],42:[2,18],44:[2,53],45:[2,54],47:[2,59],48:[2,60],52:[2,11],93:[2,57],94:[2,58],96:[2,32],97:[2,33],98:[2,34],100:[2,35],101:[2,36],102:[2,37],103:[2,38],105:[2,61],106:[2,62],108:[2,63],109:[2,64]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],r=[],a=[null],i=[],o=this.table,s="",l=0,c=0,u=2,d=1,h=i.slice.call(arguments,1),p=Object.create(this.lexer),f={yy:{}};for(var m in this.yy)Object.prototype.hasOwnProperty.call(this.yy,m)&&(f.yy[m]=this.yy[m]);p.setInput(e,f.yy),f.yy.lexer=p,f.yy.parser=this,"undefined"==typeof p.yylloc&&(p.yylloc={});var g=p.yylloc;i.push(g);var v=p.options&&p.options.ranges;function y(){var e;return e=r.pop()||p.lex()||d,"number"!==typeof e&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}"function"===typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;var b,w,x,k,_,C,E,R,S={};while(1){if(w=n[n.length-1],this.defaultActions[w]?x=this.defaultActions[w]:(null!==b&&"undefined"!=typeof b||(b=y()),x=o[w]&&o[w][b]),"undefined"===typeof x||!x.length||!x[0]){var A="";for(_ in R=[],o[w])this.terminals_[_]&&_>u&&R.push("'"+this.terminals_[_]+"'");A=p.showPosition?"Parse error on line "+(l+1)+":\n"+p.showPosition()+"\nExpecting "+R.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(l+1)+": Unexpected "+(b==d?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(A,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:g,expected:R})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+b);switch(x[0]){case 1:n.push(b),a.push(p.yytext),i.push(p.yylloc),n.push(x[1]),b=null,c=p.yyleng,s=p.yytext,l=p.yylineno,g=p.yylloc;break;case 2:if(C=this.productions_[x[1]][1],S.$=a[a.length-C],S._$={first_line:i[i.length-(C||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(C||1)].first_column,last_column:i[i.length-1].last_column},v&&(S._$.range=[i[i.length-(C||1)].range[0],i[i.length-1].range[1]]),k=this.performAction.apply(S,[s,c,l,f.yy,x[1],a,i].concat(h)),"undefined"!==typeof k)return k;C&&(n=n.slice(0,-1*C*2),a=a.slice(0,-1*C),i=i.slice(0,-1*C)),n.push(this.productions_[x[1]][0]),a.push(S.$),i.push(S._$),E=o[n[n.length-2]][n[n.length-1]],n.push(E);break;case 3:return!0}}return!0}},W=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e;var t=e.match(/(?:\r\n?|\n).*/g);return t?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var a=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,a;if(this.options.backtrack_lexer&&(a={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(a.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var i in a)this[i]=a[i];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var a=this._currentRules(),i=0;i<a.length;i++)if(n=this._input.match(this.rules[a[i]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=i,this.options.backtrack_lexer){if(e=this.test_match(n,a[i]),!1!==e)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,a[r]),!1!==e&&e):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){var e=this.conditionStack.length-1;return e>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions["INITIAL"].rules},topState:function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return this.begin("open_directive"),19;case 1:return this.begin("type_directive"),20;case 2:return this.popState(),this.begin("arg_directive"),12;case 3:return this.popState(),this.popState(),22;case 4:return 21;case 5:return"title";case 6:return this.begin("acc_title"),14;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),16;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 5;case 14:break;case 15:break;case 16:break;case 17:return 8;case 18:return 6;case 19:return 28;case 20:return 39;case 21:return 31;case 22:return 30;case 23:return 33;case 24:return 35;case 25:return 37;case 26:return 40;case 27:return 41;case 28:return 42;case 29:return 43;case 30:return 44;case 31:return 45;case 32:return 46;case 33:return 47;case 34:return 48;case 35:return 49;case 36:return 50;case 37:return 51;case 38:return 52;case 39:return 53;case 40:return 64;case 41:return 65;case 42:return 66;case 43:return 67;case 44:return 68;case 45:return 69;case 46:return 70;case 47:return 56;case 48:return 58;case 49:return 60;case 50:return 63;case 51:return 62;case 52:this.begin("string");break;case 53:this.popState();break;case 54:return"qString";case 55:return t.yytext=t.yytext.trim(),71}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^\r\n\{\<\>\-\=]*)/i],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},unqString:{rules:[],inclusive:!1},token:{rules:[],inclusive:!1},string:{rules:[53,54],inclusive:!1},INITIAL:{rules:[0,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,55],inclusive:!0}}};return e}();function j(){this.yy={}}return z.lexer=W,j.prototype=z,z.Parser=j,new j}();mg.parser=mg;const gg=mg,vg=e=>null!==e.match(/^\s*requirement(Diagram)?/);let yg=[],bg={},wg={},xg={},kg={};const _g={REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},Cg={LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},Eg={VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},Rg={CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},Sg=function(e,t,n){m_.parseDirective(this,e,t,n)},Ag=(e,t)=>(void 0===wg[e]&&(wg[e]={name:e,type:t,id:bg.id,text:bg.text,risk:bg.risk,verifyMethod:bg.verifyMethod}),bg={},wg[e]),Tg=()=>wg,Mg=e=>{void 0!==bg&&(bg.id=e)},Lg=e=>{void 0!==bg&&(bg.text=e)},Og=e=>{void 0!==bg&&(bg.risk=e)},Ig=e=>{void 0!==bg&&(bg.verifyMethod=e)},Ng=e=>(void 0===kg[e]&&(kg[e]={name:e,type:xg.type,docRef:xg.docRef},Ze.info("Added new requirement: ",e)),xg={},kg[e]),Bg=()=>kg,Dg=e=>{void 0!==xg&&(xg.type=e)},Fg=e=>{void 0!==xg&&(xg.docRef=e)},$g=(e,t,n)=>{yg.push({type:e,src:t,dst:n})},Pg=()=>yg,zg=()=>{yg=[],bg={},wg={},xg={},kg={},uo()},Wg={RequirementType:_g,RiskLevel:Cg,VerifyType:Eg,Relationships:Rg,parseDirective:Sg,getConfig:()=>wi().req,addRequirement:Ag,getRequirements:Tg,setNewReqId:Mg,setNewReqText:Lg,setNewReqRisk:Og,setNewReqVerifyMethod:Ig,setAccTitle:ho,getAccTitle:po,setAccDescription:fo,getAccDescription:mo,addElement:Ng,getElements:Bg,setNewElementType:Dg,setNewElementDocRef:Fg,addRelationship:$g,getRelationships:Pg,clear:zg},jg={CONTAINS:"contains",ARROW:"arrow"},Vg=(e,t)=>{let n=e.append("defs").append("marker").attr("id",jg.CONTAINS+"_line_ending").attr("refX",0).attr("refY",t.line_height/2).attr("markerWidth",t.line_height).attr("markerHeight",t.line_height).attr("orient","auto").append("g");n.append("circle").attr("cx",t.line_height/2).attr("cy",t.line_height/2).attr("r",t.line_height/2).attr("fill","none"),n.append("line").attr("x1",0).attr("x2",t.line_height).attr("y1",t.line_height/2).attr("y2",t.line_height/2).attr("stroke-width",1),n.append("line").attr("y1",0).attr("y2",t.line_height).attr("x1",t.line_height/2).attr("x2",t.line_height/2).attr("stroke-width",1),e.append("defs").append("marker").attr("id",jg.ARROW+"_line_ending").attr("refX",t.line_height).attr("refY",.5*t.line_height).attr("markerWidth",t.line_height).attr("markerHeight",t.line_height).attr("orient","auto").append("path").attr("d",`M0,0\n L${t.line_height},${t.line_height/2}\n M${t.line_height},${t.line_height/2}\n L0,${t.line_height}`).attr("stroke-width",1)},Ug={ReqMarkers:jg,insertLineEndings:Vg};let Kg={},Hg=0;const qg=(e,t)=>e.insert("rect","#"+t).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",Kg.rect_min_width+"px").attr("height",Kg.rect_min_height+"px"),Gg=(e,t,n)=>{let r=Kg.rect_min_width/2,a=e.append("text").attr("class","req reqLabel reqTitle").attr("id",t).attr("x",r).attr("y",Kg.rect_padding).attr("dominant-baseline","hanging"),i=0;n.forEach((e=>{0==i?a.append("tspan").attr("text-anchor","middle").attr("x",Kg.rect_min_width/2).attr("dy",0).text(e):a.append("tspan").attr("text-anchor","middle").attr("x",Kg.rect_min_width/2).attr("dy",.75*Kg.line_height).text(e),i++}));let o=1.5*Kg.rect_padding,s=i*Kg.line_height*.75,l=o+s;return e.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",Kg.rect_min_width).attr("y1",l).attr("y2",l),{titleNode:a,y:l}},Xg=(e,t,n,r)=>{let a=e.append("text").attr("class","req reqLabel").attr("id",t).attr("x",Kg.rect_padding).attr("y",r).attr("dominant-baseline","hanging"),i=0;const o=30;let s=[];return n.forEach((e=>{let t=e.length;while(t>o&&i<3){let n=e.substring(0,o);e=e.substring(o,e.length),t=e.length,s[s.length]=n,i++}if(3==i){let e=s[s.length-1];s[s.length-1]=e.substring(0,e.length-4)+"..."}else s[s.length]=e;i=0})),s.forEach((e=>{a.append("tspan").attr("x",Kg.rect_padding).attr("dy",Kg.line_height).text(e)})),a},Yg=(e,t,n,r)=>{const a=t.node().getTotalLength(),i=t.node().getPointAtLength(.5*a),o="rel"+Hg;Hg++;const s=e.append("text").attr("class","req relationshipLabel").attr("id",o).attr("x",i.x).attr("y",i.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(r),l=s.node().getBBox();e.insert("rect","#"+o).attr("class","req reqLabelBox").attr("x",i.x-l.width/2).attr("y",i.y-l.height/2).attr("width",l.width).attr("height",l.height).attr("fill","white").attr("fill-opacity","85%")},Qg=function(e,t,n,r,a){const i=n.edge(nv(t.src),nv(t.dst)),o=(0,s.n8j)().x((function(e){return e.x})).y((function(e){return e.y})),l=e.insert("path","#"+r).attr("class","er relationshipLine").attr("d",o(i.points)).attr("fill","none");t.type==a.db.Relationships.CONTAINS?l.attr("marker-start","url("+ft.getUrl(Kg.arrowMarkerAbsolute)+"#"+t.type+"_line_ending)"):(l.attr("stroke-dasharray","10,7"),l.attr("marker-end","url("+ft.getUrl(Kg.arrowMarkerAbsolute)+"#"+Ug.ReqMarkers.ARROW+"_line_ending)")),Yg(e,l,Kg,`<<${t.type}>>`)},Zg=(e,t,n)=>{Object.keys(e).forEach((r=>{let a=e[r];r=nv(r),Ze.info("Added new requirement: ",r);const i=n.append("g").attr("id",r),o="req-"+r,s=qg(i,o);let l=Gg(i,r+"_title",[`<<${a.type}>>`,`${a.name}`]);Xg(i,r+"_body",[`Id: ${a.id}`,`Text: ${a.text}`,`Risk: ${a.risk}`,`Verification: ${a.verifyMethod}`],l.y);const c=s.node().getBBox();t.setNode(r,{width:c.width,height:c.height,shape:"rect",id:r})}))},Jg=(e,t,n)=>{Object.keys(e).forEach((r=>{let a=e[r];const i=nv(r),o=n.append("g").attr("id",i),s="element-"+i,l=qg(o,s);let c=Gg(o,s+"_title",["<<Element>>",`${r}`]);Xg(o,s+"_body",[`Type: ${a.type||"Not Specified"}`,`Doc Ref: ${a.docRef||"None"}`],c.y);const u=l.node().getBBox();t.setNode(i,{width:u.width,height:u.height,shape:"rect",id:i})}))},ev=(e,t)=>(e.forEach((function(e){let n=nv(e.src),r=nv(e.dst);t.setEdge(n,r,{relationship:e})})),e),tv=function(e,t){t.nodes().forEach((function(n){void 0!==n&&void 0!==t.node(n)&&(e.select("#"+n),e.select("#"+n).attr("transform","translate("+(t.node(n).x-t.node(n).width/2)+","+(t.node(n).y-t.node(n).height/2)+" )"))}))},nv=e=>e.replace(/\s/g,"").replace(/\./g,"_"),rv=(e,t,n,r)=>{Kg=wi().requirement,r.db.clear(),r.parser.parse(e);const a=Kg.securityLevel;let i;"sandbox"===a&&(i=(0,s.Ltv)("#i"+t));const o="sandbox"===a?(0,s.Ltv)(i.nodes()[0].contentDocument.body):(0,s.Ltv)("body"),l=o.select(`[id='${t}']`);Ug.insertLineEndings(l,Kg);const c=new we.T({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:Kg.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel((function(){return{}}));let u=r.db.getRequirements(),d=r.db.getElements(),h=r.db.getRelationships();Zg(u,c,l),Jg(d,c,l),ev(h,c),(0,be.Zp)(c),tv(l,c),h.forEach((function(e){Qg(l,e,c,t,r)}));const p=Kg.rect_padding,f=l.node().getBBox(),m=f.width+2*p,g=f.height+2*p;Mi(l,g,m,Kg.useMaxWidth),l.attr("viewBox",`${f.x-p} ${f.y-p} ${m} ${g}`)},av={draw:rv};var iv=function(){var e=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},t=[1,2],n=[1,3],r=[1,5],a=[1,7],i=[2,5],o=[1,15],s=[1,17],l=[1,19],c=[1,21],u=[1,22],d=[1,23],h=[1,29],p=[1,30],f=[1,31],m=[1,32],g=[1,33],v=[1,34],y=[1,35],b=[1,36],w=[1,37],x=[1,38],k=[1,39],_=[1,40],C=[1,42],E=[1,43],R=[1,45],S=[1,46],A=[1,47],T=[1,48],M=[1,49],L=[1,50],O=[1,53],I=[1,4,5,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,50,51,52,53,54,56,57,62,63,64,65,73,83],N=[4,5,21,54,56],B=[4,5,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,50,54,56,57,62,63,64,65,73,83],D=[4,5,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,50,53,54,56,57,62,63,64,65,73,83],F=[4,5,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,50,52,54,56,57,62,63,64,65,73,83],$=[4,5,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,50,51,54,56,57,62,63,64,65,73,83],P=[71,72,73],z=[1,125],W=[1,4,5,7,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,50,51,52,53,54,56,57,62,63,64,65,73,83],j={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,directive:6,SD:7,document:8,line:9,statement:10,box_section:11,box_line:12,participant_statement:13,openDirective:14,typeDirective:15,closeDirective:16,":":17,argDirective:18,box:19,restOfLine:20,end:21,signal:22,autonumber:23,NUM:24,off:25,activate:26,actor:27,deactivate:28,note_statement:29,links_statement:30,link_statement:31,properties_statement:32,details_statement:33,title:34,legacy_title:35,acc_title:36,acc_title_value:37,acc_descr:38,acc_descr_value:39,acc_descr_multiline_value:40,loop:41,rect:42,opt:43,alt:44,else_sections:45,par:46,par_sections:47,critical:48,option_sections:49,break:50,option:51,and:52,else:53,participant:54,AS:55,participant_actor:56,note:57,placement:58,text2:59,over:60,actor_pair:61,links:62,link:63,properties:64,details:65,spaceList:66,",":67,left_of:68,right_of:69,signaltype:70,"+":71,"-":72,ACTOR:73,SOLID_OPEN_ARROW:74,DOTTED_OPEN_ARROW:75,SOLID_ARROW:76,DOTTED_ARROW:77,SOLID_CROSS:78,DOTTED_CROSS:79,SOLID_POINT:80,DOTTED_POINT:81,TXT:82,open_directive:83,type_directive:84,arg_directive:85,close_directive:86,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",7:"SD",17:":",19:"box",20:"restOfLine",21:"end",23:"autonumber",24:"NUM",25:"off",26:"activate",28:"deactivate",34:"title",35:"legacy_title",36:"acc_title",37:"acc_title_value",38:"acc_descr",39:"acc_descr_value",40:"acc_descr_multiline_value",41:"loop",42:"rect",43:"opt",44:"alt",46:"par",48:"critical",50:"break",51:"option",52:"and",53:"else",54:"participant",55:"AS",56:"participant_actor",57:"note",60:"over",62:"links",63:"link",64:"properties",65:"details",67:",",68:"left_of",69:"right_of",71:"+",72:"-",73:"ACTOR",74:"SOLID_OPEN_ARROW",75:"DOTTED_OPEN_ARROW",76:"SOLID_ARROW",77:"DOTTED_ARROW",78:"SOLID_CROSS",79:"DOTTED_CROSS",80:"SOLID_POINT",81:"DOTTED_POINT",82:"TXT",83:"open_directive",84:"type_directive",85:"arg_directive",86:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[11,0],[11,2],[12,2],[12,1],[12,1],[6,4],[6,6],[10,1],[10,4],[10,2],[10,4],[10,3],[10,3],[10,2],[10,3],[10,3],[10,2],[10,2],[10,2],[10,2],[10,2],[10,1],[10,1],[10,2],[10,2],[10,1],[10,4],[10,4],[10,4],[10,4],[10,4],[10,4],[10,4],[10,1],[49,1],[49,4],[47,1],[47,4],[45,1],[45,4],[13,5],[13,3],[13,5],[13,3],[29,4],[29,4],[30,3],[31,3],[32,3],[33,3],[66,2],[66,1],[61,3],[61,1],[58,1],[58,1],[22,5],[22,5],[22,4],[27,1],[70,1],[70,1],[70,1],[70,1],[70,1],[70,1],[70,1],[70,1],[59,1],[14,1],[15,1],[18,1],[16,1]],performAction:function(e,t,n,r,a,i,o){var s=i.length-1;switch(a){case 4:return r.apply(i[s]),i[s];case 5:case 10:this.$=[];break;case 6:case 11:i[s-1].push(i[s]),this.$=i[s-1];break;case 7:case 8:case 12:case 13:this.$=i[s];break;case 9:case 14:this.$=[];break;case 18:i[s-1].unshift({type:"boxStart",boxData:r.parseBoxData(i[s-2])}),i[s-1].push({type:"boxEnd",boxText:i[s-2]}),this.$=i[s-1];break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(i[s-2]),sequenceIndexStep:Number(i[s-1]),sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceIndex:Number(i[s-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:r.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 24:this.$={type:"activeStart",signalType:r.LINETYPE.ACTIVE_START,actor:i[s-1]};break;case 25:this.$={type:"activeEnd",signalType:r.LINETYPE.ACTIVE_END,actor:i[s-1]};break;case 31:r.setDiagramTitle(i[s].substring(6)),this.$=i[s].substring(6);break;case 32:r.setDiagramTitle(i[s].substring(7)),this.$=i[s].substring(7);break;case 33:this.$=i[s].trim(),r.setAccTitle(this.$);break;case 34:case 35:this.$=i[s].trim(),r.setAccDescription(this.$);break;case 36:i[s-1].unshift({type:"loopStart",loopText:r.parseMessage(i[s-2]),signalType:r.LINETYPE.LOOP_START}),i[s-1].push({type:"loopEnd",loopText:i[s-2],signalType:r.LINETYPE.LOOP_END}),this.$=i[s-1];break;case 37:i[s-1].unshift({type:"rectStart",color:r.parseMessage(i[s-2]),signalType:r.LINETYPE.RECT_START}),i[s-1].push({type:"rectEnd",color:r.parseMessage(i[s-2]),signalType:r.LINETYPE.RECT_END}),this.$=i[s-1];break;case 38:i[s-1].unshift({type:"optStart",optText:r.parseMessage(i[s-2]),signalType:r.LINETYPE.OPT_START}),i[s-1].push({type:"optEnd",optText:r.parseMessage(i[s-2]),signalType:r.LINETYPE.OPT_END}),this.$=i[s-1];break;case 39:i[s-1].unshift({type:"altStart",altText:r.parseMessage(i[s-2]),signalType:r.LINETYPE.ALT_START}),i[s-1].push({type:"altEnd",signalType:r.LINETYPE.ALT_END}),this.$=i[s-1];break;case 40:i[s-1].unshift({type:"parStart",parText:r.parseMessage(i[s-2]),signalType:r.LINETYPE.PAR_START}),i[s-1].push({type:"parEnd",signalType:r.LINETYPE.PAR_END}),this.$=i[s-1];break;case 41:i[s-1].unshift({type:"criticalStart",criticalText:r.parseMessage(i[s-2]),signalType:r.LINETYPE.CRITICAL_START}),i[s-1].push({type:"criticalEnd",signalType:r.LINETYPE.CRITICAL_END}),this.$=i[s-1];break;case 42:i[s-1].unshift({type:"breakStart",breakText:r.parseMessage(i[s-2]),signalType:r.LINETYPE.BREAK_START}),i[s-1].push({type:"breakEnd",optText:r.parseMessage(i[s-2]),signalType:r.LINETYPE.BREAK_END}),this.$=i[s-1];break;case 45:this.$=i[s-3].concat([{type:"option",optionText:r.parseMessage(i[s-1]),signalType:r.LINETYPE.CRITICAL_OPTION},i[s]]);break;case 47:this.$=i[s-3].concat([{type:"and",parText:r.parseMessage(i[s-1]),signalType:r.LINETYPE.PAR_AND},i[s]]);break;case 49:this.$=i[s-3].concat([{type:"else",altText:r.parseMessage(i[s-1]),signalType:r.LINETYPE.ALT_ELSE},i[s]]);break;case 50:i[s-3].type="addParticipant",i[s-3].description=r.parseMessage(i[s-1]),this.$=i[s-3];break;case 51:i[s-1].type="addParticipant",this.$=i[s-1];break;case 52:i[s-3].type="addActor",i[s-3].description=r.parseMessage(i[s-1]),this.$=i[s-3];break;case 53:i[s-1].type="addActor",this.$=i[s-1];break;case 54:this.$=[i[s-1],{type:"addNote",placement:i[s-2],actor:i[s-1].actor,text:i[s]}];break;case 55:i[s-2]=[].concat(i[s-1],i[s-1]).slice(0,2),i[s-2][0]=i[s-2][0].actor,i[s-2][1]=i[s-2][1].actor,this.$=[i[s-1],{type:"addNote",placement:r.PLACEMENT.OVER,actor:i[s-2].slice(0,2),text:i[s]}];break;case 56:this.$=[i[s-1],{type:"addLinks",actor:i[s-1].actor,text:i[s]}];break;case 57:this.$=[i[s-1],{type:"addALink",actor:i[s-1].actor,text:i[s]}];break;case 58:this.$=[i[s-1],{type:"addProperties",actor:i[s-1].actor,text:i[s]}];break;case 59:this.$=[i[s-1],{type:"addDetails",actor:i[s-1].actor,text:i[s]}];break;case 62:this.$=[i[s-2],i[s]];break;case 63:this.$=i[s];break;case 64:this.$=r.PLACEMENT.LEFTOF;break;case 65:this.$=r.PLACEMENT.RIGHTOF;break;case 66:this.$=[i[s-4],i[s-1],{type:"addMessage",from:i[s-4].actor,to:i[s-1].actor,signalType:i[s-3],msg:i[s]},{type:"activeStart",signalType:r.LINETYPE.ACTIVE_START,actor:i[s-1]}];break;case 67:this.$=[i[s-4],i[s-1],{type:"addMessage",from:i[s-4].actor,to:i[s-1].actor,signalType:i[s-3],msg:i[s]},{type:"activeEnd",signalType:r.LINETYPE.ACTIVE_END,actor:i[s-4]}];break;case 68:this.$=[i[s-3],i[s-1],{type:"addMessage",from:i[s-3].actor,to:i[s-1].actor,signalType:i[s-2],msg:i[s]}];break;case 69:this.$={type:"addParticipant",actor:i[s]};break;case 70:this.$=r.LINETYPE.SOLID_OPEN;break;case 71:this.$=r.LINETYPE.DOTTED_OPEN;break;case 72:this.$=r.LINETYPE.SOLID;break;case 73:this.$=r.LINETYPE.DOTTED;break;case 74:this.$=r.LINETYPE.SOLID_CROSS;break;case 75:this.$=r.LINETYPE.DOTTED_CROSS;break;case 76:this.$=r.LINETYPE.SOLID_POINT;break;case 77:this.$=r.LINETYPE.DOTTED_POINT;break;case 78:this.$=r.parseMessage(i[s].trim().substring(1));break;case 79:r.parseDirective("%%{","open_directive");break;case 80:r.parseDirective(i[s],"type_directive");break;case 81:i[s]=i[s].trim().replace(/'/g,'"'),r.parseDirective(i[s],"arg_directive");break;case 82:r.parseDirective("}%%","close_directive","sequence");break}},table:[{3:1,4:t,5:n,6:4,7:r,14:6,83:a},{1:[3]},{3:8,4:t,5:n,6:4,7:r,14:6,83:a},{3:9,4:t,5:n,6:4,7:r,14:6,83:a},{3:10,4:t,5:n,6:4,7:r,14:6,83:a},e([1,4,5,19,23,26,28,34,35,36,38,40,41,42,43,44,46,48,50,54,56,57,62,63,64,65,73,83],i,{8:11}),{15:12,84:[1,13]},{84:[2,79]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:o,5:s,6:41,9:14,10:16,13:18,14:6,19:l,22:20,23:c,26:u,27:44,28:d,29:24,30:25,31:26,32:27,33:28,34:h,35:p,36:f,38:m,40:g,41:v,42:y,43:b,44:w,46:x,48:k,50:_,54:C,56:E,57:R,62:S,63:A,64:T,65:M,73:L,83:a},{16:51,17:[1,52],86:O},e([17,86],[2,80]),e(I,[2,6]),{6:41,10:54,13:18,14:6,19:l,22:20,23:c,26:u,27:44,28:d,29:24,30:25,31:26,32:27,33:28,34:h,35:p,36:f,38:m,40:g,41:v,42:y,43:b,44:w,46:x,48:k,50:_,54:C,56:E,57:R,62:S,63:A,64:T,65:M,73:L,83:a},e(I,[2,8]),e(I,[2,9]),e(I,[2,17]),{20:[1,55]},{5:[1,56]},{5:[1,59],24:[1,57],25:[1,58]},{27:60,73:L},{27:61,73:L},{5:[1,62]},{5:[1,63]},{5:[1,64]},{5:[1,65]},{5:[1,66]},e(I,[2,31]),e(I,[2,32]),{37:[1,67]},{39:[1,68]},e(I,[2,35]),{20:[1,69]},{20:[1,70]},{20:[1,71]},{20:[1,72]},{20:[1,73]},{20:[1,74]},{20:[1,75]},e(I,[2,43]),{27:76,73:L},{27:77,73:L},{70:78,74:[1,79],75:[1,80],76:[1,81],77:[1,82],78:[1,83],79:[1,84],80:[1,85],81:[1,86]},{58:87,60:[1,88],68:[1,89],69:[1,90]},{27:91,73:L},{27:92,73:L},{27:93,73:L},{27:94,73:L},e([5,55,67,74,75,76,77,78,79,80,81,82],[2,69]),{5:[1,95]},{18:96,85:[1,97]},{5:[2,82]},e(I,[2,7]),e(N,[2,10],{11:98}),e(I,[2,19]),{5:[1,100],24:[1,99]},{5:[1,101]},e(I,[2,23]),{5:[1,102]},{5:[1,103]},e(I,[2,26]),e(I,[2,27]),e(I,[2,28]),e(I,[2,29]),e(I,[2,30]),e(I,[2,33]),e(I,[2,34]),e(B,i,{8:104}),e(B,i,{8:105}),e(B,i,{8:106}),e(D,i,{45:107,8:108}),e(F,i,{47:109,8:110}),e($,i,{49:111,8:112}),e(B,i,{8:113}),{5:[1,115],55:[1,114]},{5:[1,117],55:[1,116]},{27:120,71:[1,118],72:[1,119],73:L},e(P,[2,70]),e(P,[2,71]),e(P,[2,72]),e(P,[2,73]),e(P,[2,74]),e(P,[2,75]),e(P,[2,76]),e(P,[2,77]),{27:121,73:L},{27:123,61:122,73:L},{73:[2,64]},{73:[2,65]},{59:124,82:z},{59:126,82:z},{59:127,82:z},{59:128,82:z},e(W,[2,15]),{16:129,86:O},{86:[2,81]},{4:[1,132],5:[1,134],12:131,13:133,21:[1,130],54:C,56:E},{5:[1,135]},e(I,[2,21]),e(I,[2,22]),e(I,[2,24]),e(I,[2,25]),{4:o,5:s,6:41,9:14,10:16,13:18,14:6,19:l,21:[1,136],22:20,23:c,26:u,27:44,28:d,29:24,30:25,31:26,32:27,33:28,34:h,35:p,36:f,38:m,40:g,41:v,42:y,43:b,44:w,46:x,48:k,50:_,54:C,56:E,57:R,62:S,63:A,64:T,65:M,73:L,83:a},{4:o,5:s,6:41,9:14,10:16,13:18,14:6,19:l,21:[1,137],22:20,23:c,26:u,27:44,28:d,29:24,30:25,31:26,32:27,33:28,34:h,35:p,36:f,38:m,40:g,41:v,42:y,43:b,44:w,46:x,48:k,50:_,54:C,56:E,57:R,62:S,63:A,64:T,65:M,73:L,83:a},{4:o,5:s,6:41,9:14,10:16,13:18,14:6,19:l,21:[1,138],22:20,23:c,26:u,27:44,28:d,29:24,30:25,31:26,32:27,33:28,34:h,35:p,36:f,38:m,40:g,41:v,42:y,43:b,44:w,46:x,48:k,50:_,54:C,56:E,57:R,62:S,63:A,64:T,65:M,73:L,83:a},{21:[1,139]},{4:o,5:s,6:41,9:14,10:16,13:18,14:6,19:l,21:[2,48],22:20,23:c,26:u,27:44,28:d,29:24,30:25,31:26,32:27,33:28,34:h,35:p,36:f,38:m,40:g,41:v,42:y,43:b,44:w,46:x,48:k,50:_,53:[1,140],54:C,56:E,57:R,62:S,63:A,64:T,65:M,73:L,83:a},{21:[1,141]},{4:o,5:s,6:41,9:14,10:16,13:18,14:6,19:l,21:[2,46],22:20,23:c,26:u,27:44,28:d,29:24,30:25,31:26,32:27,33:28,34:h,35:p,36:f,38:m,40:g,41:v,42:y,43:b,44:w,46:x,48:k,50:_,52:[1,142],54:C,56:E,57:R,62:S,63:A,64:T,65:M,73:L,83:a},{21:[1,143]},{4:o,5:s,6:41,9:14,10:16,13:18,14:6,19:l,21:[2,44],22:20,23:c,26:u,27:44,28:d,29:24,30:25,31:26,32:27,33:28,34:h,35:p,36:f,38:m,40:g,41:v,42:y,43:b,44:w,46:x,48:k,50:_,51:[1,144],54:C,56:E,57:R,62:S,63:A,64:T,65:M,73:L,83:a},{4:o,5:s,6:41,9:14,10:16,13:18,14:6,19:l,21:[1,145],22:20,23:c,26:u,27:44,28:d,29:24,30:25,31:26,32:27,33:28,34:h,35:p,36:f,38:m,40:g,41:v,42:y,43:b,44:w,46:x,48:k,50:_,54:C,56:E,57:R,62:S,63:A,64:T,65:M,73:L,83:a},{20:[1,146]},e(I,[2,51]),{20:[1,147]},e(I,[2,53]),{27:148,73:L},{27:149,73:L},{59:150,82:z},{59:151,82:z},{59:152,82:z},{67:[1,153],82:[2,63]},{5:[2,56]},{5:[2,78]},{5:[2,57]},{5:[2,58]},{5:[2,59]},{5:[1,154]},e(I,[2,18]),e(N,[2,11]),{13:155,54:C,56:E},e(N,[2,13]),e(N,[2,14]),e(I,[2,20]),e(I,[2,36]),e(I,[2,37]),e(I,[2,38]),e(I,[2,39]),{20:[1,156]},e(I,[2,40]),{20:[1,157]},e(I,[2,41]),{20:[1,158]},e(I,[2,42]),{5:[1,159]},{5:[1,160]},{59:161,82:z},{59:162,82:z},{5:[2,68]},{5:[2,54]},{5:[2,55]},{27:163,73:L},e(W,[2,16]),e(N,[2,12]),e(D,i,{8:108,45:164}),e(F,i,{8:110,47:165}),e($,i,{8:112,49:166}),e(I,[2,50]),e(I,[2,52]),{5:[2,66]},{5:[2,67]},{82:[2,62]},{21:[2,49]},{21:[2,47]},{21:[2,45]}],defaultActions:{7:[2,79],8:[2,1],9:[2,2],10:[2,3],53:[2,82],89:[2,64],90:[2,65],97:[2,81],124:[2,56],125:[2,78],126:[2,57],127:[2,58],128:[2,59],150:[2,68],151:[2,54],152:[2,55],161:[2,66],162:[2,67],163:[2,62],164:[2,49],165:[2,47],166:[2,45]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],r=[],a=[null],i=[],o=this.table,s="",l=0,c=0,u=2,d=1,h=i.slice.call(arguments,1),p=Object.create(this.lexer),f={yy:{}};for(var m in this.yy)Object.prototype.hasOwnProperty.call(this.yy,m)&&(f.yy[m]=this.yy[m]);p.setInput(e,f.yy),f.yy.lexer=p,f.yy.parser=this,"undefined"==typeof p.yylloc&&(p.yylloc={});var g=p.yylloc;i.push(g);var v=p.options&&p.options.ranges;function y(){var e;return e=r.pop()||p.lex()||d,"number"!==typeof e&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}"function"===typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;var b,w,x,k,_,C,E,R,S={};while(1){if(w=n[n.length-1],this.defaultActions[w]?x=this.defaultActions[w]:(null!==b&&"undefined"!=typeof b||(b=y()),x=o[w]&&o[w][b]),"undefined"===typeof x||!x.length||!x[0]){var A="";for(_ in R=[],o[w])this.terminals_[_]&&_>u&&R.push("'"+this.terminals_[_]+"'");A=p.showPosition?"Parse error on line "+(l+1)+":\n"+p.showPosition()+"\nExpecting "+R.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(l+1)+": Unexpected "+(b==d?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(A,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:g,expected:R})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+b);switch(x[0]){case 1:n.push(b),a.push(p.yytext),i.push(p.yylloc),n.push(x[1]),b=null,c=p.yyleng,s=p.yytext,l=p.yylineno,g=p.yylloc;break;case 2:if(C=this.productions_[x[1]][1],S.$=a[a.length-C],S._$={first_line:i[i.length-(C||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(C||1)].first_column,last_column:i[i.length-1].last_column},v&&(S._$.range=[i[i.length-(C||1)].range[0],i[i.length-1].range[1]]),k=this.performAction.apply(S,[s,c,l,f.yy,x[1],a,i].concat(h)),"undefined"!==typeof k)return k;C&&(n=n.slice(0,-1*C*2),a=a.slice(0,-1*C),i=i.slice(0,-1*C)),n.push(this.productions_[x[1]][0]),a.push(S.$),i.push(S._$),E=o[n[n.length-2]][n[n.length-1]],n.push(E);break;case 3:return!0}}return!0}},V=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e;var t=e.match(/(?:\r\n?|\n).*/g);return t?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var a=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,a;if(this.options.backtrack_lexer&&(a={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(a.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var i in a)this[i]=a[i];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var a=this._currentRules(),i=0;i<a.length;i++)if(n=this._input.match(this.rules[a[i]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=i,this.options.backtrack_lexer){if(e=this.test_match(n,a[i]),!1!==e)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,a[r]),!1!==e&&e):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){var e=this.conditionStack.length-1;return e>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions["INITIAL"].rules},topState:function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return this.begin("open_directive"),83;case 1:return this.begin("type_directive"),84;case 2:return this.popState(),this.begin("arg_directive"),17;case 3:return this.popState(),this.popState(),86;case 4:return 85;case 5:return 5;case 6:break;case 7:break;case 8:break;case 9:break;case 10:break;case 11:return 24;case 12:return this.begin("LINE"),19;case 13:return this.begin("ID"),54;case 14:return this.begin("ID"),56;case 15:return t.yytext=t.yytext.trim(),this.begin("ALIAS"),73;case 16:return this.popState(),this.popState(),this.begin("LINE"),55;case 17:return this.popState(),this.popState(),5;case 18:return this.begin("LINE"),41;case 19:return this.begin("LINE"),42;case 20:return this.begin("LINE"),43;case 21:return this.begin("LINE"),44;case 22:return this.begin("LINE"),53;case 23:return this.begin("LINE"),46;case 24:return this.begin("LINE"),52;case 25:return this.begin("LINE"),48;case 26:return this.begin("LINE"),51;case 27:return this.begin("LINE"),50;case 28:return this.popState(),20;case 29:return 21;case 30:return 68;case 31:return 69;case 32:return 62;case 33:return 63;case 34:return 64;case 35:return 65;case 36:return 60;case 37:return 57;case 38:return this.begin("ID"),26;case 39:return this.begin("ID"),28;case 40:return 34;case 41:return 35;case 42:return this.begin("acc_title"),36;case 43:return this.popState(),"acc_title_value";case 44:return this.begin("acc_descr"),38;case 45:return this.popState(),"acc_descr_value";case 46:this.begin("acc_descr_multiline");break;case 47:this.popState();break;case 48:return"acc_descr_multiline_value";case 49:return 7;case 50:return 23;case 51:return 25;case 52:return 67;case 53:return 5;case 54:return t.yytext=t.yytext.trim(),73;case 55:return 76;case 56:return 77;case 57:return 74;case 58:return 75;case 59:return 78;case 60:return 79;case 61:return 80;case 62:return 81;case 63:return 82;case 64:return 71;case 65:return 72;case 66:return 5;case 67:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[0-9]+(?=[ \n]+))/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:[^\->:\n,;]+?([\-]*[^\->:\n,;]+?)*?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\+\->:\n,;]+((?!(-x|--x|-\)|--\)))[\-]*[^\+\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?::(?:(?:no)?wrap)?[^#\n;]+)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[47,48],inclusive:!1},acc_descr:{rules:[45],inclusive:!1},acc_title:{rules:[43],inclusive:!1},open_directive:{rules:[1,8],inclusive:!1},type_directive:{rules:[2,3,8],inclusive:!1},arg_directive:{rules:[3,4,8],inclusive:!1},ID:{rules:[7,8,15],inclusive:!1},ALIAS:{rules:[7,8,16,17],inclusive:!1},LINE:{rules:[7,8,28],inclusive:!1},INITIAL:{rules:[0,5,6,8,9,10,11,12,13,14,18,19,20,21,22,23,24,25,26,27,29,30,31,32,33,34,35,36,37,38,39,40,41,42,44,46,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67],inclusive:!0}}};return e}();function U(){this.yy={}}return j.lexer=V,U.prototype=j,j.Parser=U,new U}();iv.parser=iv;const ov=iv,sv=e=>null!==e.match(/^\s*sequenceDiagram/);let lv,cv,uv,dv={},hv=[],pv=[],fv=!1;const mv=function(e,t,n){m_.parseDirective(this,e,t,n)},gv=function(e){hv.push({name:e.text,wrap:void 0===e.wrap&&Ov()||!!e.wrap,fill:e.color,actorKeys:[]}),uv=hv.slice(-1)[0]},vv=function(e,t,n,r){let a=uv;const i=dv[e];if(i){if(uv&&i.box&&uv!==i.box)throw new Error("A same participant should only be defined in one Box: "+i.name+" can't be in '"+i.box.name+"' and in '"+uv.name+"' at the same time.");if(a=i.box?i.box:uv,i.box=a,i&&t===i.name&&null==n)return}null!=n&&null!=n.text||(n={text:t,wrap:null,type:r}),null!=r&&null!=n.text||(n={text:t,wrap:null,type:r}),dv[e]={box:a,name:t,description:n.text,wrap:void 0===n.wrap&&Ov()||!!n.wrap,prevActor:lv,links:{},properties:{},actorCnt:null,rectData:null,type:r||"participant"},lv&&dv[lv]&&(dv[lv].nextActor=e),uv&&uv.actorKeys.push(e),lv=e},yv=e=>{let t,n=0;for(t=0;t<pv.length;t++)pv[t].type===Dv.ACTIVE_START&&pv[t].from.actor===e&&n++,pv[t].type===Dv.ACTIVE_END&&pv[t].from.actor===e&&n--;return n},bv=function(e,t,n,r){pv.push({from:e,to:t,message:n.text,wrap:void 0===n.wrap&&Ov()||!!n.wrap,answer:r})},wv=function(e,t,n={text:void 0,wrap:void 0},r){if(r===Dv.ACTIVE_END){const t=yv(e.actor);if(t<1){let t=new Error("Trying to inactivate an inactive participant ("+e.actor+")");throw t.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},t}}return pv.push({from:e,to:t,message:n.text,wrap:void 0===n.wrap&&Ov()||!!n.wrap,type:r}),!0},xv=function(){return hv.length>0},kv=function(){return hv.some((e=>e.name))},_v=function(){return pv},Cv=function(){return hv},Ev=function(){return dv},Rv=function(e){return dv[e]},Sv=function(){return Object.keys(dv)},Av=function(){fv=!0},Tv=function(){fv=!1},Mv=()=>fv,Lv=function(e){cv=e},Ov=()=>void 0!==cv?cv:wi().sequence.wrap,Iv=function(){dv={},hv=[],pv=[],fv=!1,uo()},Nv=function(e){const t=e.trim(),n={text:t.replace(/^:?(?:no)?wrap:/,"").trim(),wrap:null!==t.match(/^:?wrap:/)||null===t.match(/^:?nowrap:/)&&void 0};return Ze.debug("parseMessage:",n),n},Bv=function(e){const t=e.match(/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/);let n=null!=t&&t[1]?t[1].trim():"transparent",r=null!=t&&t[2]?t[2].trim():void 0;if(window&&window.CSS)window.CSS.supports("color",n)||(n="transparent",r=e.trim());else{const t=(new Option).style;t.color=n,t.color!==n&&(n="transparent",r=e.trim())}const a={color:n,text:void 0!==r?at(r.replace(/^:?(?:no)?wrap:/,""),wi()):void 0,wrap:void 0!==r?null!==r.match(/^:?wrap:/)||null===r.match(/^:?nowrap:/)&&void 0:void 0};return a},Dv={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25,AUTONUMBER:26,CRITICAL_START:27,CRITICAL_OPTION:28,CRITICAL_END:29,BREAK_START:30,BREAK_END:31},Fv={FILLED:0,OPEN:1},$v={LEFTOF:0,RIGHTOF:1,OVER:2},Pv=function(e,t,n){n.text,void 0===n.wrap&&Ov()||n.wrap;const r=[].concat(e,e);pv.push({from:r[0],to:r[1],message:n.text,wrap:void 0===n.wrap&&Ov()||!!n.wrap,type:Dv.NOTE,placement:t})},zv=function(e,t){const n=Rv(e);try{let e=at(t.text,wi());e=e.replace(/&amp;/g,"&"),e=e.replace(/&equals;/g,"=");const r=JSON.parse(e);jv(n,r)}catch(r){Ze.error("error while parsing actor link text",r)}},Wv=function(e,t){const n=Rv(e);try{const e={};let o=at(t.text,wi());var r=o.indexOf("@");o=o.replace(/&amp;/g,"&"),o=o.replace(/&equals;/g,"=");var a=o.slice(0,r-1).trim(),i=o.slice(r+1).trim();e[a]=i,jv(n,e)}catch(o){Ze.error("error while parsing actor link text",o)}};function jv(e,t){if(null==e.links)e.links=t;else for(let n in t)e.links[n]=t[n]}const Vv=function(e,t){const n=Rv(e);try{let e=at(t.text,wi());const r=JSON.parse(e);Uv(n,r)}catch(r){Ze.error("error while parsing actor properties text",r)}};function Uv(e,t){if(null==e.properties)e.properties=t;else for(let n in t)e.properties[n]=t[n]}function Kv(){uv=void 0}const Hv=function(e,t){const n=Rv(e),r=document.getElementById(t.text);try{const e=r.innerHTML,t=JSON.parse(e);t["properties"]&&Uv(n,t["properties"]),t["links"]&&jv(n,t["links"])}catch(a){Ze.error("error while parsing actor details text",a)}},qv=function(e,t){if(void 0!==e&&void 0!==e.properties)return e.properties[t]},Gv=function(e){if(Array.isArray(e))e.forEach((function(e){Gv(e)}));else switch(e.type){case"sequenceIndex":pv.push({from:void 0,to:void 0,message:{start:e.sequenceIndex,step:e.sequenceIndexStep,visible:e.sequenceVisible},wrap:!1,type:e.signalType});break;case"addParticipant":vv(e.actor,e.actor,e.description,"participant");break;case"addActor":vv(e.actor,e.actor,e.description,"actor");break;case"activeStart":wv(e.actor,void 0,void 0,e.signalType);break;case"activeEnd":wv(e.actor,void 0,void 0,e.signalType);break;case"addNote":Pv(e.actor,e.placement,e.text);break;case"addLinks":zv(e.actor,e.text);break;case"addALink":Wv(e.actor,e.text);break;case"addProperties":Vv(e.actor,e.text);break;case"addDetails":Hv(e.actor,e.text);break;case"addMessage":wv(e.from,e.to,e.msg,e.signalType);break;case"boxStart":gv(e.boxData);break;case"boxEnd":Kv();break;case"loopStart":wv(void 0,void 0,e.loopText,e.signalType);break;case"loopEnd":wv(void 0,void 0,void 0,e.signalType);break;case"rectStart":wv(void 0,void 0,e.color,e.signalType);break;case"rectEnd":wv(void 0,void 0,void 0,e.signalType);break;case"optStart":wv(void 0,void 0,e.optText,e.signalType);break;case"optEnd":wv(void 0,void 0,void 0,e.signalType);break;case"altStart":wv(void 0,void 0,e.altText,e.signalType);break;case"else":wv(void 0,void 0,e.altText,e.signalType);break;case"altEnd":wv(void 0,void 0,void 0,e.signalType);break;case"setAccTitle":ho(e.text);break;case"parStart":wv(void 0,void 0,e.parText,e.signalType);break;case"and":wv(void 0,void 0,e.parText,e.signalType);break;case"parEnd":wv(void 0,void 0,void 0,e.signalType);break;case"criticalStart":wv(void 0,void 0,e.criticalText,e.signalType);break;case"option":wv(void 0,void 0,e.optionText,e.signalType);break;case"criticalEnd":wv(void 0,void 0,void 0,e.signalType);break;case"breakStart":wv(void 0,void 0,e.breakText,e.signalType);break;case"breakEnd":wv(void 0,void 0,void 0,e.signalType);break}},Xv={addActor:vv,addMessage:bv,addSignal:wv,addLinks:zv,addDetails:Hv,addProperties:Vv,autoWrap:Ov,setWrap:Lv,enableSequenceNumbers:Av,disableSequenceNumbers:Tv,showSequenceNumbers:Mv,getMessages:_v,getActors:Ev,getActor:Rv,getActorKeys:Sv,getActorProperty:qv,getAccTitle:po,getBoxes:Cv,getDiagramTitle:vo,setDiagramTitle:go,parseDirective:mv,getConfig:()=>wi().sequence,clear:Iv,parseMessage:Nv,parseBoxData:Bv,LINETYPE:Dv,ARROWTYPE:Fv,PLACEMENT:$v,addNote:Pv,setAccTitle:ho,apply:Gv,setAccDescription:fo,getAccDescription:mo,hasAtLeastOneBox:xv,hasAtLeastOneBoxWithTitle:kv};let Yv=[];const Qv=e=>{Yv.push(e)},Zv=()=>{Yv.forEach((e=>{e()})),Yv=[]},Jv=function(e,t){const n=e.append("rect");return n.attr("x",t.x),n.attr("y",t.y),n.attr("fill",t.fill),n.attr("stroke",t.stroke),n.attr("width",t.width),n.attr("height",t.height),n.attr("rx",t.rx),n.attr("ry",t.ry),void 0!==t.class&&n.attr("class",t.class),n},ey=(e,t)=>{Qv((()=>{const n=document.querySelectorAll(e);0!==n.length&&(n[0].addEventListener("mouseover",(function(){oy("actor"+t+"_popup")})),n[0].addEventListener("mouseout",(function(){sy("actor"+t+"_popup")})))}))},ty=function(e,t,n,r,a){if(void 0===t.links||null===t.links||0===Object.keys(t.links).length)return{height:0,width:0};const i=t.links,s=t.actorCnt,l=t.rectData;var c="none";a&&(c="block !important");const u=e.append("g");u.attr("id","actor"+s+"_popup"),u.attr("class","actorPopupMenu"),u.attr("display",c),ey("#actor"+s+"_popup",s);var d="";void 0!==l.class&&(d=" "+l.class);let h=l.width>n?l.width:n;const p=u.append("rect");if(p.attr("class","actorPopupMenuPanel"+d),p.attr("x",l.x),p.attr("y",l.height),p.attr("fill",l.fill),p.attr("stroke",l.stroke),p.attr("width",h),p.attr("height",l.height),p.attr("rx",l.rx),p.attr("ry",l.ry),null!=i){var f=20;for(let e in i){var m=u.append("a"),g=(0,o.Jf)(i[e]);m.attr("xlink:href",g),m.attr("target","_blank"),My(r)(e,m,l.x+10,l.height+f,h,20,{class:"actor"},r),f+=30}}return p.attr("height",f),{height:l.height+f,width:h}},ny=function(e,t,n,r){const a=e.append("image");a.attr("x",t),a.attr("y",n);var i=(0,o.Jf)(r);a.attr("xlink:href",i)},ry=function(e,t,n,r){const a=e.append("use");a.attr("x",t),a.attr("y",n);var i=(0,o.Jf)(r);a.attr("xlink:href","#"+i)},ay=function(e){return"var pu = document.getElementById('"+e+"'); if (pu != null) { pu.style.display = 'block'; }"},iy=function(e){return"var pu = document.getElementById('"+e+"'); if (pu != null) { pu.style.display = 'none'; }"},oy=function(e){var t=document.getElementById(e);null!=t&&(t.style.display="block")},sy=function(e){var t=document.getElementById(e);null!=t&&(t.style.display="none")},ly=function(e,t){let n=0,r=0;const a=t.text.split(ft.lineBreakRegex),[i,o]=oi(t.fontSize);let s=[],l=0,c=()=>t.y;if(void 0!==t.valign&&void 0!==t.textMargin&&t.textMargin>0)switch(t.valign){case"top":case"start":c=()=>Math.round(t.y+t.textMargin);break;case"middle":case"center":c=()=>Math.round(t.y+(n+r+t.textMargin)/2);break;case"bottom":case"end":c=()=>Math.round(t.y+(n+r+2*t.textMargin)-t.textMargin);break}if(void 0!==t.anchor&&void 0!==t.textMargin&&void 0!==t.width)switch(t.anchor){case"left":case"start":t.x=Math.round(t.x+t.textMargin),t.anchor="start",t.dominantBaseline="middle",t.alignmentBaseline="middle";break;case"middle":case"center":t.x=Math.round(t.x+t.width/2),t.anchor="middle",t.dominantBaseline="middle",t.alignmentBaseline="middle";break;case"right":case"end":t.x=Math.round(t.x+t.width-t.textMargin),t.anchor="end",t.dominantBaseline="middle",t.alignmentBaseline="middle";break}for(let[u,d]of a.entries()){void 0!==t.textMargin&&0===t.textMargin&&void 0!==i&&(l=u*i);const a=e.append("text");if(a.attr("x",t.x),a.attr("y",c()),void 0!==t.anchor&&a.attr("text-anchor",t.anchor).attr("dominant-baseline",t.dominantBaseline).attr("alignment-baseline",t.alignmentBaseline),void 0!==t.fontFamily&&a.style("font-family",t.fontFamily),void 0!==o&&a.style("font-size",o),void 0!==t.fontWeight&&a.style("font-weight",t.fontWeight),void 0!==t.fill&&a.attr("fill",t.fill),void 0!==t.class&&a.attr("class",t.class),void 0!==t.dy?a.attr("dy",t.dy):0!==l&&a.attr("dy",l),t.tspan){const e=a.append("tspan");e.attr("x",t.x),void 0!==t.fill&&e.attr("fill",t.fill),e.text(d)}else a.text(d);void 0!==t.valign&&void 0!==t.textMargin&&t.textMargin>0&&(r+=(a._groups||a)[0][0].getBBox().height,n=r),s.push(a)}return s},cy=function(e,t){function n(e,t,n,r,a){return e+","+t+" "+(e+n)+","+t+" "+(e+n)+","+(t+r-a)+" "+(e+n-1.2*a)+","+(t+r)+" "+e+","+(t+r)}const r=e.append("polygon");return r.attr("points",n(t.x,t.y,t.width,t.height,7)),r.attr("class","labelBox"),t.y=t.y+t.height/2,ly(e,t),r};let uy=-1;const dy=(e,t)=>{e.selectAll&&e.selectAll(".actor-line").attr("class","200").attr("y2",t-55)},hy=function(e,t,n,r){const a=t.x+t.width/2,i=t.y+5,o=e.append("g");var s=o;r||(uy++,s.append("line").attr("id","actor"+uy).attr("x1",a).attr("y1",i).attr("x2",a).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"),s=o.append("g"),t.actorCnt=uy,null!=t.links&&(s.attr("id","root-"+uy),ey("#root-"+uy,uy)));const l=Ay();var c="actor";null!=t.properties&&t.properties["class"]?c=t.properties["class"]:l.fill="#eaeaea",l.x=t.x,l.y=t.y,l.width=t.width,l.height=t.height,l.class=c,l.rx=3,l.ry=3;const u=Jv(s,l);if(t.rectData=l,null!=t.properties&&t.properties["icon"]){const e=t.properties["icon"].trim();"@"===e.charAt(0)?ry(s,l.x+l.width-20,l.y+10,e.substr(1)):ny(s,l.x+l.width-20,l.y+10,e)}Ty(n)(t.description,s,l.x,l.y,l.width,l.height,{class:"actor"},n);let d=t.height;if(u.node){const e=u.node().getBBox();t.height=e.height,d=e.height}return d},py=function(e,t,n,r){const a=t.x+t.width/2,i=t.y+80;r||(uy++,e.append("line").attr("id","actor"+uy).attr("x1",a).attr("y1",i).attr("x2",a).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"));const o=e.append("g");o.attr("class","actor-man");const s=Ay();s.x=t.x,s.y=t.y,s.fill="#eaeaea",s.width=t.width,s.height=t.height,s.class="actor",s.rx=3,s.ry=3,o.append("line").attr("id","actor-man-torso"+uy).attr("x1",a).attr("y1",t.y+25).attr("x2",a).attr("y2",t.y+45),o.append("line").attr("id","actor-man-arms"+uy).attr("x1",a-18).attr("y1",t.y+33).attr("x2",a+18).attr("y2",t.y+33),o.append("line").attr("x1",a-18).attr("y1",t.y+60).attr("x2",a).attr("y2",t.y+45),o.append("line").attr("x1",a).attr("y1",t.y+45).attr("x2",a+16).attr("y2",t.y+60);const l=o.append("circle");l.attr("cx",t.x+t.width/2),l.attr("cy",t.y+10),l.attr("r",15),l.attr("width",t.width),l.attr("height",t.height);const c=o.node().getBBox();return t.height=c.height,Ty(n)(t.description,o,s.x,s.y+35,s.width,s.height,{class:"actor"},n),t.height},fy=function(e,t,n,r){switch(t.type){case"actor":return py(e,t,n,r);case"participant":return hy(e,t,n,r)}},my=function(e,t,n){const r=e.append("g"),a=r;by(a,t),t.name&&Ty(n)(t.name,a,t.x,t.y+(t.textMaxHeight||0)/2,t.width,0,{class:"text"},n),a.lower()},gy=function(e){return e.append("g")},vy=function(e,t,n,r,a){const i=Ay(),o=t.anchored;i.x=t.startx,i.y=t.starty,i.class="activation"+a%3,i.width=t.stopx-t.startx,i.height=n-t.starty,Jv(o,i)},yy=function(e,t,n,r){const{boxMargin:a,boxTextMargin:i,labelBoxHeight:o,labelBoxWidth:s,messageFontFamily:l,messageFontSize:c,messageFontWeight:u}=r,d=e.append("g"),h=function(e,t,n,r){return d.append("line").attr("x1",e).attr("y1",t).attr("x2",n).attr("y2",r).attr("class","loopLine")};h(t.startx,t.starty,t.stopx,t.starty),h(t.stopx,t.starty,t.stopx,t.stopy),h(t.startx,t.stopy,t.stopx,t.stopy),h(t.startx,t.starty,t.startx,t.stopy),void 0!==t.sections&&t.sections.forEach((function(e){h(t.startx,e.y,t.stopx,e.y).style("stroke-dasharray","3, 3")}));let p=Sy();p.text=n,p.x=t.startx,p.y=t.starty,p.fontFamily=l,p.fontSize=c,p.fontWeight=u,p.anchor="middle",p.valign="middle",p.tspan=!1,p.width=s||50,p.height=o||20,p.textMargin=i,p.class="labelText",cy(d,p),p=Sy(),p.text=t.title,p.x=t.startx+s/2+(t.stopx-t.startx)/2,p.y=t.starty+a+i,p.anchor="middle",p.valign="middle",p.textMargin=i,p.class="loopText",p.fontFamily=l,p.fontSize=c,p.fontWeight=u,p.wrap=!0;let f=ly(d,p);return void 0!==t.sectionTitles&&t.sectionTitles.forEach((function(e,n){if(e.message){p.text=e.message,p.x=t.startx+(t.stopx-t.startx)/2,p.y=t.sections[n].y+a+i,p.class="loopText",p.anchor="middle",p.valign="middle",p.tspan=!1,p.fontFamily=l,p.fontSize=c,p.fontWeight=u,p.wrap=t.wrap,f=ly(d,p);let r=Math.round(f.map((e=>(e._groups||e)[0][0].getBBox().height)).reduce(((e,t)=>e+t)));t.sections[n].height+=r-(a+i)}})),t.height=Math.round(t.stopy-t.starty),d},by=function(e,t){const n=Jv(e,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"});n.lower()},wy=function(e){e.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},xy=function(e){e.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},ky=function(e){e.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},_y=function(e){e.append("defs").append("marker").attr("id","arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},Cy=function(e){e.append("defs").append("marker").attr("id","filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},Ey=function(e){e.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},Ry=function(e){const t=e.append("defs"),n=t.append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",4).attr("refY",5);n.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1pt").attr("d","M 1,2 L 6,7 M 6,2 L 1,7")},Sy=function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},Ay=function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},Ty=function(){function e(e,t,n,a,i,o,s){const l=t.append("text").attr("x",n+i/2).attr("y",a+o/2+5).style("text-anchor","middle").text(e);r(l,s)}function t(e,t,n,a,i,o,s,l){const{actorFontSize:c,actorFontFamily:u,actorFontWeight:d}=l,[h,p]=oi(c),f=e.split(ft.lineBreakRegex);for(let m=0;m<f.length;m++){const e=m*h-h*(f.length-1)/2,l=t.append("text").attr("x",n+i/2).attr("y",a).style("text-anchor","middle").style("font-size",p).style("font-weight",d).style("font-family",u);l.append("tspan").attr("x",n+i/2).attr("dy",e).text(f[m]),l.attr("y",a+o/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),r(l,s)}}function n(e,n,a,i,o,s,l,c){const u=n.append("switch"),d=u.append("foreignObject").attr("x",a).attr("y",i).attr("width",o).attr("height",s),h=d.append("xhtml:div").style("display","table").style("height","100%").style("width","100%");h.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(e),t(e,u,a,i,o,s,l,c),r(h,l)}function r(e,t){for(const n in t)t.hasOwnProperty(n)&&e.attr(n,t[n])}return function(r){return"fo"===r.textPlacement?n:"old"===r.textPlacement?e:t}}(),My=function(){function e(e,t,n,a,i,o,s){const l=t.append("text").attr("x",n).attr("y",a).style("text-anchor","start").text(e);r(l,s)}function t(e,t,n,a,i,o,s,l){const{actorFontSize:c,actorFontFamily:u,actorFontWeight:d}=l,h=e.split(ft.lineBreakRegex);for(let p=0;p<h.length;p++){const e=p*c-c*(h.length-1)/2,i=t.append("text").attr("x",n).attr("y",a).style("text-anchor","start").style("font-size",c).style("font-weight",d).style("font-family",u);i.append("tspan").attr("x",n).attr("dy",e).text(h[p]),i.attr("y",a+o/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),r(i,s)}}function n(e,n,a,i,o,s,l,c){const u=n.append("switch"),d=u.append("foreignObject").attr("x",a).attr("y",i).attr("width",o).attr("height",s),h=d.append("xhtml:div").style("display","table").style("height","100%").style("width","100%");h.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(e),t(e,u,a,i,o,s,l,c),r(h,l)}function r(e,t){for(const n in t)t.hasOwnProperty(n)&&e.attr(n,t[n])}return function(r){return"fo"===r.textPlacement?n:"old"===r.textPlacement?e:t}}(),Ly={drawRect:Jv,drawText:ly,drawLabel:cy,drawActor:fy,drawBox:my,drawPopup:ty,drawImage:ny,drawEmbeddedImage:ry,anchorElement:gy,drawActivation:vy,drawLoop:yy,drawBackgroundRect:by,insertArrowHead:_y,insertArrowFilledHead:Cy,insertSequenceNumber:Ey,insertArrowCrossHead:Ry,insertDatabaseIcon:wy,insertComputerIcon:xy,insertClockIcon:ky,getTextObj:Sy,getNoteRect:Ay,popupMenu:ay,popdownMenu:iy,fixLifeLineHeights:dy,sanitizeUrl:o.Jf};let Oy={};const Iy={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],activations:[],models:{getHeight:function(){return Math.max.apply(null,0===this.actors.length?[0]:this.actors.map((e=>e.height||0)))+(0===this.loops.length?0:this.loops.map((e=>e.height||0)).reduce(((e,t)=>e+t)))+(0===this.messages.length?0:this.messages.map((e=>e.height||0)).reduce(((e,t)=>e+t)))+(0===this.notes.length?0:this.notes.map((e=>e.height||0)).reduce(((e,t)=>e+t)))},clear:function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]},addBox:function(e){this.boxes.push(e)},addActor:function(e){this.actors.push(e)},addLoop:function(e){this.loops.push(e)},addMessage:function(e){this.messages.push(e)},addNote:function(e){this.notes.push(e)},lastActor:function(){return this.actors[this.actors.length-1]},lastLoop:function(){return this.loops[this.loops.length-1]},lastMessage:function(){return this.messages[this.messages.length-1]},lastNote:function(){return this.notes[this.notes.length-1]},actors:[],boxes:[],loops:[],messages:[],notes:[]},init:function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,jy(wi())},updateVal:function(e,t,n,r){void 0===e[t]?e[t]=n:e[t]=r(n,e[t])},updateBounds:function(e,t,n,r){const a=this;let i=0;function o(o){return function(s){i++;const l=a.sequenceItems.length-i+1;a.updateVal(s,"starty",t-l*Oy.boxMargin,Math.min),a.updateVal(s,"stopy",r+l*Oy.boxMargin,Math.max),a.updateVal(Iy.data,"startx",e-l*Oy.boxMargin,Math.min),a.updateVal(Iy.data,"stopx",n+l*Oy.boxMargin,Math.max),"activation"!==o&&(a.updateVal(s,"startx",e-l*Oy.boxMargin,Math.min),a.updateVal(s,"stopx",n+l*Oy.boxMargin,Math.max),a.updateVal(Iy.data,"starty",t-l*Oy.boxMargin,Math.min),a.updateVal(Iy.data,"stopy",r+l*Oy.boxMargin,Math.max))}}this.sequenceItems.forEach(o()),this.activations.forEach(o("activation"))},insert:function(e,t,n,r){const a=Math.min(e,n),i=Math.max(e,n),o=Math.min(t,r),s=Math.max(t,r);this.updateVal(Iy.data,"startx",a,Math.min),this.updateVal(Iy.data,"starty",o,Math.min),this.updateVal(Iy.data,"stopx",i,Math.max),this.updateVal(Iy.data,"stopy",s,Math.max),this.updateBounds(a,o,i,s)},newActivation:function(e,t,n){const r=n[e.from.actor],a=Vy(e.from.actor).length||0,i=r.x+r.width/2+(a-1)*Oy.activationWidth/2;this.activations.push({startx:i,starty:this.verticalPos+2,stopx:i+Oy.activationWidth,stopy:void 0,actor:e.from.actor,anchored:Ly.anchorElement(t)})},endActivation:function(e){const t=this.activations.map((function(e){return e.actor})).lastIndexOf(e.from.actor);return this.activations.splice(t,1)[0]},createLoop:function(e={message:void 0,wrap:!1,width:void 0},t){return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:e.message,wrap:e.wrap,width:e.width,height:0,fill:t}},newLoop:function(e={message:void 0,wrap:!1,width:void 0},t){this.sequenceItems.push(this.createLoop(e,t))},endLoop:function(){return this.sequenceItems.pop()},addSectionToLoop:function(e){const t=this.sequenceItems.pop();t.sections=t.sections||[],t.sectionTitles=t.sectionTitles||[],t.sections.push({y:Iy.getVerticalPos(),height:0}),t.sectionTitles.push(e),this.sequenceItems.push(t)},bumpVerticalPos:function(e){this.verticalPos=this.verticalPos+e,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return{bounds:this.data,models:this.models}}},Ny=function(e,t){Iy.bumpVerticalPos(Oy.boxMargin),t.height=Oy.boxMargin,t.starty=Iy.getVerticalPos();const n=Ly.getNoteRect();n.x=t.startx,n.y=t.starty,n.width=t.width||Oy.width,n.class="note";const r=e.append("g"),a=Ly.drawRect(r,n),i=Ly.getTextObj();i.x=t.startx,i.y=t.starty,i.width=n.width,i.dy="1em",i.text=t.message,i.class="noteText",i.fontFamily=Oy.noteFontFamily,i.fontSize=Oy.noteFontSize,i.fontWeight=Oy.noteFontWeight,i.anchor=Oy.noteAlign,i.textMargin=Oy.noteMargin,i.valign="center";const o=ly(r,i),s=Math.round(o.map((e=>(e._groups||e)[0][0].getBBox().height)).reduce(((e,t)=>e+t)));a.attr("height",s+2*Oy.noteMargin),t.height+=s+2*Oy.noteMargin,Iy.bumpVerticalPos(s+2*Oy.noteMargin),t.stopy=t.starty+s+2*Oy.noteMargin,t.stopx=t.startx+n.width,Iy.insert(t.startx,t.starty,t.stopx,t.stopy),Iy.models.addNote(t)},By=e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight}),Dy=e=>({fontFamily:e.noteFontFamily,fontSize:e.noteFontSize,fontWeight:e.noteFontWeight}),Fy=e=>({fontFamily:e.actorFontFamily,fontSize:e.actorFontSize,fontWeight:e.actorFontWeight});function $y(e,t){Iy.bumpVerticalPos(10);const{startx:n,stopx:r,message:a}=t,i=ft.splitBreaks(a).length,o=si.calculateTextDimensions(a,By(Oy)),s=o.height/i;let l;t.height+=s,Iy.bumpVerticalPos(s);let c=o.height-10;const u=o.width;if(n===r){l=Iy.getVerticalPos()+c,Oy.rightAngles||(c+=Oy.boxMargin,l=Iy.getVerticalPos()+c),c+=30;const e=Math.max(u/2,Oy.width/2);Iy.insert(n-e,Iy.getVerticalPos()-10+c,r+e,Iy.getVerticalPos()+30+c)}else c+=Oy.boxMargin,l=Iy.getVerticalPos()+c,Iy.insert(n,l-10,r,l);return Iy.bumpVerticalPos(c),t.height+=c,t.stopy=t.starty+t.height,Iy.insert(t.fromBounds,t.starty,t.toBounds,t.stopy),l}const Py=function(e,t,n,r){const{startx:a,stopx:i,starty:o,message:s,type:l,sequenceIndex:c,sequenceVisible:u}=t,d=si.calculateTextDimensions(s,By(Oy)),h=Ly.getTextObj();h.x=a,h.y=o+10,h.width=i-a,h.class="messageText",h.dy="1em",h.text=s,h.fontFamily=Oy.messageFontFamily,h.fontSize=Oy.messageFontSize,h.fontWeight=Oy.messageFontWeight,h.anchor=Oy.messageAlign,h.valign="center",h.textMargin=Oy.wrapPadding,h.tspan=!1,ly(e,h);const p=d.width;let f;a===i?f=Oy.rightAngles?e.append("path").attr("d",`M ${a},${n} H ${a+Math.max(Oy.width/2,p/2)} V ${n+25} H ${a}`):e.append("path").attr("d","M "+a+","+n+" C "+(a+60)+","+(n-10)+" "+(a+60)+","+(n+30)+" "+a+","+(n+20)):(f=e.append("line"),f.attr("x1",a),f.attr("y1",n),f.attr("x2",i),f.attr("y2",n)),l===r.db.LINETYPE.DOTTED||l===r.db.LINETYPE.DOTTED_CROSS||l===r.db.LINETYPE.DOTTED_POINT||l===r.db.LINETYPE.DOTTED_OPEN?(f.style("stroke-dasharray","3, 3"),f.attr("class","messageLine1")):f.attr("class","messageLine0");let m="";Oy.arrowMarkerAbsolute&&(m=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,m=m.replace(/\(/g,"\\("),m=m.replace(/\)/g,"\\)")),f.attr("stroke-width",2),f.attr("stroke","none"),f.style("fill","none"),l!==r.db.LINETYPE.SOLID&&l!==r.db.LINETYPE.DOTTED||f.attr("marker-end","url("+m+"#arrowhead)"),l!==r.db.LINETYPE.SOLID_POINT&&l!==r.db.LINETYPE.DOTTED_POINT||f.attr("marker-end","url("+m+"#filled-head)"),l!==r.db.LINETYPE.SOLID_CROSS&&l!==r.db.LINETYPE.DOTTED_CROSS||f.attr("marker-end","url("+m+"#crosshead)"),(u||Oy.showSequenceNumbers)&&(f.attr("marker-start","url("+m+"#sequencenumber)"),e.append("text").attr("x",a).attr("y",n+4).attr("font-family","sans-serif").attr("font-size","12px").attr("text-anchor","middle").attr("class","sequenceNumber").text(c))},zy=function(e,t,n,r,a,i,o){if(!0===a.hideUnusedParticipants){const e=new Set;i.forEach((t=>{e.add(t.from),e.add(t.to)})),n=n.filter((t=>e.has(t)))}let s,l=0,c=0,u=0;for(const d of n){const n=t[d],a=n.box;s&&s!=a&&(o||Iy.models.addBox(s),c+=Oy.boxMargin+s.margin),a&&a!=s&&(o||(a.x=l+c,a.y=r),c+=a.margin),n.width=n.width||Oy.width,n.height=Math.max(n.height||Oy.height,Oy.height),n.margin=n.margin||Oy.actorMargin,n.x=l+c,n.y=Iy.getVerticalPos();const i=Ly.drawActor(e,n,Oy,o);u=Math.max(u,i),Iy.insert(n.x,r,n.x+n.width,n.height),l+=n.width+c,n.box&&(n.box.width=l+a.margin-n.box.x),c=n.margin,s=n.box,Iy.models.addActor(n)}s&&!o&&Iy.models.addBox(s),Iy.bumpVerticalPos(u)},Wy=function(e,t,n,r){let a=0,i=0;for(const o of n){const n=t[o],s=Gy(n),l=Ly.drawPopup(e,n,s,Oy,Oy.forceMenus,r);l.height>a&&(a=l.height),l.width+n.x>i&&(i=l.width+n.x)}return{maxHeight:a,maxWidth:i}},jy=function(e){Ea(Oy,e),e.fontFamily&&(Oy.actorFontFamily=Oy.noteFontFamily=Oy.messageFontFamily=e.fontFamily),e.fontSize&&(Oy.actorFontSize=Oy.noteFontSize=Oy.messageFontSize=e.fontSize),e.fontWeight&&(Oy.actorFontWeight=Oy.noteFontWeight=Oy.messageFontWeight=e.fontWeight)},Vy=function(e){return Iy.activations.filter((function(t){return t.actor===e}))},Uy=function(e,t){const n=t[e],r=Vy(e),a=r.reduce((function(e,t){return Math.min(e,t.startx)}),n.x+n.width/2),i=r.reduce((function(e,t){return Math.max(e,t.stopx)}),n.x+n.width/2);return[a,i]};function Ky(e,t,n,r,a){Iy.bumpVerticalPos(n);let i=r;if(t.id&&t.message&&e[t.id]){const n=e[t.id].width,a=By(Oy);t.message=si.wrapLabel(`[${t.message}]`,n-2*Oy.wrapPadding,a),t.width=n,t.wrap=!0;const o=si.calculateTextDimensions(t.message,a),s=Math.max(o.height,Oy.labelBoxHeight);i=r+s,Ze.debug(`${s} - ${t.message}`)}a(t),Iy.bumpVerticalPos(i)}const Hy=function(e,t,n,r){const{securityLevel:a,sequence:i}=wi();let o;Oy=i,r.db.clear(),r.parser.parse(e),"sandbox"===a&&(o=(0,s.Ltv)("#i"+t));const l="sandbox"===a?(0,s.Ltv)(o.nodes()[0].contentDocument.body):(0,s.Ltv)("body"),c="sandbox"===a?o.nodes()[0].contentDocument:document;Iy.init(),Ze.debug(r.db);const u="sandbox"===a?l.select(`[id="${t}"]`):(0,s.Ltv)(`[id="${t}"]`),d=r.db.getActors(),h=r.db.getBoxes(),p=r.db.getActorKeys(),f=r.db.getMessages(),m=r.db.getDiagramTitle(),g=r.db.hasAtLeastOneBox(),v=r.db.hasAtLeastOneBoxWithTitle(),y=qy(d,f,r);Oy.height=Xy(d,y,h),Ly.insertComputerIcon(u),Ly.insertDatabaseIcon(u),Ly.insertClockIcon(u),g&&(Iy.bumpVerticalPos(Oy.boxMargin),v&&Iy.bumpVerticalPos(h[0].textMaxHeight)),zy(u,d,p,0,Oy,f,!1);const b=Zy(f,d,y,r);function w(e,t){const n=Iy.endActivation(e);n.starty+18>t&&(n.starty=t-6,t+=12),Ly.drawActivation(u,n,t,Oy,Vy(e.from.actor).length),Iy.insert(n.startx,t-10,n.stopx,t)}Ly.insertArrowHead(u),Ly.insertArrowCrossHead(u),Ly.insertArrowFilledHead(u),Ly.insertSequenceNumber(u);let x=1,k=1;const _=[];f.forEach((function(e){let t,n,a;switch(e.type){case r.db.LINETYPE.NOTE:n=e.noteModel,Ny(u,n);break;case r.db.LINETYPE.ACTIVE_START:Iy.newActivation(e,u,d);break;case r.db.LINETYPE.ACTIVE_END:w(e,Iy.getVerticalPos());break;case r.db.LINETYPE.LOOP_START:Ky(b,e,Oy.boxMargin,Oy.boxMargin+Oy.boxTextMargin,(e=>Iy.newLoop(e)));break;case r.db.LINETYPE.LOOP_END:t=Iy.endLoop(),Ly.drawLoop(u,t,"loop",Oy),Iy.bumpVerticalPos(t.stopy-Iy.getVerticalPos()),Iy.models.addLoop(t);break;case r.db.LINETYPE.RECT_START:Ky(b,e,Oy.boxMargin,Oy.boxMargin,(e=>Iy.newLoop(void 0,e.message)));break;case r.db.LINETYPE.RECT_END:t=Iy.endLoop(),Ly.drawBackgroundRect(u,t),Iy.models.addLoop(t),Iy.bumpVerticalPos(t.stopy-Iy.getVerticalPos());break;case r.db.LINETYPE.OPT_START:Ky(b,e,Oy.boxMargin,Oy.boxMargin+Oy.boxTextMargin,(e=>Iy.newLoop(e)));break;case r.db.LINETYPE.OPT_END:t=Iy.endLoop(),Ly.drawLoop(u,t,"opt",Oy),Iy.bumpVerticalPos(t.stopy-Iy.getVerticalPos()),Iy.models.addLoop(t);break;case r.db.LINETYPE.ALT_START:Ky(b,e,Oy.boxMargin,Oy.boxMargin+Oy.boxTextMargin,(e=>Iy.newLoop(e)));break;case r.db.LINETYPE.ALT_ELSE:Ky(b,e,Oy.boxMargin+Oy.boxTextMargin,Oy.boxMargin,(e=>Iy.addSectionToLoop(e)));break;case r.db.LINETYPE.ALT_END:t=Iy.endLoop(),Ly.drawLoop(u,t,"alt",Oy),Iy.bumpVerticalPos(t.stopy-Iy.getVerticalPos()),Iy.models.addLoop(t);break;case r.db.LINETYPE.PAR_START:Ky(b,e,Oy.boxMargin,Oy.boxMargin+Oy.boxTextMargin,(e=>Iy.newLoop(e)));break;case r.db.LINETYPE.PAR_AND:Ky(b,e,Oy.boxMargin+Oy.boxTextMargin,Oy.boxMargin,(e=>Iy.addSectionToLoop(e)));break;case r.db.LINETYPE.PAR_END:t=Iy.endLoop(),Ly.drawLoop(u,t,"par",Oy),Iy.bumpVerticalPos(t.stopy-Iy.getVerticalPos()),Iy.models.addLoop(t);break;case r.db.LINETYPE.AUTONUMBER:x=e.message.start||x,k=e.message.step||k,e.message.visible?r.db.enableSequenceNumbers():r.db.disableSequenceNumbers();break;case r.db.LINETYPE.CRITICAL_START:Ky(b,e,Oy.boxMargin,Oy.boxMargin+Oy.boxTextMargin,(e=>Iy.newLoop(e)));break;case r.db.LINETYPE.CRITICAL_OPTION:Ky(b,e,Oy.boxMargin+Oy.boxTextMargin,Oy.boxMargin,(e=>Iy.addSectionToLoop(e)));break;case r.db.LINETYPE.CRITICAL_END:t=Iy.endLoop(),Ly.drawLoop(u,t,"critical",Oy),Iy.bumpVerticalPos(t.stopy-Iy.getVerticalPos()),Iy.models.addLoop(t);break;case r.db.LINETYPE.BREAK_START:Ky(b,e,Oy.boxMargin,Oy.boxMargin+Oy.boxTextMargin,(e=>Iy.newLoop(e)));break;case r.db.LINETYPE.BREAK_END:t=Iy.endLoop(),Ly.drawLoop(u,t,"break",Oy),Iy.bumpVerticalPos(t.stopy-Iy.getVerticalPos()),Iy.models.addLoop(t);break;default:try{a=e.msgModel,a.starty=Iy.getVerticalPos(),a.sequenceIndex=x,a.sequenceVisible=r.db.showSequenceNumbers();const t=$y(u,a);_.push({messageModel:a,lineStartY:t}),Iy.models.addMessage(a)}catch(i){Ze.error("error while drawing message",i)}}[r.db.LINETYPE.SOLID_OPEN,r.db.LINETYPE.DOTTED_OPEN,r.db.LINETYPE.SOLID,r.db.LINETYPE.DOTTED,r.db.LINETYPE.SOLID_CROSS,r.db.LINETYPE.DOTTED_CROSS,r.db.LINETYPE.SOLID_POINT,r.db.LINETYPE.DOTTED_POINT].includes(e.type)&&(x+=k)})),_.forEach((e=>Py(u,e.messageModel,e.lineStartY,r))),Oy.mirrorActors&&(Iy.bumpVerticalPos(2*Oy.boxMargin),zy(u,d,p,Iy.getVerticalPos(),Oy,f,!0),Iy.bumpVerticalPos(Oy.boxMargin),dy(u,Iy.getVerticalPos())),Iy.models.boxes.forEach((function(e){e.height=Iy.getVerticalPos()-e.y,Iy.insert(e.x,e.y,e.x+e.width,e.height),e.startx=e.x,e.starty=e.y,e.stopx=e.startx+e.width,e.stopy=e.starty+e.height,e.stroke="rgb(0,0,0, 0.5)",Ly.drawBox(u,e,Oy)})),g&&Iy.bumpVerticalPos(Oy.boxMargin);const C=Wy(u,d,p,c),{bounds:E}=Iy.getBounds();Ze.debug("For line height fix Querying: #"+t+" .actor-line");const R=(0,s.Ubm)("#"+t+" .actor-line");R.attr("y2",E.stopy);let S=E.stopy-E.starty;S<C.maxHeight&&(S=C.maxHeight);let A=S+2*Oy.diagramMarginY;Oy.mirrorActors&&(A=A-Oy.boxMargin+Oy.bottomMarginAdj);let T=E.stopx-E.startx;T<C.maxWidth&&(T=C.maxWidth);const M=T+2*Oy.diagramMarginX;m&&u.append("text").text(m).attr("x",(E.stopx-E.startx)/2-2*Oy.diagramMarginX).attr("y",-25),Mi(u,A,M,Oy.useMaxWidth);const L=m?40:0;u.attr("viewBox",E.startx-Oy.diagramMarginX+" -"+(Oy.diagramMarginY+L)+" "+M+" "+(A+L)),Ze.debug("models:",Iy.models)};function qy(e,t,n){const r={};return t.forEach((function(t){if(e[t.to]&&e[t.from]){const a=e[t.to];if(t.placement===n.db.PLACEMENT.LEFTOF&&!a.prevActor)return;if(t.placement===n.db.PLACEMENT.RIGHTOF&&!a.nextActor)return;const i=void 0!==t.placement,o=!i,s=i?Dy(Oy):By(Oy),l=t.wrap?si.wrapLabel(t.message,Oy.width-2*Oy.wrapPadding,s):t.message,c=si.calculateTextDimensions(l,s),u=c.width+2*Oy.wrapPadding;o&&t.from===a.nextActor?r[t.to]=Math.max(r[t.to]||0,u):o&&t.from===a.prevActor?r[t.from]=Math.max(r[t.from]||0,u):o&&t.from===t.to?(r[t.from]=Math.max(r[t.from]||0,u/2),r[t.to]=Math.max(r[t.to]||0,u/2)):t.placement===n.db.PLACEMENT.RIGHTOF?r[t.from]=Math.max(r[t.from]||0,u):t.placement===n.db.PLACEMENT.LEFTOF?r[a.prevActor]=Math.max(r[a.prevActor]||0,u):t.placement===n.db.PLACEMENT.OVER&&(a.prevActor&&(r[a.prevActor]=Math.max(r[a.prevActor]||0,u/2)),a.nextActor&&(r[t.from]=Math.max(r[t.from]||0,u/2)))}})),Ze.debug("maxMessageWidthPerActor:",r),r}const Gy=function(e){let t=0;const n=Fy(Oy);for(const r in e.links){const e=si.calculateTextDimensions(r,n),a=e.width+2*Oy.wrapPadding+2*Oy.boxMargin;t<a&&(t=a)}return t};function Xy(e,t,n){let r=0;Object.keys(e).forEach((t=>{const n=e[t];n.wrap&&(n.description=si.wrapLabel(n.description,Oy.width-2*Oy.wrapPadding,Fy(Oy)));const a=si.calculateTextDimensions(n.description,Fy(Oy));n.width=n.wrap?Oy.width:Math.max(Oy.width,a.width+2*Oy.wrapPadding),n.height=n.wrap?Math.max(a.height,Oy.height):Oy.height,r=Math.max(r,n.height)}));for(const i in t){const n=e[i];if(!n)continue;const r=e[n.nextActor];if(!r){const e=t[i],r=e+Oy.actorMargin-n.width/2;n.margin=Math.max(r,Oy.actorMargin);continue}const a=t[i],o=a+Oy.actorMargin-n.width/2-r.width/2;n.margin=Math.max(o,Oy.actorMargin)}let a=0;return n.forEach((t=>{const n=By(Oy);let r=t.actorKeys.reduce(((t,n)=>t+(e[n].width+(e[n].margin||0))),0);r-=2*Oy.boxTextMargin,t.wrap&&(t.name=si.wrapLabel(t.name,r-2*Oy.wrapPadding,n));const i=si.calculateTextDimensions(t.name,n);a=Math.max(i.height,a);const o=Math.max(r,i.width+2*Oy.wrapPadding);if(t.margin=Oy.boxTextMargin,r<o){const e=(o-r)/2;t.margin+=e}})),n.forEach((e=>e.textMaxHeight=a)),Math.max(r,Oy.height)}const Yy=function(e,t,n){const r=t[e.from].x,a=t[e.to].x,i=e.wrap&&e.message;let o=si.calculateTextDimensions(i?si.wrapLabel(e.message,Oy.width,Dy(Oy)):e.message,Dy(Oy));const s={width:i?Oy.width:Math.max(Oy.width,o.width+2*Oy.noteMargin),height:0,startx:t[e.from].x,stopx:0,starty:0,stopy:0,message:e.message};return e.placement===n.db.PLACEMENT.RIGHTOF?(s.width=i?Math.max(Oy.width,o.width):Math.max(t[e.from].width/2+t[e.to].width/2,o.width+2*Oy.noteMargin),s.startx=r+(t[e.from].width+Oy.actorMargin)/2):e.placement===n.db.PLACEMENT.LEFTOF?(s.width=i?Math.max(Oy.width,o.width+2*Oy.noteMargin):Math.max(t[e.from].width/2+t[e.to].width/2,o.width+2*Oy.noteMargin),s.startx=r-s.width+(t[e.from].width-Oy.actorMargin)/2):e.to===e.from?(o=si.calculateTextDimensions(i?si.wrapLabel(e.message,Math.max(Oy.width,t[e.from].width),Dy(Oy)):e.message,Dy(Oy)),s.width=i?Math.max(Oy.width,t[e.from].width):Math.max(t[e.from].width,Oy.width,o.width+2*Oy.noteMargin),s.startx=r+(t[e.from].width-s.width)/2):(s.width=Math.abs(r+t[e.from].width/2-(a+t[e.to].width/2))+Oy.actorMargin,s.startx=r<a?r+t[e.from].width/2-Oy.actorMargin/2:a+t[e.to].width/2-Oy.actorMargin/2),i&&(s.message=si.wrapLabel(e.message,s.width-2*Oy.wrapPadding,Dy(Oy))),Ze.debug(`NM:[${s.startx},${s.stopx},${s.starty},${s.stopy}:${s.width},${s.height}=${e.message}]`),s},Qy=function(e,t,n){let r=!1;if([n.db.LINETYPE.SOLID_OPEN,n.db.LINETYPE.DOTTED_OPEN,n.db.LINETYPE.SOLID,n.db.LINETYPE.DOTTED,n.db.LINETYPE.SOLID_CROSS,n.db.LINETYPE.DOTTED_CROSS,n.db.LINETYPE.SOLID_POINT,n.db.LINETYPE.DOTTED_POINT].includes(e.type)&&(r=!0),!r)return{};const a=Uy(e.from,t),i=Uy(e.to,t),o=a[0]<=i[0]?1:0,s=a[0]<i[0]?0:1,l=[...a,...i],c=Math.abs(i[s]-a[o]);e.wrap&&e.message&&(e.message=si.wrapLabel(e.message,Math.max(c+2*Oy.wrapPadding,Oy.width),By(Oy)));const u=si.calculateTextDimensions(e.message,By(Oy));return{width:Math.max(e.wrap?0:u.width+2*Oy.wrapPadding,c+2*Oy.wrapPadding,Oy.width),height:0,startx:a[o],stopx:i[s],starty:0,stopy:0,message:e.message,type:e.type,wrap:e.wrap,fromBounds:Math.min.apply(null,l),toBounds:Math.max.apply(null,l)}},Zy=function(e,t,n,r){const a={},i=[];let o,s,l;return e.forEach((function(e){switch(e.id=si.random({length:10}),e.type){case r.db.LINETYPE.LOOP_START:case r.db.LINETYPE.ALT_START:case r.db.LINETYPE.OPT_START:case r.db.LINETYPE.PAR_START:case r.db.LINETYPE.CRITICAL_START:case r.db.LINETYPE.BREAK_START:i.push({id:e.id,msg:e.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case r.db.LINETYPE.ALT_ELSE:case r.db.LINETYPE.PAR_AND:case r.db.LINETYPE.CRITICAL_OPTION:e.message&&(o=i.pop(),a[o.id]=o,a[e.id]=o,i.push(o));break;case r.db.LINETYPE.LOOP_END:case r.db.LINETYPE.ALT_END:case r.db.LINETYPE.OPT_END:case r.db.LINETYPE.PAR_END:case r.db.LINETYPE.CRITICAL_END:case r.db.LINETYPE.BREAK_END:o=i.pop(),a[o.id]=o;break;case r.db.LINETYPE.ACTIVE_START:{const n=t[e.from?e.from.actor:e.to.actor],r=Vy(e.from?e.from.actor:e.to.actor).length,a=n.x+n.width/2+(r-1)*Oy.activationWidth/2,i={startx:a,stopx:a+Oy.activationWidth,actor:e.from.actor,enabled:!0};Iy.activations.push(i)}break;case r.db.LINETYPE.ACTIVE_END:{const t=Iy.activations.map((e=>e.actor)).lastIndexOf(e.from.actor);delete Iy.activations.splice(t,1)[0]}break}const n=void 0!==e.placement;n?(s=Yy(e,t,r),e.noteModel=s,i.forEach((e=>{o=e,o.from=Math.min(o.from,s.startx),o.to=Math.max(o.to,s.startx+s.width),o.width=Math.max(o.width,Math.abs(o.from-o.to))-Oy.labelBoxWidth}))):(l=Qy(e,t,r),e.msgModel=l,l.startx&&l.stopx&&i.length>0&&i.forEach((n=>{if(o=n,l.startx===l.stopx){const n=t[e.from],r=t[e.to];o.from=Math.min(n.x-l.width/2,n.x-n.width/2,o.from),o.to=Math.max(r.x+l.width/2,r.x+n.width/2,o.to),o.width=Math.max(o.width,Math.abs(o.to-o.from))-Oy.labelBoxWidth}else o.from=Math.min(l.startx,o.from),o.to=Math.max(l.stopx,o.to),o.width=Math.max(o.width,l.width)-Oy.labelBoxWidth})))})),Iy.activations=[],Ze.debug("Loop type widths:",a),a},Jy={bounds:Iy,drawActors:zy,drawActorsPopup:Wy,setConf:jy,draw:Hy};var eb=function(){var e=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},t=[1,2],n=[1,3],r=[1,5],a=[1,7],i=[2,5],o=[1,15],s=[1,17],l=[1,21],c=[1,22],u=[1,23],d=[1,24],h=[1,37],p=[1,25],f=[1,26],m=[1,27],g=[1,28],v=[1,29],y=[1,32],b=[1,33],w=[1,34],x=[1,35],k=[1,36],_=[1,39],C=[1,40],E=[1,41],R=[1,42],S=[1,38],A=[1,45],T=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],M=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],L=[1,4,5,7,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],O=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],I={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,directive:6,SD:7,document:8,line:9,statement:10,classDefStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"--\x3e":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,classDef:38,CLASSDEF_ID:39,CLASSDEF_STYLEOPTS:40,DEFAULT:41,class:42,CLASSENTITY_IDS:43,STYLECLASS:44,openDirective:45,typeDirective:46,closeDirective:47,":":48,argDirective:49,direction_tb:50,direction_bt:51,direction_rl:52,direction_lr:53,eol:54,";":55,EDGE_STATE:56,STYLE_SEPARATOR:57,left_of:58,right_of:59,open_directive:60,type_directive:61,arg_directive:62,close_directive:63,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",7:"SD",14:"DESCR",15:"--\x3e",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"classDef",39:"CLASSDEF_ID",40:"CLASSDEF_STYLEOPTS",41:"DEFAULT",42:"class",43:"CLASSENTITY_IDS",44:"STYLECLASS",48:":",50:"direction_tb",51:"direction_bt",52:"direction_rl",53:"direction_lr",55:";",56:"EDGE_STATE",57:"STYLE_SEPARATOR",58:"left_of",59:"right_of",60:"open_directive",61:"type_directive",62:"arg_directive",63:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[10,1],[10,1],[10,1],[10,2],[10,3],[10,4],[10,1],[10,2],[10,1],[10,4],[10,3],[10,6],[10,1],[10,1],[10,1],[10,1],[10,4],[10,4],[10,1],[10,1],[10,2],[10,2],[10,1],[11,3],[11,3],[12,3],[6,3],[6,5],[32,1],[32,1],[32,1],[32,1],[54,1],[54,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1],[45,1],[46,1],[49,1],[47,1]],performAction:function(e,t,n,r,a,i,o){var s=i.length-1;switch(a){case 4:return r.setRootDoc(i[s]),i[s];case 5:this.$=[];break;case 6:"nl"!=i[s]&&(i[s-1].push(i[s]),this.$=i[s-1]);break;case 7:case 8:this.$=i[s];break;case 9:this.$="nl";break;case 12:this.$=i[s];break;case 13:const e=i[s-1];e.description=r.trimColon(i[s]),this.$=e;break;case 14:this.$={stmt:"relation",state1:i[s-2],state2:i[s]};break;case 15:const t=r.trimColon(i[s]);this.$={stmt:"relation",state1:i[s-3],state2:i[s-1],description:t};break;case 19:this.$={stmt:"state",id:i[s-3],type:"default",description:"",doc:i[s-1]};break;case 20:var l=i[s],c=i[s-2].trim();if(i[s].match(":")){var u=i[s].split(":");l=u[0],c=[c,u[1]]}this.$={stmt:"state",id:l,type:"default",description:c};break;case 21:this.$={stmt:"state",id:i[s-3],type:"default",description:i[s-5],doc:i[s-1]};break;case 22:this.$={stmt:"state",id:i[s],type:"fork"};break;case 23:this.$={stmt:"state",id:i[s],type:"join"};break;case 24:this.$={stmt:"state",id:i[s],type:"choice"};break;case 25:this.$={stmt:"state",id:r.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:i[s-1].trim(),note:{position:i[s-2].trim(),text:i[s].trim()}};break;case 30:this.$=i[s].trim(),r.setAccTitle(this.$);break;case 31:case 32:this.$=i[s].trim(),r.setAccDescription(this.$);break;case 33:case 34:this.$={stmt:"classDef",id:i[s-1].trim(),classes:i[s].trim()};break;case 35:this.$={stmt:"applyClass",id:i[s-1].trim(),styleClass:i[s].trim()};break;case 38:r.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:r.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:r.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:r.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:i[s].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:i[s-2].trim(),classes:[i[s].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:i[s-2].trim(),classes:[i[s].trim()],type:"default",description:""};break;case 50:r.parseDirective("%%{","open_directive");break;case 51:r.parseDirective(i[s],"type_directive");break;case 52:i[s]=i[s].trim().replace(/'/g,'"'),r.parseDirective(i[s],"arg_directive");break;case 53:r.parseDirective("}%%","close_directive","state");break}},table:[{3:1,4:t,5:n,6:4,7:r,45:6,60:a},{1:[3]},{3:8,4:t,5:n,6:4,7:r,45:6,60:a},{3:9,4:t,5:n,6:4,7:r,45:6,60:a},{3:10,4:t,5:n,6:4,7:r,45:6,60:a},e([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],i,{8:11}),{46:12,61:[1,13]},{61:[2,50]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:o,5:s,6:30,9:14,10:16,11:18,12:19,13:20,16:l,17:c,19:u,22:d,24:h,25:p,26:f,27:m,28:g,29:v,32:31,33:y,35:b,37:w,38:x,42:k,45:6,50:_,51:C,52:E,53:R,56:S,60:a},{47:43,48:[1,44],63:A},e([48,63],[2,51]),e(T,[2,6]),{6:30,10:46,11:18,12:19,13:20,16:l,17:c,19:u,22:d,24:h,25:p,26:f,27:m,28:g,29:v,32:31,33:y,35:b,37:w,38:x,42:k,45:6,50:_,51:C,52:E,53:R,56:S,60:a},e(T,[2,8]),e(T,[2,9]),e(T,[2,10]),e(T,[2,11]),e(T,[2,12],{14:[1,47],15:[1,48]}),e(T,[2,16]),{18:[1,49]},e(T,[2,18],{20:[1,50]}),{23:[1,51]},e(T,[2,22]),e(T,[2,23]),e(T,[2,24]),e(T,[2,25]),{30:52,31:[1,53],58:[1,54],59:[1,55]},e(T,[2,28]),e(T,[2,29]),{34:[1,56]},{36:[1,57]},e(T,[2,32]),{39:[1,58],41:[1,59]},{43:[1,60]},e(M,[2,44],{57:[1,61]}),e(M,[2,45],{57:[1,62]}),e(T,[2,38]),e(T,[2,39]),e(T,[2,40]),e(T,[2,41]),e(L,[2,36]),{49:63,62:[1,64]},e(L,[2,53]),e(T,[2,7]),e(T,[2,13]),{13:65,24:h,56:S},e(T,[2,17]),e(O,i,{8:66}),{24:[1,67]},{24:[1,68]},{23:[1,69]},{24:[2,48]},{24:[2,49]},e(T,[2,30]),e(T,[2,31]),{40:[1,70]},{40:[1,71]},{44:[1,72]},{24:[1,73]},{24:[1,74]},{47:75,63:A},{63:[2,52]},e(T,[2,14],{14:[1,76]}),{4:o,5:s,6:30,9:14,10:16,11:18,12:19,13:20,16:l,17:c,19:u,21:[1,77],22:d,24:h,25:p,26:f,27:m,28:g,29:v,32:31,33:y,35:b,37:w,38:x,42:k,45:6,50:_,51:C,52:E,53:R,56:S,60:a},e(T,[2,20],{20:[1,78]}),{31:[1,79]},{24:[1,80]},e(T,[2,33]),e(T,[2,34]),e(T,[2,35]),e(M,[2,46]),e(M,[2,47]),e(L,[2,37]),e(T,[2,15]),e(T,[2,19]),e(O,i,{8:81}),e(T,[2,26]),e(T,[2,27]),{4:o,5:s,6:30,9:14,10:16,11:18,12:19,13:20,16:l,17:c,19:u,21:[1,82],22:d,24:h,25:p,26:f,27:m,28:g,29:v,32:31,33:y,35:b,37:w,38:x,42:k,45:6,50:_,51:C,52:E,53:R,56:S,60:a},e(T,[2,21])],defaultActions:{7:[2,50],8:[2,1],9:[2,2],10:[2,3],54:[2,48],55:[2,49],64:[2,52]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],r=[],a=[null],i=[],o=this.table,s="",l=0,c=0,u=2,d=1,h=i.slice.call(arguments,1),p=Object.create(this.lexer),f={yy:{}};for(var m in this.yy)Object.prototype.hasOwnProperty.call(this.yy,m)&&(f.yy[m]=this.yy[m]);p.setInput(e,f.yy),f.yy.lexer=p,f.yy.parser=this,"undefined"==typeof p.yylloc&&(p.yylloc={});var g=p.yylloc;i.push(g);var v=p.options&&p.options.ranges;function y(){var e;return e=r.pop()||p.lex()||d,"number"!==typeof e&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}"function"===typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;var b,w,x,k,_,C,E,R,S={};while(1){if(w=n[n.length-1],this.defaultActions[w]?x=this.defaultActions[w]:(null!==b&&"undefined"!=typeof b||(b=y()),x=o[w]&&o[w][b]),"undefined"===typeof x||!x.length||!x[0]){var A="";for(_ in R=[],o[w])this.terminals_[_]&&_>u&&R.push("'"+this.terminals_[_]+"'");A=p.showPosition?"Parse error on line "+(l+1)+":\n"+p.showPosition()+"\nExpecting "+R.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(l+1)+": Unexpected "+(b==d?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(A,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:g,expected:R})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+b);switch(x[0]){case 1:n.push(b),a.push(p.yytext),i.push(p.yylloc),n.push(x[1]),b=null,c=p.yyleng,s=p.yytext,l=p.yylineno,g=p.yylloc;break;case 2:if(C=this.productions_[x[1]][1],S.$=a[a.length-C],S._$={first_line:i[i.length-(C||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(C||1)].first_column,last_column:i[i.length-1].last_column},v&&(S._$.range=[i[i.length-(C||1)].range[0],i[i.length-1].range[1]]),k=this.performAction.apply(S,[s,c,l,f.yy,x[1],a,i].concat(h)),"undefined"!==typeof k)return k;C&&(n=n.slice(0,-1*C*2),a=a.slice(0,-1*C),i=i.slice(0,-1*C)),n.push(this.productions_[x[1]][0]),a.push(S.$),i.push(S._$),E=o[n[n.length-2]][n[n.length-1]],n.push(E);break;case 3:return!0}}return!0}},N=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e;var t=e.match(/(?:\r\n?|\n).*/g);return t?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var a=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,a;if(this.options.backtrack_lexer&&(a={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(a.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var i in a)this[i]=a[i];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var a=this._currentRules(),i=0;i<a.length;i++)if(n=this._input.match(this.rules[a[i]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=i,this.options.backtrack_lexer){if(e=this.test_match(n,a[i]),!1!==e)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,a[r]),!1!==e&&e):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){var e=this.conditionStack.length-1;return e>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions["INITIAL"].rules},topState:function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return 41;case 1:return 50;case 2:return 51;case 3:return 52;case 4:return 53;case 5:return this.begin("open_directive"),60;case 6:return this.begin("type_directive"),61;case 7:return this.popState(),this.begin("arg_directive"),48;case 8:return this.popState(),this.popState(),63;case 9:return 62;case 10:break;case 11:break;case 12:return 5;case 13:break;case 14:break;case 15:break;case 16:break;case 17:return this.pushState("SCALE"),17;case 18:return 18;case 19:this.popState();break;case 20:return this.begin("acc_title"),33;case 21:return this.popState(),"acc_title_value";case 22:return this.begin("acc_descr"),35;case 23:return this.popState(),"acc_descr_value";case 24:this.begin("acc_descr_multiline");break;case 25:this.popState();break;case 26:return"acc_descr_multiline_value";case 27:return this.pushState("CLASSDEF"),38;case 28:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 29:return this.popState(),this.pushState("CLASSDEFID"),39;case 30:return this.popState(),40;case 31:return this.pushState("CLASS"),42;case 32:return this.popState(),this.pushState("CLASS_STYLE"),43;case 33:return this.popState(),44;case 34:return this.pushState("SCALE"),17;case 35:return 18;case 36:this.popState();break;case 37:this.pushState("STATE");break;case 38:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),25;case 39:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),26;case 40:return this.popState(),t.yytext=t.yytext.slice(0,-10).trim(),27;case 41:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),25;case 42:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),26;case 43:return this.popState(),t.yytext=t.yytext.slice(0,-10).trim(),27;case 44:return 50;case 45:return 51;case 46:return 52;case 47:return 53;case 48:this.pushState("STATE_STRING");break;case 49:return this.pushState("STATE_ID"),"AS";case 50:return this.popState(),"ID";case 51:this.popState();break;case 52:return"STATE_DESCR";case 53:return 19;case 54:this.popState();break;case 55:return this.popState(),this.pushState("struct"),20;case 56:break;case 57:return this.popState(),21;case 58:break;case 59:return this.begin("NOTE"),29;case 60:return this.popState(),this.pushState("NOTE_ID"),58;case 61:return this.popState(),this.pushState("NOTE_ID"),59;case 62:this.popState(),this.pushState("FLOATING_NOTE");break;case 63:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 64:break;case 65:return"NOTE_TEXT";case 66:return this.popState(),"ID";case 67:return this.popState(),this.pushState("NOTE_TEXT"),24;case 68:return this.popState(),t.yytext=t.yytext.substr(2).trim(),31;case 69:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),31;case 70:return 7;case 71:return 7;case 72:return 16;case 73:return 56;case 74:return 24;case 75:return t.yytext=t.yytext.trim(),14;case 76:return 15;case 77:return 28;case 78:return 57;case 79:return 5;case 80:return"INVALID"}},rules:[/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[14,15],inclusive:!1},close_directive:{rules:[14,15],inclusive:!1},arg_directive:{rules:[8,9,14,15],inclusive:!1},type_directive:{rules:[7,8,14,15],inclusive:!1},open_directive:{rules:[6,14,15],inclusive:!1},struct:{rules:[14,15,27,31,37,44,45,46,47,56,57,58,59,73,74,75,76,77],inclusive:!1},FLOATING_NOTE_ID:{rules:[66],inclusive:!1},FLOATING_NOTE:{rules:[63,64,65],inclusive:!1},NOTE_TEXT:{rules:[68,69],inclusive:!1},NOTE_ID:{rules:[67],inclusive:!1},NOTE:{rules:[60,61,62],inclusive:!1},CLASS_STYLE:{rules:[33],inclusive:!1},CLASS:{rules:[32],inclusive:!1},CLASSDEFID:{rules:[30],inclusive:!1},CLASSDEF:{rules:[28,29],inclusive:!1},acc_descr_multiline:{rules:[25,26],inclusive:!1},acc_descr:{rules:[23],inclusive:!1},acc_title:{rules:[21],inclusive:!1},SCALE:{rules:[18,19,35,36],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[50],inclusive:!1},STATE_STRING:{rules:[51,52],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[14,15,38,39,40,41,42,43,48,49,53,54,55],inclusive:!1},ID:{rules:[14,15],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,10,11,12,13,15,16,17,20,22,24,27,31,34,37,55,59,70,71,72,73,74,75,76,78,79,80],inclusive:!0}}};return e}();function B(){this.yy={}}return I.lexer=N,B.prototype=I,I.Parser=B,new B}();eb.parser=eb;const tb=eb,nb=(e,t)=>{var n;return"dagre-wrapper"!==(null==(n=null==t?void 0:t.state)?void 0:n.defaultRenderer)&&null!==e.match(/^\s*stateDiagram/)},rb=(e,t)=>{var n;return null!==e.match(/^\s*stateDiagram-v2/)||!(!e.match(/^\s*stateDiagram/)||"dagre-wrapper"!==(null==(n=null==t?void 0:t.state)?void 0:n.defaultRenderer))},ab="LR",ib="TB",ob="state",sb="relation",lb="classDef",cb="applyClass",ub="default",db="divider",hb="[*]",pb="start",fb=hb,mb="end",gb="color",vb="fill",yb="bgFill",bb=",";function wb(){return{}}let xb=ab,kb=[],_b=wb();const Cb=()=>({relations:[],states:{},documents:{}});let Eb={root:Cb()},Rb=Eb.root,Sb=0,Ab=0;const Tb={LINE:0,DOTTED_LINE:1},Mb={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},Lb=e=>JSON.parse(JSON.stringify(e)),Ob=function(e,t,n){m_.parseDirective(this,e,t,n)},Ib=e=>{Ze.info("Setting root doc",e),kb=e},Nb=()=>kb,Bb=(e,t,n)=>{if(t.stmt===sb)Bb(e,t.state1,!0),Bb(e,t.state2,!1);else if(t.stmt===ob&&("[*]"===t.id?(t.id=n?e.id+"_start":e.id+"_end",t.start=n):t.id=t.id.trim()),t.doc){const e=[];let n,r=[];for(n=0;n<t.doc.length;n++)if(t.doc[n].type===db){const a=Lb(t.doc[n]);a.doc=Lb(r),e.push(a),r=[]}else r.push(t.doc[n]);if(e.length>0&&r.length>0){const n={stmt:ob,id:ja(),type:"divider",doc:Lb(r)};e.push(Lb(n)),t.doc=e}t.doc.forEach((e=>Bb(t,e,!0)))}},Db=()=>(Bb({id:"root"},{id:"root",doc:kb},!0),{id:"root",doc:kb}),Fb=e=>{let t;t=e.doc?e.doc:e,Ze.info(t),Pb(!0),Ze.info("Extract",t),t.forEach((e=>{switch(e.stmt){case ob:$b(e.id.trim(),e.type,e.doc,e.description,e.note,e.classes,e.styles,e.textStyles);break;case sb:Xb(e.state1,e.state2,e.description);break;case lb:Jb(e.id.trim(),e.classes);break;case cb:tw(e.id.trim(),e.styleClass);break}}))},$b=function(e,t=ub,n=null,r=null,a=null,i=null,o=null,s=null){const l=null==e?void 0:e.trim();if(void 0===Rb.states[l]?(Ze.info("Adding state ",l,r),Rb.states[l]={id:l,descriptions:[],type:t,doc:n,note:a,classes:[],styles:[],textStyles:[]}):(Rb.states[l].doc||(Rb.states[l].doc=n),Rb.states[l].type||(Rb.states[l].type=t)),r&&(Ze.info("Setting state description",l,r),"string"===typeof r&&Yb(l,r.trim()),"object"===typeof r&&r.forEach((e=>Yb(l,e.trim())))),a&&(Rb.states[l].note=a,Rb.states[l].note.text=ft.sanitizeText(Rb.states[l].note.text,wi())),i){Ze.info("Setting state classes",l,i);const e="string"===typeof i?[i]:i;e.forEach((e=>tw(l,e.trim())))}if(o){Ze.info("Setting state styles",l,o);const e="string"===typeof o?[o]:o;e.forEach((e=>nw(l,e.trim())))}if(s){Ze.info("Setting state styles",l,o);const e="string"===typeof s?[s]:s;e.forEach((e=>rw(l,e.trim())))}},Pb=function(e){Eb={root:Cb()},Rb=Eb.root,Sb=0,_b=wb(),e||uo()},zb=function(e){return Rb.states[e]},Wb=function(){return Rb.states},jb=function(){Ze.info("Documents = ",Eb)},Vb=function(){return Rb.relations};function Ub(e=""){let t=e;return e===hb&&(Sb++,t=`${pb}${Sb}`),t}function Kb(e="",t=ub){return e===hb?pb:t}function Hb(e=""){let t=e;return e===fb&&(Sb++,t=`${mb}${Sb}`),t}function qb(e="",t=ub){return e===fb?mb:t}function Gb(e,t,n){let r=Ub(e.id.trim()),a=Kb(e.id.trim(),e.type),i=Ub(t.id.trim()),o=Kb(t.id.trim(),t.type);$b(r,a,e.doc,e.description,e.note,e.classes,e.styles,e.textStyles),$b(i,o,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),Rb.relations.push({id1:r,id2:i,relationTitle:ft.sanitizeText(n,wi())})}const Xb=function(e,t,n){if("object"===typeof e)Gb(e,t,n);else{const r=Ub(e.trim()),a=Kb(e),i=Hb(t.trim()),o=qb(t);$b(r,a),$b(i,o),Rb.relations.push({id1:r,id2:i,title:ft.sanitizeText(n,wi())})}},Yb=function(e,t){const n=Rb.states[e],r=t.startsWith(":")?t.replace(":","").trim():t;n.descriptions.push(ft.sanitizeText(r,wi()))},Qb=function(e){return":"===e.substring(0,1)?e.substr(2).trim():e.trim()},Zb=()=>(Ab++,"divider-id-"+Ab),Jb=function(e,t=""){void 0===_b[e]&&(_b[e]={id:e,styles:[],textStyles:[]});const n=_b[e];void 0!==t&&null!==t&&t.split(bb).forEach((e=>{const t=e.replace(/([^;]*);/,"$1").trim();if(e.match(gb)){const e=t.replace(vb,yb),r=e.replace(gb,vb);n.textStyles.push(r)}n.styles.push(t)}))},ew=function(){return _b},tw=function(e,t){e.split(",").forEach((function(e){let n=zb(e);if(void 0===n){const t=e.trim();$b(t),n=zb(t)}n.classes.push(t)}))},nw=function(e,t){const n=zb(e);void 0!==n&&n.textStyles.push(t)},rw=function(e,t){const n=zb(e);void 0!==n&&n.textStyles.push(t)},aw=()=>xb,iw=e=>{xb=e},ow=e=>e&&":"===e[0]?e.substr(1).trim():e.trim(),sw={parseDirective:Ob,getConfig:()=>wi().state,addState:$b,clear:Pb,getState:zb,getStates:Wb,getRelations:Vb,getClasses:ew,getDirection:aw,addRelation:Xb,getDividerId:Zb,setDirection:iw,cleanupLabel:Qb,lineType:Tb,relationType:Mb,logDocuments:jb,getRootDoc:Nb,setRootDoc:Ib,getRootDocV2:Db,extract:Fb,trimColon:ow,getAccTitle:po,setAccTitle:ho,getAccDescription:mo,setAccDescription:fo,addStyleClass:Jb,setCssClass:tw,addDescription:Yb,setDiagramTitle:go,getDiagramTitle:vo},lw={},cw=(e,t)=>{lw[e]=t},uw=e=>lw[e],dw=()=>Object.keys(lw),hw=()=>dw().length,pw={get:uw,set:cw,keys:dw,size:hw},fw=e=>e.append("circle").attr("class","start-state").attr("r",wi().state.sizeUnit).attr("cx",wi().state.padding+wi().state.sizeUnit).attr("cy",wi().state.padding+wi().state.sizeUnit),mw=e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",wi().state.textHeight).attr("class","divider").attr("x2",2*wi().state.textHeight).attr("y1",0).attr("y2",0),gw=(e,t)=>{const n=e.append("text").attr("x",2*wi().state.padding).attr("y",wi().state.textHeight+2*wi().state.padding).attr("font-size",wi().state.fontSize).attr("class","state-title").text(t.id),r=n.node().getBBox();return e.insert("rect",":first-child").attr("x",wi().state.padding).attr("y",wi().state.padding).attr("width",r.width+2*wi().state.padding).attr("height",r.height+2*wi().state.padding).attr("rx",wi().state.radius),n},vw=(e,t)=>{const n=function(e,t,n){const r=e.append("tspan").attr("x",2*wi().state.padding).text(t);n||r.attr("dy",wi().state.textHeight)},r=e.append("text").attr("x",2*wi().state.padding).attr("y",wi().state.textHeight+1.3*wi().state.padding).attr("font-size",wi().state.fontSize).attr("class","state-title").text(t.descriptions[0]),a=r.node().getBBox(),i=a.height,o=e.append("text").attr("x",wi().state.padding).attr("y",i+.4*wi().state.padding+wi().state.dividerMargin+wi().state.textHeight).attr("class","state-description");let s=!0,l=!0;t.descriptions.forEach((function(e){s||(n(o,e,l),l=!1),s=!1}));const c=e.append("line").attr("x1",wi().state.padding).attr("y1",wi().state.padding+i+wi().state.dividerMargin/2).attr("y2",wi().state.padding+i+wi().state.dividerMargin/2).attr("class","descr-divider"),u=o.node().getBBox(),d=Math.max(u.width,a.width);return c.attr("x2",d+3*wi().state.padding),e.insert("rect",":first-child").attr("x",wi().state.padding).attr("y",wi().state.padding).attr("width",d+2*wi().state.padding).attr("height",u.height+i+2*wi().state.padding).attr("rx",wi().state.radius),e},yw=(e,t,n)=>{const r=wi().state.padding,a=2*wi().state.padding,i=e.node().getBBox(),o=i.width,s=i.x,l=e.append("text").attr("x",0).attr("y",wi().state.titleShift).attr("font-size",wi().state.fontSize).attr("class","state-title").text(t.id),c=l.node().getBBox(),u=c.width+a;let d,h=Math.max(u,o);h===o&&(h+=a);const p=e.node().getBBox();t.doc,d=s-r,u>o&&(d=(o-h)/2+r),Math.abs(s-p.x)<r&&u>o&&(d=s-(u-o)/2);const f=1-wi().state.textHeight;return e.insert("rect",":first-child").attr("x",d).attr("y",f).attr("class",n?"alt-composit":"composit").attr("width",h).attr("height",p.height+wi().state.textHeight+wi().state.titleShift+1).attr("rx","0"),l.attr("x",d+r),u<=o&&l.attr("x",s+(h-a)/2-u/2+r),e.insert("rect",":first-child").attr("x",d).attr("y",wi().state.titleShift-wi().state.textHeight-wi().state.padding).attr("width",h).attr("height",3*wi().state.textHeight).attr("rx",wi().state.radius),e.insert("rect",":first-child").attr("x",d).attr("y",wi().state.titleShift-wi().state.textHeight-wi().state.padding).attr("width",h).attr("height",p.height+3+2*wi().state.textHeight).attr("rx",wi().state.radius),e},bw=e=>(e.append("circle").attr("class","end-state-outer").attr("r",wi().state.sizeUnit+wi().state.miniPadding).attr("cx",wi().state.padding+wi().state.sizeUnit+wi().state.miniPadding).attr("cy",wi().state.padding+wi().state.sizeUnit+wi().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",wi().state.sizeUnit).attr("cx",wi().state.padding+wi().state.sizeUnit+2).attr("cy",wi().state.padding+wi().state.sizeUnit+2)),ww=(e,t)=>{let n=wi().state.forkWidth,r=wi().state.forkHeight;if(t.parentId){let e=n;n=r,r=e}return e.append("rect").style("stroke","black").style("fill","black").attr("width",n).attr("height",r).attr("x",wi().state.padding).attr("y",wi().state.padding)},xw=(e,t,n,r)=>{let a=0;const i=r.append("text");i.style("text-anchor","start"),i.attr("class","noteText");let o=e.replace(/\r\n/g,"<br/>");o=o.replace(/\n/g,"<br/>");const s=o.split(ft.lineBreakRegex);let l=1.25*wi().state.noteMargin;for(const c of s){const e=c.trim();if(e.length>0){const r=i.append("tspan");if(r.text(e),0===l){const e=r.node().getBBox();l+=e.height}a+=l,r.attr("x",t+wi().state.noteMargin),r.attr("y",n+a+1.25*wi().state.noteMargin)}}return{textWidth:i.node().getBBox().width,textHeight:a}},kw=(e,t)=>{t.attr("class","state-note");const n=t.append("rect").attr("x",0).attr("y",wi().state.padding),r=t.append("g"),{textWidth:a,textHeight:i}=xw(e,0,0,r);return n.attr("height",i+2*wi().state.noteMargin),n.attr("width",a+2*wi().state.noteMargin),n},_w=function(e,t){const n=t.id,r={id:n,label:t.id,width:0,height:0},a=e.append("g").attr("id",n).attr("class","stateGroup");"start"===t.type&&fw(a),"end"===t.type&&bw(a),"fork"!==t.type&&"join"!==t.type||ww(a,t),"note"===t.type&&kw(t.note.text,a),"divider"===t.type&&mw(a),"default"===t.type&&0===t.descriptions.length&&gw(a,t),"default"===t.type&&t.descriptions.length>0&&vw(a,t);const i=a.node().getBBox();return r.width=i.width+2*wi().state.padding,r.height=i.height+2*wi().state.padding,pw.set(n,r),r};let Cw=0;const Ew=function(e,t,n){const r=function(e){switch(e){case sw.relationType.AGGREGATION:return"aggregation";case sw.relationType.EXTENSION:return"extension";case sw.relationType.COMPOSITION:return"composition";case sw.relationType.DEPENDENCY:return"dependency"}};t.points=t.points.filter((e=>!Number.isNaN(e.y)));const a=t.points,i=(0,s.n8j)().x((function(e){return e.x})).y((function(e){return e.y})).curve(s.qrM),o=e.append("path").attr("d",i(a)).attr("id","edge"+Cw).attr("class","transition");let l="";if(wi().state.arrowMarkerAbsolute&&(l=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,l=l.replace(/\(/g,"\\("),l=l.replace(/\)/g,"\\)")),o.attr("marker-end","url("+l+"#"+r(sw.relationType.DEPENDENCY)+"End)"),void 0!==n.title){const r=e.append("g").attr("class","stateLabel"),{x:a,y:i}=si.calcLabelPosition(t.points),o=ft.getRows(n.title);let s=0;const l=[];let c=0,u=0;for(let e=0;e<=o.length;e++){const t=r.append("text").attr("text-anchor","middle").text(o[e]).attr("x",a).attr("y",i+s),n=t.node().getBBox();if(c=Math.max(c,n.width),u=Math.min(u,n.x),Ze.info(n.x,a,i+s),0===s){const e=t.node().getBBox();s=e.height,Ze.info("Title height",s,i)}l.push(t)}let d=s*o.length;if(o.length>1){const e=(o.length-1)*s*.5;l.forEach(((t,n)=>t.attr("y",i+n*s-e))),d=s*o.length}const h=r.node().getBBox();r.insert("rect",":first-child").attr("class","box").attr("x",a-c/2-wi().state.padding/2).attr("y",i-d/2-wi().state.padding/2-3.5).attr("width",c+wi().state.padding).attr("height",d+wi().state.padding),Ze.info(h)}Cw++};let Rw;const Sw={},Aw=function(){},Tw=function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},Mw=function(e,t,n,r){Rw=wi().state;const a=wi().securityLevel;let i;"sandbox"===a&&(i=(0,s.Ltv)("#i"+t));const o="sandbox"===a?(0,s.Ltv)(i.nodes()[0].contentDocument.body):(0,s.Ltv)("body"),l="sandbox"===a?i.nodes()[0].contentDocument:document;Ze.debug("Rendering diagram "+e);const c=o.select(`[id='${t}']`);Tw(c);const u=new we.T({multigraph:!0,compound:!0,rankdir:"RL"});u.setDefaultEdgeLabel((function(){return{}}));const d=r.db.getRootDoc();Ow(d,c,void 0,!1,o,l,r);const h=Rw.padding,p=c.node().getBBox(),f=p.width+2*h,m=p.height+2*h,g=1.75*f;Mi(c,m,g,Rw.useMaxWidth),c.attr("viewBox",`${p.x-Rw.padding} ${p.y-Rw.padding} `+f+" "+m)},Lw=e=>e?e.length*Rw.fontSizeFactor:1,Ow=(e,t,n,r,a,i,o)=>{const s=new we.T({compound:!0,multigraph:!0});let l,c=!0;for(l=0;l<e.length;l++)if("relation"===e[l].stmt){c=!1;break}n?s.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:c?1:Rw.edgeLengthFactor,nodeSep:c?1:50,isMultiGraph:!0}):s.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:c?1:Rw.edgeLengthFactor,nodeSep:c?1:50,ranker:"tight-tree",isMultiGraph:!0}),s.setDefaultEdgeLabel((function(){return{}})),o.db.extract(e);const u=o.db.getStates(),d=o.db.getRelations(),h=Object.keys(u);for(const v of h){const e=u[v];let l;if(n&&(e.parentId=n),e.doc){let n=t.append("g").attr("id",e.id).attr("class","stateGroup");l=Ow(e.doc,n,e.id,!r,a,i,o);{n=yw(n,e,r);let t=n.node().getBBox();l.width=t.width,l.height=t.height+Rw.padding/2,Sw[e.id]={y:Rw.compositTitleSize}}}else l=_w(t,e);if(e.note){const n={descriptions:[],id:e.id+"-note",note:e.note,type:"note"},r=_w(t,n);"left of"===e.note.position?(s.setNode(l.id+"-note",r),s.setNode(l.id,l)):(s.setNode(l.id,l),s.setNode(l.id+"-note",r)),s.setParent(l.id,l.id+"-group"),s.setParent(l.id+"-note",l.id+"-group")}else s.setNode(l.id,l)}Ze.debug("Count=",s.nodeCount(),s);let p=0;d.forEach((function(e){p++,Ze.debug("Setting edge",e),s.setEdge(e.id1,e.id2,{relation:e,width:Lw(e.title),height:Rw.labelHeight*ft.getRows(e.title).length,labelpos:"c"},"id"+p)})),(0,be.Zp)(s),Ze.debug("Graph after layout",s.nodes());const f=t.node();s.nodes().forEach((function(e){if(void 0!==e&&void 0!==s.node(e)){Ze.warn("Node "+e+": "+JSON.stringify(s.node(e))),a.select("#"+f.id+" #"+e).attr("transform","translate("+(s.node(e).x-s.node(e).width/2)+","+(s.node(e).y+(Sw[e]?Sw[e].y:0)-s.node(e).height/2)+" )"),a.select("#"+f.id+" #"+e).attr("data-x-shift",s.node(e).x-s.node(e).width/2);const t=i.querySelectorAll("#"+f.id+" #"+e+" .divider");t.forEach((e=>{const t=e.parentElement;let n=0,r=0;t&&(t.parentElement&&(n=t.parentElement.getBBox().width),r=parseInt(t.getAttribute("data-x-shift"),10),Number.isNaN(r)&&(r=0)),e.setAttribute("x1",0-r+8),e.setAttribute("x2",n-r-8)}))}else Ze.debug("No Node "+e+": "+JSON.stringify(s.node(e)))}));let m=f.getBBox();s.edges().forEach((function(e){void 0!==e&&void 0!==s.edge(e)&&(Ze.debug("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(s.edge(e))),Ew(t,s.edge(e),s.edge(e).relation))})),m=f.getBBox();const g={id:n||"root",label:n||"root",width:0,height:0};return g.width=m.width+2*Rw.padding,g.height=m.height+2*Rw.padding,Ze.debug("Doc rendered",g,s),g},Iw={setConf:Aw,draw:Mw},Nw="rect",Bw="rectWithTitle",Dw="start",Fw="end",$w="divider",Pw="roundedWithTitle",zw="note",Ww="noteGroup",jw="statediagram",Vw="state",Uw=`${jw}-${Vw}`,Kw="transition",Hw="note",qw="note-edge",Gw=`${Kw} ${qw}`,Xw=`${jw}-${Hw}`,Yw="cluster",Qw=`${jw}-${Yw}`,Zw="cluster-alt",Jw=`${jw}-${Zw}`,ex="parent",tx="note",nx="state",rx="----",ax=`${rx}${tx}`,ix=`${rx}${ex}`,ox="fill:none",sx="fill: #333",lx="c",cx="text",ux="normal";let dx={},hx=0;const px=function(e){const t=Object.keys(e);for(const n of t)e[n]},fx=function(e,t){Ze.trace("Extracting classes"),t.db.clear();try{return t.parser.parse(e),t.db.extract(t.db.getRootDocV2()),t.db.getClasses()}catch(n){return n}};function mx(e){return void 0===e||null===e?"":e.classes?e.classes.join(" "):""}function gx(e="",t=0,n="",r=rx){const a=null!==n&&n.length>0?`${r}${n}`:"";return`${nx}-${e}${a}-${t}`}const vx=(e,t,n,r,a,i)=>{const o=n.id,s=mx(r[o]);if("root"!==o){let t=Nw;!0===n.start&&(t=Dw),!1===n.start&&(t=Fw),n.type!==ub&&(t=n.type),dx[o]||(dx[o]={id:o,shape:t,description:ft.sanitizeText(o,wi()),classes:`${s} ${Uw}`});const r=dx[o];n.description&&(Array.isArray(r.description)?(r.shape=Bw,r.description.push(n.description)):r.description.length>0?(r.shape=Bw,r.description===o?r.description=[n.description]:r.description=[r.description,n.description]):(r.shape=Nw,r.description=n.description),r.description=ft.sanitizeTextOrArray(r.description,wi())),1===r.description.length&&r.shape===Bw&&(r.shape=Nw),!r.type&&n.doc&&(Ze.info("Setting cluster for ",o,bx(n)),r.type="group",r.dir=bx(n),r.shape=n.type===db?$w:Pw,r.classes=r.classes+" "+Qw+" "+(i?Jw:""));const a={labelStyle:"",shape:r.shape,labelText:r.description,classes:r.classes,style:"",id:o,dir:r.dir,domId:gx(o,hx),type:r.type,padding:15};if(n.note){const t={labelStyle:"",shape:zw,labelText:n.note.text,classes:Xw,style:"",id:o+ax+"-"+hx,domId:gx(o,hx,tx),type:r.type,padding:15},i={labelStyle:"",shape:Ww,labelText:n.note.text,classes:r.classes,style:"",id:o+ix,domId:gx(o,hx,ex),type:"group",padding:0};hx++;const s=o+ix;e.setNode(s,i),e.setNode(t.id,t),e.setNode(o,a),e.setParent(o,s),e.setParent(t.id,s);let l=o,c=t.id;"left of"===n.note.position&&(l=t.id,c=o),e.setEdge(l,c,{arrowhead:"none",arrowType:"",style:ox,labelStyle:"",classes:Gw,arrowheadStyle:sx,labelpos:lx,labelType:cx,thickness:ux})}else e.setNode(o,a)}t&&"root"!==t.id&&(Ze.trace("Setting node ",o," to be child of its parent ",t.id),e.setParent(o,t.id)),n.doc&&(Ze.trace("Adding nodes children "),yx(e,n,n.doc,r,a,!i))},yx=(e,t,n,r,a,i)=>{Ze.trace("items",n),n.forEach((n=>{switch(n.stmt){case ob:vx(e,t,n,r,a,i);break;case ub:vx(e,t,n,r,a,i);break;case sb:{vx(e,t,n.state1,r,a,i),vx(e,t,n.state2,r,a,i);const o={id:"edge"+hx,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:ox,labelStyle:"",label:ft.sanitizeText(n.description,wi()),arrowheadStyle:sx,labelpos:lx,labelType:cx,thickness:ux,classes:Kw};e.setEdge(n.state1.id,n.state2.id,o,hx),hx++}break}}))},bx=(e,t=ib)=>{let n=t;if(e.doc)for(let r=0;r<e.doc.length;r++){const t=e.doc[r];"dir"===t.stmt&&(n=t.value)}return n},wx=function(e,t,n,r){Ze.info("Drawing state diagram (v2)",t),dx={};let a=r.db.getDirection();void 0===a&&(a=ab);const{securityLevel:i,state:o}=wi(),l=o.nodeSpacing||50,c=o.rankSpacing||50;Ze.info(r.db.getRootDocV2()),r.db.extract(r.db.getRootDocV2()),Ze.info(r.db.getRootDocV2());const u=r.db.getStates(),d=new we.T({multigraph:!0,compound:!0}).setGraph({rankdir:bx(r.db.getRootDocV2()),nodesep:l,ranksep:c,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}}));let h;vx(d,void 0,r.db.getRootDocV2(),u,r.db,!0),"sandbox"===i&&(h=(0,s.Ltv)("#i"+t));const p="sandbox"===i?(0,s.Ltv)(h.nodes()[0].contentDocument.body):(0,s.Ltv)("body"),f=p.select(`[id="${t}"]`),m=p.select("#"+t+" g");Yd(m,d,["barb"],jw,t);const g=8;si.insertTitle(f,"statediagramTitleText",o.titleTopMargin,r.db.getDiagramTitle());const v=f.node().getBBox(),y=v.width+2*g,b=v.height+2*g;f.attr("class",jw);const w=f.node().getBBox();Mi(f,b,y,o.useMaxWidth);const x=`${w.x-g} ${w.y-g} ${y} ${b}`;Ze.debug(`viewBox ${x}`),f.attr("viewBox",x);const k=document.querySelectorAll('[id="'+t+'"] .edgeLabel .label');for(const s of k){const e=s.getBBox(),t=document.createElementNS("http://www.w3.org/2000/svg",Nw);t.setAttribute("rx",0),t.setAttribute("ry",0),t.setAttribute("width",e.width),t.setAttribute("height",e.height),s.insertBefore(t,s.firstChild)}},xx={setConf:px,getClasses:fx,draw:wx};var kx=function(){var e=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},t=[1,2],n=[1,5],r=[6,9,11,17,18,20,22,23,24,26],a=[1,15],i=[1,16],o=[1,17],s=[1,18],l=[1,19],c=[1,20],u=[1,24],d=[4,6,9,11,17,18,20,22,23,24,26],h={trace:function(){},yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,title:17,acc_title:18,acc_title_value:19,acc_descr:20,acc_descr_value:21,acc_descr_multiline_value:22,section:23,taskName:24,taskData:25,open_directive:26,type_directive:27,arg_directive:28,close_directive:29,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",17:"title",18:"acc_title",19:"acc_title_value",20:"acc_descr",21:"acc_descr_value",22:"acc_descr_multiline_value",23:"section",24:"taskName",25:"taskData",26:"open_directive",27:"type_directive",28:"arg_directive",29:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,2],[10,2],[10,1],[10,1],[10,2],[10,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(e,t,n,r,a,i,o){var s=i.length-1;switch(a){case 1:return i[s-1];case 3:this.$=[];break;case 4:i[s-1].push(i[s]),this.$=i[s-1];break;case 5:case 6:this.$=i[s];break;case 7:case 8:this.$=[];break;case 11:r.setDiagramTitle(i[s].substr(6)),this.$=i[s].substr(6);break;case 12:this.$=i[s].trim(),r.setAccTitle(this.$);break;case 13:case 14:this.$=i[s].trim(),r.setAccDescription(this.$);break;case 15:r.addSection(i[s].substr(8)),this.$=i[s].substr(8);break;case 16:r.addTask(i[s-1],i[s]),this.$="task";break;case 18:r.parseDirective("%%{","open_directive");break;case 19:r.parseDirective(i[s],"type_directive");break;case 20:i[s]=i[s].trim().replace(/'/g,'"'),r.parseDirective(i[s],"arg_directive");break;case 21:r.parseDirective("}%%","close_directive","journey");break}},table:[{3:1,4:t,7:3,12:4,26:n},{1:[3]},e(r,[2,3],{5:6}),{3:7,4:t,7:3,12:4,26:n},{13:8,27:[1,9]},{27:[2,18]},{6:[1,10],7:21,8:11,9:[1,12],10:13,11:[1,14],12:4,17:a,18:i,20:o,22:s,23:l,24:c,26:n},{1:[2,2]},{14:22,15:[1,23],29:u},e([15,29],[2,19]),e(r,[2,8],{1:[2,1]}),e(r,[2,4]),{7:21,10:25,12:4,17:a,18:i,20:o,22:s,23:l,24:c,26:n},e(r,[2,6]),e(r,[2,7]),e(r,[2,11]),{19:[1,26]},{21:[1,27]},e(r,[2,14]),e(r,[2,15]),{25:[1,28]},e(r,[2,17]),{11:[1,29]},{16:30,28:[1,31]},{11:[2,21]},e(r,[2,5]),e(r,[2,12]),e(r,[2,13]),e(r,[2,16]),e(d,[2,9]),{14:32,29:u},{29:[2,20]},{11:[1,33]},e(d,[2,10])],defaultActions:{5:[2,18],7:[2,2],24:[2,21],31:[2,20]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],r=[],a=[null],i=[],o=this.table,s="",l=0,c=0,u=2,d=1,h=i.slice.call(arguments,1),p=Object.create(this.lexer),f={yy:{}};for(var m in this.yy)Object.prototype.hasOwnProperty.call(this.yy,m)&&(f.yy[m]=this.yy[m]);p.setInput(e,f.yy),f.yy.lexer=p,f.yy.parser=this,"undefined"==typeof p.yylloc&&(p.yylloc={});var g=p.yylloc;i.push(g);var v=p.options&&p.options.ranges;function y(){var e;return e=r.pop()||p.lex()||d,"number"!==typeof e&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}"function"===typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;var b,w,x,k,_,C,E,R,S={};while(1){if(w=n[n.length-1],this.defaultActions[w]?x=this.defaultActions[w]:(null!==b&&"undefined"!=typeof b||(b=y()),x=o[w]&&o[w][b]),"undefined"===typeof x||!x.length||!x[0]){var A="";for(_ in R=[],o[w])this.terminals_[_]&&_>u&&R.push("'"+this.terminals_[_]+"'");A=p.showPosition?"Parse error on line "+(l+1)+":\n"+p.showPosition()+"\nExpecting "+R.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(l+1)+": Unexpected "+(b==d?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(A,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:g,expected:R})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+b);switch(x[0]){case 1:n.push(b),a.push(p.yytext),i.push(p.yylloc),n.push(x[1]),b=null,c=p.yyleng,s=p.yytext,l=p.yylineno,g=p.yylloc;break;case 2:if(C=this.productions_[x[1]][1],S.$=a[a.length-C],S._$={first_line:i[i.length-(C||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(C||1)].first_column,last_column:i[i.length-1].last_column},v&&(S._$.range=[i[i.length-(C||1)].range[0],i[i.length-1].range[1]]),k=this.performAction.apply(S,[s,c,l,f.yy,x[1],a,i].concat(h)),"undefined"!==typeof k)return k;C&&(n=n.slice(0,-1*C*2),a=a.slice(0,-1*C),i=i.slice(0,-1*C)),n.push(this.productions_[x[1]][0]),a.push(S.$),i.push(S._$),E=o[n[n.length-2]][n[n.length-1]],n.push(E);break;case 3:return!0}}return!0}},p=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e;var t=e.match(/(?:\r\n?|\n).*/g);return t?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var a=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,a;if(this.options.backtrack_lexer&&(a={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(a.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var i in a)this[i]=a[i];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var a=this._currentRules(),i=0;i<a.length;i++)if(n=this._input.match(this.rules[a[i]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=i,this.options.backtrack_lexer){if(e=this.test_match(n,a[i]),!1!==e)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,a[r]),!1!==e&&e):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){var e=this.conditionStack.length-1;return e>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions["INITIAL"].rules},topState:function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return this.begin("open_directive"),26;case 1:return this.begin("type_directive"),27;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),29;case 4:return 28;case 5:break;case 6:break;case 7:return 11;case 8:break;case 9:break;case 10:return 4;case 11:return 17;case 12:return this.begin("acc_title"),18;case 13:return this.popState(),"acc_title_value";case 14:return this.begin("acc_descr"),20;case 15:return this.popState(),"acc_descr_value";case 16:this.begin("acc_descr_multiline");break;case 17:this.popState();break;case 18:return"acc_descr_multiline_value";case 19:return 23;case 20:return 24;case 21:return 25;case 22:return 15;case 23:return 6;case 24:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},acc_descr_multiline:{rules:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,14,16,19,20,21,22,23,24],inclusive:!0}}};return e}();function f(){this.yy={}}return h.lexer=p,f.prototype=h,h.Parser=f,new f}();kx.parser=kx;const _x=kx,Cx=e=>null!==e.match(/^\s*journey/);let Ex="";const Rx=[],Sx=[],Ax=[],Tx=function(e,t,n){m_.parseDirective(this,e,t,n)},Mx=function(){Rx.length=0,Sx.length=0,Ex="",Ax.length=0,uo()},Lx=function(e){Ex=e,Rx.push(e)},Ox=function(){return Rx},Ix=function(){let e=Fx();const t=100;let n=0;while(!e&&n<t)e=Fx(),n++;return Sx.push(...Ax),Sx},Nx=function(){const e=[];Sx.forEach((t=>{t.people&&e.push(...t.people)}));const t=new Set(e);return[...t].sort()},Bx=function(e,t){const n=t.substr(1).split(":");let r=0,a=[];1===n.length?(r=Number(n[0]),a=[]):(r=Number(n[0]),a=n[1].split(","));const i=a.map((e=>e.trim())),o={section:Ex,type:Ex,people:i,task:e,score:r};Ax.push(o)},Dx=function(e){const t={section:Ex,type:Ex,description:e,task:e,classes:[]};Sx.push(t)},Fx=function(){const e=function(e){return Ax[e].processed};let t=!0;for(const[n,r]of Ax.entries())e(n),t=t&&r.processed;return t},$x=function(){return Nx()},Px={parseDirective:Tx,getConfig:()=>wi().journey,clear:Mx,setDiagramTitle:go,getDiagramTitle:vo,setAccTitle:ho,getAccTitle:po,setAccDescription:fo,getAccDescription:mo,addSection:Lx,getSections:Ox,getTasks:Ix,addTask:Bx,addTaskOrg:Dx,getActors:$x},zx=function(e,t){const n=e.append("rect");return n.attr("x",t.x),n.attr("y",t.y),n.attr("fill",t.fill),n.attr("stroke",t.stroke),n.attr("width",t.width),n.attr("height",t.height),n.attr("rx",t.rx),n.attr("ry",t.ry),void 0!==t.class&&n.attr("class",t.class),n},Wx=function(e,t){const n=15,r=e.append("circle").attr("cx",t.cx).attr("cy",t.cy).attr("class","face").attr("r",n).attr("stroke-width",2).attr("overflow","visible"),a=e.append("g");function i(e){const r=(0,s.JLW)().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(n/2).outerRadius(n/2.2);e.append("path").attr("class","mouth").attr("d",r).attr("transform","translate("+t.cx+","+(t.cy+2)+")")}function o(e){const r=(0,s.JLW)().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(n/2).outerRadius(n/2.2);e.append("path").attr("class","mouth").attr("d",r).attr("transform","translate("+t.cx+","+(t.cy+7)+")")}function l(e){e.append("line").attr("class","mouth").attr("stroke",2).attr("x1",t.cx-5).attr("y1",t.cy+7).attr("x2",t.cx+5).attr("y2",t.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return a.append("circle").attr("cx",t.cx-n/3).attr("cy",t.cy-n/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),a.append("circle").attr("cx",t.cx+n/3).attr("cy",t.cy-n/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),t.score>3?i(a):t.score<3?o(a):l(a),r},jx=function(e,t){const n=e.append("circle");return n.attr("cx",t.cx),n.attr("cy",t.cy),n.attr("class","actor-"+t.pos),n.attr("fill",t.fill),n.attr("stroke",t.stroke),n.attr("r",t.r),void 0!==n.class&&n.attr("class",n.class),void 0!==t.title&&n.append("title").text(t.title),n},Vx=function(e,t){const n=t.text.replace(/<br\s*\/?>/gi," "),r=e.append("text");r.attr("x",t.x),r.attr("y",t.y),r.attr("class","legend"),r.style("text-anchor",t.anchor),void 0!==t.class&&r.attr("class",t.class);const a=r.append("tspan");return a.attr("x",t.x+2*t.textMargin),a.text(n),r},Ux=function(e,t){function n(e,t,n,r,a){return e+","+t+" "+(e+n)+","+t+" "+(e+n)+","+(t+r-a)+" "+(e+n-1.2*a)+","+(t+r)+" "+e+","+(t+r)}const r=e.append("polygon");r.attr("points",n(t.x,t.y,50,20,7)),r.attr("class","labelBox"),t.y=t.y+t.labelMargin,t.x=t.x+.5*t.labelMargin,Vx(e,t)},Kx=function(e,t,n){const r=e.append("g"),a=Yx();a.x=t.x,a.y=t.y,a.fill=t.fill,a.width=n.width,a.height=n.height,a.class="journey-section section-type-"+t.num,a.rx=3,a.ry=3,zx(r,a),Qx(n)(t.text,r,a.x,a.y,a.width,a.height,{class:"journey-section section-type-"+t.num},n,t.colour)};let Hx=-1;const qx=function(e,t,n){const r=t.x+n.width/2,a=e.append("g");Hx++;const i=450;a.append("line").attr("id","task"+Hx).attr("x1",r).attr("y1",t.y).attr("x2",r).attr("y2",i).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),Wx(a,{cx:r,cy:300+30*(5-t.score),score:t.score});const o=Yx();o.x=t.x,o.y=t.y,o.fill=t.fill,o.width=n.width,o.height=n.height,o.class="task task-type-"+t.num,o.rx=3,o.ry=3,zx(a,o);let s=t.x+14;t.people.forEach((e=>{const n=t.actors[e].color,r={cx:s,cy:t.y,r:7,fill:n,stroke:"#000",title:e,pos:t.actors[e].position};jx(a,r),s+=10})),Qx(n)(t.task,a,o.x,o.y,o.width,o.height,{class:"task"},n,t.colour)},Gx=function(e,t){const n=zx(e,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,class:"rect"});n.lower()},Xx=function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},Yx=function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},Qx=function(){function e(e,t,n,a,i,o,s,l){const c=t.append("text").attr("x",n+i/2).attr("y",a+o/2+5).style("font-color",l).style("text-anchor","middle").text(e);r(c,s)}function t(e,t,n,a,i,o,s,l,c){const{taskFontSize:u,taskFontFamily:d}=l,h=e.split(/<br\s*\/?>/gi);for(let p=0;p<h.length;p++){const e=p*u-u*(h.length-1)/2,l=t.append("text").attr("x",n+i/2).attr("y",a).attr("fill",c).style("text-anchor","middle").style("font-size",u).style("font-family",d);l.append("tspan").attr("x",n+i/2).attr("dy",e).text(h[p]),l.attr("y",a+o/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),r(l,s)}}function n(e,n,a,i,o,s,l,c){const u=n.append("switch"),d=u.append("foreignObject").attr("x",a).attr("y",i).attr("width",o).attr("height",s).attr("position","fixed"),h=d.append("xhtml:div").style("display","table").style("height","100%").style("width","100%");h.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(e),t(e,u,a,i,o,s,l,c),r(h,l)}function r(e,t){for(const n in t)n in t&&e.attr(n,t[n])}return function(r){return"fo"===r.textPlacement?n:"old"===r.textPlacement?e:t}}(),Zx=function(e){e.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},Jx={drawRect:zx,drawCircle:jx,drawSection:Kx,drawText:Vx,drawLabel:Ux,drawTask:qx,drawBackgroundRect:Gx,getTextObj:Xx,getNoteRect:Yx,initGraphics:Zx},ek=function(e){const t=Object.keys(e);t.forEach((function(t){rk[t]=e[t]}))},tk={};function nk(e){const t=wi().journey;let n=60;Object.keys(tk).forEach((r=>{const a=tk[r].color,i={cx:20,cy:n,r:7,fill:a,stroke:"#000",pos:tk[r].position};Jx.drawCircle(e,i);const o={x:40,y:n+7,fill:"#666",text:r,textMargin:5|t.boxTextMargin};Jx.drawText(e,o),n+=20}))}const rk=wi().journey,ak=rk.leftMargin,ik=function(e,t,n,r){const a=wi().journey;r.db.clear(),r.parser.parse(e+"\n");const i=wi().securityLevel;let o;"sandbox"===i&&(o=(0,s.Ltv)("#i"+t));const l="sandbox"===i?(0,s.Ltv)(o.nodes()[0].contentDocument.body):(0,s.Ltv)("body");ok.init();const c=l.select("#"+t);Jx.initGraphics(c);const u=r.db.getTasks(),d=r.db.getDiagramTitle(),h=r.db.getActors();for(const s in tk)delete tk[s];let p=0;h.forEach((e=>{tk[e]={color:a.actorColours[p%a.actorColours.length],position:p},p++})),nk(c),ok.insert(0,0,ak,50*Object.keys(tk).length),ck(c,u,0);const f=ok.getBounds();d&&c.append("text").text(d).attr("x",ak).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);const m=f.stopy-f.starty+2*a.diagramMarginY,g=ak+f.stopx+2*a.diagramMarginX;Mi(c,m,g,a.useMaxWidth),c.append("line").attr("x1",ak).attr("y1",4*a.height).attr("x2",g-ak-4).attr("y2",4*a.height).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");const v=d?70:0;c.attr("viewBox",`${f.startx} -25 ${g} ${m+v}`),c.attr("preserveAspectRatio","xMinYMin meet"),c.attr("height",m+v+25)},ok={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},updateVal:function(e,t,n,r){void 0===e[t]?e[t]=n:e[t]=r(n,e[t])},updateBounds:function(e,t,n,r){const a=wi().journey,i=this;let o=0;function s(s){return function(l){o++;const c=i.sequenceItems.length-o+1;i.updateVal(l,"starty",t-c*a.boxMargin,Math.min),i.updateVal(l,"stopy",r+c*a.boxMargin,Math.max),i.updateVal(ok.data,"startx",e-c*a.boxMargin,Math.min),i.updateVal(ok.data,"stopx",n+c*a.boxMargin,Math.max),"activation"!==s&&(i.updateVal(l,"startx",e-c*a.boxMargin,Math.min),i.updateVal(l,"stopx",n+c*a.boxMargin,Math.max),i.updateVal(ok.data,"starty",t-c*a.boxMargin,Math.min),i.updateVal(ok.data,"stopy",r+c*a.boxMargin,Math.max))}}this.sequenceItems.forEach(s())},insert:function(e,t,n,r){const a=Math.min(e,n),i=Math.max(e,n),o=Math.min(t,r),s=Math.max(t,r);this.updateVal(ok.data,"startx",a,Math.min),this.updateVal(ok.data,"starty",o,Math.min),this.updateVal(ok.data,"stopx",i,Math.max),this.updateVal(ok.data,"stopy",s,Math.max),this.updateBounds(a,o,i,s)},bumpVerticalPos:function(e){this.verticalPos=this.verticalPos+e,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}},sk=rk.sectionFills,lk=rk.sectionColours,ck=function(e,t,n){const r=wi().journey;let a="";const i=2*r.height+r.diagramMarginY,o=n+i;let s=0,l="#CCC",c="black",u=0;for(const[d,h]of t.entries()){if(a!==h.section){l=sk[s%sk.length],u=s%sk.length,c=lk[s%lk.length];const t={x:d*r.taskMargin+d*r.width+ak,y:50,text:h.section,fill:l,num:u,colour:c};Jx.drawSection(e,t,r),a=h.section,s++}const t=h.people.reduce(((e,t)=>(tk[t]&&(e[t]=tk[t]),e)),{});h.x=d*r.taskMargin+d*r.width+ak,h.y=o,h.width=r.diagramMarginX,h.height=r.diagramMarginY,h.colour=c,h.fill=l,h.num=u,h.actors=t,Jx.drawTask(e,h,r),ok.insert(h.x,h.y,h.x+h.width+r.taskMargin,450)}},uk={setConf:ek,draw:ik};let dk={};const hk=function(e){dk={...dk,...e}},pk=(e,t,n)=>{try{Ze.debug("Renering svg for syntax error\n");const e=(0,s.Ltv)("#"+t),r=e.append("g");r.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"),r.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"),r.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"),r.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"),r.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"),r.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"),r.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in graph"),r.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text("mermaid version "+n),e.attr("height",100),e.attr("width",500),e.attr("viewBox","768 0 912 512")}catch(r){Ze.error("Error while rendering info diagram"),Ze.error(ai(r))}},fk={setConf:hk,draw:pk},mk="flowchart-elk",gk=(e,t)=>{var n;return!!(e.match(/^\s*flowchart-elk/)||e.match(/^\s*flowchart|graph/)&&"elk"===(null==(n=null==t?void 0:t.flowchart)?void 0:n.defaultRenderer))},vk=async()=>{const{diagram:e}=await n.e(842).then(n.bind(n,9842));return{id:mk,diagram:e}},yk={id:mk,detector:gk,loader:vk},bk=yk,wk="timeline",xk=e=>null!==e.match(/^\s*timeline/),kk=async()=>{const{diagram:e}=await n.e(661).then(n.bind(n,8661));return{id:wk,diagram:e}},_k={id:wk,detector:xk,loader:kk},Ck=_k,Ek="mindmap",Rk=e=>null!==e.match(/^\s*mindmap/),Sk=async()=>{const{diagram:e}=await n.e(664).then(n.bind(n,8664));return{id:Ek,diagram:e}},Ak={id:Ek,detector:Rk,loader:Sk},Tk=Ak;let Mk=!1;const Lk=()=>{Mk||(Mk=!0,xa(bk,Ck,Tk),Lo("error",{db:{clear:()=>{}},styles:Fi,renderer:fk,parser:{parser:{yy:{}},parse:()=>{}},init:()=>{}},(e=>"error"===e.toLowerCase().trim())),Lo("---",{db:{clear:()=>{}},styles:Fi,renderer:fk,parser:{parser:{yy:{}},parse:()=>{throw new 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 unindented `---` blocks")}},init:()=>null},(e=>e.toLowerCase().trimStart().startsWith("---"))),Lo("c4",{parser:Ds,db:Rl,renderer:cc,styles:to,init:e=>{cc.setConf(e.c4)}},Fs),Lo("class",{parser:dc,db:Xc,renderer:hu,styles:Ii,init:e=>{e.class||(e.class={}),e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute,Xc.clear()}},hc),Lo("classDiagram",{parser:dc,db:Xc,renderer:ih,styles:Ii,init:e=>{e.class||(e.class={}),e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute,Xc.clear()}},pc),Lo("er",{parser:sh,db:wh,renderer:Ph,styles:Bi},lh),Lo("gantt",{parser:Cf,db:Im,renderer:$m,styles:Wi},Ef),Lo("info",{parser:zm,db:qm,renderer:Xm,styles:Vi},Ym),Lo("pie",{parser:Zm,db:cg,renderer:fg,styles:Ki},Jm),Lo("requirement",{parser:gg,db:Wg,renderer:av,styles:qi},vg),Lo("sequence",{parser:ov,db:Xv,renderer:Jy,styles:Xi,init:e=>{if(e.sequence||(e.sequence={}),e.sequence.arrowMarkerAbsolute=e.arrowMarkerAbsolute,"sequenceDiagram"in e)throw new Error("`mermaid config.sequenceDiagram` has been renamed to `config.sequence`. Please update your mermaid config.");Xv.setWrap(e.wrap),Jy.setConf(e.sequence)}},sv),Lo("state",{parser:tb,db:sw,renderer:Iw,styles:Qi,init:e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute,sw.clear()}},nb),Lo("stateDiagram",{parser:tb,db:sw,renderer:xx,styles:Qi,init:e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute,sw.clear()}},rb),Lo("journey",{parser:_x,db:Px,renderer:uk,styles:Ji,init:e=>{uk.setConf(e.journey),Px.clear()}},Cx),Lo("flowchart",{parser:Wh,db:Kp,renderer:kf,styles:Pi,init:e=>{e.flowchart||(e.flowchart={}),e.flowchart.arrowMarkerAbsolute=e.arrowMarkerAbsolute,mf.setConf(e.flowchart),Kp.clear(),Kp.setGen("gen-1")}},jh),Lo("flowchart-v2",{parser:Wh,db:Kp,renderer:kf,styles:Pi,init:e=>{e.flowchart||(e.flowchart={}),e.flowchart.arrowMarkerAbsolute=e.arrowMarkerAbsolute,bi({flowchart:{arrowMarkerAbsolute:e.arrowMarkerAbsolute}}),kf.setConf(e.flowchart),Kp.clear(),Kp.setGen("gen-2")}},Vh),Lo("gitGraph",{parser:No,db:ms,renderer:Os,styles:Ns},Bo))};class Ok{constructor(e,t){var n,r;this.txt=e,this.type="graph",this.detectTypeFailed=!1;const a=wi();this.txt=e;try{this.type=wa(e,a)}catch(s){this.handleError(s,t),this.type="error",this.detectTypeFailed=!0}const i=Oo(this.type);Ze.debug("Type "+this.type),this.db=i.db,null==(r=(n=this.db).clear)||r.call(n),this.renderer=i.renderer,this.parser=i.parser;const o=this.parser.parse.bind(this.parser);this.parser.parse=e=>o(ga(e,this.db)),this.parser.parser.yy=this.db,i.init&&(i.init(a),Ze.info("Initialized diagram "+this.type,a)),this.txt+="\n",this.parse(this.txt,t)}parse(e,t){var n,r;if(this.detectTypeFailed)return!1;try{return e+="\n",null==(r=(n=this.db).clear)||r.call(n),this.parser.parse(e),!0}catch(a){this.handleError(a,t)}return!1}handleError(e,t){if(void 0===t)throw e;ri(e)?t(e.str,e.hash):t(e)}getParser(){return this.parser}getType(){return this.type}}const Ik=(e,t)=>{const n=wa(e,wi());try{Oo(n)}catch(r){const a=_a(n);if(!a)throw new Error(`Diagram ${n} not found.`);return a().then((({diagram:r})=>(Lo(n,r,void 0),new Ok(e,t))))}return new Ok(e,t)},Nk=Ok,Bk="graphics-document document";function Dk(e,t){e.attr("role",Bk),(0,Ye.A)(t)||e.attr("aria-roledescription",t)}function Fk(e,t,n,r){if(void 0!==e.insert&&(t||n)){if(n){const t="chart-desc-"+r;e.attr("aria-describedby",t),e.insert("desc",":first-child").attr("id",t).text(n)}if(t){const n="chart-title-"+r;e.attr("aria-labelledby",n),e.insert("title",":first-child").attr("id",n).text(t)}}}const $k=["graph","flowchart","flowchart-v2","stateDiagram","stateDiagram-v2"],Pk="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",zk="sandbox",Wk="loose",jk="http://www.w3.org/2000/svg",Vk="http://www.w3.org/1999/xlink",Uk="http://www.w3.org/1999/xhtml",Kk="100%",Hk="100%",qk="border:0;margin:0;",Gk="margin:0",Xk="allow-top-navigation-by-user-activation allow-popups",Yk='The "iframe" tag is not supported by your browser.',Qk=["foreignobject"],Zk=["dominant-baseline"];function Jk(e,t){Lk();const n=new Nk(e,t);return n.parse(e,t)}async function e_(e,t){Lk();const n=await Ik(e,t);return n.parse(e,t)}const t_=function(e){let t=e;return t=t.replace(/style.*:\S*#.*;/g,(function(e){return e.substring(0,e.length-1)})),t=t.replace(/classDef.*:\S*#.*;/g,(function(e){return e.substring(0,e.length-1)})),t=t.replace(/#\w+;/g,(function(e){const t=e.substring(1,e.length-1),n=/^\+?\d+$/.test(t);return n?"fl°°"+t+"¶ß":"fl°"+t+"¶ß"})),t},n_=function(e){let t=e;return t=t.replace(/fl°°/g,"&#"),t=t.replace(/fl°/g,"&"),t=t.replace(/¶ß/g,";"),t},r_=(e,t,n=[])=>`\n.${e} ${t} { ${n.join(" !important; ")} !important; }`,a_=(e,t,n={})=>{var r;let a="";if(void 0!==e.themeCSS&&(a+=`\n${e.themeCSS}`),void 0!==e.fontFamily&&(a+=`\n:root { --mermaid-font-family: ${e.fontFamily}}`),void 0!==e.altFontFamily&&(a+=`\n:root { --mermaid-alt-font-family: ${e.altFontFamily}}`),!(0,Ye.A)(n)&&$k.includes(t)){const t=e.htmlLabels||(null==(r=e.flowchart)?void 0:r.htmlLabels),i=["> *","span"],o=["rect","polygon","ellipse","circle","path"],s=t?i:o;for(const e in n){const t=n[e];(0,Ye.A)(t.styles)||s.forEach((e=>{a+=r_(t.id,e,t.styles)})),(0,Ye.A)(t.textStyles)||(a+=r_(t.id,"tspan",t.textStyles))}}return a},i_=(e,t,n,r)=>{const a=a_(e,t,n),i=io(t,a,e.themeVariables);return U(fe(`${r}{${i}}`),K)},o_=(e="",t,n)=>{let r=e;return n||t||(r=r.replace(/marker-end="url\(.*?#/g,'marker-end="url(#')),r=n_(r),r=r.replace(/<br>/g,"<br/>"),r},s_=(e="",t)=>{const n=t?t.viewBox.baseVal.height+"px":Hk,r=btoa('<body style="'+Gk+'">'+e+"</body>");return`<iframe style="width:${Kk};height:${n};${qk}" src="data:text/html;base64,${r}" sandbox="${Xk}">\n ${Yk}\n</iframe>`},l_=(e,t,n,r,a)=>{const i=e.append("div");i.attr("id",n),r&&i.attr("style",r);const o=i.append("svg").attr("id",t).attr("width","100%").attr("xmlns",jk);return a&&o.attr("xmlns:xlink",a),o.append("g"),e};function c_(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}const u_=(e,t,n,r)=>{var a,i,o;null==(a=e.getElementById(t))||a.remove(),null==(i=e.getElementById(n))||i.remove(),null==(o=e.getElementById(r))||o.remove()},d_=function(e,t,n,r){var a,i,o,l;Lk(),_i();const c=si.detectInit(t);c&&(ti(c),ki(c));const d=wi();Ze.debug(d),t.length>((null==d?void 0:d.maxTextSize)??5e4)&&(t=Pk),t=t.replace(/\r\n?/g,"\n");const h="#"+e,p="i"+e,f="#"+p,m="d"+e,g="#"+m;let v=(0,s.Ltv)("body");const y=d.securityLevel===zk,b=d.securityLevel===Wk,w=d.fontFamily;if(void 0!==r){if(r&&(r.innerHTML=""),y){const e=c_((0,s.Ltv)(r),p);v=(0,s.Ltv)(e.nodes()[0].contentDocument.body),v.node().style.margin=0}else v=(0,s.Ltv)(r);l_(v,e,m,`font-family: ${w}`,Vk)}else{if(u_(document,e,m,p),y){const e=c_((0,s.Ltv)("body"),p);v=(0,s.Ltv)(e.nodes()[0].contentDocument.body),v.node().style.margin=0}else v=(0,s.Ltv)("body");l_(v,e,m)}let x,k;t=t_(t);try{if(x=Ik(t),"then"in x)throw new Error("Diagram is a promise. Use renderAsync.")}catch(D){x=new Nk("error"),k=D}const _=v.select(g).node(),C=x.type,E=_.firstChild,R=E.firstChild,S=$k.includes(C)?x.renderer.getClasses(t,x):{},A=i_(d,C,S,h),T=document.createElement("style");T.innerHTML=A,E.insertBefore(T,R);try{x.renderer.draw(t,e,li,x)}catch(F){throw fk.draw(t,e,li),F}const M=v.select(`${g} svg`),L=null==(i=(a=x.db).getAccTitle)?void 0:i.call(a),O=null==(l=(o=x.db).getAccDescription)?void 0:l.call(o);f_(C,M,L,O),v.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",Uk);let I=v.select(g).node().innerHTML;if(Ze.debug("config.arrowMarkerAbsolute",d.arrowMarkerAbsolute),I=o_(I,y,ht(d.arrowMarkerAbsolute)),y){const e=v.select(g+" svg").node();I=s_(I,e)}else b||(I=u().sanitize(I,{ADD_TAGS:Qk,ADD_ATTR:Zk}));if(void 0!==n)switch(C){case"flowchart":case"flowchart-v2":n(I,Kp.bindFunctions);break;case"gantt":n(I,Im.bindFunctions);break;case"class":case"classDiagram":n(I,Xc.bindFunctions);break;default:n(I)}else Ze.debug("CB = undefined!");Zv();const N=y?f:g,B=(0,s.Ltv)(N).node();if(B&&"remove"in B&&B.remove(),k)throw k;return I},h_=async function(e,t,n,r){var a,i,o,l;Lk(),_i();const c=si.detectInit(t);c&&(ti(c),ki(c));const d=wi();Ze.debug(d),t.length>((null==d?void 0:d.maxTextSize)??5e4)&&(t=Pk),t=t.replace(/\r\n?/g,"\n");const h="#"+e,p="i"+e,f="#"+p,m="d"+e,g="#"+m;let v=(0,s.Ltv)("body");const y=d.securityLevel===zk,b=d.securityLevel===Wk,w=d.fontFamily;if(void 0!==r){if(r&&(r.innerHTML=""),y){const e=c_((0,s.Ltv)(r),p);v=(0,s.Ltv)(e.nodes()[0].contentDocument.body),v.node().style.margin=0}else v=(0,s.Ltv)(r);l_(v,e,m,`font-family: ${w}`,Vk)}else{if(u_(document,e,m,p),y){const e=c_((0,s.Ltv)("body"),p);v=(0,s.Ltv)(e.nodes()[0].contentDocument.body),v.node().style.margin=0}else v=(0,s.Ltv)("body");l_(v,e,m)}let x,k;t=t_(t);try{x=await Ik(t)}catch(D){x=new Nk("error"),k=D}const _=v.select(g).node(),C=x.type,E=_.firstChild,R=E.firstChild,S=$k.includes(C)?x.renderer.getClasses(t,x):{},A=i_(d,C,S,h),T=document.createElement("style");T.innerHTML=A,E.insertBefore(T,R);try{await x.renderer.draw(t,e,li,x)}catch(F){throw fk.draw(t,e,li),F}const M=v.select(`${g} svg`),L=null==(i=(a=x.db).getAccTitle)?void 0:i.call(a),O=null==(l=(o=x.db).getAccDescription)?void 0:l.call(o);f_(C,M,L,O),v.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",Uk);let I=v.select(g).node().innerHTML;if(Ze.debug("config.arrowMarkerAbsolute",d.arrowMarkerAbsolute),I=o_(I,y,ht(d.arrowMarkerAbsolute)),y){const e=v.select(g+" svg").node();I=s_(I,e)}else b||(I=u().sanitize(I,{ADD_TAGS:Qk,ADD_ATTR:Zk}));if(void 0!==n)switch(C){case"flowchart":case"flowchart-v2":n(I,Kp.bindFunctions);break;case"gantt":n(I,Im.bindFunctions);break;case"class":case"classDiagram":n(I,Xc.bindFunctions);break;default:n(I)}else Ze.debug("CB = undefined!");Zv();const N=y?f:g,B=(0,s.Ltv)(N).node();if(B&&"remove"in B&&B.remove(),k)throw k;return I};function p_(e={}){var t;(null==e?void 0:e.fontFamily)&&!(null==(t=e.themeVariables)?void 0:t.fontFamily)&&(e.themeVariables={fontFamily:e.fontFamily}),gi(e),(null==e?void 0:e.theme)&&e.theme in At?e.themeVariables=At[e.theme].getThemeVariables(e.themeVariables):e&&(e.themeVariables=At.default.getThemeVariables(e.themeVariables));const n="object"===typeof e?mi(e):yi();Je(n.logLevel),Lk()}function f_(e,t,n,r){Dk(t,e),Fk(t,n,r,t.attr("id"))}const m_=Object.freeze({render:d_,renderAsync:h_,parse:Jk,parseAsync:e_,parseDirective:xo,initialize:p_,getConfig:wi,setConfig:bi,getSiteConfig:yi,updateSiteConfig:vi,reset:()=>{_i()},globalReset:()=>{_i(ci)},defaultConfig:ci});Je(wi().logLevel),_i(wi());const g_=async function(e,t,n){try{await w_(e,t,n)}catch(r){Ze.warn("Syntax Error rendering"),ri(r)&&Ze.warn(r.str),L_.parseError&&L_.parseError(r)}},v_=(e,t,n)=>{Ze.warn(e),ri(e)?(n&&n(e.str,e.hash),t.push({...e,message:e.str,error:e})):(n&&n(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},y_=function(e,t,n){const a=m_.getConfig();let i;if(e&&(L_.sequenceConfig=e),Ze.debug((n?"":"No ")+"Callback function found"),void 0===t)i=document.querySelectorAll(".mermaid");else if("string"===typeof t)i=document.querySelectorAll(t);else if(t instanceof HTMLElement)i=[t];else{if(!(t instanceof NodeList))throw new Error("Invalid argument nodes for mermaid.init");i=t}Ze.debug(`Found ${i.length} diagrams`),void 0!==(null==e?void 0:e.startOnLoad)&&(Ze.debug("Start On Load: "+(null==e?void 0:e.startOnLoad)),m_.updateSiteConfig({startOnLoad:null==e?void 0:e.startOnLoad}));const o=new si.initIdGenerator(a.deterministicIds,a.deterministicIDSeed);let s;const l=[];for(const u of Array.from(i)){/*! Check if previously processed */if(Ze.info("Rendering diagram: "+u.id),u.getAttribute("data-processed"))continue;u.setAttribute("data-processed","true");const e=`mermaid-${o.next()}`;s=u.innerHTML,s=(0,r.A)(si.entityDecode(s)).trim().replace(/<br\s*\/?>/gi,"<br/>");const t=si.detectInit(s);t&&Ze.debug("Detected early reinit: ",t);try{m_.render(e,s,((t,r)=>{u.innerHTML=t,void 0!==n&&n(e),r&&r(u)}),u)}catch(c){v_(c,l,L_.parseError)}}if(l.length>0)throw l[0]},b_=async(...e)=>{Ze.debug(`Loading ${e.length} external diagrams`);const t=await Promise.allSettled(e.map((async({id:e,detector:t,loader:n})=>{const{diagram:r}=await n();Lo(e,r,t)}))),n=t.filter((e=>"rejected"===e.status));if(n.length>0){Ze.error(`Failed to load ${n.length} external diagrams`);for(const e of n)Ze.error(e);throw new Error(`Failed to load ${n.length} external diagrams`)}},w_=async function(e,t,n){const a=m_.getConfig();let i;if(e&&(L_.sequenceConfig=e),Ze.debug((n?"":"No ")+"Callback function found"),void 0===t)i=document.querySelectorAll(".mermaid");else if("string"===typeof t)i=document.querySelectorAll(t);else if(t instanceof HTMLElement)i=[t];else{if(!(t instanceof NodeList))throw new Error("Invalid argument nodes for mermaid.init");i=t}Ze.debug(`Found ${i.length} diagrams`),void 0!==(null==e?void 0:e.startOnLoad)&&(Ze.debug("Start On Load: "+(null==e?void 0:e.startOnLoad)),m_.updateSiteConfig({startOnLoad:null==e?void 0:e.startOnLoad}));const o=new si.initIdGenerator(a.deterministicIds,a.deterministicIDSeed);let s;const l=[];for(const u of Array.from(i)){/*! Check if previously processed */if(Ze.info("Rendering diagram: "+u.id),u.getAttribute("data-processed"))continue;u.setAttribute("data-processed","true");const e=`mermaid-${o.next()}`;s=u.innerHTML,s=(0,r.A)(si.entityDecode(s)).trim().replace(/<br\s*\/?>/gi,"<br/>");const t=si.detectInit(s);t&&Ze.debug("Detected early reinit: ",t);try{await m_.renderAsync(e,s,((t,r)=>{u.innerHTML=t,void 0!==n&&n(e),r&&r(u)}),u)}catch(c){v_(c,l,L_.parseError)}}if(l.length>0)throw l[0]},x_=function(e){m_.initialize(e)},k_=async(e,{lazyLoad:t=!0}={})=>{t?xa(...e):await b_(...e)},__=function(){if(L_.startOnLoad){const{startOnLoad:e}=m_.getConfig();e&&L_.init().catch((e=>Ze.error("Mermaid failed to initialize",e)))}};"undefined"!==typeof document&&
/*!
* Wait for document loaded before starting the execution
*/
window.addEventListener("load",__,!1);const C_=function(e){L_.parseError=e},E_=e=>m_.parse(e,L_.parseError),R_=[];let S_=!1;const A_=async()=>{if(!S_){S_=!0;while(R_.length>0){const t=R_.shift();if(t)try{await t()}catch(e){Ze.error("Error executing queue",e)}}S_=!1}},T_=e=>new Promise(((t,n)=>{const r=()=>new Promise(((r,a)=>{m_.parseAsync(e,L_.parseError).then((e=>{r(e),t(e)}),(e=>{Ze.error("Error parsing",e),a(e),n(e)}))}));R_.push(r),A_().catch(n)})),M_=(e,t,n,r)=>new Promise(((a,i)=>{const o=()=>new Promise(((o,s)=>{m_.renderAsync(e,t,n,r).then((e=>{o(e),a(e)}),(e=>{Ze.error("Error parsing",e),s(e),i(e)}))}));R_.push(o),A_().catch(i)})),L_={startOnLoad:!0,diagrams:{},mermaidAPI:m_,parse:E_,parseAsync:T_,render:m_.render,renderAsync:M_,init:g_,initThrowsErrors:y_,initThrowsErrorsAsync:w_,registerExternalDiagrams:k_,initialize:x_,parseError:void 0,contentLoaded:__,setParseErrorHandler:C_}},560:function(e){"use strict";const t={svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/XML/1998/namespace"};e.exports=(e,n)=>["svg",{xmlns:t.svg,"xmlns:xlink":t.xlink,width:e,height:n,viewBox:"0 0 "+e+" "+n}]},5794:function(e,t,n){"use strict";const r=n(6177),a=n(9727),i=n(5274),o=n(1195),s=n(1256),l=n(560);t.renderer=o,t.parse=r,t.stringify=a,t.traverse=i,t.tt=s,t.gen={svg:l},t.p=r,t.s=a,t.t=i},6177:function(e,t,n){"use strict";n(4114);const r=n(2926).parser;function a(e,t){const n=[],a=[];let i=n,o=!0,s=!0;t&&void 0!==t.strict&&(s=t.strict),void 0!==t&&void 0!==t.trim&&(o=t.trim);const l=r(s);return l.ontext=function(e){!1!==o&&""===e.trim()||i.push(e)},l.onopentag=function(e){const t=[e.name,e.attributes];a.push(i),i.push(t),i=t},l.onclosetag=function(){i=a.pop()},l.oncdata=function(e){!1!==o&&""===e.trim()||i.push("<![CDATA["+e+"]]>")},l.write(e).close(),n[0]}e.exports=a},1195:function(e,t,n){"use strict";const r=n(9727),a=e=>{const t="string"===typeof e?document.getElementById(e):e;return e=>{let n;try{n=r(e),t.innerHTML=n}catch(a){console.log(e)}}};e.exports=a},9727:function(e,t,n){"use strict";n(8992),n(4520),n(1454),n(7550);const r=e=>e&&"[object Object]"===Object.prototype.toString.call(e);function a(e){if(!(e>0))return e=>e;var t=" ".repeat(e);return e=>{if("string"!==typeof e)return e;const n=e.split("\n");return 1===n.length?t+e:n.map((e=>""===e.trim()?e:t+e)).join("\n")}}const i=e=>e.split("\n").filter((e=>""!==e.trim())).join("\n");function o(e,t){const n=t>0?"\n":"",o=a(t);function s(e){let t,a="",l=!0;const c=e.some(((e,i,o)=>{if(0===i)return t="<"+e,1===o.length;if(1===i){if(r(e))return Object.keys(e).map((n=>{let r=e[n];Array.isArray(r)&&(r=r.join(" ")),t+=" "+n+'="'+r+'"'})),2===o.length||void(t+=">");t+=">"}switch(typeof e){case"string":case"number":case"boolean":case"undefined":return void(a+=e+n)}l=!1,a+=s(e)}));return c?t+"/>"+n:l?t+i(a)+"</"+e[0]+">"+n:t+n+o(a)+"</"+e[0]+">"+n}return s(e)}e.exports=o},5274:function(e,t,n){"use strict";function r(){this._skip=!0}function a(){this._remove=!0}function i(e){this._name=e}function o(e){this._replace=e}function s(e,t){const n=function(){},s=t&&t.enter||n,l=t&&t.leave||n;function c(e,t){if(void 0===e)return;if(null===e)return;if(!0===e)return;if(!1===e)return;const n={attr:{},full:e},u={name:i,skip:r,remove:a,replace:o,_name:void 0,_skip:!1,_remove:!1,_replace:void 0};let d=!0;switch(Object.prototype.toString.call(e)){case"[object String]":case"[object Number]":return;case"[object Array]":if(e.some((function(e,t){return 0===t?(n.name=e,!1):1===t?("[object Object]"===Object.prototype.toString.call(e)&&(d=!1,n.attr=e),!0):void 0})),s.call(u,n,t),u._name&&(e[0]=u._name),u._replace)return u._replace;if(u._remove)return null;if(!u._skip){let r=0,a=e.length;while(r<a){if(r>1||1===r&&d){const t=c(e[r],n);if(null===t){e.splice(r,1),a-=1;continue}t&&(e[r]=t)}r+=1}if(l.call(u,n,t),u._name&&(e[0]=u._name),u._replace)return u._replace;if(u._remove)return null}}}c(e,void 0)}n(8992),n(7550),e.exports=s},1256:function(e){"use strict";e.exports=(e,t,n)=>{let r={};if(e||t){const n=[e||0].concat(t?[t]:[]);r={transform:"translate("+n.join(",")+")"}}return n="object"===typeof n?n:{},Object.assign(r,n)}},452:function(e,t,n){
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
var r=n(712),a=r.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return a(e,t,n)}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?e.exports=r:(i(r,t),t.Buffer=o),o.prototype=Object.create(a.prototype),i(a,o),o.from=function(e,t,n){if("number"===typeof e)throw new TypeError("Argument must not be a number");return a(e,t,n)},o.alloc=function(e,t,n){if("number"!==typeof e)throw new TypeError("Argument must be a number");var r=a(e);return void 0!==t?"string"===typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},o.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return a(e)},o.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},2926:function(e,t,n){n(4114),n(8992),n(4520),n(3949),function(e){e.parser=function(e,t){return new a(e,t)},e.SAXParser=a,e.SAXStream=u,e.createStream=c,e.MAX_BUFFER_LENGTH=65536;var t,r=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function a(t,n){if(!(this instanceof a))return new a(t,n);var r=this;o(r),r.q=r.c="",r.bufferCheckPosition=e.MAX_BUFFER_LENGTH,r.opt=n||{},r.opt.lowercase=r.opt.lowercase||r.opt.lowercasetags,r.looseCase=r.opt.lowercase?"toLowerCase":"toUpperCase",r.tags=[],r.closed=r.closedRoot=r.sawRoot=!1,r.tag=r.error=null,r.strict=!!t,r.noscript=!(!t&&!r.opt.noscript),r.state=E.BEGIN,r.strictEntities=r.opt.strictEntities,r.ENTITIES=r.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),r.attribList=[],r.opt.xmlns&&(r.ns=Object.create(m)),void 0===r.opt.unquotedAttributeValues&&(r.opt.unquotedAttributeValues=!t),r.trackPosition=!1!==r.opt.position,r.trackPosition&&(r.position=r.line=r.column=0),S(r,"onready")}function i(t){for(var n=Math.max(e.MAX_BUFFER_LENGTH,10),a=0,i=0,o=r.length;i<o;i++){var s=t[r[i]].length;if(s>n)switch(r[i]){case"textNode":T(t);break;case"cdata":A(t,"oncdata",t.cdata),t.cdata="";break;case"script":A(t,"onscript",t.script),t.script="";break;default:L(t,"Max buffer length exceeded: "+r[i])}a=Math.max(a,s)}var l=e.MAX_BUFFER_LENGTH-a;t.bufferCheckPosition=l+t.position}function o(e){for(var t=0,n=r.length;t<n;t++)e[r[t]]=""}function s(e){T(e),""!==e.cdata&&(A(e,"oncdata",e.cdata),e.cdata=""),""!==e.script&&(A(e,"onscript",e.script),e.script="")}e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(e){function t(){}t.prototype=e;var n=new t;return n}),Object.keys||(Object.keys=function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}),a.prototype={end:function(){O(this)},write:j,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){s(this)}};try{t=Object(function(){var e=new Error("Cannot find module 'stream'");throw e.code="MODULE_NOT_FOUND",e}())}catch(V){t=function(){}}t||(t=function(){});var l=e.EVENTS.filter((function(e){return"error"!==e&&"end"!==e}));function c(e,t){return new u(e,t)}function u(e,n){if(!(this instanceof u))return new u(e,n);t.apply(this),this._parser=new a(e,n),this.writable=!0,this.readable=!0;var r=this;this._parser.onend=function(){r.emit("end")},this._parser.onerror=function(e){r.emit("error",e),r._parser.error=null},this._decoder=null,l.forEach((function(e){Object.defineProperty(r,"on"+e,{get:function(){return r._parser["on"+e]},set:function(t){if(!t)return r.removeAllListeners(e),r._parser["on"+e]=t,t;r.on(e,t)},enumerable:!0,configurable:!1})}))}u.prototype=Object.create(t.prototype,{constructor:{value:u}}),u.prototype.write=function(e){if("function"===typeof Buffer&&"function"===typeof Buffer.isBuffer&&Buffer.isBuffer(e)){if(!this._decoder){var t=n(3128).I;this._decoder=new t("utf8")}e=this._decoder.write(e)}return this._parser.write(e.toString()),this.emit("data",e),!0},u.prototype.end=function(e){return e&&e.length&&this.write(e),this._parser.end(),!0},u.prototype.on=function(e,n){var r=this;return r._parser["on"+e]||-1===l.indexOf(e)||(r._parser["on"+e]=function(){var t=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);t.splice(0,0,e),r.emit.apply(r,t)}),t.prototype.on.call(r,e,n)};var d="[CDATA[",h="DOCTYPE",p="http://www.w3.org/XML/1998/namespace",f="http://www.w3.org/2000/xmlns/",m={xml:p,xmlns:f},g=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,v=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,y=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,b=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function w(e){return" "===e||"\n"===e||"\r"===e||"\t"===e}function x(e){return'"'===e||"'"===e}function k(e){return">"===e||w(e)}function _(e,t){return e.test(t)}function C(e,t){return!_(e,t)}var E=0;for(var R in e.STATE={BEGIN:E++,BEGIN_WHITESPACE:E++,TEXT:E++,TEXT_ENTITY:E++,OPEN_WAKA:E++,SGML_DECL:E++,SGML_DECL_QUOTED:E++,DOCTYPE:E++,DOCTYPE_QUOTED:E++,DOCTYPE_DTD:E++,DOCTYPE_DTD_QUOTED:E++,COMMENT_STARTING:E++,COMMENT:E++,COMMENT_ENDING:E++,COMMENT_ENDED:E++,CDATA:E++,CDATA_ENDING:E++,CDATA_ENDING_2:E++,PROC_INST:E++,PROC_INST_BODY:E++,PROC_INST_ENDING:E++,OPEN_TAG:E++,OPEN_TAG_SLASH:E++,ATTRIB:E++,ATTRIB_NAME:E++,ATTRIB_NAME_SAW_WHITE:E++,ATTRIB_VALUE:E++,ATTRIB_VALUE_QUOTED:E++,ATTRIB_VALUE_CLOSED:E++,ATTRIB_VALUE_UNQUOTED:E++,ATTRIB_VALUE_ENTITY_Q:E++,ATTRIB_VALUE_ENTITY_U:E++,CLOSE_TAG:E++,CLOSE_TAG_SAW_WHITE:E++,SCRIPT:E++,SCRIPT_ENDING:E++},e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(e.ENTITIES).forEach((function(t){var n=e.ENTITIES[t],r="number"===typeof n?String.fromCharCode(n):n;e.ENTITIES[t]=r})),e.STATE)e.STATE[e.STATE[R]]=R;function S(e,t,n){e[t]&&e[t](n)}function A(e,t,n){e.textNode&&T(e),S(e,t,n)}function T(e){e.textNode=M(e.opt,e.textNode),e.textNode&&S(e,"ontext",e.textNode),e.textNode=""}function M(e,t){return e.trim&&(t=t.trim()),e.normalize&&(t=t.replace(/\s+/g," ")),t}function L(e,t){return T(e),e.trackPosition&&(t+="\nLine: "+e.line+"\nColumn: "+e.column+"\nChar: "+e.c),t=new Error(t),e.error=t,S(e,"onerror",t),e}function O(e){return e.sawRoot&&!e.closedRoot&&I(e,"Unclosed root tag"),e.state!==E.BEGIN&&e.state!==E.BEGIN_WHITESPACE&&e.state!==E.TEXT&&L(e,"Unexpected end"),T(e),e.c="",e.closed=!0,S(e,"onend"),a.call(e,e.strict,e.opt),e}function I(e,t){if("object"!==typeof e||!(e instanceof a))throw new Error("bad call to strictFail");e.strict&&L(e,t)}function N(e){e.strict||(e.tagName=e.tagName[e.looseCase]());var t=e.tags[e.tags.length-1]||e,n=e.tag={name:e.tagName,attributes:{}};e.opt.xmlns&&(n.ns=t.ns),e.attribList.length=0,A(e,"onopentagstart",n)}function B(e,t){var n=e.indexOf(":"),r=n<0?["",e]:e.split(":"),a=r[0],i=r[1];return t&&"xmlns"===e&&(a="xmlns",i=""),{prefix:a,local:i}}function D(e){if(e.strict||(e.attribName=e.attribName[e.looseCase]()),-1!==e.attribList.indexOf(e.attribName)||e.tag.attributes.hasOwnProperty(e.attribName))e.attribName=e.attribValue="";else{if(e.opt.xmlns){var t=B(e.attribName,!0),n=t.prefix,r=t.local;if("xmlns"===n)if("xml"===r&&e.attribValue!==p)I(e,"xml: prefix must be bound to "+p+"\nActual: "+e.attribValue);else if("xmlns"===r&&e.attribValue!==f)I(e,"xmlns: prefix must be bound to "+f+"\nActual: "+e.attribValue);else{var a=e.tag,i=e.tags[e.tags.length-1]||e;a.ns===i.ns&&(a.ns=Object.create(i.ns)),a.ns[r]=e.attribValue}e.attribList.push([e.attribName,e.attribValue])}else e.tag.attributes[e.attribName]=e.attribValue,A(e,"onattribute",{name:e.attribName,value:e.attribValue});e.attribName=e.attribValue=""}}function F(e,t){if(e.opt.xmlns){var n=e.tag,r=B(e.tagName);n.prefix=r.prefix,n.local=r.local,n.uri=n.ns[r.prefix]||"",n.prefix&&!n.uri&&(I(e,"Unbound namespace prefix: "+JSON.stringify(e.tagName)),n.uri=r.prefix);var a=e.tags[e.tags.length-1]||e;n.ns&&a.ns!==n.ns&&Object.keys(n.ns).forEach((function(t){A(e,"onopennamespace",{prefix:t,uri:n.ns[t]})}));for(var i=0,o=e.attribList.length;i<o;i++){var s=e.attribList[i],l=s[0],c=s[1],u=B(l,!0),d=u.prefix,h=u.local,p=""===d?"":n.ns[d]||"",f={name:l,value:c,prefix:d,local:h,uri:p};d&&"xmlns"!==d&&!p&&(I(e,"Unbound namespace prefix: "+JSON.stringify(d)),f.uri=d),e.tag.attributes[l]=f,A(e,"onattribute",f)}e.attribList.length=0}e.tag.isSelfClosing=!!t,e.sawRoot=!0,e.tags.push(e.tag),A(e,"onopentag",e.tag),t||(e.noscript||"script"!==e.tagName.toLowerCase()?e.state=E.TEXT:e.state=E.SCRIPT,e.tag=null,e.tagName=""),e.attribName=e.attribValue="",e.attribList.length=0}function $(e){if(!e.tagName)return I(e,"Weird empty close tag."),e.textNode+="</>",void(e.state=E.TEXT);if(e.script){if("script"!==e.tagName)return e.script+="</"+e.tagName+">",e.tagName="",void(e.state=E.SCRIPT);A(e,"onscript",e.script),e.script=""}var t=e.tags.length,n=e.tagName;e.strict||(n=n[e.looseCase]());var r=n;while(t--){var a=e.tags[t];if(a.name===r)break;I(e,"Unexpected close tag")}if(t<0)return I(e,"Unmatched closing tag: "+e.tagName),e.textNode+="</"+e.tagName+">",void(e.state=E.TEXT);e.tagName=n;var i=e.tags.length;while(i-- >t){var o=e.tag=e.tags.pop();e.tagName=e.tag.name,A(e,"onclosetag",e.tagName);var s={};for(var l in o.ns)s[l]=o.ns[l];var c=e.tags[e.tags.length-1]||e;e.opt.xmlns&&o.ns!==c.ns&&Object.keys(o.ns).forEach((function(t){var n=o.ns[t];A(e,"onclosenamespace",{prefix:t,uri:n})}))}0===t&&(e.closedRoot=!0),e.tagName=e.attribValue=e.attribName="",e.attribList.length=0,e.state=E.TEXT}function P(e){var t,n=e.entity,r=n.toLowerCase(),a="";return e.ENTITIES[n]?e.ENTITIES[n]:e.ENTITIES[r]?e.ENTITIES[r]:(n=r,"#"===n.charAt(0)&&("x"===n.charAt(1)?(n=n.slice(2),t=parseInt(n,16),a=t.toString(16)):(n=n.slice(1),t=parseInt(n,10),a=t.toString(10))),n=n.replace(/^0+/,""),isNaN(t)||a.toLowerCase()!==n?(I(e,"Invalid character entity"),"&"+e.entity+";"):String.fromCodePoint(t))}function z(e,t){"<"===t?(e.state=E.OPEN_WAKA,e.startTagPosition=e.position):w(t)||(I(e,"Non-whitespace before first tag."),e.textNode=t,e.state=E.TEXT)}function W(e,t){var n="";return t<e.length&&(n=e.charAt(t)),n}function j(t){var n=this;if(this.error)throw this.error;if(n.closed)return L(n,"Cannot write after close. Assign an onready handler.");if(null===t)return O(n);"object"===typeof t&&(t=t.toString());var r=0,a="";while(1){if(a=W(t,r++),n.c=a,!a)break;switch(n.trackPosition&&(n.position++,"\n"===a?(n.line++,n.column=0):n.column++),n.state){case E.BEGIN:if(n.state=E.BEGIN_WHITESPACE,"\ufeff"===a)continue;z(n,a);continue;case E.BEGIN_WHITESPACE:z(n,a);continue;case E.TEXT:if(n.sawRoot&&!n.closedRoot){var o=r-1;while(a&&"<"!==a&&"&"!==a)a=W(t,r++),a&&n.trackPosition&&(n.position++,"\n"===a?(n.line++,n.column=0):n.column++);n.textNode+=t.substring(o,r-1)}"<"!==a||n.sawRoot&&n.closedRoot&&!n.strict?(w(a)||n.sawRoot&&!n.closedRoot||I(n,"Text data outside of root node."),"&"===a?n.state=E.TEXT_ENTITY:n.textNode+=a):(n.state=E.OPEN_WAKA,n.startTagPosition=n.position);continue;case E.SCRIPT:"<"===a?n.state=E.SCRIPT_ENDING:n.script+=a;continue;case E.SCRIPT_ENDING:"/"===a?n.state=E.CLOSE_TAG:(n.script+="<"+a,n.state=E.SCRIPT);continue;case E.OPEN_WAKA:if("!"===a)n.state=E.SGML_DECL,n.sgmlDecl="";else if(w(a));else if(_(g,a))n.state=E.OPEN_TAG,n.tagName=a;else if("/"===a)n.state=E.CLOSE_TAG,n.tagName="";else if("?"===a)n.state=E.PROC_INST,n.procInstName=n.procInstBody="";else{if(I(n,"Unencoded <"),n.startTagPosition+1<n.position){var s=n.position-n.startTagPosition;a=new Array(s).join(" ")+a}n.textNode+="<"+a,n.state=E.TEXT}continue;case E.SGML_DECL:if(n.sgmlDecl+a==="--"){n.state=E.COMMENT,n.comment="",n.sgmlDecl="";continue}n.doctype&&!0!==n.doctype&&n.sgmlDecl?(n.state=E.DOCTYPE_DTD,n.doctype+="<!"+n.sgmlDecl+a,n.sgmlDecl=""):(n.sgmlDecl+a).toUpperCase()===d?(A(n,"onopencdata"),n.state=E.CDATA,n.sgmlDecl="",n.cdata=""):(n.sgmlDecl+a).toUpperCase()===h?(n.state=E.DOCTYPE,(n.doctype||n.sawRoot)&&I(n,"Inappropriately located doctype declaration"),n.doctype="",n.sgmlDecl=""):">"===a?(A(n,"onsgmldeclaration",n.sgmlDecl),n.sgmlDecl="",n.state=E.TEXT):x(a)?(n.state=E.SGML_DECL_QUOTED,n.sgmlDecl+=a):n.sgmlDecl+=a;continue;case E.SGML_DECL_QUOTED:a===n.q&&(n.state=E.SGML_DECL,n.q=""),n.sgmlDecl+=a;continue;case E.DOCTYPE:">"===a?(n.state=E.TEXT,A(n,"ondoctype",n.doctype),n.doctype=!0):(n.doctype+=a,"["===a?n.state=E.DOCTYPE_DTD:x(a)&&(n.state=E.DOCTYPE_QUOTED,n.q=a));continue;case E.DOCTYPE_QUOTED:n.doctype+=a,a===n.q&&(n.q="",n.state=E.DOCTYPE);continue;case E.DOCTYPE_DTD:"]"===a?(n.doctype+=a,n.state=E.DOCTYPE):"<"===a?(n.state=E.OPEN_WAKA,n.startTagPosition=n.position):x(a)?(n.doctype+=a,n.state=E.DOCTYPE_DTD_QUOTED,n.q=a):n.doctype+=a;continue;case E.DOCTYPE_DTD_QUOTED:n.doctype+=a,a===n.q&&(n.state=E.DOCTYPE_DTD,n.q="");continue;case E.COMMENT:"-"===a?n.state=E.COMMENT_ENDING:n.comment+=a;continue;case E.COMMENT_ENDING:"-"===a?(n.state=E.COMMENT_ENDED,n.comment=M(n.opt,n.comment),n.comment&&A(n,"oncomment",n.comment),n.comment=""):(n.comment+="-"+a,n.state=E.COMMENT);continue;case E.COMMENT_ENDED:">"!==a?(I(n,"Malformed comment"),n.comment+="--"+a,n.state=E.COMMENT):n.doctype&&!0!==n.doctype?n.state=E.DOCTYPE_DTD:n.state=E.TEXT;continue;case E.CDATA:"]"===a?n.state=E.CDATA_ENDING:n.cdata+=a;continue;case E.CDATA_ENDING:"]"===a?n.state=E.CDATA_ENDING_2:(n.cdata+="]"+a,n.state=E.CDATA);continue;case E.CDATA_ENDING_2:">"===a?(n.cdata&&A(n,"oncdata",n.cdata),A(n,"onclosecdata"),n.cdata="",n.state=E.TEXT):"]"===a?n.cdata+="]":(n.cdata+="]]"+a,n.state=E.CDATA);continue;case E.PROC_INST:"?"===a?n.state=E.PROC_INST_ENDING:w(a)?n.state=E.PROC_INST_BODY:n.procInstName+=a;continue;case E.PROC_INST_BODY:if(!n.procInstBody&&w(a))continue;"?"===a?n.state=E.PROC_INST_ENDING:n.procInstBody+=a;continue;case E.PROC_INST_ENDING:">"===a?(A(n,"onprocessinginstruction",{name:n.procInstName,body:n.procInstBody}),n.procInstName=n.procInstBody="",n.state=E.TEXT):(n.procInstBody+="?"+a,n.state=E.PROC_INST_BODY);continue;case E.OPEN_TAG:_(v,a)?n.tagName+=a:(N(n),">"===a?F(n):"/"===a?n.state=E.OPEN_TAG_SLASH:(w(a)||I(n,"Invalid character in tag name"),n.state=E.ATTRIB));continue;case E.OPEN_TAG_SLASH:">"===a?(F(n,!0),$(n)):(I(n,"Forward-slash in opening tag not followed by >"),n.state=E.ATTRIB);continue;case E.ATTRIB:if(w(a))continue;">"===a?F(n):"/"===a?n.state=E.OPEN_TAG_SLASH:_(g,a)?(n.attribName=a,n.attribValue="",n.state=E.ATTRIB_NAME):I(n,"Invalid attribute name");continue;case E.ATTRIB_NAME:"="===a?n.state=E.ATTRIB_VALUE:">"===a?(I(n,"Attribute without value"),n.attribValue=n.attribName,D(n),F(n)):w(a)?n.state=E.ATTRIB_NAME_SAW_WHITE:_(v,a)?n.attribName+=a:I(n,"Invalid attribute name");continue;case E.ATTRIB_NAME_SAW_WHITE:if("="===a)n.state=E.ATTRIB_VALUE;else{if(w(a))continue;I(n,"Attribute without value"),n.tag.attributes[n.attribName]="",n.attribValue="",A(n,"onattribute",{name:n.attribName,value:""}),n.attribName="",">"===a?F(n):_(g,a)?(n.attribName=a,n.state=E.ATTRIB_NAME):(I(n,"Invalid attribute name"),n.state=E.ATTRIB)}continue;case E.ATTRIB_VALUE:if(w(a))continue;x(a)?(n.q=a,n.state=E.ATTRIB_VALUE_QUOTED):(n.opt.unquotedAttributeValues||L(n,"Unquoted attribute value"),n.state=E.ATTRIB_VALUE_UNQUOTED,n.attribValue=a);continue;case E.ATTRIB_VALUE_QUOTED:if(a!==n.q){"&"===a?n.state=E.ATTRIB_VALUE_ENTITY_Q:n.attribValue+=a;continue}D(n),n.q="",n.state=E.ATTRIB_VALUE_CLOSED;continue;case E.ATTRIB_VALUE_CLOSED:w(a)?n.state=E.ATTRIB:">"===a?F(n):"/"===a?n.state=E.OPEN_TAG_SLASH:_(g,a)?(I(n,"No whitespace between attributes"),n.attribName=a,n.attribValue="",n.state=E.ATTRIB_NAME):I(n,"Invalid attribute name");continue;case E.ATTRIB_VALUE_UNQUOTED:if(!k(a)){"&"===a?n.state=E.ATTRIB_VALUE_ENTITY_U:n.attribValue+=a;continue}D(n),">"===a?F(n):n.state=E.ATTRIB;continue;case E.CLOSE_TAG:if(n.tagName)">"===a?$(n):_(v,a)?n.tagName+=a:n.script?(n.script+="</"+n.tagName,n.tagName="",n.state=E.SCRIPT):(w(a)||I(n,"Invalid tagname in closing tag"),n.state=E.CLOSE_TAG_SAW_WHITE);else{if(w(a))continue;C(g,a)?n.script?(n.script+="</"+a,n.state=E.SCRIPT):I(n,"Invalid tagname in closing tag."):n.tagName=a}continue;case E.CLOSE_TAG_SAW_WHITE:if(w(a))continue;">"===a?$(n):I(n,"Invalid characters in closing tag");continue;case E.TEXT_ENTITY:case E.ATTRIB_VALUE_ENTITY_Q:case E.ATTRIB_VALUE_ENTITY_U:var l,c;switch(n.state){case E.TEXT_ENTITY:l=E.TEXT,c="textNode";break;case E.ATTRIB_VALUE_ENTITY_Q:l=E.ATTRIB_VALUE_QUOTED,c="attribValue";break;case E.ATTRIB_VALUE_ENTITY_U:l=E.ATTRIB_VALUE_UNQUOTED,c="attribValue";break}if(";"===a){var u=P(n);n.opt.unparsedEntities&&!Object.values(e.XML_ENTITIES).includes(u)?(n.entity="",n.state=l,n.write(u)):(n[c]+=u,n.entity="",n.state=l)}else _(n.entity.length?b:y,a)?n.entity+=a:(I(n,"Invalid character in entity name"),n[c]+="&"+n.entity+a,n.entity="",n.state=l);continue;default:throw new Error(n,"Unknown state: "+n.state)}}return n.position>=n.bufferCheckPosition&&i(n),n}
/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */E=e.STATE,String.fromCodePoint||function(){var e=String.fromCharCode,t=Math.floor,n=function(){var n,r,a=16384,i=[],o=-1,s=arguments.length;if(!s)return"";var l="";while(++o<s){var c=Number(arguments[o]);if(!isFinite(c)||c<0||c>1114111||t(c)!==c)throw RangeError("Invalid code point: "+c);c<=65535?i.push(c):(c-=65536,n=55296+(c>>10),r=c%1024+56320,i.push(n,r)),(o+1===s||i.length>a)&&(l+=e.apply(null,i),i.length=0)}return l};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:n,configurable:!0,writable:!0}):String.fromCodePoint=n}()}(t)},5255:function(e,t,n){var r;n(4114),n(8992),n(4520),n(3949),n(1454),/*! showdown v 2.1.0 - 21-04-2022 */
function(){function a(e){"use strict";var t={omitExtraWLInCodeBlocks:{defaultValue:!1,describe:"Omit the default extra whiteline added to code blocks",type:"boolean"},noHeaderId:{defaultValue:!1,describe:"Turn on/off generated header id",type:"boolean"},prefixHeaderId:{defaultValue:!1,describe:"Add a prefix to the generated header ids. Passing a string will prefix that string to the header id. Setting to true will add a generic 'section-' prefix",type:"string"},rawPrefixHeaderId:{defaultValue:!1,describe:'Setting this option to true will prevent showdown from modifying the prefix. This might result in malformed IDs (if, for instance, the " char is used in the prefix)',type:"boolean"},ghCompatibleHeaderId:{defaultValue:!1,describe:"Generate header ids compatible with github style (spaces are replaced with dashes, a bunch of non alphanumeric chars are removed)",type:"boolean"},rawHeaderId:{defaultValue:!1,describe:"Remove only spaces, ' and \" from generated header ids (including prefixes), replacing them with dashes (-). WARNING: This might result in malformed ids",type:"boolean"},headerLevelStart:{defaultValue:!1,describe:"The header blocks level start",type:"integer"},parseImgDimensions:{defaultValue:!1,describe:"Turn on/off image dimension parsing",type:"boolean"},simplifiedAutoLink:{defaultValue:!1,describe:"Turn on/off GFM autolink style",type:"boolean"},excludeTrailingPunctuationFromURLs:{defaultValue:!1,describe:"Excludes trailing punctuation from links generated with autoLinking",type:"boolean"},literalMidWordUnderscores:{defaultValue:!1,describe:"Parse midword underscores as literal underscores",type:"boolean"},literalMidWordAsterisks:{defaultValue:!1,describe:"Parse midword asterisks as literal asterisks",type:"boolean"},strikethrough:{defaultValue:!1,describe:"Turn on/off strikethrough support",type:"boolean"},tables:{defaultValue:!1,describe:"Turn on/off tables support",type:"boolean"},tablesHeaderId:{defaultValue:!1,describe:"Add an id to table headers",type:"boolean"},ghCodeBlocks:{defaultValue:!0,describe:"Turn on/off GFM fenced code blocks support",type:"boolean"},tasklists:{defaultValue:!1,describe:"Turn on/off GFM tasklist support",type:"boolean"},smoothLivePreview:{defaultValue:!1,describe:"Prevents weird effects in live previews due to incomplete input",type:"boolean"},smartIndentationFix:{defaultValue:!1,describe:"Tries to smartly fix indentation in es6 strings",type:"boolean"},disableForced4SpacesIndentedSublists:{defaultValue:!1,describe:"Disables the requirement of indenting nested sublists by 4 spaces",type:"boolean"},simpleLineBreaks:{defaultValue:!1,describe:"Parses simple line breaks as <br> (GFM Style)",type:"boolean"},requireSpaceBeforeHeadingText:{defaultValue:!1,describe:"Makes adding a space between `#` and the header text mandatory (GFM Style)",type:"boolean"},ghMentions:{defaultValue:!1,describe:"Enables github @mentions",type:"boolean"},ghMentionsLink:{defaultValue:"https://github.com/{u}",describe:"Changes the link generated by @mentions. Only applies if ghMentions option is enabled.",type:"string"},encodeEmails:{defaultValue:!0,describe:"Encode e-mail addresses through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities",type:"boolean"},openLinksInNewWindow:{defaultValue:!1,describe:"Open all links in new windows",type:"boolean"},backslashEscapesHTMLTags:{defaultValue:!1,describe:"Support for HTML Tag escaping. ex: <div>foo</div>",type:"boolean"},emoji:{defaultValue:!1,describe:"Enable emoji support. Ex: `this is a :smile: emoji`",type:"boolean"},underline:{defaultValue:!1,describe:"Enable support for underline. Syntax is double or triple underscores: `__underline word__`. With this option enabled, underscores no longer parses into `<em>` and `<strong>`",type:"boolean"},ellipsis:{defaultValue:!0,describe:"Replaces three dots with the ellipsis unicode character",type:"boolean"},completeHTMLDocument:{defaultValue:!1,describe:"Outputs a complete html document, including `<html>`, `<head>` and `<body>` tags",type:"boolean"},metadata:{defaultValue:!1,describe:"Enable support for document metadata (defined at the top of the document between `«««` and `»»»` or between `---` and `---`).",type:"boolean"},splitAdjacentBlockquotes:{defaultValue:!1,describe:"Split adjacent blockquote blocks",type:"boolean"}};if(!1===e)return JSON.parse(JSON.stringify(t));var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r].defaultValue);return n}function i(){"use strict";var e=a(!0),t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=!0);return t}var o={},s={},l={},c=a(!0),u="vanilla",d={github:{omitExtraWLInCodeBlocks:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,disableForced4SpacesIndentedSublists:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghCompatibleHeaderId:!0,ghMentions:!0,backslashEscapesHTMLTags:!0,emoji:!0,splitAdjacentBlockquotes:!0},original:{noHeaderId:!0,ghCodeBlocks:!1},ghost:{omitExtraWLInCodeBlocks:!0,parseImgDimensions:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,smoothLivePreview:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghMentions:!1,encodeEmails:!0},vanilla:a(!0),allOn:i()};function h(e,t){"use strict";var n=t?"Error in "+t+" extension->":"Error in unnamed extension",r={valid:!0,error:""};o.helper.isArray(e)||(e=[e]);for(var a=0;a<e.length;++a){var i=n+" sub-extension "+a+": ",s=e[a];if("object"!==typeof s)return r.valid=!1,r.error=i+"must be an object, but "+typeof s+" given",r;if(!o.helper.isString(s.type))return r.valid=!1,r.error=i+'property "type" must be a string, but '+typeof s.type+" given",r;var l=s.type=s.type.toLowerCase();if("language"===l&&(l=s.type="lang"),"html"===l&&(l=s.type="output"),"lang"!==l&&"output"!==l&&"listener"!==l)return r.valid=!1,r.error=i+"type "+l+' is not recognized. Valid values: "lang/language", "output/html" or "listener"',r;if("listener"===l){if(o.helper.isUndefined(s.listeners))return r.valid=!1,r.error=i+'. Extensions of type "listener" must have a property called "listeners"',r}else if(o.helper.isUndefined(s.filter)&&o.helper.isUndefined(s.regex))return r.valid=!1,r.error=i+l+' extensions must define either a "regex" property or a "filter" method',r;if(s.listeners){if("object"!==typeof s.listeners)return r.valid=!1,r.error=i+'"listeners" property must be an object but '+typeof s.listeners+" given",r;for(var c in s.listeners)if(s.listeners.hasOwnProperty(c)&&"function"!==typeof s.listeners[c])return r.valid=!1,r.error=i+'"listeners" property must be an hash of [event name]: [callback]. listeners.'+c+" must be a function but "+typeof s.listeners[c]+" given",r}if(s.filter){if("function"!==typeof s.filter)return r.valid=!1,r.error=i+'"filter" must be a function, but '+typeof s.filter+" given",r}else if(s.regex){if(o.helper.isString(s.regex)&&(s.regex=new RegExp(s.regex,"g")),!(s.regex instanceof RegExp))return r.valid=!1,r.error=i+'"regex" property must either be a string or a RegExp object, but '+typeof s.regex+" given",r;if(o.helper.isUndefined(s.replace))return r.valid=!1,r.error=i+'"regex" extensions must implement a replace string or function',r}}return r}function p(e,t){"use strict";var n=t.charCodeAt(0);return"¨E"+n+"E"}o.helper={},o.extensions={},o.setOption=function(e,t){"use strict";return c[e]=t,this},o.getOption=function(e){"use strict";return c[e]},o.getOptions=function(){"use strict";return c},o.resetOptions=function(){"use strict";c=a(!0)},o.setFlavor=function(e){"use strict";if(!d.hasOwnProperty(e))throw Error(e+" flavor was not found");o.resetOptions();var t=d[e];for(var n in u=e,t)t.hasOwnProperty(n)&&(c[n]=t[n])},o.getFlavor=function(){"use strict";return u},o.getFlavorOptions=function(e){"use strict";if(d.hasOwnProperty(e))return d[e]},o.getDefaultOptions=function(e){"use strict";return a(e)},o.subParser=function(e,t){"use strict";if(o.helper.isString(e)){if("undefined"===typeof t){if(s.hasOwnProperty(e))return s[e];throw Error("SubParser named "+e+" not registered!")}s[e]=t}},o.extension=function(e,t){"use strict";if(!o.helper.isString(e))throw Error("Extension 'name' must be a string");if(e=o.helper.stdExtName(e),o.helper.isUndefined(t)){if(!l.hasOwnProperty(e))throw Error("Extension named "+e+" is not registered!");return l[e]}"function"===typeof t&&(t=t()),o.helper.isArray(t)||(t=[t]);var n=h(t,e);if(!n.valid)throw Error(n.error);l[e]=t},o.getAllExtensions=function(){"use strict";return l},o.removeExtension=function(e){"use strict";delete l[e]},o.resetExtensions=function(){"use strict";l={}},o.validateExtension=function(e){"use strict";var t=h(e,null);return!!t.valid||(console.warn(t.error),!1)},o.hasOwnProperty("helper")||(o.helper={}),o.helper.isString=function(e){"use strict";return"string"===typeof e||e instanceof String},o.helper.isFunction=function(e){"use strict";var t={};return e&&"[object Function]"===t.toString.call(e)},o.helper.isArray=function(e){"use strict";return Array.isArray(e)},o.helper.isUndefined=function(e){"use strict";return"undefined"===typeof e},o.helper.forEach=function(e,t){"use strict";if(o.helper.isUndefined(e))throw new Error("obj param is required");if(o.helper.isUndefined(t))throw new Error("callback param is required");if(!o.helper.isFunction(t))throw new Error("callback param must be a function/closure");if("function"===typeof e.forEach)e.forEach(t);else if(o.helper.isArray(e))for(var n=0;n<e.length;n++)t(e[n],n,e);else{if("object"!==typeof e)throw new Error("obj does not seem to be an array or an iterable object");for(var r in e)e.hasOwnProperty(r)&&t(e[r],r,e)}},o.helper.stdExtName=function(e){"use strict";return e.replace(/[_?*+\/\\.^-]/g,"").replace(/\s/g,"").toLowerCase()},o.helper.escapeCharactersCallback=p,o.helper.escapeCharacters=function(e,t,n){"use strict";var r="(["+t.replace(/([\[\]\\])/g,"\\$1")+"])";n&&(r="\\\\"+r);var a=new RegExp(r,"g");return e=e.replace(a,p),e},o.helper.unescapeHTMLEntities=function(e){"use strict";return e.replace(/&quot;/g,'"').replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&")};var f=function(e,t,n,r){"use strict";var a,i,o,s,l,c=r||"",u=c.indexOf("g")>-1,d=new RegExp(t+"|"+n,"g"+c.replace(/g/g,"")),h=new RegExp(t,c.replace(/g/g,"")),p=[];do{a=0;while(o=d.exec(e))if(h.test(o[0]))a++||(i=d.lastIndex,s=i-o[0].length);else if(a&&! --a){l=o.index+o[0].length;var f={left:{start:s,end:i},match:{start:i,end:o.index},right:{start:o.index,end:l},wholeMatch:{start:s,end:l}};if(p.push(f),!u)return p}}while(a&&(d.lastIndex=i));return p};o.helper.matchRecursiveRegExp=function(e,t,n,r){"use strict";for(var a=f(e,t,n,r),i=[],o=0;o<a.length;++o)i.push([e.slice(a[o].wholeMatch.start,a[o].wholeMatch.end),e.slice(a[o].match.start,a[o].match.end),e.slice(a[o].left.start,a[o].left.end),e.slice(a[o].right.start,a[o].right.end)]);return i},o.helper.replaceRecursiveRegExp=function(e,t,n,r,a){"use strict";if(!o.helper.isFunction(t)){var i=t;t=function(){return i}}var s=f(e,n,r,a),l=e,c=s.length;if(c>0){var u=[];0!==s[0].wholeMatch.start&&u.push(e.slice(0,s[0].wholeMatch.start));for(var d=0;d<c;++d)u.push(t(e.slice(s[d].wholeMatch.start,s[d].wholeMatch.end),e.slice(s[d].match.start,s[d].match.end),e.slice(s[d].left.start,s[d].left.end),e.slice(s[d].right.start,s[d].right.end))),d<c-1&&u.push(e.slice(s[d].wholeMatch.end,s[d+1].wholeMatch.start));s[c-1].wholeMatch.end<e.length&&u.push(e.slice(s[c-1].wholeMatch.end)),l=u.join("")}return l},o.helper.regexIndexOf=function(e,t,n){"use strict";if(!o.helper.isString(e))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";if(t instanceof RegExp===!1)throw"InvalidArgumentError: second parameter of showdown.helper.regexIndexOf function must be an instance of RegExp";var r=e.substring(n||0).search(t);return r>=0?r+(n||0):r},o.helper.splitAtIndex=function(e,t){"use strict";if(!o.helper.isString(e))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";return[e.substring(0,t),e.substring(t)]},o.helper.encodeEmailAddress=function(e){"use strict";var t=[function(e){return"&#"+e.charCodeAt(0)+";"},function(e){return"&#x"+e.charCodeAt(0).toString(16)+";"},function(e){return e}];return e=e.replace(/./g,(function(e){if("@"===e)e=t[Math.floor(2*Math.random())](e);else{var n=Math.random();e=n>.9?t[2](e):n>.45?t[1](e):t[0](e)}return e})),e},o.helper.padEnd=function(e,t,n){"use strict";return t|=0,n=String(n||" "),e.length>t?String(e):(t-=e.length,t>n.length&&(n+=n.repeat(t/n.length)),String(e)+n.slice(0,t))},"undefined"===typeof console&&(console={warn:function(e){"use strict";alert(e)},log:function(e){"use strict";alert(e)},error:function(e){"use strict";throw e}}),o.helper.regexes={asteriskDashAndColon:/([*_:~])/g},o.helper.emojis={"+1":"👍","-1":"👎",100:"💯",1234:"🔢","1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉","8ball":"🎱",a:"🅰️",ab:"🆎",abc:"🔤",abcd:"🔡",accept:"🉑",aerial_tramway:"🚡",airplane:"✈️",alarm_clock:"⏰",alembic:"⚗️",alien:"👽",ambulance:"🚑",amphora:"🏺",anchor:"⚓️",angel:"👼",anger:"💢",angry:"😠",anguished:"😧",ant:"🐜",apple:"🍎",aquarius:"♒️",aries:"♈️",arrow_backward:"◀️",arrow_double_down:"⏬",arrow_double_up:"⏫",arrow_down:"⬇️",arrow_down_small:"🔽",arrow_forward:"▶️",arrow_heading_down:"⤵️",arrow_heading_up:"⤴️",arrow_left:"⬅️",arrow_lower_left:"↙️",arrow_lower_right:"↘️",arrow_right:"➡️",arrow_right_hook:"↪️",arrow_up:"⬆️",arrow_up_down:"↕️",arrow_up_small:"🔼",arrow_upper_left:"↖️",arrow_upper_right:"↗️",arrows_clockwise:"🔃",arrows_counterclockwise:"🔄",art:"🎨",articulated_lorry:"🚛",artificial_satellite:"🛰",astonished:"😲",athletic_shoe:"👟",atm:"🏧",atom_symbol:"⚛️",avocado:"🥑",b:"🅱️",baby:"👶",baby_bottle:"🍼",baby_chick:"🐤",baby_symbol:"🚼",back:"🔙",bacon:"🥓",badminton:"🏸",baggage_claim:"🛄",baguette_bread:"🥖",balance_scale:"⚖️",balloon:"🎈",ballot_box:"🗳",ballot_box_with_check:"☑️",bamboo:"🎍",banana:"🍌",bangbang:"‼️",bank:"🏦",bar_chart:"📊",barber:"💈",baseball:"⚾️",basketball:"🏀",basketball_man:"⛹️",basketball_woman:"⛹️&zwj;♀️",bat:"🦇",bath:"🛀",bathtub:"🛁",battery:"🔋",beach_umbrella:"🏖",bear:"🐻",bed:"🛏",bee:"🐝",beer:"🍺",beers:"🍻",beetle:"🐞",beginner:"🔰",bell:"🔔",bellhop_bell:"🛎",bento:"🍱",biking_man:"🚴",bike:"🚲",biking_woman:"🚴&zwj;♀️",bikini:"👙",biohazard:"☣️",bird:"🐦",birthday:"🎂",black_circle:"⚫️",black_flag:"🏴",black_heart:"🖤",black_joker:"🃏",black_large_square:"⬛️",black_medium_small_square:"◾️",black_medium_square:"◼️",black_nib:"✒️",black_small_square:"▪️",black_square_button:"🔲",blonde_man:"👱",blonde_woman:"👱&zwj;♀️",blossom:"🌼",blowfish:"🐡",blue_book:"📘",blue_car:"🚙",blue_heart:"💙",blush:"😊",boar:"🐗",boat:"⛵️",bomb:"💣",book:"📖",bookmark:"🔖",bookmark_tabs:"📑",books:"📚",boom:"💥",boot:"👢",bouquet:"💐",bowing_man:"🙇",bow_and_arrow:"🏹",bowing_woman:"🙇&zwj;♀️",bowling:"🎳",boxing_glove:"🥊",boy:"👦",bread:"🍞",bride_with_veil:"👰",bridge_at_night:"🌉",briefcase:"💼",broken_heart:"💔",bug:"🐛",building_construction:"🏗",bulb:"💡",bullettrain_front:"🚅",bullettrain_side:"🚄",burrito:"🌯",bus:"🚌",business_suit_levitating:"🕴",busstop:"🚏",bust_in_silhouette:"👤",busts_in_silhouette:"👥",butterfly:"🦋",cactus:"🌵",cake:"🍰",calendar:"📆",call_me_hand:"🤙",calling:"📲",camel:"🐫",camera:"📷",camera_flash:"📸",camping:"🏕",cancer:"♋️",candle:"🕯",candy:"🍬",canoe:"🛶",capital_abcd:"🔠",capricorn:"♑️",car:"🚗",card_file_box:"🗃",card_index:"📇",card_index_dividers:"🗂",carousel_horse:"🎠",carrot:"🥕",cat:"🐱",cat2:"🐈",cd:"💿",chains:"⛓",champagne:"🍾",chart:"💹",chart_with_downwards_trend:"📉",chart_with_upwards_trend:"📈",checkered_flag:"🏁",cheese:"🧀",cherries:"🍒",cherry_blossom:"🌸",chestnut:"🌰",chicken:"🐔",children_crossing:"🚸",chipmunk:"🐿",chocolate_bar:"🍫",christmas_tree:"🎄",church:"⛪️",cinema:"🎦",circus_tent:"🎪",city_sunrise:"🌇",city_sunset:"🌆",cityscape:"🏙",cl:"🆑",clamp:"🗜",clap:"👏",clapper:"🎬",classical_building:"🏛",clinking_glasses:"🥂",clipboard:"📋",clock1:"🕐",clock10:"🕙",clock1030:"🕥",clock11:"🕚",clock1130:"🕦",clock12:"🕛",clock1230:"🕧",clock130:"🕜",clock2:"🕑",clock230:"🕝",clock3:"🕒",clock330:"🕞",clock4:"🕓",clock430:"🕟",clock5:"🕔",clock530:"🕠",clock6:"🕕",clock630:"🕡",clock7:"🕖",clock730:"🕢",clock8:"🕗",clock830:"🕣",clock9:"🕘",clock930:"🕤",closed_book:"📕",closed_lock_with_key:"🔐",closed_umbrella:"🌂",cloud:"☁️",cloud_with_lightning:"🌩",cloud_with_lightning_and_rain:"⛈",cloud_with_rain:"🌧",cloud_with_snow:"🌨",clown_face:"🤡",clubs:"♣️",cocktail:"🍸",coffee:"☕️",coffin:"⚰️",cold_sweat:"😰",comet:"☄️",computer:"💻",computer_mouse:"🖱",confetti_ball:"🎊",confounded:"😖",confused:"😕",congratulations:"㊗️",construction:"🚧",construction_worker_man:"👷",construction_worker_woman:"👷&zwj;♀️",control_knobs:"🎛",convenience_store:"🏪",cookie:"🍪",cool:"🆒",policeman:"👮",copyright:"©️",corn:"🌽",couch_and_lamp:"🛋",couple:"👫",couple_with_heart_woman_man:"💑",couple_with_heart_man_man:"👨&zwj;❤️&zwj;👨",couple_with_heart_woman_woman:"👩&zwj;❤️&zwj;👩",couplekiss_man_man:"👨&zwj;❤️&zwj;💋&zwj;👨",couplekiss_man_woman:"💏",couplekiss_woman_woman:"👩&zwj;❤️&zwj;💋&zwj;👩",cow:"🐮",cow2:"🐄",cowboy_hat_face:"🤠",crab:"🦀",crayon:"🖍",credit_card:"💳",crescent_moon:"🌙",cricket:"🏏",crocodile:"🐊",croissant:"🥐",crossed_fingers:"🤞",crossed_flags:"🎌",crossed_swords:"⚔️",crown:"👑",cry:"😢",crying_cat_face:"😿",crystal_ball:"🔮",cucumber:"🥒",cupid:"💘",curly_loop:"➰",currency_exchange:"💱",curry:"🍛",custard:"🍮",customs:"🛃",cyclone:"🌀",dagger:"🗡",dancer:"💃",dancing_women:"👯",dancing_men:"👯&zwj;♂️",dango:"🍡",dark_sunglasses:"🕶",dart:"🎯",dash:"💨",date:"📅",deciduous_tree:"🌳",deer:"🦌",department_store:"🏬",derelict_house:"🏚",desert:"🏜",desert_island:"🏝",desktop_computer:"🖥",male_detective:"🕵️",diamond_shape_with_a_dot_inside:"💠",diamonds:"♦️",disappointed:"😞",disappointed_relieved:"😥",dizzy:"💫",dizzy_face:"😵",do_not_litter:"🚯",dog:"🐶",dog2:"🐕",dollar:"💵",dolls:"🎎",dolphin:"🐬",door:"🚪",doughnut:"🍩",dove:"🕊",dragon:"🐉",dragon_face:"🐲",dress:"👗",dromedary_camel:"🐪",drooling_face:"🤤",droplet:"💧",drum:"🥁",duck:"🦆",dvd:"📀","e-mail":"📧",eagle:"🦅",ear:"👂",ear_of_rice:"🌾",earth_africa:"🌍",earth_americas:"🌎",earth_asia:"🌏",egg:"🥚",eggplant:"🍆",eight_pointed_black_star:"✴️",eight_spoked_asterisk:"✳️",electric_plug:"🔌",elephant:"🐘",email:"✉️",end:"🔚",envelope_with_arrow:"📩",euro:"💶",european_castle:"🏰",european_post_office:"🏤",evergreen_tree:"🌲",exclamation:"❗️",expressionless:"😑",eye:"👁",eye_speech_bubble:"👁&zwj;🗨",eyeglasses:"👓",eyes:"👀",face_with_head_bandage:"🤕",face_with_thermometer:"🤒",fist_oncoming:"👊",factory:"🏭",fallen_leaf:"🍂",family_man_woman_boy:"👪",family_man_boy:"👨&zwj;👦",family_man_boy_boy:"👨&zwj;👦&zwj;👦",family_man_girl:"👨&zwj;👧",family_man_girl_boy:"👨&zwj;👧&zwj;👦",family_man_girl_girl:"👨&zwj;👧&zwj;👧",family_man_man_boy:"👨&zwj;👨&zwj;👦",family_man_man_boy_boy:"👨&zwj;👨&zwj;👦&zwj;👦",family_man_man_girl:"👨&zwj;👨&zwj;👧",family_man_man_girl_boy:"👨&zwj;👨&zwj;👧&zwj;👦",family_man_man_girl_girl:"👨&zwj;👨&zwj;👧&zwj;👧",family_man_woman_boy_boy:"👨&zwj;👩&zwj;👦&zwj;👦",family_man_woman_girl:"👨&zwj;👩&zwj;👧",family_man_woman_girl_boy:"👨&zwj;👩&zwj;👧&zwj;👦",family_man_woman_girl_girl:"👨&zwj;👩&zwj;👧&zwj;👧",family_woman_boy:"👩&zwj;👦",family_woman_boy_boy:"👩&zwj;👦&zwj;👦",family_woman_girl:"👩&zwj;👧",family_woman_girl_boy:"👩&zwj;👧&zwj;👦",family_woman_girl_girl:"👩&zwj;👧&zwj;👧",family_woman_woman_boy:"👩&zwj;👩&zwj;👦",family_woman_woman_boy_boy:"👩&zwj;👩&zwj;👦&zwj;👦",family_woman_woman_girl:"👩&zwj;👩&zwj;👧",family_woman_woman_girl_boy:"👩&zwj;👩&zwj;👧&zwj;👦",family_woman_woman_girl_girl:"👩&zwj;👩&zwj;👧&zwj;👧",fast_forward:"⏩",fax:"📠",fearful:"😨",feet:"🐾",female_detective:"🕵️&zwj;♀️",ferris_wheel:"🎡",ferry:"⛴",field_hockey:"🏑",file_cabinet:"🗄",file_folder:"📁",film_projector:"📽",film_strip:"🎞",fire:"🔥",fire_engine:"🚒",fireworks:"🎆",first_quarter_moon:"🌓",first_quarter_moon_with_face:"🌛",fish:"🐟",fish_cake:"🍥",fishing_pole_and_fish:"🎣",fist_raised:"✊",fist_left:"🤛",fist_right:"🤜",flags:"🎏",flashlight:"🔦",fleur_de_lis:"⚜️",flight_arrival:"🛬",flight_departure:"🛫",floppy_disk:"💾",flower_playing_cards:"🎴",flushed:"😳",fog:"🌫",foggy:"🌁",football:"🏈",footprints:"👣",fork_and_knife:"🍴",fountain:"⛲️",fountain_pen:"🖋",four_leaf_clover:"🍀",fox_face:"🦊",framed_picture:"🖼",free:"🆓",fried_egg:"🍳",fried_shrimp:"🍤",fries:"🍟",frog:"🐸",frowning:"😦",frowning_face:"☹️",frowning_man:"🙍&zwj;♂️",frowning_woman:"🙍",middle_finger:"🖕",fuelpump:"⛽️",full_moon:"🌕",full_moon_with_face:"🌝",funeral_urn:"⚱️",game_die:"🎲",gear:"⚙️",gem:"💎",gemini:"♊️",ghost:"👻",gift:"🎁",gift_heart:"💝",girl:"👧",globe_with_meridians:"🌐",goal_net:"🥅",goat:"🐐",golf:"⛳️",golfing_man:"🏌️",golfing_woman:"🏌️&zwj;♀️",gorilla:"🦍",grapes:"🍇",green_apple:"🍏",green_book:"📗",green_heart:"💚",green_salad:"🥗",grey_exclamation:"❕",grey_question:"❔",grimacing:"😬",grin:"😁",grinning:"😀",guardsman:"💂",guardswoman:"💂&zwj;♀️",guitar:"🎸",gun:"🔫",haircut_woman:"💇",haircut_man:"💇&zwj;♂️",hamburger:"🍔",hammer:"🔨",hammer_and_pick:"⚒",hammer_and_wrench:"🛠",hamster:"🐹",hand:"✋",handbag:"👜",handshake:"🤝",hankey:"💩",hatched_chick:"🐥",hatching_chick:"🐣",headphones:"🎧",hear_no_evil:"🙉",heart:"❤️",heart_decoration:"💟",heart_eyes:"😍",heart_eyes_cat:"😻",heartbeat:"💓",heartpulse:"💗",hearts:"♥️",heavy_check_mark:"✔️",heavy_division_sign:"➗",heavy_dollar_sign:"💲",heavy_heart_exclamation:"❣️",heavy_minus_sign:"",heavy_multiplication_x:"✖️",heavy_plus_sign:"",helicopter:"🚁",herb:"🌿",hibiscus:"🌺",high_brightness:"🔆",high_heel:"👠",hocho:"🔪",hole:"🕳",honey_pot:"🍯",horse:"🐴",horse_racing:"🏇",hospital:"🏥",hot_pepper:"🌶",hotdog:"🌭",hotel:"🏨",hotsprings:"♨️",hourglass:"⌛️",hourglass_flowing_sand:"⏳",house:"🏠",house_with_garden:"🏡",houses:"🏘",hugs:"🤗",hushed:"😯",ice_cream:"🍨",ice_hockey:"🏒",ice_skate:"⛸",icecream:"🍦",id:"🆔",ideograph_advantage:"🉐",imp:"👿",inbox_tray:"📥",incoming_envelope:"📨",tipping_hand_woman:"💁",information_source:"",innocent:"😇",interrobang:"⁉️",iphone:"📱",izakaya_lantern:"🏮",jack_o_lantern:"🎃",japan:"🗾",japanese_castle:"🏯",japanese_goblin:"👺",japanese_ogre:"👹",jeans:"👖",joy:"😂",joy_cat:"😹",joystick:"🕹",kaaba:"🕋",key:"🔑",keyboard:"⌨️",keycap_ten:"🔟",kick_scooter:"🛴",kimono:"👘",kiss:"💋",kissing:"😗",kissing_cat:"😽",kissing_closed_eyes:"😚",kissing_heart:"😘",kissing_smiling_eyes:"😙",kiwi_fruit:"🥝",koala:"🐨",koko:"🈁",label:"🏷",large_blue_circle:"🔵",large_blue_diamond:"🔷",large_orange_diamond:"🔶",last_quarter_moon:"🌗",last_quarter_moon_with_face:"🌜",latin_cross:"✝️",laughing:"😆",leaves:"🍃",ledger:"📒",left_luggage:"🛅",left_right_arrow:"↔️",leftwards_arrow_with_hook:"↩️",lemon:"🍋",leo:"♌️",leopard:"🐆",level_slider:"🎚",libra:"♎️",light_rail:"🚈",link:"🔗",lion:"🦁",lips:"👄",lipstick:"💄",lizard:"🦎",lock:"🔒",lock_with_ink_pen:"🔏",lollipop:"🍭",loop:"➿",loud_sound:"🔊",loudspeaker:"📢",love_hotel:"🏩",love_letter:"💌",low_brightness:"🔅",lying_face:"🤥",m:"Ⓜ️",mag:"🔍",mag_right:"🔎",mahjong:"🀄️",mailbox:"📫",mailbox_closed:"📪",mailbox_with_mail:"📬",mailbox_with_no_mail:"📭",man:"👨",man_artist:"👨&zwj;🎨",man_astronaut:"👨&zwj;🚀",man_cartwheeling:"🤸&zwj;♂️",man_cook:"👨&zwj;🍳",man_dancing:"🕺",man_facepalming:"🤦&zwj;♂️",man_factory_worker:"👨&zwj;🏭",man_farmer:"👨&zwj;🌾",man_firefighter:"👨&zwj;🚒",man_health_worker:"👨&zwj;⚕️",man_in_tuxedo:"🤵",man_judge:"👨&zwj;⚖️",man_juggling:"🤹&zwj;♂️",man_mechanic:"👨&zwj;🔧",man_office_worker:"👨&zwj;💼",man_pilot:"👨&zwj;✈️",man_playing_handball:"🤾&zwj;♂️",man_playing_water_polo:"🤽&zwj;♂️",man_scientist:"👨&zwj;🔬",man_shrugging:"🤷&zwj;♂️",man_singer:"👨&zwj;🎤",man_student:"👨&zwj;🎓",man_teacher:"👨&zwj;🏫",man_technologist:"👨&zwj;💻",man_with_gua_pi_mao:"👲",man_with_turban:"👳",tangerine:"🍊",mans_shoe:"👞",mantelpiece_clock:"🕰",maple_leaf:"🍁",martial_arts_uniform:"🥋",mask:"😷",massage_woman:"💆",massage_man:"💆&zwj;♂️",meat_on_bone:"🍖",medal_military:"🎖",medal_sports:"🏅",mega:"📣",melon:"🍈",memo:"📝",men_wrestling:"🤼&zwj;♂️",menorah:"🕎",mens:"🚹",metal:"🤘",metro:"🚇",microphone:"🎤",microscope:"🔬",milk_glass:"🥛",milky_way:"🌌",minibus:"🚐",minidisc:"💽",mobile_phone_off:"📴",money_mouth_face:"🤑",money_with_wings:"💸",moneybag:"💰",monkey:"🐒",monkey_face:"🐵",monorail:"🚝",moon:"🌔",mortar_board:"🎓",mosque:"🕌",motor_boat:"🛥",motor_scooter:"🛵",motorcycle:"🏍",motorway:"🛣",mount_fuji:"🗻",mountain:"⛰",mountain_biking_man:"🚵",mountain_biking_woman:"🚵&zwj;♀️",mountain_cableway:"🚠",mountain_railway:"🚞",mountain_snow:"🏔",mouse:"🐭",mouse2:"🐁",movie_camera:"🎥",moyai:"🗿",mrs_claus:"🤶",muscle:"💪",mushroom:"🍄",musical_keyboard:"🎹",musical_note:"🎵",musical_score:"🎼",mute:"🔇",nail_care:"💅",name_badge:"📛",national_park:"🏞",nauseated_face:"🤢",necktie:"👔",negative_squared_cross_mark:"❎",nerd_face:"🤓",neutral_face:"😐",new:"🆕",new_moon:"🌑",new_moon_with_face:"🌚",newspaper:"📰",newspaper_roll:"🗞",next_track_button:"⏭",ng:"🆖",no_good_man:"🙅&zwj;♂️",no_good_woman:"🙅",night_with_stars:"🌃",no_bell:"🔕",no_bicycles:"🚳",no_entry:"⛔️",no_entry_sign:"🚫",no_mobile_phones:"📵",no_mouth:"😶",no_pedestrians:"🚷",no_smoking:"🚭","non-potable_water":"🚱",nose:"👃",notebook:"📓",notebook_with_decorative_cover:"📔",notes:"🎶",nut_and_bolt:"🔩",o:"⭕️",o2:"🅾️",ocean:"🌊",octopus:"🐙",oden:"🍢",office:"🏢",oil_drum:"🛢",ok:"🆗",ok_hand:"👌",ok_man:"🙆&zwj;♂️",ok_woman:"🙆",old_key:"🗝",older_man:"👴",older_woman:"👵",om:"🕉",on:"🔛",oncoming_automobile:"🚘",oncoming_bus:"🚍",oncoming_police_car:"🚔",oncoming_taxi:"🚖",open_file_folder:"📂",open_hands:"👐",open_mouth:"😮",open_umbrella:"☂️",ophiuchus:"⛎",orange_book:"📙",orthodox_cross:"☦️",outbox_tray:"📤",owl:"🦉",ox:"🐂",package:"📦",page_facing_up:"📄",page_with_curl:"📃",pager:"📟",paintbrush:"🖌",palm_tree:"🌴",pancakes:"🥞",panda_face:"🐼",paperclip:"📎",paperclips:"🖇",parasol_on_ground:"⛱",parking:"🅿️",part_alternation_mark:"〽️",partly_sunny:"⛅️",passenger_ship:"🛳",passport_control:"🛂",pause_button:"⏸",peace_symbol:"☮️",peach:"🍑",peanuts:"🥜",pear:"🍐",pen:"🖊",pencil2:"✏️",penguin:"🐧",pensive:"😔",performing_arts:"🎭",persevere:"😣",person_fencing:"🤺",pouting_woman:"🙎",phone:"☎️",pick:"⛏",pig:"🐷",pig2:"🐖",pig_nose:"🐽",pill:"💊",pineapple:"🍍",ping_pong:"🏓",pisces:"♓️",pizza:"🍕",place_of_worship:"🛐",plate_with_cutlery:"🍽",play_or_pause_button:"⏯",point_down:"👇",point_left:"👈",point_right:"👉",point_up:"☝️",point_up_2:"👆",police_car:"🚓",policewoman:"👮&zwj;♀️",poodle:"🐩",popcorn:"🍿",post_office:"🏣",postal_horn:"📯",postbox:"📮",potable_water:"🚰",potato:"🥔",pouch:"👝",poultry_leg:"🍗",pound:"💷",rage:"😡",pouting_cat:"😾",pouting_man:"🙎&zwj;♂️",pray:"🙏",prayer_beads:"📿",pregnant_woman:"🤰",previous_track_button:"⏮",prince:"🤴",princess:"👸",printer:"🖨",purple_heart:"💜",purse:"👛",pushpin:"📌",put_litter_in_its_place:"🚮",question:"❓",rabbit:"🐰",rabbit2:"🐇",racehorse:"🐎",racing_car:"🏎",radio:"📻",radio_button:"🔘",radioactive:"☢️",railway_car:"🚃",railway_track:"🛤",rainbow:"🌈",rainbow_flag:"🏳️&zwj;🌈",raised_back_of_hand:"🤚",raised_hand_with_fingers_splayed:"🖐",raised_hands:"🙌",raising_hand_woman:"🙋",raising_hand_man:"🙋&zwj;♂️",ram:"🐏",ramen:"🍜",rat:"🐀",record_button:"⏺",recycle:"♻️",red_circle:"🔴",registered:"®️",relaxed:"☺️",relieved:"😌",reminder_ribbon:"🎗",repeat:"🔁",repeat_one:"🔂",rescue_worker_helmet:"⛑",restroom:"🚻",revolving_hearts:"💞",rewind:"⏪",rhinoceros:"🦏",ribbon:"🎀",rice:"🍚",rice_ball:"🍙",rice_cracker:"🍘",rice_scene:"🎑",right_anger_bubble:"🗯",ring:"💍",robot:"🤖",rocket:"🚀",rofl:"🤣",roll_eyes:"🙄",roller_coaster:"🎢",rooster:"🐓",rose:"🌹",rosette:"🏵",rotating_light:"🚨",round_pushpin:"📍",rowing_man:"🚣",rowing_woman:"🚣&zwj;♀️",rugby_football:"🏉",running_man:"🏃",running_shirt_with_sash:"🎽",running_woman:"🏃&zwj;♀️",sa:"🈂️",sagittarius:"♐️",sake:"🍶",sandal:"👡",santa:"🎅",satellite:"📡",saxophone:"🎷",school:"🏫",school_satchel:"🎒",scissors:"✂️",scorpion:"🦂",scorpius:"♏️",scream:"😱",scream_cat:"🙀",scroll:"📜",seat:"💺",secret:"㊙️",see_no_evil:"🙈",seedling:"🌱",selfie:"🤳",shallow_pan_of_food:"🥘",shamrock:"☘️",shark:"🦈",shaved_ice:"🍧",sheep:"🐑",shell:"🐚",shield:"🛡",shinto_shrine:"⛩",ship:"🚢",shirt:"👕",shopping:"🛍",shopping_cart:"🛒",shower:"🚿",shrimp:"🦐",signal_strength:"📶",six_pointed_star:"🔯",ski:"🎿",skier:"⛷",skull:"💀",skull_and_crossbones:"☠️",sleeping:"😴",sleeping_bed:"🛌",sleepy:"😪",slightly_frowning_face:"🙁",slightly_smiling_face:"🙂",slot_machine:"🎰",small_airplane:"🛩",small_blue_diamond:"🔹",small_orange_diamond:"🔸",small_red_triangle:"🔺",small_red_triangle_down:"🔻",smile:"😄",smile_cat:"😸",smiley:"😃",smiley_cat:"😺",smiling_imp:"😈",smirk:"😏",smirk_cat:"😼",smoking:"🚬",snail:"🐌",snake:"🐍",sneezing_face:"🤧",snowboarder:"🏂",snowflake:"❄️",snowman:"⛄️",snowman_with_snow:"☃️",sob:"😭",soccer:"⚽️",soon:"🔜",sos:"🆘",sound:"🔉",space_invader:"👾",spades:"♠️",spaghetti:"🍝",sparkle:"❇️",sparkler:"🎇",sparkles:"✨",sparkling_heart:"💖",speak_no_evil:"🙊",speaker:"🔈",speaking_head:"🗣",speech_balloon:"💬",speedboat:"🚤",spider:"🕷",spider_web:"🕸",spiral_calendar:"🗓",spiral_notepad:"🗒",spoon:"🥄",squid:"🦑",stadium:"🏟",star:"⭐️",star2:"🌟",star_and_crescent:"☪️",star_of_david:"✡️",stars:"🌠",station:"🚉",statue_of_liberty:"🗽",steam_locomotive:"🚂",stew:"🍲",stop_button:"⏹",stop_sign:"🛑",stopwatch:"⏱",straight_ruler:"📏",strawberry:"🍓",stuck_out_tongue:"😛",stuck_out_tongue_closed_eyes:"😝",stuck_out_tongue_winking_eye:"😜",studio_microphone:"🎙",stuffed_flatbread:"🥙",sun_behind_large_cloud:"🌥",sun_behind_rain_cloud:"🌦",sun_behind_small_cloud:"🌤",sun_with_face:"🌞",sunflower:"🌻",sunglasses:"😎",sunny:"☀️",sunrise:"🌅",sunrise_over_mountains:"🌄",surfing_man:"🏄",surfing_woman:"🏄&zwj;♀️",sushi:"🍣",suspension_railway:"🚟",sweat:"😓",sweat_drops:"💦",sweat_smile:"😅",sweet_potato:"🍠",swimming_man:"🏊",swimming_woman:"🏊&zwj;♀️",symbols:"🔣",synagogue:"🕍",syringe:"💉",taco:"🌮",tada:"🎉",tanabata_tree:"🎋",taurus:"♉️",taxi:"🚕",tea:"🍵",telephone_receiver:"📞",telescope:"🔭",tennis:"🎾",tent:"⛺️",thermometer:"🌡",thinking:"🤔",thought_balloon:"💭",ticket:"🎫",tickets:"🎟",tiger:"🐯",tiger2:"🐅",timer_clock:"⏲",tipping_hand_man:"💁&zwj;♂️",tired_face:"😫",tm:"™️",toilet:"🚽",tokyo_tower:"🗼",tomato:"🍅",tongue:"👅",top:"🔝",tophat:"🎩",tornado:"🌪",trackball:"🖲",tractor:"🚜",traffic_light:"🚥",train:"🚋",train2:"🚆",tram:"🚊",triangular_flag_on_post:"🚩",triangular_ruler:"📐",trident:"🔱",triumph:"😤",trolleybus:"🚎",trophy:"🏆",tropical_drink:"🍹",tropical_fish:"🐠",truck:"🚚",trumpet:"🎺",tulip:"🌷",tumbler_glass:"🥃",turkey:"🦃",turtle:"🐢",tv:"📺",twisted_rightwards_arrows:"🔀",two_hearts:"💕",two_men_holding_hands:"👬",two_women_holding_hands:"👭",u5272:"🈹",u5408:"🈴",u55b6:"🈺",u6307:"🈯️",u6708:"🈷️",u6709:"🈶",u6e80:"🈵",u7121:"🈚️",u7533:"🈸",u7981:"🈲",u7a7a:"🈳",umbrella:"☔️",unamused:"😒",underage:"🔞",unicorn:"🦄",unlock:"🔓",up:"🆙",upside_down_face:"🙃",v:"✌️",vertical_traffic_light:"🚦",vhs:"📼",vibration_mode:"📳",video_camera:"📹",video_game:"🎮",violin:"🎻",virgo:"♍️",volcano:"🌋",volleyball:"🏐",vs:"🆚",vulcan_salute:"🖖",walking_man:"🚶",walking_woman:"🚶&zwj;♀️",waning_crescent_moon:"🌘",waning_gibbous_moon:"🌖",warning:"⚠️",wastebasket:"🗑",watch:"⌚️",water_buffalo:"🐃",watermelon:"🍉",wave:"👋",wavy_dash:"〰️",waxing_crescent_moon:"🌒",wc:"🚾",weary:"😩",wedding:"💒",weight_lifting_man:"🏋️",weight_lifting_woman:"🏋️&zwj;♀️",whale:"🐳",whale2:"🐋",wheel_of_dharma:"☸️",wheelchair:"♿️",white_check_mark:"✅",white_circle:"⚪️",white_flag:"🏳️",white_flower:"💮",white_large_square:"⬜️",white_medium_small_square:"◽️",white_medium_square:"◻️",white_small_square:"▫️",white_square_button:"🔳",wilted_flower:"🥀",wind_chime:"🎐",wind_face:"🌬",wine_glass:"🍷",wink:"😉",wolf:"🐺",woman:"👩",woman_artist:"👩&zwj;🎨",woman_astronaut:"👩&zwj;🚀",woman_cartwheeling:"🤸&zwj;♀️",woman_cook:"👩&zwj;🍳",woman_facepalming:"🤦&zwj;♀️",woman_factory_worker:"👩&zwj;🏭",woman_farmer:"👩&zwj;🌾",woman_firefighter:"👩&zwj;🚒",woman_health_worker:"👩&zwj;⚕️",woman_judge:"👩&zwj;⚖️",woman_juggling:"🤹&zwj;♀️",woman_mechanic:"👩&zwj;🔧",woman_office_worker:"👩&zwj;💼",woman_pilot:"👩&zwj;✈️",woman_playing_handball:"🤾&zwj;♀️",woman_playing_water_polo:"🤽&zwj;♀️",woman_scientist:"👩&zwj;🔬",woman_shrugging:"🤷&zwj;♀️",woman_singer:"👩&zwj;🎤",woman_student:"👩&zwj;🎓",woman_teacher:"👩&zwj;🏫",woman_technologist:"👩&zwj;💻",woman_with_turban:"👳&zwj;♀️",womans_clothes:"👚",womans_hat:"👒",women_wrestling:"🤼&zwj;♀️",womens:"🚺",world_map:"🗺",worried:"😟",wrench:"🔧",writing_hand:"✍️",x:"❌",yellow_heart:"💛",yen:"💴",yin_yang:"☯️",yum:"😋",zap:"⚡️",zipper_mouth_face:"🤐",zzz:"💤",octocat:'<img alt=":octocat:" height="20" width="20" align="absmiddle" src="https://assets-cdn.github.com/images/icons/emoji/octocat.png">',showdown:"<span style=\"font-family: 'Anonymous Pro', monospace; text-decoration: underline; text-decoration-style: dashed; text-decoration-color: #3e8b8a;text-underline-position: under;\">S</span>"},o.Converter=function(e){"use strict";var t={},n=[],r=[],a={},i=u,s={parsed:{},raw:"",format:""};function p(){for(var n in e=e||{},c)c.hasOwnProperty(n)&&(t[n]=c[n]);if("object"!==typeof e)throw Error("Converter expects the passed parameter to be an object, but "+typeof e+" was passed instead.");for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.extensions&&o.helper.forEach(t.extensions,f)}function f(e,t){if(t=t||null,o.helper.isString(e)){if(e=o.helper.stdExtName(e),t=e,o.extensions[e])return console.warn("DEPRECATION WARNING: "+e+" is an old extension that uses a deprecated loading method.Please inform the developer that the extension should be updated!"),void m(o.extensions[e],e);if(o.helper.isUndefined(l[e]))throw Error('Extension "'+e+'" could not be loaded. It was either not found or is not a valid extension.');e=l[e]}"function"===typeof e&&(e=e()),o.helper.isArray(e)||(e=[e]);var a=h(e,t);if(!a.valid)throw Error(a.error);for(var i=0;i<e.length;++i){switch(e[i].type){case"lang":n.push(e[i]);break;case"output":r.push(e[i]);break}if(e[i].hasOwnProperty("listeners"))for(var s in e[i].listeners)e[i].listeners.hasOwnProperty(s)&&g(s,e[i].listeners[s])}}function m(e,t){"function"===typeof e&&(e=e(new o.Converter)),o.helper.isArray(e)||(e=[e]);var a=h(e,t);if(!a.valid)throw Error(a.error);for(var i=0;i<e.length;++i)switch(e[i].type){case"lang":n.push(e[i]);break;case"output":r.push(e[i]);break;default:throw Error("Extension loader error: Type unrecognized!!!")}}function g(e,t){if(!o.helper.isString(e))throw Error("Invalid argument in converter.listen() method: name must be a string, but "+typeof e+" given");if("function"!==typeof t)throw Error("Invalid argument in converter.listen() method: callback must be a function, but "+typeof t+" given");a.hasOwnProperty(e)||(a[e]=[]),a[e].push(t)}function v(e){var t=e.match(/^\s*/)[0].length,n=new RegExp("^\\s{0,"+t+"}","gm");return e.replace(n,"")}p(),this._dispatch=function(e,t,n,r){if(a.hasOwnProperty(e))for(var i=0;i<a[e].length;++i){var o=a[e][i](e,t,this,n,r);o&&"undefined"!==typeof o&&(t=o)}return t},this.listen=function(e,t){return g(e,t),this},this.makeHtml=function(e){if(!e)return e;var a={gHtmlBlocks:[],gHtmlMdBlocks:[],gHtmlSpans:[],gUrls:{},gTitles:{},gDimensions:{},gListLevel:0,hashLinkCounts:{},langExtensions:n,outputModifiers:r,converter:this,ghCodeBlocks:[],metadata:{parsed:{},raw:"",format:""}};return e=e.replace(/¨/g,"¨T"),e=e.replace(/\$/g,"¨D"),e=e.replace(/\r\n/g,"\n"),e=e.replace(/\r/g,"\n"),e=e.replace(/\u00A0/g,"&nbsp;"),t.smartIndentationFix&&(e=v(e)),e="\n\n"+e+"\n\n",e=o.subParser("detab")(e,t,a),e=e.replace(/^[ \t]+$/gm,""),o.helper.forEach(n,(function(n){e=o.subParser("runExtension")(n,e,t,a)})),e=o.subParser("metadata")(e,t,a),e=o.subParser("hashPreCodeTags")(e,t,a),e=o.subParser("githubCodeBlocks")(e,t,a),e=o.subParser("hashHTMLBlocks")(e,t,a),e=o.subParser("hashCodeTags")(e,t,a),e=o.subParser("stripLinkDefinitions")(e,t,a),e=o.subParser("blockGamut")(e,t,a),e=o.subParser("unhashHTMLSpans")(e,t,a),e=o.subParser("unescapeSpecialChars")(e,t,a),e=e.replace(/¨D/g,"$$"),e=e.replace(/¨T/g,"¨"),e=o.subParser("completeHTMLDocument")(e,t,a),o.helper.forEach(r,(function(n){e=o.subParser("runExtension")(n,e,t,a)})),s=a.metadata,e},this.makeMarkdown=this.makeMd=function(e,t){if(e=e.replace(/\r\n/g,"\n"),e=e.replace(/\r/g,"\n"),e=e.replace(/>[ \t]+</,">¨NBSP;<"),!t){if(!window||!window.document)throw new Error("HTMLParser is undefined. If in a webworker or nodejs environment, you need to provide a WHATWG DOM and HTML such as JSDOM");t=window.document}var n=t.createElement("div");n.innerHTML=e;var r={preList:c(n)};l(n);for(var a=n.childNodes,i="",s=0;s<a.length;s++)i+=o.subParser("makeMarkdown.node")(a[s],r);function l(e){for(var t=0;t<e.childNodes.length;++t){var n=e.childNodes[t];3===n.nodeType?/\S/.test(n.nodeValue)||/^[ ]+$/.test(n.nodeValue)?(n.nodeValue=n.nodeValue.split("\n").join(" "),n.nodeValue=n.nodeValue.replace(/(\s)+/g,"$1")):(e.removeChild(n),--t):1===n.nodeType&&l(n)}}function c(e){for(var t=e.querySelectorAll("pre"),n=[],r=0;r<t.length;++r)if(1===t[r].childElementCount&&"code"===t[r].firstChild.tagName.toLowerCase()){var a=t[r].firstChild.innerHTML.trim(),i=t[r].firstChild.getAttribute("data-language")||"";if(""===i)for(var s=t[r].firstChild.className.split(" "),l=0;l<s.length;++l){var c=s[l].match(/^language-(.+)$/);if(null!==c){i=c[1];break}}a=o.helper.unescapeHTMLEntities(a),n.push(a),t[r].outerHTML='<precode language="'+i+'" precodenum="'+r.toString()+'"></precode>'}else n.push(t[r].innerHTML),t[r].innerHTML="",t[r].setAttribute("prenum",r.toString());return n}return i},this.setOption=function(e,n){t[e]=n},this.getOption=function(e){return t[e]},this.getOptions=function(){return t},this.addExtension=function(e,t){t=t||null,f(e,t)},this.useExtension=function(e){f(e)},this.setFlavor=function(e){if(!d.hasOwnProperty(e))throw Error(e+" flavor was not found");var n=d[e];for(var r in i=e,n)n.hasOwnProperty(r)&&(t[r]=n[r])},this.getFlavor=function(){return i},this.removeExtension=function(e){o.helper.isArray(e)||(e=[e]);for(var t=0;t<e.length;++t){for(var a=e[t],i=0;i<n.length;++i)n[i]===a&&n.splice(i,1);for(var s=0;s<r.length;++s)r[s]===a&&r.splice(s,1)}},this.getAllExtensions=function(){return{language:n,output:r}},this.getMetadata=function(e){return e?s.raw:s.parsed},this.getMetadataFormat=function(){return s.format},this._setMetadataPair=function(e,t){s.parsed[e]=t},this._setMetadataFormat=function(e){s.format=e},this._setMetadataRaw=function(e){s.raw=e}},o.subParser("anchors",(function(e,t,n){"use strict";e=n.converter._dispatch("anchors.before",e,t,n);var r=function(e,r,a,i,s,l,c){if(o.helper.isUndefined(c)&&(c=""),a=a.toLowerCase(),e.search(/\(<?\s*>? ?(['"].*['"])?\)$/m)>-1)i="";else if(!i){if(a||(a=r.toLowerCase().replace(/ ?\n/g," ")),i="#"+a,o.helper.isUndefined(n.gUrls[a]))return e;i=n.gUrls[a],o.helper.isUndefined(n.gTitles[a])||(c=n.gTitles[a])}i=i.replace(o.helper.regexes.asteriskDashAndColon,o.helper.escapeCharactersCallback);var u='<a href="'+i+'"';return""!==c&&null!==c&&(c=c.replace(/"/g,"&quot;"),c=c.replace(o.helper.regexes.asteriskDashAndColon,o.helper.escapeCharactersCallback),u+=' title="'+c+'"'),t.openLinksInNewWindow&&!/^#/.test(i)&&(u+=' rel="noopener noreferrer" target="¨E95Eblank"'),u+=">"+r+"</a>",u};return e=e.replace(/\[((?:\[[^\]]*]|[^\[\]])*)] ?(?:\n *)?\[(.*?)]()()()()/g,r),e=e.replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<([^>]*)>(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,r),e=e.replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,r),e=e.replace(/\[([^\[\]]+)]()()()()()/g,r),t.ghMentions&&(e=e.replace(/(^|\s)(\\)?(@([a-z\d]+(?:[a-z\d.-]+?[a-z\d]+)*))/gim,(function(e,n,r,a,i){if("\\"===r)return n+a;if(!o.helper.isString(t.ghMentionsLink))throw new Error("ghMentionsLink option must be a string");var s=t.ghMentionsLink.replace(/\{u}/g,i),l="";return t.openLinksInNewWindow&&(l=' rel="noopener noreferrer" target="¨E95Eblank"'),n+'<a href="'+s+'"'+l+">"+a+"</a>"}))),e=n.converter._dispatch("anchors.after",e,t,n),e}));var m=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+?\.[^'">\s]+?)()(\1)?(?=\s|$)(?!["<>])/gi,g=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?,()\[\]])?(\1)?(?=\s|$)(?!["<>])/gi,v=/()<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)()>()/gi,y=/(^|\s)(?:mailto:)?([A-Za-z0-9!#$%&'*+-/=?^_`{|}~.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?=$|\s)/gim,b=/<()(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi,w=function(e){"use strict";return function(t,n,r,a,i,s,l){r=r.replace(o.helper.regexes.asteriskDashAndColon,o.helper.escapeCharactersCallback);var c=r,u="",d="",h=n||"",p=l||"";return/^www\./i.test(r)&&(r=r.replace(/^www\./i,"http://www.")),e.excludeTrailingPunctuationFromURLs&&s&&(u=s),e.openLinksInNewWindow&&(d=' rel="noopener noreferrer" target="¨E95Eblank"'),h+'<a href="'+r+'"'+d+">"+c+"</a>"+u+p}},x=function(e,t){"use strict";return function(n,r,a){var i="mailto:";return r=r||"",a=o.subParser("unescapeSpecialChars")(a,e,t),e.encodeEmails?(i=o.helper.encodeEmailAddress(i+a),a=o.helper.encodeEmailAddress(a)):i+=a,r+'<a href="'+i+'">'+a+"</a>"}};o.subParser("autoLinks",(function(e,t,n){"use strict";return e=n.converter._dispatch("autoLinks.before",e,t,n),e=e.replace(v,w(t)),e=e.replace(b,x(t,n)),e=n.converter._dispatch("autoLinks.after",e,t,n),e})),o.subParser("simplifiedAutoLinks",(function(e,t,n){"use strict";return t.simplifiedAutoLink?(e=n.converter._dispatch("simplifiedAutoLinks.before",e,t,n),e=t.excludeTrailingPunctuationFromURLs?e.replace(g,w(t)):e.replace(m,w(t)),e=e.replace(y,x(t,n)),e=n.converter._dispatch("simplifiedAutoLinks.after",e,t,n),e):e})),o.subParser("blockGamut",(function(e,t,n){"use strict";return e=n.converter._dispatch("blockGamut.before",e,t,n),e=o.subParser("blockQuotes")(e,t,n),e=o.subParser("headers")(e,t,n),e=o.subParser("horizontalRule")(e,t,n),e=o.subParser("lists")(e,t,n),e=o.subParser("codeBlocks")(e,t,n),e=o.subParser("tables")(e,t,n),e=o.subParser("hashHTMLBlocks")(e,t,n),e=o.subParser("paragraphs")(e,t,n),e=n.converter._dispatch("blockGamut.after",e,t,n),e})),o.subParser("blockQuotes",(function(e,t,n){"use strict";e=n.converter._dispatch("blockQuotes.before",e,t,n),e+="\n\n";var r=/(^ {0,3}>[ \t]?.+\n(.+\n)*\n*)+/gm;return t.splitAdjacentBlockquotes&&(r=/^ {0,3}>[\s\S]*?(?:\n\n)/gm),e=e.replace(r,(function(e){return e=e.replace(/^[ \t]*>[ \t]?/gm,""),e=e.replace(/¨0/g,""),e=e.replace(/^[ \t]+$/gm,""),e=o.subParser("githubCodeBlocks")(e,t,n),e=o.subParser("blockGamut")(e,t,n),e=e.replace(/(^|\n)/g,"$1 "),e=e.replace(/(\s*<pre>[^\r]+?<\/pre>)/gm,(function(e,t){var n=t;return n=n.replace(/^ /gm,"¨0"),n=n.replace(/¨0/g,""),n})),o.subParser("hashBlock")("<blockquote>\n"+e+"\n</blockquote>",t,n)})),e=n.converter._dispatch("blockQuotes.after",e,t,n),e})),o.subParser("codeBlocks",(function(e,t,n){"use strict";e=n.converter._dispatch("codeBlocks.before",e,t,n),e+="¨0";var r=/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=¨0))/g;return e=e.replace(r,(function(e,r,a){var i=r,s=a,l="\n";return i=o.subParser("outdent")(i,t,n),i=o.subParser("encodeCode")(i,t,n),i=o.subParser("detab")(i,t,n),i=i.replace(/^\n+/g,""),i=i.replace(/\n+$/g,""),t.omitExtraWLInCodeBlocks&&(l=""),i="<pre><code>"+i+l+"</code></pre>",o.subParser("hashBlock")(i,t,n)+s})),e=e.replace(/¨0/,""),e=n.converter._dispatch("codeBlocks.after",e,t,n),e})),o.subParser("codeSpans",(function(e,t,n){"use strict";return e=n.converter._dispatch("codeSpans.before",e,t,n),"undefined"===typeof e&&(e=""),e=e.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,(function(e,r,a,i){var s=i;return s=s.replace(/^([ \t]*)/g,""),s=s.replace(/[ \t]*$/g,""),s=o.subParser("encodeCode")(s,t,n),s=r+"<code>"+s+"</code>",s=o.subParser("hashHTMLSpans")(s,t,n),s})),e=n.converter._dispatch("codeSpans.after",e,t,n),e})),o.subParser("completeHTMLDocument",(function(e,t,n){"use strict";if(!t.completeHTMLDocument)return e;e=n.converter._dispatch("completeHTMLDocument.before",e,t,n);var r="html",a="<!DOCTYPE HTML>\n",i="",o='<meta charset="utf-8">\n',s="",l="";for(var c in"undefined"!==typeof n.metadata.parsed.doctype&&(a="<!DOCTYPE "+n.metadata.parsed.doctype+">\n",r=n.metadata.parsed.doctype.toString().toLowerCase(),"html"!==r&&"html5"!==r||(o='<meta charset="utf-8">')),n.metadata.parsed)if(n.metadata.parsed.hasOwnProperty(c))switch(c.toLowerCase()){case"doctype":break;case"title":i="<title>"+n.metadata.parsed.title+"</title>\n";break;case"charset":o="html"===r||"html5"===r?'<meta charset="'+n.metadata.parsed.charset+'">\n':'<meta name="charset" content="'+n.metadata.parsed.charset+'">\n';break;case"language":case"lang":s=' lang="'+n.metadata.parsed[c]+'"',l+='<meta name="'+c+'" content="'+n.metadata.parsed[c]+'">\n';break;default:l+='<meta name="'+c+'" content="'+n.metadata.parsed[c]+'">\n'}return e=a+"<html"+s+">\n<head>\n"+i+o+l+"</head>\n<body>\n"+e.trim()+"\n</body>\n</html>",e=n.converter._dispatch("completeHTMLDocument.after",e,t,n),e})),o.subParser("detab",(function(e,t,n){"use strict";return e=n.converter._dispatch("detab.before",e,t,n),e=e.replace(/\t(?=\t)/g," "),e=e.replace(/\t/g,"¨A¨B"),e=e.replace(/¨B(.+?)¨A/g,(function(e,t){for(var n=t,r=4-n.length%4,a=0;a<r;a++)n+=" ";return n})),e=e.replace(/¨A/g," "),e=e.replace(/¨B/g,""),e=n.converter._dispatch("detab.after",e,t,n),e})),o.subParser("ellipsis",(function(e,t,n){"use strict";return t.ellipsis?(e=n.converter._dispatch("ellipsis.before",e,t,n),e=e.replace(/\.\.\./g,"…"),e=n.converter._dispatch("ellipsis.after",e,t,n),e):e})),o.subParser("emoji",(function(e,t,n){"use strict";if(!t.emoji)return e;e=n.converter._dispatch("emoji.before",e,t,n);var r=/:([\S]+?):/g;return e=e.replace(r,(function(e,t){return o.helper.emojis.hasOwnProperty(t)?o.helper.emojis[t]:e})),e=n.converter._dispatch("emoji.after",e,t,n),e})),o.subParser("encodeAmpsAndAngles",(function(e,t,n){"use strict";return e=n.converter._dispatch("encodeAmpsAndAngles.before",e,t,n),e=e.replace(/&(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);)/g,"&amp;"),e=e.replace(/<(?![a-z\/?$!])/gi,"&lt;"),e=e.replace(/</g,"&lt;"),e=e.replace(/>/g,"&gt;"),e=n.converter._dispatch("encodeAmpsAndAngles.after",e,t,n),e})),o.subParser("encodeBackslashEscapes",(function(e,t,n){"use strict";return e=n.converter._dispatch("encodeBackslashEscapes.before",e,t,n),e=e.replace(/\\(\\)/g,o.helper.escapeCharactersCallback),e=e.replace(/\\([`*_{}\[\]()>#+.!~=|:-])/g,o.helper.escapeCharactersCallback),e=n.converter._dispatch("encodeBackslashEscapes.after",e,t,n),e})),o.subParser("encodeCode",(function(e,t,n){"use strict";return e=n.converter._dispatch("encodeCode.before",e,t,n),e=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/([*_{}\[\]\\=~-])/g,o.helper.escapeCharactersCallback),e=n.converter._dispatch("encodeCode.after",e,t,n),e})),o.subParser("escapeSpecialCharsWithinTagAttributes",(function(e,t,n){"use strict";e=n.converter._dispatch("escapeSpecialCharsWithinTagAttributes.before",e,t,n);var r=/<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi,a=/<!(--(?:(?:[^>-]|-[^>])(?:[^-]|-[^-])*)--)>/gi;return e=e.replace(r,(function(e){return e.replace(/(.)<\/?code>(?=.)/g,"$1`").replace(/([\\`*_~=|])/g,o.helper.escapeCharactersCallback)})),e=e.replace(a,(function(e){return e.replace(/([\\`*_~=|])/g,o.helper.escapeCharactersCallback)})),e=n.converter._dispatch("escapeSpecialCharsWithinTagAttributes.after",e,t,n),e})),o.subParser("githubCodeBlocks",(function(e,t,n){"use strict";return t.ghCodeBlocks?(e=n.converter._dispatch("githubCodeBlocks.before",e,t,n),e+="¨0",e=e.replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*)\n([\s\S]*?)\n(?: {0,3})\1/g,(function(e,r,a,i){var s=t.omitExtraWLInCodeBlocks?"":"\n";return i=o.subParser("encodeCode")(i,t,n),i=o.subParser("detab")(i,t,n),i=i.replace(/^\n+/g,""),i=i.replace(/\n+$/g,""),i="<pre><code"+(a?' class="'+a+" language-"+a+'"':"")+">"+i+s+"</code></pre>",i=o.subParser("hashBlock")(i,t,n),"\n\n¨G"+(n.ghCodeBlocks.push({text:e,codeblock:i})-1)+"G\n\n"})),e=e.replace(/¨0/,""),n.converter._dispatch("githubCodeBlocks.after",e,t,n)):e})),o.subParser("hashBlock",(function(e,t,n){"use strict";return e=n.converter._dispatch("hashBlock.before",e,t,n),e=e.replace(/(^\n+|\n+$)/g,""),e="\n\n¨K"+(n.gHtmlBlocks.push(e)-1)+"K\n\n",e=n.converter._dispatch("hashBlock.after",e,t,n),e})),o.subParser("hashCodeTags",(function(e,t,n){"use strict";e=n.converter._dispatch("hashCodeTags.before",e,t,n);var r=function(e,r,a,i){var s=a+o.subParser("encodeCode")(r,t,n)+i;return"¨C"+(n.gHtmlSpans.push(s)-1)+"C"};return e=o.helper.replaceRecursiveRegExp(e,r,"<code\\b[^>]*>","</code>","gim"),e=n.converter._dispatch("hashCodeTags.after",e,t,n),e})),o.subParser("hashElement",(function(e,t,n){"use strict";return function(e,t){var r=t;return r=r.replace(/\n\n/g,"\n"),r=r.replace(/^\n/,""),r=r.replace(/\n+$/g,""),r="\n\n¨K"+(n.gHtmlBlocks.push(r)-1)+"K\n\n",r}})),o.subParser("hashHTMLBlocks",(function(e,t,n){"use strict";e=n.converter._dispatch("hashHTMLBlocks.before",e,t,n);var r=["pre","div","h1","h2","h3","h4","h5","h6","blockquote","table","dl","ol","ul","script","noscript","form","fieldset","iframe","math","style","section","header","footer","nav","article","aside","address","audio","canvas","figure","hgroup","output","video","p"],a=function(e,t,r,a){var i=e;return-1!==r.search(/\bmarkdown\b/)&&(i=r+n.converter.makeHtml(t)+a),"\n\n¨K"+(n.gHtmlBlocks.push(i)-1)+"K\n\n"};t.backslashEscapesHTMLTags&&(e=e.replace(/\\<(\/?[^>]+?)>/g,(function(e,t){return"&lt;"+t+"&gt;"})));for(var i=0;i<r.length;++i){var s,l=new RegExp("^ {0,3}(<"+r[i]+"\\b[^>]*>)","im"),c="<"+r[i]+"\\b[^>]*>",u="</"+r[i]+">";while(-1!==(s=o.helper.regexIndexOf(e,l))){var d=o.helper.splitAtIndex(e,s),h=o.helper.replaceRecursiveRegExp(d[1],a,c,u,"im");if(h===d[1])break;e=d[0].concat(h)}}return e=e.replace(/(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,o.subParser("hashElement")(e,t,n)),e=o.helper.replaceRecursiveRegExp(e,(function(e){return"\n\n¨K"+(n.gHtmlBlocks.push(e)-1)+"K\n\n"}),"^ {0,3}\x3c!--","--\x3e","gm"),e=e.replace(/(?:\n\n)( {0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,o.subParser("hashElement")(e,t,n)),e=n.converter._dispatch("hashHTMLBlocks.after",e,t,n),e})),o.subParser("hashHTMLSpans",(function(e,t,n){"use strict";function r(e){return"¨C"+(n.gHtmlSpans.push(e)-1)+"C"}return e=n.converter._dispatch("hashHTMLSpans.before",e,t,n),e=e.replace(/<[^>]+?\/>/gi,(function(e){return r(e)})),e=e.replace(/<([^>]+?)>[\s\S]*?<\/\1>/g,(function(e){return r(e)})),e=e.replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g,(function(e){return r(e)})),e=e.replace(/<[^>]+?>/gi,(function(e){return r(e)})),e=n.converter._dispatch("hashHTMLSpans.after",e,t,n),e})),o.subParser("unhashHTMLSpans",(function(e,t,n){"use strict";e=n.converter._dispatch("unhashHTMLSpans.before",e,t,n);for(var r=0;r<n.gHtmlSpans.length;++r){var a=n.gHtmlSpans[r],i=0;while(/¨C(\d+)C/.test(a)){var o=RegExp.$1;if(a=a.replace("¨C"+o+"C",n.gHtmlSpans[o]),10===i){console.error("maximum nesting of 10 spans reached!!!");break}++i}e=e.replace("¨C"+r+"C",a)}return e=n.converter._dispatch("unhashHTMLSpans.after",e,t,n),e})),o.subParser("hashPreCodeTags",(function(e,t,n){"use strict";e=n.converter._dispatch("hashPreCodeTags.before",e,t,n);var r=function(e,r,a,i){var s=a+o.subParser("encodeCode")(r,t,n)+i;return"\n\n¨G"+(n.ghCodeBlocks.push({text:e,codeblock:s})-1)+"G\n\n"};return e=o.helper.replaceRecursiveRegExp(e,r,"^ {0,3}<pre\\b[^>]*>\\s*<code\\b[^>]*>","^ {0,3}</code>\\s*</pre>","gim"),e=n.converter._dispatch("hashPreCodeTags.after",e,t,n),e})),o.subParser("headers",(function(e,t,n){"use strict";e=n.converter._dispatch("headers.before",e,t,n);var r=isNaN(parseInt(t.headerLevelStart))?1:parseInt(t.headerLevelStart),a=t.smoothLivePreview?/^(.+)[ \t]*\n={2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n=+[ \t]*\n+/gm,i=t.smoothLivePreview?/^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n-+[ \t]*\n+/gm;e=e.replace(a,(function(e,a){var i=o.subParser("spanGamut")(a,t,n),s=t.noHeaderId?"":' id="'+l(a)+'"',c=r,u="<h"+c+s+">"+i+"</h"+c+">";return o.subParser("hashBlock")(u,t,n)})),e=e.replace(i,(function(e,a){var i=o.subParser("spanGamut")(a,t,n),s=t.noHeaderId?"":' id="'+l(a)+'"',c=r+1,u="<h"+c+s+">"+i+"</h"+c+">";return o.subParser("hashBlock")(u,t,n)}));var s=t.requireSpaceBeforeHeadingText?/^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm:/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm;function l(e){var r,a;if(t.customizedHeaderId){var i=e.match(/\{([^{]+?)}\s*$/);i&&i[1]&&(e=i[1])}return r=e,a=o.helper.isString(t.prefixHeaderId)?t.prefixHeaderId:!0===t.prefixHeaderId?"section-":"",t.rawPrefixHeaderId||(r=a+r),r=t.ghCompatibleHeaderId?r.replace(/ /g,"-").replace(/&amp;/g,"").replace(/¨T/g,"").replace(/¨D/g,"").replace(/[&+$,\/:;=?@"#{}|^¨~\[\]`\\*)(%.!'<>]/g,"").toLowerCase():t.rawHeaderId?r.replace(/ /g,"-").replace(/&amp;/g,"&").replace(/¨T/g,"¨").replace(/¨D/g,"$").replace(/["']/g,"-").toLowerCase():r.replace(/[^\w]/g,"").toLowerCase(),t.rawPrefixHeaderId&&(r=a+r),n.hashLinkCounts[r]?r=r+"-"+n.hashLinkCounts[r]++:n.hashLinkCounts[r]=1,r}return e=e.replace(s,(function(e,a,i){var s=i;t.customizedHeaderId&&(s=i.replace(/\s?\{([^{]+?)}\s*$/,""));var c=o.subParser("spanGamut")(s,t,n),u=t.noHeaderId?"":' id="'+l(i)+'"',d=r-1+a.length,h="<h"+d+u+">"+c+"</h"+d+">";return o.subParser("hashBlock")(h,t,n)})),e=n.converter._dispatch("headers.after",e,t,n),e})),o.subParser("horizontalRule",(function(e,t,n){"use strict";e=n.converter._dispatch("horizontalRule.before",e,t,n);var r=o.subParser("hashBlock")("<hr />",t,n);return e=e.replace(/^ {0,2}( ?-){3,}[ \t]*$/gm,r),e=e.replace(/^ {0,2}( ?\*){3,}[ \t]*$/gm,r),e=e.replace(/^ {0,2}( ?_){3,}[ \t]*$/gm,r),e=n.converter._dispatch("horizontalRule.after",e,t,n),e})),o.subParser("images",(function(e,t,n){"use strict";e=n.converter._dispatch("images.before",e,t,n);var r=/!\[([^\]]*?)][ \t]*()\([ \t]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,a=/!\[([^\]]*?)][ \t]*()\([ \t]?<([^>]*)>(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(?:(["'])([^"]*?)\6))?[ \t]?\)/g,i=/!\[([^\]]*?)][ \t]*()\([ \t]?<?(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,s=/!\[([^\]]*?)] ?(?:\n *)?\[([\s\S]*?)]()()()()()/g,l=/!\[([^\[\]]+)]()()()()()/g;function c(e,t,n,r,a,i,o,s){return r=r.replace(/\s/g,""),u(e,t,n,r,a,i,o,s)}function u(e,t,r,a,i,s,l,c){var u=n.gUrls,d=n.gTitles,h=n.gDimensions;if(r=r.toLowerCase(),c||(c=""),e.search(/\(<?\s*>? ?(['"].*['"])?\)$/m)>-1)a="";else if(""===a||null===a){if(""!==r&&null!==r||(r=t.toLowerCase().replace(/ ?\n/g," ")),a="#"+r,o.helper.isUndefined(u[r]))return e;a=u[r],o.helper.isUndefined(d[r])||(c=d[r]),o.helper.isUndefined(h[r])||(i=h[r].width,s=h[r].height)}t=t.replace(/"/g,"&quot;").replace(o.helper.regexes.asteriskDashAndColon,o.helper.escapeCharactersCallback),a=a.replace(o.helper.regexes.asteriskDashAndColon,o.helper.escapeCharactersCallback);var p='<img src="'+a+'" alt="'+t+'"';return c&&o.helper.isString(c)&&(c=c.replace(/"/g,"&quot;").replace(o.helper.regexes.asteriskDashAndColon,o.helper.escapeCharactersCallback),p+=' title="'+c+'"'),i&&s&&(i="*"===i?"auto":i,s="*"===s?"auto":s,p+=' width="'+i+'"',p+=' height="'+s+'"'),p+=" />",p}return e=e.replace(s,u),e=e.replace(i,c),e=e.replace(a,u),e=e.replace(r,u),e=e.replace(l,u),e=n.converter._dispatch("images.after",e,t,n),e})),o.subParser("italicsAndBold",(function(e,t,n){"use strict";function r(e,t,n){return t+e+n}return e=n.converter._dispatch("italicsAndBold.before",e,t,n),t.literalMidWordUnderscores?(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,(function(e,t){return r(t,"<strong><em>","</em></strong>")})),e=e.replace(/\b__(\S[\s\S]*?)__\b/g,(function(e,t){return r(t,"<strong>","</strong>")})),e=e.replace(/\b_(\S[\s\S]*?)_\b/g,(function(e,t){return r(t,"<em>","</em>")}))):(e=e.replace(/___(\S[\s\S]*?)___/g,(function(e,t){return/\S$/.test(t)?r(t,"<strong><em>","</em></strong>"):e})),e=e.replace(/__(\S[\s\S]*?)__/g,(function(e,t){return/\S$/.test(t)?r(t,"<strong>","</strong>"):e})),e=e.replace(/_([^\s_][\s\S]*?)_/g,(function(e,t){return/\S$/.test(t)?r(t,"<em>","</em>"):e}))),t.literalMidWordAsterisks?(e=e.replace(/([^*]|^)\B\*\*\*(\S[\s\S]*?)\*\*\*\B(?!\*)/g,(function(e,t,n){return r(n,t+"<strong><em>","</em></strong>")})),e=e.replace(/([^*]|^)\B\*\*(\S[\s\S]*?)\*\*\B(?!\*)/g,(function(e,t,n){return r(n,t+"<strong>","</strong>")})),e=e.replace(/([^*]|^)\B\*(\S[\s\S]*?)\*\B(?!\*)/g,(function(e,t,n){return r(n,t+"<em>","</em>")}))):(e=e.replace(/\*\*\*(\S[\s\S]*?)\*\*\*/g,(function(e,t){return/\S$/.test(t)?r(t,"<strong><em>","</em></strong>"):e})),e=e.replace(/\*\*(\S[\s\S]*?)\*\*/g,(function(e,t){return/\S$/.test(t)?r(t,"<strong>","</strong>"):e})),e=e.replace(/\*([^\s*][\s\S]*?)\*/g,(function(e,t){return/\S$/.test(t)?r(t,"<em>","</em>"):e}))),e=n.converter._dispatch("italicsAndBold.after",e,t,n),e})),o.subParser("lists",(function(e,t,n){"use strict";function r(e,r){n.gListLevel++,e=e.replace(/\n{2,}$/,"\n"),e+="¨0";var a=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0| {0,3}([*+-]|\d+[.])[ \t]+))/gm,i=/\n[ \t]*\n(?!¨0)/.test(e);return t.disableForced4SpacesIndentedSublists&&(a=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0|\2([*+-]|\d+[.])[ \t]+))/gm),e=e.replace(a,(function(e,r,a,s,l,c,u){u=u&&""!==u.trim();var d=o.subParser("outdent")(l,t,n),h="";return c&&t.tasklists&&(h=' class="task-list-item" style="list-style-type: none;"',d=d.replace(/^[ \t]*\[(x|X| )?]/m,(function(){var e='<input type="checkbox" disabled style="margin: 0px 0.35em 0.25em -1.6em; vertical-align: middle;"';return u&&(e+=" checked"),e+=">",e}))),d=d.replace(/^([-*+]|\d\.)[ \t]+[\S\n ]*/g,(function(e){return"¨A"+e})),r||d.search(/\n{2,}/)>-1?(d=o.subParser("githubCodeBlocks")(d,t,n),d=o.subParser("blockGamut")(d,t,n)):(d=o.subParser("lists")(d,t,n),d=d.replace(/\n$/,""),d=o.subParser("hashHTMLBlocks")(d,t,n),d=d.replace(/\n\n+/g,"\n\n"),d=i?o.subParser("paragraphs")(d,t,n):o.subParser("spanGamut")(d,t,n)),d=d.replace("¨A",""),d="<li"+h+">"+d+"</li>\n",d})),e=e.replace(/¨0/g,""),n.gListLevel--,r&&(e=e.replace(/\s+$/,"")),e}function a(e,t){if("ol"===t){var n=e.match(/^ *(\d+)\./);if(n&&"1"!==n[1])return' start="'+n[1]+'"'}return""}function i(e,n,i){var o=t.disableForced4SpacesIndentedSublists?/^ ?\d+\.[ \t]/gm:/^ {0,3}\d+\.[ \t]/gm,s=t.disableForced4SpacesIndentedSublists?/^ ?[*+-][ \t]/gm:/^ {0,3}[*+-][ \t]/gm,l="ul"===n?o:s,c="";if(-1!==e.search(l))(function t(u){var d=u.search(l),h=a(e,n);-1!==d?(c+="\n\n<"+n+h+">\n"+r(u.slice(0,d),!!i)+"</"+n+">\n",n="ul"===n?"ol":"ul",l="ul"===n?o:s,t(u.slice(d))):c+="\n\n<"+n+h+">\n"+r(u,!!i)+"</"+n+">\n"})(e);else{var u=a(e,n);c="\n\n<"+n+u+">\n"+r(e,!!i)+"</"+n+">\n"}return c}return e=n.converter._dispatch("lists.before",e,t,n),e+="¨0",e=n.gListLevel?e.replace(/^(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,(function(e,t,n){var r=n.search(/[*+-]/g)>-1?"ul":"ol";return i(t,r,!0)})):e.replace(/(\n\n|^\n?)(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,(function(e,t,n,r){var a=r.search(/[*+-]/g)>-1?"ul":"ol";return i(n,a,!1)})),e=e.replace(/¨0/,""),e=n.converter._dispatch("lists.after",e,t,n),e})),o.subParser("metadata",(function(e,t,n){"use strict";if(!t.metadata)return e;function r(e){n.metadata.raw=e,e=e.replace(/&/g,"&amp;").replace(/"/g,"&quot;"),e=e.replace(/\n {4}/g," "),e.replace(/^([\S ]+): +([\s\S]+?)$/gm,(function(e,t,r){return n.metadata.parsed[t]=r,""}))}return e=n.converter._dispatch("metadata.before",e,t,n),e=e.replace(/^\s*«««+(\S*?)\n([\s\S]+?)\n»»»+\n/,(function(e,t,n){return r(n),"¨M"})),e=e.replace(/^\s*---+(\S*?)\n([\s\S]+?)\n---+\n/,(function(e,t,a){return t&&(n.metadata.format=t),r(a),"¨M"})),e=e.replace(/¨M/g,""),e=n.converter._dispatch("metadata.after",e,t,n),e})),o.subParser("outdent",(function(e,t,n){"use strict";return e=n.converter._dispatch("outdent.before",e,t,n),e=e.replace(/^(\t|[ ]{1,4})/gm,"¨0"),e=e.replace(/¨0/g,""),e=n.converter._dispatch("outdent.after",e,t,n),e})),o.subParser("paragraphs",(function(e,t,n){"use strict";e=n.converter._dispatch("paragraphs.before",e,t,n),e=e.replace(/^\n+/g,""),e=e.replace(/\n+$/g,"");for(var r=e.split(/\n{2,}/g),a=[],i=r.length,s=0;s<i;s++){var l=r[s];l.search(/¨(K|G)(\d+)\1/g)>=0?a.push(l):l.search(/\S/)>=0&&(l=o.subParser("spanGamut")(l,t,n),l=l.replace(/^([ \t]*)/g,"<p>"),l+="</p>",a.push(l))}for(i=a.length,s=0;s<i;s++){var c="",u=a[s],d=!1;while(/¨(K|G)(\d+)\1/.test(u)){var h=RegExp.$1,p=RegExp.$2;c="K"===h?n.gHtmlBlocks[p]:d?o.subParser("encodeCode")(n.ghCodeBlocks[p].text,t,n):n.ghCodeBlocks[p].codeblock,c=c.replace(/\$/g,"$$$$"),u=u.replace(/(\n\n)?¨(K|G)\d+\2(\n\n)?/,c),/^<pre\b[^>]*>\s*<code\b[^>]*>/.test(u)&&(d=!0)}a[s]=u}return e=a.join("\n"),e=e.replace(/^\n+/g,""),e=e.replace(/\n+$/g,""),n.converter._dispatch("paragraphs.after",e,t,n)})),o.subParser("runExtension",(function(e,t,n,r){"use strict";if(e.filter)t=e.filter(t,r.converter,n);else if(e.regex){var a=e.regex;a instanceof RegExp||(a=new RegExp(a,"g")),t=t.replace(a,e.replace)}return t})),o.subParser("spanGamut",(function(e,t,n){"use strict";return e=n.converter._dispatch("spanGamut.before",e,t,n),e=o.subParser("codeSpans")(e,t,n),e=o.subParser("escapeSpecialCharsWithinTagAttributes")(e,t,n),e=o.subParser("encodeBackslashEscapes")(e,t,n),e=o.subParser("images")(e,t,n),e=o.subParser("anchors")(e,t,n),e=o.subParser("autoLinks")(e,t,n),e=o.subParser("simplifiedAutoLinks")(e,t,n),e=o.subParser("emoji")(e,t,n),e=o.subParser("underline")(e,t,n),e=o.subParser("italicsAndBold")(e,t,n),e=o.subParser("strikethrough")(e,t,n),e=o.subParser("ellipsis")(e,t,n),e=o.subParser("hashHTMLSpans")(e,t,n),e=o.subParser("encodeAmpsAndAngles")(e,t,n),t.simpleLineBreaks?/\n\n¨K/.test(e)||(e=e.replace(/\n+/g,"<br />\n")):e=e.replace(/ +\n/g,"<br />\n"),e=n.converter._dispatch("spanGamut.after",e,t,n),e})),o.subParser("strikethrough",(function(e,t,n){"use strict";function r(e){return t.simplifiedAutoLink&&(e=o.subParser("simplifiedAutoLinks")(e,t,n)),"<del>"+e+"</del>"}return t.strikethrough&&(e=n.converter._dispatch("strikethrough.before",e,t,n),e=e.replace(/(?:~){2}([\s\S]+?)(?:~){2}/g,(function(e,t){return r(t)})),e=n.converter._dispatch("strikethrough.after",e,t,n)),e})),o.subParser("stripLinkDefinitions",(function(e,t,n){"use strict";var r=/^ {0,3}\[([^\]]+)]:[ \t]*\n?[ \t]*<?([^>\s]+)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=¨0))/gm,a=/^ {0,3}\[([^\]]+)]:[ \t]*\n?[ \t]*<?(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n\n|(?=¨0)|(?=\n\[))/gm;e+="¨0";var i=function(r,a,i,s,l,c,u){return a=a.toLowerCase(),e.toLowerCase().split(a).length-1<2?r:(i.match(/^data:.+?\/.+?;base64,/)?n.gUrls[a]=i.replace(/\s/g,""):n.gUrls[a]=o.subParser("encodeAmpsAndAngles")(i,t,n),c?c+u:(u&&(n.gTitles[a]=u.replace(/"|'/g,"&quot;")),t.parseImgDimensions&&s&&l&&(n.gDimensions[a]={width:s,height:l}),""))};return e=e.replace(a,i),e=e.replace(r,i),e=e.replace(/¨0/,""),e})),o.subParser("tables",(function(e,t,n){"use strict";if(!t.tables)return e;var r=/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,a=/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm;function i(e){return/^:[ \t]*--*$/.test(e)?' style="text-align:left;"':/^--*[ \t]*:[ \t]*$/.test(e)?' style="text-align:right;"':/^:[ \t]*--*[ \t]*:$/.test(e)?' style="text-align:center;"':""}function s(e,r){var a="";return e=e.trim(),(t.tablesHeaderId||t.tableHeaderId)&&(a=' id="'+e.replace(/ /g,"_").toLowerCase()+'"'),e=o.subParser("spanGamut")(e,t,n),"<th"+a+r+">"+e+"</th>\n"}function l(e,r){var a=o.subParser("spanGamut")(e,t,n);return"<td"+r+">"+a+"</td>\n"}function c(e,t){for(var n="<table>\n<thead>\n<tr>\n",r=e.length,a=0;a<r;++a)n+=e[a];for(n+="</tr>\n</thead>\n<tbody>\n",a=0;a<t.length;++a){n+="<tr>\n";for(var i=0;i<r;++i)n+=t[a][i];n+="</tr>\n"}return n+="</tbody>\n</table>\n",n}function u(e){var r,a=e.split("\n");for(r=0;r<a.length;++r)/^ {0,3}\|/.test(a[r])&&(a[r]=a[r].replace(/^ {0,3}\|/,"")),/\|[ \t]*$/.test(a[r])&&(a[r]=a[r].replace(/\|[ \t]*$/,"")),a[r]=o.subParser("codeSpans")(a[r],t,n);var u=a[0].split("|").map((function(e){return e.trim()})),d=a[1].split("|").map((function(e){return e.trim()})),h=[],p=[],f=[],m=[];for(a.shift(),a.shift(),r=0;r<a.length;++r)""!==a[r].trim()&&h.push(a[r].split("|").map((function(e){return e.trim()})));if(u.length<d.length)return e;for(r=0;r<d.length;++r)f.push(i(d[r]));for(r=0;r<u.length;++r)o.helper.isUndefined(f[r])&&(f[r]=""),p.push(s(u[r],f[r]));for(r=0;r<h.length;++r){for(var g=[],v=0;v<p.length;++v)o.helper.isUndefined(h[r][v]),g.push(l(h[r][v],f[v]));m.push(g)}return c(p,m)}return e=n.converter._dispatch("tables.before",e,t,n),e=e.replace(/\\(\|)/g,o.helper.escapeCharactersCallback),e=e.replace(r,u),e=e.replace(a,u),e=n.converter._dispatch("tables.after",e,t,n),e})),o.subParser("underline",(function(e,t,n){"use strict";return t.underline?(e=n.converter._dispatch("underline.before",e,t,n),t.literalMidWordUnderscores?(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,(function(e,t){return"<u>"+t+"</u>"})),e=e.replace(/\b__(\S[\s\S]*?)__\b/g,(function(e,t){return"<u>"+t+"</u>"}))):(e=e.replace(/___(\S[\s\S]*?)___/g,(function(e,t){return/\S$/.test(t)?"<u>"+t+"</u>":e})),e=e.replace(/__(\S[\s\S]*?)__/g,(function(e,t){return/\S$/.test(t)?"<u>"+t+"</u>":e}))),e=e.replace(/(_)/g,o.helper.escapeCharactersCallback),e=n.converter._dispatch("underline.after",e,t,n),e):e})),o.subParser("unescapeSpecialChars",(function(e,t,n){"use strict";return e=n.converter._dispatch("unescapeSpecialChars.before",e,t,n),e=e.replace(/¨E(\d+)E/g,(function(e,t){var n=parseInt(t);return String.fromCharCode(n)})),e=n.converter._dispatch("unescapeSpecialChars.after",e,t,n),e})),o.subParser("makeMarkdown.blockquote",(function(e,t){"use strict";var n="";if(e.hasChildNodes())for(var r=e.childNodes,a=r.length,i=0;i<a;++i){var s=o.subParser("makeMarkdown.node")(r[i],t);""!==s&&(n+=s)}return n=n.trim(),n="> "+n.split("\n").join("\n> "),n})),o.subParser("makeMarkdown.codeBlock",(function(e,t){"use strict";var n=e.getAttribute("language"),r=e.getAttribute("precodenum");return"```"+n+"\n"+t.preList[r]+"\n```"})),o.subParser("makeMarkdown.codeSpan",(function(e){"use strict";return"`"+e.innerHTML+"`"})),o.subParser("makeMarkdown.emphasis",(function(e,t){"use strict";var n="";if(e.hasChildNodes()){n+="*";for(var r=e.childNodes,a=r.length,i=0;i<a;++i)n+=o.subParser("makeMarkdown.node")(r[i],t);n+="*"}return n})),o.subParser("makeMarkdown.header",(function(e,t,n){"use strict";var r=new Array(n+1).join("#"),a="";if(e.hasChildNodes()){a=r+" ";for(var i=e.childNodes,s=i.length,l=0;l<s;++l)a+=o.subParser("makeMarkdown.node")(i[l],t)}return a})),o.subParser("makeMarkdown.hr",(function(){"use strict";return"---"})),o.subParser("makeMarkdown.image",(function(e){"use strict";var t="";return e.hasAttribute("src")&&(t+="!["+e.getAttribute("alt")+"](",t+="<"+e.getAttribute("src")+">",e.hasAttribute("width")&&e.hasAttribute("height")&&(t+=" ="+e.getAttribute("width")+"x"+e.getAttribute("height")),e.hasAttribute("title")&&(t+=' "'+e.getAttribute("title")+'"'),t+=")"),t})),o.subParser("makeMarkdown.links",(function(e,t){"use strict";var n="";if(e.hasChildNodes()&&e.hasAttribute("href")){var r=e.childNodes,a=r.length;n="[";for(var i=0;i<a;++i)n+=o.subParser("makeMarkdown.node")(r[i],t);n+="](",n+="<"+e.getAttribute("href")+">",e.hasAttribute("title")&&(n+=' "'+e.getAttribute("title")+'"'),n+=")"}return n})),o.subParser("makeMarkdown.list",(function(e,t,n){"use strict";var r="";if(!e.hasChildNodes())return"";for(var a=e.childNodes,i=a.length,s=e.getAttribute("start")||1,l=0;l<i;++l)if("undefined"!==typeof a[l].tagName&&"li"===a[l].tagName.toLowerCase()){var c="";c="ol"===n?s.toString()+". ":"- ",r+=c+o.subParser("makeMarkdown.listItem")(a[l],t),++s}return r+="\n\x3c!-- --\x3e\n",r.trim()})),o.subParser("makeMarkdown.listItem",(function(e,t){"use strict";for(var n="",r=e.childNodes,a=r.length,i=0;i<a;++i)n+=o.subParser("makeMarkdown.node")(r[i],t);return/\n$/.test(n)?n=n.split("\n").join("\n ").replace(/^ {4}$/gm,"").replace(/\n\n+/g,"\n\n"):n+="\n",n})),o.subParser("makeMarkdown.node",(function(e,t,n){"use strict";n=n||!1;var r="";if(3===e.nodeType)return o.subParser("makeMarkdown.txt")(e,t);if(8===e.nodeType)return"\x3c!--"+e.data+"--\x3e\n\n";if(1!==e.nodeType)return"";var a=e.tagName.toLowerCase();switch(a){case"h1":n||(r=o.subParser("makeMarkdown.header")(e,t,1)+"\n\n");break;case"h2":n||(r=o.subParser("makeMarkdown.header")(e,t,2)+"\n\n");break;case"h3":n||(r=o.subParser("makeMarkdown.header")(e,t,3)+"\n\n");break;case"h4":n||(r=o.subParser("makeMarkdown.header")(e,t,4)+"\n\n");break;case"h5":n||(r=o.subParser("makeMarkdown.header")(e,t,5)+"\n\n");break;case"h6":n||(r=o.subParser("makeMarkdown.header")(e,t,6)+"\n\n");break;case"p":n||(r=o.subParser("makeMarkdown.paragraph")(e,t)+"\n\n");break;case"blockquote":n||(r=o.subParser("makeMarkdown.blockquote")(e,t)+"\n\n");break;case"hr":n||(r=o.subParser("makeMarkdown.hr")(e,t)+"\n\n");break;case"ol":n||(r=o.subParser("makeMarkdown.list")(e,t,"ol")+"\n\n");break;case"ul":n||(r=o.subParser("makeMarkdown.list")(e,t,"ul")+"\n\n");break;case"precode":n||(r=o.subParser("makeMarkdown.codeBlock")(e,t)+"\n\n");break;case"pre":n||(r=o.subParser("makeMarkdown.pre")(e,t)+"\n\n");break;case"table":n||(r=o.subParser("makeMarkdown.table")(e,t)+"\n\n");break;case"code":r=o.subParser("makeMarkdown.codeSpan")(e,t);break;case"em":case"i":r=o.subParser("makeMarkdown.emphasis")(e,t);break;case"strong":case"b":r=o.subParser("makeMarkdown.strong")(e,t);break;case"del":r=o.subParser("makeMarkdown.strikethrough")(e,t);break;case"a":r=o.subParser("makeMarkdown.links")(e,t);break;case"img":r=o.subParser("makeMarkdown.image")(e,t);break;default:r=e.outerHTML+"\n\n"}return r})),o.subParser("makeMarkdown.paragraph",(function(e,t){"use strict";var n="";if(e.hasChildNodes())for(var r=e.childNodes,a=r.length,i=0;i<a;++i)n+=o.subParser("makeMarkdown.node")(r[i],t);return n=n.trim(),n})),o.subParser("makeMarkdown.pre",(function(e,t){"use strict";var n=e.getAttribute("prenum");return"<pre>"+t.preList[n]+"</pre>"})),o.subParser("makeMarkdown.strikethrough",(function(e,t){"use strict";var n="";if(e.hasChildNodes()){n+="~~";for(var r=e.childNodes,a=r.length,i=0;i<a;++i)n+=o.subParser("makeMarkdown.node")(r[i],t);n+="~~"}return n})),o.subParser("makeMarkdown.strong",(function(e,t){"use strict";var n="";if(e.hasChildNodes()){n+="**";for(var r=e.childNodes,a=r.length,i=0;i<a;++i)n+=o.subParser("makeMarkdown.node")(r[i],t);n+="**"}return n})),o.subParser("makeMarkdown.table",(function(e,t){"use strict";var n,r,a="",i=[[],[]],s=e.querySelectorAll("thead>tr>th"),l=e.querySelectorAll("tbody>tr");for(n=0;n<s.length;++n){var c=o.subParser("makeMarkdown.tableCell")(s[n],t),u="---";if(s[n].hasAttribute("style")){var d=s[n].getAttribute("style").toLowerCase().replace(/\s/g,"");switch(d){case"text-align:left;":u=":---";break;case"text-align:right;":u="---:";break;case"text-align:center;":u=":---:";break}}i[0][n]=c.trim(),i[1][n]=u}for(n=0;n<l.length;++n){var h=i.push([])-1,p=l[n].getElementsByTagName("td");for(r=0;r<s.length;++r){var f=" ";"undefined"!==typeof p[r]&&(f=o.subParser("makeMarkdown.tableCell")(p[r],t)),i[h].push(f)}}var m=3;for(n=0;n<i.length;++n)for(r=0;r<i[n].length;++r){var g=i[n][r].length;g>m&&(m=g)}for(n=0;n<i.length;++n){for(r=0;r<i[n].length;++r)1===n?":"===i[n][r].slice(-1)?i[n][r]=o.helper.padEnd(i[n][r].slice(-1),m-1,"-")+":":i[n][r]=o.helper.padEnd(i[n][r],m,"-"):i[n][r]=o.helper.padEnd(i[n][r],m);a+="| "+i[n].join(" | ")+" |\n"}return a.trim()})),o.subParser("makeMarkdown.tableCell",(function(e,t){"use strict";var n="";if(!e.hasChildNodes())return"";for(var r=e.childNodes,a=r.length,i=0;i<a;++i)n+=o.subParser("makeMarkdown.node")(r[i],t,!0);return n.trim()})),o.subParser("makeMarkdown.txt",(function(e){"use strict";var t=e.nodeValue;return t=t.replace(/ +/g," "),t=t.replace(/¨NBSP;/g," "),t=o.helper.unescapeHTMLEntities(t),t=t.replace(/([*_~|`])/g,"\\$1"),t=t.replace(/^(\s*)>/g,"\\$1>"),t=t.replace(/^#/gm,"\\#"),t=t.replace(/^(\s*)([-=]{3,})(\s*)$/,"$1\\$2$3"),t=t.replace(/^( {0,3}\d+)\./gm,"$1\\."),t=t.replace(/^( {0,3})([+-])/gm,"$1\\$2"),t=t.replace(/]([\s]*)\(/g,"\\]$1\\("),t=t.replace(/^ {0,3}\[([\S \t]*?)]:/gm,"\\[$1]:"),t}));r=function(){"use strict";return o}.call(t,n,t,e),void 0===r||(e.exports=r)}.call(this)},3128:function(e,t,n){"use strict";var r=n(452).Buffer,a=r.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(e){if(!e)return"utf8";var t;while(1)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function o(e){var t=i(e);if("string"!==typeof t&&(r.isEncoding===a||!a(e)))throw new Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=o(e),this.encoding){case"utf16le":this.text=f,this.end=m,t=4;break;case"utf8":this.fillLast=d,t=4;break;case"base64":this.text=g,this.end=v,t=3;break;default:return this.write=y,void(this.end=b)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function l(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function c(e,t,n){var r=t.length-1;if(r<n)return 0;var a=l(t[r]);return a>=0?(a>0&&(e.lastNeed=a-1),a):--r<n||-2===a?0:(a=l(t[r]),a>=0?(a>0&&(e.lastNeed=a-2),a):--r<n||-2===a?0:(a=l(t[r]),a>=0?(a>0&&(2===a?a=0:e.lastNeed=a-3),a):0))}function u(e,t,n){if(128!==(192&t[0]))return e.lastNeed=0,"<22>";if(e.lastNeed>1&&t.length>1){if(128!==(192&t[1]))return e.lastNeed=1,"<22>";if(e.lastNeed>2&&t.length>2&&128!==(192&t[2]))return e.lastNeed=2,"<22>"}}function d(e){var t=this.lastTotal-this.lastNeed,n=u(this,e,t);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function h(e,t){var n=c(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)}function p(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"<22>":t}function f(e,t){if((e.length-t)%2===0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function m(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function g(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function v(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function y(e){return e.toString(this.encoding)}function b(e){return e&&e.length?this.write(e):""}t.I=s,s.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(t=this.fillLast(e),void 0===t)return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},s.prototype.end=p,s.prototype.text=h,s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},3512:function(e,t,n){"use strict";n(8992),n(1454),n(8872);function r(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Array.from("string"===typeof e?[e]:e);r[r.length-1]=r[r.length-1].replace(/\r?\n([\t ]*)$/,"");var a=r.reduce((function(e,t){var n=t.match(/\n([\t ]+|(?!\s).)/g);return n?e.concat(n.map((function(e){var t,n;return null!==(n=null===(t=e.match(/[\t ]/g))||void 0===t?void 0:t.length)&&void 0!==n?n:0}))):e}),[]);if(a.length){var i=new RegExp("\n[\t ]{"+Math.min.apply(Math,a)+"}","g");r=r.map((function(e){return e.replace(i,"\n")}))}r[0]=r[0].replace(/^\r?\n/,"");var o=r[0];return t.forEach((function(e,t){var n=o.match(/(?:^|\n)( *)$/),a=n?n[1]:"",i=e;"string"===typeof e&&e.includes("\n")&&(i=String(e).split("\n").map((function(e,t){return 0===t?e:""+a+e})).join("\n")),o+=i+r[t+1]})),o}t.A=r},1646:function(e,t,n){"use strict";var r=n(3149),a=n(7858);t.parse=r,t.reparse=a},3149:function(e,t,n){"use strict";n(4114),n(8992),n(3949),n(8872);var r={"&":"&amp;",'"':"&quot;","<":"&lt;",">":"&gt;"};function a(e){return"string"!==typeof e?e:e.replace(/([&"<>])/g,(function(e,t){return r[t]}))}var i=/<o>|<ins>|<s>|<sub>|<sup>|<b>|<i>|<tt>|<\/o>|<\/ins>|<\/s>|<\/sub>|<\/sup>|<\/b>|<\/i>|<\/tt>/;function o(e,t){t.add&&t.add.split(";").forEach((function(t){var n=t.split(" ");e[n[0]][n[1]]=!0})),t.del&&t.del.split(";").forEach((function(t){var n=t.split(" ");delete e[n[0]][n[1]]}))}var s={"<o>":{add:"text-decoration overline"},"</o>":{del:"text-decoration overline"},"<ins>":{add:"text-decoration underline"},"</ins>":{del:"text-decoration underline"},"<s>":{add:"text-decoration line-through"},"</s>":{del:"text-decoration line-through"},"<b>":{add:"font-weight bold"},"</b>":{del:"font-weight bold"},"<i>":{add:"font-style italic"},"</i>":{del:"font-style italic"},"<sub>":{add:"baseline-shift sub;font-size .7em"},"</sub>":{del:"baseline-shift sub;font-size .7em"},"<sup>":{add:"baseline-shift super;font-size .7em"},"</sup>":{del:"baseline-shift super;font-size .7em"},"<tt>":{add:"font-family monospace"},"</tt>":{del:"font-family monospace"}};function l(e){return Object.keys(e).reduce((function(t,n){var r=Object.keys(e[n]);return r.length>0&&(t[n]=r.join(" ")),t}),{})}function c(e){var t,n,r,c,u;if(void 0===e)return[];if("number"===typeof e)return[e+""];if("string"!==typeof e)return[e];n=[],t={"text-decoration":{},"font-weight":{},"font-style":{},"baseline-shift":{},"font-size":{},"font-family":{}};while(1){if(r=e.search(i),-1===r)return n.push(["tspan",l(t),a(e)]),n;if(r>0&&(u=e.slice(0,r),n.push(["tspan",l(t),a(u)])),c=e.match(i)[0],o(t,s[c]),e=e.slice(r+c.length),0===e.length)return n}}e.exports=c},7858:function(e,t,n){"use strict";n(8992),n(1454),n(8872);var r=n(3149);function a(e){var t=e.match(/(\w+)-(\w)(\w+)/);if(null===t)return e;var n=t[1]+t[2].toUpperCase()+t[3];return n}function i(e){var t=e.createElement;function n(e,n){var r=e[0],i=e[1],o=Object.keys(i).reduce((function(e,t){var n=a(t);return e[n]=i[t],e}),{}),s=e[2];return o.key=n,t(r,o,s)}return function(e){return r(e).map(n)}}e.exports=i},5977:function(e){"use strict";function t(e,t,n){var r,a,i=n.x-t.x,o=n.y-t.y,s=(t.x+n.x)/2,l=(t.y+n.y)/2;switch(e.shape){case"-":break;case"~":r="M "+t.x+","+t.y+" c "+.7*i+", 0 "+.3*i+", "+o+" "+i+", "+o;break;case"-~":r="M "+t.x+","+t.y+" c "+.7*i+", 0 "+i+", "+o+" "+i+", "+o,e.label&&(s=t.x+.75*(n.x-t.x));break;case"~-":r="M "+t.x+","+t.y+" c 0, 0 "+.3*i+", "+o+" "+i+", "+o,e.label&&(s=t.x+.25*(n.x-t.x));break;case"-|":r="m "+t.x+","+t.y+" "+i+",0 0,"+o,e.label&&(s=n.x);break;case"|-":r="m "+t.x+","+t.y+" 0,"+o+" "+i+",0",e.label&&(s=t.x);break;case"-|-":r="m "+t.x+","+t.y+" "+i/2+",0 0,"+o+" "+i/2+",0";break;case"->":a="marker-end:url(#arrowhead);stroke:#0041c4;stroke-width:1;fill:none";break;case"~>":a="marker-end:url(#arrowhead);stroke:#0041c4;stroke-width:1;fill:none",r="M "+t.x+","+t.y+" c "+.7*i+", 0 "+.3*i+", "+o+" "+i+", "+o;break;case"-~>":a="marker-end:url(#arrowhead);stroke:#0041c4;stroke-width:1;fill:none",r="M "+t.x+","+t.y+" c "+.7*i+", 0 "+i+", "+o+" "+i+", "+o,e.label&&(s=t.x+.75*(n.x-t.x));break;case"~->":a="marker-end:url(#arrowhead);stroke:#0041c4;stroke-width:1;fill:none",r="M "+t.x+","+t.y+" c 0, 0 "+.3*i+", "+o+" "+i+", "+o,e.label&&(s=t.x+.25*(n.x-t.x));break;case"-|>":a="marker-end:url(#arrowhead);stroke:#0041c4;stroke-width:1;fill:none",r="m "+t.x+","+t.y+" "+i+",0 0,"+o,e.label&&(s=n.x);break;case"|->":a="marker-end:url(#arrowhead);stroke:#0041c4;stroke-width:1;fill:none",r="m "+t.x+","+t.y+" 0,"+o+" "+i+",0",e.label&&(s=t.x);break;case"-|->":a="marker-end:url(#arrowhead);stroke:#0041c4;stroke-width:1;fill:none",r="m "+t.x+","+t.y+" "+i/2+",0 0,"+o+" "+i/2+",0";break;case"<->":a="marker-end:url(#arrowhead);marker-start:url(#arrowtail);stroke:#0041c4;stroke-width:1;fill:none";break;case"<~>":a="marker-end:url(#arrowhead);marker-start:url(#arrowtail);stroke:#0041c4;stroke-width:1;fill:none",r="M "+t.x+","+t.y+" c "+.7*i+", 0 "+.3*i+", "+o+" "+i+", "+o;break;case"<-~>":a="marker-end:url(#arrowhead);marker-start:url(#arrowtail);stroke:#0041c4;stroke-width:1;fill:none",r="M "+t.x+","+t.y+" c "+.7*i+", 0 "+i+", "+o+" "+i+", "+o,e.label&&(s=t.x+.75*(n.x-t.x));break;case"<-|>":a="marker-end:url(#arrowhead);marker-start:url(#arrowtail);stroke:#0041c4;stroke-width:1;fill:none",r="m "+t.x+","+t.y+" "+i+",0 0,"+o,e.label&&(s=n.x);break;case"<-|->":a="marker-end:url(#arrowhead);marker-start:url(#arrowtail);stroke:#0041c4;stroke-width:1;fill:none",r="m "+t.x+","+t.y+" "+i/2+",0 0,"+o+" "+i/2+",0";break;case"+":a="marker-end:url(#tee);marker-start:url(#tee);fill:none;stroke:#00F;stroke-width:1";break;default:a="fill:none;stroke:#F00;stroke-width:1"}return{lx:s,ly:l,d:r,style:a}}e.exports=t},9591:function(e,t,n){"use strict";function r(e){var t=0,n=0,r=[];return e.forEach((function(e){"vvv-2"===e||"vvv-3"===e||"vvv-4"===e||"vvv-5"===e||"vvv-6"===e||"vvv-7"===e||"vvv-8"===e||"vvv-9"===e?n+=1:0!==n&&(r.push(t-(n+1)/2),n=0),t+=1})),0!==n&&r.push(t-(n+1)/2),r}n(4114),n(8992),n(3949),e.exports=r},3731:function(e,t,n){"use strict";function r(e,t,n){var r,a,i=[];if(4===e.length){for(a=0;a<n;a+=1){for(i.push(e[0]),r=0;r<t;r+=1)i.push(e[1]);for(i.push(e[2]),r=0;r<t;r+=1)i.push(e[3])}return i}for(1===e.length&&e.push(e[0]),i.push(e[0]),r=0;r<n*(2*(t+1))-1;r+=1)i.push(e[1]);return i}n(4114),e.exports=r},1164:function(e,t,n){"use strict";var r=n(3731);function a(e,t,n){var a;switch(a=[],e){case"p":a=r(["pclk","111","nclk","000"],t,n);break;case"n":a=r(["nclk","000","pclk","111"],t,n);break;case"P":a=r(["Pclk","111","nclk","000"],t,n);break;case"N":a=r(["Nclk","000","pclk","111"],t,n);break;case"l":case"L":case"0":a=r(["000"],t,n);break;case"h":case"H":case"1":a=r(["111"],t,n);break;case"=":a=r(["vvv-2"],t,n);break;case"2":a=r(["vvv-2"],t,n);break;case"3":a=r(["vvv-3"],t,n);break;case"4":a=r(["vvv-4"],t,n);break;case"5":a=r(["vvv-5"],t,n);break;case"6":a=r(["vvv-6"],t,n);break;case"7":a=r(["vvv-7"],t,n);break;case"8":a=r(["vvv-8"],t,n);break;case"9":a=r(["vvv-9"],t,n);break;case"d":a=r(["ddd"],t,n);break;case"u":a=r(["uuu"],t,n);break;case"z":a=r(["zzz"],t,n);break;default:a=r(["xxx"],t,n);break}return a}e.exports=a},1621:function(e,t,n){"use strict";var r=n(3731);function a(e,t,n){var a,i,o,s,l,c,u,d,h,p,f,m,g,v,y;return a={p:"pclk",n:"nclk",P:"Pclk",N:"Nclk",h:"pclk",l:"nclk",H:"Pclk",L:"Nclk"},i={0:"0",1:"1",x:"x",d:"d",u:"u",z:"z","=":"v",2:"v",3:"v",4:"v",5:"v",6:"v",7:"v",8:"v",9:"v"},o={0:"",1:"",x:"",d:"",u:"",z:"","=":"-2",2:"-2",3:"-3",4:"-4",5:"-5",6:"-6",7:"-7",8:"-8",9:"-9"},s={p:"0",n:"1",P:"0",N:"1",h:"1",l:"0",H:"1",L:"0",0:"0",1:"1",x:"x",d:"d",u:"u",z:"z","=":"v",2:"v",3:"v",4:"v",5:"v",6:"v",7:"v",8:"v",9:"v"},l={p:"",n:"",P:"",N:"",h:"",l:"",H:"",L:"",0:"",1:"",x:"",d:"",u:"",z:"","=":"-2",2:"-2",3:"-3",4:"-4",5:"-5",6:"-6",7:"-7",8:"-8",9:"-9"},c={p:"111",n:"000",P:"111",N:"000",h:"111",l:"000",H:"111",L:"000",0:"000",1:"111",x:"xxx",d:"ddd",u:"uuu",z:"zzz","=":"vvv-2",2:"vvv-2",3:"vvv-3",4:"vvv-4",5:"vvv-5",6:"vvv-6",7:"vvv-7",8:"vvv-8",9:"vvv-9"},u={p:"nclk",n:"pclk",P:"nclk",N:"pclk"},d={p:"000",n:"111",P:"000",N:"111"},h={hp:"111",Hp:"111",ln:"000",Ln:"000",nh:"111",Nh:"111",pl:"000",Pl:"000"},p=e.split(""),f=c[p[1]],m=a[p[1]],void 0===m?(g=i[p[1]],void 0===g?r(["xxx"],t,n):(v=s[p[0]],r(void 0===v?["xxx"]:[v+"m"+g+l[p[0]]+o[p[1]],f],t,n))):(y=h[e],void 0!==y&&(m=y),g=u[p[1]],r(void 0===g?[m,f]:[m,f,g,d[p[1]]],t,n))}e.exports=a},2594:function(e,t,n){"use strict";var r=n(4895);function a(e,t,n,a,i,o,s,l){var c,u,d;for(c in a)break;u=a.default||a[c],t&&t.config&&t.config.skin&&a[t.config.skin]&&(u=a[t.config.skin]),d=l?["svg",{id:"svg",xmlns:r.svg,"xmlns:xlink":r.xlink},["g"]]:u;var h=n.xg+n.xs*(n.xmax+1),p=i.length*n.yo+n.yh0+n.yh1+n.yf0+n.yf1,f=d[d.length-1];f[1]={id:"waves_"+e},f[2]=["g",{id:"lanes_"+e,transform:"translate("+(n.xg+.5)+", "+(n.yh0+n.yh1+.5)+")"}].concat(o),f[3]=["g",{id:"groups_"+e},s];var m=d[1];return m.id="svgcontent_"+e,m.height=p,m.width=h,m.viewBox="0 0 "+h+" "+p,m.overflow="hidden",d}e.exports=a},4299:function(e){"use strict";var t={xs:20,ys:20,xg:120,yh0:0,yh1:0,yf0:0,yf1:0,y0:5,yo:30,tgo:-10,ym:15,xlabel:6,xmax:1,scale:1,head:{},foot:{}};e.exports=t},7717:function(e){"use strict";function t(e,t){var n;function r(e){return e>0?Math.round(e):1}t.hscale=1,t.hscale0&&(t.hscale=t.hscale0),e&&e.config&&e.config.hscale&&(n=Math.round(r(e.config.hscale)),n>0&&(n>100&&(n=100),t.hscale=n)),t.yh0=0,t.yh1=0,t.head=e.head,t.xmin_cfg=0,t.xmax_cfg=1e12,e&&e.config&&e.config.hbounds&&2==e.config.hbounds.length&&(e.config.hbounds[0]=Math.floor(e.config.hbounds[0]),e.config.hbounds[1]=Math.ceil(e.config.hbounds[1]),e.config.hbounds[0]<e.config.hbounds[1]&&(t.xmin_cfg=2*Math.floor(e.config.hbounds[0]),t.xmax_cfg=2*Math.floor(e.config.hbounds[1]))),e&&e.head&&((e.head.tick||0===e.head.tick||e.head.tock||0===e.head.tock)&&(t.yh0=20),(e.head.tick||0===e.head.tick)&&(e.head.tick=e.head.tick+t.xmin_cfg/2),(e.head.tock||0===e.head.tock)&&(e.head.tock=e.head.tock+t.xmin_cfg/2),e.head.text&&(t.yh1=46,t.head.text=e.head.text)),t.yf0=0,t.yf1=0,t.foot=e.foot,e&&e.foot&&((e.foot.tick||0===e.foot.tick||e.foot.tock||0===e.foot.tock)&&(t.yf0=20),(e.foot.tick||0===e.foot.tick)&&(e.foot.tick=e.foot.tick+t.xmin_cfg/2),(e.foot.tock||0===e.foot.tock)&&(e.foot.tock=e.foot.tock+t.xmin_cfg/2),e.foot.text&&(t.yf1=46,t.foot.text=e.foot.text))}e.exports=t},3653:function(e,t,n){"use strict";n(4114);var r=n(1164),a=n(1621),i=n(9591);function o(e,t,n){var o,s,l,c,u,d,h=[],p=[],f=[];h=e.split(""),l=h.shift(),u=!1,o=1;while("."===h[0]||"|"===h[0])h.shift(),o+=1;p=p.concat(r(l,t,o));while(h.length){s=l,l=h.shift(),"<"===l&&(u=!0,l=h.shift()),">"===l&&(u=!1,l=h.shift()),o=1;while("."===h[0]||"|"===h[0])h.shift(),o+=1;p=u?p.concat(a(s+l,0,o-n.period)):p.concat(a(s+l,t,o))}for(c=0;c<n.phase;c+=1)f.push(p.shift());return f.length>0?(d=i(f).length,1==i([f[f.length-1]]).length&&1==i([p[0]]).length&&(d-=1)):d=0,[p,d]}e.exports=o},5424:function(e,t,n){"use strict";n(4114),n(1454);var r=n(3653);function a(e,t){var n;return n=e.data,void 0===n?null:("string"===typeof n&&(n=n.trim().split(/\s+/)),n=n.slice(t),n)}function i(e,t){var n=[],i=[];return e.map((function(e){var o,s,l=null,c=[];n.push(c),t.period=e.period||1,t.phase=(e.phase?2*e.phase:0)+t.xmin_cfg,i[0]=e.name||" ",i[1]=(e.phase||0)+t.xmin_cfg/2,"string"===typeof e.wave&&(o=r(e.wave,t.period*t.hscale-1,t),l=o[0],s=o[1]),c.push(i.slice(0),l,a(e,s),e)})),n}e.exports=i},447:function(e,t,n){"use strict";function r(e,t){var n,a,i={},o={x:10};for("string"!==typeof e[0]&&"number"!==typeof e[0]||(a=e[0],o.x=25),t.x+=o.x,n=0;n<e.length;n++)"object"===typeof e[n]&&("[object Array]"===Object.prototype.toString.call(e[n])?(i.y=t.y,t=r(e[n],t),t.groups.push({x:t.xx,y:i.y,height:t.y-i.y,name:t.name})):(t.lanes.push(e[n]),t.width.push(t.x),t.y+=1));return t.xx=t.x,t.x-=o.x,t.name=a,t}n(4114),e.exports=r},7094:function(e,t,n){"use strict";var r=n(9915),a=n(6150),i=n(6994);function o(e,t,n,o){var s=t.signal?i(e,t,n,o):t.assign?r(e,t):t.reg?a(e,t):["div",{}];return s[1].class="WaveDrom",s}e.exports=o},9647:function(e,t,n){"use strict";n(1454);var r=n(5977),a=n(3542);function i(e,t,n,r){return["path",{id:"gmark_"+e.from+"_"+e.to,d:r.d||"M "+t.x+","+t.y+" "+n.x+","+n.y,style:r.style||"fill:none;stroke:#00F;stroke-width:1"}]}function o(e,t,n,o){var s=["g",{id:"wavearcs_"+t}],l={};function c(e,t){var n,r,a,i=e.node;if(o.period=e.period?e.period:1,o.phase=(e.phase?2*e.phase:0)+o.xmin_cfg,i){a=i.split(""),n=0;while(a.length)r=a.shift(),"."!==r&&(l[r]={x:o.xs*(2*n*o.period*o.hscale-o.phase)+o.xlabel,y:t*o.yo+o.y0+.5*o.ys}),n+=1}}function u(e){var t,n,o,c=e.trim().split(/\s+/),u={words:c,label:e.substring(c[0].length).substring(1),from:c[0].substr(0,1),to:c[0].substr(-1,1),shape:c[0].slice(1,-1)},d=l[u.from],h=l[u.to];d&&h&&(t=r(u,d,h),n=t.lx,o=t.ly,s=s.concat([i(u,d,h,t)]),u.label&&(s=s.concat([a({x:n,y:o},u.label)])))}return Array.isArray(e)&&(e.map(c),Array.isArray(n.edge)&&n.edge.map(u),Object.keys(l).map((function(e){e===e.toLowerCase()&&l[e].x>0&&(s=s.concat([a({x:l[e].x,y:l[e].y},e+"")]))}))),s}e.exports=o},6411:function(e,t,n){"use strict";function r(e,t){var n,r=[],a=(e||"").split(""),i=0,o=!1;while(a.length)n=a.shift(),"<"===n&&(o=!0,n=a.shift()),">"===n&&(o=!1,n=a.shift()),i+=o?1:2*t.period,"|"===n&&r.push(["use",{"xlink:href":"#gap",transform:"translate("+t.xs*((i-(o?0:t.period))*t.hscale-t.phase)+")"}]);return r}function a(e,t,n){var a,i,o=[];if(e)for(a in e)n.period=e[a].period?e[a].period:1,n.phase=(e[a].phase?2*e[a].phase:0)+n.xmin_cfg,"string"===typeof e[a].wave&&(i=r(e[a].wave,n),o=o.concat([["g",{id:"wavegap_"+a+"_"+t,transform:"translate(0,"+(n.y0+a*n.yo)+")"}].concat(i)]));return["g",{id:"wavegaps_"+t}].concat(o)}n(4114),e.exports=a},3934:function(e,t,n){"use strict";n(4114),n(8992),n(3949);var r=n(1646);function a(e,t,n){var a,i,o,s=["g"];return e.forEach((function(e,l){s.push(["path",{id:"group_"+l+"_"+t,d:"m "+(e.x+.5)+","+(e.y*n.yo+3.5+n.yh0+n.yh1)+" c -3,0 -5,2 -5,5 l 0,"+(e.height*n.yo-16)+" c 0,3 2,5 5,5",style:"stroke:#0041c4;stroke-width:1;fill:none"}]),void 0!==e.name&&(a=e.x-10,i=n.yo*(e.y+e.height/2)+n.yh0+n.yh1,o=r.parse(e.name),o.unshift("text",{"text-anchor":"middle",class:"info","xml:space":"preserve"}),s.push(["g",{transform:"translate("+a+","+i+")"},["g",{transform:"rotate(270)"},o]]))})),s}e.exports=a},3542:function(e,t,n){"use strict";var r=n(1646),a=n(8635);function i(e,t){var n=a(t,8)+2;return["g",{transform:"translate("+e.x+","+e.y+")"},["rect",{x:-(n>>1),y:-5,width:n,height:10,style:"fill:#FFF;"}],["text",{"text-anchor":"middle",y:3,style:"font-size:8px;"}].concat(r.parse(t))]}e.exports=i},3171:function(e,t,n){"use strict";var r=n(5994),a=n(9647),i=n(6411),o=n(1031);function s(e,t,n,s,l,c){return[r(t,e,c,l)].concat(n.res,[a(s.lanes,e,l,c),i(s.lanes,e,c),o(s.lanes,e,c)])}e.exports=s},5994:function(e,t,n){"use strict";n(4114),n(8992),n(3215);var r=n(1646);function a(e,t,n){return e[t]&&e[t].text?[["text",{x:e.xmax*e.xs/2,y:n,fill:"#000","text-anchor":"middle","xml:space":"preserve"}].concat(r.parse(e[t].text))]:[]}function i(e,t,n,a,i,o,s){var l,c,u,d,h=1,p=0,f=[];if(void 0===e[t]||void 0===e[t][n])return[];if(c=e[t][n],"string"===typeof c)c=c.trim().split(/\s+/);else if("number"===typeof c||"boolean"===typeof c)for(l=Number(c),c=[],d=0;d<s;d+=1)c.push(d+l);if("[object Array]"!==Object.prototype.toString.call(c))return[];if(0===c.length)return[];if(1===c.length)if(l=Number(c[0]),isNaN(l))f=c;else for(d=0;d<s;d+=1)f[d]=d+l;else if(2===c.length)if(l=Number(c[0]),h=Number(c[1]),u=c[1].split("."),2===u.length&&(p=u[1].length),isNaN(l)||isNaN(h))f=c;else for(l*=h,d=0;d<s;d+=1)f[d]=(h*d+l).toFixed(p);else f=c;var m=["g",{class:"muted","text-anchor":"middle","xml:space":"preserve"}];for(d=0;d<s;d+=1)e[t]&&e[t].every&&(d+l)%e[t].every!=0||m.push(["text",{x:d*i+a,y:o}].concat(r.parse(f[d])));return[m]}function o(e,t,n,r){var o,s=2*n.hscale,l=s*n.xs,c=n.xmax/s,u=e.length*n.yo,d=["g",{id:"gmarks_"+t}],h=["g",{style:"stroke:#888;stroke-width:0.5;stroke-dasharray:1,3"}];if(!r||!r.config||!1!==r.config.marks){for(o=0;o<c+1;o+=1)h.push(["line",{id:"gmark_"+o+"_"+t,x1:o*l,y1:0,x2:o*l,y2:u}]);d=d.concat([h])}return d.concat(a(n,"head",n.yh0?-33:-13)).concat(a(n,"foot",u+(n.yf0?45:25))).concat(i(n,"head","tick",0,l,-5,c+1)).concat(i(n,"head","tock",l/2,l,-5,c)).concat(i(n,"foot","tick",0,l,u+15,c+1)).concat(i(n,"foot","tock",l/2,l,u+15,c))}e.exports=o},1095:function(e,t,n){"use strict";n(4114),n(1454);var r={1:"#000000",2:"#e90000",3:"#3edd00",4:"#0074cd",5:"#ff15db",6:"#af9800",7:"#00864f",8:"#a076ff"};function a(e,t,n){var a,i,o=n.xs,s=n.ys,l=2*(e.period||1)*o,c=2*-(e.phase||0)*o,u=12,d=7,h="under"===t?s:0;function p(e){return void 0===i?[]:[["line",{style:"stroke:"+a,x1:l*i+u,x2:l*e}]]}if(e[t]){var f=["g",{transform:"translate("+c+","+h+")",style:"stroke-width:3"}];const n=e[t].split("");return n.map((function(e,n){"."!==e&&void 0!==i&&(f=f.concat(p(n)),"over"===t&&f.push(["path",{style:"stroke:none;fill:"+a,d:"m"+(l*n-d)+" 0 l"+d+" "+d+" v-"+d+" z"}])),"0"===e?i=void 0:"."!==e&&(i=n,a=r[e]||r[1])})),void 0!==i&&(f=f.concat(p(n.length))),[f]}return[]}e.exports=a},1031:function(e,t,n){"use strict";n(4114),n(1454);const r=n(5794),a=(e,t,n)=>{void 0===n&&(n=t);let r=0;while(r<e.length){switch(e[r]){case"h":case"H":e[r+1]*=t,r++;break;case"v":case"V":e[r+1]*=n,r++;break;case"m":case"M":case"l":case"L":e[r+1]*=t,e[r+2]*=n,r+=2;break;case"q":case"Q":e[r+1]*=t,e[r+2]*=n,e[r+3]*=t,e[r+4]*=n,r+=4;break;case"a":case"A":e[r+1]*=t,e[r+2]*=n,e[r+6]*=t,e[r+7]*=n,r+=7;break}r++}return e};function i(e,t){if("string"===typeof e&&(e=e.trim().split(/[\s,]+/)),Array.isArray(e))return a(e,2*t.xs,-t.ys)}function o(e,t,n){if(Array.isArray(e)){const a=e[0],o=e[1];if("pw"===a&&"object"===typeof o){const e=i(o.d,n);return["g",r.tt(0,n.yo*t+n.ys+n.y0),["path",{style:"fill:none;stroke:#000;stroke-width:1px;",d:e}]]}}}function s(e,t,n){let r=["g"];return e.map(((e,t)=>{const a=e.wave;Array.isArray(a)&&r.push(o(a,t,n))})),r}e.exports=s},6150:function(e,t,n){"use strict";var r=n(6450);function a(e,t){return r(t.reg,t.config)}e.exports=a},6994:function(e,t,n){"use strict";n(8992),n(8872);var r=n(447),a=n(4299),i=n(7717),o=n(5424),s=n(3934),l=n(3171),c=n(2938),u=n(2594);function d(e,t,n,r){if(0===e){var a,i,o;for(a in r)break;i=r.default||r[a],t&&t.config&&t.config.skin&&r[t.config.skin]&&(i=r[t.config.skin]),o=i[3][1][2][1],n.xs=Number(o.width),n.ys=Number(o.height),n.xlabel=Number(o.x),n.ym=Number(o.y)}}function h(e,t,n,h){d(e,t,a,n),i(t,a);var p=r(t.signal,{x:0,y:0,xmax:0,width:[],lanes:[],groups:[]}),f=o(p.lanes,a),m=c(f,e,a),g=s(p.groups,e,a),v=m.glengths.reduce((function(e,t,n){return Math.max(e,t+p.width[n])}),0);return a.xg=Math.ceil((v-a.tgo)/a.xs)*a.xs,u(e,t,a,n,f,l(e,f,m,p,t,a),g,h)}e.exports=h},2938:function(e,t,n){"use strict";n(4114),n(1454);var r=n(1646),a=n(8635),i=n(9591),o=n(1095);function s(e,t){var n=[],a=[];return e[1]&&(e[1].map((function(e,r){n.push(["use",{"xlink:href":"#"+e,transform:"translate("+r*t.xs+")"}])})),e[2]&&e[2].length&&(a=i(e[1]),a.length&&a.map((function(a,i){e[2]&&void 0!==e[2][i]&&n.push(["text",{x:a*t.xs+t.xlabel,y:t.ym,"text-anchor":"middle","xml:space":"preserve"}].concat(r.parse(e[2][i])))})))),n}function l(e,t,n){var i=0,l=0,c=[],u=[];return e.map((function(e,l){var d=e[0][0];if(d){var h=e[0][1];h=h>0?Math.ceil(2*h)-2*h:-2*h,u.push(["g",{id:"wavelane_"+l+"_"+t,transform:"translate(0,"+(n.y0+l*n.yo)+")"}].concat([["text",{x:n.tgo,y:n.ym,class:"info","text-anchor":"end","xml:space":"preserve"}].concat(r.parse(d))]).concat([["g",{id:"wavelane_draw_"+l+"_"+t,transform:"translate("+h*n.xs+", 0)"}].concat(s(e,n))]).concat(o(e[3],"over",n),o(e[3],"under",n))),i=Math.max(i,(e[1]||[]).length),c.push(a(d,11))}})),n.xmax=Math.min(i,n.xmax_cfg-n.xmin_cfg),n.xg=l+20,{glengths:c,res:u}}e.exports=l},8635:function(e,t,n){"use strict";var r=n(3290);e.exports=function(e,t){var n,a,i,o,s;for(t=t||11,a=e.length,s=0,n=0;n<a;n++)i=e.charCodeAt(n),o=r.chars[i],void 0===o&&(o=r.other),s+=o;return s*t/100}},4895:function(e){"use strict";e.exports={svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/XML/1998/namespace"}},3510:function(e){var t=t||{};t.dark=["svg",{id:"svg",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",height:"0"},["style",{type:"text/css"},"text{font-size:11pt;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:center;fill-opacity:1;font-family:Helvetica}.h1{font-size:33pt;font-weight:bold}.h2{font-size:27pt;font-weight:bold}.h3{font-size:20pt;font-weight:bold}.h4{font-size:14pt;font-weight:bold}.h5{font-size:11pt;font-weight:bold}.h6{font-size:8pt;font-weight:bold}.muted{fill:#aaa}.warning{fill:#ffe000}.error{fill:#ff232a}.info{fill:#b8fffc}.success{fill:#24ff23}text{fill:#ffffff}.s1{fill:none;stroke:#ffffff;stroke-width:1;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none}.s2{fill:none;stroke:#fff;stroke-width:1;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none}.s3{fill:none;stroke:#fff;stroke-width:0.5;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none}.s4{color:#000;fill:none;stroke:#fff;stroke-width:1;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:1, 3;stroke-dashoffset:0;marker:none;visibility:visible;display:inline;overflow:visible}.s5{color:#000;fill:none;stroke:#fff;stroke-width:1;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;marker:none;visibility:visible;display:inline;overflow:visible}.s6{fill:#000000;stroke:none;fill-opacity:1}.s7{fill:#ffffff;fill-opacity:1;stroke:none}.s8{color:#000;fill:#000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1px;marker:none;visibility:visible;display:inline;overflow:visible}.s9{color:#000;fill:#0010c0;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1px;marker:none;visibility:visible;display:inline;overflow:visible}.s10{color:#000;fill:#2d6500;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1px;marker:none;visibility:visible;display:inline;overflow:visible}.s11{color:#000;fill:#870500;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1px;marker:none;visibility:visible;display:inline;overflow:visible}.s12{color:#000;fill:#007a80;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1px;marker:none;visibility:visible;display:inline;overflow:visible}.s13{color:#000;fill:#680066;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1px;marker:none;visibility:visible;display:inline;overflow:visible}.s14{color:#000;fill:#5f5f5f;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1px;marker:none;visibility:visible;display:inline;overflow:visible}.s15{color:#000;fill:#2e005e;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1px;marker:none;visibility:visible;display:inline;overflow:visible}.s16{fill:#fff400;fill-opacity:1;stroke:none}.s17{fill:none;stroke:#fff400;stroke-width:1;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none}"],["defs",["g",{id:"socket"},["rect",{y:"15",x:"6",height:"20",width:"20"}]],["g",{id:"pclk"},["path",{d:"M0,20 0,0 20,0",class:"s1"}]],["g",{id:"nclk"},["path",{d:"m0,0 0,20 20,0",class:"s2"}]],["g",{id:"000"},["path",{d:"m0,20 20,0",class:"s2"}]],["g",{id:"0m0"},["path",{d:"m0,20 3,0 3,-10 3,10 11,0",class:"s2"}]],["g",{id:"0m1"},["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"0mx"},["path",{d:"M3,20 9,0 20,0",class:"s2"}],["path",{d:"m20,15 -5,5",class:"s3"}],["path",{d:"M20,10 10,20",class:"s3"}],["path",{d:"M20,5 5,20",class:"s3"}],["path",{d:"M20,0 4,16",class:"s3"}],["path",{d:"M15,0 6,9",class:"s3"}],["path",{d:"M10,0 9,1",class:"s3"}],["path",{d:"m0,20 20,0",class:"s2"}]],["g",{id:"0md"},["path",{d:"m8,20 10,0",class:"s4"}],["path",{d:"m0,20 5,0",class:"s2"}]],["g",{id:"0mu"},["path",{d:"m0,20 3,0 C 7,10 10.107603,0 20,0",class:"s2"}]],["g",{id:"0mz"},["path",{d:"m0,20 3,0 C 10,10 15,10 20,10",class:"s2"}]],["g",{id:"111"},["path",{d:"M0,0 20,0",class:"s2"}]],["g",{id:"1m0"},["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}]],["g",{id:"1m1"},["path",{d:"M0,0 3,0 6,10 9,0 20,0",class:"s2"}]],["g",{id:"1mx"},["path",{d:"m3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,0 20,0",class:"s2"}],["path",{d:"m20,15 -5,5",class:"s3"}],["path",{d:"M20,10 10,20",class:"s3"}],["path",{d:"M20,5 8,17",class:"s3"}],["path",{d:"M20,0 7,13",class:"s3"}],["path",{d:"M15,0 6,9",class:"s3"}],["path",{d:"M10,0 5,5",class:"s3"}],["path",{d:"M3.5,1.5 5,0",class:"s3"}]],["g",{id:"1md"},["path",{d:"m0,0 3,0 c 4,10 7,20 17,20",class:"s2"}]],["g",{id:"1mu"},["path",{d:"M0,0 5,0",class:"s2"}],["path",{d:"M8,0 18,0",class:"s4"}]],["g",{id:"1mz"},["path",{d:"m0,0 3,0 c 7,10 12,10 17,10",class:"s2"}]],["g",{id:"xxx"},["path",{d:"m0,20 20,0",class:"s2"}],["path",{d:"M0,0 20,0",class:"s2"}],["path",{d:"M0,5 5,0",class:"s3"}],["path",{d:"M0,10 10,0",class:"s3"}],["path",{d:"M0,15 15,0",class:"s3"}],["path",{d:"M0,20 20,0",class:"s3"}],["path",{d:"M5,20 20,5",class:"s3"}],["path",{d:"M10,20 20,10",class:"s3"}],["path",{d:"m15,20 5,-5",class:"s3"}]],["g",{id:"xm0"},["path",{d:"M0,0 4,0 9,20",class:"s2"}],["path",{d:"m0,20 20,0",class:"s2"}],["path",{d:"M0,5 4,1",class:"s3"}],["path",{d:"M0,10 5,5",class:"s3"}],["path",{d:"M0,15 6,9",class:"s3"}],["path",{d:"M0,20 7,13",class:"s3"}],["path",{d:"M5,20 8,17",class:"s3"}]],["g",{id:"xm1"},["path",{d:"M0,0 20,0",class:"s2"}],["path",{d:"M0,20 4,20 9,0",class:"s2"}],["path",{d:"M0,5 5,0",class:"s3"}],["path",{d:"M0,10 9,1",class:"s3"}],["path",{d:"M0,15 7,8",class:"s3"}],["path",{d:"M0,20 5,15",class:"s3"}]],["g",{id:"xmx"},["path",{d:"m0,20 20,0",class:"s2"}],["path",{d:"M0,0 20,0",class:"s2"}],["path",{d:"M0,5 5,0",class:"s3"}],["path",{d:"M0,10 10,0",class:"s3"}],["path",{d:"M0,15 15,0",class:"s3"}],["path",{d:"M0,20 20,0",class:"s3"}],["path",{d:"M5,20 20,5",class:"s3"}],["path",{d:"M10,20 20,10",class:"s3"}],["path",{d:"m15,20 5,-5",class:"s3"}]],["g",{id:"xmd"},["path",{d:"m0,0 4,0 c 3,10 6,20 16,20",class:"s2"}],["path",{d:"m0,20 20,0",class:"s2"}],["path",{d:"M0,5 4,1",class:"s3"}],["path",{d:"M0,10 5.5,4.5",class:"s3"}],["path",{d:"M0,15 6.5,8.5",class:"s3"}],["path",{d:"M0,20 8,12",class:"s3"}],["path",{d:"m5,20 5,-5",class:"s3"}],["path",{d:"m10,20 2.5,-2.5",class:"s3"}]],["g",{id:"xmu"},["path",{d:"M0,0 20,0",class:"s2"}],["path",{d:"m0,20 4,0 C 7,10 10,0 20,0",class:"s2"}],["path",{d:"M0,5 5,0",class:"s3"}],["path",{d:"M0,10 10,0",class:"s3"}],["path",{d:"M0,15 10,5",class:"s3"}],["path",{d:"M0,20 6,14",class:"s3"}]],["g",{id:"xmz"},["path",{d:"m0,0 4,0 c 6,10 11,10 16,10",class:"s2"}],["path",{d:"m0,20 4,0 C 10,10 15,10 20,10",class:"s2"}],["path",{d:"M0,5 4.5,0.5",class:"s3"}],["path",{d:"M0,10 6.5,3.5",class:"s3"}],["path",{d:"M0,15 8.5,6.5",class:"s3"}],["path",{d:"M0,20 11.5,8.5",class:"s3"}]],["g",{id:"ddd"},["path",{d:"m0,20 20,0",class:"s4"}]],["g",{id:"dm0"},["path",{d:"m0,20 10,0",class:"s4"}],["path",{d:"m12,20 8,0",class:"s2"}]],["g",{id:"dm1"},["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"dmx"},["path",{d:"M3,20 9,0 20,0",class:"s2"}],["path",{d:"m20,15 -5,5",class:"s3"}],["path",{d:"M20,10 10,20",class:"s3"}],["path",{d:"M20,5 5,20",class:"s3"}],["path",{d:"M20,0 4,16",class:"s3"}],["path",{d:"M15,0 6,9",class:"s3"}],["path",{d:"M10,0 9,1",class:"s3"}],["path",{d:"m0,20 20,0",class:"s2"}]],["g",{id:"dmd"},["path",{d:"m0,20 20,0",class:"s4"}]],["g",{id:"dmu"},["path",{d:"m0,20 3,0 C 7,10 10.107603,0 20,0",class:"s2"}]],["g",{id:"dmz"},["path",{d:"m0,20 3,0 C 10,10 15,10 20,10",class:"s2"}]],["g",{id:"uuu"},["path",{d:"M0,0 20,0",class:"s4"}]],["g",{id:"um0"},["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}]],["g",{id:"um1"},["path",{d:"M0,0 10,0",class:"s4"}],["path",{d:"m12,0 8,0",class:"s2"}]],["g",{id:"umx"},["path",{d:"m3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,0 20,0",class:"s2"}],["path",{d:"m20,15 -5,5",class:"s3"}],["path",{d:"M20,10 10,20",class:"s3"}],["path",{d:"M20,5 8,17",class:"s3"}],["path",{d:"M20,0 7,13",class:"s3"}],["path",{d:"M15,0 6,9",class:"s3"}],["path",{d:"M10,0 5,5",class:"s3"}],["path",{d:"M3.5,1.5 5,0",class:"s3"}]],["g",{id:"umd"},["path",{d:"m0,0 3,0 c 4,10 7,20 17,20",class:"s2"}]],["g",{id:"umu"},["path",{d:"M0,0 20,0",class:"s4"}]],["g",{id:"umz"},["path",{d:"m0,0 3,0 c 7,10 12,10 17,10",class:"s5"}]],["g",{id:"zzz"},["path",{d:"m0,10 20,0",class:"s2"}]],["g",{id:"zm0"},["path",{d:"m0,10 6,0 3,10 11,0",class:"s2"}]],["g",{id:"zm1"},["path",{d:"M0,10 6,10 9,0 20,0",class:"s2"}]],["g",{id:"zmx"},["path",{d:"m6,10 3,10 11,0",class:"s2"}],["path",{d:"M0,10 6,10 9,0 20,0",class:"s2"}],["path",{d:"m20,15 -5,5",class:"s3"}],["path",{d:"M20,10 10,20",class:"s3"}],["path",{d:"M20,5 8,17",class:"s3"}],["path",{d:"M20,0 7,13",class:"s3"}],["path",{d:"M15,0 6.5,8.5",class:"s3"}],["path",{d:"M10,0 9,1",class:"s3"}]],["g",{id:"zmd"},["path",{d:"m0,10 7,0 c 3,5 8,10 13,10",class:"s2"}]],["g",{id:"zmu"},["path",{d:"m0,10 7,0 C 10,5 15,0 20,0",class:"s2"}]],["g",{id:"zmz"},["path",{d:"m0,10 20,0",class:"s2"}]],["g",{id:"gap"},["path",{d:"m7,-2 -4,0 c -5,0 -5,24 -10,24 l 4,0 C 2,22 2,-2 7,-2 z",class:"s6"}],["path",{d:"M-7,22 C -2,22 -2,-2 3,-2",class:"s2"}],["path",{d:"M-3,22 C 2,22 2,-2 7,-2",class:"s2"}]],["g",{id:"Pclk"},["path",{d:"M-3,12 0,3 3,12 C 1,11 -1,11 -3,12 z",class:"s7"}],["path",{d:"M0,20 0,0 20,0",class:"s2"}]],["g",{id:"Nclk"},["path",{d:"M-3,8 0,17 3,8 C 1,9 -1,9 -3,8 z",class:"s7"}],["path",{d:"m0,0 0,20 20,0",class:"s2"}]],["g",{id:"0mv-2"},["path",{d:"M9,0 20,0 20,20 3,20 z",class:"s8"}],["path",{d:"M3,20 9,0 20,0",class:"s2"}],["path",{d:"m0,20 20,0",class:"s2"}]],["g",{id:"1mv-2"},["path",{d:"M2.875,0 20,0 20,20 9,20 z",class:"s8"}],["path",{d:"m3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,0 20,0",class:"s2"}]],["g",{id:"xmv-2"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s8"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,5 3.5,1.5",class:"s3"}],["path",{d:"M0,10 4.5,5.5",class:"s3"}],["path",{d:"M0,15 6,9",class:"s3"}],["path",{d:"M0,20 4,16",class:"s3"}]],["g",{id:"dmv-2"},["path",{d:"M9,0 20,0 20,20 3,20 z",class:"s8"}],["path",{d:"M3,20 9,0 20,0",class:"s2"}],["path",{d:"m0,20 20,0",class:"s2"}]],["g",{id:"umv-2"},["path",{d:"M3,0 20,0 20,20 9,20 z",class:"s8"}],["path",{d:"m3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,0 20,0",class:"s2"}]],["g",{id:"zmv-2"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s8"}],["path",{d:"m6,10 3,10 11,0",class:"s2"}],["path",{d:"M0,10 6,10 9,0 20,0",class:"s2"}]],["g",{id:"vvv-2"},["path",{d:"M20,20 0,20 0,0 20,0",class:"s8"}],["path",{d:"m0,20 20,0",class:"s2"}],["path",{d:"M0,0 20,0",class:"s2"}]],["g",{id:"vm0-2"},["path",{d:"M0,20 0,0 3,0 9,20",class:"s8"}],["path",{d:"M0,0 3,0 9,20",class:"s2"}],["path",{d:"m0,20 20,0",class:"s2"}]],["g",{id:"vm1-2"},["path",{d:"M0,0 0,20 3,20 9,0",class:"s8"}],["path",{d:"M0,0 20,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0",class:"s2"}]],["g",{id:"vmx-2"},["path",{d:"M0,0 0,20 3,20 6,10 3,0",class:"s8"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}],["path",{d:"m20,15 -5,5",class:"s3"}],["path",{d:"M20,10 10,20",class:"s3"}],["path",{d:"M20,5 8,17",class:"s3"}],["path",{d:"M20,0 7,13",class:"s3"}],["path",{d:"M15,0 7,8",class:"s3"}],["path",{d:"M10,0 9,1",class:"s3"}]],["g",{id:"vmd-2"},["path",{d:"m0,0 0,20 20,0 C 10,20 7,10 3,0",class:"s8"}],["path",{d:"m0,0 3,0 c 4,10 7,20 17,20",class:"s2"}],["path",{d:"m0,20 20,0",class:"s2"}]],["g",{id:"vmu-2"},["path",{d:"m0,0 0,20 3,0 C 7,10 10,0 20,0",class:"s8"}],["path",{d:"m0,20 3,0 C 7,10 10,0 20,0",class:"s2"}],["path",{d:"M0,0 20,0",class:"s2"}]],["g",{id:"vmz-2"},["path",{d:"M0,0 3,0 C 10,10 15,10 20,10 15,10 10,10 3,20 L 0,20",class:"s8"}],["path",{d:"m0,0 3,0 c 7,10 12,10 17,10",class:"s2"}],["path",{d:"m0,20 3,0 C 10,10 15,10 20,10",class:"s2"}]],["g",{id:"0mv-3"},["path",{d:"M9,0 20,0 20,20 3,20 z",class:"s9"}],["path",{d:"M3,20 9,0 20,0",class:"s2"}],["path",{d:"m0,20 20,0",class:"s2"}]],["g",{id:"1mv-3"},["path",{d:"M2.875,0 20,0 20,20 9,20 z",class:"s9"}],["path",{d:"m3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,0 20,0",class:"s2"}]],["g",{id:"xmv-3"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s9"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,5 3.5,1.5",class:"s3"}],["path",{d:"M0,10 4.5,5.5",class:"s3"}],["path",{d:"M0,15 6,9",class:"s3"}],["path",{d:"M0,20 4,16",class:"s3"}]],["g",{id:"dmv-3"},["path",{d:"M9,0 20,0 20,20 3,20 z",class:"s9"}],["path",{d:"M3,20 9,0 20,0",class:"s2"}],["path",{d:"m0,20 20,0",class:"s2"}]],["g",{id:"umv-3"},["path",{d:"M3,0 20,0 20,20 9,20 z",class:"s9"}],["path",{d:"m3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,0 20,0",class:"s2"}]],["g",{id:"zmv-3"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s9"}],["path",{d:"m6,10 3,10 11,0",class:"s2"}],["path",{d:"M0,10 6,10 9,0 20,0",class:"s2"}]],["g",{id:"vvv-3"},["path",{d:"M20,20 0,20 0,0 20,0",class:"s9"}],["path",{d:"m0,20 20,0",class:"s2"}],["path",{d:"M0,0 20,0",class:"s2"}]],["g",{id:"vm0-3"},["path",{d:"M0,20 0,0 3,0 9,20",class:"s9"}],["path",{d:"M0,0 3,0 9,20",class:"s2"}],["path",{d:"m0,20 20,0",class:"s2"}]],["g",{id:"vm1-3"},["path",{d:"M0,0 0,20 3,20 9,0",class:"s9"}],["path",{d:"M0,0 20,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0",class:"s2"}]],["g",{id:"vmx-3"},["path",{d:"M0,0 0,20 3,20 6,10 3,0",class:"s9"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}],["path",{d:"m20,15 -5,5",class:"s3"}],["path",{d:"M20,10 10,20",class:"s3"}],["path",{d:"M20,5 8,17",class:"s3"}],["path",{d:"M20,0 7,13",class:"s3"}],["path",{d:"M15,0 7,8",class:"s3"}],["path",{d:"M10,0 9,1",class:"s3"}]],["g",{id:"vmd-3"},["path",{d:"m0,0 0,20 20,0 C 10,20 7,10 3,0",class:"s9"}],["path",{d:"m0,0 3,0 c 4,10 7,20 17,20",class:"s2"}],["path",{d:"m0,20 20,0",class:"s2"}]],["g",{id:"vmu-3"},["path",{d:"m0,0 0,20 3,0 C 7,10 10,0 20,0",class:"s9"}],["path",{d:"m0,20 3,0 C 7,10 10,0 20,0",class:"s2"}],["path",{d:"M0,0 20,0",class:"s2"}]],["g",{id:"vmz-3"},["path",{d:"M0,0 3,0 C 10,10 15,10 20,10 15,10 10,10 3,20 L 0,20",class:"s9"}],["path",{d:"m0,0 3,0 c 7,10 12,10 17,10",class:"s2"}],["path",{d:"m0,20 3,0 C 10,10 15,10 20,10",class:"s2"}]],["g",{id:"0mv-4"},["path",{d:"M9,0 20,0 20,20 3,20 z",class:"s10"}],["path",{d:"M3,20 9,0 20,0",class:"s2"}],["path",{d:"m0,20 20,0",class:"s2"}]],["g",{id:"1mv-4"},["path",{d:"M2.875,0 20,0 20,20 9,20 z",class:"s10"}],["path",{d:"m3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,0 20,0",class:"s2"}]],["g",{id:"xmv-4"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s10"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,5 3.5,1.5",class:"s3"}],["path",{d:"M0,10 4.5,5.5",class:"s3"}],["path",{d:"M0,15 6,9",class:"s3"}],["path",{d:"M0,20 4,16",class:"s3"}]],["g",{id:"dmv-4"},["path",{d:"M9,0 20,0 20,20 3,20 z",class:"s10"}],["path",{d:"M3,20 9,0 20,0",class:"s2"}],["path",{d:"m0,20 20,0",class:"s2"}]],["g",{id:"umv-4"},["path",{d:"M3,0 20,0 20,20 9,20 z",class:"s10"}],["path",{d:"m3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,0 20,0",class:"s2"}]],["g",{id:"zmv-4"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s10"}],["path",{d:"m6,10 3,10 11,0",class:"s2"}],["path",{d:"M0,10 6,10 9,0 20,0",class:"s2"}]],["g",{id:"vvv-4"},["path",{d:"M20,20 0,20 0,0 20,0",class:"s10"}],["path",{d:"m0,20 20,0",class:"s2"}],["path",{d:"M0,0 20,0",class:"s2"}]],["g",{id:"vm0-4"},["path",{d:"M0,20 0,0 3,0 9,20",class:"s10"}],["path",{d:"M0,0 3,0 9,20",class:"s2"}],["path",{d:"m0,20 20,0",class:"s2"}]],["g",{id:"vm1-4"},["path",{d:"M0,0 0,20 3,20 9,0",class:"s10"}],["path",{d:"M0,0 20,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0",class:"s2"}]],["g",{id:"vmx-4"},["path",{d:"M0,0 0,20 3,20 6,10 3,0",class:"s10"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}],["path",{d:"m20,15 -5,5",class:"s3"}],["path",{d:"M20,10 10,20",class:"s3"}],["path",{d:"M20,5 8,17",class:"s3"}],["path",{d:"M20,0 7,13",class:"s3"}],["path",{d:"M15,0 7,8",class:"s3"}],["path",{d:"M10,0 9,1",class:"s3"}]],["g",{id:"vmd-4"},["path",{d:"m0,0 0,20 20,0 C 10,20 7,10 3,0",class:"s10"}],["path",{d:"m0,0 3,0 c 4,10 7,20 17,20",class:"s2"}],["path",{d:"m0,20 20,0",class:"s2"}]],["g",{id:"vmu-4"},["path",{d:"m0,0 0,20 3,0 C 7,10 10,0 20,0",class:"s10"}],["path",{d:"m0,20 3,0 C 7,10 10,0 20,0",class:"s2"}],["path",{d:"M0,0 20,0",class:"s2"}]],["g",{id:"vmz-4"},["path",{d:"M0,0 3,0 C 10,10 15,10 20,10 15,10 10,10 3,20 L 0,20",class:"s10"}],["path",{d:"m0,0 3,0 c 7,10 12,10 17,10",class:"s2"}],["path",{d:"m0,20 3,0 C 10,10 15,10 20,10",class:"s2"}]],["g",{id:"0mv-5"},["path",{d:"M9,0 20,0 20,20 3,20 z",class:"s11"}],["path",{d:"M3,20 9,0 20,0",class:"s2"}],["path",{d:"m0,20 20,0",class:"s2"}]],["g",{id:"1mv-5"},["path",{d:"M2.875,0 20,0 20,20 9,20 z",class:"s11"}],["path",{d:"m3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,0 20,0",class:"s2"}]],["g",{id:"xmv-5"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s11"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,5 3.5,1.5",class:"s3"}],["path",{d:"M0,10 4.5,5.5",class:"s3"}],["path",{d:"M0,15 6,9",class:"s3"}],["path",{d:"M0,20 4,16",class:"s3"}]],["g",{id:"dmv-5"},["path",{d:"M9,0 20,0 20,20 3,20 z",class:"s11"}],["path",{d:"M3,20 9,0 20,0",class:"s2"}],["path",{d:"m0,20 20,0",class:"s2"}]],["g",{id:"umv-5"},["path",{d:"M3,0 20,0 20,20 9,20 z",class:"s11"}],["path",{d:"m3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,0 20,0",class:"s2"}]],["g",{id:"zmv-5"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s11"}],["path",{d:"m6,10 3,10 11,0",class:"s2"}],["path",{d:"M0,10 6,10 9,0 20,0",class:"s2"}]],["g",{id:"vvv-5"},["path",{d:"M20,20 0,20 0,0 20,0",class:"s11"}],["path",{d:"m0,20 20,0",class:"s2"}],["path",{d:"M0,0 20,0",class:"s2"}]],["g",{id:"vm0-5"},["path",{d:"M0,20 0,0 3,0 9,20",class:"s11"}],["path",{d:"M0,0 3,0 9,20",class:"s2"}],["path",{d:"m0,20 20,0",class:"s2"}]],["g",{id:"vm1-5"},["path",{d:"M0,0 0,20 3,20 9,0",class:"s11"}],["path",{d:"M0,0 20,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0",class:"s2"}]],["g",{id:"vmx-5"},["path",{d:"M0,0 0,20 3,20 6,10 3,0",class:"s11"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}],["path",{d:"m20,15 -5,5",class:"s3"}],["path",{d:"M20,10 10,20",class:"s3"}],["path",{d:"M20,5 8,17",class:"s3"}],["path",{d:"M20,0 7,13",class:"s3"}],["path",{d:"M15,0 7,8",class:"s3"}],["path",{d:"M10,0 9,1",class:"s3"}]],["g",{id:"vmd-5"},["path",{d:"m0,0 0,20 20,0 C 10,20 7,10 3,0",class:"s11"}],["path",{d:"m0,0 3,0 c 4,10 7,20 17,20",class:"s2"}],["path",{d:"m0,20 20,0",class:"s2"}]],["g",{id:"vmu-5"},["path",{d:"m0,0 0,20 3,0 C 7,10 10,0 20,0",class:"s11"}],["path",{d:"m0,20 3,0 C 7,10 10,0 20,0",class:"s2"}],["path",{d:"M0,0 20,0",class:"s2"}]],["g",{id:"vmz-5"},["path",{d:"M0,0 3,0 C 10,10 15,10 20,10 15,10 10,10 3,20 L 0,20",class:"s11"}],["path",{d:"m0,0 3,0 c 7,10 12,10 17,10",class:"s2"}],["path",{d:"m0,20 3,0 C 10,10 15,10 20,10",class:"s2"}]],["g",{id:"0mv-6"},["path",{d:"M9,0 20,0 20,20 3,20 z",class:"s12"}],["path",{d:"M3,20 9,0 20,0",class:"s2"}],["path",{d:"m0,20 20,0",class:"s2"}]],["g",{id:"1mv-6"},["path",{d:"M2.875,0 20,0 20,20 9,20 z",class:"s12"}],["path",{d:"m3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,0 20,0",class:"s2"}]],["g",{id:"xmv-6"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s12"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,5 3.5,1.5",class:"s3"}],["path",{d:"M0,10 4.5,5.5",class:"s3"}],["path",{d:"M0,15 6,9",class:"s3"}],["path",{d:"M0,20 4,16",class:"s3"}]],["g",{id:"dmv-6"},["path",{d:"M9,0 20,0 20,20 3,20 z",class:"s12"}],["path",{d:"M3,20 9,0 20,0",class:"s2"}],["path",{d:"m0,20 20,0",class:"s2"}]],["g",{id:"umv-6"},["path",{d:"M3,0 20,0 20,20 9,20 z",class:"s12"}],["path",{d:"m3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,0 20,0",class:"s2"}]],["g",{id:"zmv-6"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s12"}],["path",{d:"m6,10 3,10 11,0",class:"s2"}],["path",{d:"M0,10 6,10 9,0 20,0",class:"s2"}]],["g",{id:"vvv-6"},["path",{d:"M20,20 0,20 0,0 20,0",class:"s12"}],["path",{d:"m0,20 20,0",class:"s2"}],["path",{d:"M0,0 20,0",class:"s2"}]],["g",{id:"vm0-6"},["path",{d:"M0,20 0,0 3,0 9,20",class:"s12"}],["path",{d:"M0,0 3,0 9,20",class:"s2"}],["path",{d:"m0,20 20,0",class:"s2"}]],["g",{id:"vm1-6"},["path",{d:"M0,0 0,20 3,20 9,0",class:"s12"}],["path",{d:"M0,0 20,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0",class:"s2"}]],["g",{id:"vmx-6"},["path",{d:"M0,0 0,20 3,20 6,10 3,0",class:"s12"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}],["path",{d:"m20,15 -5,5",class:"s3"}],["path",{d:"M20,10 10,20",class:"s3"}],["path",{d:"M20,5 8,17",class:"s3"}],["path",{d:"M20,0 7,13",class:"s3"}],["path",{d:"M15,0 7,8",class:"s3"}],["path",{d:"M10,0 9,1",class:"s3"}]],["g",{id:"vmd-6"},["path",{d:"m0,0 0,20 20,0 C 10,20 7,10 3,0",class:"s12"}],["path",{d:"m0,0 3,0 c 4,10 7,20 17,20",class:"s2"}],["path",{d:"m0,20 20,0",class:"s2"}]],["g",{id:"vmu-6"},["path",{d:"m0,0 0,20 3,0 C 7,10 10,0 20,0",class:"s12"}],["path",{d:"m0,20 3,0 C 7,10 10,0 20,0",class:"s2"}],["path",{d:"M0,0 20,0",class:"s2"}]],["g",{id:"vmz-6"},["path",{d:"M0,0 3,0 C 10,10 15,10 20,10 15,10 10,10 3,20 L 0,20",class:"s12"}],["path",{d:"m0,0 3,0 c 7,10 12,10 17,10",class:"s2"}],["path",{d:"m0,20 3,0 C 10,10 15,10 20,10",class:"s2"}]],["g",{id:"0mv-7"},["path",{d:"M9,0 20,0 20,20 3,20 z",class:"s13"}],["path",{d:"M3,20 9,0 20,0",class:"s2"}],["path",{d:"m0,20 20,0",class:"s2"}]],["g",{id:"1mv-7"},["path",{d:"M2.875,0 20,0 20,20 9,20 z",class:"s13"}],["path",{d:"m3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,0 20,0",class:"s2"}]],["g",{id:"xmv-7"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s13"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,5 3.5,1.5",class:"s3"}],["path",{d:"M0,10 4.5,5.5",class:"s3"}],["path",{d:"M0,15 6,9",class:"s3"}],["path",{d:"M0,20 4,16",class:"s3"}]],["g",{id:"dmv-7"},["path",{d:"M9,0 20,0 20,20 3,20 z",class:"s13"}],["path",{d:"M3,20 9,0 20,0",class:"s2"}],["path",{d:"m0,20 20,0",class:"s2"}]],["g",{id:"umv-7"},["path",{d:"M3,0 20,0 20,20 9,20 z",class:"s13"}],["path",{d:"m3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,0 20,0",class:"s2"}]],["g",{id:"zmv-7"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s13"}],["path",{d:"m6,10 3,10 11,0",class:"s2"}],["path",{d:"M0,10 6,10 9,0 20,0",class:"s2"}]],["g",{id:"vvv-7"},["path",{d:"M20,20 0,20 0,0 20,0",class:"s13"}],["path",{d:"m0,20 20,0",class:"s2"}],["path",{d:"M0,0 20,0",class:"s2"}]],["g",{id:"vm0-7"},["path",{d:"M0,20 0,0 3,0 9,20",class:"s13"}],["path",{d:"M0,0 3,0 9,20",class:"s2"}],["path",{d:"m0,20 20,0",class:"s2"}]],["g",{id:"vm1-7"},["path",{d:"M0,0 0,20 3,20 9,0",class:"s13"}],["path",{d:"M0,0 20,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0",class:"s2"}]],["g",{id:"vmx-7"},["path",{d:"M0,0 0,20 3,20 6,10 3,0",class:"s13"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}],["path",{d:"m20,15 -5,5",class:"s3"}],["path",{d:"M20,10 10,20",class:"s3"}],["path",{d:"M20,5 8,17",class:"s3"}],["path",{d:"M20,0 7,13",class:"s3"}],["path",{d:"M15,0 7,8",class:"s3"}],["path",{d:"M10,0 9,1",class:"s3"}]],["g",{id:"vmd-7"},["path",{d:"m0,0 0,20 20,0 C 10,20 7,10 3,0",class:"s13"}],["path",{d:"m0,0 3,0 c 4,10 7,20 17,20",class:"s2"}],["path",{d:"m0,20 20,0",class:"s2"}]],["g",{id:"vmu-7"},["path",{d:"m0,0 0,20 3,0 C 7,10 10,0 20,0",class:"s13"}],["path",{d:"m0,20 3,0 C 7,10 10,0 20,0",class:"s2"}],["path",{d:"M0,0 20,0",class:"s2"}]],["g",{id:"vmz-7"},["path",{d:"M0,0 3,0 C 10,10 15,10 20,10 15,10 10,10 3,20 L 0,20",class:"s13"}],["path",{d:"m0,0 3,0 c 7,10 12,10 17,10",class:"s2"}],["path",{d:"m0,20 3,0 C 10,10 15,10 20,10",class:"s2"}]],["g",{id:"0mv-8"},["path",{d:"M9,0 20,0 20,20 3,20 z",class:"s14"}],["path",{d:"M3,20 9,0 20,0",class:"s2"}],["path",{d:"m0,20 20,0",class:"s2"}]],["g",{id:"1mv-8"},["path",{d:"M2.875,0 20,0 20,20 9,20 z",class:"s14"}],["path",{d:"m3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,0 20,0",class:"s2"}]],["g",{id:"xmv-8"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s14"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,5 3.5,1.5",class:"s3"}],["path",{d:"M0,10 4.5,5.5",class:"s3"}],["path",{d:"M0,15 6,9",class:"s3"}],["path",{d:"M0,20 4,16",class:"s3"}]],["g",{id:"dmv-8"},["path",{d:"M9,0 20,0 20,20 3,20 z",class:"s14"}],["path",{d:"M3,20 9,0 20,0",class:"s2"}],["path",{d:"m0,20 20,0",class:"s2"}]],["g",{id:"umv-8"},["path",{d:"M3,0 20,0 20,20 9,20 z",class:"s14"}],["path",{d:"m3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,0 20,0",class:"s2"}]],["g",{id:"zmv-8"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s14"}],["path",{d:"m6,10 3,10 11,0",class:"s2"}],["path",{d:"M0,10 6,10 9,0 20,0",class:"s2"}]],["g",{id:"vvv-8"},["path",{d:"M20,20 0,20 0,0 20,0",class:"s14"}],["path",{d:"m0,20 20,0",class:"s2"}],["path",{d:"M0,0 20,0",class:"s2"}]],["g",{id:"vm0-8"},["path",{d:"M0,20 0,0 3,0 9,20",class:"s14"}],["path",{d:"M0,0 3,0 9,20",class:"s2"}],["path",{d:"m0,20 20,0",class:"s2"}]],["g",{id:"vm1-8"},["path",{d:"M0,0 0,20 3,20 9,0",class:"s14"}],["path",{d:"M0,0 20,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0",class:"s2"}]],["g",{id:"vmx-8"},["path",{d:"M0,0 0,20 3,20 6,10 3,0",class:"s14"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}],["path",{d:"m20,15 -5,5",class:"s3"}],["path",{d:"M20,10 10,20",class:"s3"}],["path",{d:"M20,5 8,17",class:"s3"}],["path",{d:"M20,0 7,13",class:"s3"}],["path",{d:"M15,0 7,8",class:"s3"}],["path",{d:"M10,0 9,1",class:"s3"}]],["g",{id:"vmd-8"},["path",{d:"m0,0 0,20 20,0 C 10,20 7,10 3,0",class:"s14"}],["path",{d:"m0,0 3,0 c 4,10 7,20 17,20",class:"s2"}],["path",{d:"m0,20 20,0",class:"s2"}]],["g",{id:"vmu-8"},["path",{d:"m0,0 0,20 3,0 C 7,10 10,0 20,0",class:"s14"}],["path",{d:"m0,20 3,0 C 7,10 10,0 20,0",class:"s2"}],["path",{d:"M0,0 20,0",class:"s2"}]],["g",{id:"vmz-8"},["path",{d:"M0,0 3,0 C 10,10 15,10 20,10 15,10 10,10 3,20 L 0,20",class:"s14"}],["path",{d:"m0,0 3,0 c 7,10 12,10 17,10",class:"s2"}],["path",{d:"m0,20 3,0 C 10,10 15,10 20,10",class:"s2"}]],["g",{id:"0mv-9"},["path",{d:"M9,0 20,0 20,20 3,20 z",class:"s15"}],["path",{d:"M3,20 9,0 20,0",class:"s2"}],["path",{d:"m0,20 20,0",class:"s2"}]],["g",{id:"1mv-9"},["path",{d:"M2.875,0 20,0 20,20 9,20 z",class:"s15"}],["path",{d:"m3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,0 20,0",class:"s2"}]],["g",{id:"xmv-9"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s15"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,5 3.5,1.5",class:"s3"}],["path",{d:"M0,10 4.5,5.5",class:"s3"}],["path",{d:"M0,15 6,9",class:"s3"}],["path",{d:"M0,20 4,16",class:"s3"}]],["g",{id:"dmv-9"},["path",{d:"M9,0 20,0 20,20 3,20 z",class:"s15"}],["path",{d:"M3,20 9,0 20,0",class:"s2"}],["path",{d:"m0,20 20,0",class:"s2"}]],["g",{id:"umv-9"},["path",{d:"M3,0 20,0 20,20 9,20 z",class:"s15"}],["path",{d:"m3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,0 20,0",class:"s2"}]],["g",{id:"zmv-9"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s15"}],["path",{d:"m6,10 3,10 11,0",class:"s2"}],["path",{d:"M0,10 6,10 9,0 20,0",class:"s2"}]],["g",{id:"vvv-9"},["path",{d:"M20,20 0,20 0,0 20,0",class:"s15"}],["path",{d:"m0,20 20,0",class:"s2"}],["path",{d:"M0,0 20,0",class:"s2"}]],["g",{id:"vm0-9"},["path",{d:"M0,20 0,0 3,0 9,20",class:"s15"}],["path",{d:"M0,0 3,0 9,20",class:"s2"}],["path",{d:"m0,20 20,0",class:"s2"}]],["g",{id:"vm1-9"},["path",{d:"M0,0 0,20 3,20 9,0",class:"s15"}],["path",{d:"M0,0 20,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0",class:"s2"}]],["g",{id:"vmx-9"},["path",{d:"M0,0 0,20 3,20 6,10 3,0",class:"s15"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}],["path",{d:"m20,15 -5,5",class:"s3"}],["path",{d:"M20,10 10,20",class:"s3"}],["path",{d:"M20,5 8,17",class:"s3"}],["path",{d:"M20,0 7,13",class:"s3"}],["path",{d:"M15,0 7,8",class:"s3"}],["path",{d:"M10,0 9,1",class:"s3"}]],["g",{id:"vmd-9"},["path",{d:"m0,0 0,20 20,0 C 10,20 7,10 3,0",class:"s15"}],["path",{d:"m0,0 3,0 c 4,10 7,20 17,20",class:"s2"}],["path",{d:"m0,20 20,0",class:"s2"}]],["g",{id:"vmu-9"},["path",{d:"m0,0 0,20 3,0 C 7,10 10,0 20,0",class:"s15"}],["path",{d:"m0,20 3,0 C 7,10 10,0 20,0",class:"s2"}],["path",{d:"M0,0 20,0",class:"s2"}]],["g",{id:"vmz-9"},["path",{d:"M0,0 3,0 C 10,10 15,10 20,10 15,10 10,10 3,20 L 0,20",class:"s15"}],["path",{d:"m0,0 3,0 c 7,10 12,10 17,10",class:"s2"}],["path",{d:"m0,20 3,0 C 10,10 15,10 20,10",class:"s2"}]],["g",{id:"vmv-2-2"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s8"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s8"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-3-2"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s8"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s9"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-4-2"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s8"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s10"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-5-2"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s8"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s11"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-6-2"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s8"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s12"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-7-2"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s8"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s13"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-8-2"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s8"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s14"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-9-2"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s8"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s15"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-2-3"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s9"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s8"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-3-3"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s9"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s9"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-4-3"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s9"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s10"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-5-3"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s9"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s11"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-6-3"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s9"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s12"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-7-3"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s9"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s13"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-8-3"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s9"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s14"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-9-3"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s9"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s15"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-2-4"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s10"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s8"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-3-4"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s10"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s9"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-4-4"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s10"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s10"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-5-4"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s10"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s11"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-6-4"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s10"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s12"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-7-4"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s10"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s13"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-8-4"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s10"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s14"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-9-4"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s10"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s15"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-2-5"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s11"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s8"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-3-5"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s11"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s9"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-4-5"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s11"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s10"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-5-5"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s11"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s11"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-6-5"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s11"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s12"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-7-5"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s11"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s13"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-8-5"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s11"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s14"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-9-5"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s11"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s15"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-2-6"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s12"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s8"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-3-6"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s12"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s9"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-4-6"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s12"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s10"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-5-6"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s12"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s11"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-6-6"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s12"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s12"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-7-6"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s12"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s13"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-8-6"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s12"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s14"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-9-6"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s12"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s15"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-2-7"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s13"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s8"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-3-7"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s13"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s9"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-4-7"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s13"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s10"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-5-7"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s13"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s11"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-6-7"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s13"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s12"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-7-7"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s13"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s13"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-8-7"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s13"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s14"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-9-7"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s13"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s15"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-2-8"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s14"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s8"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-3-8"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s14"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s9"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-4-8"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s14"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s10"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-5-8"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s14"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s11"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-6-8"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s14"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s12"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-7-8"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s14"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s13"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-8-8"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s14"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s14"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-9-8"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s14"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s15"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-2-9"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s15"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s8"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-3-9"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s15"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s9"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-4-9"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s15"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s10"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-5-9"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s15"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s11"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-6-9"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s15"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s12"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-7-9"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s15"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s13"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-8-9"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s15"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s14"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"vmv-9-9"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s15"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s15"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s2"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s2"}]],["g",{id:"arrow0"},["path",{d:"m-12,-3 9,3 -9,3 c 1,-2 1,-4 0,-6 z",class:"s16"}],["path",{d:"M0,0 -15,0",class:"s17"}]],["marker",{id:"arrowhead",style:"fill:#0041c4",markerHeight:7,markerWidth:10,markerUnits:"strokeWidth",viewBox:"0 -4 11 8",refX:15,refY:0,orient:"auto"},["path",{d:"M0 -4 11 0 0 4z"}]],["marker",{id:"arrowtail",style:"fill:#0041c4",markerHeight:7,markerWidth:10,markerUnits:"strokeWidth",viewBox:"-11 -4 11 8",refX:-15,refY:0,orient:"auto"},["path",{d:"M0 -4 -11 0 0 4z"}]],["marker",{id:"tee",style:"fill:#0041c4",markerHeight:6,markerWidth:1,markerUnits:"strokeWidth",viewBox:"0 0 1 6",refX:0,refY:3,orient:"auto"},["path",{d:"M 0 0 L 0 6",style:"stroke:#0041c4;stroke-width:2"}]]],["g",{id:"waves"},["g",{id:"lanes"}],["g",{id:"groups"}]]];try{e.exports=t}catch(n){}},6697:function(e){var t=t||{};t.default=["svg",{id:"svg",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",height:"0"},["style",{type:"text/css"},"text{font-size:11pt;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:center;fill-opacity:1;font-family:Helvetica}.h1{font-size:33pt;font-weight:bold}.h2{font-size:27pt;font-weight:bold}.h3{font-size:20pt;font-weight:bold}.h4{font-size:14pt;font-weight:bold}.h5{font-size:11pt;font-weight:bold}.h6{font-size:8pt;font-weight:bold}.muted{fill:#aaa}.warning{fill:#f6b900}.error{fill:#f60000}.info{fill:#0041c4}.success{fill:#00ab00}.s1{fill:none;stroke:#000;stroke-width:1;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none}.s2{fill:none;stroke:#000;stroke-width:0.5;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none}.s3{color:#000;fill:none;stroke:#000;stroke-width:1;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:1, 3;stroke-dashoffset:0;marker:none;visibility:visible;display:inline;overflow:visible}.s4{color:#000;fill:none;stroke:#000;stroke-width:1;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;marker:none;visibility:visible;display:inline;overflow:visible}.s5{fill:#fff;stroke:none}.s6{fill:#000;fill-opacity:1;stroke:none}.s7{color:#000;fill:#fff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1px;marker:none;visibility:visible;display:inline;overflow:visible}.s8{color:#000;fill:#ffffb4;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1px;marker:none;visibility:visible;display:inline;overflow:visible}.s9{color:#000;fill:#ffe0b9;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1px;marker:none;visibility:visible;display:inline;overflow:visible}.s10{color:#000;fill:#b9e0ff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1px;marker:none;visibility:visible;display:inline;overflow:visible}.s11{color:#000;fill:#ccfdfe;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1px;marker:none;visibility:visible;display:inline;overflow:visible}.s12{color:#000;fill:#cdfdc5;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1px;marker:none;visibility:visible;display:inline;overflow:visible}.s13{color:#000;fill:#f0c1fb;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1px;marker:none;visibility:visible;display:inline;overflow:visible}.s14{color:#000;fill:#f5c2c0;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1px;marker:none;visibility:visible;display:inline;overflow:visible}.s15{fill:#0041c4;fill-opacity:1;stroke:none}.s16{fill:none;stroke:#0041c4;stroke-width:1;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none}"],["defs",["g",{id:"socket"},["rect",{y:"15",x:"6",height:"20",width:"20"}]],["g",{id:"pclk"},["path",{d:"M0,20 0,0 20,0",class:"s1"}]],["g",{id:"nclk"},["path",{d:"m0,0 0,20 20,0",class:"s1"}]],["g",{id:"000"},["path",{d:"m0,20 20,0",class:"s1"}]],["g",{id:"0m0"},["path",{d:"m0,20 3,0 3,-10 3,10 11,0",class:"s1"}]],["g",{id:"0m1"},["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"0mx"},["path",{d:"M3,20 9,0 20,0",class:"s1"}],["path",{d:"m20,15 -5,5",class:"s2"}],["path",{d:"M20,10 10,20",class:"s2"}],["path",{d:"M20,5 5,20",class:"s2"}],["path",{d:"M20,0 4,16",class:"s2"}],["path",{d:"M15,0 6,9",class:"s2"}],["path",{d:"M10,0 9,1",class:"s2"}],["path",{d:"m0,20 20,0",class:"s1"}]],["g",{id:"0md"},["path",{d:"m8,20 10,0",class:"s3"}],["path",{d:"m0,20 5,0",class:"s1"}]],["g",{id:"0mu"},["path",{d:"m0,20 3,0 C 7,10 10.107603,0 20,0",class:"s1"}]],["g",{id:"0mz"},["path",{d:"m0,20 3,0 C 10,10 15,10 20,10",class:"s1"}]],["g",{id:"111"},["path",{d:"M0,0 20,0",class:"s1"}]],["g",{id:"1m0"},["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}]],["g",{id:"1m1"},["path",{d:"M0,0 3,0 6,10 9,0 20,0",class:"s1"}]],["g",{id:"1mx"},["path",{d:"m3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,0 20,0",class:"s1"}],["path",{d:"m20,15 -5,5",class:"s2"}],["path",{d:"M20,10 10,20",class:"s2"}],["path",{d:"M20,5 8,17",class:"s2"}],["path",{d:"M20,0 7,13",class:"s2"}],["path",{d:"M15,0 6,9",class:"s2"}],["path",{d:"M10,0 5,5",class:"s2"}],["path",{d:"M3.5,1.5 5,0",class:"s2"}]],["g",{id:"1md"},["path",{d:"m0,0 3,0 c 4,10 7,20 17,20",class:"s1"}]],["g",{id:"1mu"},["path",{d:"M0,0 5,0",class:"s1"}],["path",{d:"M8,0 18,0",class:"s3"}]],["g",{id:"1mz"},["path",{d:"m0,0 3,0 c 7,10 12,10 17,10",class:"s1"}]],["g",{id:"xxx"},["path",{d:"m0,20 20,0",class:"s1"}],["path",{d:"M0,0 20,0",class:"s1"}],["path",{d:"M0,5 5,0",class:"s2"}],["path",{d:"M0,10 10,0",class:"s2"}],["path",{d:"M0,15 15,0",class:"s2"}],["path",{d:"M0,20 20,0",class:"s2"}],["path",{d:"M5,20 20,5",class:"s2"}],["path",{d:"M10,20 20,10",class:"s2"}],["path",{d:"m15,20 5,-5",class:"s2"}]],["g",{id:"xm0"},["path",{d:"M0,0 4,0 9,20",class:"s1"}],["path",{d:"m0,20 20,0",class:"s1"}],["path",{d:"M0,5 4,1",class:"s2"}],["path",{d:"M0,10 5,5",class:"s2"}],["path",{d:"M0,15 6,9",class:"s2"}],["path",{d:"M0,20 7,13",class:"s2"}],["path",{d:"M5,20 8,17",class:"s2"}]],["g",{id:"xm1"},["path",{d:"M0,0 20,0",class:"s1"}],["path",{d:"M0,20 4,20 9,0",class:"s1"}],["path",{d:"M0,5 5,0",class:"s2"}],["path",{d:"M0,10 9,1",class:"s2"}],["path",{d:"M0,15 7,8",class:"s2"}],["path",{d:"M0,20 5,15",class:"s2"}]],["g",{id:"xmx"},["path",{d:"m0,20 20,0",class:"s1"}],["path",{d:"M0,0 20,0",class:"s1"}],["path",{d:"M0,5 5,0",class:"s2"}],["path",{d:"M0,10 10,0",class:"s2"}],["path",{d:"M0,15 15,0",class:"s2"}],["path",{d:"M0,20 20,0",class:"s2"}],["path",{d:"M5,20 20,5",class:"s2"}],["path",{d:"M10,20 20,10",class:"s2"}],["path",{d:"m15,20 5,-5",class:"s2"}]],["g",{id:"xmd"},["path",{d:"m0,0 4,0 c 3,10 6,20 16,20",class:"s1"}],["path",{d:"m0,20 20,0",class:"s1"}],["path",{d:"M0,5 4,1",class:"s2"}],["path",{d:"M0,10 5.5,4.5",class:"s2"}],["path",{d:"M0,15 6.5,8.5",class:"s2"}],["path",{d:"M0,20 8,12",class:"s2"}],["path",{d:"m5,20 5,-5",class:"s2"}],["path",{d:"m10,20 2.5,-2.5",class:"s2"}]],["g",{id:"xmu"},["path",{d:"M0,0 20,0",class:"s1"}],["path",{d:"m0,20 4,0 C 7,10 10,0 20,0",class:"s1"}],["path",{d:"M0,5 5,0",class:"s2"}],["path",{d:"M0,10 10,0",class:"s2"}],["path",{d:"M0,15 10,5",class:"s2"}],["path",{d:"M0,20 6,14",class:"s2"}]],["g",{id:"xmz"},["path",{d:"m0,0 4,0 c 6,10 11,10 16,10",class:"s1"}],["path",{d:"m0,20 4,0 C 10,10 15,10 20,10",class:"s1"}],["path",{d:"M0,5 4.5,0.5",class:"s2"}],["path",{d:"M0,10 6.5,3.5",class:"s2"}],["path",{d:"M0,15 8.5,6.5",class:"s2"}],["path",{d:"M0,20 11.5,8.5",class:"s2"}]],["g",{id:"ddd"},["path",{d:"m0,20 20,0",class:"s3"}]],["g",{id:"dm0"},["path",{d:"m0,20 10,0",class:"s3"}],["path",{d:"m12,20 8,0",class:"s1"}]],["g",{id:"dm1"},["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"dmx"},["path",{d:"M3,20 9,0 20,0",class:"s1"}],["path",{d:"m20,15 -5,5",class:"s2"}],["path",{d:"M20,10 10,20",class:"s2"}],["path",{d:"M20,5 5,20",class:"s2"}],["path",{d:"M20,0 4,16",class:"s2"}],["path",{d:"M15,0 6,9",class:"s2"}],["path",{d:"M10,0 9,1",class:"s2"}],["path",{d:"m0,20 20,0",class:"s1"}]],["g",{id:"dmd"},["path",{d:"m0,20 20,0",class:"s3"}]],["g",{id:"dmu"},["path",{d:"m0,20 3,0 C 7,10 10.107603,0 20,0",class:"s1"}]],["g",{id:"dmz"},["path",{d:"m0,20 3,0 C 10,10 15,10 20,10",class:"s1"}]],["g",{id:"uuu"},["path",{d:"M0,0 20,0",class:"s3"}]],["g",{id:"um0"},["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}]],["g",{id:"um1"},["path",{d:"M0,0 10,0",class:"s3"}],["path",{d:"m12,0 8,0",class:"s1"}]],["g",{id:"umx"},["path",{d:"m3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,0 20,0",class:"s1"}],["path",{d:"m20,15 -5,5",class:"s2"}],["path",{d:"M20,10 10,20",class:"s2"}],["path",{d:"M20,5 8,17",class:"s2"}],["path",{d:"M20,0 7,13",class:"s2"}],["path",{d:"M15,0 6,9",class:"s2"}],["path",{d:"M10,0 5,5",class:"s2"}],["path",{d:"M3.5,1.5 5,0",class:"s2"}]],["g",{id:"umd"},["path",{d:"m0,0 3,0 c 4,10 7,20 17,20",class:"s1"}]],["g",{id:"umu"},["path",{d:"M0,0 20,0",class:"s3"}]],["g",{id:"umz"},["path",{d:"m0,0 3,0 c 7,10 12,10 17,10",class:"s4"}]],["g",{id:"zzz"},["path",{d:"m0,10 20,0",class:"s1"}]],["g",{id:"zm0"},["path",{d:"m0,10 6,0 3,10 11,0",class:"s1"}]],["g",{id:"zm1"},["path",{d:"M0,10 6,10 9,0 20,0",class:"s1"}]],["g",{id:"zmx"},["path",{d:"m6,10 3,10 11,0",class:"s1"}],["path",{d:"M0,10 6,10 9,0 20,0",class:"s1"}],["path",{d:"m20,15 -5,5",class:"s2"}],["path",{d:"M20,10 10,20",class:"s2"}],["path",{d:"M20,5 8,17",class:"s2"}],["path",{d:"M20,0 7,13",class:"s2"}],["path",{d:"M15,0 6.5,8.5",class:"s2"}],["path",{d:"M10,0 9,1",class:"s2"}]],["g",{id:"zmd"},["path",{d:"m0,10 7,0 c 3,5 8,10 13,10",class:"s1"}]],["g",{id:"zmu"},["path",{d:"m0,10 7,0 C 10,5 15,0 20,0",class:"s1"}]],["g",{id:"zmz"},["path",{d:"m0,10 20,0",class:"s1"}]],["g",{id:"gap"},["path",{d:"m7,-2 -4,0 c -5,0 -5,24 -10,24 l 4,0 C 2,22 2,-2 7,-2 z",class:"s5"}],["path",{d:"M-7,22 C -2,22 -2,-2 3,-2",class:"s1"}],["path",{d:"M-3,22 C 2,22 2,-2 7,-2",class:"s1"}]],["g",{id:"Pclk"},["path",{d:"M-3,12 0,3 3,12 C 1,11 -1,11 -3,12 z",class:"s6"}],["path",{d:"M0,20 0,0 20,0",class:"s1"}]],["g",{id:"Nclk"},["path",{d:"M-3,8 0,17 3,8 C 1,9 -1,9 -3,8 z",class:"s6"}],["path",{d:"m0,0 0,20 20,0",class:"s1"}]],["g",{id:"0mv-2"},["path",{d:"M9,0 20,0 20,20 3,20 z",class:"s7"}],["path",{d:"M3,20 9,0 20,0",class:"s1"}],["path",{d:"m0,20 20,0",class:"s1"}]],["g",{id:"1mv-2"},["path",{d:"M2.875,0 20,0 20,20 9,20 z",class:"s7"}],["path",{d:"m3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,0 20,0",class:"s1"}]],["g",{id:"xmv-2"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s7"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,5 3.5,1.5",class:"s2"}],["path",{d:"M0,10 4.5,5.5",class:"s2"}],["path",{d:"M0,15 6,9",class:"s2"}],["path",{d:"M0,20 4,16",class:"s2"}]],["g",{id:"dmv-2"},["path",{d:"M9,0 20,0 20,20 3,20 z",class:"s7"}],["path",{d:"M3,20 9,0 20,0",class:"s1"}],["path",{d:"m0,20 20,0",class:"s1"}]],["g",{id:"umv-2"},["path",{d:"M3,0 20,0 20,20 9,20 z",class:"s7"}],["path",{d:"m3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,0 20,0",class:"s1"}]],["g",{id:"zmv-2"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s7"}],["path",{d:"m6,10 3,10 11,0",class:"s1"}],["path",{d:"M0,10 6,10 9,0 20,0",class:"s1"}]],["g",{id:"vvv-2"},["path",{d:"M20,20 0,20 0,0 20,0",class:"s7"}],["path",{d:"m0,20 20,0",class:"s1"}],["path",{d:"M0,0 20,0",class:"s1"}]],["g",{id:"vm0-2"},["path",{d:"M0,20 0,0 3,0 9,20",class:"s7"}],["path",{d:"M0,0 3,0 9,20",class:"s1"}],["path",{d:"m0,20 20,0",class:"s1"}]],["g",{id:"vm1-2"},["path",{d:"M0,0 0,20 3,20 9,0",class:"s7"}],["path",{d:"M0,0 20,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0",class:"s1"}]],["g",{id:"vmx-2"},["path",{d:"M0,0 0,20 3,20 6,10 3,0",class:"s7"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}],["path",{d:"m20,15 -5,5",class:"s2"}],["path",{d:"M20,10 10,20",class:"s2"}],["path",{d:"M20,5 8,17",class:"s2"}],["path",{d:"M20,0 7,13",class:"s2"}],["path",{d:"M15,0 7,8",class:"s2"}],["path",{d:"M10,0 9,1",class:"s2"}]],["g",{id:"vmd-2"},["path",{d:"m0,0 0,20 20,0 C 10,20 7,10 3,0",class:"s7"}],["path",{d:"m0,0 3,0 c 4,10 7,20 17,20",class:"s1"}],["path",{d:"m0,20 20,0",class:"s1"}]],["g",{id:"vmu-2"},["path",{d:"m0,0 0,20 3,0 C 7,10 10,0 20,0",class:"s7"}],["path",{d:"m0,20 3,0 C 7,10 10,0 20,0",class:"s1"}],["path",{d:"M0,0 20,0",class:"s1"}]],["g",{id:"vmz-2"},["path",{d:"M0,0 3,0 C 10,10 15,10 20,10 15,10 10,10 3,20 L 0,20",class:"s7"}],["path",{d:"m0,0 3,0 c 7,10 12,10 17,10",class:"s1"}],["path",{d:"m0,20 3,0 C 10,10 15,10 20,10",class:"s1"}]],["g",{id:"0mv-3"},["path",{d:"M9,0 20,0 20,20 3,20 z",class:"s8"}],["path",{d:"M3,20 9,0 20,0",class:"s1"}],["path",{d:"m0,20 20,0",class:"s1"}]],["g",{id:"1mv-3"},["path",{d:"M2.875,0 20,0 20,20 9,20 z",class:"s8"}],["path",{d:"m3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,0 20,0",class:"s1"}]],["g",{id:"xmv-3"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s8"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,5 3.5,1.5",class:"s2"}],["path",{d:"M0,10 4.5,5.5",class:"s2"}],["path",{d:"M0,15 6,9",class:"s2"}],["path",{d:"M0,20 4,16",class:"s2"}]],["g",{id:"dmv-3"},["path",{d:"M9,0 20,0 20,20 3,20 z",class:"s8"}],["path",{d:"M3,20 9,0 20,0",class:"s1"}],["path",{d:"m0,20 20,0",class:"s1"}]],["g",{id:"umv-3"},["path",{d:"M3,0 20,0 20,20 9,20 z",class:"s8"}],["path",{d:"m3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,0 20,0",class:"s1"}]],["g",{id:"zmv-3"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s8"}],["path",{d:"m6,10 3,10 11,0",class:"s1"}],["path",{d:"M0,10 6,10 9,0 20,0",class:"s1"}]],["g",{id:"vvv-3"},["path",{d:"M20,20 0,20 0,0 20,0",class:"s8"}],["path",{d:"m0,20 20,0",class:"s1"}],["path",{d:"M0,0 20,0",class:"s1"}]],["g",{id:"vm0-3"},["path",{d:"M0,20 0,0 3,0 9,20",class:"s8"}],["path",{d:"M0,0 3,0 9,20",class:"s1"}],["path",{d:"m0,20 20,0",class:"s1"}]],["g",{id:"vm1-3"},["path",{d:"M0,0 0,20 3,20 9,0",class:"s8"}],["path",{d:"M0,0 20,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0",class:"s1"}]],["g",{id:"vmx-3"},["path",{d:"M0,0 0,20 3,20 6,10 3,0",class:"s8"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}],["path",{d:"m20,15 -5,5",class:"s2"}],["path",{d:"M20,10 10,20",class:"s2"}],["path",{d:"M20,5 8,17",class:"s2"}],["path",{d:"M20,0 7,13",class:"s2"}],["path",{d:"M15,0 7,8",class:"s2"}],["path",{d:"M10,0 9,1",class:"s2"}]],["g",{id:"vmd-3"},["path",{d:"m0,0 0,20 20,0 C 10,20 7,10 3,0",class:"s8"}],["path",{d:"m0,0 3,0 c 4,10 7,20 17,20",class:"s1"}],["path",{d:"m0,20 20,0",class:"s1"}]],["g",{id:"vmu-3"},["path",{d:"m0,0 0,20 3,0 C 7,10 10,0 20,0",class:"s8"}],["path",{d:"m0,20 3,0 C 7,10 10,0 20,0",class:"s1"}],["path",{d:"M0,0 20,0",class:"s1"}]],["g",{id:"vmz-3"},["path",{d:"M0,0 3,0 C 10,10 15,10 20,10 15,10 10,10 3,20 L 0,20",class:"s8"}],["path",{d:"m0,0 3,0 c 7,10 12,10 17,10",class:"s1"}],["path",{d:"m0,20 3,0 C 10,10 15,10 20,10",class:"s1"}]],["g",{id:"0mv-4"},["path",{d:"M9,0 20,0 20,20 3,20 z",class:"s9"}],["path",{d:"M3,20 9,0 20,0",class:"s1"}],["path",{d:"m0,20 20,0",class:"s1"}]],["g",{id:"1mv-4"},["path",{d:"M2.875,0 20,0 20,20 9,20 z",class:"s9"}],["path",{d:"m3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,0 20,0",class:"s1"}]],["g",{id:"xmv-4"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s9"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,5 3.5,1.5",class:"s2"}],["path",{d:"M0,10 4.5,5.5",class:"s2"}],["path",{d:"M0,15 6,9",class:"s2"}],["path",{d:"M0,20 4,16",class:"s2"}]],["g",{id:"dmv-4"},["path",{d:"M9,0 20,0 20,20 3,20 z",class:"s9"}],["path",{d:"M3,20 9,0 20,0",class:"s1"}],["path",{d:"m0,20 20,0",class:"s1"}]],["g",{id:"umv-4"},["path",{d:"M3,0 20,0 20,20 9,20 z",class:"s9"}],["path",{d:"m3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,0 20,0",class:"s1"}]],["g",{id:"zmv-4"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s9"}],["path",{d:"m6,10 3,10 11,0",class:"s1"}],["path",{d:"M0,10 6,10 9,0 20,0",class:"s1"}]],["g",{id:"vvv-4"},["path",{d:"M20,20 0,20 0,0 20,0",class:"s9"}],["path",{d:"m0,20 20,0",class:"s1"}],["path",{d:"M0,0 20,0",class:"s1"}]],["g",{id:"vm0-4"},["path",{d:"M0,20 0,0 3,0 9,20",class:"s9"}],["path",{d:"M0,0 3,0 9,20",class:"s1"}],["path",{d:"m0,20 20,0",class:"s1"}]],["g",{id:"vm1-4"},["path",{d:"M0,0 0,20 3,20 9,0",class:"s9"}],["path",{d:"M0,0 20,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0",class:"s1"}]],["g",{id:"vmx-4"},["path",{d:"M0,0 0,20 3,20 6,10 3,0",class:"s9"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}],["path",{d:"m20,15 -5,5",class:"s2"}],["path",{d:"M20,10 10,20",class:"s2"}],["path",{d:"M20,5 8,17",class:"s2"}],["path",{d:"M20,0 7,13",class:"s2"}],["path",{d:"M15,0 7,8",class:"s2"}],["path",{d:"M10,0 9,1",class:"s2"}]],["g",{id:"vmd-4"},["path",{d:"m0,0 0,20 20,0 C 10,20 7,10 3,0",class:"s9"}],["path",{d:"m0,0 3,0 c 4,10 7,20 17,20",class:"s1"}],["path",{d:"m0,20 20,0",class:"s1"}]],["g",{id:"vmu-4"},["path",{d:"m0,0 0,20 3,0 C 7,10 10,0 20,0",class:"s9"}],["path",{d:"m0,20 3,0 C 7,10 10,0 20,0",class:"s1"}],["path",{d:"M0,0 20,0",class:"s1"}]],["g",{id:"vmz-4"},["path",{d:"M0,0 3,0 C 10,10 15,10 20,10 15,10 10,10 3,20 L 0,20",class:"s9"}],["path",{d:"m0,0 3,0 c 7,10 12,10 17,10",class:"s1"}],["path",{d:"m0,20 3,0 C 10,10 15,10 20,10",class:"s1"}]],["g",{id:"0mv-5"},["path",{d:"M9,0 20,0 20,20 3,20 z",class:"s10"}],["path",{d:"M3,20 9,0 20,0",class:"s1"}],["path",{d:"m0,20 20,0",class:"s1"}]],["g",{id:"1mv-5"},["path",{d:"M2.875,0 20,0 20,20 9,20 z",class:"s10"}],["path",{d:"m3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,0 20,0",class:"s1"}]],["g",{id:"xmv-5"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s10"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,5 3.5,1.5",class:"s2"}],["path",{d:"M0,10 4.5,5.5",class:"s2"}],["path",{d:"M0,15 6,9",class:"s2"}],["path",{d:"M0,20 4,16",class:"s2"}]],["g",{id:"dmv-5"},["path",{d:"M9,0 20,0 20,20 3,20 z",class:"s10"}],["path",{d:"M3,20 9,0 20,0",class:"s1"}],["path",{d:"m0,20 20,0",class:"s1"}]],["g",{id:"umv-5"},["path",{d:"M3,0 20,0 20,20 9,20 z",class:"s10"}],["path",{d:"m3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,0 20,0",class:"s1"}]],["g",{id:"zmv-5"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s10"}],["path",{d:"m6,10 3,10 11,0",class:"s1"}],["path",{d:"M0,10 6,10 9,0 20,0",class:"s1"}]],["g",{id:"vvv-5"},["path",{d:"M20,20 0,20 0,0 20,0",class:"s10"}],["path",{d:"m0,20 20,0",class:"s1"}],["path",{d:"M0,0 20,0",class:"s1"}]],["g",{id:"vm0-5"},["path",{d:"M0,20 0,0 3,0 9,20",class:"s10"}],["path",{d:"M0,0 3,0 9,20",class:"s1"}],["path",{d:"m0,20 20,0",class:"s1"}]],["g",{id:"vm1-5"},["path",{d:"M0,0 0,20 3,20 9,0",class:"s10"}],["path",{d:"M0,0 20,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0",class:"s1"}]],["g",{id:"vmx-5"},["path",{d:"M0,0 0,20 3,20 6,10 3,0",class:"s10"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}],["path",{d:"m20,15 -5,5",class:"s2"}],["path",{d:"M20,10 10,20",class:"s2"}],["path",{d:"M20,5 8,17",class:"s2"}],["path",{d:"M20,0 7,13",class:"s2"}],["path",{d:"M15,0 7,8",class:"s2"}],["path",{d:"M10,0 9,1",class:"s2"}]],["g",{id:"vmd-5"},["path",{d:"m0,0 0,20 20,0 C 10,20 7,10 3,0",class:"s10"}],["path",{d:"m0,0 3,0 c 4,10 7,20 17,20",class:"s1"}],["path",{d:"m0,20 20,0",class:"s1"}]],["g",{id:"vmu-5"},["path",{d:"m0,0 0,20 3,0 C 7,10 10,0 20,0",class:"s10"}],["path",{d:"m0,20 3,0 C 7,10 10,0 20,0",class:"s1"}],["path",{d:"M0,0 20,0",class:"s1"}]],["g",{id:"vmz-5"},["path",{d:"M0,0 3,0 C 10,10 15,10 20,10 15,10 10,10 3,20 L 0,20",class:"s10"}],["path",{d:"m0,0 3,0 c 7,10 12,10 17,10",class:"s1"}],["path",{d:"m0,20 3,0 C 10,10 15,10 20,10",class:"s1"}]],["g",{id:"0mv-6"},["path",{d:"M9,0 20,0 20,20 3,20 z",class:"s11"}],["path",{d:"M3,20 9,0 20,0",class:"s1"}],["path",{d:"m0,20 20,0",class:"s1"}]],["g",{id:"1mv-6"},["path",{d:"M2.875,0 20,0 20,20 9,20 z",class:"s11"}],["path",{d:"m3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,0 20,0",class:"s1"}]],["g",{id:"xmv-6"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s11"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,5 3.5,1.5",class:"s2"}],["path",{d:"M0,10 4.5,5.5",class:"s2"}],["path",{d:"M0,15 6,9",class:"s2"}],["path",{d:"M0,20 4,16",class:"s2"}]],["g",{id:"dmv-6"},["path",{d:"M9,0 20,0 20,20 3,20 z",class:"s11"}],["path",{d:"M3,20 9,0 20,0",class:"s1"}],["path",{d:"m0,20 20,0",class:"s1"}]],["g",{id:"umv-6"},["path",{d:"M3,0 20,0 20,20 9,20 z",class:"s11"}],["path",{d:"m3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,0 20,0",class:"s1"}]],["g",{id:"zmv-6"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s11"}],["path",{d:"m6,10 3,10 11,0",class:"s1"}],["path",{d:"M0,10 6,10 9,0 20,0",class:"s1"}]],["g",{id:"vvv-6"},["path",{d:"M20,20 0,20 0,0 20,0",class:"s11"}],["path",{d:"m0,20 20,0",class:"s1"}],["path",{d:"M0,0 20,0",class:"s1"}]],["g",{id:"vm0-6"},["path",{d:"M0,20 0,0 3,0 9,20",class:"s11"}],["path",{d:"M0,0 3,0 9,20",class:"s1"}],["path",{d:"m0,20 20,0",class:"s1"}]],["g",{id:"vm1-6"},["path",{d:"M0,0 0,20 3,20 9,0",class:"s11"}],["path",{d:"M0,0 20,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0",class:"s1"}]],["g",{id:"vmx-6"},["path",{d:"M0,0 0,20 3,20 6,10 3,0",class:"s11"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}],["path",{d:"m20,15 -5,5",class:"s2"}],["path",{d:"M20,10 10,20",class:"s2"}],["path",{d:"M20,5 8,17",class:"s2"}],["path",{d:"M20,0 7,13",class:"s2"}],["path",{d:"M15,0 7,8",class:"s2"}],["path",{d:"M10,0 9,1",class:"s2"}]],["g",{id:"vmd-6"},["path",{d:"m0,0 0,20 20,0 C 10,20 7,10 3,0",class:"s11"}],["path",{d:"m0,0 3,0 c 4,10 7,20 17,20",class:"s1"}],["path",{d:"m0,20 20,0",class:"s1"}]],["g",{id:"vmu-6"},["path",{d:"m0,0 0,20 3,0 C 7,10 10,0 20,0",class:"s11"}],["path",{d:"m0,20 3,0 C 7,10 10,0 20,0",class:"s1"}],["path",{d:"M0,0 20,0",class:"s1"}]],["g",{id:"vmz-6"},["path",{d:"M0,0 3,0 C 10,10 15,10 20,10 15,10 10,10 3,20 L 0,20",class:"s11"}],["path",{d:"m0,0 3,0 c 7,10 12,10 17,10",class:"s1"}],["path",{d:"m0,20 3,0 C 10,10 15,10 20,10",class:"s1"}]],["g",{id:"0mv-7"},["path",{d:"M9,0 20,0 20,20 3,20 z",class:"s12"}],["path",{d:"M3,20 9,0 20,0",class:"s1"}],["path",{d:"m0,20 20,0",class:"s1"}]],["g",{id:"1mv-7"},["path",{d:"M2.875,0 20,0 20,20 9,20 z",class:"s12"}],["path",{d:"m3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,0 20,0",class:"s1"}]],["g",{id:"xmv-7"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s12"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,5 3.5,1.5",class:"s2"}],["path",{d:"M0,10 4.5,5.5",class:"s2"}],["path",{d:"M0,15 6,9",class:"s2"}],["path",{d:"M0,20 4,16",class:"s2"}]],["g",{id:"dmv-7"},["path",{d:"M9,0 20,0 20,20 3,20 z",class:"s12"}],["path",{d:"M3,20 9,0 20,0",class:"s1"}],["path",{d:"m0,20 20,0",class:"s1"}]],["g",{id:"umv-7"},["path",{d:"M3,0 20,0 20,20 9,20 z",class:"s12"}],["path",{d:"m3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,0 20,0",class:"s1"}]],["g",{id:"zmv-7"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s12"}],["path",{d:"m6,10 3,10 11,0",class:"s1"}],["path",{d:"M0,10 6,10 9,0 20,0",class:"s1"}]],["g",{id:"vvv-7"},["path",{d:"M20,20 0,20 0,0 20,0",class:"s12"}],["path",{d:"m0,20 20,0",class:"s1"}],["path",{d:"M0,0 20,0",class:"s1"}]],["g",{id:"vm0-7"},["path",{d:"M0,20 0,0 3,0 9,20",class:"s12"}],["path",{d:"M0,0 3,0 9,20",class:"s1"}],["path",{d:"m0,20 20,0",class:"s1"}]],["g",{id:"vm1-7"},["path",{d:"M0,0 0,20 3,20 9,0",class:"s12"}],["path",{d:"M0,0 20,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0",class:"s1"}]],["g",{id:"vmx-7"},["path",{d:"M0,0 0,20 3,20 6,10 3,0",class:"s12"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}],["path",{d:"m20,15 -5,5",class:"s2"}],["path",{d:"M20,10 10,20",class:"s2"}],["path",{d:"M20,5 8,17",class:"s2"}],["path",{d:"M20,0 7,13",class:"s2"}],["path",{d:"M15,0 7,8",class:"s2"}],["path",{d:"M10,0 9,1",class:"s2"}]],["g",{id:"vmd-7"},["path",{d:"m0,0 0,20 20,0 C 10,20 7,10 3,0",class:"s12"}],["path",{d:"m0,0 3,0 c 4,10 7,20 17,20",class:"s1"}],["path",{d:"m0,20 20,0",class:"s1"}]],["g",{id:"vmu-7"},["path",{d:"m0,0 0,20 3,0 C 7,10 10,0 20,0",class:"s12"}],["path",{d:"m0,20 3,0 C 7,10 10,0 20,0",class:"s1"}],["path",{d:"M0,0 20,0",class:"s1"}]],["g",{id:"vmz-7"},["path",{d:"M0,0 3,0 C 10,10 15,10 20,10 15,10 10,10 3,20 L 0,20",class:"s12"}],["path",{d:"m0,0 3,0 c 7,10 12,10 17,10",class:"s1"}],["path",{d:"m0,20 3,0 C 10,10 15,10 20,10",class:"s1"}]],["g",{id:"0mv-8"},["path",{d:"M9,0 20,0 20,20 3,20 z",class:"s13"}],["path",{d:"M3,20 9,0 20,0",class:"s1"}],["path",{d:"m0,20 20,0",class:"s1"}]],["g",{id:"1mv-8"},["path",{d:"M2.875,0 20,0 20,20 9,20 z",class:"s13"}],["path",{d:"m3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,0 20,0",class:"s1"}]],["g",{id:"xmv-8"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s13"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,5 3.5,1.5",class:"s2"}],["path",{d:"M0,10 4.5,5.5",class:"s2"}],["path",{d:"M0,15 6,9",class:"s2"}],["path",{d:"M0,20 4,16",class:"s2"}]],["g",{id:"dmv-8"},["path",{d:"M9,0 20,0 20,20 3,20 z",class:"s13"}],["path",{d:"M3,20 9,0 20,0",class:"s1"}],["path",{d:"m0,20 20,0",class:"s1"}]],["g",{id:"umv-8"},["path",{d:"M3,0 20,0 20,20 9,20 z",class:"s13"}],["path",{d:"m3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,0 20,0",class:"s1"}]],["g",{id:"zmv-8"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s13"}],["path",{d:"m6,10 3,10 11,0",class:"s1"}],["path",{d:"M0,10 6,10 9,0 20,0",class:"s1"}]],["g",{id:"vvv-8"},["path",{d:"M20,20 0,20 0,0 20,0",class:"s13"}],["path",{d:"m0,20 20,0",class:"s1"}],["path",{d:"M0,0 20,0",class:"s1"}]],["g",{id:"vm0-8"},["path",{d:"M0,20 0,0 3,0 9,20",class:"s13"}],["path",{d:"M0,0 3,0 9,20",class:"s1"}],["path",{d:"m0,20 20,0",class:"s1"}]],["g",{id:"vm1-8"},["path",{d:"M0,0 0,20 3,20 9,0",class:"s13"}],["path",{d:"M0,0 20,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0",class:"s1"}]],["g",{id:"vmx-8"},["path",{d:"M0,0 0,20 3,20 6,10 3,0",class:"s13"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}],["path",{d:"m20,15 -5,5",class:"s2"}],["path",{d:"M20,10 10,20",class:"s2"}],["path",{d:"M20,5 8,17",class:"s2"}],["path",{d:"M20,0 7,13",class:"s2"}],["path",{d:"M15,0 7,8",class:"s2"}],["path",{d:"M10,0 9,1",class:"s2"}]],["g",{id:"vmd-8"},["path",{d:"m0,0 0,20 20,0 C 10,20 7,10 3,0",class:"s13"}],["path",{d:"m0,0 3,0 c 4,10 7,20 17,20",class:"s1"}],["path",{d:"m0,20 20,0",class:"s1"}]],["g",{id:"vmu-8"},["path",{d:"m0,0 0,20 3,0 C 7,10 10,0 20,0",class:"s13"}],["path",{d:"m0,20 3,0 C 7,10 10,0 20,0",class:"s1"}],["path",{d:"M0,0 20,0",class:"s1"}]],["g",{id:"vmz-8"},["path",{d:"M0,0 3,0 C 10,10 15,10 20,10 15,10 10,10 3,20 L 0,20",class:"s13"}],["path",{d:"m0,0 3,0 c 7,10 12,10 17,10",class:"s1"}],["path",{d:"m0,20 3,0 C 10,10 15,10 20,10",class:"s1"}]],["g",{id:"0mv-9"},["path",{d:"M9,0 20,0 20,20 3,20 z",class:"s14"}],["path",{d:"M3,20 9,0 20,0",class:"s1"}],["path",{d:"m0,20 20,0",class:"s1"}]],["g",{id:"1mv-9"},["path",{d:"M2.875,0 20,0 20,20 9,20 z",class:"s14"}],["path",{d:"m3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,0 20,0",class:"s1"}]],["g",{id:"xmv-9"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s14"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,5 3.5,1.5",class:"s2"}],["path",{d:"M0,10 4.5,5.5",class:"s2"}],["path",{d:"M0,15 6,9",class:"s2"}],["path",{d:"M0,20 4,16",class:"s2"}]],["g",{id:"dmv-9"},["path",{d:"M9,0 20,0 20,20 3,20 z",class:"s14"}],["path",{d:"M3,20 9,0 20,0",class:"s1"}],["path",{d:"m0,20 20,0",class:"s1"}]],["g",{id:"umv-9"},["path",{d:"M3,0 20,0 20,20 9,20 z",class:"s14"}],["path",{d:"m3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,0 20,0",class:"s1"}]],["g",{id:"zmv-9"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s14"}],["path",{d:"m6,10 3,10 11,0",class:"s1"}],["path",{d:"M0,10 6,10 9,0 20,0",class:"s1"}]],["g",{id:"vvv-9"},["path",{d:"M20,20 0,20 0,0 20,0",class:"s14"}],["path",{d:"m0,20 20,0",class:"s1"}],["path",{d:"M0,0 20,0",class:"s1"}]],["g",{id:"vm0-9"},["path",{d:"M0,20 0,0 3,0 9,20",class:"s14"}],["path",{d:"M0,0 3,0 9,20",class:"s1"}],["path",{d:"m0,20 20,0",class:"s1"}]],["g",{id:"vm1-9"},["path",{d:"M0,0 0,20 3,20 9,0",class:"s14"}],["path",{d:"M0,0 20,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0",class:"s1"}]],["g",{id:"vmx-9"},["path",{d:"M0,0 0,20 3,20 6,10 3,0",class:"s14"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}],["path",{d:"m20,15 -5,5",class:"s2"}],["path",{d:"M20,10 10,20",class:"s2"}],["path",{d:"M20,5 8,17",class:"s2"}],["path",{d:"M20,0 7,13",class:"s2"}],["path",{d:"M15,0 7,8",class:"s2"}],["path",{d:"M10,0 9,1",class:"s2"}]],["g",{id:"vmd-9"},["path",{d:"m0,0 0,20 20,0 C 10,20 7,10 3,0",class:"s14"}],["path",{d:"m0,0 3,0 c 4,10 7,20 17,20",class:"s1"}],["path",{d:"m0,20 20,0",class:"s1"}]],["g",{id:"vmu-9"},["path",{d:"m0,0 0,20 3,0 C 7,10 10,0 20,0",class:"s14"}],["path",{d:"m0,20 3,0 C 7,10 10,0 20,0",class:"s1"}],["path",{d:"M0,0 20,0",class:"s1"}]],["g",{id:"vmz-9"},["path",{d:"M0,0 3,0 C 10,10 15,10 20,10 15,10 10,10 3,20 L 0,20",class:"s14"}],["path",{d:"m0,0 3,0 c 7,10 12,10 17,10",class:"s1"}],["path",{d:"m0,20 3,0 C 10,10 15,10 20,10",class:"s1"}]],["g",{id:"vmv-2-2"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s7"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s7"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-3-2"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s7"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s8"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-4-2"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s7"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s9"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-5-2"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s7"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s10"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-6-2"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s7"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s11"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-7-2"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s7"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s12"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-8-2"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s7"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s13"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-9-2"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s7"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s14"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-2-3"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s8"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s7"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-3-3"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s8"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s8"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-4-3"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s8"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s9"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-5-3"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s8"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s10"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-6-3"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s8"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s11"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-7-3"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s8"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s12"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-8-3"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s8"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s13"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-9-3"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s8"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s14"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-2-4"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s9"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s7"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-3-4"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s9"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s8"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-4-4"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s9"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s9"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-5-4"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s9"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s10"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-6-4"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s9"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s11"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-7-4"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s9"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s12"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-8-4"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s9"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s13"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-9-4"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s9"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s14"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-2-5"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s10"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s7"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-3-5"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s10"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s8"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-4-5"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s10"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s9"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-5-5"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s10"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s10"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-6-5"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s10"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s11"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-7-5"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s10"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s12"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-8-5"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s10"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s13"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-9-5"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s10"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s14"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-2-6"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s11"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s7"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-3-6"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s11"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s8"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-4-6"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s11"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s9"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-5-6"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s11"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s10"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-6-6"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s11"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s11"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-7-6"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s11"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s12"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-8-6"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s11"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s13"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-9-6"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s11"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s14"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-2-7"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s12"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s7"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-3-7"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s12"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s8"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-4-7"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s12"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s9"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-5-7"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s12"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s10"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-6-7"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s12"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s11"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-7-7"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s12"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s12"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-8-7"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s12"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s13"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-9-7"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s12"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s14"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-2-8"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s13"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s7"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-3-8"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s13"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s8"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-4-8"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s13"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s9"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-5-8"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s13"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s10"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-6-8"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s13"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s11"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-7-8"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s13"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s12"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-8-8"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s13"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s13"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-9-8"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s13"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s14"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-2-9"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s14"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s7"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-3-9"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s14"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s8"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-4-9"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s14"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s9"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-5-9"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s14"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s10"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-6-9"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s14"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s11"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-7-9"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s14"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s12"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-8-9"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s14"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s13"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"vmv-9-9"},["path",{d:"M9,0 20,0 20,20 9,20 6,10 z",class:"s14"}],["path",{d:"M3,0 0,0 0,20 3,20 6,10 z",class:"s14"}],["path",{d:"m0,0 3,0 6,20 11,0",class:"s1"}],["path",{d:"M0,20 3,20 9,0 20,0",class:"s1"}]],["g",{id:"arrow0"},["path",{d:"m-12,-3 9,3 -9,3 c 1,-2 1,-4 0,-6 z",class:"s15"}],["path",{d:"M0,0 -15,0",class:"s16"}]],["marker",{id:"arrowhead",style:"fill:#0041c4",markerHeight:7,markerWidth:10,markerUnits:"strokeWidth",viewBox:"0 -4 11 8",refX:15,refY:0,orient:"auto"},["path",{d:"M0 -4 11 0 0 4z"}]],["marker",{id:"arrowtail",style:"fill:#0041c4",markerHeight:7,markerWidth:10,markerUnits:"strokeWidth",viewBox:"-11 -4 11 8",refX:-15,refY:0,orient:"auto"},["path",{d:"M0 -4 -11 0 0 4z"}]],["marker",{id:"tee",style:"fill:#0041c4",markerHeight:6,markerWidth:1,markerUnits:"strokeWidth",viewBox:"0 0 1 6",refX:0,refY:3,orient:"auto"},["path",{d:"M 0 0 L 0 6",style:"stroke:#0041c4;stroke-width:2"}]]],["g",{id:"waves"},["g",{id:"lanes"}],["g",{id:"groups"}]]];try{e.exports=t}catch(n){}},9306:function(e,t,n){"use strict";var r=n(4901),a=n(6823),i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(a(e)+" is not a function")}},3506:function(e,t,n){"use strict";var r=n(3925),a=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i("Can't set "+a(e)+" as a prototype")}},7080:function(e,t,n){"use strict";var r=n(4402).has;e.exports=function(e){return r(e),e}},6469:function(e,t,n){"use strict";var r=n(8227),a=n(2360),i=n(4913).f,o=r("unscopables"),s=Array.prototype;void 0===s[o]&&i(s,o,{configurable:!0,value:a(null)}),e.exports=function(e){s[o][e]=!0}},679:function(e,t,n){"use strict";var r=n(1625),a=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw new a("Incorrect invocation")}},8551:function(e,t,n){"use strict";var r=n(34),a=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(a(e)+" is not an object")}},7811:function(e){"use strict";e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},7394:function(e,t,n){"use strict";var r=n(4576),a=n(6706),i=n(2195),o=r.ArrayBuffer,s=r.TypeError;e.exports=o&&a(o.prototype,"byteLength","get")||function(e){if("ArrayBuffer"!==i(e))throw new s("ArrayBuffer expected");return e.byteLength}},3238:function(e,t,n){"use strict";var r=n(4576),a=n(7811),i=n(7394),o=r.DataView;e.exports=function(e){if(!a||0!==i(e))return!1;try{return new o(e),!1}catch(t){return!0}}},5169:function(e,t,n){"use strict";var r=n(3238),a=TypeError;e.exports=function(e){if(r(e))throw new a("ArrayBuffer is detached");return e}},5636:function(e,t,n){"use strict";var r=n(4576),a=n(9504),i=n(6706),o=n(7696),s=n(5169),l=n(7394),c=n(4483),u=n(1548),d=r.structuredClone,h=r.ArrayBuffer,p=r.DataView,f=Math.min,m=h.prototype,g=p.prototype,v=a(m.slice),y=i(m,"resizable","get"),b=i(m,"maxByteLength","get"),w=a(g.getInt8),x=a(g.setInt8);e.exports=(u||c)&&function(e,t,n){var r,a=l(e),i=void 0===t?a:o(t),m=!y||!y(e);if(s(e),u&&(e=d(e,{transfer:[e]}),a===i&&(n||m)))return e;if(a>=i&&(!n||m))r=v(e,0,i);else{var g=n&&!m&&b?{maxByteLength:b(e)}:void 0;r=new h(i,g);for(var k=new p(e),_=new p(r),C=f(i,a),E=0;E<C;E++)x(_,E,w(k,E))}return u||c(e),r}},4644:function(e,t,n){"use strict";var r,a,i,o=n(7811),s=n(3724),l=n(4576),c=n(4901),u=n(34),d=n(9297),h=n(6955),p=n(6823),f=n(6699),m=n(6840),g=n(2106),v=n(1625),y=n(2787),b=n(2967),w=n(8227),x=n(3392),k=n(1181),_=k.enforce,C=k.get,E=l.Int8Array,R=E&&E.prototype,S=l.Uint8ClampedArray,A=S&&S.prototype,T=E&&y(E),M=R&&y(R),L=Object.prototype,O=l.TypeError,I=w("toStringTag"),N=x("TYPED_ARRAY_TAG"),B="TypedArrayConstructor",D=o&&!!b&&"Opera"!==h(l.opera),F=!1,$={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},P={BigInt64Array:8,BigUint64Array:8},z=function(e){if(!u(e))return!1;var t=h(e);return"DataView"===t||d($,t)||d(P,t)},W=function(e){var t=y(e);if(u(t)){var n=C(t);return n&&d(n,B)?n[B]:W(t)}},j=function(e){if(!u(e))return!1;var t=h(e);return d($,t)||d(P,t)},V=function(e){if(j(e))return e;throw new O("Target is not a typed array")},U=function(e){if(c(e)&&(!b||v(T,e)))return e;throw new O(p(e)+" is not a typed array constructor")},K=function(e,t,n,r){if(s){if(n)for(var a in $){var i=l[a];if(i&&d(i.prototype,e))try{delete i.prototype[e]}catch(o){try{i.prototype[e]=t}catch(c){}}}M[e]&&!n||m(M,e,n?t:D&&R[e]||t,r)}},H=function(e,t,n){var r,a;if(s){if(b){if(n)for(r in $)if(a=l[r],a&&d(a,e))try{delete a[e]}catch(i){}if(T[e]&&!n)return;try{return m(T,e,n?t:D&&T[e]||t)}catch(i){}}for(r in $)a=l[r],!a||a[e]&&!n||m(a,e,t)}};for(r in $)a=l[r],i=a&&a.prototype,i?_(i)[B]=a:D=!1;for(r in P)a=l[r],i=a&&a.prototype,i&&(_(i)[B]=a);if((!D||!c(T)||T===Function.prototype)&&(T=function(){throw new O("Incorrect invocation")},D))for(r in $)l[r]&&b(l[r],T);if((!D||!M||M===L)&&(M=T.prototype,D))for(r in $)l[r]&&b(l[r].prototype,M);if(D&&y(A)!==M&&b(A,M),s&&!d(M,I))for(r in F=!0,g(M,I,{configurable:!0,get:function(){return u(this)?this[N]:void 0}}),$)l[r]&&f(l[r],N,r);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:D,TYPED_ARRAY_TAG:F&&N,aTypedArray:V,aTypedArrayConstructor:U,exportTypedArrayMethod:K,exportTypedArrayStaticMethod:H,getTypedArrayConstructor:W,isView:z,isTypedArray:j,TypedArray:T,TypedArrayPrototype:M}},5370:function(e,t,n){"use strict";var r=n(6198);e.exports=function(e,t,n){var a=0,i=arguments.length>2?n:r(t),o=new e(i);while(i>a)o[a]=t[a++];return o}},9617:function(e,t,n){"use strict";var r=n(5397),a=n(5610),i=n(6198),o=function(e){return function(t,n,o){var s=r(t),l=i(s);if(0===l)return!e&&-1;var c,u=a(o,l);if(e&&n!==n){while(l>u)if(c=s[u++],c!==c)return!0}else for(;l>u;u++)if((e||u in s)&&s[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},4527:function(e,t,n){"use strict";var r=n(3724),a=n(4376),i=TypeError,o=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(a(e)&&!o(e,"length").writable)throw new i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},7680:function(e,t,n){"use strict";var r=n(9504);e.exports=r([].slice)},7628:function(e,t,n){"use strict";var r=n(6198);e.exports=function(e,t){for(var n=r(e),a=new t(n),i=0;i<n;i++)a[i]=e[n-i-1];return a}},9928:function(e,t,n){"use strict";var r=n(6198),a=n(1291),i=RangeError;e.exports=function(e,t,n,o){var s=r(e),l=a(n),c=l<0?s+l:l;if(c>=s||c<0)throw new i("Incorrect index");for(var u=new t(s),d=0;d<s;d++)u[d]=d===c?o:e[d];return u}},6319:function(e,t,n){"use strict";var r=n(8551),a=n(9539);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(o){a(e,"throw",o)}}},2195:function(e,t,n){"use strict";var r=n(9504),a=r({}.toString),i=r("".slice);e.exports=function(e){return i(a(e),8,-1)}},6955:function(e,t,n){"use strict";var r=n(2140),a=n(4901),i=n(2195),o=n(8227),s=o("toStringTag"),l=Object,c="Arguments"===i(function(){return arguments}()),u=function(e,t){try{return e[t]}catch(n){}};e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=u(t=l(e),s))?n:c?i(t):"Object"===(r=i(t))&&a(t.callee)?"Arguments":r}},7740:function(e,t,n){"use strict";var r=n(9297),a=n(5031),i=n(7347),o=n(4913);e.exports=function(e,t,n){for(var s=a(t),l=o.f,c=i.f,u=0;u<s.length;u++){var d=s[u];r(e,d)||n&&r(n,d)||l(e,d,c(t,d))}}},2211:function(e,t,n){"use strict";var r=n(9039);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},2529:function(e){"use strict";e.exports=function(e,t){return{value:e,done:t}}},6699:function(e,t,n){"use strict";var r=n(3724),a=n(4913),i=n(6980);e.exports=r?function(e,t,n){return a.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},6980:function(e){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},4659:function(e,t,n){"use strict";var r=n(3724),a=n(4913),i=n(6980);e.exports=function(e,t,n){r?a.f(e,t,i(0,n)):e[t]=n}},2106:function(e,t,n){"use strict";var r=n(283),a=n(4913);e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),a.f(e,t,n)}},6840:function(e,t,n){"use strict";var r=n(4901),a=n(4913),i=n(283),o=n(9433);e.exports=function(e,t,n,s){s||(s={});var l=s.enumerable,c=void 0!==s.name?s.name:t;if(r(n)&&i(n,c,s),s.global)l?e[t]=n:o(t,n);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(u){}l?e[t]=n:a.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},6279:function(e,t,n){"use strict";var r=n(6840);e.exports=function(e,t,n){for(var a in t)r(e,a,t[a],n);return e}},9433:function(e,t,n){"use strict";var r=n(4576),a=Object.defineProperty;e.exports=function(e,t){try{a(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},3724:function(e,t,n){"use strict";var r=n(9039);e.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4483:function(e,t,n){"use strict";var r,a,i,o,s=n(4576),l=n(9429),c=n(1548),u=s.structuredClone,d=s.ArrayBuffer,h=s.MessageChannel,p=!1;if(c)p=function(e){u(e,{transfer:[e]})};else if(d)try{h||(r=l("worker_threads"),r&&(h=r.MessageChannel)),h&&(a=new h,i=new d(2),o=function(e){a.port1.postMessage(null,[e])},2===i.byteLength&&(o(i),0===i.byteLength&&(p=o)))}catch(f){}e.exports=p},4055:function(e,t,n){"use strict";var r=n(4576),a=n(34),i=r.document,o=a(i)&&a(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},6837:function(e){"use strict";var t=TypeError,n=9007199254740991;e.exports=function(e){if(e>n)throw t("Maximum allowed index exceeded");return e}},5002:function(e){"use strict";e.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},8727:function(e){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},9544:function(e,t,n){"use strict";var r=n(2839);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},6193:function(e,t,n){"use strict";var r=n(4215);e.exports="NODE"===r},2839:function(e,t,n){"use strict";var r=n(4576),a=r.navigator,i=a&&a.userAgent;e.exports=i?String(i):""},9519:function(e,t,n){"use strict";var r,a,i=n(4576),o=n(2839),s=i.process,l=i.Deno,c=s&&s.versions||l&&l.version,u=c&&c.v8;u&&(r=u.split("."),a=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!a&&o&&(r=o.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/),r&&(a=+r[1]))),e.exports=a},4215:function(e,t,n){"use strict";var r=n(4576),a=n(2839),i=n(2195),o=function(e){return a.slice(0,e.length)===e};e.exports=function(){return o("Bun/")?"BUN":o("Cloudflare-Workers")?"CLOUDFLARE":o("Deno/")?"DENO":o("Node.js/")?"NODE":r.Bun&&"string"==typeof Bun.version?"BUN":r.Deno&&"object"==typeof Deno.version?"DENO":"process"===i(r.process)?"NODE":r.window&&r.document?"BROWSER":"REST"}()},8574:function(e,t,n){"use strict";var r=n(9504),a=Error,i=r("".replace),o=function(e){return String(new a(e).stack)}("zxcasd"),s=/\n\s*at [^:]*:[^\n]*/,l=s.test(o);e.exports=function(e,t){if(l&&"string"==typeof e&&!a.prepareStackTrace)while(t--)e=i(e,s,"");return e}},6518:function(e,t,n){"use strict";var r=n(4576),a=n(7347).f,i=n(6699),o=n(6840),s=n(9433),l=n(7740),c=n(2796);e.exports=function(e,t){var n,u,d,h,p,f,m=e.target,g=e.global,v=e.stat;if(u=g?r:v?r[m]||s(m,{}):r[m]&&r[m].prototype,u)for(d in t){if(p=t[d],e.dontCallGetSet?(f=a(u,d),h=f&&f.value):h=u[d],n=c(g?d:m+(v?".":"#")+d,e.forced),!n&&void 0!==h){if(typeof p==typeof h)continue;l(p,h)}(e.sham||h&&h.sham)&&i(p,"sham",!0),o(u,d,p,e)}}},9039:function(e){"use strict";e.exports=function(e){try{return!!e()}catch(t){return!0}}},8745:function(e,t,n){"use strict";var r=n(616),a=Function.prototype,i=a.apply,o=a.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(i):function(){return o.apply(i,arguments)})},6080:function(e,t,n){"use strict";var r=n(7476),a=n(9306),i=n(616),o=r(r.bind);e.exports=function(e,t){return a(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},616:function(e,t,n){"use strict";var r=n(9039);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},9565:function(e,t,n){"use strict";var r=n(616),a=Function.prototype.call;e.exports=r?a.bind(a):function(){return a.apply(a,arguments)}},350:function(e,t,n){"use strict";var r=n(3724),a=n(9297),i=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,s=a(i,"name"),l=s&&"something"===function(){}.name,c=s&&(!r||r&&o(i,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:c}},6706:function(e,t,n){"use strict";var r=n(9504),a=n(9306);e.exports=function(e,t,n){try{return r(a(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(i){}}},7476:function(e,t,n){"use strict";var r=n(2195),a=n(9504);e.exports=function(e){if("Function"===r(e))return a(e)}},9504:function(e,t,n){"use strict";var r=n(616),a=Function.prototype,i=a.call,o=r&&a.bind.bind(i,i);e.exports=r?o:function(e){return function(){return i.apply(e,arguments)}}},9429:function(e,t,n){"use strict";var r=n(4576),a=n(6193);e.exports=function(e){if(a){try{return r.process.getBuiltinModule(e)}catch(t){}try{return Function('return require("'+e+'")')()}catch(t){}}}},4124:function(e,t,n){"use strict";var r=n(4576);e.exports=function(e,t){var n=r[e],a=n&&n.prototype;return a&&a[t]}},7751:function(e,t,n){"use strict";var r=n(4576),a=n(4901),i=function(e){return a(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e]):r[e]&&r[e][t]}},1767:function(e){"use strict";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},8646:function(e,t,n){"use strict";var r=n(9565),a=n(8551),i=n(1767),o=n(851);e.exports=function(e,t){t&&"string"===typeof e||a(e);var n=o(e);return i(a(void 0!==n?r(n,e):e))}},851:function(e,t,n){"use strict";var r=n(6955),a=n(5966),i=n(4117),o=n(6269),s=n(8227),l=s("iterator");e.exports=function(e){if(!i(e))return a(e,l)||a(e,"@@iterator")||o[r(e)]}},81:function(e,t,n){"use strict";var r=n(9565),a=n(9306),i=n(8551),o=n(6823),s=n(851),l=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(a(n))return i(r(n,e));throw new l(o(e)+" is not iterable")}},5966:function(e,t,n){"use strict";var r=n(9306),a=n(4117);e.exports=function(e,t){var n=e[t];return a(n)?void 0:r(n)}},3789:function(e,t,n){"use strict";var r=n(9306),a=n(8551),i=n(9565),o=n(1291),s=n(1767),l="Invalid size",c=RangeError,u=TypeError,d=Math.max,h=function(e,t){this.set=e,this.size=d(t,0),this.has=r(e.has),this.keys=r(e.keys)};h.prototype={getIterator:function(){return s(a(i(this.keys,this.set)))},includes:function(e){return i(this.has,this.set,e)}},e.exports=function(e){a(e);var t=+e.size;if(t!==t)throw new u(l);var n=o(t);if(n<0)throw new c(l);return new h(e,n)}},4576:function(e,t,n){"use strict";var r=function(e){return e&&e.Math===Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9297:function(e,t,n){"use strict";var r=n(9504),a=n(8981),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(a(e),t)}},421:function(e){"use strict";e.exports={}},397:function(e,t,n){"use strict";var r=n(7751);e.exports=r("document","documentElement")},5917:function(e,t,n){"use strict";var r=n(3724),a=n(9039),i=n(4055);e.exports=!r&&!a((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},7055:function(e,t,n){"use strict";var r=n(9504),a=n(9039),i=n(2195),o=Object,s=r("".split);e.exports=a((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?s(e,""):o(e)}:o},3167:function(e,t,n){"use strict";var r=n(4901),a=n(34),i=n(2967);e.exports=function(e,t,n){var o,s;return i&&r(o=t.constructor)&&o!==n&&a(s=o.prototype)&&s!==n.prototype&&i(e,s),e}},3706:function(e,t,n){"use strict";var r=n(9504),a=n(4901),i=n(7629),o=r(Function.toString);a(i.inspectSource)||(i.inspectSource=function(e){return o(e)}),e.exports=i.inspectSource},1181:function(e,t,n){"use strict";var r,a,i,o=n(8622),s=n(4576),l=n(34),c=n(6699),u=n(9297),d=n(7629),h=n(6119),p=n(421),f="Object already initialized",m=s.TypeError,g=s.WeakMap,v=function(e){return i(e)?a(e):r(e,{})},y=function(e){return function(t){var n;if(!l(t)||(n=a(t)).type!==e)throw new m("Incompatible receiver, "+e+" required");return n}};if(o||d.state){var b=d.state||(d.state=new g);b.get=b.get,b.has=b.has,b.set=b.set,r=function(e,t){if(b.has(e))throw new m(f);return t.facade=e,b.set(e,t),t},a=function(e){return b.get(e)||{}},i=function(e){return b.has(e)}}else{var w=h("state");p[w]=!0,r=function(e,t){if(u(e,w))throw new m(f);return t.facade=e,c(e,w,t),t},a=function(e){return u(e,w)?e[w]:{}},i=function(e){return u(e,w)}}e.exports={set:r,get:a,has:i,enforce:v,getterFor:y}},4209:function(e,t,n){"use strict";var r=n(8227),a=n(6269),i=r("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(a.Array===e||o[i]===e)}},4376:function(e,t,n){"use strict";var r=n(2195);e.exports=Array.isArray||function(e){return"Array"===r(e)}},1108:function(e,t,n){"use strict";var r=n(6955);e.exports=function(e){var t=r(e);return"BigInt64Array"===t||"BigUint64Array"===t}},4901:function(e){"use strict";var t="object"==typeof document&&document.all;e.exports="undefined"==typeof t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},2796:function(e,t,n){"use strict";var r=n(9039),a=n(4901),i=/#|\.prototype\./,o=function(e,t){var n=l[s(e)];return n===u||n!==c&&(a(t)?r(t):!!t)},s=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},l=o.data={},c=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},4117:function(e){"use strict";e.exports=function(e){return null===e||void 0===e}},34:function(e,t,n){"use strict";var r=n(4901);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},3925:function(e,t,n){"use strict";var r=n(34);e.exports=function(e){return r(e)||null===e}},6395:function(e){"use strict";e.exports=!1},757:function(e,t,n){"use strict";var r=n(7751),a=n(4901),i=n(1625),o=n(7040),s=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return a(t)&&i(t.prototype,s(e))}},507:function(e,t,n){"use strict";var r=n(9565);e.exports=function(e,t,n){var a,i,o=n?e:e.iterator,s=e.next;while(!(a=r(s,o)).done)if(i=t(a.value),void 0!==i)return i}},2652:function(e,t,n){"use strict";var r=n(6080),a=n(9565),i=n(8551),o=n(6823),s=n(4209),l=n(6198),c=n(1625),u=n(81),d=n(851),h=n(9539),p=TypeError,f=function(e,t){this.stopped=e,this.result=t},m=f.prototype;e.exports=function(e,t,n){var g,v,y,b,w,x,k,_=n&&n.that,C=!(!n||!n.AS_ENTRIES),E=!(!n||!n.IS_RECORD),R=!(!n||!n.IS_ITERATOR),S=!(!n||!n.INTERRUPTED),A=r(t,_),T=function(e){return g&&h(g,"normal",e),new f(!0,e)},M=function(e){return C?(i(e),S?A(e[0],e[1],T):A(e[0],e[1])):S?A(e,T):A(e)};if(E)g=e.iterator;else if(R)g=e;else{if(v=d(e),!v)throw new p(o(e)+" is not iterable");if(s(v)){for(y=0,b=l(e);b>y;y++)if(w=M(e[y]),w&&c(m,w))return w;return new f(!1)}g=u(e,v)}x=E?e.next:g.next;while(!(k=a(x,g)).done){try{w=M(k.value)}catch(L){h(g,"throw",L)}if("object"==typeof w&&w&&c(m,w))return w}return new f(!1)}},9539:function(e,t,n){"use strict";var r=n(9565),a=n(8551),i=n(5966);e.exports=function(e,t,n){var o,s;a(e);try{if(o=i(e,"return"),!o){if("throw"===t)throw n;return n}o=r(o,e)}catch(l){s=!0,o=l}if("throw"===t)throw n;if(s)throw o;return a(o),n}},9462:function(e,t,n){"use strict";var r=n(9565),a=n(2360),i=n(6699),o=n(6279),s=n(8227),l=n(1181),c=n(5966),u=n(7657).IteratorPrototype,d=n(2529),h=n(9539),p=s("toStringTag"),f="IteratorHelper",m="WrapForValidIterator",g=l.set,v=function(e){var t=l.getterFor(e?m:f);return o(a(u),{next:function(){var n=t(this);if(e)return n.nextHandler();if(n.done)return d(void 0,!0);try{var r=n.nextHandler();return n.returnHandlerResult?r:d(r,n.done)}catch(a){throw n.done=!0,a}},return:function(){var n=t(this),a=n.iterator;if(n.done=!0,e){var i=c(a,"return");return i?r(i,a):d(void 0,!0)}if(n.inner)try{h(n.inner.iterator,"normal")}catch(o){return h(a,"throw",o)}return a&&h(a,"normal"),d(void 0,!0)}})},y=v(!0),b=v(!1);i(b,p,"Iterator Helper"),e.exports=function(e,t,n){var r=function(r,a){a?(a.iterator=r.iterator,a.next=r.next):a=r,a.type=t?m:f,a.returnHandlerResult=!!n,a.nextHandler=e,a.counter=0,a.done=!1,g(this,a)};return r.prototype=t?y:b,r}},713:function(e,t,n){"use strict";var r=n(9565),a=n(9306),i=n(8551),o=n(1767),s=n(9462),l=n(6319),c=s((function(){var e=this.iterator,t=i(r(this.next,e)),n=this.done=!!t.done;if(!n)return l(e,this.mapper,[t.value,this.counter++],!0)}));e.exports=function(e){return i(this),a(e),new c(o(this),{mapper:e})}},7657:function(e,t,n){"use strict";var r,a,i,o=n(9039),s=n(4901),l=n(34),c=n(2360),u=n(2787),d=n(6840),h=n(8227),p=n(6395),f=h("iterator"),m=!1;[].keys&&(i=[].keys(),"next"in i?(a=u(u(i)),a!==Object.prototype&&(r=a)):m=!0);var g=!l(r)||o((function(){var e={};return r[f].call(e)!==e}));g?r={}:p&&(r=c(r)),s(r[f])||d(r,f,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:m}},6269:function(e){"use strict";e.exports={}},6198:function(e,t,n){"use strict";var r=n(8014);e.exports=function(e){return r(e.length)}},283:function(e,t,n){"use strict";var r=n(9504),a=n(9039),i=n(4901),o=n(9297),s=n(3724),l=n(350).CONFIGURABLE,c=n(3706),u=n(1181),d=u.enforce,h=u.get,p=String,f=Object.defineProperty,m=r("".slice),g=r("".replace),v=r([].join),y=s&&!a((function(){return 8!==f((function(){}),"length",{value:8}).length})),b=String(String).split("String"),w=e.exports=function(e,t,n){"Symbol("===m(p(t),0,7)&&(t="["+g(p(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!o(e,"name")||l&&e.name!==t)&&(s?f(e,"name",{value:t,configurable:!0}):e.name=t),y&&n&&o(n,"arity")&&e.length!==n.arity&&f(e,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?s&&f(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(a){}var r=d(e);return o(r,"source")||(r.source=v(b,"string"==typeof t?t:"")),e};Function.prototype.toString=w((function(){return i(this)&&h(this).source||c(this)}),"toString")},741:function(e){"use strict";var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},2603:function(e,t,n){"use strict";var r=n(655);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},2360:function(e,t,n){"use strict";var r,a=n(8551),i=n(6801),o=n(8727),s=n(421),l=n(397),c=n(4055),u=n(6119),d=">",h="<",p="prototype",f="script",m=u("IE_PROTO"),g=function(){},v=function(e){return h+f+d+e+h+"/"+f+d},y=function(e){e.write(v("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){var e,t=c("iframe"),n="java"+f+":";return t.style.display="none",l.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(v("document.F=Object")),e.close(),e.F},w=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}w="undefined"!=typeof document?document.domain&&r?y(r):b():y(r);var e=o.length;while(e--)delete w[p][o[e]];return w()};s[m]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(g[p]=a(e),n=new g,g[p]=null,n[m]=e):n=w(),void 0===t?n:i.f(n,t)}},6801:function(e,t,n){"use strict";var r=n(3724),a=n(8686),i=n(4913),o=n(8551),s=n(5397),l=n(1072);t.f=r&&!a?Object.defineProperties:function(e,t){o(e);var n,r=s(t),a=l(t),c=a.length,u=0;while(c>u)i.f(e,n=a[u++],r[n]);return e}},4913:function(e,t,n){"use strict";var r=n(3724),a=n(5917),i=n(8686),o=n(8551),s=n(6969),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d="enumerable",h="configurable",p="writable";t.f=r?i?function(e,t,n){if(o(e),t=s(t),o(n),"function"===typeof e&&"prototype"===t&&"value"in n&&p in n&&!n[p]){var r=u(e,t);r&&r[p]&&(e[t]=n.value,n={configurable:h in n?n[h]:r[h],enumerable:d in n?n[d]:r[d],writable:!1})}return c(e,t,n)}:c:function(e,t,n){if(o(e),t=s(t),o(n),a)try{return c(e,t,n)}catch(r){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},7347:function(e,t,n){"use strict";var r=n(3724),a=n(9565),i=n(8773),o=n(6980),s=n(5397),l=n(6969),c=n(9297),u=n(5917),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=s(e),t=l(t),u)try{return d(e,t)}catch(n){}if(c(e,t))return o(!a(i.f,e,t),e[t])}},8480:function(e,t,n){"use strict";var r=n(1828),a=n(8727),i=a.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},3717:function(e,t){"use strict";t.f=Object.getOwnPropertySymbols},2787:function(e,t,n){"use strict";var r=n(9297),a=n(4901),i=n(8981),o=n(6119),s=n(2211),l=o("IE_PROTO"),c=Object,u=c.prototype;e.exports=s?c.getPrototypeOf:function(e){var t=i(e);if(r(t,l))return t[l];var n=t.constructor;return a(n)&&t instanceof n?n.prototype:t instanceof c?u:null}},1625:function(e,t,n){"use strict";var r=n(9504);e.exports=r({}.isPrototypeOf)},1828:function(e,t,n){"use strict";var r=n(9504),a=n(9297),i=n(5397),o=n(9617).indexOf,s=n(421),l=r([].push);e.exports=function(e,t){var n,r=i(e),c=0,u=[];for(n in r)!a(s,n)&&a(r,n)&&l(u,n);while(t.length>c)a(r,n=t[c++])&&(~o(u,n)||l(u,n));return u}},1072:function(e,t,n){"use strict";var r=n(1828),a=n(8727);e.exports=Object.keys||function(e){return r(e,a)}},8773:function(e,t){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,a=r&&!n.call({1:2},1);t.f=a?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},2967:function(e,t,n){"use strict";var r=n(6706),a=n(34),i=n(7750),o=n(3506);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=r(Object.prototype,"__proto__","set"),e(n,[]),t=n instanceof Array}catch(s){}return function(n,r){return i(n),o(r),a(n)?(t?e(n,r):n.__proto__=r,n):n}}():void 0)},4270:function(e,t,n){"use strict";var r=n(9565),a=n(4901),i=n(34),o=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&a(n=e.toString)&&!i(s=r(n,e)))return s;if(a(n=e.valueOf)&&!i(s=r(n,e)))return s;if("string"!==t&&a(n=e.toString)&&!i(s=r(n,e)))return s;throw new o("Can't convert object to primitive value")}},5031:function(e,t,n){"use strict";var r=n(7751),a=n(9504),i=n(8480),o=n(3717),s=n(8551),l=a([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(s(e)),n=o.f;return n?l(t,n(e)):t}},7979:function(e,t,n){"use strict";var r=n(8551);e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},7750:function(e,t,n){"use strict";var r=n(4117),a=TypeError;e.exports=function(e){if(r(e))throw new a("Can't call method on "+e);return e}},9472:function(e,t,n){"use strict";var r=n(4576),a=n(8745),i=n(4901),o=n(4215),s=n(2839),l=n(7680),c=n(2812),u=r.Function,d=/MSIE .\./.test(s)||"BUN"===o&&function(){var e=r.Bun.version.split(".");return e.length<3||"0"===e[0]&&(e[1]<3||"3"===e[1]&&"0"===e[2])}();e.exports=function(e,t){var n=t?2:1;return d?function(r,o){var s=c(arguments.length,1)>n,d=i(r)?r:u(r),h=s?l(arguments,n):[],p=s?function(){a(d,this,h)}:d;return t?e(p,o):e(p)}:e}},9286:function(e,t,n){"use strict";var r=n(4402),a=n(8469),i=r.Set,o=r.add;e.exports=function(e){var t=new i;return a(e,(function(e){o(t,e)})),t}},3440:function(e,t,n){"use strict";var r=n(7080),a=n(4402),i=n(9286),o=n(5170),s=n(3789),l=n(8469),c=n(507),u=a.has,d=a.remove;e.exports=function(e){var t=r(this),n=s(e),a=i(t);return o(t)<=n.size?l(t,(function(e){n.includes(e)&&d(a,e)})):c(n.getIterator(),(function(e){u(t,e)&&d(a,e)})),a}},4402:function(e,t,n){"use strict";var r=n(9504),a=Set.prototype;e.exports={Set:Set,add:r(a.add),has:r(a.has),remove:r(a["delete"]),proto:a}},8750:function(e,t,n){"use strict";var r=n(7080),a=n(4402),i=n(5170),o=n(3789),s=n(8469),l=n(507),c=a.Set,u=a.add,d=a.has;e.exports=function(e){var t=r(this),n=o(e),a=new c;return i(t)>n.size?l(n.getIterator(),(function(e){d(t,e)&&u(a,e)})):s(t,(function(e){n.includes(e)&&u(a,e)})),a}},4449:function(e,t,n){"use strict";var r=n(7080),a=n(4402).has,i=n(5170),o=n(3789),s=n(8469),l=n(507),c=n(9539);e.exports=function(e){var t=r(this),n=o(e);if(i(t)<=n.size)return!1!==s(t,(function(e){if(n.includes(e))return!1}),!0);var u=n.getIterator();return!1!==l(u,(function(e){if(a(t,e))return c(u,"normal",!1)}))}},3838:function(e,t,n){"use strict";var r=n(7080),a=n(5170),i=n(8469),o=n(3789);e.exports=function(e){var t=r(this),n=o(e);return!(a(t)>n.size)&&!1!==i(t,(function(e){if(!n.includes(e))return!1}),!0)}},8527:function(e,t,n){"use strict";var r=n(7080),a=n(4402).has,i=n(5170),o=n(3789),s=n(507),l=n(9539);e.exports=function(e){var t=r(this),n=o(e);if(i(t)<n.size)return!1;var c=n.getIterator();return!1!==s(c,(function(e){if(!a(t,e))return l(c,"normal",!1)}))}},8469:function(e,t,n){"use strict";var r=n(9504),a=n(507),i=n(4402),o=i.Set,s=i.proto,l=r(s.forEach),c=r(s.keys),u=c(new o).next;e.exports=function(e,t,n){return n?a({iterator:c(e),next:u},t):l(e,t)}},4916:function(e,t,n){"use strict";var r=n(7751),a=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},i=function(e){return{size:e,has:function(){return!0},keys:function(){throw new Error("e")}}};e.exports=function(e,t){var n=r("Set");try{(new n)[e](a(0));try{return(new n)[e](a(-1)),!1}catch(s){if(!t)return!0;try{return(new n)[e](i(-1/0)),!1}catch(l){var o=new n;return o.add(1),o.add(2),t(o[e](i(1/0)))}}}catch(l){return!1}}},5170:function(e,t,n){"use strict";var r=n(6706),a=n(4402);e.exports=r(a.proto,"size","get")||function(e){return e.size}},3650:function(e,t,n){"use strict";var r=n(7080),a=n(4402),i=n(9286),o=n(3789),s=n(507),l=a.add,c=a.has,u=a.remove;e.exports=function(e){var t=r(this),n=o(e).getIterator(),a=i(t);return s(n,(function(e){c(t,e)?u(a,e):l(a,e)})),a}},4204:function(e,t,n){"use strict";var r=n(7080),a=n(4402).add,i=n(9286),o=n(3789),s=n(507);e.exports=function(e){var t=r(this),n=o(e).getIterator(),l=i(t);return s(n,(function(e){a(l,e)})),l}},6119:function(e,t,n){"use strict";var r=n(5745),a=n(3392),i=r("keys");e.exports=function(e){return i[e]||(i[e]=a(e))}},7629:function(e,t,n){"use strict";var r=n(6395),a=n(4576),i=n(9433),o="__core-js_shared__",s=e.exports=a[o]||i(o,{});(s.versions||(s.versions=[])).push({version:"3.40.0",mode:r?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.40.0/LICENSE",source:"https://github.com/zloirock/core-js"})},5745:function(e,t,n){"use strict";var r=n(7629);e.exports=function(e,t){return r[e]||(r[e]=t||{})}},1548:function(e,t,n){"use strict";var r=n(4576),a=n(9039),i=n(9519),o=n(4215),s=r.structuredClone;e.exports=!!s&&!a((function(){if("DENO"===o&&i>92||"NODE"===o&&i>94||"BROWSER"===o&&i>97)return!1;var e=new ArrayBuffer(8),t=s(e,{transfer:[e]});return 0!==e.byteLength||8!==t.byteLength}))},4495:function(e,t,n){"use strict";var r=n(9519),a=n(9039),i=n(4576),o=i.String;e.exports=!!Object.getOwnPropertySymbols&&!a((function(){var e=Symbol("symbol detection");return!o(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},9225:function(e,t,n){"use strict";var r,a,i,o,s=n(4576),l=n(8745),c=n(6080),u=n(4901),d=n(9297),h=n(9039),p=n(397),f=n(7680),m=n(4055),g=n(2812),v=n(9544),y=n(6193),b=s.setImmediate,w=s.clearImmediate,x=s.process,k=s.Dispatch,_=s.Function,C=s.MessageChannel,E=s.String,R=0,S={},A="onreadystatechange";h((function(){r=s.location}));var T=function(e){if(d(S,e)){var t=S[e];delete S[e],t()}},M=function(e){return function(){T(e)}},L=function(e){T(e.data)},O=function(e){s.postMessage(E(e),r.protocol+"//"+r.host)};b&&w||(b=function(e){g(arguments.length,1);var t=u(e)?e:_(e),n=f(arguments,1);return S[++R]=function(){l(t,void 0,n)},a(R),R},w=function(e){delete S[e]},y?a=function(e){x.nextTick(M(e))}:k&&k.now?a=function(e){k.now(M(e))}:C&&!v?(i=new C,o=i.port2,i.port1.onmessage=L,a=c(o.postMessage,o)):s.addEventListener&&u(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!h(O)?(a=O,s.addEventListener("message",L,!1)):a=A in m("script")?function(e){p.appendChild(m("script"))[A]=function(){p.removeChild(this),T(e)}}:function(e){setTimeout(M(e),0)}),e.exports={set:b,clear:w}},5610:function(e,t,n){"use strict";var r=n(1291),a=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?a(n+t,0):i(n,t)}},5854:function(e,t,n){"use strict";var r=n(2777),a=TypeError;e.exports=function(e){var t=r(e,"number");if("number"==typeof t)throw new a("Can't convert number to bigint");return BigInt(t)}},7696:function(e,t,n){"use strict";var r=n(1291),a=n(8014),i=RangeError;e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=a(t);if(t!==n)throw new i("Wrong length or index");return n}},5397:function(e,t,n){"use strict";var r=n(7055),a=n(7750);e.exports=function(e){return r(a(e))}},1291:function(e,t,n){"use strict";var r=n(741);e.exports=function(e){var t=+e;return t!==t||0===t?0:r(t)}},8014:function(e,t,n){"use strict";var r=n(1291),a=Math.min;e.exports=function(e){var t=r(e);return t>0?a(t,9007199254740991):0}},8981:function(e,t,n){"use strict";var r=n(7750),a=Object;e.exports=function(e){return a(r(e))}},2777:function(e,t,n){"use strict";var r=n(9565),a=n(34),i=n(757),o=n(5966),s=n(4270),l=n(8227),c=TypeError,u=l("toPrimitive");e.exports=function(e,t){if(!a(e)||i(e))return e;var n,l=o(e,u);if(l){if(void 0===t&&(t="default"),n=r(l,e,t),!a(n)||i(n))return n;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},6969:function(e,t,n){"use strict";var r=n(2777),a=n(757);e.exports=function(e){var t=r(e,"string");return a(t)?t:t+""}},2140:function(e,t,n){"use strict";var r=n(8227),a=r("toStringTag"),i={};i[a]="z",e.exports="[object z]"===String(i)},655:function(e,t,n){"use strict";var r=n(6955),a=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return a(e)}},6823:function(e){"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(n){return"Object"}}},3392:function(e,t,n){"use strict";var r=n(9504),a=0,i=Math.random(),o=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++a+i,36)}},7040:function(e,t,n){"use strict";var r=n(4495);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8686:function(e,t,n){"use strict";var r=n(3724),a=n(9039);e.exports=r&&a((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},2812:function(e){"use strict";var t=TypeError;e.exports=function(e,n){if(e<n)throw new t("Not enough arguments");return e}},8622:function(e,t,n){"use strict";var r=n(4576),a=n(4901),i=r.WeakMap;e.exports=a(i)&&/native code/.test(String(i))},8227:function(e,t,n){"use strict";var r=n(4576),a=n(5745),i=n(9297),o=n(3392),s=n(4495),l=n(7040),c=r.Symbol,u=a("wks"),d=l?c["for"]||c:c&&c.withoutSetter||o;e.exports=function(e){return i(u,e)||(u[e]=s&&i(c,e)?c[e]:d("Symbol."+e)),u[e]}},6573:function(e,t,n){"use strict";var r=n(3724),a=n(2106),i=n(3238),o=ArrayBuffer.prototype;r&&!("detached"in o)&&a(o,"detached",{configurable:!0,get:function(){return i(this)}})},7936:function(e,t,n){"use strict";var r=n(6518),a=n(5636);a&&r({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return a(this,arguments.length?arguments[0]:void 0,!1)}})},8100:function(e,t,n){"use strict";var r=n(6518),a=n(5636);a&&r({target:"ArrayBuffer",proto:!0},{transfer:function(){return a(this,arguments.length?arguments[0]:void 0,!0)}})},4114:function(e,t,n){"use strict";var r=n(6518),a=n(8981),i=n(6198),o=n(4527),s=n(6837),l=n(9039),c=l((function(){return 4294967297!==[].push.call({length:4294967296},1)})),u=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}},d=c||!u();r({target:"Array",proto:!0,arity:1,forced:d},{push:function(e){var t=a(this),n=i(t),r=arguments.length;s(n+r);for(var l=0;l<r;l++)t[n]=arguments[l],n++;return o(t,n),n}})},9678:function(e,t,n){"use strict";var r=n(6518),a=n(7628),i=n(5397),o=n(6469),s=Array;r({target:"Array",proto:!0},{toReversed:function(){return a(i(this),s)}}),o("toReversed")},7145:function(e,t,n){"use strict";var r=n(6518),a=n(9504),i=n(9306),o=n(5397),s=n(5370),l=n(4124),c=n(6469),u=Array,d=a(l("Array","sort"));r({target:"Array",proto:!0},{toSorted:function(e){void 0!==e&&i(e);var t=o(this),n=s(u,t);return d(n,e)}}),c("toSorted")},1658:function(e,t,n){"use strict";var r=n(6518),a=n(6469),i=n(6837),o=n(6198),s=n(5610),l=n(5397),c=n(1291),u=Array,d=Math.max,h=Math.min;r({target:"Array",proto:!0},{toSpliced:function(e,t){var n,r,a,p,f=l(this),m=o(f),g=s(e,m),v=arguments.length,y=0;for(0===v?n=r=0:1===v?(n=0,r=m-g):(n=v-2,r=h(d(c(t),0),m-g)),a=i(m+n-r),p=u(a);y<g;y++)p[y]=f[y];for(;y<g+n;y++)p[y]=arguments[y-g+2];for(;y<a;y++)p[y]=f[y+r-n];return p}}),a("toSpliced")},8111:function(e,t,n){"use strict";var r=n(6518),a=n(4576),i=n(679),o=n(8551),s=n(4901),l=n(2787),c=n(2106),u=n(4659),d=n(9039),h=n(9297),p=n(8227),f=n(7657).IteratorPrototype,m=n(3724),g=n(6395),v="constructor",y="Iterator",b=p("toStringTag"),w=TypeError,x=a[y],k=g||!s(x)||x.prototype!==f||!d((function(){x({})})),_=function(){if(i(this,f),l(this)===f)throw new w("Abstract class Iterator not directly constructable")},C=function(e,t){m?c(f,e,{configurable:!0,get:function(){return t},set:function(t){if(o(this),this===f)throw new w("You can't redefine this property");h(this,e)?this[e]=t:u(this,e,t)}}):f[e]=t};h(f,b)||C(b,y),!k&&h(f,v)&&f[v]!==Object||C(v,_),_.prototype=f,r({global:!0,constructor:!0,forced:k},{Iterator:_})},1148:function(e,t,n){"use strict";var r=n(6518),a=n(2652),i=n(9306),o=n(8551),s=n(1767);r({target:"Iterator",proto:!0,real:!0},{every:function(e){o(this),i(e);var t=s(this),n=0;return!a(t,(function(t,r){if(!e(t,n++))return r()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},2489:function(e,t,n){"use strict";var r=n(6518),a=n(9565),i=n(9306),o=n(8551),s=n(1767),l=n(9462),c=n(6319),u=n(6395),d=l((function(){var e,t,n,r=this.iterator,i=this.predicate,s=this.next;while(1){if(e=o(a(s,r)),t=this.done=!!e.done,t)return;if(n=e.value,c(r,i,[n,this.counter++],!0))return n}}));r({target:"Iterator",proto:!0,real:!0,forced:u},{filter:function(e){return o(this),i(e),new d(s(this),{predicate:e})}})},116:function(e,t,n){"use strict";var r=n(6518),a=n(2652),i=n(9306),o=n(8551),s=n(1767);r({target:"Iterator",proto:!0,real:!0},{find:function(e){o(this),i(e);var t=s(this),n=0;return a(t,(function(t,r){if(e(t,n++))return r(t)}),{IS_RECORD:!0,INTERRUPTED:!0}).result}})},531:function(e,t,n){"use strict";var r=n(6518),a=n(9565),i=n(9306),o=n(8551),s=n(1767),l=n(8646),c=n(9462),u=n(9539),d=n(6395),h=c((function(){var e,t,n=this.iterator,r=this.mapper;while(1){if(t=this.inner)try{if(e=o(a(t.next,t.iterator)),!e.done)return e.value;this.inner=null}catch(i){u(n,"throw",i)}if(e=o(a(this.next,n)),this.done=!!e.done)return;try{this.inner=l(r(e.value,this.counter++),!1)}catch(i){u(n,"throw",i)}}}));r({target:"Iterator",proto:!0,real:!0,forced:d},{flatMap:function(e){return o(this),i(e),new h(s(this),{mapper:e,inner:null})}})},7588:function(e,t,n){"use strict";var r=n(6518),a=n(2652),i=n(9306),o=n(8551),s=n(1767);r({target:"Iterator",proto:!0,real:!0},{forEach:function(e){o(this),i(e);var t=s(this),n=0;a(t,(function(t){e(t,n++)}),{IS_RECORD:!0})}})},1701:function(e,t,n){"use strict";var r=n(6518),a=n(713),i=n(6395);r({target:"Iterator",proto:!0,real:!0,forced:i},{map:a})},8237:function(e,t,n){"use strict";var r=n(6518),a=n(2652),i=n(9306),o=n(8551),s=n(1767),l=TypeError;r({target:"Iterator",proto:!0,real:!0},{reduce:function(e){o(this),i(e);var t=s(this),n=arguments.length<2,r=n?void 0:arguments[1],c=0;if(a(t,(function(t){n?(n=!1,r=t):r=e(r,t,c),c++}),{IS_RECORD:!0}),n)throw new l("Reduce of empty iterator with no initial value");return r}})},3579:function(e,t,n){"use strict";var r=n(6518),a=n(2652),i=n(9306),o=n(8551),s=n(1767);r({target:"Iterator",proto:!0,real:!0},{some:function(e){o(this),i(e);var t=s(this),n=0;return a(t,(function(t,r){if(e(t,n++))return r()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},1806:function(e,t,n){"use strict";var r=n(6518),a=n(8551),i=n(2652),o=n(1767),s=[].push;r({target:"Iterator",proto:!0,real:!0},{toArray:function(){var e=[];return i(o(a(this)),s,{that:e,IS_RECORD:!0}),e}})},9479:function(e,t,n){"use strict";var r=n(4576),a=n(3724),i=n(2106),o=n(7979),s=n(9039),l=r.RegExp,c=l.prototype,u=a&&s((function(){var e=!0;try{l(".","d")}catch(u){e=!1}var t={},n="",r=e?"dgimsy":"gimsy",a=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var o in e&&(i.hasIndices="d"),i)a(o,i[o]);var s=Object.getOwnPropertyDescriptor(c,"flags").get.call(t);return s!==r||n!==r}));u&&i(c,"flags",{configurable:!0,get:o})},7642:function(e,t,n){"use strict";var r=n(6518),a=n(3440),i=n(4916),o=!i("difference",(function(e){return 0===e.size}));r({target:"Set",proto:!0,real:!0,forced:o},{difference:a})},8004:function(e,t,n){"use strict";var r=n(6518),a=n(9039),i=n(8750),o=n(4916),s=!o("intersection",(function(e){return 2===e.size&&e.has(1)&&e.has(2)}))||a((function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))}));r({target:"Set",proto:!0,real:!0,forced:s},{intersection:i})},3853:function(e,t,n){"use strict";var r=n(6518),a=n(4449),i=n(4916),o=!i("isDisjointFrom",(function(e){return!e}));r({target:"Set",proto:!0,real:!0,forced:o},{isDisjointFrom:a})},5876:function(e,t,n){"use strict";var r=n(6518),a=n(3838),i=n(4916),o=!i("isSubsetOf",(function(e){return e}));r({target:"Set",proto:!0,real:!0,forced:o},{isSubsetOf:a})},2475:function(e,t,n){"use strict";var r=n(6518),a=n(8527),i=n(4916),o=!i("isSupersetOf",(function(e){return!e}));r({target:"Set",proto:!0,real:!0,forced:o},{isSupersetOf:a})},5024:function(e,t,n){"use strict";var r=n(6518),a=n(3650),i=n(4916);r({target:"Set",proto:!0,real:!0,forced:!i("symmetricDifference")},{symmetricDifference:a})},1698:function(e,t,n){"use strict";var r=n(6518),a=n(4204),i=n(4916);r({target:"Set",proto:!0,real:!0,forced:!i("union")},{union:a})},7467:function(e,t,n){"use strict";var r=n(7628),a=n(4644),i=a.aTypedArray,o=a.exportTypedArrayMethod,s=a.getTypedArrayConstructor;o("toReversed",(function(){return r(i(this),s(this))}))},4732:function(e,t,n){"use strict";var r=n(4644),a=n(9504),i=n(9306),o=n(5370),s=r.aTypedArray,l=r.getTypedArrayConstructor,c=r.exportTypedArrayMethod,u=a(r.TypedArrayPrototype.sort);c("toSorted",(function(e){void 0!==e&&i(e);var t=s(this),n=o(l(t),t);return u(n,e)}))},9577:function(e,t,n){"use strict";var r=n(9928),a=n(4644),i=n(1108),o=n(1291),s=n(5854),l=a.aTypedArray,c=a.getTypedArrayConstructor,u=a.exportTypedArrayMethod,d=!!function(){try{new Int8Array(1)["with"](2,{valueOf:function(){throw 8}})}catch(e){return 8===e}}();u("with",{with:function(e,t){var n=l(this),a=o(e),u=i(n)?s(t):+t;return r(n,c(n),a,u)}}["with"],!d)},8992:function(e,t,n){"use strict";n(8111)},3215:function(e,t,n){"use strict";n(1148)},4520:function(e,t,n){"use strict";n(2489)},2577:function(e,t,n){"use strict";n(116)},670:function(e,t,n){"use strict";n(531)},3949:function(e,t,n){"use strict";n(7588)},1454:function(e,t,n){"use strict";n(1701)},8872:function(e,t,n){"use strict";n(8237)},7550:function(e,t,n){"use strict";n(3579)},1795:function(e,t,n){"use strict";n(1806)},6368:function(e,t,n){"use strict";var r=n(6518),a=n(4576),i=n(9225).clear;r({global:!0,bind:!0,enumerable:!0,forced:a.clearImmediate!==i},{clearImmediate:i})},4979:function(e,t,n){"use strict";var r=n(6518),a=n(4576),i=n(7751),o=n(6980),s=n(4913).f,l=n(9297),c=n(679),u=n(3167),d=n(2603),h=n(5002),p=n(8574),f=n(3724),m=n(6395),g="DOMException",v=i("Error"),y=i(g),b=function(){c(this,w);var e=arguments.length,t=d(e<1?void 0:arguments[0]),n=d(e<2?void 0:arguments[1],"Error"),r=new y(t,n),a=new v(t);return a.name=g,s(r,"stack",o(1,p(a.stack,1))),u(r,this,b),r},w=b.prototype=y.prototype,x="stack"in new v(g),k="stack"in new y(1,2),_=y&&f&&Object.getOwnPropertyDescriptor(a,g),C=!!_&&!(_.writable&&_.configurable),E=x&&!C&&!k;r({global:!0,constructor:!0,forced:m||E},{DOMException:E?b:y});var R=i(g),S=R.prototype;if(S.constructor!==R)for(var A in m||s(S,"constructor",o(1,R)),h)if(l(h,A)){var T=h[A],M=T.s;l(R,M)||s(R,M,o(6,T.c))}},9848:function(e,t,n){"use strict";n(6368),n(9309)},9309:function(e,t,n){"use strict";var r=n(6518),a=n(4576),i=n(9225).set,o=n(9472),s=a.setImmediate?o(i,!1):i;r({global:!0,bind:!0,enumerable:!0,forced:a.setImmediate!==s},{setImmediate:s})},4603:function(e,t,n){"use strict";var r=n(6840),a=n(9504),i=n(655),o=n(2812),s=URLSearchParams,l=s.prototype,c=a(l.append),u=a(l["delete"]),d=a(l.forEach),h=a([].push),p=new s("a=1&a=2&b=3");p["delete"]("a",1),p["delete"]("b",void 0),p+""!=="a=2"&&r(l,"delete",(function(e){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&void 0===n)return u(this,e);var r=[];d(this,(function(e,t){h(r,{key:t,value:e})})),o(t,1);var a,s=i(e),l=i(n),p=0,f=0,m=!1,g=r.length;while(p<g)a=r[p++],m||a.key===s?(m=!0,u(this,a.key)):f++;while(f<g)a=r[f++],a.key===s&&a.value===l||c(this,a.key,a.value)}),{enumerable:!0,unsafe:!0})},7566:function(e,t,n){"use strict";var r=n(6840),a=n(9504),i=n(655),o=n(2812),s=URLSearchParams,l=s.prototype,c=a(l.getAll),u=a(l.has),d=new s("a=1");!d.has("a",2)&&d.has("a",void 0)||r(l,"has",(function(e){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&void 0===n)return u(this,e);var r=c(this,e);o(t,1);var a=i(n),s=0;while(s<r.length)if(r[s++]===a)return!0;return!1}),{enumerable:!0,unsafe:!0})},8721:function(e,t,n){"use strict";var r=n(3724),a=n(9504),i=n(2106),o=URLSearchParams.prototype,s=a(o.forEach);r&&!("size"in o)&&i(o,"size",{get:function(){var e=0;return s(this,(function(){e++})),e},configurable:!0,enumerable:!0})},1114:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function a(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=r(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function i(e){var t=a(e,"string");return"symbol"==r(t)?t:t+""}function o(e,t,n){return(t=i(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{A:function(){return o}})},7477:function(e,t,n){"use strict";n.d(t,{$Zd:function(){return Le},BFW:function(){return Te},BQ2:function(){return xe},BZj:function(){return S},DoI:function(){return d},Dwh:function(){return _},F46:function(){return re},FEq:function(){return _e},FWt:function(){return ie},Hsy:function(){return Q},Jlk:function(){return x},K3R:function(){return v},KcK:function(){return te},L97:function(){return ve},LdN:function(){return K},MzZ:function(){return be},N_H:function(){return q},PoX:function(){return pe},Qpb:function(){return c},R$5:function(){return T},Rhj:function(){return X},Ss2:function(){return Se},V6m:function(){return B},VvS:function(){return m},Zck:function(){return ce},bm:function(){return I},enP:function(){return Ie},epd:function(){return P},kcb:function(){return p},kyK:function(){return de},lOC:function(){return se},m6F:function(){return Ee},mcU:function(){return V},nkM:function(){return s},rW7:function(){return E},u$D:function(){return F},vji:function(){return me},yGC:function(){return J},yd$:function(){return i},yoT:function(){return W},zD7:function(){return L},ziD:function(){return b}});var r=n(6768),a=(0,r.pM)({name:"ArrowDown",__name:"arrow-down",setup(e){return(e,t)=>((0,r.uX)(),(0,r.CE)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,r.Lk)("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"})]))}}),i=a,o=(0,r.pM)({name:"ArrowLeft",__name:"arrow-left",setup(e){return(e,t)=>((0,r.uX)(),(0,r.CE)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,r.Lk)("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"})]))}}),s=o,l=(0,r.pM)({name:"ArrowRight",__name:"arrow-right",setup(e){return(e,t)=>((0,r.uX)(),(0,r.CE)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,r.Lk)("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),c=l,u=(0,r.pM)({name:"ArrowUp",__name:"arrow-up",setup(e){return(e,t)=>((0,r.uX)(),(0,r.CE)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,r.Lk)("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),d=u,h=(0,r.pM)({name:"Back",__name:"back",setup(e){return(e,t)=>((0,r.uX)(),(0,r.CE)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,r.Lk)("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64"}),(0,r.Lk)("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312z"})]))}}),p=h,f=(0,r.pM)({name:"Calendar",__name:"calendar",setup(e){return(e,t)=>((0,r.uX)(),(0,r.CE)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,r.Lk)("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64"})]))}}),m=f,g=(0,r.pM)({name:"CaretRight",__name:"caret-right",setup(e){return(e,t)=>((0,r.uX)(),(0,r.CE)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,r.Lk)("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})]))}}),v=g,y=(0,r.pM)({name:"CaretTop",__name:"caret-top",setup(e){return(e,t)=>((0,r.uX)(),(0,r.CE)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,r.Lk)("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"})]))}}),b=y,w=(0,r.pM)({name:"Check",__name:"check",setup(e){return(e,t)=>((0,r.uX)(),(0,r.CE)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,r.Lk)("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"})]))}}),x=w,k=(0,r.pM)({name:"CircleCheckFilled",__name:"circle-check-filled",setup(e){return(e,t)=>((0,r.uX)(),(0,r.CE)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,r.Lk)("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),_=k,C=(0,r.pM)({name:"CircleCheck",__name:"circle-check",setup(e){return(e,t)=>((0,r.uX)(),(0,r.CE)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,r.Lk)("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),(0,r.Lk)("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"})]))}}),E=C,R=(0,r.pM)({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(e,t)=>((0,r.uX)(),(0,r.CE)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,r.Lk)("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),S=R,A=(0,r.pM)({name:"CircleClose",__name:"circle-close",setup(e){return(e,t)=>((0,r.uX)(),(0,r.CE)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,r.Lk)("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),(0,r.Lk)("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),T=A,M=(0,r.pM)({name:"Clock",__name:"clock",setup(e){return(e,t)=>((0,r.uX)(),(0,r.CE)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,r.Lk)("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),(0,r.Lk)("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"}),(0,r.Lk)("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"})]))}}),L=M,O=(0,r.pM)({name:"Close",__name:"close",setup(e){return(e,t)=>((0,r.uX)(),(0,r.CE)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,r.Lk)("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),I=O,N=(0,r.pM)({name:"DArrowLeft",__name:"d-arrow-left",setup(e){return(e,t)=>((0,r.uX)(),(0,r.CE)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,r.Lk)("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224zm256 0a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224z"})]))}}),B=N,D=(0,r.pM)({name:"DArrowRight",__name:"d-arrow-right",setup(e){return(e,t)=>((0,r.uX)(),(0,r.CE)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,r.Lk)("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"})]))}}),F=D,$=(0,r.pM)({name:"Delete",__name:"delete",setup(e){return(e,t)=>((0,r.uX)(),(0,r.CE)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,r.Lk)("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),P=$,z=(0,r.pM)({name:"Document",__name:"document",setup(e){return(e,t)=>((0,r.uX)(),(0,r.CE)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,r.Lk)("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}}),W=z,j=(0,r.pM)({name:"FullScreen",__name:"full-screen",setup(e){return(e,t)=>((0,r.uX)(),(0,r.CE)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,r.Lk)("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"})]))}}),V=j,U=(0,r.pM)({name:"Hide",__name:"hide",setup(e){return(e,t)=>((0,r.uX)(),(0,r.CE)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,r.Lk)("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"}),(0,r.Lk)("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"})]))}}),K=U,H=(0,r.pM)({name:"InfoFilled",__name:"info-filled",setup(e){return(e,t)=>((0,r.uX)(),(0,r.CE)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,r.Lk)("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),q=H,G=(0,r.pM)({name:"Loading",__name:"loading",setup(e){return(e,t)=>((0,r.uX)(),(0,r.CE)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,r.Lk)("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})]))}}),X=G,Y=(0,r.pM)({name:"Minus",__name:"minus",setup(e){return(e,t)=>((0,r.uX)(),(0,r.CE)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,r.Lk)("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),Q=Y,Z=(0,r.pM)({name:"MoreFilled",__name:"more-filled",setup(e){return(e,t)=>((0,r.uX)(),(0,r.CE)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,r.Lk)("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"})]))}}),J=Z,ee=(0,r.pM)({name:"More",__name:"more",setup(e){return(e,t)=>((0,r.uX)(),(0,r.CE)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,r.Lk)("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"})]))}}),te=ee,ne=(0,r.pM)({name:"PictureFilled",__name:"picture-filled",setup(e){return(e,t)=>((0,r.uX)(),(0,r.CE)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,r.Lk)("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112M256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384"})]))}}),re=ne,ae=(0,r.pM)({name:"Plus",__name:"plus",setup(e){return(e,t)=>((0,r.uX)(),(0,r.CE)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,r.Lk)("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),ie=ae,oe=(0,r.pM)({name:"QuestionFilled",__name:"question-filled",setup(e){return(e,t)=>((0,r.uX)(),(0,r.CE)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,r.Lk)("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"})]))}}),se=oe,le=(0,r.pM)({name:"RefreshLeft",__name:"refresh-left",setup(e){return(e,t)=>((0,r.uX)(),(0,r.CE)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,r.Lk)("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"})]))}}),ce=le,ue=(0,r.pM)({name:"RefreshRight",__name:"refresh-right",setup(e){return(e,t)=>((0,r.uX)(),(0,r.CE)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,r.Lk)("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88z"})]))}}),de=ue,he=(0,r.pM)({name:"ScaleToOriginal",__name:"scale-to-original",setup(e){return(e,t)=>((0,r.uX)(),(0,r.CE)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,r.Lk)("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zm-361.412 0a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118M512 361.412a30.118 30.118 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.118 30.118 0 0 0 512 361.412M512 512a30.118 30.118 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.118 30.118 0 0 0 512 512"})]))}}),pe=he,fe=(0,r.pM)({name:"Search",__name:"search",setup(e){return(e,t)=>((0,r.uX)(),(0,r.CE)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,r.Lk)("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}}),me=fe,ge=(0,r.pM)({name:"SortDown",__name:"sort-down",setup(e){return(e,t)=>((0,r.uX)(),(0,r.CE)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,r.Lk)("path",{fill:"currentColor",d:"M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0"})]))}}),ve=ge,ye=(0,r.pM)({name:"SortUp",__name:"sort-up",setup(e){return(e,t)=>((0,r.uX)(),(0,r.CE)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,r.Lk)("path",{fill:"currentColor",d:"M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248"})]))}}),be=ye,we=(0,r.pM)({name:"StarFilled",__name:"star-filled",setup(e){return(e,t)=>((0,r.uX)(),(0,r.CE)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,r.Lk)("path",{fill:"currentColor",d:"M283.84 867.84 512 747.776l228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72z"})]))}}),xe=we,ke=(0,r.pM)({name:"Star",__name:"star",setup(e){return(e,t)=>((0,r.uX)(),(0,r.CE)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,r.Lk)("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}}),_e=ke,Ce=(0,r.pM)({name:"SuccessFilled",__name:"success-filled",setup(e){return(e,t)=>((0,r.uX)(),(0,r.CE)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,r.Lk)("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),Ee=Ce,Re=(0,r.pM)({name:"View",__name:"view",setup(e){return(e,t)=>((0,r.uX)(),(0,r.CE)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,r.Lk)("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),Se=Re,Ae=(0,r.pM)({name:"WarningFilled",__name:"warning-filled",setup(e){return(e,t)=>((0,r.uX)(),(0,r.CE)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,r.Lk)("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),Te=Ae,Me=(0,r.pM)({name:"ZoomIn",__name:"zoom-in",setup(e){return(e,t)=>((0,r.uX)(),(0,r.CE)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,r.Lk)("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}}),Le=Me,Oe=(0,r.pM)({name:"ZoomOut",__name:"zoom-out",setup(e){return(e,t)=>((0,r.uX)(),(0,r.CE)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,r.Lk)("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"})]))}}),Ie=Oe;
/*! Element Plus Icons Vue v2.3.1 */},7383:function(e,t,n){"use strict";n.d(t,{X2F:function(){return h},F4c:function(){return s},YC1:function(){return p},eU5:function(){return y},fho:function(){return b},SSU:function(){return E},MLh:function(){return u},P1n:function(){return M},wYm:function(){return C},hRP:function(){return P},esz:function(){return z},lWr:function(){return W}});n(4114),n(6573),n(8100),n(7936),n(7642),n(8004),n(3853),n(5876),n(2475),n(5024),n(1698),n(7467),n(4732),n(9577),n(8992),n(3215),n(4520),n(2577),n(670),n(3949),n(1454),n(8872),n(7550),n(4979),n(4603),n(7566),n(8721);var r=n(153),a=n(6768),i=n(144),o=!1;function s(e){var t;const n=(0,r.x_)(e);return null!=(t=null==n?void 0:n.$el)?t:n}const l=r.oc?window:void 0,c=r.oc?window.document:void 0;r.oc&&window.navigator,r.oc&&window.location;function u(...e){let t,n,i,o;if((0,r.Kg)(e[0])||Array.isArray(e[0])?([n,i,o]=e,t=l):[t,n,i,o]=e,!t)return r.lQ;Array.isArray(n)||(n=[n]),Array.isArray(i)||(i=[i]);const c=[],u=()=>{c.forEach((e=>e())),c.length=0},d=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),h=(0,a.wB)((()=>[s(t),(0,r.x_)(o)]),(([e,t])=>{u(),e&&c.push(...n.flatMap((n=>i.map((r=>d(e,n,r,t))))))}),{immediate:!0,flush:"post"}),p=()=>{h(),u()};return(0,r.Uo)(p),p}let d=!1;function h(e,t,n={}){const{window:a=l,ignore:i=[],capture:o=!0,detectIframe:c=!1}=n;if(!a)return;r.un&&!d&&(d=!0,Array.from(a.document.body.children).forEach((e=>e.addEventListener("click",r.lQ))));let h=!0;const p=e=>i.some((t=>{if("string"===typeof t)return Array.from(a.document.querySelectorAll(t)).some((t=>t===e.target||e.composedPath().includes(t)));{const n=s(t);return n&&(e.target===n||e.composedPath().includes(n))}})),f=n=>{const r=s(e);r&&r!==n.target&&!n.composedPath().includes(r)&&(0===n.detail&&(h=!p(n)),h?t(n):h=!0)},m=[u(a,"click",f,{passive:!0,capture:o}),u(a,"pointerdown",(t=>{const n=s(e);n&&(h=!t.composedPath().includes(n)&&!p(t))}),{passive:!0}),c&&u(a,"blur",(n=>{var r;const i=s(e);"IFRAME"!==(null==(r=a.document.activeElement)?void 0:r.tagName)||(null==i?void 0:i.contains(a.document.activeElement))||t(n)}))].filter(Boolean),g=()=>m.forEach((e=>e()));return g}Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;function p(e={}){var t;const{window:n=l}=e,a=null!=(t=e.document)?t:null==n?void 0:n.document,i=(0,r.bW)((()=>null),(()=>null==a?void 0:a.activeElement));return n&&(u(n,"blur",(e=>{null===e.relatedTarget&&i.trigger()}),!0),u(n,"focus",i.trigger,!0)),i}function f(e,t=!1){const n=(0,i.KR)(),a=()=>n.value=Boolean(e());return a(),(0,r.rd)(a,t),n}Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;function m(e){return JSON.parse(JSON.stringify(e))}const g="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{},v="__vueuse_ssr_handlers__";g[v]=g[v]||{};g[v];Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;function y(e,t,{window:n=l,initialValue:o=""}={}){const c=(0,i.KR)(o),u=(0,a.EW)((()=>{var e;return s(t)||(null==(e=null==n?void 0:n.document)?void 0:e.documentElement)}));return(0,a.wB)([u,()=>(0,r.x_)(e)],(([e,t])=>{var r;if(e&&n){const a=null==(r=n.getComputedStyle(e).getPropertyValue(t))?void 0:r.trim();c.value=a||o}}),{immediate:!0}),(0,a.wB)(c,(t=>{var n;(null==(n=u.value)?void 0:n.style)&&u.value.style.setProperty((0,r.x_)(e),t)})),c}Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;function b({document:e=c}={}){if(!e)return(0,i.KR)("visible");const t=(0,i.KR)(e.visibilityState);return u(e,"visibilitychange",(()=>{t.value=e.visibilityState})),t}Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var w=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable,_=(e,t)=>{var n={};for(var r in e)x.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&w)for(var r of w(e))t.indexOf(r)<0&&k.call(e,r)&&(n[r]=e[r]);return n};function C(e,t,n={}){const i=n,{window:o=l}=i,c=_(i,["window"]);let u;const d=f((()=>o&&"ResizeObserver"in o)),h=()=>{u&&(u.disconnect(),u=void 0)},p=(0,a.wB)((()=>s(e)),(e=>{h(),d.value&&o&&e&&(u=new ResizeObserver(t),u.observe(e,c))}),{immediate:!0,flush:"post"}),m=()=>{h(),p()};return(0,r.Uo)(m),{isSupported:d,stop:m}}function E(e,t={}){const{reset:n=!0,windowResize:o=!0,windowScroll:l=!0,immediate:c=!0}=t,d=(0,i.KR)(0),h=(0,i.KR)(0),p=(0,i.KR)(0),f=(0,i.KR)(0),m=(0,i.KR)(0),g=(0,i.KR)(0),v=(0,i.KR)(0),y=(0,i.KR)(0);function b(){const t=s(e);if(!t)return void(n&&(d.value=0,h.value=0,p.value=0,f.value=0,m.value=0,g.value=0,v.value=0,y.value=0));const r=t.getBoundingClientRect();d.value=r.height,h.value=r.bottom,p.value=r.left,f.value=r.right,m.value=r.top,g.value=r.width,v.value=r.x,y.value=r.y}return C(e,b),(0,a.wB)((()=>s(e)),(e=>!e&&b())),l&&u("scroll",b,{capture:!0,passive:!0}),o&&u("resize",b,{passive:!0}),(0,r.rd)((()=>{c&&b()})),{height:d,bottom:h,left:p,right:f,top:m,width:g,x:v,y:y,update:b}}Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;new Map;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var R=Object.getOwnPropertySymbols,S=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable,T=(e,t)=>{var n={};for(var r in e)S.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&R)for(var r of R(e))t.indexOf(r)<0&&A.call(e,r)&&(n[r]=e[r]);return n};function M(e,t,n={}){const i=n,{window:o=l}=i,c=T(i,["window"]);let u;const d=f((()=>o&&"MutationObserver"in o)),h=()=>{u&&(u.disconnect(),u=void 0)},p=(0,a.wB)((()=>s(e)),(e=>{h(),d.value&&o&&e&&(u=new MutationObserver(t),u.observe(e,c))}),{immediate:!0}),m=()=>{h(),p()};return(0,r.Uo)(m),{isSupported:d,stop:m}}Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var L;(function(e){e["UP"]="UP",e["RIGHT"]="RIGHT",e["DOWN"]="DOWN",e["LEFT"]="LEFT",e["NONE"]="NONE"})(L||(L={}));Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var O=Object.defineProperty,I=Object.getOwnPropertySymbols,N=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable,D=(e,t,n)=>t in e?O(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,F=(e,t)=>{for(var n in t||(t={}))N.call(t,n)&&D(e,n,t[n]);if(I)for(var n of I(t))B.call(t,n)&&D(e,n,t[n]);return e};const $={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};F({linear:r.D_},$);function P(e,t,n,s={}){var l,c,u,d,h;const{clone:p=!1,passive:f=!1,eventName:g,deep:v=!1,defaultValue:y}=s,b=(0,a.nI)(),w=n||(null==b?void 0:b.emit)||(null==(l=null==b?void 0:b.$emit)?void 0:l.bind(b))||(null==(u=null==(c=null==b?void 0:b.proxy)?void 0:c.$emit)?void 0:u.bind(null==b?void 0:b.proxy));let x=g;if(!t)if(o){const e=null==(h=null==(d=null==b?void 0:b.proxy)?void 0:d.$options)?void 0:h.model;t=(null==e?void 0:e.value)||"value",g||(x=(null==e?void 0:e.event)||"input")}else t="modelValue";x=g||x||`update:${t.toString()}`;const k=e=>p?(0,r.Tn)(p)?p(e):m(e):e,_=()=>(0,r.C8)(e[t])?k(e[t]):y;if(f){const n=_(),r=(0,i.KR)(n);return(0,a.wB)((()=>e[t]),(e=>r.value=k(e))),(0,a.wB)(r,(n=>{(n!==e[t]||v)&&w(x,n)}),{deep:v}),r}return(0,a.EW)({get(){return _()},set(e){w(x,e)}})}function z({window:e=l}={}){if(!e)return(0,i.KR)(!1);const t=(0,i.KR)(e.document.hasFocus());return u(e,"blur",(()=>{t.value=!1})),u(e,"focus",(()=>{t.value=!0})),t}function W(e={}){const{window:t=l,initialWidth:n=1/0,initialHeight:a=1/0,listenOrientation:o=!0,includeScrollbar:s=!0}=e,c=(0,i.KR)(n),d=(0,i.KR)(a),h=()=>{t&&(s?(c.value=t.innerWidth,d.value=t.innerHeight):(c.value=t.document.documentElement.clientWidth,d.value=t.document.documentElement.clientHeight))};return h(),(0,r.rd)(h),u("resize",h,{passive:!0}),o&&u("orientationchange",h,{passive:!0}),{width:c,height:d}}},153:function(e,t,n){"use strict";n.d(t,{AI:function(){return m},bW:function(){return S},uA:function(){return m},D_:function(){return R},oc:function(){return g},C8:function(){return v},Tn:function(){return y},un:function(){return x},Kg:function(){return b},lQ:function(){return w},V7:function(){return M},x_:function(){return k},rd:function(){return O},Uo:function(){return A},k3:function(){return L},TO:function(){return I}});n(4114),n(7642),n(8004),n(3853),n(5876),n(2475),n(5024),n(1698),n(8992),n(3215),n(4520),n(2577),n(3949),n(1454),n(8872),n(7550);var r=n(144),a=n(6768);var i,o=Object.defineProperty,s=Object.defineProperties,l=Object.getOwnPropertyDescriptors,c=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,h=(e,t,n)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,p=(e,t)=>{for(var n in t||(t={}))u.call(t,n)&&h(e,n,t[n]);if(c)for(var n of c(t))d.call(t,n)&&h(e,n,t[n]);return e},f=(e,t)=>s(e,l(t));function m(e,t){var n;const i=(0,r.IJ)();return(0,a.nT)((()=>{i.value=e()}),f(p({},t),{flush:null!=(n=null==t?void 0:t.flush)?n:"sync"})),(0,r.tB)(i)}const g="undefined"!==typeof window,v=e=>"undefined"!==typeof e,y=(Object.prototype.toString,e=>"function"===typeof e),b=e=>"string"===typeof e,w=()=>{},x=g&&(null==(i=null==window?void 0:window.navigator)?void 0:i.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function k(e){return"function"===typeof e?e():(0,r.R1)(e)}function _(e,t){function n(...n){return new Promise(((r,a)=>{Promise.resolve(e((()=>t.apply(this,n)),{fn:t,thisArg:this,args:n})).then(r).catch(a)}))}return n}function C(e,t={}){let n,r,a=w;const i=e=>{clearTimeout(e),a(),a=w},o=o=>{const s=k(e),l=k(t.maxWait);return n&&i(n),s<=0||void 0!==l&&l<=0?(r&&(i(r),r=null),Promise.resolve(o())):new Promise(((e,c)=>{a=t.rejectOnCancel?c:e,l&&!r&&(r=setTimeout((()=>{n&&i(n),r=null,e(o())}),l)),n=setTimeout((()=>{r&&i(r),r=null,e(o())}),s)}))};return o}function E(e,t=!0,n=!0,r=!1){let a,i,o=0,s=!0,l=w;const c=()=>{a&&(clearTimeout(a),a=void 0,l(),l=w)},u=u=>{const d=k(e),h=Date.now()-o,p=()=>i=u();return c(),d<=0?(o=Date.now(),p()):(h>d&&(n||!s)?(o=Date.now(),p()):t&&(i=new Promise(((e,t)=>{l=r?t:e,a=setTimeout((()=>{o=Date.now(),s=!0,e(p()),c()}),Math.max(0,d-h))}))),n||a||(a=setTimeout((()=>s=!0),d)),s=!1,i)};return u}function R(e){return e}function S(e,t){let n,i,o;const s=(0,r.KR)(!0),l=()=>{s.value=!0,o()};(0,a.wB)(e,l,{flush:"sync"});const c=y(t)?t:t.get,u=y(t)?void 0:t.set,d=(0,r.rY)(((e,t)=>(i=e,o=t,{get(){return s.value&&(n=c(),s.value=!1),i(),n},set(e){null==u||u(e)}})));return Object.isExtensible(d)&&(d.trigger=l),d}function A(e){return!!(0,r.o5)()&&((0,r.jr)(e),!0)}Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;function T(e,t=200,n={}){return _(C(t,n),e)}function M(e,t=200,n={}){const i=(0,r.KR)(e.value),o=T((()=>{i.value=e.value}),t,n);return(0,a.wB)(e,(()=>o())),i}function L(e,t=200,n=!1,r=!0,a=!1){return _(E(t,n,r,a),e)}Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;function O(e,t=!0){(0,a.nI)()?(0,a.sV)(e):t?e():(0,a.dY)(e)}Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;function I(e,t,n={}){const{immediate:a=!0}=n,i=(0,r.KR)(!1);let o=null;function s(){o&&(clearTimeout(o),o=null)}function l(){i.value=!1,s()}function c(...n){s(),i.value=!0,o=setTimeout((()=>{i.value=!1,o=null,e(...n)}),k(t))}return a&&(i.value=!0,g&&c()),A(l),{isPending:(0,r.tB)(i),start:c,stop:l}}Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable},4373:function(e,t,n){"use strict";n.d(t,{A:function(){return bn}});var r={};n.r(r),n.d(r,{hasBrowserEnv:function(){return $e},hasStandardBrowserEnv:function(){return ze},hasStandardBrowserWebWorkerEnv:function(){return We},navigator:function(){return Pe},origin:function(){return je}});n(4114),n(6573),n(8100),n(7936),n(7467),n(4732),n(9577),n(8992),n(3949),n(9848);function a(e,t){return function(){return e.apply(t,arguments)}}const{toString:i}=Object.prototype,{getPrototypeOf:o}=Object,s=(e=>t=>{const n=i.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),l=e=>(e=e.toLowerCase(),t=>s(t)===e),c=e=>t=>typeof t===e,{isArray:u}=Array,d=c("undefined");function h(e){return null!==e&&!d(e)&&null!==e.constructor&&!d(e.constructor)&&g(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const p=l("ArrayBuffer");function f(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&p(e.buffer),t}const m=c("string"),g=c("function"),v=c("number"),y=e=>null!==e&&"object"===typeof e,b=e=>!0===e||!1===e,w=e=>{if("object"!==s(e))return!1;const t=o(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},x=l("Date"),k=l("File"),_=l("Blob"),C=l("FileList"),E=e=>y(e)&&g(e.pipe),R=e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||g(e.append)&&("formdata"===(t=s(e))||"object"===t&&g(e.toString)&&"[object FormData]"===e.toString()))},S=l("URLSearchParams"),[A,T,M,L]=["ReadableStream","Request","Response","Headers"].map(l),O=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function I(e,t,{allOwnKeys:n=!1}={}){if(null===e||"undefined"===typeof e)return;let r,a;if("object"!==typeof e&&(e=[e]),u(e))for(r=0,a=e.length;r<a;r++)t.call(null,e[r],r,e);else{const a=n?Object.getOwnPropertyNames(e):Object.keys(e),i=a.length;let o;for(r=0;r<i;r++)o=a[r],t.call(null,e[o],o,e)}}function N(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,a=n.length;while(a-- >0)if(r=n[a],t===r.toLowerCase())return r;return null}const B=(()=>"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global)(),D=e=>!d(e)&&e!==B;function F(){const{caseless:e}=D(this)&&this||{},t={},n=(n,r)=>{const a=e&&N(t,r)||r;w(t[a])&&w(n)?t[a]=F(t[a],n):w(n)?t[a]=F({},n):u(n)?t[a]=n.slice():t[a]=n};for(let r=0,a=arguments.length;r<a;r++)arguments[r]&&I(arguments[r],n);return t}const $=(e,t,n,{allOwnKeys:r}={})=>(I(t,((t,r)=>{n&&g(t)?e[r]=a(t,n):e[r]=t}),{allOwnKeys:r}),e),P=e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),z=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},W=(e,t,n,r)=>{let a,i,s;const l={};if(t=t||{},null==e)return t;do{a=Object.getOwnPropertyNames(e),i=a.length;while(i-- >0)s=a[i],r&&!r(s,e,t)||l[s]||(t[s]=e[s],l[s]=!0);e=!1!==n&&o(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},j=(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},V=e=>{if(!e)return null;if(u(e))return e;let t=e.length;if(!v(t))return null;const n=new Array(t);while(t-- >0)n[t]=e[t];return n},U=(e=>t=>e&&t instanceof e)("undefined"!==typeof Uint8Array&&o(Uint8Array)),K=(e,t)=>{const n=e&&e[Symbol.iterator],r=n.call(e);let a;while((a=r.next())&&!a.done){const n=a.value;t.call(e,n[0],n[1])}},H=(e,t)=>{let n;const r=[];while(null!==(n=e.exec(t)))r.push(n);return r},q=l("HTMLFormElement"),G=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),X=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Y=l("RegExp"),Q=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};I(n,((n,a)=>{let i;!1!==(i=t(n,a,e))&&(r[a]=i||n)})),Object.defineProperties(e,r)},Z=e=>{Q(e,((t,n)=>{if(g(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];g(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},J=(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return u(e)?r(e):r(String(e).split(t)),n},ee=()=>{},te=(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,ne="abcdefghijklmnopqrstuvwxyz",re="0123456789",ae={DIGIT:re,ALPHA:ne,ALPHA_DIGIT:ne+ne.toUpperCase()+re},ie=(e=16,t=ae.ALPHA_DIGIT)=>{let n="";const{length:r}=t;while(e--)n+=t[Math.random()*r|0];return n};function oe(e){return!!(e&&g(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])}const se=e=>{const t=new Array(10),n=(e,r)=>{if(y(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const a=u(e)?[]:{};return I(e,((e,t)=>{const i=n(e,r+1);!d(i)&&(a[t]=i)})),t[r]=void 0,a}}return e};return n(e,0)},le=l("AsyncFunction"),ce=e=>e&&(y(e)||g(e))&&g(e.then)&&g(e.catch),ue=((e,t)=>e?setImmediate:t?((e,t)=>(B.addEventListener("message",(({source:n,data:r})=>{n===B&&r===e&&t.length&&t.shift()()}),!1),n=>{t.push(n),B.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))("function"===typeof setImmediate,g(B.postMessage)),de="undefined"!==typeof queueMicrotask?queueMicrotask.bind(B):"undefined"!==typeof process&&process.nextTick||ue;var he={isArray:u,isArrayBuffer:p,isBuffer:h,isFormData:R,isArrayBufferView:f,isString:m,isNumber:v,isBoolean:b,isObject:y,isPlainObject:w,isReadableStream:A,isRequest:T,isResponse:M,isHeaders:L,isUndefined:d,isDate:x,isFile:k,isBlob:_,isRegExp:Y,isFunction:g,isStream:E,isURLSearchParams:S,isTypedArray:U,isFileList:C,forEach:I,merge:F,extend:$,trim:O,stripBOM:P,inherits:z,toFlatObject:W,kindOf:s,kindOfTest:l,endsWith:j,toArray:V,forEachEntry:K,matchAll:H,isHTMLForm:q,hasOwnProperty:X,hasOwnProp:X,reduceDescriptors:Q,freezeMethods:Z,toObjectSet:J,toCamelCase:G,noop:ee,toFiniteNumber:te,findKey:N,global:B,isContextDefined:D,ALPHABET:ae,generateString:ie,isSpecCompliantForm:oe,toJSONObject:se,isAsyncFn:le,isThenable:ce,setImmediate:ue,asap:de};n(1454),n(7550),n(1795);function pe(e,t,n,r,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),a&&(this.response=a,this.status=a.status?a.status:null)}he.inherits(pe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:he.toJSONObject(this.config),code:this.code,status:this.status}}});const fe=pe.prototype,me={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{me[e]={value:e}})),Object.defineProperties(pe,me),Object.defineProperty(fe,"isAxiosError",{value:!0}),pe.from=(e,t,n,r,a,i)=>{const o=Object.create(fe);return he.toFlatObject(e,o,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),pe.call(o,e.message,t,n,r,a),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};var ge=pe,ve=null;function ye(e){return he.isPlainObject(e)||he.isArray(e)}function be(e){return he.endsWith(e,"[]")?e.slice(0,-2):e}function we(e,t,n){return e?e.concat(t).map((function(e,t){return e=be(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}function xe(e){return he.isArray(e)&&!e.some(ye)}const ke=he.toFlatObject(he,{},null,(function(e){return/^is[A-Z]/.test(e)}));function _e(e,t,n){if(!he.isObject(e))throw new TypeError("target must be an object");t=t||new(ve||FormData),n=he.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!he.isUndefined(t[e])}));const r=n.metaTokens,a=n.visitor||u,i=n.dots,o=n.indexes,s=n.Blob||"undefined"!==typeof Blob&&Blob,l=s&&he.isSpecCompliantForm(t);if(!he.isFunction(a))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(he.isDate(e))return e.toISOString();if(!l&&he.isBlob(e))throw new ge("Blob is not supported. Use a Buffer instead.");return he.isArrayBuffer(e)||he.isTypedArray(e)?l&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,a){let s=e;if(e&&!a&&"object"===typeof e)if(he.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(he.isArray(e)&&xe(e)||(he.isFileList(e)||he.endsWith(n,"[]"))&&(s=he.toArray(e)))return n=be(n),s.forEach((function(e,r){!he.isUndefined(e)&&null!==e&&t.append(!0===o?we([n],r,i):null===o?n:n+"[]",c(e))})),!1;return!!ye(e)||(t.append(we(a,n,i),c(e)),!1)}const d=[],h=Object.assign(ke,{defaultVisitor:u,convertValue:c,isVisitable:ye});function p(e,n){if(!he.isUndefined(e)){if(-1!==d.indexOf(e))throw Error("Circular reference detected in "+n.join("."));d.push(e),he.forEach(e,(function(e,r){const i=!(he.isUndefined(e)||null===e)&&a.call(t,e,he.isString(r)?r.trim():r,n,h);!0===i&&p(e,n?n.concat(r):[r])})),d.pop()}}if(!he.isObject(e))throw new TypeError("data must be an object");return p(e),t}var Ce=_e;function Ee(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Re(e,t){this._pairs=[],e&&Ce(e,this,t)}const Se=Re.prototype;Se.append=function(e,t){this._pairs.push([e,t])},Se.toString=function(e){const t=e?function(t){return e.call(this,t,Ee)}:Ee;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var Ae=Re;function Te(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Me(e,t,n){if(!t)return e;const r=n&&n.encode||Te;he.isFunction(n)&&(n={serialize:n});const a=n&&n.serialize;let i;if(i=a?a(t,n):he.isURLSearchParams(t)?t.toString():new Ae(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}class Le{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){he.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}var Oe=Le,Ie={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ne=(n(4603),n(7566),n(8721),"undefined"!==typeof URLSearchParams?URLSearchParams:Ae),Be="undefined"!==typeof FormData?FormData:null,De="undefined"!==typeof Blob?Blob:null,Fe={isBrowser:!0,classes:{URLSearchParams:Ne,FormData:Be,Blob:De},protocols:["http","https","file","blob","url","data"]};const $e="undefined"!==typeof window&&"undefined"!==typeof document,Pe="object"===typeof navigator&&navigator||void 0,ze=$e&&(!Pe||["ReactNative","NativeScript","NS"].indexOf(Pe.product)<0),We=(()=>"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts)(),je=$e&&window.location.href||"http://localhost";var Ve={...r,...Fe};function Ue(e,t){return Ce(e,new Ve.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return Ve.isNode&&he.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}function Ke(e){return he.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}function He(e){const t={},n=Object.keys(e);let r;const a=n.length;let i;for(r=0;r<a;r++)i=n[r],t[i]=e[i];return t}function qe(e){function t(e,n,r,a){let i=e[a++];if("__proto__"===i)return!0;const o=Number.isFinite(+i),s=a>=e.length;if(i=!i&&he.isArray(r)?r.length:i,s)return he.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!o;r[i]&&he.isObject(r[i])||(r[i]=[]);const l=t(e,n,r[i],a);return l&&he.isArray(r[i])&&(r[i]=He(r[i])),!o}if(he.isFormData(e)&&he.isFunction(e.entries)){const n={};return he.forEachEntry(e,((e,r)=>{t(Ke(e),r,n,0)})),n}return null}var Ge=qe;function Xe(e,t,n){if(he.isString(e))try{return(t||JSON.parse)(e),he.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}const Ye={transitional:Ie,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,a=he.isObject(e);a&&he.isHTMLForm(e)&&(e=new FormData(e));const i=he.isFormData(e);if(i)return r?JSON.stringify(Ge(e)):e;if(he.isArrayBuffer(e)||he.isBuffer(e)||he.isStream(e)||he.isFile(e)||he.isBlob(e)||he.isReadableStream(e))return e;if(he.isArrayBufferView(e))return e.buffer;if(he.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Ue(e,this.formSerializer).toString();if((o=he.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Ce(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return a||r?(t.setContentType("application/json",!1),Xe(e)):e}],transformResponse:[function(e){const t=this.transitional||Ye.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(he.isResponse(e)||he.isReadableStream(e))return e;if(e&&he.isString(e)&&(n&&!this.responseType||r)){const n=t&&t.silentJSONParsing,i=!n&&r;try{return JSON.parse(e)}catch(a){if(i){if("SyntaxError"===a.name)throw ge.from(a,ge.ERR_BAD_RESPONSE,this,null,this.response);throw a}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ve.classes.FormData,Blob:Ve.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};he.forEach(["delete","get","head","post","put","patch"],(e=>{Ye.headers[e]={}}));var Qe=Ye;const Ze=he.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var Je=e=>{const t={};let n,r,a;return e&&e.split("\n").forEach((function(e){a=e.indexOf(":"),n=e.substring(0,a).trim().toLowerCase(),r=e.substring(a+1).trim(),!n||t[n]&&Ze[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t};const et=Symbol("internals");function tt(e){return e&&String(e).trim().toLowerCase()}function nt(e){return!1===e||null==e?e:he.isArray(e)?e.map(nt):String(e)}function rt(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;while(r=n.exec(e))t[r[1]]=r[2];return t}const at=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function it(e,t,n,r,a){return he.isFunction(r)?r.call(this,t,n):(a&&(t=n),he.isString(t)?he.isString(r)?-1!==t.indexOf(r):he.isRegExp(r)?r.test(t):void 0:void 0)}function ot(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}function st(e,t){const n=he.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,a){return this[r].call(this,t,e,n,a)},configurable:!0})}))}class lt{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function a(e,t,n){const a=tt(t);if(!a)throw new Error("header name must be a non-empty string");const i=he.findKey(r,a);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=nt(e))}const i=(e,t)=>he.forEach(e,((e,n)=>a(e,n,t)));if(he.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(he.isString(e)&&(e=e.trim())&&!at(e))i(Je(e),t);else if(he.isHeaders(e))for(const[o,s]of e.entries())a(s,o,n);else null!=e&&a(t,e,n);return this}get(e,t){if(e=tt(e),e){const n=he.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return rt(e);if(he.isFunction(t))return t.call(this,e,n);if(he.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=tt(e),e){const n=he.findKey(this,e);return!(!n||void 0===this[n]||t&&!it(this,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function a(e){if(e=tt(e),e){const a=he.findKey(n,e);!a||t&&!it(n,n[a],a,t)||(delete n[a],r=!0)}}return he.isArray(e)?e.forEach(a):a(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;while(n--){const a=t[n];e&&!it(this,this[a],a,e,!0)||(delete this[a],r=!0)}return r}normalize(e){const t=this,n={};return he.forEach(this,((r,a)=>{const i=he.findKey(n,a);if(i)return t[i]=nt(r),void delete t[a];const o=e?ot(a):String(a).trim();o!==a&&delete t[a],t[o]=nt(r),n[o]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return he.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&he.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=this[et]=this[et]={accessors:{}},n=t.accessors,r=this.prototype;function a(e){const t=tt(e);n[t]||(st(r,e),n[t]=!0)}return he.isArray(e)?e.forEach(a):a(e),this}}lt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),he.reduceDescriptors(lt.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),he.freezeMethods(lt);var ct=lt;function ut(e,t){const n=this||Qe,r=t||n,a=ct.from(r.headers);let i=r.data;return he.forEach(e,(function(e){i=e.call(n,i,a.normalize(),t?t.status:void 0)})),a.normalize(),i}function dt(e){return!(!e||!e.__CANCEL__)}function ht(e,t,n){ge.call(this,null==e?"canceled":e,ge.ERR_CANCELED,t,n),this.name="CanceledError"}he.inherits(ht,ge,{__CANCEL__:!0});var pt=ht;function ft(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new ge("Request failed with status code "+n.status,[ge.ERR_BAD_REQUEST,ge.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}function mt(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function gt(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a,i=0,o=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[o];a||(a=l),n[i]=s,r[i]=l;let u=o,d=0;while(u!==i)d+=n[u++],u%=e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),l-a<t)return;const h=c&&l-c;return h?Math.round(1e3*d/h):void 0}}var vt=gt;function yt(e,t){let n,r,a=0,i=1e3/t;const o=(t,i=Date.now())=>{a=i,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)},s=(...e)=>{const t=Date.now(),s=t-a;s>=i?o(e,t):(n=e,r||(r=setTimeout((()=>{r=null,o(n)}),i-s)))},l=()=>n&&o(n);return[s,l]}var bt=yt;const wt=(e,t,n=3)=>{let r=0;const a=vt(50,250);return bt((n=>{const i=n.loaded,o=n.lengthComputable?n.total:void 0,s=i-r,l=a(s),c=i<=o;r=i;const u={loaded:i,total:o,progress:o?i/o:void 0,bytes:s,rate:l||void 0,estimated:l&&o&&c?(o-i)/l:void 0,event:n,lengthComputable:null!=o,[t?"download":"upload"]:!0};e(u)}),n)},xt=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},kt=e=>(...t)=>he.asap((()=>e(...t)));n(4520),n(4979);var _t=Ve.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ve.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ve.origin),Ve.navigator&&/(msie|trident)/i.test(Ve.navigator.userAgent)):()=>!0,Ct=Ve.hasStandardBrowserEnv?{write(e,t,n,r,a,i){const o=[e+"="+encodeURIComponent(t)];he.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),he.isString(r)&&o.push("path="+r),he.isString(a)&&o.push("domain="+a),!0===i&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Et(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Rt(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function St(e,t){return e&&!Et(t)?Rt(e,t):t}const At=e=>e instanceof ct?{...e}:e;function Tt(e,t){t=t||{};const n={};function r(e,t,n,r){return he.isPlainObject(e)&&he.isPlainObject(t)?he.merge.call({caseless:r},e,t):he.isPlainObject(t)?he.merge({},t):he.isArray(t)?t.slice():t}function a(e,t,n,a){return he.isUndefined(t)?he.isUndefined(e)?void 0:r(void 0,e,n,a):r(e,t,n,a)}function i(e,t){if(!he.isUndefined(t))return r(void 0,t)}function o(e,t){return he.isUndefined(t)?he.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,a,i){return i in t?r(n,a):i in e?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(e,t,n)=>a(At(e),At(t),n,!0)};return he.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=l[r]||a,o=i(e[r],t[r],r);he.isUndefined(o)&&i!==s||(n[r]=o)})),n}var Mt=e=>{const t=Tt({},e);let n,{data:r,withXSRFToken:a,xsrfHeaderName:i,xsrfCookieName:o,headers:s,auth:l}=t;if(t.headers=s=ct.from(s),t.url=Me(St(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),he.isFormData(r))if(Ve.hasStandardBrowserEnv||Ve.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(Ve.hasStandardBrowserEnv&&(a&&he.isFunction(a)&&(a=a(t)),a||!1!==a&&_t(t.url))){const e=i&&o&&Ct.read(o);e&&s.set(i,e)}return t};const Lt="undefined"!==typeof XMLHttpRequest;var Ot=Lt&&function(e){return new Promise((function(t,n){const r=Mt(e);let a=r.data;const i=ct.from(r.headers).normalize();let o,s,l,c,u,{responseType:d,onUploadProgress:h,onDownloadProgress:p}=r;function f(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(o),r.signal&&r.signal.removeEventListener("abort",o)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=ct.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),a=d&&"text"!==d&&"json"!==d?m.response:m.responseText,i={data:a,status:m.status,statusText:m.statusText,headers:r,config:e,request:m};ft((function(e){t(e),f()}),(function(e){n(e),f()}),i),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new ge("Request aborted",ge.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new ge("Network Error",ge.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const a=r.transitional||Ie;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new ge(t,a.clarifyTimeoutError?ge.ETIMEDOUT:ge.ECONNABORTED,e,m)),m=null},void 0===a&&i.setContentType(null),"setRequestHeader"in m&&he.forEach(i.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),he.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),p&&([l,u]=wt(p,!0),m.addEventListener("progress",l)),h&&m.upload&&([s,c]=wt(h),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(o=t=>{m&&(n(!t||t.type?new pt(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(o),r.signal&&(r.signal.aborted?o():r.signal.addEventListener("abort",o)));const v=mt(r.url);v&&-1===Ve.protocols.indexOf(v)?n(new ge("Unsupported protocol "+v+":",ge.ERR_BAD_REQUEST,e)):m.send(a||null)}))};const It=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const a=function(e){if(!n){n=!0,o();const t=e instanceof Error?e:this.reason;r.abort(t instanceof ge?t:new pt(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,a(new ge(`timeout ${t} of ms exceeded`,ge.ETIMEDOUT))}),t);const o=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(a):e.removeEventListener("abort",a)})),e=null)};e.forEach((e=>e.addEventListener("abort",a)));const{signal:s}=r;return s.unsubscribe=()=>he.asap(o),s}};var Nt=It;const Bt=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,a=0;while(a<n)r=a+t,yield e.slice(a,r),a=r},Dt=async function*(e,t){for await(const n of Ft(e))yield*Bt(n,t)},Ft=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},$t=(e,t,n,r)=>{const a=Dt(e,t);let i,o=0,s=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await a.next();if(t)return s(),void e.close();let i=r.byteLength;if(n){let e=o+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw s(t),t}},cancel(e){return s(e),a.return()}},{highWaterMark:2})},Pt="function"===typeof fetch&&"function"===typeof Request&&"function"===typeof Response,zt=Pt&&"function"===typeof ReadableStream,Wt=Pt&&("function"===typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),jt=(e,...t)=>{try{return!!e(...t)}catch(n){return!1}},Vt=zt&&jt((()=>{let e=!1;const t=new Request(Ve.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Ut=65536,Kt=zt&&jt((()=>he.isReadableStream(new Response("").body))),Ht={stream:Kt&&(e=>e.body)};Pt&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach((t=>{!Ht[t]&&(Ht[t]=he.isFunction(e[t])?e=>e[t]():(e,n)=>{throw new ge(`Response type '${t}' is not supported`,ge.ERR_NOT_SUPPORT,n)})}))})(new Response);const qt=async e=>{if(null==e)return 0;if(he.isBlob(e))return e.size;if(he.isSpecCompliantForm(e)){const t=new Request(Ve.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return he.isArrayBufferView(e)||he.isArrayBuffer(e)?e.byteLength:(he.isURLSearchParams(e)&&(e+=""),he.isString(e)?(await Wt(e)).byteLength:void 0)},Gt=async(e,t)=>{const n=he.toFiniteNumber(e.getContentLength());return null==n?qt(t):n};var Xt=Pt&&(async e=>{let{url:t,method:n,data:r,signal:a,cancelToken:i,timeout:o,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:h}=Mt(e);c=c?(c+"").toLowerCase():"text";let p,f=Nt([a,i&&i.toAbortSignal()],o);const m=f&&f.unsubscribe&&(()=>{f.unsubscribe()});let g;try{if(l&&Vt&&"get"!==n&&"head"!==n&&0!==(g=await Gt(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(he.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=xt(g,wt(kt(l)));r=$t(n.body,Ut,e,t)}}he.isString(d)||(d=d?"include":"omit");const a="credentials"in Request.prototype;p=new Request(t,{...h,signal:f,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:a?d:void 0});let i=await fetch(p);const o=Kt&&("stream"===c||"response"===c);if(Kt&&(s||o&&m)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=i[t]}));const t=he.toFiniteNumber(i.headers.get("content-length")),[n,r]=s&&xt(t,wt(kt(s),!0))||[];i=new Response($t(i.body,Ut,n,(()=>{r&&r(),m&&m()})),e)}c=c||"text";let v=await Ht[he.findKey(Ht,c)||"text"](i,e);return!o&&m&&m(),await new Promise(((t,n)=>{ft(t,n,{data:v,headers:ct.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:p})}))}catch(v){if(m&&m(),v&&"TypeError"===v.name&&/fetch/i.test(v.message))throw Object.assign(new ge("Network Error",ge.ERR_NETWORK,e,p),{cause:v.cause||v});throw ge.from(v,v&&v.code,e,p)}});const Yt={http:ve,xhr:Ot,fetch:Xt};he.forEach(Yt,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}}));const Qt=e=>`- ${e}`,Zt=e=>he.isFunction(e)||null===e||!1===e;var Jt={getAdapter:e=>{e=he.isArray(e)?e:[e];const{length:t}=e;let n,r;const a={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!Zt(n)&&(r=Yt[(t=String(n)).toLowerCase()],void 0===r))throw new ge(`Unknown adapter '${t}'`);if(r)break;a[t||"#"+i]=r}if(!r){const e=Object.entries(a).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let n=t?e.length>1?"since :\n"+e.map(Qt).join("\n"):" "+Qt(e[0]):"as no adapter specified";throw new ge("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r},adapters:Yt};function en(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new pt(null,e)}function tn(e){en(e),e.headers=ct.from(e.headers),e.data=ut.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);const t=Jt.getAdapter(e.adapter||Qe.adapter);return t(e).then((function(t){return en(e),t.data=ut.call(e,e.transformResponse,t),t.headers=ct.from(t.headers),t}),(function(t){return dt(t)||(en(e),t&&t.response&&(t.response.data=ut.call(e,e.transformResponse,t.response),t.response.headers=ct.from(t.response.headers))),Promise.reject(t)}))}const nn="1.7.9",rn={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{rn[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const an={};function on(e,t,n){if("object"!==typeof e)throw new ge("options must be an object",ge.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;while(a-- >0){const i=r[a],o=t[i];if(o){const t=e[i],n=void 0===t||o(t,i,e);if(!0!==n)throw new ge("option "+i+" must be "+n,ge.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new ge("Unknown option "+i,ge.ERR_BAD_OPTION)}}rn.transitional=function(e,t,n){function r(e,t){return"[Axios v"+nn+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,a,i)=>{if(!1===e)throw new ge(r(a," has been removed"+(t?" in "+t:"")),ge.ERR_DEPRECATED);return t&&!an[a]&&(an[a]=!0,console.warn(r(a," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,a,i)}},rn.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var sn={assertOptions:on,validators:rn};const ln=sn.validators;class cn{constructor(e){this.defaults=e,this.interceptors={request:new Oe,response:new Oe}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(r){}}throw n}}_request(e,t){"string"===typeof e?(t=t||{},t.url=e):t=e||{},t=Tt(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:a}=t;void 0!==n&&sn.assertOptions(n,{silentJSONParsing:ln.transitional(ln.boolean),forcedJSONParsing:ln.transitional(ln.boolean),clarifyTimeoutError:ln.transitional(ln.boolean)},!1),null!=r&&(he.isFunction(r)?t.paramsSerializer={serialize:r}:sn.assertOptions(r,{encode:ln.function,serialize:ln.function},!0)),sn.assertOptions(t,{baseUrl:ln.spelling("baseURL"),withXsrfToken:ln.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=a&&he.merge(a.common,a[t.method]);a&&he.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete a[e]})),t.headers=ct.concat(i,a);const o=[];let s=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,o.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!s){const e=[tn.bind(this),void 0];e.unshift.apply(e,o),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);while(d<u)c=c.then(e[d++],e[d++]);return c}u=o.length;let h=t;d=0;while(d<u){const e=o[d++],t=o[d++];try{h=e(h)}catch(p){t.call(this,p);break}}try{c=tn.call(this,h)}catch(p){return Promise.reject(p)}d=0,u=l.length;while(d<u)c=c.then(l[d++],l[d++]);return c}getUri(e){e=Tt(this.defaults,e);const t=St(e.baseURL,e.url);return Me(t,e.params,e.paramsSerializer)}}he.forEach(["delete","get","head","options"],(function(e){cn.prototype[e]=function(t,n){return this.request(Tt(n||{},{method:e,url:t,data:(n||{}).data}))}})),he.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,a){return this.request(Tt(a||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}cn.prototype[e]=t(),cn.prototype[e+"Form"]=t(!0)}));var un=cn;class dn{constructor(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;while(t-- >0)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,a){n.reason||(n.reason=new pt(e,r,a),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;const t=new dn((function(t){e=t}));return{token:t,cancel:e}}}var hn=dn;function pn(e){return function(t){return e.apply(null,t)}}function fn(e){return he.isObject(e)&&!0===e.isAxiosError}const mn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(mn).forEach((([e,t])=>{mn[t]=e}));var gn=mn;function vn(e){const t=new un(e),n=a(un.prototype.request,t);return he.extend(n,un.prototype,t,{allOwnKeys:!0}),he.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return vn(Tt(e,t))},n}const yn=vn(Qe);yn.Axios=un,yn.CanceledError=pt,yn.CancelToken=hn,yn.isCancel=dt,yn.VERSION=nn,yn.toFormData=Ce,yn.AxiosError=ge,yn.Cancel=yn.CanceledError,yn.all=function(e){return Promise.all(e)},yn.spread=pn,yn.isAxiosError=fn,yn.mergeConfig=Tt,yn.AxiosHeaders=ct,yn.formToJSON=e=>Ge(he.isHTMLForm(e)?new FormData(e):e),yn.getAdapter=Jt.getAdapter,yn.HttpStatusCode=gn,yn.default=yn;var bn=yn},8458:function(e,t,n){"use strict";function r(e,t){let n;if(void 0===t)for(const r of e)null!=r&&(n<r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let a of e)null!=(a=t(a,++r,e))&&(n<a||void 0===n&&a>=a)&&(n=a)}return n}function a(e,t){let n;if(void 0===t)for(const r of e)null!=r&&(n>r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let a of e)null!=(a=t(a,++r,e))&&(n>a||void 0===n&&a>=a)&&(n=a)}return n}n.d(t,{JLW:function(){return kc},l78:function(){return y},tlR:function(){return v},qrM:function(){return Bc},Yu4:function(){return Fc},IA3:function(){return Pc},Wi0:function(){return Wc},PGM:function(){return jc},OEq:function(){return Uc},y8u:function(){return qc},olC:function(){return Xc},IrU:function(){return Qc},oDi:function(){return eu},Q7f:function(){return nu},cVp:function(){return au},lUB:function(){return Ec},Lx9:function(){return ou},nVG:function(){return fu},uxU:function(){return mu},Xf2:function(){return yu},GZz:function(){return wu},UPb:function(){return ku},dyv:function(){return xu},bEH:function(){return ci},n8j:function(){return Ac},T9B:function(){return r},jkA:function(){return a},rLf:function(){return Lc},m4Y:function(){return vo},UMr:function(){return Co},w7C:function(){return Vl},Ltv:function(){return Ul},Ubm:function(){return Kl},JWy:function(){return za},UAC:function(){return Wo},DCK:function(){return ws},Agd:function(){return Po},wXd:function(){return Fo},Ui6:function(){return os},Kgo:function(){return Ko}});n(8992),n(4520);function i(e){return e}var o=1,s=2,l=3,c=4,u=1e-6;function d(e){return"translate("+e+",0)"}function h(e){return"translate(0,"+e+")"}function p(e){return t=>+e(t)}function f(e,t){return t=Math.max(0,e.bandwidth()-2*t)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function m(){return!this.__axis}function g(e,t){var n=[],r=null,a=null,g=6,v=6,y=3,b="undefined"!==typeof window&&window.devicePixelRatio>1?0:.5,w=e===o||e===c?-1:1,x=e===c||e===s?"x":"y",k=e===o||e===l?d:h;function _(d){var h=null==r?t.ticks?t.ticks.apply(t,n):t.domain():r,_=null==a?t.tickFormat?t.tickFormat.apply(t,n):i:a,C=Math.max(g,0)+y,E=t.range(),R=+E[0]+b,S=+E[E.length-1]+b,A=(t.bandwidth?f:p)(t.copy(),b),T=d.selection?d.selection():d,M=T.selectAll(".domain").data([null]),L=T.selectAll(".tick").data(h,t).order(),O=L.exit(),I=L.enter().append("g").attr("class","tick"),N=L.select("line"),B=L.select("text");M=M.merge(M.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),L=L.merge(I),N=N.merge(I.append("line").attr("stroke","currentColor").attr(x+"2",w*g)),B=B.merge(I.append("text").attr("fill","currentColor").attr(x,w*C).attr("dy",e===o?"0em":e===l?"0.71em":"0.32em")),d!==T&&(M=M.transition(d),L=L.transition(d),N=N.transition(d),B=B.transition(d),O=O.transition(d).attr("opacity",u).attr("transform",(function(e){return isFinite(e=A(e))?k(e+b):this.getAttribute("transform")})),I.attr("opacity",u).attr("transform",(function(e){var t=this.parentNode.__axis;return k((t&&isFinite(t=t(e))?t:A(e))+b)}))),O.remove(),M.attr("d",e===c||e===s?v?"M"+w*v+","+R+"H"+b+"V"+S+"H"+w*v:"M"+b+","+R+"V"+S:v?"M"+R+","+w*v+"V"+b+"H"+S+"V"+w*v:"M"+R+","+b+"H"+S),L.attr("opacity",1).attr("transform",(function(e){return k(A(e)+b)})),N.attr(x+"2",w*g),B.attr(x,w*C).text(_),T.filter(m).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===s?"start":e===c?"end":"middle"),T.each((function(){this.__axis=A}))}return _.scale=function(e){return arguments.length?(t=e,_):t},_.ticks=function(){return n=Array.from(arguments),_},_.tickArguments=function(e){return arguments.length?(n=null==e?[]:Array.from(e),_):n.slice()},_.tickValues=function(e){return arguments.length?(r=null==e?null:Array.from(e),_):r&&r.slice()},_.tickFormat=function(e){return arguments.length?(a=e,_):a},_.tickSize=function(e){return arguments.length?(g=v=+e,_):g},_.tickSizeInner=function(e){return arguments.length?(g=+e,_):g},_.tickSizeOuter=function(e){return arguments.length?(v=+e,_):v},_.tickPadding=function(e){return arguments.length?(y=+e,_):y},_.offset=function(e){return arguments.length?(b=+e,_):b},_}function v(e){return g(o,e)}function y(e){return g(l,e)}function b(){}function w(e){return null==e?b:function(){return this.querySelector(e)}}function x(e){"function"!==typeof e&&(e=w(e));for(var t=this._groups,n=t.length,r=new Array(n),a=0;a<n;++a)for(var i,o,s=t[a],l=s.length,c=r[a]=new Array(l),u=0;u<l;++u)(i=s[u])&&(o=e.call(i,i.__data__,u,s))&&("__data__"in i&&(o.__data__=i.__data__),c[u]=o);return new mt(r,this._parents)}n(4114);function k(e){return null==e?[]:Array.isArray(e)?e:Array.from(e)}function _(){return[]}function C(e){return null==e?_:function(){return this.querySelectorAll(e)}}function E(e){return function(){return k(e.apply(this,arguments))}}function R(e){e="function"===typeof e?E(e):C(e);for(var t=this._groups,n=t.length,r=[],a=[],i=0;i<n;++i)for(var o,s=t[i],l=s.length,c=0;c<l;++c)(o=s[c])&&(r.push(e.call(o,o.__data__,c,s)),a.push(o));return new mt(r,a)}function S(e){return function(){return this.matches(e)}}function A(e){return function(t){return t.matches(e)}}var T=Array.prototype.find;function M(e){return function(){return T.call(this.children,e)}}function L(){return this.firstElementChild}function O(e){return this.select(null==e?L:M("function"===typeof e?e:A(e)))}var I=Array.prototype.filter;function N(){return Array.from(this.children)}function B(e){return function(){return I.call(this.children,e)}}function D(e){return this.selectAll(null==e?N:B("function"===typeof e?e:A(e)))}function F(e){"function"!==typeof e&&(e=S(e));for(var t=this._groups,n=t.length,r=new Array(n),a=0;a<n;++a)for(var i,o=t[a],s=o.length,l=r[a]=[],c=0;c<s;++c)(i=o[c])&&e.call(i,i.__data__,c,o)&&l.push(i);return new mt(r,this._parents)}n(1454);function $(e){return new Array(e.length)}function P(){return new mt(this._enter||this._groups.map($),this._parents)}function z(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function W(e){return function(){return e}}function j(e,t,n,r,a,i){for(var o,s=0,l=t.length,c=i.length;s<c;++s)(o=t[s])?(o.__data__=i[s],r[s]=o):n[s]=new z(e,i[s]);for(;s<l;++s)(o=t[s])&&(a[s]=o)}function V(e,t,n,r,a,i,o){var s,l,c,u=new Map,d=t.length,h=i.length,p=new Array(d);for(s=0;s<d;++s)(l=t[s])&&(p[s]=c=o.call(l,l.__data__,s,t)+"",u.has(c)?a[s]=l:u.set(c,l));for(s=0;s<h;++s)c=o.call(e,i[s],s,i)+"",(l=u.get(c))?(r[s]=l,l.__data__=i[s],u.delete(c)):n[s]=new z(e,i[s]);for(s=0;s<d;++s)(l=t[s])&&u.get(p[s])===l&&(a[s]=l)}function U(e){return e.__data__}function K(e,t){if(!arguments.length)return Array.from(this,U);var n=t?V:j,r=this._parents,a=this._groups;"function"!==typeof e&&(e=W(e));for(var i=a.length,o=new Array(i),s=new Array(i),l=new Array(i),c=0;c<i;++c){var u=r[c],d=a[c],h=d.length,p=H(e.call(u,u&&u.__data__,c,r)),f=p.length,m=s[c]=new Array(f),g=o[c]=new Array(f),v=l[c]=new Array(h);n(u,d,m,g,v,p,t);for(var y,b,w=0,x=0;w<f;++w)if(y=m[w]){w>=x&&(x=w+1);while(!(b=g[x])&&++x<f);y._next=b||null}}return o=new mt(o,r),o._enter=s,o._exit=l,o}function H(e){return"object"===typeof e&&"length"in e?e:Array.from(e)}function q(){return new mt(this._exit||this._groups.map($),this._parents)}function G(e,t,n){var r=this.enter(),a=this,i=this.exit();return"function"===typeof e?(r=e(r),r&&(r=r.selection())):r=r.append(e+""),null!=t&&(a=t(a),a&&(a=a.selection())),null==n?i.remove():n(i),r&&a?r.merge(a).order():a}function X(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,a=n.length,i=r.length,o=Math.min(a,i),s=new Array(a),l=0;l<o;++l)for(var c,u=n[l],d=r[l],h=u.length,p=s[l]=new Array(h),f=0;f<h;++f)(c=u[f]||d[f])&&(p[f]=c);for(;l<a;++l)s[l]=n[l];return new mt(s,this._parents)}function Y(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,a=e[t],i=a.length-1,o=a[i];--i>=0;)(r=a[i])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this}function Q(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=Z);for(var n=this._groups,r=n.length,a=new Array(r),i=0;i<r;++i){for(var o,s=n[i],l=s.length,c=a[i]=new Array(l),u=0;u<l;++u)(o=s[u])&&(c[u]=o);c.sort(t)}return new mt(a,this._parents).order()}function Z(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function J(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function ee(){return Array.from(this)}function te(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],a=0,i=r.length;a<i;++a){var o=r[a];if(o)return o}return null}function ne(){let e=0;for(const t of this)++e;return e}function re(){return!this.node()}function ae(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var a,i=t[n],o=0,s=i.length;o<s;++o)(a=i[o])&&e.call(a,a.__data__,o,i);return this}z.prototype={constructor:z,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var ie="http://www.w3.org/1999/xhtml",oe={svg:"http://www.w3.org/2000/svg",xhtml:ie,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function se(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),oe.hasOwnProperty(t)?{space:oe[t],local:e}:e}function le(e){return function(){this.removeAttribute(e)}}function ce(e){return function(){this.removeAttributeNS(e.space,e.local)}}function ue(e,t){return function(){this.setAttribute(e,t)}}function de(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function he(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function pe(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function fe(e,t){var n=se(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?ce:le:"function"===typeof t?n.local?pe:he:n.local?de:ue)(n,t))}function me(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function ge(e){return function(){this.style.removeProperty(e)}}function ve(e,t,n){return function(){this.style.setProperty(e,t,n)}}function ye(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function be(e,t,n){return arguments.length>1?this.each((null==t?ge:"function"===typeof t?ye:ve)(e,t,null==n?"":n)):we(this.node(),e)}function we(e,t){return e.style.getPropertyValue(t)||me(e).getComputedStyle(e,null).getPropertyValue(t)}function xe(e){return function(){delete this[e]}}function ke(e,t){return function(){this[e]=t}}function _e(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function Ce(e,t){return arguments.length>1?this.each((null==t?xe:"function"===typeof t?_e:ke)(e,t)):this.node()[e]}function Ee(e){return e.trim().split(/^|\s+/)}function Re(e){return e.classList||new Se(e)}function Se(e){this._node=e,this._names=Ee(e.getAttribute("class")||"")}function Ae(e,t){var n=Re(e),r=-1,a=t.length;while(++r<a)n.add(t[r])}function Te(e,t){var n=Re(e),r=-1,a=t.length;while(++r<a)n.remove(t[r])}function Me(e){return function(){Ae(this,e)}}function Le(e){return function(){Te(this,e)}}function Oe(e,t){return function(){(t.apply(this,arguments)?Ae:Te)(this,e)}}function Ie(e,t){var n=Ee(e+"");if(arguments.length<2){var r=Re(this.node()),a=-1,i=n.length;while(++a<i)if(!r.contains(n[a]))return!1;return!0}return this.each(("function"===typeof t?Oe:t?Me:Le)(n,t))}function Ne(){this.textContent=""}function Be(e){return function(){this.textContent=e}}function De(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function Fe(e){return arguments.length?this.each(null==e?Ne:("function"===typeof e?De:Be)(e)):this.node().textContent}function $e(){this.innerHTML=""}function Pe(e){return function(){this.innerHTML=e}}function ze(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function We(e){return arguments.length?this.each(null==e?$e:("function"===typeof e?ze:Pe)(e)):this.node().innerHTML}function je(){this.nextSibling&&this.parentNode.appendChild(this)}function Ve(){return this.each(je)}function Ue(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Ke(){return this.each(Ue)}function He(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===ie&&t.documentElement.namespaceURI===ie?t.createElement(e):t.createElementNS(n,e)}}function qe(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Ge(e){var t=se(e);return(t.local?qe:He)(t)}function Xe(e){var t="function"===typeof e?e:Ge(e);return this.select((function(){return this.appendChild(t.apply(this,arguments))}))}function Ye(){return null}function Qe(e,t){var n="function"===typeof e?e:Ge(e),r=null==t?Ye:"function"===typeof t?t:w(t);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))}function Ze(){var e=this.parentNode;e&&e.removeChild(this)}function Je(){return this.each(Ze)}function et(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function tt(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function nt(e){return this.select(e?tt:et)}function rt(e){return arguments.length?this.property("__data__",e):this.node().__data__}function at(e){return function(t){e.call(this,t,this.__data__)}}function it(e){return e.trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}function ot(e){return function(){var t=this.__on;if(t){for(var n,r=0,a=-1,i=t.length;r<i;++r)n=t[r],e.type&&n.type!==e.type||n.name!==e.name?t[++a]=n:this.removeEventListener(n.type,n.listener,n.options);++a?t.length=a:delete this.__on}}}function st(e,t,n){return function(){var r,a=this.__on,i=at(t);if(a)for(var o=0,s=a.length;o<s;++o)if((r=a[o]).type===e.type&&r.name===e.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=i,r.options=n),void(r.value=t);this.addEventListener(e.type,i,n),r={type:e.type,name:e.name,value:t,listener:i,options:n},a?a.push(r):this.__on=[r]}}function lt(e,t,n){var r,a,i=it(e+""),o=i.length;if(!(arguments.length<2)){for(s=t?st:ot,r=0;r<o;++r)this.each(s(i[r],t,n));return this}var s=this.node().__on;if(s)for(var l,c=0,u=s.length;c<u;++c)for(r=0,l=s[c];r<o;++r)if((a=i[r]).type===l.type&&a.name===l.name)return l.value}function ct(e,t,n){var r=me(e),a=r.CustomEvent;"function"===typeof a?a=new a(t,n):(a=r.document.createEvent("Event"),n?(a.initEvent(t,n.bubbles,n.cancelable),a.detail=n.detail):a.initEvent(t,!1,!1)),e.dispatchEvent(a)}function ut(e,t){return function(){return ct(this,e,t)}}function dt(e,t){return function(){return ct(this,e,t.apply(this,arguments))}}function ht(e,t){return this.each(("function"===typeof t?dt:ut)(e,t))}function*pt(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r,a=e[t],i=0,o=a.length;i<o;++i)(r=a[i])&&(yield r)}Se.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var ft=[null];function mt(e,t){this._groups=e,this._parents=t}function gt(){return new mt([[document.documentElement]],ft)}function vt(){return this}mt.prototype=gt.prototype={constructor:mt,select:x,selectAll:R,selectChild:O,selectChildren:D,filter:F,data:K,enter:P,exit:q,join:G,merge:X,selection:vt,order:Y,sort:Q,call:J,nodes:ee,node:te,size:ne,empty:re,each:ae,attr:fe,style:be,property:Ce,classed:Ie,text:Fe,html:We,raise:Ve,lower:Ke,append:Xe,insert:Qe,remove:Je,clone:nt,datum:rt,on:lt,dispatch:ht,[Symbol.iterator]:pt};var yt=gt,bt={value:()=>{}};function wt(){for(var e,t=0,n=arguments.length,r={};t<n;++t){if(!(e=arguments[t]+"")||e in r||/[\s.]/.test(e))throw new Error("illegal type: "+e);r[e]=[]}return new xt(r)}function xt(e){this._=e}function kt(e,t){return e.trim().split(/^|\s+/).map((function(e){var n="",r=e.indexOf(".");if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:n}}))}function _t(e,t){for(var n,r=0,a=e.length;r<a;++r)if((n=e[r]).name===t)return n.value}function Ct(e,t,n){for(var r=0,a=e.length;r<a;++r)if(e[r].name===t){e[r]=bt,e=e.slice(0,r).concat(e.slice(r+1));break}return null!=n&&e.push({name:t,value:n}),e}xt.prototype=wt.prototype={constructor:xt,on:function(e,t){var n,r=this._,a=kt(e+"",r),i=-1,o=a.length;if(!(arguments.length<2)){if(null!=t&&"function"!==typeof t)throw new Error("invalid callback: "+t);while(++i<o)if(n=(e=a[i]).type)r[n]=Ct(r[n],e.name,t);else if(null==t)for(n in r)r[n]=Ct(r[n],e.name,null);return this}while(++i<o)if((n=(e=a[i]).type)&&(n=_t(r[n],e.name)))return n},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new xt(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,r,a=new Array(n),i=0;i<n;++i)a[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(r=this._[e],i=0,n=r.length;i<n;++i)r[i].value.apply(t,a)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],a=0,i=r.length;a<i;++a)r[a].value.apply(t,n)}};var Et,Rt,St=wt,At=0,Tt=0,Mt=0,Lt=1e3,Ot=0,It=0,Nt=0,Bt="object"===typeof performance&&performance.now?performance:Date,Dt="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Ft(){return It||(Dt($t),It=Bt.now()+Nt)}function $t(){It=0}function Pt(){this._call=this._time=this._next=null}function zt(e,t,n){var r=new Pt;return r.restart(e,t,n),r}function Wt(){Ft(),++At;var e,t=Et;while(t)(e=It-t._time)>=0&&t._call.call(void 0,e),t=t._next;--At}function jt(){It=(Ot=Bt.now())+Nt,At=Tt=0;try{Wt()}finally{At=0,Ut(),It=0}}function Vt(){var e=Bt.now(),t=e-Ot;t>Lt&&(Nt-=t,Ot=e)}function Ut(){var e,t,n=Et,r=1/0;while(n)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:Et=t);Rt=e,Kt(r)}function Kt(e){if(!At){Tt&&(Tt=clearTimeout(Tt));var t=e-It;t>24?(e<1/0&&(Tt=setTimeout(jt,e-Bt.now()-Nt)),Mt&&(Mt=clearInterval(Mt))):(Mt||(Ot=Bt.now(),Mt=setInterval(Vt,Lt)),At=1,Dt(jt))}}function Ht(e,t,n){var r=new Pt;return t=null==t?0:+t,r.restart((n=>{r.stop(),e(n+t)}),t,n),r}Pt.prototype=zt.prototype={constructor:Pt,restart:function(e,t,n){if("function"!==typeof e)throw new TypeError("callback is not a function");n=(null==n?Ft():+n)+(null==t?0:+t),this._next||Rt===this||(Rt?Rt._next=this:Et=this,Rt=this),this._call=e,this._time=n,Kt()},stop:function(){this._call&&(this._call=null,this._time=1/0,Kt())}};var qt=St("start","end","cancel","interrupt"),Gt=[],Xt=0,Yt=1,Qt=2,Zt=3,Jt=4,en=5,tn=6;function nn(e,t,n,r,a,i){var o=e.__transition;if(o){if(n in o)return}else e.__transition={};sn(e,n,{name:t,index:r,group:a,on:qt,tween:Gt,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:Xt})}function rn(e,t){var n=on(e,t);if(n.state>Xt)throw new Error("too late; already scheduled");return n}function an(e,t){var n=on(e,t);if(n.state>Zt)throw new Error("too late; already running");return n}function on(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function sn(e,t,n){var r,a=e.__transition;function i(e){n.state=Yt,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}function o(i){var c,u,d,h;if(n.state!==Yt)return l();for(c in a)if(h=a[c],h.name===n.name){if(h.state===Zt)return Ht(o);h.state===Jt?(h.state=tn,h.timer.stop(),h.on.call("interrupt",e,e.__data__,h.index,h.group),delete a[c]):+c<t&&(h.state=tn,h.timer.stop(),h.on.call("cancel",e,e.__data__,h.index,h.group),delete a[c])}if(Ht((function(){n.state===Zt&&(n.state=Jt,n.timer.restart(s,n.delay,n.time),s(i))})),n.state=Qt,n.on.call("start",e,e.__data__,n.index,n.group),n.state===Qt){for(n.state=Zt,r=new Array(d=n.tween.length),c=0,u=-1;c<d;++c)(h=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(r[++u]=h);r.length=u+1}}function s(t){var a=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(l),n.state=en,1),i=-1,o=r.length;while(++i<o)r[i].call(e,a);n.state===en&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){for(var r in n.state=tn,n.timer.stop(),delete a[t],a)return;delete e.__transition}a[t]=n,n.timer=zt(i,0,n.time)}function ln(e,t){var n,r,a,i=e.__transition,o=!0;if(i){for(a in t=null==t?null:t+"",i)(n=i[a]).name===t?(r=n.state>Qt&&n.state<en,n.state=tn,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete i[a]):o=!1;o&&delete e.__transition}}function cn(e){return this.each((function(){ln(this,e)}))}function un(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var dn,hn=180/Math.PI,pn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function fn(e,t,n,r,a,i){var o,s,l;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),e*r<t*n&&(e=-e,t=-t,l=-l,o=-o),{translateX:a,translateY:i,rotate:Math.atan2(t,e)*hn,skewX:Math.atan(l)*hn,scaleX:o,scaleY:s}}function mn(e){const t=new("function"===typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?pn:fn(t.a,t.b,t.c,t.d,t.e,t.f)}function gn(e){return null==e?pn:(dn||(dn=document.createElementNS("http://www.w3.org/2000/svg","g")),dn.setAttribute("transform",e),(e=dn.transform.baseVal.consolidate())?(e=e.matrix,fn(e.a,e.b,e.c,e.d,e.e,e.f)):pn)}function vn(e,t,n,r){function a(e){return e.length?e.pop()+" ":""}function i(e,r,a,i,o,s){if(e!==a||r!==i){var l=o.push("translate(",null,t,null,n);s.push({i:l-4,x:un(e,a)},{i:l-2,x:un(r,i)})}else(a||i)&&o.push("translate("+a+t+i+n)}function o(e,t,n,i){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),i.push({i:n.push(a(n)+"rotate(",null,r)-2,x:un(e,t)})):t&&n.push(a(n)+"rotate("+t+r)}function s(e,t,n,i){e!==t?i.push({i:n.push(a(n)+"skewX(",null,r)-2,x:un(e,t)}):t&&n.push(a(n)+"skewX("+t+r)}function l(e,t,n,r,i,o){if(e!==n||t!==r){var s=i.push(a(i)+"scale(",null,",",null,")");o.push({i:s-4,x:un(e,n)},{i:s-2,x:un(t,r)})}else 1===n&&1===r||i.push(a(i)+"scale("+n+","+r+")")}return function(t,n){var r=[],a=[];return t=e(t),n=e(n),i(t.translateX,t.translateY,n.translateX,n.translateY,r,a),o(t.rotate,n.rotate,r,a),s(t.skewX,n.skewX,r,a),l(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,a),t=n=null,function(e){var t,n=-1,i=a.length;while(++n<i)r[(t=a[n]).i]=t.x(e);return r.join("")}}}var yn=vn(mn,"px, ","px)","deg)"),bn=vn(gn,", ",")",")");function wn(e,t){var n,r;return function(){var a=an(this,e),i=a.tween;if(i!==n){r=n=i;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}a.tween=r}}function xn(e,t,n){var r,a;if("function"!==typeof n)throw new Error;return function(){var i=an(this,e),o=i.tween;if(o!==r){a=(r=o).slice();for(var s={name:t,value:n},l=0,c=a.length;l<c;++l)if(a[l].name===t){a[l]=s;break}l===c&&a.push(s)}i.tween=a}}function kn(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,a=on(this.node(),n).tween,i=0,o=a.length;i<o;++i)if((r=a[i]).name===e)return r.value;return null}return this.each((null==t?wn:xn)(n,e,t))}function _n(e,t,n){var r=e._id;return e.each((function(){var e=an(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)})),function(e){return on(e,r).value[t]}}function Cn(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function En(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Rn(){}var Sn=.7,An=1/Sn,Tn="\\s*([+-]?\\d+)\\s*",Mn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ln="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",On=/^#([0-9a-f]{3,8})$/,In=new RegExp(`^rgb\\(${Tn},${Tn},${Tn}\\)$`),Nn=new RegExp(`^rgb\\(${Ln},${Ln},${Ln}\\)$`),Bn=new RegExp(`^rgba\\(${Tn},${Tn},${Tn},${Mn}\\)$`),Dn=new RegExp(`^rgba\\(${Ln},${Ln},${Ln},${Mn}\\)$`),Fn=new RegExp(`^hsl\\(${Mn},${Ln},${Ln}\\)$`),$n=new RegExp(`^hsla\\(${Mn},${Ln},${Ln},${Mn}\\)$`),Pn={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function zn(){return this.rgb().formatHex()}function Wn(){return this.rgb().formatHex8()}function jn(){return rr(this).formatHsl()}function Vn(){return this.rgb().formatRgb()}function Un(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=On.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Kn(t):3===n?new Xn(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Hn(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Hn(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=In.exec(e))?new Xn(t[1],t[2],t[3],1):(t=Nn.exec(e))?new Xn(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Bn.exec(e))?Hn(t[1],t[2],t[3],t[4]):(t=Dn.exec(e))?Hn(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Fn.exec(e))?nr(t[1],t[2]/100,t[3]/100,1):(t=$n.exec(e))?nr(t[1],t[2]/100,t[3]/100,t[4]):Pn.hasOwnProperty(e)?Kn(Pn[e]):"transparent"===e?new Xn(NaN,NaN,NaN,0):null}function Kn(e){return new Xn(e>>16&255,e>>8&255,255&e,1)}function Hn(e,t,n,r){return r<=0&&(e=t=n=NaN),new Xn(e,t,n,r)}function qn(e){return e instanceof Rn||(e=Un(e)),e?(e=e.rgb(),new Xn(e.r,e.g,e.b,e.opacity)):new Xn}function Gn(e,t,n,r){return 1===arguments.length?qn(e):new Xn(e,t,n,null==r?1:r)}function Xn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Yn(){return`#${tr(this.r)}${tr(this.g)}${tr(this.b)}`}function Qn(){return`#${tr(this.r)}${tr(this.g)}${tr(this.b)}${tr(255*(isNaN(this.opacity)?1:this.opacity))}`}function Zn(){const e=Jn(this.opacity);return`${1===e?"rgb(":"rgba("}${er(this.r)}, ${er(this.g)}, ${er(this.b)}${1===e?")":`, ${e})`}`}function Jn(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function er(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function tr(e){return e=er(e),(e<16?"0":"")+e.toString(16)}function nr(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ir(e,t,n,r)}function rr(e){if(e instanceof ir)return new ir(e.h,e.s,e.l,e.opacity);if(e instanceof Rn||(e=Un(e)),!e)return new ir;if(e instanceof ir)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),i=Math.max(t,n,r),o=NaN,s=i-a,l=(i+a)/2;return s?(o=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=l<.5?i+a:2-i-a,o*=60):s=l>0&&l<1?0:o,new ir(o,s,l,e.opacity)}function ar(e,t,n,r){return 1===arguments.length?rr(e):new ir(e,t,n,null==r?1:r)}function ir(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function or(e){return e=(e||0)%360,e<0?e+360:e}function sr(e){return Math.max(0,Math.min(1,e||0))}function lr(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function cr(e,t,n,r,a){var i=e*e,o=i*e;return((1-3*e+3*i-o)*t+(4-6*i+3*o)*n+(1+3*e+3*i-3*o)*r+o*a)/6}function ur(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),a=e[r],i=e[r+1],o=r>0?e[r-1]:2*a-i,s=r<t-1?e[r+2]:2*i-a;return cr((n-r/t)*t,o,a,i,s)}}function dr(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),a=e[(r+t-1)%t],i=e[r%t],o=e[(r+1)%t],s=e[(r+2)%t];return cr((n-r/t)*t,a,i,o,s)}}Cn(Rn,Un,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:zn,formatHex:zn,formatHex8:Wn,formatHsl:jn,formatRgb:Vn,toString:Vn}),Cn(Xn,Gn,En(Rn,{brighter(e){return e=null==e?An:Math.pow(An,e),new Xn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Sn:Math.pow(Sn,e),new Xn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Xn(er(this.r),er(this.g),er(this.b),Jn(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Yn,formatHex:Yn,formatHex8:Qn,formatRgb:Zn,toString:Zn})),Cn(ir,ar,En(Rn,{brighter(e){return e=null==e?An:Math.pow(An,e),new ir(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Sn:Math.pow(Sn,e),new ir(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,a=2*n-r;return new Xn(lr(e>=240?e-240:e+120,a,r),lr(e,a,r),lr(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new ir(or(this.h),sr(this.s),sr(this.l),Jn(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Jn(this.opacity);return`${1===e?"hsl(":"hsla("}${or(this.h)}, ${100*sr(this.s)}%, ${100*sr(this.l)}%${1===e?")":`, ${e})`}`}}));var hr=e=>()=>e;function pr(e,t){return function(n){return e+n*t}}function fr(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function mr(e,t){var n=t-e;return n?pr(e,n>180||n<-180?n-360*Math.round(n/360):n):hr(isNaN(e)?t:e)}function gr(e){return 1===(e=+e)?vr:function(t,n){return n-t?fr(t,n,e):hr(isNaN(t)?n:t)}}function vr(e,t){var n=t-e;return n?pr(e,n):hr(isNaN(e)?t:e)}var yr=function e(t){var n=gr(t);function r(e,t){var r=n((e=Gn(e)).r,(t=Gn(t)).r),a=n(e.g,t.g),i=n(e.b,t.b),o=vr(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=a(t),e.b=i(t),e.opacity=o(t),e+""}}return r.gamma=e,r}(1);function br(e){return function(t){var n,r,a=t.length,i=new Array(a),o=new Array(a),s=new Array(a);for(n=0;n<a;++n)r=Gn(t[n]),i[n]=r.r||0,o[n]=r.g||0,s[n]=r.b||0;return i=e(i),o=e(o),s=e(s),r.opacity=1,function(e){return r.r=i(e),r.g=o(e),r.b=s(e),r+""}}}br(ur),br(dr);var wr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,xr=new RegExp(wr.source,"g");function kr(e){return function(){return e}}function _r(e){return function(t){return e(t)+""}}function Cr(e,t){var n,r,a,i=wr.lastIndex=xr.lastIndex=0,o=-1,s=[],l=[];e+="",t+="";while((n=wr.exec(e))&&(r=xr.exec(t)))(a=r.index)>i&&(a=t.slice(i,a),s[o]?s[o]+=a:s[++o]=a),(n=n[0])===(r=r[0])?s[o]?s[o]+=r:s[++o]=r:(s[++o]=null,l.push({i:o,x:un(n,r)})),i=xr.lastIndex;return i<t.length&&(a=t.slice(i),s[o]?s[o]+=a:s[++o]=a),s.length<2?l[0]?_r(l[0].x):kr(t):(t=l.length,function(e){for(var n,r=0;r<t;++r)s[(n=l[r]).i]=n.x(e);return s.join("")})}function Er(e,t){var n;return("number"===typeof t?un:t instanceof Un?yr:(n=Un(t))?(t=n,yr):Cr)(e,t)}function Rr(e){return function(){this.removeAttribute(e)}}function Sr(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Ar(e,t,n){var r,a,i=n+"";return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function Tr(e,t,n){var r,a,i=n+"";return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function Mr(e,t,n){var r,a,i;return function(){var o,s,l=n(this);if(null!=l)return o=this.getAttribute(e),s=l+"",o===s?null:o===r&&s===a?i:(a=s,i=t(r=o,l));this.removeAttribute(e)}}function Lr(e,t,n){var r,a,i;return function(){var o,s,l=n(this);if(null!=l)return o=this.getAttributeNS(e.space,e.local),s=l+"",o===s?null:o===r&&s===a?i:(a=s,i=t(r=o,l));this.removeAttributeNS(e.space,e.local)}}function Or(e,t){var n=se(e),r="transform"===n?bn:Er;return this.attrTween(e,"function"===typeof t?(n.local?Lr:Mr)(n,r,_n(this,"attr."+e,t)):null==t?(n.local?Sr:Rr)(n):(n.local?Tr:Ar)(n,r,t))}function Ir(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Nr(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function Br(e,t){var n,r;function a(){var a=t.apply(this,arguments);return a!==r&&(n=(r=a)&&Nr(e,a)),n}return a._value=t,a}function Dr(e,t){var n,r;function a(){var a=t.apply(this,arguments);return a!==r&&(n=(r=a)&&Ir(e,a)),n}return a._value=t,a}function Fr(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!==typeof t)throw new Error;var r=se(e);return this.tween(n,(r.local?Br:Dr)(r,t))}function $r(e,t){return function(){rn(this,e).delay=+t.apply(this,arguments)}}function Pr(e,t){return t=+t,function(){rn(this,e).delay=t}}function zr(e){var t=this._id;return arguments.length?this.each(("function"===typeof e?$r:Pr)(t,e)):on(this.node(),t).delay}function Wr(e,t){return function(){an(this,e).duration=+t.apply(this,arguments)}}function jr(e,t){return t=+t,function(){an(this,e).duration=t}}function Vr(e){var t=this._id;return arguments.length?this.each(("function"===typeof e?Wr:jr)(t,e)):on(this.node(),t).duration}function Ur(e,t){if("function"!==typeof t)throw new Error;return function(){an(this,e).ease=t}}function Kr(e){var t=this._id;return arguments.length?this.each(Ur(t,e)):on(this.node(),t).ease}function Hr(e,t){return function(){var n=t.apply(this,arguments);if("function"!==typeof n)throw new Error;an(this,e).ease=n}}function qr(e){if("function"!==typeof e)throw new Error;return this.each(Hr(this._id,e))}function Gr(e){"function"!==typeof e&&(e=S(e));for(var t=this._groups,n=t.length,r=new Array(n),a=0;a<n;++a)for(var i,o=t[a],s=o.length,l=r[a]=[],c=0;c<s;++c)(i=o[c])&&e.call(i,i.__data__,c,o)&&l.push(i);return new _a(r,this._parents,this._name,this._id)}function Xr(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,a=n.length,i=Math.min(r,a),o=new Array(r),s=0;s<i;++s)for(var l,c=t[s],u=n[s],d=c.length,h=o[s]=new Array(d),p=0;p<d;++p)(l=c[p]||u[p])&&(h[p]=l);for(;s<r;++s)o[s]=t[s];return new _a(o,this._parents,this._name,this._id)}n(3215);function Yr(e){return(e+"").trim().split(/^|\s+/).every((function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}function Qr(e,t,n){var r,a,i=Yr(t)?rn:an;return function(){var o=i(this,e),s=o.on;s!==r&&(a=(r=s).copy()).on(t,n),o.on=a}}function Zr(e,t){var n=this._id;return arguments.length<2?on(this.node(),n).on.on(e):this.each(Qr(n,e,t))}function Jr(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function ea(){return this.on("end.remove",Jr(this._id))}function ta(e){var t=this._name,n=this._id;"function"!==typeof e&&(e=w(e));for(var r=this._groups,a=r.length,i=new Array(a),o=0;o<a;++o)for(var s,l,c=r[o],u=c.length,d=i[o]=new Array(u),h=0;h<u;++h)(s=c[h])&&(l=e.call(s,s.__data__,h,c))&&("__data__"in s&&(l.__data__=s.__data__),d[h]=l,nn(d[h],t,n,h,d,on(s,n)));return new _a(i,this._parents,t,n)}function na(e){var t=this._name,n=this._id;"function"!==typeof e&&(e=C(e));for(var r=this._groups,a=r.length,i=[],o=[],s=0;s<a;++s)for(var l,c=r[s],u=c.length,d=0;d<u;++d)if(l=c[d]){for(var h,p=e.call(l,l.__data__,d,c),f=on(l,n),m=0,g=p.length;m<g;++m)(h=p[m])&&nn(h,t,n,m,p,f);i.push(p),o.push(l)}return new _a(i,o,t,n)}var ra=yt.prototype.constructor;function aa(){return new ra(this._groups,this._parents)}function ia(e,t){var n,r,a;return function(){var i=we(this,e),o=(this.style.removeProperty(e),we(this,e));return i===o?null:i===n&&o===r?a:a=t(n=i,r=o)}}function oa(e){return function(){this.style.removeProperty(e)}}function sa(e,t,n){var r,a,i=n+"";return function(){var o=we(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function la(e,t,n){var r,a,i;return function(){var o=we(this,e),s=n(this),l=s+"";return null==s&&(this.style.removeProperty(e),l=s=we(this,e)),o===l?null:o===r&&l===a?i:(a=l,i=t(r=o,s))}}function ca(e,t){var n,r,a,i,o="style."+t,s="end."+o;return function(){var l=an(this,e),c=l.on,u=null==l.value[o]?i||(i=oa(t)):void 0;c===n&&a===u||(r=(n=c).copy()).on(s,a=u),l.on=r}}function ua(e,t,n){var r="transform"===(e+="")?yn:Er;return null==t?this.styleTween(e,ia(e,r)).on("end.style."+e,oa(e)):"function"===typeof t?this.styleTween(e,la(e,r,_n(this,"style."+e,t))).each(ca(this._id,e)):this.styleTween(e,sa(e,r,t),n).on("end.style."+e,null)}function da(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function ha(e,t,n){var r,a;function i(){var i=t.apply(this,arguments);return i!==a&&(r=(a=i)&&da(e,i,n)),r}return i._value=t,i}function pa(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!==typeof t)throw new Error;return this.tween(r,ha(e,t,null==n?"":n))}function fa(e){return function(){this.textContent=e}}function ma(e){return function(){var t=e(this);this.textContent=null==t?"":t}}function ga(e){return this.tween("text","function"===typeof e?ma(_n(this,"text",e)):fa(null==e?"":e+""))}function va(e){return function(t){this.textContent=e.call(this,t)}}function ya(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&va(r)),t}return r._value=e,r}function ba(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!==typeof e)throw new Error;return this.tween(t,ya(e))}function wa(){for(var e=this._name,t=this._id,n=Ea(),r=this._groups,a=r.length,i=0;i<a;++i)for(var o,s=r[i],l=s.length,c=0;c<l;++c)if(o=s[c]){var u=on(o,t);nn(o,e,n,c,s,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new _a(r,this._parents,e,n)}function xa(){var e,t,n=this,r=n._id,a=n.size();return new Promise((function(i,o){var s={value:o},l={value:function(){0===--a&&i()}};n.each((function(){var n=an(this,r),a=n.on;a!==e&&(t=(e=a).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(l)),n.on=t})),0===a&&i()}))}var ka=0;function _a(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Ca(e){return yt().transition(e)}function Ea(){return++ka}var Ra=yt.prototype;function Sa(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}_a.prototype=Ca.prototype={constructor:_a,select:ta,selectAll:na,selectChild:Ra.selectChild,selectChildren:Ra.selectChildren,filter:Gr,merge:Xr,selection:aa,transition:wa,call:Ra.call,nodes:Ra.nodes,node:Ra.node,size:Ra.size,empty:Ra.empty,each:Ra.each,on:Zr,attr:Or,attrTween:Fr,style:ua,styleTween:pa,text:ga,textTween:ba,remove:ea,tween:kn,delay:zr,duration:Vr,ease:Kr,easeVarying:qr,end:xa,[Symbol.iterator]:Ra[Symbol.iterator]};var Aa={time:null,delay:0,duration:250,ease:Sa};function Ta(e,t){var n;while(!(n=e.__transition)||!(n=n[t]))if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function Ma(e){var t,n;e instanceof _a?(t=e._id,e=e._name):(t=Ea(),(n=Aa).time=Ft(),e=null==e?null:e+"");for(var r=this._groups,a=r.length,i=0;i<a;++i)for(var o,s=r[i],l=s.length,c=0;c<l;++c)(o=s[c])&&nn(o,e,t,c,s,n||Ta(o,t));return new _a(r,this._parents,e,t)}yt.prototype.interrupt=cn,yt.prototype.transition=Ma;const{abs:La,max:Oa,min:Ia}=Math;function Na(e){return[+e[0],+e[1]]}function Ba(e){return[Na(e[0]),Na(e[1])]}["w","e"].map(Da),["n","s"].map(Da),["n","w","e","s","nw","ne","sw","se"].map(Da);function Da(e){return{type:e}}function Fa(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.text()}function $a(e,t){return fetch(e,t).then(Fa)}function Pa(e){return(t,n)=>$a(t,n).then((t=>(new DOMParser).parseFromString(t,e)))}Pa("application/xml"),Pa("text/html");var za=Pa("image/svg+xml");const Wa=Math.PI/180,ja=180/Math.PI,Va=18,Ua=.96422,Ka=1,Ha=.82521,qa=4/29,Ga=6/29,Xa=3*Ga*Ga,Ya=Ga*Ga*Ga;function Qa(e){if(e instanceof Ja)return new Ja(e.l,e.a,e.b,e.opacity);if(e instanceof oi)return si(e);e instanceof Xn||(e=qn(e));var t,n,r=ri(e.r),a=ri(e.g),i=ri(e.b),o=ei((.2225045*r+.7168786*a+.0606169*i)/Ka);return r===a&&a===i?t=n=o:(t=ei((.4360747*r+.3850649*a+.1430804*i)/Ua),n=ei((.0139322*r+.0971045*a+.7141733*i)/Ha)),new Ja(116*o-16,500*(t-o),200*(o-n),e.opacity)}function Za(e,t,n,r){return 1===arguments.length?Qa(e):new Ja(e,t,n,null==r?1:r)}function Ja(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function ei(e){return e>Ya?Math.pow(e,1/3):e/Xa+qa}function ti(e){return e>Ga?e*e*e:Xa*(e-qa)}function ni(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function ri(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function ai(e){if(e instanceof oi)return new oi(e.h,e.c,e.l,e.opacity);if(e instanceof Ja||(e=Qa(e)),0===e.a&&0===e.b)return new oi(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*ja;return new oi(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function ii(e,t,n,r){return 1===arguments.length?ai(e):new oi(e,t,n,null==r?1:r)}function oi(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function si(e){if(isNaN(e.h))return new Ja(e.l,0,0,e.opacity);var t=e.h*Wa;return new Ja(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}function li(e){return function(t,n){var r=e((t=ii(t)).h,(n=ii(n)).h),a=vr(t.c,n.c),i=vr(t.l,n.l),o=vr(t.opacity,n.opacity);return function(e){return t.h=r(e),t.c=a(e),t.l=i(e),t.opacity=o(e),t+""}}}Cn(Ja,Za,En(Rn,{brighter(e){return new Ja(this.l+Va*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Ja(this.l-Va*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return t=Ua*ti(t),e=Ka*ti(e),n=Ha*ti(n),new Xn(ni(3.1338561*t-1.6168667*e-.4906146*n),ni(-.9787684*t+1.9161415*e+.033454*n),ni(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Cn(oi,ii,En(Rn,{brighter(e){return new oi(this.h,this.c,this.l+Va*(null==e?1:e),this.opacity)},darker(e){return new oi(this.h,this.c,this.l-Va*(null==e?1:e),this.opacity)},rgb(){return si(this).rgb()}}));var ci=li(mr);li(vr);const ui=Math.sqrt(50),di=Math.sqrt(10),hi=Math.sqrt(2);function pi(e,t,n){const r=(t-e)/Math.max(0,n),a=Math.floor(Math.log10(r)),i=r/Math.pow(10,a),o=i>=ui?10:i>=di?5:i>=hi?2:1;let s,l,c;return a<0?(c=Math.pow(10,-a)/o,s=Math.round(e*c),l=Math.round(t*c),s/c<e&&++s,l/c>t&&--l,c=-c):(c=Math.pow(10,a)*o,s=Math.round(e/c),l=Math.round(t/c),s*c<e&&++s,l*c>t&&--l),l<s&&.5<=n&&n<2?pi(e,t,2*n):[s,l,c]}function fi(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[a,i,o]=r?pi(t,e,n):pi(e,t,n);if(!(i>=a))return[];const s=i-a+1,l=new Array(s);if(r)if(o<0)for(let c=0;c<s;++c)l[c]=(i-c)/-o;else for(let c=0;c<s;++c)l[c]=(i-c)*o;else if(o<0)for(let c=0;c<s;++c)l[c]=(a+c)/-o;else for(let c=0;c<s;++c)l[c]=(a+c)*o;return l}function mi(e,t,n){return t=+t,e=+e,n=+n,pi(e,t,n)[2]}function gi(e,t,n){t=+t,e=+e,n=+n;const r=t<e,a=r?mi(t,e,n):mi(e,t,n);return(r?-1:1)*(a<0?1/-a:a)}function vi(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function yi(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function bi(e){let t,n,r;function a(e,r,a=0,i=e.length){if(a<i){if(0!==t(r,r))return i;do{const t=a+i>>>1;n(e[t],r)<0?a=t+1:i=t}while(a<i)}return a}function i(e,r,a=0,i=e.length){if(a<i){if(0!==t(r,r))return i;do{const t=a+i>>>1;n(e[t],r)<=0?a=t+1:i=t}while(a<i)}return a}function o(e,t,n=0,i=e.length){const o=a(e,t,n,i-1);return o>n&&r(e[o-1],t)>-r(e[o],t)?o-1:o}return 2!==e.length?(t=vi,n=(t,n)=>vi(e(t),n),r=(t,n)=>e(t)-n):(t=e===vi||e===yi?e:wi,n=e,r=e),{left:a,center:o,right:i}}function wi(){return 0}function xi(e){return null===e?NaN:+e}const ki=bi(vi),_i=ki.right;ki.left,bi(xi).center;var Ci=_i;function Ei(e,t){var n,r=t?t.length:0,a=e?Math.min(r,e.length):0,i=new Array(a),o=new Array(r);for(n=0;n<a;++n)i[n]=Mi(e[n],t[n]);for(;n<r;++n)o[n]=t[n];return function(e){for(n=0;n<a;++n)o[n]=i[n](e);return o}}function Ri(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Si(e,t){var n,r={},a={};for(n in null!==e&&"object"===typeof e||(e={}),null!==t&&"object"===typeof t||(t={}),t)n in e?r[n]=Mi(e[n],t[n]):a[n]=t[n];return function(e){for(n in r)a[n]=r[n](e);return a}}n(6573),n(8100),n(7936);function Ai(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,a=t.slice();return function(i){for(n=0;n<r;++n)a[n]=e[n]*(1-i)+t[n]*i;return a}}function Ti(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Mi(e,t){var n,r=typeof t;return null==t||"boolean"===r?hr(t):("number"===r?un:"string"===r?(n=Un(t))?(t=n,yr):Cr:t instanceof Un?yr:t instanceof Date?Ri:Ti(t)?Ai:Array.isArray(t)?Ei:"function"!==typeof t.valueOf&&"function"!==typeof t.toString||isNaN(t)?Si:un)(e,t)}function Li(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Oi(e){return function(){return e}}function Ii(e){return+e}var Ni=[0,1];function Bi(e){return e}function Di(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Oi(isNaN(t)?NaN:.5)}function Fi(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}function $i(e,t,n){var r=e[0],a=e[1],i=t[0],o=t[1];return a<r?(r=Di(a,r),i=n(o,i)):(r=Di(r,a),i=n(i,o)),function(e){return i(r(e))}}function Pi(e,t,n){var r=Math.min(e.length,t.length)-1,a=new Array(r),i=new Array(r),o=-1;e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());while(++o<r)a[o]=Di(e[o],e[o+1]),i[o]=n(t[o],t[o+1]);return function(t){var n=Ci(e,t,1,r)-1;return i[n](a[n](t))}}function zi(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Wi(){var e,t,n,r,a,i,o=Ni,s=Ni,l=Mi,c=Bi;function u(){var e=Math.min(o.length,s.length);return c!==Bi&&(c=Fi(o[0],o[e-1])),r=e>2?Pi:$i,a=i=null,d}function d(t){return null==t||isNaN(t=+t)?n:(a||(a=r(o.map(e),s,l)))(e(c(t)))}return d.invert=function(n){return c(t((i||(i=r(s,o.map(e),un)))(n)))},d.domain=function(e){return arguments.length?(o=Array.from(e,Ii),u()):o.slice()},d.range=function(e){return arguments.length?(s=Array.from(e),u()):s.slice()},d.rangeRound=function(e){return s=Array.from(e),l=Li,u()},d.clamp=function(e){return arguments.length?(c=!!e||Bi,u()):c!==Bi},d.interpolate=function(e){return arguments.length?(l=e,u()):l},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,u()}}function ji(){return Wi()(Bi,Bi)}function Vi(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}var Ui,Ki=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Hi(e){if(!(t=Ki.exec(e)))throw new Error("invalid format: "+e);var t;return new qi({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function qi(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function Gi(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Xi(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Yi(e){return e=Xi(Math.abs(e)),e?e[1]:NaN}function Qi(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Yi(t)/3)))-Yi(Math.abs(e)))}function Zi(e,t){return function(n,r){var a=n.length,i=[],o=0,s=e[0],l=0;while(a>0&&s>0){if(l+s+1>r&&(s=Math.max(1,r-l)),i.push(n.substring(a-=s,a+s)),(l+=s+1)>r)break;s=e[o=(o+1)%e.length]}return i.reverse().join(t)}}function Ji(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}function eo(e){e:for(var t,n=e.length,r=1,a=-1;r<n;++r)switch(e[r]){case".":a=t=r;break;case"0":0===a&&(a=r),t=r;break;default:if(!+e[r])break e;a>0&&(a=0);break}return a>0?e.slice(0,a)+e.slice(t+1):e}function to(e,t){var n=Xi(e,t);if(!n)return e+"";var r=n[0],a=n[1],i=a-(Ui=3*Math.max(-8,Math.min(8,Math.floor(a/3))))+1,o=r.length;return i===o?r:i>o?r+new Array(i-o+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+Xi(e,Math.max(0,t+i-1))[0]}function no(e,t){var n=Xi(e,t);if(!n)return e+"";var r=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+r:r.length>a+1?r.slice(0,a+1)+"."+r.slice(a+1):r+new Array(a-r.length+2).join("0")}Hi.prototype=qi.prototype,qi.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var ro={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Gi,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>no(100*e,t),r:no,s:to,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function ao(e){return e}var io,oo,so,lo=Array.prototype.map,co=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function uo(e){var t=void 0===e.grouping||void 0===e.thousands?ao:Zi(lo.call(e.grouping,Number),e.thousands+""),n=void 0===e.currency?"":e.currency[0]+"",r=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",i=void 0===e.numerals?ao:Ji(lo.call(e.numerals,String)),o=void 0===e.percent?"%":e.percent+"",s=void 0===e.minus?"":e.minus+"",l=void 0===e.nan?"NaN":e.nan+"";function c(e){e=Hi(e);var c=e.fill,u=e.align,d=e.sign,h=e.symbol,p=e.zero,f=e.width,m=e.comma,g=e.precision,v=e.trim,y=e.type;"n"===y?(m=!0,y="g"):ro[y]||(void 0===g&&(g=12),v=!0,y="g"),(p||"0"===c&&"="===u)&&(p=!0,c="0",u="=");var b="$"===h?n:"#"===h&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",w="$"===h?r:/[%p]/.test(y)?o:"",x=ro[y],k=/[defgprs%]/.test(y);function _(e){var n,r,o,h=b,_=w;if("c"===y)_=x(e)+_,e="";else{e=+e;var C=e<0||1/e<0;if(e=isNaN(e)?l:x(Math.abs(e),g),v&&(e=eo(e)),C&&0===+e&&"+"!==d&&(C=!1),h=(C?"("===d?d:s:"-"===d||"("===d?"":d)+h,_=("s"===y?co[8+Ui/3]:"")+_+(C&&"("===d?")":""),k){n=-1,r=e.length;while(++n<r)if(o=e.charCodeAt(n),48>o||o>57){_=(46===o?a+e.slice(n+1):e.slice(n))+_,e=e.slice(0,n);break}}}m&&!p&&(e=t(e,1/0));var E=h.length+e.length+_.length,R=E<f?new Array(f-E+1).join(c):"";switch(m&&p&&(e=t(R+e,R.length?f-_.length:1/0),R=""),u){case"<":e=h+e+_+R;break;case"=":e=h+R+e+_;break;case"^":e=R.slice(0,E=R.length>>1)+h+e+_+R.slice(E);break;default:e=R+h+e+_;break}return i(e)}return g=void 0===g?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),_.toString=function(){return e+""},_}function u(e,t){var n=c((e=Hi(e),e.type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(Yi(t)/3))),a=Math.pow(10,-r),i=co[8+r/3];return function(e){return n(a*e)+i}}return{format:c,formatPrefix:u}}function ho(e){return io=uo(e),oo=io.format,so=io.formatPrefix,io}function po(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Yi(t)-Yi(e))+1}function fo(e){return Math.max(0,-Yi(Math.abs(e)))}function mo(e,t,n,r){var a,i=gi(e,t,n);switch(r=Hi(null==r?",f":r),r.type){case"s":var o=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(a=Qi(i,o))||(r.precision=a),so(r,o);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(a=po(i,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=a-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(a=fo(i))||(r.precision=a-2*("%"===r.type));break}return oo(r)}function go(e){var t=e.domain;return e.ticks=function(e){var n=t();return fi(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return mo(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,a,i=t(),o=0,s=i.length-1,l=i[o],c=i[s],u=10;c<l&&(a=l,l=c,c=a,a=o,o=s,s=a);while(u-- >0){if(a=mi(l,c,n),a===r)return i[o]=l,i[s]=c,t(i);if(a>0)l=Math.floor(l/a)*a,c=Math.ceil(c/a)*a;else{if(!(a<0))break;l=Math.ceil(l*a)/a,c=Math.floor(c*a)/a}r=a}return e},e}function vo(){var e=ji();return e.copy=function(){return zi(e,vo())},Vi.apply(e,arguments),go(e)}ho({thousands:",",grouping:[3],currency:["$",""]});n(7642),n(8004),n(3853),n(5876),n(2475),n(5024),n(1698);class yo extends Map{constructor(e,t=ko){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[n,r]of e)this.set(n,r)}get(e){return super.get(bo(this,e))}has(e){return super.has(bo(this,e))}set(e,t){return super.set(wo(this,e),t)}delete(e){return super.delete(xo(this,e))}}Set;function bo({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function wo({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function xo({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function ko(e){return null!==e&&"object"===typeof e?e.valueOf():e}const _o=Symbol("implicit");function Co(){var e=new yo,t=[],n=[],r=_o;function a(a){let i=e.get(a);if(void 0===i){if(r!==_o)return r;e.set(a,i=t.push(a)-1)}return n[i%n.length]}return a.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new yo;for(const r of n)e.has(r)||e.set(r,t.push(r)-1);return a},a.range=function(e){return arguments.length?(n=Array.from(e),a):n.slice()},a.unknown=function(e){return arguments.length?(r=e,a):r},a.copy=function(){return Co(t,n).unknown(r)},Vi.apply(a,arguments),a}const Eo=1e3,Ro=60*Eo,So=60*Ro,Ao=24*So,To=7*Ao,Mo=30*Ao,Lo=365*Ao,Oo=new Date,Io=new Date;function No(e,t,n,r){function a(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return a.floor=t=>(e(t=new Date(+t)),t),a.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),a.round=e=>{const t=a(e),n=a.ceil(e);return e-t<n-e?t:n},a.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),a.range=(n,r,i)=>{const o=[];if(n=a.ceil(n),i=null==i?1:Math.floor(i),!(n<r)||!(i>0))return o;let s;do{o.push(s=new Date(+n)),t(n,i),e(n)}while(s<n&&n<r);return o},a.filter=n=>No((t=>{if(t>=t)while(e(t),!n(t))t.setTime(t-1)}),((e,r)=>{if(e>=e)if(r<0)while(++r<=0)while(t(e,-1),!n(e));else while(--r>=0)while(t(e,1),!n(e));})),n&&(a.count=(t,r)=>(Oo.setTime(+t),Io.setTime(+r),e(Oo),e(Io),Math.floor(n(Oo,Io))),a.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?a.filter(r?t=>r(t)%e===0:t=>a.count(0,t)%e===0):a:null)),a}const Bo=No((()=>{}),((e,t)=>{e.setTime(+e+t)}),((e,t)=>t-e));Bo.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?No((t=>{t.setTime(Math.floor(t/e)*e)}),((t,n)=>{t.setTime(+t+n*e)}),((t,n)=>(n-t)/e)):Bo:null);Bo.range;const Do=No((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*Eo)}),((e,t)=>(t-e)/Eo),(e=>e.getUTCSeconds())),Fo=(Do.range,No((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Eo)}),((e,t)=>{e.setTime(+e+t*Ro)}),((e,t)=>(t-e)/Ro),(e=>e.getMinutes()))),$o=(Fo.range,No((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*Ro)}),((e,t)=>(t-e)/Ro),(e=>e.getUTCMinutes()))),Po=($o.range,No((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Eo-e.getMinutes()*Ro)}),((e,t)=>{e.setTime(+e+t*So)}),((e,t)=>(t-e)/So),(e=>e.getHours()))),zo=(Po.range,No((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*So)}),((e,t)=>(t-e)/So),(e=>e.getUTCHours()))),Wo=(zo.range,No((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ro)/Ao),(e=>e.getDate()-1))),jo=(Wo.range,No((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/Ao),(e=>e.getUTCDate()-1))),Vo=(jo.range,No((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/Ao),(e=>Math.floor(e/Ao))));Vo.range;function Uo(e){return No((t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),((e,t)=>{e.setDate(e.getDate()+7*t)}),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ro)/To))}const Ko=Uo(0),Ho=Uo(1),qo=Uo(2),Go=Uo(3),Xo=Uo(4),Yo=Uo(5),Qo=Uo(6);Ko.range,Ho.range,qo.range,Go.range,Xo.range,Yo.range,Qo.range;function Zo(e){return No((t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)}),((e,t)=>(t-e)/To))}const Jo=Zo(0),es=Zo(1),ts=Zo(2),ns=Zo(3),rs=Zo(4),as=Zo(5),is=Zo(6),os=(Jo.range,es.range,ts.range,ns.range,rs.range,as.range,is.range,No((e=>{e.setDate(1),e.setHours(0,0,0,0)}),((e,t)=>{e.setMonth(e.getMonth()+t)}),((e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())),(e=>e.getMonth()))),ss=(os.range,No((e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)}),((e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())),(e=>e.getUTCMonth()))),ls=(ss.range,No((e=>{e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,t)=>{e.setFullYear(e.getFullYear()+t)}),((e,t)=>t.getFullYear()-e.getFullYear()),(e=>e.getFullYear())));ls.every=e=>isFinite(e=Math.floor(e))&&e>0?No((t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,n)=>{t.setFullYear(t.getFullYear()+n*e)})):null;ls.range;const cs=No((e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)}),((e,t)=>t.getUTCFullYear()-e.getUTCFullYear()),(e=>e.getUTCFullYear()));cs.every=e=>isFinite(e=Math.floor(e))&&e>0?No((t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null;cs.range;function us(e,t,n,r,a,i){const o=[[Do,1,Eo],[Do,5,5*Eo],[Do,15,15*Eo],[Do,30,30*Eo],[i,1,Ro],[i,5,5*Ro],[i,15,15*Ro],[i,30,30*Ro],[a,1,So],[a,3,3*So],[a,6,6*So],[a,12,12*So],[r,1,Ao],[r,2,2*Ao],[n,1,To],[t,1,Mo],[t,3,3*Mo],[e,1,Lo]];function s(e,t,n){const r=t<e;r&&([e,t]=[t,e]);const a=n&&"function"===typeof n.range?n:l(e,t,n),i=a?a.range(e,+t+1):[];return r?i.reverse():i}function l(t,n,r){const a=Math.abs(n-t)/r,i=bi((([,,e])=>e)).right(o,a);if(i===o.length)return e.every(gi(t/Lo,n/Lo,r));if(0===i)return Bo.every(Math.max(gi(t,n,r),1));const[s,l]=o[a/o[i-1][2]<o[i][2]/a?i-1:i];return s.every(l)}return[s,l]}const[ds,hs]=us(cs,ss,Jo,Vo,zo,$o),[ps,fs]=us(ls,os,Ko,Wo,Po,Fo);function ms(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function gs(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function vs(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function ys(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,i=e.days,o=e.shortDays,s=e.months,l=e.shortMonths,c=Ss(a),u=As(a),d=Ss(i),h=As(i),p=Ss(o),f=As(o),m=Ss(s),g=As(s),v=Ss(l),y=As(l),b={a:I,A:N,b:B,B:D,c:null,d:Xs,e:Xs,f:el,g:dl,G:pl,H:Ys,I:Qs,j:Zs,L:Js,m:tl,M:nl,p:F,q:$,Q:Dl,s:Fl,S:rl,u:al,U:il,V:sl,w:ll,W:cl,x:null,X:null,y:ul,Y:hl,Z:fl,"%":Bl},w={a:P,A:z,b:W,B:j,c:null,d:ml,e:ml,f:wl,g:Ll,G:Il,H:gl,I:vl,j:yl,L:bl,m:xl,M:kl,p:V,q:U,Q:Dl,s:Fl,S:_l,u:Cl,U:El,V:Sl,w:Al,W:Tl,x:null,X:null,y:Ml,Y:Ol,Z:Nl,"%":Bl},x={a:R,A:S,b:A,B:T,c:M,d:Ps,e:Ps,f:Ks,g:Bs,G:Ns,H:Ws,I:Ws,j:zs,L:Us,m:$s,M:js,p:E,q:Fs,Q:qs,s:Gs,S:Vs,u:Ms,U:Ls,V:Os,w:Ts,W:Is,x:L,X:O,y:Bs,Y:Ns,Z:Ds,"%":Hs};function k(e,t){return function(n){var r,a,i,o=[],s=-1,l=0,c=e.length;n instanceof Date||(n=new Date(+n));while(++s<c)37===e.charCodeAt(s)&&(o.push(e.slice(l,s)),null!=(a=xs[r=e.charAt(++s)])?r=e.charAt(++s):a="e"===r?" ":"0",(i=t[r])&&(r=i(n,a)),o.push(r),l=s+1);return o.push(e.slice(l,s)),o.join("")}}function _(e,t){return function(n){var r,a,i=vs(1900,void 0,1),o=C(i,e,n+="",0);if(o!=n.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(t&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(r=gs(vs(i.y,0,1)),a=r.getUTCDay(),r=a>4||0===a?es.ceil(r):es(r),r=jo.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(r=ms(vs(i.y,0,1)),a=r.getDay(),r=a>4||0===a?Ho.ceil(r):Ho(r),r=Wo.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),a="Z"in i?gs(vs(i.y,0,1)).getUTCDay():ms(vs(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(a+5)%7:i.w+7*i.U-(a+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,gs(i)):ms(i)}}function C(e,t,n,r){var a,i,o=0,s=t.length,l=n.length;while(o<s){if(r>=l)return-1;if(a=t.charCodeAt(o++),37===a){if(a=t.charAt(o++),i=x[a in xs?t.charAt(o++):a],!i||(r=i(e,n,r))<0)return-1}else if(a!=n.charCodeAt(r++))return-1}return r}function E(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1}function R(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1}function S(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1}function A(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=y.get(r[0].toLowerCase()),n+r[0].length):-1}function T(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1}function M(e,n,r){return C(e,t,n,r)}function L(e,t,r){return C(e,n,t,r)}function O(e,t,n){return C(e,r,t,n)}function I(e){return o[e.getDay()]}function N(e){return i[e.getDay()]}function B(e){return l[e.getMonth()]}function D(e){return s[e.getMonth()]}function F(e){return a[+(e.getHours()>=12)]}function $(e){return 1+~~(e.getMonth()/3)}function P(e){return o[e.getUTCDay()]}function z(e){return i[e.getUTCDay()]}function W(e){return l[e.getUTCMonth()]}function j(e){return s[e.getUTCMonth()]}function V(e){return a[+(e.getUTCHours()>=12)]}function U(e){return 1+~~(e.getUTCMonth()/3)}return b.x=k(n,b),b.X=k(r,b),b.c=k(t,b),w.x=k(n,w),w.X=k(r,w),w.c=k(t,w),{format:function(e){var t=k(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=_(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=k(e+="",w);return t.toString=function(){return e},t},utcParse:function(e){var t=_(e+="",!0);return t.toString=function(){return e},t}}}var bs,ws,xs={"-":"",_:" ",0:"0"},ks=/^\s*\d+/,_s=/^%/,Cs=/[\\^$*+?|[\]().{}]/g;function Es(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",i=a.length;return r+(i<n?new Array(n-i+1).join(t)+a:a)}function Rs(e){return e.replace(Cs,"\\$&")}function Ss(e){return new RegExp("^(?:"+e.map(Rs).join("|")+")","i")}function As(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function Ts(e,t,n){var r=ks.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Ms(e,t,n){var r=ks.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Ls(e,t,n){var r=ks.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Os(e,t,n){var r=ks.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Is(e,t,n){var r=ks.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Ns(e,t,n){var r=ks.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Bs(e,t,n){var r=ks.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Ds(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Fs(e,t,n){var r=ks.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function $s(e,t,n){var r=ks.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Ps(e,t,n){var r=ks.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function zs(e,t,n){var r=ks.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Ws(e,t,n){var r=ks.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function js(e,t,n){var r=ks.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Vs(e,t,n){var r=ks.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Us(e,t,n){var r=ks.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Ks(e,t,n){var r=ks.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Hs(e,t,n){var r=_s.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function qs(e,t,n){var r=ks.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Gs(e,t,n){var r=ks.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Xs(e,t){return Es(e.getDate(),t,2)}function Ys(e,t){return Es(e.getHours(),t,2)}function Qs(e,t){return Es(e.getHours()%12||12,t,2)}function Zs(e,t){return Es(1+Wo.count(ls(e),e),t,3)}function Js(e,t){return Es(e.getMilliseconds(),t,3)}function el(e,t){return Js(e,t)+"000"}function tl(e,t){return Es(e.getMonth()+1,t,2)}function nl(e,t){return Es(e.getMinutes(),t,2)}function rl(e,t){return Es(e.getSeconds(),t,2)}function al(e){var t=e.getDay();return 0===t?7:t}function il(e,t){return Es(Ko.count(ls(e)-1,e),t,2)}function ol(e){var t=e.getDay();return t>=4||0===t?Xo(e):Xo.ceil(e)}function sl(e,t){return e=ol(e),Es(Xo.count(ls(e),e)+(4===ls(e).getDay()),t,2)}function ll(e){return e.getDay()}function cl(e,t){return Es(Ho.count(ls(e)-1,e),t,2)}function ul(e,t){return Es(e.getFullYear()%100,t,2)}function dl(e,t){return e=ol(e),Es(e.getFullYear()%100,t,2)}function hl(e,t){return Es(e.getFullYear()%1e4,t,4)}function pl(e,t){var n=e.getDay();return e=n>=4||0===n?Xo(e):Xo.ceil(e),Es(e.getFullYear()%1e4,t,4)}function fl(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Es(t/60|0,"0",2)+Es(t%60,"0",2)}function ml(e,t){return Es(e.getUTCDate(),t,2)}function gl(e,t){return Es(e.getUTCHours(),t,2)}function vl(e,t){return Es(e.getUTCHours()%12||12,t,2)}function yl(e,t){return Es(1+jo.count(cs(e),e),t,3)}function bl(e,t){return Es(e.getUTCMilliseconds(),t,3)}function wl(e,t){return bl(e,t)+"000"}function xl(e,t){return Es(e.getUTCMonth()+1,t,2)}function kl(e,t){return Es(e.getUTCMinutes(),t,2)}function _l(e,t){return Es(e.getUTCSeconds(),t,2)}function Cl(e){var t=e.getUTCDay();return 0===t?7:t}function El(e,t){return Es(Jo.count(cs(e)-1,e),t,2)}function Rl(e){var t=e.getUTCDay();return t>=4||0===t?rs(e):rs.ceil(e)}function Sl(e,t){return e=Rl(e),Es(rs.count(cs(e),e)+(4===cs(e).getUTCDay()),t,2)}function Al(e){return e.getUTCDay()}function Tl(e,t){return Es(es.count(cs(e)-1,e),t,2)}function Ml(e,t){return Es(e.getUTCFullYear()%100,t,2)}function Ll(e,t){return e=Rl(e),Es(e.getUTCFullYear()%100,t,2)}function Ol(e,t){return Es(e.getUTCFullYear()%1e4,t,4)}function Il(e,t){var n=e.getUTCDay();return e=n>=4||0===n?rs(e):rs.ceil(e),Es(e.getUTCFullYear()%1e4,t,4)}function Nl(){return"+0000"}function Bl(){return"%"}function Dl(e){return+e}function Fl(e){return Math.floor(+e/1e3)}function $l(e){return bs=ys(e),ws=bs.format,bs.parse,bs.utcFormat,bs.utcParse,bs}function Pl(e,t){e=e.slice();var n,r=0,a=e.length-1,i=e[r],o=e[a];return o<i&&(n=r,r=a,a=n,n=i,i=o,o=n),e[r]=t.floor(i),e[a]=t.ceil(o),e}function zl(e){return new Date(e)}function Wl(e){return e instanceof Date?+e:+new Date(+e)}function jl(e,t,n,r,a,i,o,s,l,c){var u=ji(),d=u.invert,h=u.domain,p=c(".%L"),f=c(":%S"),m=c("%I:%M"),g=c("%I %p"),v=c("%a %d"),y=c("%b %d"),b=c("%B"),w=c("%Y");function x(e){return(l(e)<e?p:s(e)<e?f:o(e)<e?m:i(e)<e?g:r(e)<e?a(e)<e?v:y:n(e)<e?b:w)(e)}return u.invert=function(e){return new Date(d(e))},u.domain=function(e){return arguments.length?h(Array.from(e,Wl)):h().map(zl)},u.ticks=function(t){var n=h();return e(n[0],n[n.length-1],null==t?10:t)},u.tickFormat=function(e,t){return null==t?x:c(t)},u.nice=function(e){var n=h();return e&&"function"===typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?h(Pl(n,e)):u},u.copy=function(){return zi(u,jl(e,t,n,r,a,i,o,s,l,c))},u}function Vl(){return Vi.apply(jl(ps,fs,ls,os,Ko,Wo,Po,Fo,Do,ws).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Ul(e){return"string"===typeof e?new mt([[document.querySelector(e)]],[document.documentElement]):new mt([[e]],ft)}function Kl(e){return"string"===typeof e?new mt([document.querySelectorAll(e)],[document.documentElement]):new mt([k(e)],ft)}function Hl(e){return function(){return e}}$l({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});const ql=Math.abs,Gl=Math.atan2,Xl=Math.cos,Yl=Math.max,Ql=Math.min,Zl=Math.sin,Jl=Math.sqrt,ec=1e-12,tc=Math.PI,nc=tc/2,rc=2*tc;function ac(e){return e>1?0:e<-1?tc:Math.acos(e)}function ic(e){return e>=1?nc:e<=-1?-nc:Math.asin(e)}const oc=Math.PI,sc=2*oc,lc=1e-6,cc=sc-lc;function uc(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function dc(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return uc;const n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}class hc{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?uc:dc(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,a,i){this._append`C${+e},${+t},${+n},${+r},${this._x1=+a},${this._y1=+i}`}arcTo(e,t,n,r,a){if(e=+e,t=+t,n=+n,r=+r,a=+a,a<0)throw new Error(`negative radius: ${a}`);let i=this._x1,o=this._y1,s=n-e,l=r-t,c=i-e,u=o-t,d=c*c+u*u;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(d>lc)if(Math.abs(u*s-l*c)>lc&&a){let h=n-i,p=r-o,f=s*s+l*l,m=h*h+p*p,g=Math.sqrt(f),v=Math.sqrt(d),y=a*Math.tan((oc-Math.acos((f+d-m)/(2*g*v)))/2),b=y/v,w=y/g;Math.abs(b-1)>lc&&this._append`L${e+b*c},${t+b*u}`,this._append`A${a},${a},0,0,${+(u*h>c*p)},${this._x1=e+w*s},${this._y1=t+w*l}`}else this._append`L${this._x1=e},${this._y1=t}`;else;}arc(e,t,n,r,a,i){if(e=+e,t=+t,n=+n,i=!!i,n<0)throw new Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),l=e+o,c=t+s,u=1^i,d=i?r-a:a-r;null===this._x1?this._append`M${l},${c}`:(Math.abs(this._x1-l)>lc||Math.abs(this._y1-c)>lc)&&this._append`L${l},${c}`,n&&(d<0&&(d=d%sc+sc),d>cc?this._append`A${n},${n},0,1,${u},${e-o},${t-s}A${n},${n},0,1,${u},${this._x1=l},${this._y1=c}`:d>lc&&this._append`A${n},${n},0,${+(d>=oc)},${u},${this._x1=e+n*Math.cos(a)},${this._y1=t+n*Math.sin(a)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}}function pc(){return new hc}function fc(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(null==n)t=null;else{const e=Math.floor(n);if(!(e>=0))throw new RangeError(`invalid digits: ${n}`);t=e}return e},()=>new hc(t)}function mc(e){return e.innerRadius}function gc(e){return e.outerRadius}function vc(e){return e.startAngle}function yc(e){return e.endAngle}function bc(e){return e&&e.padAngle}function wc(e,t,n,r,a,i,o,s){var l=n-e,c=r-t,u=o-a,d=s-i,h=d*l-u*c;if(!(h*h<ec))return h=(u*(t-i)-d*(e-a))/h,[e+h*l,t+h*c]}function xc(e,t,n,r,a,i,o){var s=e-n,l=t-r,c=(o?i:-i)/Jl(s*s+l*l),u=c*l,d=-c*s,h=e+u,p=t+d,f=n+u,m=r+d,g=(h+f)/2,v=(p+m)/2,y=f-h,b=m-p,w=y*y+b*b,x=a-i,k=h*m-f*p,_=(b<0?-1:1)*Jl(Yl(0,x*x*w-k*k)),C=(k*b-y*_)/w,E=(-k*y-b*_)/w,R=(k*b+y*_)/w,S=(-k*y+b*_)/w,A=C-g,T=E-v,M=R-g,L=S-v;return A*A+T*T>M*M+L*L&&(C=R,E=S),{cx:C,cy:E,x01:-u,y01:-d,x11:C*(a/x-1),y11:E*(a/x-1)}}function kc(){var e=mc,t=gc,n=Hl(0),r=null,a=vc,i=yc,o=bc,s=null,l=fc(c);function c(){var c,u,d=+e.apply(this,arguments),h=+t.apply(this,arguments),p=a.apply(this,arguments)-nc,f=i.apply(this,arguments)-nc,m=ql(f-p),g=f>p;if(s||(s=c=l()),h<d&&(u=h,h=d,d=u),h>ec)if(m>rc-ec)s.moveTo(h*Xl(p),h*Zl(p)),s.arc(0,0,h,p,f,!g),d>ec&&(s.moveTo(d*Xl(f),d*Zl(f)),s.arc(0,0,d,f,p,g));else{var v,y,b=p,w=f,x=p,k=f,_=m,C=m,E=o.apply(this,arguments)/2,R=E>ec&&(r?+r.apply(this,arguments):Jl(d*d+h*h)),S=Ql(ql(h-d)/2,+n.apply(this,arguments)),A=S,T=S;if(R>ec){var M=ic(R/d*Zl(E)),L=ic(R/h*Zl(E));(_-=2*M)>ec?(M*=g?1:-1,x+=M,k-=M):(_=0,x=k=(p+f)/2),(C-=2*L)>ec?(L*=g?1:-1,b+=L,w-=L):(C=0,b=w=(p+f)/2)}var O=h*Xl(b),I=h*Zl(b),N=d*Xl(k),B=d*Zl(k);if(S>ec){var D,F=h*Xl(w),$=h*Zl(w),P=d*Xl(x),z=d*Zl(x);if(m<tc)if(D=wc(O,I,P,z,F,$,N,B)){var W=O-D[0],j=I-D[1],V=F-D[0],U=$-D[1],K=1/Zl(ac((W*V+j*U)/(Jl(W*W+j*j)*Jl(V*V+U*U)))/2),H=Jl(D[0]*D[0]+D[1]*D[1]);A=Ql(S,(d-H)/(K-1)),T=Ql(S,(h-H)/(K+1))}else A=T=0}C>ec?T>ec?(v=xc(P,z,O,I,h,T,g),y=xc(F,$,N,B,h,T,g),s.moveTo(v.cx+v.x01,v.cy+v.y01),T<S?s.arc(v.cx,v.cy,T,Gl(v.y01,v.x01),Gl(y.y01,y.x01),!g):(s.arc(v.cx,v.cy,T,Gl(v.y01,v.x01),Gl(v.y11,v.x11),!g),s.arc(0,0,h,Gl(v.cy+v.y11,v.cx+v.x11),Gl(y.cy+y.y11,y.cx+y.x11),!g),s.arc(y.cx,y.cy,T,Gl(y.y11,y.x11),Gl(y.y01,y.x01),!g))):(s.moveTo(O,I),s.arc(0,0,h,b,w,!g)):s.moveTo(O,I),d>ec&&_>ec?A>ec?(v=xc(N,B,F,$,d,-A,g),y=xc(O,I,P,z,d,-A,g),s.lineTo(v.cx+v.x01,v.cy+v.y01),A<S?s.arc(v.cx,v.cy,A,Gl(v.y01,v.x01),Gl(y.y01,y.x01),!g):(s.arc(v.cx,v.cy,A,Gl(v.y01,v.x01),Gl(v.y11,v.x11),!g),s.arc(0,0,d,Gl(v.cy+v.y11,v.cx+v.x11),Gl(y.cy+y.y11,y.cx+y.x11),g),s.arc(y.cx,y.cy,A,Gl(y.y11,y.x11),Gl(y.y01,y.x01),!g))):s.arc(0,0,d,k,x,g):s.lineTo(N,B)}else s.moveTo(0,0);if(s.closePath(),c)return s=null,c+""||null}return c.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+a.apply(this,arguments)+ +i.apply(this,arguments))/2-tc/2;return[Xl(r)*n,Zl(r)*n]},c.innerRadius=function(t){return arguments.length?(e="function"===typeof t?t:Hl(+t),c):e},c.outerRadius=function(e){return arguments.length?(t="function"===typeof e?e:Hl(+e),c):t},c.cornerRadius=function(e){return arguments.length?(n="function"===typeof e?e:Hl(+e),c):n},c.padRadius=function(e){return arguments.length?(r=null==e?null:"function"===typeof e?e:Hl(+e),c):r},c.startAngle=function(e){return arguments.length?(a="function"===typeof e?e:Hl(+e),c):a},c.endAngle=function(e){return arguments.length?(i="function"===typeof e?e:Hl(+e),c):i},c.padAngle=function(e){return arguments.length?(o="function"===typeof e?e:Hl(+e),c):o},c.context=function(e){return arguments.length?(s=null==e?null:e,c):s},c}pc.prototype=hc.prototype;Array.prototype.slice;function _c(e){return"object"===typeof e&&"length"in e?e:Array.from(e)}function Cc(e){this._context=e}function Ec(e){return new Cc(e)}function Rc(e){return e[0]}function Sc(e){return e[1]}function Ac(e,t){var n=Hl(!0),r=null,a=Ec,i=null,o=fc(s);function s(s){var l,c,u,d=(s=_c(s)).length,h=!1;for(null==r&&(i=a(u=o())),l=0;l<=d;++l)!(l<d&&n(c=s[l],l,s))===h&&((h=!h)?i.lineStart():i.lineEnd()),h&&i.point(+e(c,l,s),+t(c,l,s));if(u)return i=null,u+""||null}return e="function"===typeof e?e:void 0===e?Rc:Hl(e),t="function"===typeof t?t:void 0===t?Sc:Hl(t),s.x=function(t){return arguments.length?(e="function"===typeof t?t:Hl(+t),s):e},s.y=function(e){return arguments.length?(t="function"===typeof e?e:Hl(+e),s):t},s.defined=function(e){return arguments.length?(n="function"===typeof e?e:Hl(!!e),s):n},s.curve=function(e){return arguments.length?(a=e,null!=r&&(i=a(r)),s):a},s.context=function(e){return arguments.length?(null==e?r=i=null:i=a(r=e),s):r},s}function Tc(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function Mc(e){return e}function Lc(){var e=Mc,t=Tc,n=null,r=Hl(0),a=Hl(rc),i=Hl(0);function o(o){var s,l,c,u,d,h=(o=_c(o)).length,p=0,f=new Array(h),m=new Array(h),g=+r.apply(this,arguments),v=Math.min(rc,Math.max(-rc,a.apply(this,arguments)-g)),y=Math.min(Math.abs(v)/h,i.apply(this,arguments)),b=y*(v<0?-1:1);for(s=0;s<h;++s)(d=m[f[s]=s]=+e(o[s],s,o))>0&&(p+=d);for(null!=t?f.sort((function(e,n){return t(m[e],m[n])})):null!=n&&f.sort((function(e,t){return n(o[e],o[t])})),s=0,c=p?(v-h*b)/p:0;s<h;++s,g=u)l=f[s],d=m[l],u=g+(d>0?d*c:0)+b,m[l]={data:o[l],index:s,value:d,startAngle:g,endAngle:u,padAngle:y};return m}return o.value=function(t){return arguments.length?(e="function"===typeof t?t:Hl(+t),o):e},o.sortValues=function(e){return arguments.length?(t=e,n=null,o):t},o.sort=function(e){return arguments.length?(n=e,t=null,o):n},o.startAngle=function(e){return arguments.length?(r="function"===typeof e?e:Hl(+e),o):r},o.endAngle=function(e){return arguments.length?(a="function"===typeof e?e:Hl(+e),o):a},o.padAngle=function(e){return arguments.length?(i="function"===typeof e?e:Hl(+e),o):i},o}function Oc(){}function Ic(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Nc(e){this._context=e}function Bc(e){return new Nc(e)}function Dc(e){this._context=e}function Fc(e){return new Dc(e)}function $c(e){this._context=e}function Pc(e){return new $c(e)}Cc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}},Nc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Ic(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Ic(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Dc.prototype={areaStart:Oc,areaEnd:Oc,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Ic(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},$c.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Ic(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};class zc{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t);break}this._x0=e,this._y0=t}}function Wc(e){return new zc(e,!0)}function jc(e){return new zc(e,!1)}function Vc(e,t){this._basis=new Nc(e),this._beta=t}Vc.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0){var r,a=e[0],i=t[0],o=e[n]-a,s=t[n]-i,l=-1;while(++l<=n)r=l/n,this._basis.point(this._beta*e[l]+(1-this._beta)*(a+r*o),this._beta*t[l]+(1-this._beta)*(i+r*s))}this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var Uc=function e(t){function n(e){return 1===t?new Nc(e):new Vc(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function Kc(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function Hc(e,t){this._context=e,this._k=(1-t)/6}Hc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Kc(this,this._x1,this._y1);break}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Kc(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var qc=function e(t){function n(e){return new Hc(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Gc(e,t){this._context=e,this._k=(1-t)/6}Gc.prototype={areaStart:Oc,areaEnd:Oc,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Kc(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Xc=function e(t){function n(e){return new Gc(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Yc(e,t){this._context=e,this._k=(1-t)/6}Yc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Kc(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Qc=function e(t){function n(e){return new Yc(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Zc(e,t,n){var r=e._x1,a=e._y1,i=e._x2,o=e._y2;if(e._l01_a>ec){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,a=(a*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>ec){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*c+e._x1*e._l23_2a-t*e._l12_2a)/u,o=(o*c+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,a,i,o,e._x2,e._y2)}function Jc(e,t){this._context=e,this._alpha=t}Jc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:Zc(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var eu=function e(t){function n(e){return t?new Jc(e,t):new Hc(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function tu(e,t){this._context=e,this._alpha=t}tu.prototype={areaStart:Oc,areaEnd:Oc,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Zc(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var nu=function e(t){function n(e){return t?new tu(e,t):new Gc(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function ru(e,t){this._context=e,this._alpha=t}ru.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Zc(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var au=function e(t){function n(e){return t?new ru(e,t):new Yc(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function iu(e){this._context=e}function ou(e){return new iu(e)}function su(e){return e<0?-1:1}function lu(e,t,n){var r=e._x1-e._x0,a=t-e._x1,i=(e._y1-e._y0)/(r||a<0&&-0),o=(n-e._y1)/(a||r<0&&-0),s=(i*a+o*r)/(r+a);return(su(i)+su(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(s))||0}function cu(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function uu(e,t,n){var r=e._x0,a=e._y0,i=e._x1,o=e._y1,s=(i-r)/3;e._context.bezierCurveTo(r+s,a+s*t,i-s,o-s*n,i,o)}function du(e){this._context=e}function hu(e){this._context=new pu(e)}function pu(e){this._context=e}function fu(e){return new du(e)}function mu(e){return new hu(e)}function gu(e){this._context=e}function vu(e){var t,n,r=e.length-1,a=new Array(r),i=new Array(r),o=new Array(r);for(a[0]=0,i[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)a[t]=1,i[t]=4,o[t]=4*e[t]+2*e[t+1];for(a[r-1]=2,i[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=a[t]/i[t-1],i[t]-=n,o[t]-=n*o[t-1];for(a[r-1]=o[r-1]/i[r-1],t=r-2;t>=0;--t)a[t]=(o[t]-a[t+1])/i[t];for(i[r-1]=(e[r]+a[r-1])/2,t=0;t<r-1;++t)i[t]=2*e[t+1]-a[t+1];return[a,i]}function yu(e){return new gu(e)}function bu(e,t){this._context=e,this._t=t}function wu(e){return new bu(e,.5)}function xu(e){return new bu(e,0)}function ku(e){return new bu(e,1)}function _u(e,t,n){this.k=e,this.x=t,this.y=n}iu.prototype={areaStart:Oc,areaEnd:Oc,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}},du.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:uu(this,this._t0,cu(this,this._t0));break}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,e!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,uu(this,cu(this,n=lu(this,e,t)),n);break;default:uu(this,this._t0,n=lu(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(hu.prototype=Object.create(du.prototype)).point=function(e,t){du.prototype.point.call(this,t,e)},pu.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,a,i){this._context.bezierCurveTo(t,e,r,n,i,a)}},gu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=vu(e),a=vu(t),i=0,o=1;o<n;++i,++o)this._context.bezierCurveTo(r[0][i],a[0][i],r[1][i],a[1][i],e[o],t[o]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},bu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}this._x=e,this._y=t}},_u.prototype={constructor:_u,scale:function(e){return 1===e?this:new _u(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new _u(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Cu=new _u(1,0,0);function Eu(e){while(!e.__zoom)if(!(e=e.parentNode))return Cu;return e.__zoom}Eu.prototype=_u.prototype},8845:function(e,t,n){"use strict";n.d(t,{k:function(){return i}});n(4114),n(8992),n(3949);function r(e,t,n,r){var i,o,s,l,c,u,d,h,p,f,m,g,v,y,b;if(i=t.y-e.y,s=e.x-t.x,c=t.x*e.y-e.x*t.y,p=i*n.x+s*n.y+c,f=i*r.x+s*r.y+c,(0===p||0===f||!a(p,f))&&(o=r.y-n.y,l=n.x-r.x,u=r.x*n.y-n.x*r.y,d=o*e.x+l*e.y+u,h=o*t.x+l*t.y+u,(0===d||0===h||!a(d,h))&&(m=i*l-o*s,0!==m)))return g=Math.abs(m/2),v=s*u-l*c,y=v<0?(v-g)/m:(v+g)/m,v=o*c-i*u,b=v<0?(v-g)/m:(v+g)/m,{x:y,y:b}}function a(e,t){return e*t>0}function i(e,t,n){var a=e.x,i=e.y,o=[],s=Number.POSITIVE_INFINITY,l=Number.POSITIVE_INFINITY;t.forEach((function(e){s=Math.min(s,e.x),l=Math.min(l,e.y)}));for(var c=a-e.width/2-s,u=i-e.height/2-l,d=0;d<t.length;d++){var h=t[d],p=t[d<t.length-1?d+1:0],f=r(e,n,{x:c+h.x,y:u+h.y},{x:c+p.x,y:u+p.y});f&&o.push(f)}return o.length?(o.length>1&&o.sort((function(e,t){var r=e.x-n.x,a=e.y-n.y,i=Math.sqrt(r*r+a*a),o=t.x-n.x,s=t.y-n.y,l=Math.sqrt(o*o+s*s);return i<l?-1:i===l?0:1})),o[0]):(console.log("NO INTERSECTION FOUND, RETURN NODE CENTER",e),e)}},9862:function(e,t,n){"use strict";function r(e,t){var n,r,a=e.x,i=e.y,o=t.x-a,s=t.y-i,l=e.width/2,c=e.height/2;return Math.abs(s)*l>Math.abs(o)*c?(s<0&&(c=-c),n=0===s?0:c*o/s,r=c):(o<0&&(l=-l),n=l,r=0===o?0:l*s/o),{x:a+n,y:i+r}}n.d(t,{C:function(){return r}})},8317:function(e,t,n){"use strict";n.d(t,{H:function(){return a}});var r=n(4422);function a(e,t){var n=e.append("foreignObject").attr("width","100000"),a=n.append("xhtml:div");a.attr("xmlns","http://www.w3.org/1999/xhtml");var i=t.label;switch(typeof i){case"function":a.insert(i);break;case"object":a.insert((function(){return i}));break;default:a.html(i)}r.AV(a,t.labelStyle),a.style("display","inline-block"),a.style("white-space","nowrap");var o=a.node().getBoundingClientRect();return n.attr("width",o.width).attr("height",o.height),n}},4422:function(e,t,n){"use strict";n.d(t,{AV:function(){return c},De:function(){return i},c$:function(){return d},gh:function(){return o},nh:function(){return u}});var r=n(5644),a=n(7083);function i(e,t){return!!e.children(t).length}function o(e){return l(e.v)+":"+l(e.w)+":"+l(e.name)}var s=/:/g;function l(e){return e?String(e).replace(s,"\\:"):""}function c(e,t){t&&e.attr("style",t)}function u(e,t,n){t&&e.attr("class",t).attr("class",n+" "+e.attr("class"))}function d(e,t){var n=t.graph();if(r.A(n)){var i=n.transition;if(a.A(i))return i(e)}return e}},4038:function(e,t,n){"use strict";n.d(t,{Zp:function(){return xr}});n(4114);var r=n(8749),a=n(1529),i=n(1731),o=(n(1454),n(9063)),s=n(5101),l=n(3357),c=n(6077),u=n(8668);class d{constructor(){var e={};e._next=e._prev=e,this._sentinel=e}dequeue(){var e=this._sentinel,t=e._prev;if(t!==e)return h(t),t}enqueue(e){var t=this._sentinel;e._prev&&e._next&&h(e),e._next=t._next,t._next._prev=e,t._next=e,e._prev=t}toString(){var e=[],t=this._sentinel,n=t._prev;while(n!==t)e.push(JSON.stringify(n,p)),n=n._prev;return"["+e.join(", ")+"]"}}function h(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function p(e,t){if("_next"!==e&&"_prev"!==e)return t}var f=o.A(1);function m(e,t){if(e.nodeCount()<=1)return[];var n=y(e,t||f),r=g(n.graph,n.buckets,n.zeroIdx);return s.A(l.A(r,(function(t){return e.outEdges(t.v,t.w)})))}function g(e,t,n){var r,a=[],i=t[t.length-1],o=t[0];while(e.nodeCount()){while(r=o.dequeue())v(e,t,n,r);while(r=i.dequeue())v(e,t,n,r);if(e.nodeCount())for(var s=t.length-2;s>0;--s)if(r=t[s].dequeue(),r){a=a.concat(v(e,t,n,r,!0));break}}return a}function v(e,t,n,a,i){var o=i?[]:void 0;return r.A(e.inEdges(a.v),(function(r){var a=e.edge(r),s=e.node(r.v);i&&o.push({v:r.v,w:r.w}),s.out-=a,b(t,n,s)})),r.A(e.outEdges(a.v),(function(r){var a=e.edge(r),i=r.w,o=e.node(i);o["in"]-=a,b(t,n,o)})),e.removeNode(a.v),o}function y(e,t){var n=new u.T,a=0,i=0;r.A(e.nodes(),(function(e){n.setNode(e,{v:e,in:0,out:0})})),r.A(e.edges(),(function(e){var r=n.edge(e.v,e.w)||0,o=t(e),s=r+o;n.setEdge(e.v,e.w,s),i=Math.max(i,n.node(e.v).out+=o),a=Math.max(a,n.node(e.w)["in"]+=o)}));var o=c.A(i+a+3).map((function(){return new d})),s=a+1;return r.A(n.nodes(),(function(e){b(o,s,n.node(e))})),{graph:n,buckets:o,zeroIdx:s}}function b(e,t,n){n.out?n["in"]?e[n.out-n["in"]+t].enqueue(n):e[e.length-1].enqueue(n):e[0].enqueue(n)}function w(e){var t="greedy"===e.graph().acyclicer?m(e,n(e)):x(e);function n(e){return function(t){return e.edge(t).weight}}r.A(t,(function(t){var n=e.edge(t);e.removeEdge(t),n.forwardName=t.name,n.reversed=!0,e.setEdge(t.w,t.v,n,a.A("rev"))}))}function x(e){var t=[],n={},a={};function o(s){i.A(a,s)||(a[s]=!0,n[s]=!0,r.A(e.outEdges(s),(function(e){i.A(n,e.w)?t.push(e):o(e.w)})),delete n[s])}return r.A(e.nodes(),o),t}function k(e){r.A(e.edges(),(function(t){var n=e.edge(t);if(n.reversed){e.removeEdge(t);var r=n.forwardName;delete n.reversed,delete n.forwardName,e.setEdge(t.w,t.v,n,r)}}))}var _=n(229),C=n(1996),E=n(6649),R=n(8095);function S(e,t,n){var r=-1,a=e.length;while(++r<a){var i=e[r],o=t(i);if(null!=o&&(void 0===s?o===o&&!(0,R.A)(o):n(o,s)))var s=o,l=i}return l}var A=S;function T(e,t){return e>t}var M=T,L=n(9937);function O(e){return e&&e.length?A(e,L.A,M):void 0}var I=O,N=n(9019),B=n(5061),D=n(6438),F=n(2444);function $(e,t){var n={};return t=(0,F.A)(t,3),(0,D.A)(e,(function(e,r,a){(0,B.A)(n,r,t(e,r,a))})),n}var P=$,z=n(1631);function W(e,t){return e<t}var j=W;function V(e){return e&&e.length?A(e,L.A,j):void 0}var U=V,K=n(2563);function H(e,t,n,r){var i;do{i=a.A(r)}while(e.hasNode(i));return n.dummy=t,e.setNode(i,n),i}function q(e){var t=(new u.T).setGraph(e.graph());return r.A(e.nodes(),(function(n){t.setNode(n,e.node(n))})),r.A(e.edges(),(function(n){var r=t.edge(n.v,n.w)||{weight:0,minlen:1},a=e.edge(n);t.setEdge(n.v,n.w,{weight:r.weight+a.weight,minlen:Math.max(r.minlen,a.minlen)})})),t}function G(e){var t=new u.T({multigraph:e.isMultigraph()}).setGraph(e.graph());return r.A(e.nodes(),(function(n){e.children(n).length||t.setNode(n,e.node(n))})),r.A(e.edges(),(function(n){t.setEdge(n,e.edge(n))})),t}function X(e,t){var n,r,a=e.x,i=e.y,o=t.x-a,s=t.y-i,l=e.width/2,c=e.height/2;if(!o&&!s)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(s)*l>Math.abs(o)*c?(s<0&&(c=-c),n=c*o/s,r=c):(o<0&&(l=-l),n=l,r=l*s/o),{x:a+n,y:i+r}}function Y(e){var t=l.A(c.A(ee(e)+1),(function(){return[]}));return r.A(e.nodes(),(function(n){var r=e.node(n),a=r.rank;z.A(a)||(t[a][r.order]=n)})),t}function Q(e){var t=U(l.A(e.nodes(),(function(t){return e.node(t).rank})));r.A(e.nodes(),(function(n){var r=e.node(n);i.A(r,"rank")&&(r.rank-=t)}))}function Z(e){var t=U(l.A(e.nodes(),(function(t){return e.node(t).rank}))),n=[];r.A(e.nodes(),(function(r){var a=e.node(r).rank-t;n[a]||(n[a]=[]),n[a].push(r)}));var a=0,i=e.graph().nodeRankFactor;r.A(n,(function(t,n){z.A(t)&&n%i!==0?--a:a&&r.A(t,(function(t){e.node(t).rank+=a}))}))}function J(e,t,n,r){var a={width:0,height:0};return arguments.length>=4&&(a.rank=n,a.order=r),H(e,"border",a,t)}function ee(e){return I(l.A(e.nodes(),(function(t){var n=e.node(t).rank;if(!z.A(n))return n})))}function te(e,t){var n={lhs:[],rhs:[]};return r.A(e,(function(e){t(e)?n.lhs.push(e):n.rhs.push(e)})),n}function ne(e,t){var n=K.A();try{return t()}finally{console.log(e+" time: "+(K.A()-n)+"ms")}}function re(e,t){return t()}function ae(e){function t(n){var a=e.children(n),o=e.node(n);if(a.length&&r.A(a,t),i.A(o,"minRank")){o.borderLeft=[],o.borderRight=[];for(var s=o.minRank,l=o.maxRank+1;s<l;++s)ie(e,"borderLeft","_bl",n,o,s),ie(e,"borderRight","_br",n,o,s)}}r.A(e.children(),t)}function ie(e,t,n,r,a,i){var o={width:0,height:0,rank:i,borderType:t},s=a[t][i-1],l=H(e,"border",o,n);a[t][i]=l,e.setParent(l,r),s&&e.setEdge(s,l,{weight:1})}function oe(e){var t=e.graph().rankdir.toLowerCase();"lr"!==t&&"rl"!==t||le(e)}function se(e){var t=e.graph().rankdir.toLowerCase();"bt"!==t&&"rl"!==t||ue(e),"lr"!==t&&"rl"!==t||(he(e),le(e))}function le(e){r.A(e.nodes(),(function(t){ce(e.node(t))})),r.A(e.edges(),(function(t){ce(e.edge(t))}))}function ce(e){var t=e.width;e.width=e.height,e.height=t}function ue(e){r.A(e.nodes(),(function(t){de(e.node(t))})),r.A(e.edges(),(function(t){var n=e.edge(t);r.A(n.points,de),i.A(n,"y")&&de(n)}))}function de(e){e.y=-e.y}function he(e){r.A(e.nodes(),(function(t){pe(e.node(t))})),r.A(e.edges(),(function(t){var n=e.edge(t);r.A(n.points,pe),i.A(n,"x")&&pe(n)}))}function pe(e){var t=e.x;e.x=e.y,e.y=t}function fe(e){e.graph().dummyChains=[],r.A(e.edges(),(function(t){me(e,t)}))}function me(e,t){var n=t.v,r=e.node(n).rank,a=t.w,i=e.node(a).rank,o=t.name,s=e.edge(t),l=s.labelRank;if(i!==r+1){var c,u,d;for(e.removeEdge(t),d=0,++r;r<i;++d,++r)s.points=[],u={width:0,height:0,edgeLabel:s,edgeObj:t,rank:r},c=H(e,"edge",u,"_d"),r===l&&(u.width=s.width,u.height=s.height,u.dummy="edge-label",u.labelpos=s.labelpos),e.setEdge(n,c,{weight:s.weight},o),0===d&&e.graph().dummyChains.push(c),n=c;e.setEdge(n,a,{weight:s.weight},o)}}function ge(e){r.A(e.graph().dummyChains,(function(t){var n,r=e.node(t),a=r.edgeLabel;e.setEdge(r.edgeObj,a);while(r.dummy)n=e.successors(t)[0],e.removeNode(t),a.points.push({x:r.x,y:r.y}),"edge-label"===r.dummy&&(a.x=r.x,a.y=r.y,a.width=r.width,a.height=r.height),t=n,r=e.node(t)}))}function ve(e,t){return e&&e.length?A(e,(0,F.A)(t,2),j):void 0}var ye=ve;function be(e){var t={};function n(r){var a=e.node(r);if(i.A(t,r))return a.rank;t[r]=!0;var o=U(l.A(e.outEdges(r),(function(t){return n(t.w)-e.edge(t).minlen})));return o!==Number.POSITIVE_INFINITY&&void 0!==o&&null!==o||(o=0),a.rank=o}r.A(e.sources(),n)}function we(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}function xe(e){var t,n,r=new u.T({directed:!1}),a=e.nodes()[0],i=e.nodeCount();r.setNode(a,{});while(ke(r,e)<i)t=_e(r,e),n=r.hasNode(t.v)?we(e,t):-we(e,t),Ce(r,e,n);return r}function ke(e,t){function n(a){r.A(t.nodeEdges(a),(function(r){var i=r.v,o=a===i?r.w:i;e.hasNode(o)||we(t,r)||(e.setNode(o,{}),e.setEdge(a,o,{}),n(o))}))}return r.A(e.nodes(),n),e.nodeCount()}function _e(e,t){return ye(t.edges(),(function(n){if(e.hasNode(n.v)!==e.hasNode(n.w))return we(t,n)}))}function Ce(e,t,n){r.A(e.nodes(),(function(e){t.node(e).rank+=n}))}var Ee=n(1805),Re=n(7351);function Se(e){return function(t,n,r){var a=Object(t);if(!(0,Ee.A)(t)){var i=(0,F.A)(n,3);t=(0,Re.A)(t),n=function(e){return i(a[e],e,a)}}var o=e(t,n,r);return o>-1?a[i?t[o]:o]:void 0}}var Ae=Se,Te=n(1158),Me=n(478),Le=Math.max;function Oe(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=null==n?0:(0,Me.A)(n);return a<0&&(a=Le(r+a,0)),(0,Te.A)(e,(0,F.A)(t,3),a)}var Ie=Oe,Ne=Ae(Ie),Be=Ne,De=n(3811);n(8992),n(3949);o.A(1);o.A(1);var Fe=n(1647),$e=n(6200),Pe=n(1591),ze=n(1125),We=n(2799),je="[object String]";function Ve(e){return"string"==typeof e||!(0,ze.A)(e)&&(0,We.A)(e)&&(0,Pe.A)(e)==je}var Ue=Ve,Ke=n(6382),He=(0,Ke.A)("length"),qe=He,Ge="\\ud800-\\udfff",Xe="\\u0300-\\u036f",Ye="\\ufe20-\\ufe2f",Qe="\\u20d0-\\u20ff",Ze=Xe+Ye+Qe,Je="\\ufe0e\\ufe0f",et="\\u200d",tt=RegExp("["+et+Ge+Ze+Je+"]");function nt(e){return tt.test(e)}var rt=nt,at="\\ud800-\\udfff",it="\\u0300-\\u036f",ot="\\ufe20-\\ufe2f",st="\\u20d0-\\u20ff",lt=it+ot+st,ct="\\ufe0e\\ufe0f",ut="["+at+"]",dt="["+lt+"]",ht="\\ud83c[\\udffb-\\udfff]",pt="(?:"+dt+"|"+ht+")",ft="[^"+at+"]",mt="(?:\\ud83c[\\udde6-\\uddff]){2}",gt="[\\ud800-\\udbff][\\udc00-\\udfff]",vt="\\u200d",yt=pt+"?",bt="["+ct+"]?",wt="(?:"+vt+"(?:"+[ft,mt,gt].join("|")+")"+bt+yt+")*",xt=bt+yt+wt,kt="(?:"+[ft+dt+"?",dt,mt,gt,ut].join("|")+")",_t=RegExp(ht+"(?="+ht+")|"+kt+xt,"g");function Ct(e){var t=_t.lastIndex=0;while(_t.test(e))++t;return t}var Et=Ct;function Rt(e){return rt(e)?Et(e):qe(e)}var St=Rt,At="[object Map]",Tt="[object Set]";function Mt(e){if(null==e)return 0;if((0,Ee.A)(e))return Ue(e)?St(e):e.length;var t=(0,$e.A)(e);return t==At||t==Tt?e.size:(0,Fe.A)(e).length}var Lt=Mt;function Ot(e){var t={},n={},a=[];function o(s){if(i.A(n,s))throw new It;i.A(t,s)||(n[s]=!0,t[s]=!0,r.A(e.predecessors(s),o),delete n[s],a.push(s))}if(r.A(e.sinks(),o),Lt(t)!==e.nodeCount())throw new It;return a}function It(){}function Nt(e,t,n){ze.A(t)||(t=[t]);var a=(e.isDirected()?e.successors:e.neighbors).bind(e),i=[],o={};return r.A(t,(function(t){if(!e.hasNode(t))throw new Error("Graph does not have node: "+t);Bt(e,t,"post"===n,o,a,i)})),i}function Bt(e,t,n,a,o,s){i.A(a,t)||(a[t]=!0,n||s.push(t),r.A(o(t),(function(t){Bt(e,t,n,a,o,s)})),n&&s.push(t))}function Dt(e,t){return Nt(e,t,"post")}function Ft(e,t){return Nt(e,t,"pre")}Ot.CycleException=It,It.prototype=new Error;n(9904);function $t(e){e=q(e),be(e);var t,n,r=xe(e);jt(r),Pt(r,e);while(t=Ut(r))n=Kt(r,e,t),Ht(r,e,t,n)}function Pt(e,t){var n=Dt(e,e.nodes());n=n.slice(0,n.length-1),r.A(n,(function(n){zt(e,t,n)}))}function zt(e,t,n){var r=e.node(n),a=r.parent;e.edge(n,a).cutvalue=Wt(e,t,n)}function Wt(e,t,n){var a=e.node(n),i=a.parent,o=!0,s=t.edge(n,i),l=0;return s||(o=!1,s=t.edge(i,n)),l=s.weight,r.A(t.nodeEdges(n),(function(r){var a=r.v===n,s=a?r.w:r.v;if(s!==i){var c=a===o,u=t.edge(r).weight;if(l+=c?u:-u,Gt(e,n,s)){var d=e.edge(n,s).cutvalue;l+=c?-d:d}}})),l}function jt(e,t){arguments.length<2&&(t=e.nodes()[0]),Vt(e,{},1,t)}function Vt(e,t,n,a,o){var s=n,l=e.node(a);return t[a]=!0,r.A(e.neighbors(a),(function(r){i.A(t,r)||(n=Vt(e,t,n,r,a))})),l.low=s,l.lim=n++,o?l.parent=o:delete l.parent,n}function Ut(e){return Be(e.edges(),(function(t){return e.edge(t).cutvalue<0}))}function Kt(e,t,n){var r=n.v,a=n.w;t.hasEdge(r,a)||(r=n.w,a=n.v);var i=e.node(r),o=e.node(a),s=i,l=!1;i.lim>o.lim&&(s=o,l=!0);var c=De.A(t.edges(),(function(t){return l===Xt(e,e.node(t.v),s)&&l!==Xt(e,e.node(t.w),s)}));return ye(c,(function(e){return we(t,e)}))}function Ht(e,t,n,r){var a=n.v,i=n.w;e.removeEdge(a,i),e.setEdge(r.v,r.w,{}),jt(e),Pt(e,t),qt(e,t)}function qt(e,t){var n=Be(e.nodes(),(function(e){return!t.node(e).parent})),a=Ft(e,n);a=a.slice(1),r.A(a,(function(n){var r=e.node(n).parent,a=t.edge(n,r),i=!1;a||(a=t.edge(r,n),i=!0),t.node(n).rank=t.node(r).rank+(i?a.minlen:-a.minlen)}))}function Gt(e,t,n){return e.hasEdge(t,n)}function Xt(e,t,n){return n.low<=t.lim&&t.lim<=n.lim}function Yt(e){switch(e.graph().ranker){case"network-simplex":Jt(e);break;case"tight-tree":Zt(e);break;case"longest-path":Qt(e);break;default:Jt(e)}}$t.initLowLimValues=jt,$t.initCutValues=Pt,$t.calcCutValue=Wt,$t.leaveEdge=Ut,$t.enterEdge=Kt,$t.exchangeEdges=Ht;var Qt=be;function Zt(e){be(e),xe(e)}function Jt(e){$t(e)}var en=n(8364),tn=n(9195);function nn(e){var t=H(e,"root",{},"_root"),n=an(e),a=I(en.A(n))-1,i=2*a+1;e.graph().nestingRoot=t,r.A(e.edges(),(function(t){e.edge(t).minlen*=i}));var o=on(e)+1;r.A(e.children(),(function(r){rn(e,t,i,o,a,n,r)})),e.graph().nodeRankFactor=i}function rn(e,t,n,a,i,o,s){var l=e.children(s);if(l.length){var c=J(e,"_bt"),u=J(e,"_bb"),d=e.node(s);e.setParent(c,s),d.borderTop=c,e.setParent(u,s),d.borderBottom=u,r.A(l,(function(r){rn(e,t,n,a,i,o,r);var l=e.node(r),d=l.borderTop?l.borderTop:r,h=l.borderBottom?l.borderBottom:r,p=l.borderTop?a:2*a,f=d!==h?1:i-o[s]+1;e.setEdge(c,d,{weight:p,minlen:f,nestingEdge:!0}),e.setEdge(h,u,{weight:p,minlen:f,nestingEdge:!0})})),e.parent(s)||e.setEdge(t,c,{weight:0,minlen:i+o[s]})}else s!==t&&e.setEdge(t,s,{weight:0,minlen:n})}function an(e){var t={};function n(a,i){var o=e.children(a);o&&o.length&&r.A(o,(function(e){n(e,i+1)})),t[a]=i}return r.A(e.children(),(function(e){n(e,1)})),t}function on(e){return tn.A(e.edges(),(function(t,n){return t+e.edge(n).weight}),0)}function sn(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,r.A(e.edges(),(function(t){var n=e.edge(t);n.nestingEdge&&e.removeEdge(t)}))}var ln=n(5856);function cn(e,t,n){var a,i={};r.A(n,(function(n){var r,o,s=e.parent(n);while(s){if(r=e.parent(s),r?(o=i[r],i[r]=s):(o=a,a=s),o&&o!==s)return void t.setEdge(o,s);s=r}}))}function un(e,t,n){var a=dn(e),o=new u.T({compound:!0}).setGraph({root:a}).setDefaultNodeLabel((function(t){return e.node(t)}));return r.A(e.nodes(),(function(s){var l=e.node(s),c=e.parent(s);(l.rank===t||l.minRank<=t&&t<=l.maxRank)&&(o.setNode(s),o.setParent(s,c||a),r.A(e[n](s),(function(t){var n=t.v===s?t.w:t.v,r=o.edge(n,s),a=z.A(r)?0:r.weight;o.setEdge(n,s,{weight:e.edge(t).weight+a})})),i.A(l,"minRank")&&o.setNode(s,{borderLeft:l.borderLeft[t],borderRight:l.borderRight[t]}))})),o}function dn(e){var t;while(e.hasNode(t=a.A("_root")));return t}var hn=n(1018);function pn(e,t,n){var r=-1,a=e.length,i=t.length,o={};while(++r<a){var s=r<i?t[r]:void 0;n(o,e[r],s)}return o}var fn=pn;function mn(e,t){return fn(e||[],t||[],hn.A)}var gn=mn,vn=n(2308),yn=n(5347),bn=n(2623),wn=n(5501);function xn(e,t){var n=e.length;e.sort(t);while(n--)e[n]=e[n].value;return e}var kn=xn,_n=n(7528);function Cn(e,t){if(e!==t){var n=void 0!==e,r=null===e,a=e===e,i=(0,R.A)(e),o=void 0!==t,s=null===t,l=t===t,c=(0,R.A)(t);if(!s&&!c&&!i&&e>t||i&&o&&l&&!s&&!c||r&&o&&l||!n&&l||!a)return 1;if(!r&&!i&&!c&&e<t||c&&n&&a&&!r&&!i||s&&n&&a||!o&&a||!l)return-1}return 0}var En=Cn;function Rn(e,t,n){var r=-1,a=e.criteria,i=t.criteria,o=a.length,s=n.length;while(++r<o){var l=En(a[r],i[r]);if(l){if(r>=s)return l;var c=n[r];return l*("desc"==c?-1:1)}}return e.index-t.index}var Sn=Rn;function An(e,t,n){t=t.length?(0,yn.A)(t,(function(e){return(0,ze.A)(e)?function(t){return(0,bn.A)(t,1===e.length?e[0]:e)}:e})):[L.A];var r=-1;t=(0,yn.A)(t,(0,_n.A)(F.A));var a=(0,wn.A)(e,(function(e,n,a){var i=(0,yn.A)(t,(function(t){return t(e)}));return{criteria:i,index:++r,value:e}}));return kn(a,(function(e,t){return Sn(e,t,n)}))}var Tn=An,Mn=n(37),Ln=n(7571),On=(0,Mn.A)((function(e,t){if(null==e)return[];var n=t.length;return n>1&&(0,Ln.A)(e,t[0],t[1])?t=[]:n>2&&(0,Ln.A)(t[0],t[1],t[2])&&(t=[t[0]]),Tn(e,(0,vn.A)(t,1),[])})),In=On;function Nn(e,t){for(var n=0,r=1;r<t.length;++r)n+=Bn(e,t[r-1],t[r]);return n}function Bn(e,t,n){var a=gn(n,l.A(n,(function(e,t){return t}))),i=s.A(l.A(t,(function(t){return In(l.A(e.outEdges(t),(function(t){return{pos:a[t.w],weight:e.edge(t).weight}})),"pos")}))),o=1;while(o<n.length)o<<=1;var c=2*o-1;o-=1;var u=l.A(new Array(c),(function(){return 0})),d=0;return r.A(i.forEach((function(e){var t=e.pos+o;u[t]+=e.weight;var n=0;while(t>0)t%2&&(n+=u[t+1]),t=t-1>>1,u[t]+=e.weight;d+=e.weight*n}))),d}function Dn(e){var t={},n=De.A(e.nodes(),(function(t){return!e.children(t).length})),a=I(l.A(n,(function(t){return e.node(t).rank}))),o=l.A(c.A(a+1),(function(){return[]}));function s(n){if(!i.A(t,n)){t[n]=!0;var a=e.node(n);o[a.rank].push(n),r.A(e.successors(n),s)}}var u=In(n,(function(t){return e.node(t).rank}));return r.A(u,s),o}function Fn(e,t){return l.A(t,(function(t){var n=e.inEdges(t);if(n.length){var r=tn.A(n,(function(t,n){var r=e.edge(n),a=e.node(n.v);return{sum:t.sum+r.weight*a.order,weight:t.weight+r.weight}}),{sum:0,weight:0});return{v:t,barycenter:r.sum/r.weight,weight:r.weight}}return{v:t}}))}function $n(e,t){var n={};r.A(e,(function(e,t){var r=n[e.v]={indegree:0,in:[],out:[],vs:[e.v],i:t};z.A(e.barycenter)||(r.barycenter=e.barycenter,r.weight=e.weight)})),r.A(t.edges(),(function(e){var t=n[e.v],r=n[e.w];z.A(t)||z.A(r)||(r.indegree++,t.out.push(n[e.w]))}));var a=De.A(n,(function(e){return!e.indegree}));return Pn(a)}function Pn(e){var t=[];function n(e){return function(t){t.merged||(z.A(t.barycenter)||z.A(e.barycenter)||t.barycenter>=e.barycenter)&&zn(e,t)}}function a(t){return function(n){n["in"].push(t),0===--n.indegree&&e.push(n)}}while(e.length){var i=e.pop();t.push(i),r.A(i["in"].reverse(),n(i)),r.A(i.out,a(i))}return l.A(De.A(t,(function(e){return!e.merged})),(function(e){return C.A(e,["vs","i","barycenter","weight"])}))}function zn(e,t){var n=0,r=0;e.weight&&(n+=e.barycenter*e.weight,r+=e.weight),t.weight&&(n+=t.barycenter*t.weight,r+=t.weight),e.vs=t.vs.concat(e.vs),e.barycenter=n/r,e.weight=r,e.i=Math.min(t.i,e.i),t.merged=!0}function Wn(e,t){var n=te(e,(function(e){return i.A(e,"barycenter")})),a=n.lhs,o=In(n.rhs,(function(e){return-e.i})),l=[],c=0,u=0,d=0;a.sort(Vn(!!t)),d=jn(l,o,d),r.A(a,(function(e){d+=e.vs.length,l.push(e.vs),c+=e.barycenter*e.weight,u+=e.weight,d=jn(l,o,d)}));var h={vs:s.A(l)};return u&&(h.barycenter=c/u,h.weight=u),h}function jn(e,t,n){var r;while(t.length&&(r=N.A(t)).i<=n)t.pop(),e.push(r.vs),n++;return n}function Vn(e){return function(t,n){return t.barycenter<n.barycenter?-1:t.barycenter>n.barycenter?1:e?n.i-t.i:t.i-n.i}}function Un(e,t,n,a){var o=e.children(t),l=e.node(t),c=l?l.borderLeft:void 0,u=l?l.borderRight:void 0,d={};c&&(o=De.A(o,(function(e){return e!==c&&e!==u})));var h=Fn(e,o);r.A(h,(function(t){if(e.children(t.v).length){var r=Un(e,t.v,n,a);d[t.v]=r,i.A(r,"barycenter")&&Hn(t,r)}}));var p=$n(h,n);Kn(p,d);var f=Wn(p,a);if(c&&(f.vs=s.A([c,f.vs,u]),e.predecessors(c).length)){var m=e.node(e.predecessors(c)[0]),g=e.node(e.predecessors(u)[0]);i.A(f,"barycenter")||(f.barycenter=0,f.weight=0),f.barycenter=(f.barycenter*f.weight+m.order+g.order)/(f.weight+2),f.weight+=2}return f}function Kn(e,t){r.A(e,(function(e){e.vs=s.A(e.vs.map((function(e){return t[e]?t[e].vs:e})))}))}function Hn(e,t){z.A(e.barycenter)?(e.barycenter=t.barycenter,e.weight=t.weight):(e.barycenter=(e.barycenter*e.weight+t.barycenter*t.weight)/(e.weight+t.weight),e.weight+=t.weight)}function qn(e){var t=ee(e),n=Gn(e,c.A(1,t+1),"inEdges"),r=Gn(e,c.A(t-1,-1,-1),"outEdges"),a=Dn(e);Yn(e,a);for(var i,o=Number.POSITIVE_INFINITY,s=0,l=0;l<4;++s,++l){Xn(s%2?n:r,s%4>=2),a=Y(e);var u=Nn(e,a);u<o&&(l=0,i=ln.A(a),o=u)}Yn(e,i)}function Gn(e,t,n){return l.A(t,(function(t){return un(e,t,n)}))}function Xn(e,t){var n=new u.T;r.A(e,(function(e){var a=e.graph().root,i=Un(e,a,n,t);r.A(i.vs,(function(t,n){e.node(t).order=n})),cn(e,n,i.vs)}))}function Yn(e,t){r.A(t,(function(t){r.A(t,(function(t,n){e.node(t).order=n}))}))}function Qn(e){var t=Jn(e);r.A(e.graph().dummyChains,(function(n){var r=e.node(n),a=r.edgeObj,i=Zn(e,t,a.v,a.w),o=i.path,s=i.lca,l=0,c=o[l],u=!0;while(n!==a.w){if(r=e.node(n),u){while((c=o[l])!==s&&e.node(c).maxRank<r.rank)l++;c===s&&(u=!1)}if(!u){while(l<o.length-1&&e.node(c=o[l+1]).minRank<=r.rank)l++;c=o[l]}e.setParent(n,c),n=e.successors(n)[0]}}))}function Zn(e,t,n,r){var a,i,o=[],s=[],l=Math.min(t[n].low,t[r].low),c=Math.max(t[n].lim,t[r].lim);a=n;do{a=e.parent(a),o.push(a)}while(a&&(t[a].low>l||c>t[a].lim));i=a,a=r;while((a=e.parent(a))!==i)s.push(a);return{path:o.concat(s.reverse()),lca:i}}function Jn(e){var t={},n=0;function a(i){var o=n;r.A(e.children(i),a),t[i]={low:o,lim:n++}}return r.A(e.children(),a),t}n(8872);var er=n(664),tr=n(1929),nr=n(6636);function rr(e,t){return null==e?e:(0,er.A)(e,(0,tr.A)(t),nr.A)}var ar=rr;function ir(e,t){var n={};function a(t,a){var i=0,o=0,s=t.length,l=N.A(a);return r.A(a,(function(t,c){var u=sr(e,t),d=u?e.node(u).order:s;(u||t===l)&&(r.A(a.slice(o,c+1),(function(t){r.A(e.predecessors(t),(function(r){var a=e.node(r),o=a.order;!(o<i||d<o)||a.dummy&&e.node(t).dummy||lr(n,r,t)}))})),o=c+1,i=d)})),a}return tn.A(t,a),n}function or(e,t){var n={};function a(t,a,i,o,s){var l;r.A(c.A(a,i),(function(a){l=t[a],e.node(l).dummy&&r.A(e.predecessors(l),(function(t){var r=e.node(t);r.dummy&&(r.order<o||r.order>s)&&lr(n,t,l)}))}))}function i(t,n){var i,o=-1,s=0;return r.A(n,(function(r,l){if("border"===e.node(r).dummy){var c=e.predecessors(r);c.length&&(i=e.node(c[0]).order,a(n,s,l,o,i),s=l,o=i)}a(n,s,n.length,i,t.length)})),n}return tn.A(t,i),n}function sr(e,t){if(e.node(t).dummy)return Be(e.predecessors(t),(function(t){return e.node(t).dummy}))}function lr(e,t,n){if(t>n){var r=t;t=n,n=r}var a=e[t];a||(e[t]=a={}),a[n]=!0}function cr(e,t,n){if(t>n){var r=t;t=n,n=r}return i.A(e[t],n)}function ur(e,t,n,a){var i={},o={},s={};return r.A(t,(function(e){r.A(e,(function(e,t){i[e]=e,o[e]=e,s[e]=t}))})),r.A(t,(function(e){var t=-1;r.A(e,(function(e){var r=a(e);if(r.length){r=In(r,(function(e){return s[e]}));for(var l=(r.length-1)/2,c=Math.floor(l),u=Math.ceil(l);c<=u;++c){var d=r[c];o[e]===e&&t<s[d]&&!cr(n,e,d)&&(o[d]=e,o[e]=i[e]=i[d],t=s[d])}}}))})),{root:i,align:o}}function dr(e,t,n,a,i){var o={},s=hr(e,t,n,i),l=i?"borderLeft":"borderRight";function c(e,t){var n=s.nodes(),r=n.pop(),a={};while(r)a[r]?e(r):(a[r]=!0,n.push(r),n=n.concat(t(r))),r=n.pop()}function u(e){o[e]=s.inEdges(e).reduce((function(e,t){return Math.max(e,o[t.v]+s.edge(t))}),0)}function d(t){var n=s.outEdges(t).reduce((function(e,t){return Math.min(e,o[t.w]-s.edge(t))}),Number.POSITIVE_INFINITY),r=e.node(t);n!==Number.POSITIVE_INFINITY&&r.borderType!==l&&(o[t]=Math.max(o[t],n))}return c(u,s.predecessors.bind(s)),c(d,s.successors.bind(s)),r.A(a,(function(e){o[e]=o[n[e]]})),o}function hr(e,t,n,a){var i=new u.T,o=e.graph(),s=vr(o.nodesep,o.edgesep,a);return r.A(t,(function(t){var a;r.A(t,(function(t){var r=n[t];if(i.setNode(r),a){var o=n[a],l=i.edge(o,r);i.setEdge(o,r,Math.max(s(e,t,a),l||0))}a=t}))})),i}function pr(e,t){return ye(en.A(t),(function(t){var n=Number.NEGATIVE_INFINITY,r=Number.POSITIVE_INFINITY;return ar(t,(function(t,a){var i=yr(e,a)/2;n=Math.max(t+i,n),r=Math.min(t-i,r)})),n-r}))}function fr(e,t){var n=en.A(t),a=U(n),i=I(n);r.A(["u","d"],(function(n){r.A(["l","r"],(function(r){var o,s=n+r,l=e[s];if(l!==t){var c=en.A(l);o="l"===r?a-U(c):i-I(c),o&&(e[s]=P(l,(function(e){return e+o})))}}))}))}function mr(e,t){return P(e.ul,(function(n,r){if(t)return e[t.toLowerCase()][r];var a=In(l.A(e,r));return(a[1]+a[2])/2}))}function gr(e){var t,n=Y(e),a=_.A(ir(e,n),or(e,n)),i={};r.A(["u","d"],(function(o){t="u"===o?n:en.A(n).reverse(),r.A(["l","r"],(function(n){"r"===n&&(t=l.A(t,(function(e){return en.A(e).reverse()})));var r=("u"===o?e.predecessors:e.successors).bind(e),s=ur(e,t,a,r),c=dr(e,t,s.root,s.align,"r"===n);"r"===n&&(c=P(c,(function(e){return-e}))),i[o+n]=c}))}));var o=pr(e,i);return fr(i,o),mr(i,e.graph().align)}function vr(e,t,n){return function(r,a,o){var s,l=r.node(a),c=r.node(o),u=0;if(u+=l.width/2,i.A(l,"labelpos"))switch(l.labelpos.toLowerCase()){case"l":s=-l.width/2;break;case"r":s=l.width/2;break}if(s&&(u+=n?s:-s),s=0,u+=(l.dummy?t:e)/2,u+=(c.dummy?t:e)/2,u+=c.width/2,i.A(c,"labelpos"))switch(c.labelpos.toLowerCase()){case"l":s=c.width/2;break;case"r":s=-c.width/2;break}return s&&(u+=n?s:-s),s=0,u}}function yr(e,t){return e.node(t).width}function br(e){e=G(e),wr(e),r.A(gr(e),(function(t,n){e.node(n).x=t}))}function wr(e){var t=Y(e),n=e.graph().ranksep,a=0;r.A(t,(function(t){var i=I(l.A(t,(function(t){return e.node(t).height})));r.A(t,(function(t){e.node(t).y=a+i/2})),a+=i+n}))}function xr(e,t){var n=t&&t.debugTiming?ne:re;n("layout",(function(){var t=n(" buildLayoutGraph",(function(){return Or(e)}));n(" runLayout",(function(){kr(t,n)})),n(" updateInputGraph",(function(){_r(e,t)}))}))}function kr(e,t){t(" makeSpaceForEdgeLabels",(function(){Ir(e)})),t(" removeSelfEdges",(function(){jr(e)})),t(" acyclic",(function(){w(e)})),t(" nestingGraph.run",(function(){nn(e)})),t(" rank",(function(){Yt(G(e))})),t(" injectEdgeLabelProxies",(function(){Nr(e)})),t(" removeEmptyRanks",(function(){Z(e)})),t(" nestingGraph.cleanup",(function(){sn(e)})),t(" normalizeRanks",(function(){Q(e)})),t(" assignRankMinMax",(function(){Br(e)})),t(" removeEdgeLabelProxies",(function(){Dr(e)})),t(" normalize.run",(function(){fe(e)})),t(" parentDummyChains",(function(){Qn(e)})),t(" addBorderSegments",(function(){ae(e)})),t(" order",(function(){qn(e)})),t(" insertSelfEdges",(function(){Vr(e)})),t(" adjustCoordinateSystem",(function(){oe(e)})),t(" position",(function(){br(e)})),t(" positionSelfEdges",(function(){Ur(e)})),t(" removeBorderNodes",(function(){Wr(e)})),t(" normalize.undo",(function(){ge(e)})),t(" fixupEdgeLabelCoords",(function(){Pr(e)})),t(" undoCoordinateSystem",(function(){se(e)})),t(" translateGraph",(function(){Fr(e)})),t(" assignNodeIntersects",(function(){$r(e)})),t(" reversePoints",(function(){zr(e)})),t(" acyclic.undo",(function(){k(e)}))}function _r(e,t){r.A(e.nodes(),(function(n){var r=e.node(n),a=t.node(n);r&&(r.x=a.x,r.y=a.y,t.children(n).length&&(r.width=a.width,r.height=a.height))})),r.A(e.edges(),(function(n){var r=e.edge(n),a=t.edge(n);r.points=a.points,i.A(a,"x")&&(r.x=a.x,r.y=a.y)})),e.graph().width=t.graph().width,e.graph().height=t.graph().height}var Cr=["nodesep","edgesep","ranksep","marginx","marginy"],Er={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},Rr=["acyclicer","ranker","rankdir","align"],Sr=["width","height"],Ar={width:0,height:0},Tr=["minlen","weight","width","height","labeloffset"],Mr={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},Lr=["labelpos"];function Or(e){var t=new u.T({multigraph:!0,compound:!0}),n=Hr(e.graph());return t.setGraph(_.A({},Er,Kr(n,Cr),C.A(n,Rr))),r.A(e.nodes(),(function(n){var r=Hr(e.node(n));t.setNode(n,E.A(Kr(r,Sr),Ar)),t.setParent(n,e.parent(n))})),r.A(e.edges(),(function(n){var r=Hr(e.edge(n));t.setEdge(n,_.A({},Mr,Kr(r,Tr),C.A(r,Lr)))})),t}function Ir(e){var t=e.graph();t.ranksep/=2,r.A(e.edges(),(function(n){var r=e.edge(n);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===t.rankdir||"BT"===t.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)}))}function Nr(e){r.A(e.edges(),(function(t){var n=e.edge(t);if(n.width&&n.height){var r=e.node(t.v),a=e.node(t.w),i={rank:(a.rank-r.rank)/2+r.rank,e:t};H(e,"edge-proxy",i,"_ep")}}))}function Br(e){var t=0;r.A(e.nodes(),(function(n){var r=e.node(n);r.borderTop&&(r.minRank=e.node(r.borderTop).rank,r.maxRank=e.node(r.borderBottom).rank,t=I(t,r.maxRank))})),e.graph().maxRank=t}function Dr(e){r.A(e.nodes(),(function(t){var n=e.node(t);"edge-proxy"===n.dummy&&(e.edge(n.e).labelRank=n.rank,e.removeNode(t))}))}function Fr(e){var t=Number.POSITIVE_INFINITY,n=0,a=Number.POSITIVE_INFINITY,o=0,s=e.graph(),l=s.marginx||0,c=s.marginy||0;function u(e){var r=e.x,i=e.y,s=e.width,l=e.height;t=Math.min(t,r-s/2),n=Math.max(n,r+s/2),a=Math.min(a,i-l/2),o=Math.max(o,i+l/2)}r.A(e.nodes(),(function(t){u(e.node(t))})),r.A(e.edges(),(function(t){var n=e.edge(t);i.A(n,"x")&&u(n)})),t-=l,a-=c,r.A(e.nodes(),(function(n){var r=e.node(n);r.x-=t,r.y-=a})),r.A(e.edges(),(function(n){var o=e.edge(n);r.A(o.points,(function(e){e.x-=t,e.y-=a})),i.A(o,"x")&&(o.x-=t),i.A(o,"y")&&(o.y-=a)})),s.width=n-t+l,s.height=o-a+c}function $r(e){r.A(e.edges(),(function(t){var n,r,a=e.edge(t),i=e.node(t.v),o=e.node(t.w);a.points?(n=a.points[0],r=a.points[a.points.length-1]):(a.points=[],n=o,r=i),a.points.unshift(X(i,n)),a.points.push(X(o,r))}))}function Pr(e){r.A(e.edges(),(function(t){var n=e.edge(t);if(i.A(n,"x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset;break}}))}function zr(e){r.A(e.edges(),(function(t){var n=e.edge(t);n.reversed&&n.points.reverse()}))}function Wr(e){r.A(e.nodes(),(function(t){if(e.children(t).length){var n=e.node(t),r=e.node(n.borderTop),a=e.node(n.borderBottom),i=e.node(N.A(n.borderLeft)),o=e.node(N.A(n.borderRight));n.width=Math.abs(o.x-i.x),n.height=Math.abs(a.y-r.y),n.x=i.x+n.width/2,n.y=r.y+n.height/2}})),r.A(e.nodes(),(function(t){"border"===e.node(t).dummy&&e.removeNode(t)}))}function jr(e){r.A(e.edges(),(function(t){if(t.v===t.w){var n=e.node(t.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}}))}function Vr(e){var t=Y(e);r.A(t,(function(t){var n=0;r.A(t,(function(t,a){var i=e.node(t);i.order=a+n,r.A(i.selfEdges,(function(t){H(e,"selfedge",{width:t.label.width,height:t.label.height,rank:i.rank,order:a+ ++n,e:t.e,label:t.label},"_se")})),delete i.selfEdges}))}))}function Ur(e){r.A(e.nodes(),(function(t){var n=e.node(t);if("selfedge"===n.dummy){var r=e.node(n.e.v),a=r.x+r.width/2,i=r.y,o=n.x-a,s=r.height/2;e.setEdge(n.e,n.label),e.removeNode(t),n.label.points=[{x:a+2*o/3,y:i-s},{x:a+5*o/6,y:i-s},{x:a+o,y:i},{x:a+5*o/6,y:i+s},{x:a+2*o/3,y:i+s}],n.label.x=n.x,n.label.y=n.y}}))}function Kr(e,t){return P(C.A(e,t),Number)}function Hr(e){var t={};return r.A(e,(function(e,n){t[n.toLowerCase()]=e})),t}},9904:function(e,t,n){"use strict";n.d(t,{T:function(){return v}});var r=n(1731),a=n(9063),i=n(7083),o=n(7351),s=n(3811),l=n(7297),c=n(8749),u=n(1631),d=n(58),h=n(8364),p=n(9195),f="\0",m="\0",g="";class v{constructor(e={}){this._isDirected=!r.A(e,"directed")||e.directed,this._isMultigraph=!!r.A(e,"multigraph")&&e.multigraph,this._isCompound=!!r.A(e,"compound")&&e.compound,this._label=void 0,this._defaultNodeLabelFn=a.A(void 0),this._defaultEdgeLabelFn=a.A(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[m]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return i.A(e)||(e=a.A(e)),this._defaultNodeLabelFn=e,this}nodeCount(){return this._nodeCount}nodes(){return o.A(this._nodes)}sources(){var e=this;return s.A(this.nodes(),(function(t){return l.A(e._in[t])}))}sinks(){var e=this;return s.A(this.nodes(),(function(t){return l.A(e._out[t])}))}setNodes(e,t){var n=arguments,r=this;return c.A(e,(function(e){n.length>1?r.setNode(e,t):r.setNode(e)})),this}setNode(e,t){return r.A(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=m,this._children[e]={},this._children[m][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return r.A(this._nodes,e)}removeNode(e){var t=this;if(r.A(this._nodes,e)){var n=function(e){t.removeEdge(t._edgeObjs[e])};delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],c.A(this.children(e),(function(e){t.setParent(e)})),delete this._children[e]),c.A(o.A(this._in[e]),n),delete this._in[e],delete this._preds[e],c.A(o.A(this._out[e]),n),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,t){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(u.A(t))t=m;else{t+="";for(var n=t;!u.A(n);n=this.parent(n))if(n===e)throw new Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var t=this._parent[e];if(t!==m)return t}}children(e){if(u.A(e)&&(e=m),this._isCompound){var t=this._children[e];if(t)return o.A(t)}else{if(e===m)return this.nodes();if(this.hasNode(e))return[]}}predecessors(e){var t=this._preds[e];if(t)return o.A(t)}successors(e){var t=this._sucs[e];if(t)return o.A(t)}neighbors(e){var t=this.predecessors(e);if(t)return d.A(t,this.successors(e))}isLeaf(e){var t;return t=this.isDirected()?this.successors(e):this.neighbors(e),0===t.length}filterNodes(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var n=this;c.A(this._nodes,(function(n,r){e(r)&&t.setNode(r,n)})),c.A(this._edgeObjs,(function(e){t.hasNode(e.v)&&t.hasNode(e.w)&&t.setEdge(e,n.edge(e))}));var r={};function a(e){var i=n.parent(e);return void 0===i||t.hasNode(i)?(r[e]=i,i):i in r?r[i]:a(i)}return this._isCompound&&c.A(t.nodes(),(function(e){t.setParent(e,a(e))})),t}setDefaultEdgeLabel(e){return i.A(e)||(e=a.A(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return h.A(this._edgeObjs)}setPath(e,t){var n=this,r=arguments;return p.A(e,(function(e,a){return r.length>1?n.setEdge(e,a,t):n.setEdge(e,a),a})),this}setEdge(){var e,t,n,a,i=!1,o=arguments[0];"object"===typeof o&&null!==o&&"v"in o?(e=o.v,t=o.w,n=o.name,2===arguments.length&&(a=arguments[1],i=!0)):(e=o,t=arguments[1],n=arguments[3],arguments.length>2&&(a=arguments[2],i=!0)),e=""+e,t=""+t,u.A(n)||(n=""+n);var s=w(this._isDirected,e,t,n);if(r.A(this._edgeLabels,s))return i&&(this._edgeLabels[s]=a),this;if(!u.A(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[s]=i?a:this._defaultEdgeLabelFn(e,t,n);var l=x(this._isDirected,e,t,n);return e=l.v,t=l.w,Object.freeze(l),this._edgeObjs[s]=l,y(this._preds[t],e),y(this._sucs[e],t),this._in[t][s]=l,this._out[e][s]=l,this._edgeCount++,this}edge(e,t,n){var r=1===arguments.length?k(this._isDirected,arguments[0]):w(this._isDirected,e,t,n);return this._edgeLabels[r]}hasEdge(e,t,n){var a=1===arguments.length?k(this._isDirected,arguments[0]):w(this._isDirected,e,t,n);return r.A(this._edgeLabels,a)}removeEdge(e,t,n){var r=1===arguments.length?k(this._isDirected,arguments[0]):w(this._isDirected,e,t,n),a=this._edgeObjs[r];return a&&(e=a.v,t=a.w,delete this._edgeLabels[r],delete this._edgeObjs[r],b(this._preds[t],e),b(this._sucs[e],t),delete this._in[t][r],delete this._out[e][r],this._edgeCount--),this}inEdges(e,t){var n=this._in[e];if(n){var r=h.A(n);return t?s.A(r,(function(e){return e.v===t})):r}}outEdges(e,t){var n=this._out[e];if(n){var r=h.A(n);return t?s.A(r,(function(e){return e.w===t})):r}}nodeEdges(e,t){var n=this.inEdges(e,t);if(n)return n.concat(this.outEdges(e,t))}}function y(e,t){e[t]?e[t]++:e[t]=1}function b(e,t){--e[t]||delete e[t]}function w(e,t,n,r){var a=""+t,i=""+n;if(!e&&a>i){var o=a;a=i,i=o}return a+g+i+g+(u.A(r)?f:r)}function x(e,t,n,r){var a=""+t,i=""+n;if(!e&&a>i){var o=a;a=i,i=o}var s={v:a,w:i};return r&&(s.name=r),s}function k(e,t){return w(e,t.v,t.w,t.name)}v.prototype._nodeCount=0,v.prototype._edgeCount=0},8668:function(e,t,n){"use strict";n.d(t,{T:function(){return r.T}});var r=n(9904)},1636:function(e,t,n){"use strict";n.d(t,{M:function(){return o}});var r=n(1631),a=n(4266),i=n(3357);n(9904);function o(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:s(e),edges:l(e)};return r.A(e.graph())||(t.value=a.A(e.graph())),t}function s(e){return i.A(e.nodes(),(function(t){var n=e.node(t),a=e.parent(t),i={v:t};return r.A(n)||(i.value=n),r.A(a)||(i.parent=a),i}))}function l(e){return i.A(e.edges(),(function(t){var n=e.edge(t),a={v:t.v,w:t.w};return r.A(t.name)||(a.name=t.name),r.A(n)||(a.value=n),a}))}},9246:function(e,t,n){"use strict";n.d(t,{XX:function(){return Y}});n(8992),n(3949);var r=n(8458),a=n(1731),i=n(6649),o=n(8749),s=n(4038),l=n(4422),c={normal:d,vee:h,undirected:p};function u(e){c=e}function d(e,t,n,r){var a=e.append("marker").attr("id",t).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),i=a.append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");l.AV(i,n[r+"Style"]),n[r+"Class"]&&i.attr("class",n[r+"Class"])}function h(e,t,n,r){var a=e.append("marker").attr("id",t).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),i=a.append("path").attr("d","M 0 0 L 10 5 L 0 10 L 4 5 z").style("stroke-width",1).style("stroke-dasharray","1,0");l.AV(i,n[r+"Style"]),n[r+"Class"]&&i.attr("class",n[r+"Class"])}function p(e,t,n,r){var a=e.append("marker").attr("id",t).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),i=a.append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");l.AV(i,n[r+"Style"]),n[r+"Class"]&&i.attr("class",n[r+"Class"])}n(4520);var f=n(8317);function m(e,t){var n=e;return n.node().appendChild(t.label),l.AV(n,t.labelStyle),n}function g(e,t){for(var n=e.append("text"),r=v(t.label).split("\n"),a=0;a<r.length;a++)n.append("tspan").attr("xml:space","preserve").attr("dy","1em").attr("x","1").text(r[a]);return l.AV(n,t.labelStyle),n}function v(e){for(var t,n="",r=!1,a=0;a<e.length;++a)if(t=e[a],r){switch(t){case"n":n+="\n";break;default:n+=t}r=!1}else"\\"===t?r=!0:n+=t;return n}function y(e,t,n){var r=t.label,a=e.append("g");"svg"===t.labelType?m(a,t):"string"!==typeof r||"html"===t.labelType?(0,f.H)(a,t):g(a,t);var i,o=a.node().getBBox();switch(n){case"top":i=-t.height/2;break;case"bottom":i=t.height/2-o.height;break;default:i=-o.height/2}return a.attr("transform","translate("+-o.width/2+","+i+")"),a}var b=function(e,t){var n=t.nodes().filter((function(e){return l.De(t,e)})),a=e.selectAll("g.cluster").data(n,(function(e){return e}));l.c$(a.exit(),t).style("opacity",0).remove();var i=a.enter().append("g").attr("class","cluster").attr("id",(function(e){var n=t.node(e);return n.id})).style("opacity",0).each((function(e){var n=t.node(e),a=r.Ltv(this);r.Ltv(this).append("rect");var i=a.append("g").attr("class","label");y(i,n,n.clusterLabelPos)}));return a=a.merge(i),a=l.c$(a,t).style("opacity",1),a.selectAll("rect").each((function(e){var n=t.node(e),a=r.Ltv(this);l.AV(a,n.style)})),a};function w(e){b=e}let x=function(e,t){var n,i=e.selectAll("g.edgeLabel").data(t.edges(),(function(e){return l.gh(e)})).classed("update",!0);return i.exit().remove(),i.enter().append("g").classed("edgeLabel",!0).style("opacity",0),i=e.selectAll("g.edgeLabel"),i.each((function(e){var n=r.Ltv(this);n.select(".label").remove();var i=t.edge(e),o=y(n,t.edge(e),0).classed("label",!0),s=o.node().getBBox();i.labelId&&o.attr("id",i.labelId),a.A(i,"width")||(i.width=s.width),a.A(i,"height")||(i.height=s.height)})),n=i.exit?i.exit():i.selectAll(null),l.c$(n,t).style("opacity",0).remove(),i};function k(e){x=e}n(4114),n(1454);var _=n(1529),C=n(6077);function E(e,t){return e.intersect(t)}var R=function(e,t,n){var a=e.selectAll("g.edgePath").data(t.edges(),(function(e){return l.gh(e)})).classed("update",!0),i=O(a,t);I(a,t);var o=void 0!==a.merge?a.merge(i):a;return l.c$(o,t).style("opacity",1),o.each((function(e){var n=r.Ltv(this),a=t.edge(e);a.elem=this,a.id&&n.attr("id",a.id),l.nh(n,a["class"],(n.classed("update")?"update ":"")+"edgePath")})),o.selectAll("path.path").each((function(e){var n=t.edge(e);n.arrowheadId=_.A("arrowhead");var a=r.Ltv(this).attr("marker-end",(function(){return"url("+A(location.href,n.arrowheadId)+")"})).style("fill","none");l.c$(a,t).attr("d",(function(e){return T(t,e)})),l.AV(a,n.style)})),o.selectAll("defs *").remove(),o.selectAll("defs").each((function(e){var a=t.edge(e),i=n[a.arrowhead];i(r.Ltv(this),a.arrowheadId,a,"arrowhead")})),o};function S(e){R=e}function A(e,t){var n=e.split("#")[0];return n+"#"+t}function T(e,t){var n=e.edge(t),r=e.node(t.v),a=e.node(t.w),i=n.points.slice(1,n.points.length-1);return i.unshift(E(r,i[0])),i.push(E(a,i[i.length-1])),M(n,i)}function M(e,t){var n=(r.n8j||r.JWy.line)().x((function(e){return e.x})).y((function(e){return e.y}));return(n.curve||n.interpolate)(e.curve),n(t)}function L(e){var t=e.getBBox(),n=e.ownerSVGElement.getScreenCTM().inverse().multiply(e.getScreenCTM()).translate(t.width/2,t.height/2);return{x:n.e,y:n.f}}function O(e,t){var n=e.enter().append("g").attr("class","edgePath").style("opacity",0);return n.append("path").attr("class","path").attr("d",(function(e){var n=t.edge(e),r=t.node(e.v).elem,a=C.A(n.points.length).map((function(){return L(r)}));return M(n,a)})),n.append("defs"),n}function I(e,t){var n=e.exit();l.c$(n,t).style("opacity",0).remove()}var N=n(1996),B=function(e,t,n){var i,o=t.nodes().filter((function(e){return!l.De(t,e)})),s=e.selectAll("g.node").data(o,(function(e){return e})).classed("update",!0);return s.exit().remove(),s.enter().append("g").attr("class","node").style("opacity",0),s=e.selectAll("g.node"),s.each((function(e){var i=t.node(e),o=r.Ltv(this);l.nh(o,i["class"],(o.classed("update")?"update ":"")+"node"),o.select("g.label").remove();var s=o.append("g").attr("class","label"),c=y(s,i),u=n[i.shape],d=N.A(c.node().getBBox(),"width","height");i.elem=this,i.id&&o.attr("id",i.id),i.labelId&&s.attr("id",i.labelId),a.A(i,"width")&&(d.width=i.width),a.A(i,"height")&&(d.height=i.height),d.width+=i.paddingLeft+i.paddingRight,d.height+=i.paddingTop+i.paddingBottom,s.attr("transform","translate("+(i.paddingLeft-i.paddingRight)/2+","+(i.paddingTop-i.paddingBottom)/2+")");var h=r.Ltv(this);h.select(".label-container").remove();var p=u(h,d,i).classed("label-container",!0);l.AV(p,i.style);var f=p.node().getBBox();i.width=f.width,i.height=f.height})),i=s.exit?s.exit():s.selectAll(null),l.c$(i,t).style("opacity",0).remove(),s};function D(e){B=e}function F(e,t){var n=e.filter((function(){return!r.Ltv(this).classed("update")}));function a(e){var n=t.node(e);return"translate("+n.x+","+n.y+")"}n.attr("transform",a),l.c$(e,t).style("opacity",1).attr("transform",a),l.c$(n.selectAll("rect"),t).attr("width",(function(e){return t.node(e).width})).attr("height",(function(e){return t.node(e).height})).attr("x",(function(e){var n=t.node(e);return-n.width/2})).attr("y",(function(e){var n=t.node(e);return-n.height/2}))}function $(e,t){var n=e.filter((function(){return!r.Ltv(this).classed("update")}));function i(e){var n=t.edge(e);return a.A(n,"x")?"translate("+n.x+","+n.y+")":""}n.attr("transform",i),l.c$(e,t).style("opacity",1).attr("transform",i)}function P(e,t){var n=e.filter((function(){return!r.Ltv(this).classed("update")}));function a(e){var n=t.node(e);return"translate("+n.x+","+n.y+")"}n.attr("transform",a),l.c$(e,t).style("opacity",1).attr("transform",a)}function z(e,t,n,r){var a=e.x,i=e.y,o=a-r.x,s=i-r.y,l=Math.sqrt(t*t*s*s+n*n*o*o),c=Math.abs(t*n*o/l);r.x<a&&(c=-c);var u=Math.abs(t*n*s/l);return r.y<i&&(u=-u),{x:a+c,y:i+u}}function W(e,t,n){return z(e,t,t,n)}var j=n(8845),V=n(9862),U={rect:H,ellipse:q,circle:G,diamond:X};function K(e){U=e}function H(e,t,n){var r=e.insert("rect",":first-child").attr("rx",n.rx).attr("ry",n.ry).attr("x",-t.width/2).attr("y",-t.height/2).attr("width",t.width).attr("height",t.height);return n.intersect=function(e){return(0,V.C)(n,e)},r}function q(e,t,n){var r=t.width/2,a=t.height/2,i=e.insert("ellipse",":first-child").attr("x",-t.width/2).attr("y",-t.height/2).attr("rx",r).attr("ry",a);return n.intersect=function(e){return z(n,r,a,e)},i}function G(e,t,n){var r=Math.max(t.width,t.height)/2,a=e.insert("circle",":first-child").attr("x",-t.width/2).attr("y",-t.height/2).attr("r",r);return n.intersect=function(e){return W(n,r,e)},a}function X(e,t,n){var r=t.width*Math.SQRT2/2,a=t.height*Math.SQRT2/2,i=[{x:0,y:-a},{x:-r,y:0},{x:0,y:a},{x:r,y:0}],o=e.insert("polygon",":first-child").attr("points",i.map((function(e){return e.x+","+e.y})).join(" "));return n.intersect=function(e){return(0,j.k)(n,i,e)},o}function Y(){var e=function(e,t){J(t);var n=te(e,"output"),r=te(n,"clusters"),a=te(n,"edgePaths"),i=x(te(n,"edgeLabels"),t),o=B(te(n,"nodes"),t,U);(0,s.Zp)(t),P(o,t),$(i,t),R(a,t,c);var l=b(r,t);F(l,t),ee(t)};return e.createNodes=function(t){return arguments.length?(D(t),e):B},e.createClusters=function(t){return arguments.length?(w(t),e):b},e.createEdgeLabels=function(t){return arguments.length?(k(t),e):x},e.createEdgePaths=function(t){return arguments.length?(S(t),e):R},e.shapes=function(t){return arguments.length?(K(t),e):U},e.arrows=function(t){return arguments.length?(u(t),e):c},e}var Q={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},Z={arrowhead:"normal",curve:r.lUB};function J(e){e.nodes().forEach((function(t){var n=e.node(t);a.A(n,"label")||e.children(t).length||(n.label=t),a.A(n,"paddingX")&&i.A(n,{paddingLeft:n.paddingX,paddingRight:n.paddingX}),a.A(n,"paddingY")&&i.A(n,{paddingTop:n.paddingY,paddingBottom:n.paddingY}),a.A(n,"padding")&&i.A(n,{paddingLeft:n.padding,paddingRight:n.padding,paddingTop:n.padding,paddingBottom:n.padding}),i.A(n,Q),o.A(["paddingLeft","paddingRight","paddingTop","paddingBottom"],(function(e){n[e]=Number(n[e])})),a.A(n,"width")&&(n._prevWidth=n.width),a.A(n,"height")&&(n._prevHeight=n.height)})),e.edges().forEach((function(t){var n=e.edge(t);a.A(n,"label")||(n.label=""),i.A(n,Z)}))}function ee(e){o.A(e.nodes(),(function(t){var n=e.node(t);a.A(n,"_prevWidth")?n.width=n._prevWidth:delete n.width,a.A(n,"_prevHeight")?n.height=n._prevHeight:delete n.height,delete n._prevWidth,delete n._prevHeight}))}function te(e,t){var n=e.select("g."+t);return n.empty()&&(n=e.append("g").attr("class",t)),n}n(8668)},9077:function(e,t,n){"use strict";n.d(t,{A:function(){return r}});var r=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n}},47:function(e,t,n){"use strict";n.d(t,{S2:function(){return S},fg:function(){return A}});var r=n(6768),a=n(144),i=n(4232),o=n(813);const s=Symbol("buttonGroupContextKey");var l=n(261),c=n(8114),u=n(4216),d=n(2436);const h=(e,t)=>{(0,l.b)({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},(0,r.EW)((()=>"text"===e.type)));const n=(0,r.WQ)(s,void 0),i=(0,c.H3)("button"),{form:o}=(0,u.j)(),h=(0,d.NV)((0,r.EW)((()=>null==n?void 0:n.size))),p=(0,d.CB)(),f=(0,a.KR)(),m=(0,r.Ht)(),g=(0,r.EW)((()=>e.type||(null==n?void 0:n.type)||"")),v=(0,r.EW)((()=>{var t,n,r;return null!=(r=null!=(n=e.autoInsertSpace)?n:null==(t=i.value)?void 0:t.autoInsertSpace)&&r})),y=(0,r.EW)((()=>"button"===e.tag?{ariaDisabled:p.value||e.loading,disabled:p.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{})),b=(0,r.EW)((()=>{var e;const t=null==(e=m.default)?void 0:e.call(m);if(v.value&&1===(null==t?void 0:t.length)){const e=t[0];if((null==e?void 0:e.type)===r.EY){const t=e.children;return/^\p{Unified_Ideograph}{2}$/u.test(t.trim())}}return!1})),w=n=>{p.value||e.loading?n.stopPropagation():("reset"===e.nativeType&&(null==o||o.resetFields()),t("click",n))};return{_disabled:p,_size:h,_type:g,_ref:f,_props:y,shouldAddSpace:b,handleClick:w}};var p=n(1585),f=n(1513),m=n(3513);function g(e,t=20){return e.mix("#141414",t).toString()}function v(e){const t=(0,d.CB)(),n=(0,m.DU)("button");return(0,r.EW)((()=>{let r={},a=e.color;if(a){const i=a.match(/var\((.*?)\)/);i&&(a=window.getComputedStyle(window.document.documentElement).getPropertyValue(i[1]));const o=new f.q(a),s=e.dark?o.tint(20).toString():g(o,20);if(e.plain)r=n.cssVarBlock({"bg-color":e.dark?g(o,90):o.tint(90).toString(),"text-color":a,"border-color":e.dark?g(o,50):o.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":a,"hover-border-color":a,"active-bg-color":s,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":s}),t.value&&(r[n.cssVarBlockName("disabled-bg-color")]=e.dark?g(o,90):o.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=e.dark?g(o,50):o.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=e.dark?g(o,80):o.tint(80).toString());else{const i=e.dark?g(o,30):o.tint(30).toString(),l=o.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":a,"text-color":l,"border-color":a,"hover-bg-color":i,"hover-text-color":l,"hover-border-color":i,"active-bg-color":s,"active-border-color":s}),t.value){const t=e.dark?g(o,50):o.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=t,r[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,r[n.cssVarBlockName("disabled-border-color")]=t}}}return r}))}var y=n(9077);const b=(0,r.pM)({name:"ElButton"}),w=(0,r.pM)({...b,props:p.D$,emits:p.ro,setup(e,{expose:t,emit:n}){const s=e,l=v(s),c=(0,m.DU)("button"),{_ref:u,_size:d,_type:p,_disabled:f,_props:g,shouldAddSpace:y,handleClick:b}=h(s,n),w=(0,r.EW)((()=>[c.b(),c.m(p.value),c.m(d.value),c.is("disabled",f.value),c.is("loading",s.loading),c.is("plain",s.plain),c.is("round",s.round),c.is("circle",s.circle),c.is("text",s.text),c.is("link",s.link),c.is("has-bg",s.bg)]));return t({ref:u,size:d,type:p,disabled:f,shouldAddSpace:y}),(e,t)=>((0,r.uX)(),(0,r.Wv)((0,r.$y)(e.tag),(0,r.v6)({ref_key:"_ref",ref:u},(0,a.R1)(g),{class:(0,a.R1)(w),style:(0,a.R1)(l),onClick:(0,a.R1)(b)}),{default:(0,r.k6)((()=>[e.loading?((0,r.uX)(),(0,r.CE)(r.FK,{key:0},[e.$slots.loading?(0,r.RG)(e.$slots,"loading",{key:0}):((0,r.uX)(),(0,r.Wv)((0,a.R1)(o.tk),{key:1,class:(0,i.C4)((0,a.R1)(c).is("loading"))},{default:(0,r.k6)((()=>[((0,r.uX)(),(0,r.Wv)((0,r.$y)(e.loadingIcon)))])),_:1},8,["class"]))],64)):e.icon||e.$slots.icon?((0,r.uX)(),(0,r.Wv)((0,a.R1)(o.tk),{key:1},{default:(0,r.k6)((()=>[e.icon?((0,r.uX)(),(0,r.Wv)((0,r.$y)(e.icon),{key:0})):(0,r.RG)(e.$slots,"icon",{key:1})])),_:3})):(0,r.Q3)("v-if",!0),e.$slots.default?((0,r.uX)(),(0,r.CE)("span",{key:2,class:(0,i.C4)({[(0,a.R1)(c).em("text","expand")]:(0,a.R1)(y)})},[(0,r.RG)(e.$slots,"default")],2)):(0,r.Q3)("v-if",!0)])),_:3},16,["class","style","onClick"]))}});var x=(0,y.A)(w,[["__file","button.vue"]]);const k={size:p.D$.size,type:p.D$.type},_=(0,r.pM)({name:"ElButtonGroup"}),C=(0,r.pM)({..._,props:k,setup(e){const t=e;(0,r.Gt)(s,(0,a.Kh)({size:(0,a.lW)(t,"size"),type:(0,a.lW)(t,"type")}));const n=(0,m.DU)("button");return(e,t)=>((0,r.uX)(),(0,r.CE)("div",{class:(0,i.C4)((0,a.R1)(n).b("group"))},[(0,r.RG)(e.$slots,"default")],2))}});var E=(0,y.A)(C,[["__file","button-group.vue"]]),R=n(5376);const S=(0,R.GU)(x,{ButtonGroup:E}),A=(0,R.WM)(E)},1585:function(e,t,n){"use strict";n.d(t,{D$:function(){return c},Od:function(){return s},ro:function(){return u}});var r=n(7477),a=n(7378),i=n(3845),o=n(464);const s=["default","primary","success","warning","info","danger","text",""],l=["button","submit","reset"],c=(0,a.b_)({size:i.mU,disabled:Boolean,type:{type:String,values:s,default:""},icon:{type:o.Ze},nativeType:{type:String,values:l,default:"button"},loading:Boolean,loadingIcon:{type:o.Ze,default:()=>r.Rhj},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:(0,a.jq)([String,Object]),default:"button"}}),u={click:e=>e instanceof MouseEvent}},8114:function(e,t,n){"use strict";n.d(t,{Vh:function(){return g},ht:function(){return m},H3:function(){return f}});n(7642),n(8004),n(3853),n(5876),n(2475),n(5024),n(1698);var r=n(144),a=n(6768);const i=Symbol();var o=n(3513),s=n(2401),l=n(6268),c=n(3845),u=n(9180),d=n(6894),h=n(4340);const p=(0,r.KR)();function f(e,t=void 0){const n=(0,a.nI)()?(0,a.WQ)(i,p):p;return e?(0,a.EW)((()=>{var r,a;return null!=(a=null==(r=n.value)?void 0:r[e])?a:t})):n}function m(e,t){const n=f(),i=(0,o.DU)(e,(0,a.EW)((()=>{var e;return(null==(e=n.value)?void 0:e.namespace)||o.Lt}))),c=(0,l.Ym)((0,a.EW)((()=>{var e;return null==(e=n.value)?void 0:e.locale}))),u=(0,s.YK)((0,a.EW)((()=>{var e;return(null==(e=n.value)?void 0:e.zIndex)||s._}))),d=(0,a.EW)((()=>{var e;return(0,r.R1)(t)||(null==(e=n.value)?void 0:e.size)||""}));return g((0,a.EW)((()=>(0,r.R1)(n)||{}))),{ns:i,locale:c,zIndex:u,size:d}}const g=(e,t,n=!1)=>{var h;const m=!!(0,a.nI)(),g=m?f():void 0,y=null!=(h=null==t?void 0:t.provide)?h:m?a.Gt:void 0;if(!y)return void(0,d.U)("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");const b=(0,a.EW)((()=>{const t=(0,r.R1)(e);return(null==g?void 0:g.value)?v(g.value,t):t}));return y(i,b),y(l.vx,(0,a.EW)((()=>b.value.locale))),y(o.O5,(0,a.EW)((()=>b.value.namespace))),y(s.d4,(0,a.EW)((()=>b.value.zIndex))),y(c.SN,{size:(0,a.EW)((()=>b.value.size||""))}),y(u.mf,(0,a.EW)((()=>({emptyValues:b.value.emptyValues,valueOnClear:b.value.valueOnClear})))),!n&&p.value||(p.value=b.value),b},v=(e,t)=>{const n=[...new Set([...(0,h.YD)(e),...(0,h.YD)(t)])],r={};for(const a of n)r[a]=void 0!==t[a]?t[a]:e[a];return r}},3076:function(e,t,n){"use strict";n.d(t,{A:function(){return v}});n(4114);var r=n(6768),a=n(144),i=n(6032),o=n(427),s=n(3291),l=n(9077),c=(n(8992),n(4520),n(3949),n(153)),u=n(515);let d=[];const h=e=>{e.code===u.R.esc&&d.forEach((t=>t(e)))},p=e=>{(0,r.sV)((()=>{0===d.length&&document.addEventListener("keydown",h),c.oc&&d.push(e)})),(0,r.xo)((()=>{d=d.filter((t=>t!==e)),0===d.length&&c.oc&&document.removeEventListener("keydown",h)}))};var f=n(4232);const m=(0,r.pM)({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[s.NP,s.fI,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=(0,a.KR)();let l,c;const{focusReason:d}=(0,o.ie)();p((n=>{e.trapped&&!h.paused&&t("release-requested",n)}));const h={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},m=n=>{if(!e.loop&&!e.trapped)return;if(h.paused)return;const{code:r,altKey:a,ctrlKey:i,metaKey:s,currentTarget:l,shiftKey:c}=n,{loop:p}=e,f=r===u.R.tab&&!a&&!i&&!s,m=document.activeElement;if(f&&m){const e=l,[r,a]=(0,o.$M)(e),i=r&&a;if(i)if(c||m!==a){if(c&&[r,e].includes(m)){const e=(0,o.Ub)({focusReason:d.value});t("focusout-prevented",e),e.defaultPrevented||(n.preventDefault(),p&&(0,o.EC)(a,!0))}}else{const e=(0,o.Ub)({focusReason:d.value});t("focusout-prevented",e),e.defaultPrevented||(n.preventDefault(),p&&(0,o.EC)(r,!0))}else if(m===e){const e=(0,o.Ub)({focusReason:d.value});t("focusout-prevented",e),e.defaultPrevented||n.preventDefault()}}};(0,r.Gt)(s.r3,{focusTrapRef:n,onKeydown:m}),(0,r.wB)((()=>e.focusTrapEl),(e=>{e&&(n.value=e)}),{immediate:!0}),(0,r.wB)([n],(([e],[t])=>{e&&(e.addEventListener("keydown",m),e.addEventListener("focusin",y),e.addEventListener("focusout",b)),t&&(t.removeEventListener("keydown",m),t.removeEventListener("focusin",y),t.removeEventListener("focusout",b))}));const g=e=>{t(s.NP,e)},v=e=>t(s.fI,e),y=r=>{const i=(0,a.R1)(n);if(!i)return;const s=r.target,u=r.relatedTarget,d=s&&i.contains(s);if(!e.trapped){const e=u&&i.contains(u);e||(l=u)}d&&t("focusin",r),h.paused||e.trapped&&(d?c=s:(0,o.EC)(c,!0))},b=r=>{const s=(0,a.R1)(n);if(!h.paused&&s)if(e.trapped){const n=r.relatedTarget;(0,i.A)(n)||s.contains(n)||setTimeout((()=>{if(!h.paused&&e.trapped){const e=(0,o.Ub)({focusReason:d.value});t("focusout-prevented",e),e.defaultPrevented||(0,o.EC)(c,!0)}}),0)}else{const e=r.target,n=e&&s.contains(e);n||t("focusout",r)}};async function w(){await(0,r.dY)();const t=(0,a.R1)(n);if(t){o.Zy.push(h);const n=t.contains(document.activeElement)?l:document.activeElement;l=n;const a=t.contains(n);if(!a){const a=new Event(s.Ll,s.MP);t.addEventListener(s.Ll,g),t.dispatchEvent(a),a.defaultPrevented||(0,r.dY)((()=>{let r=e.focusStartEl;(0,f.Kg)(r)||((0,o.EC)(r),document.activeElement!==r&&(r="first")),"first"===r&&(0,o.s5)((0,o.uG)(t),!0),document.activeElement!==n&&"container"!==r||(0,o.EC)(t)}))}}}function x(){const e=(0,a.R1)(n);if(e){e.removeEventListener(s.Ll,g);const t=new CustomEvent(s.aw,{...s.MP,detail:{focusReason:d.value}});e.addEventListener(s.aw,v),e.dispatchEvent(t),t.defaultPrevented||"keyboard"!=d.value&&(0,o.KQ)()&&!e.contains(document.activeElement)||(0,o.EC)(null!=l?l:document.body),e.removeEventListener(s.aw,v),o.Zy.remove(h)}}return(0,r.sV)((()=>{e.trapped&&w(),(0,r.wB)((()=>e.trapped),(e=>{e?w():x()}))})),(0,r.xo)((()=>{e.trapped&&x(),n.value&&(n.value.removeEventListener("keydown",m),n.value.removeEventListener("focusin",y),n.value.removeEventListener("focusout",b),n.value=void 0)})),{onKeydown:m}}});function g(e,t,n,a,i,o){return(0,r.RG)(e.$slots,"default",{handleKeydown:e.onKeydown})}var v=(0,l.A)(m,[["render",g],["__file","focus-trap.vue"]])},3291:function(e,t,n){"use strict";n.d(t,{Ll:function(){return r},MP:function(){return o},NP:function(){return l},aw:function(){return a},d:function(){return i},fI:function(){return c},oV:function(){return s},r3:function(){return u}});const r="focus-trap.focus-after-trapped",a="focus-trap.focus-after-released",i="focus-trap.focusout-prevented",o={cancelable:!0,bubbles:!1},s={cancelable:!0,bubbles:!1},l="focusAfterTrapped",c="focusAfterReleased",u=Symbol("elFocusTrap")},427:function(e,t,n){"use strict";n.d(t,{$M:function(){return m},EC:function(){return v},KQ:function(){return k},Ub:function(){return R},Zy:function(){return x},ie:function(){return E},s5:function(){return w},uG:function(){return h}});n(4114);var r=n(144),a=n(6768),i=n(3291),o=n(2235),s=n(6340);const l=(0,r.KR)(),c=(0,r.KR)(0),u=(0,r.KR)(0);let d=0;const h=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0||e===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});while(n.nextNode())t.push(n.currentNode);return t},p=(e,t)=>{for(const n of e)if(!f(n,t))return n},f=(e,t)=>{if("hidden"===getComputedStyle(e).visibility)return!0;while(e){if(t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1},m=e=>{const t=h(e),n=p(t,e),r=p(t.reverse(),e);return[n,r]},g=e=>e instanceof HTMLInputElement&&"select"in e,v=(e,t)=>{if(e&&e.focus){const n=document.activeElement;let r=!1;!(0,o.vq)(e)||(0,s.tp)(e)||e.getAttribute("tabindex")||(e.setAttribute("tabindex","-1"),r=!0),e.focus({preventScroll:!0}),u.value=window.performance.now(),e!==n&&g(e)&&t&&e.select(),(0,o.vq)(e)&&r&&e.removeAttribute("tabindex")}};function y(e,t){const n=[...e],r=e.indexOf(t);return-1!==r&&n.splice(r,1),n}const b=()=>{let e=[];const t=t=>{const n=e[0];n&&t!==n&&n.pause(),e=y(e,t),e.unshift(t)},n=t=>{var n,r;e=y(e,t),null==(r=null==(n=e[0])?void 0:n.resume)||r.call(n)};return{push:t,remove:n}},w=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(v(r,t),document.activeElement!==n)return},x=b(),k=()=>c.value>u.value,_=()=>{l.value="pointer",c.value=window.performance.now()},C=()=>{l.value="keyboard",c.value=window.performance.now()},E=()=>((0,a.sV)((()=>{0===d&&(document.addEventListener("mousedown",_),document.addEventListener("touchstart",_),document.addEventListener("keydown",C)),d++})),(0,a.xo)((()=>{d--,d<=0&&(document.removeEventListener("mousedown",_),document.removeEventListener("touchstart",_),document.removeEventListener("keydown",C))})),{focusReason:l,lastUserFocusTimestamp:c,lastAutomatedFocusTimestamp:u}),R=e=>new CustomEvent(i.d,{...i.oV,detail:e})},7254:function(e,t,n){"use strict";n.d(t,{F:function(){return r},w:function(){return a}});const r=Symbol("formContextKey"),a=Symbol("formItemContextKey")},2436:function(e,t,n){"use strict";n.d(t,{CB:function(){return c},NV:function(){return l}});var r=n(144),a=n(6768),i=n(7254);const o=e=>{const t=(0,a.nI)();return(0,a.EW)((()=>{var n,r;return null==(r=null==(n=null==t?void 0:t.proxy)?void 0:n.$props)?void 0:r[e]}))};var s=n(3845);const l=(e,t={})=>{const n=(0,r.KR)(void 0),l=t.prop?n:o("size"),c=t.global?n:(0,s.wC)(),u=t.form?{size:void 0}:(0,a.WQ)(i.F,void 0),d=t.formItem?{size:void 0}:(0,a.WQ)(i.w,void 0);return(0,a.EW)((()=>l.value||(0,r.R1)(e)||(null==d?void 0:d.size)||(null==u?void 0:u.size)||c.value||""))},c=e=>{const t=o("disabled"),n=(0,a.WQ)(i.F,void 0);return(0,a.EW)((()=>t.value||(0,r.R1)(e)||(null==n?void 0:n.disabled)||!1))}},4216:function(e,t,n){"use strict";n.d(t,{W:function(){return l},j:function(){return s}});var r=n(6768),a=n(144),i=n(7254),o=n(1305);const s=()=>{const e=(0,r.WQ)(i.F,void 0),t=(0,r.WQ)(i.w,void 0);return{form:e,formItem:t}},l=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:i})=>{n||(n=(0,a.KR)(!1)),i||(i=(0,a.KR)(!1));const s=(0,a.KR)();let l;const c=(0,r.EW)((()=>{var n;return!!(!e.label&&!e.ariaLabel&&t&&t.inputIds&&(null==(n=t.inputIds)?void 0:n.length)<=1)}));return(0,r.sV)((()=>{l=(0,r.wB)([(0,a.lW)(e,"id"),n],(([e,n])=>{const r=null!=e?e:n?void 0:(0,o.Bi)().value;r!==s.value&&((null==t?void 0:t.removeInputId)&&(s.value&&t.removeInputId(s.value),(null==i?void 0:i.value)||n||!r||t.addInputId(r)),s.value=r)}),{immediate:!0})})),(0,r.hi)((()=>{l&&l(),(null==t?void 0:t.removeInputId)&&s.value&&t.removeInputId(s.value)})),{isLabeledByFormItem:c,inputId:s}}},813:function(e,t,n){"use strict";n.d(t,{tk:function(){return m}});var r=n(6768),a=n(144),i=n(7378);const o=(0,i.b_)({size:{type:(0,i.jq)([Number,String])},color:{type:String}});var s=n(9077),l=n(3513),c=n(2235),u=n(3558);const d=(0,r.pM)({name:"ElIcon",inheritAttrs:!1}),h=(0,r.pM)({...d,props:o,setup(e){const t=e,n=(0,l.DU)("icon"),i=(0,r.EW)((()=>{const{size:e,color:n}=t;return e||n?{fontSize:(0,c.b0)(e)?void 0:(0,u._V)(e),"--color":n}:{}}));return(e,t)=>((0,r.uX)(),(0,r.CE)("i",(0,r.v6)({class:(0,a.R1)(n).b(),style:(0,a.R1)(i)},e.$attrs),[(0,r.RG)(e.$slots,"default")],16))}});var p=(0,s.A)(h,[["__file","icon.vue"]]),f=n(5376);const m=(0,f.GU)(p)},9623:function(e,t,n){"use strict";n.d(t,{WK:function(){return B}});var r=n(6768),a=n(144),i=n(4232),o=n(5130),s=n(7383),l=n(153),c=n(6032),u=n(813),d=n(7477),h=(n(8992),n(3949),n(2808)),p=n(2235);let f;const m={height:"0",visibility:"hidden",overflow:(0,h.gm)()?"":"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},g=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function v(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),a=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width")),i=g.map((e=>[e,t.getPropertyValue(e)]));return{contextStyle:i,paddingSize:r,borderSize:a,boxSizing:n}}function y(e,t=1,n){var r;f||(f=document.createElement("textarea"),document.body.appendChild(f));const{paddingSize:a,borderSize:i,boxSizing:o,contextStyle:s}=v(e);s.forEach((([e,t])=>null==f?void 0:f.style.setProperty(e,t))),Object.entries(m).forEach((([e,t])=>null==f?void 0:f.style.setProperty(e,t,"important"))),f.value=e.value||e.placeholder||"";let l=f.scrollHeight;const c={};"border-box"===o?l+=i:"content-box"===o&&(l-=a),f.value="";const u=f.scrollHeight-a;if((0,p.Et)(t)){let e=u*t;"border-box"===o&&(e=e+a+i),l=Math.max(e,l),c.minHeight=`${e}px`}if((0,p.Et)(n)){let e=u*n;"border-box"===o&&(e=e+a+i),l=Math.min(e,l)}return c.height=`${l}px`,null==(r=f.parentNode)||r.removeChild(f),f=void 0,c}var b=n(6149),w=n(9077),x=n(3716),k=n(4216),_=n(2436),C=n(1939),E=n(464),R=n(5488);function S(e){let t;function n(){if(void 0==e.value)return;const{selectionStart:n,selectionEnd:r,value:a}=e.value;if(null==n||null==r)return;const i=a.slice(0,Math.max(0,n)),o=a.slice(Math.max(0,r));t={selectionStart:n,selectionEnd:r,value:a,beforeTxt:i,afterTxt:o}}function r(){if(void 0==e.value||void 0==t)return;const{value:n}=e.value,{beforeTxt:r,afterTxt:a,selectionStart:i}=t;if(void 0==r||void 0==a||void 0==i)return;let o=n.length;if(n.endsWith(a))o=n.length-a.length;else if(n.startsWith(r))o=r.length;else{const e=r[i-1],t=n.indexOf(e,i-1);-1!==t&&(o=t+1)}e.value.setSelectionRange(o,o)}return[n,r]}var A=n(3513),T=n(6894),M=n(2056);const L=(0,r.pM)({name:"ElInput",inheritAttrs:!1}),O=(0,r.pM)({...L,props:b.$,emits:b.p,setup(e,{expose:t,emit:n}){const h=e,p=(0,r.OA)(),f=(0,x.O)(),m=(0,r.Ht)(),g=(0,r.EW)((()=>["textarea"===h.type?B.b():N.b(),N.m(O.value),N.is("disabled",I.value),N.is("exceed",ae.value),{[N.b("group")]:m.prepend||m.append,[N.m("prefix")]:m.prefix||h.prefixIcon,[N.m("suffix")]:m.suffix||h.suffixIcon||h.clearable||h.showPassword,[N.bm("suffix","password-clear")]:ee.value&&te.value,[N.b("hidden")]:"hidden"===h.type},p.class])),v=(0,r.EW)((()=>[N.e("wrapper"),N.is("focus",U.value)])),{form:b,formItem:w}=(0,k.j)(),{inputId:L}=(0,k.W)(h,{formItemContext:w}),O=(0,_.NV)(),I=(0,_.CB)(),N=(0,A.DU)("input"),B=(0,A.DU)("textarea"),D=(0,a.IJ)(),F=(0,a.IJ)(),$=(0,a.KR)(!1),P=(0,a.KR)(!1),z=(0,a.KR)(),W=(0,a.IJ)(h.inputStyle),j=(0,r.EW)((()=>D.value||F.value)),{wrapperRef:V,isFocused:U,handleFocus:K,handleBlur:H}=(0,C.K)(j,{beforeFocus(){return I.value},afterBlur(){var e;h.validateEvent&&(null==(e=null==w?void 0:w.validate)||e.call(w,"blur").catch((e=>(0,T.U)(e))))}}),q=(0,r.EW)((()=>{var e;return null!=(e=null==b?void 0:b.statusIcon)&&e})),G=(0,r.EW)((()=>(null==w?void 0:w.validateState)||"")),X=(0,r.EW)((()=>G.value&&E.vK[G.value])),Y=(0,r.EW)((()=>P.value?d.Ss2:d.LdN)),Q=(0,r.EW)((()=>[p.style])),Z=(0,r.EW)((()=>[h.inputStyle,W.value,{resize:h.resize}])),J=(0,r.EW)((()=>(0,c.A)(h.modelValue)?"":String(h.modelValue))),ee=(0,r.EW)((()=>h.clearable&&!I.value&&!h.readonly&&!!J.value&&(U.value||$.value))),te=(0,r.EW)((()=>h.showPassword&&!I.value&&!!J.value&&(!!J.value||U.value))),ne=(0,r.EW)((()=>h.showWordLimit&&!!h.maxlength&&("text"===h.type||"textarea"===h.type)&&!I.value&&!h.readonly&&!h.showPassword)),re=(0,r.EW)((()=>J.value.length)),ae=(0,r.EW)((()=>!!ne.value&&re.value>Number(h.maxlength))),ie=(0,r.EW)((()=>!!m.suffix||!!h.suffixIcon||ee.value||h.showPassword||ne.value||!!G.value&&q.value)),[oe,se]=S(D);(0,s.wYm)(F,(e=>{if(ue(),!ne.value||"both"!==h.resize)return;const t=e[0],{width:n}=t.contentRect;z.value={right:`calc(100% - ${n+15+6}px)`}}));const le=()=>{const{type:e,autosize:t}=h;if(l.oc&&"textarea"===e&&F.value)if(t){const e=(0,i.Gv)(t)?t.minRows:void 0,n=(0,i.Gv)(t)?t.maxRows:void 0,a=y(F.value,e,n);W.value={overflowY:"hidden",...a},(0,r.dY)((()=>{F.value.offsetHeight,W.value=a}))}else W.value={minHeight:y(F.value).minHeight}},ce=e=>{let t=!1;return()=>{var n;if(t||!h.autosize)return;const r=null===(null==(n=F.value)?void 0:n.offsetParent);r||(e(),t=!0)}},ue=ce(le),de=()=>{const e=j.value,t=h.formatter?h.formatter(J.value):J.value;e&&e.value!==t&&(e.value=t)},he=async e=>{oe();let{value:t}=e.target;h.formatter&&(t=h.parser?h.parser(t):t),fe.value||(t!==J.value?(n(M.l4,t),n("input",t),await(0,r.dY)(),de(),se()):de())},pe=e=>{n("change",e.target.value)},{isComposing:fe,handleCompositionStart:me,handleCompositionUpdate:ge,handleCompositionEnd:ve}=(0,R.o)({emit:n,afterComposition:he}),ye=()=>{oe(),P.value=!P.value,setTimeout(se)},be=()=>{var e;return null==(e=j.value)?void 0:e.focus()},we=()=>{var e;return null==(e=j.value)?void 0:e.blur()},xe=e=>{$.value=!1,n("mouseleave",e)},ke=e=>{$.value=!0,n("mouseenter",e)},_e=e=>{n("keydown",e)},Ce=()=>{var e;null==(e=j.value)||e.select()},Ee=()=>{n(M.l4,""),n("change",""),n("clear"),n("input","")};return(0,r.wB)((()=>h.modelValue),(()=>{var e;(0,r.dY)((()=>le())),h.validateEvent&&(null==(e=null==w?void 0:w.validate)||e.call(w,"change").catch((e=>(0,T.U)(e))))})),(0,r.wB)(J,(()=>de())),(0,r.wB)((()=>h.type),(async()=>{await(0,r.dY)(),de(),le()})),(0,r.sV)((()=>{!h.formatter&&h.parser&&(0,T.U)("ElInput","If you set the parser, you also need to set the formatter."),de(),(0,r.dY)(le)})),t({input:D,textarea:F,ref:j,textareaStyle:Z,autosize:(0,a.lW)(h,"autosize"),isComposing:fe,focus:be,blur:we,select:Ce,clear:Ee,resizeTextarea:le}),(e,t)=>((0,r.uX)(),(0,r.CE)("div",{class:(0,i.C4)([(0,a.R1)(g),{[(0,a.R1)(N).bm("group","append")]:e.$slots.append,[(0,a.R1)(N).bm("group","prepend")]:e.$slots.prepend}]),style:(0,i.Tr)((0,a.R1)(Q)),onMouseenter:ke,onMouseleave:xe},[(0,r.Q3)(" input "),"textarea"!==e.type?((0,r.uX)(),(0,r.CE)(r.FK,{key:0},[(0,r.Q3)(" prepend slot "),e.$slots.prepend?((0,r.uX)(),(0,r.CE)("div",{key:0,class:(0,i.C4)((0,a.R1)(N).be("group","prepend"))},[(0,r.RG)(e.$slots,"prepend")],2)):(0,r.Q3)("v-if",!0),(0,r.Lk)("div",{ref_key:"wrapperRef",ref:V,class:(0,i.C4)((0,a.R1)(v))},[(0,r.Q3)(" prefix slot "),e.$slots.prefix||e.prefixIcon?((0,r.uX)(),(0,r.CE)("span",{key:0,class:(0,i.C4)((0,a.R1)(N).e("prefix"))},[(0,r.Lk)("span",{class:(0,i.C4)((0,a.R1)(N).e("prefix-inner"))},[(0,r.RG)(e.$slots,"prefix"),e.prefixIcon?((0,r.uX)(),(0,r.Wv)((0,a.R1)(u.tk),{key:0,class:(0,i.C4)((0,a.R1)(N).e("icon"))},{default:(0,r.k6)((()=>[((0,r.uX)(),(0,r.Wv)((0,r.$y)(e.prefixIcon)))])),_:1},8,["class"])):(0,r.Q3)("v-if",!0)],2)],2)):(0,r.Q3)("v-if",!0),(0,r.Lk)("input",(0,r.v6)({id:(0,a.R1)(L),ref_key:"input",ref:D,class:(0,a.R1)(N).e("inner")},(0,a.R1)(f),{minlength:e.minlength,maxlength:e.maxlength,type:e.showPassword?P.value?"text":"password":e.type,disabled:(0,a.R1)(I),readonly:e.readonly,autocomplete:e.autocomplete,tabindex:e.tabindex,"aria-label":e.ariaLabel,placeholder:e.placeholder,style:e.inputStyle,form:e.form,autofocus:e.autofocus,role:e.containerRole,onCompositionstart:(0,a.R1)(me),onCompositionupdate:(0,a.R1)(ge),onCompositionend:(0,a.R1)(ve),onInput:he,onChange:pe,onKeydown:_e}),null,16,["id","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus","role","onCompositionstart","onCompositionupdate","onCompositionend"]),(0,r.Q3)(" suffix slot "),(0,a.R1)(ie)?((0,r.uX)(),(0,r.CE)("span",{key:1,class:(0,i.C4)((0,a.R1)(N).e("suffix"))},[(0,r.Lk)("span",{class:(0,i.C4)((0,a.R1)(N).e("suffix-inner"))},[(0,a.R1)(ee)&&(0,a.R1)(te)&&(0,a.R1)(ne)?(0,r.Q3)("v-if",!0):((0,r.uX)(),(0,r.CE)(r.FK,{key:0},[(0,r.RG)(e.$slots,"suffix"),e.suffixIcon?((0,r.uX)(),(0,r.Wv)((0,a.R1)(u.tk),{key:0,class:(0,i.C4)((0,a.R1)(N).e("icon"))},{default:(0,r.k6)((()=>[((0,r.uX)(),(0,r.Wv)((0,r.$y)(e.suffixIcon)))])),_:1},8,["class"])):(0,r.Q3)("v-if",!0)],64)),(0,a.R1)(ee)?((0,r.uX)(),(0,r.Wv)((0,a.R1)(u.tk),{key:1,class:(0,i.C4)([(0,a.R1)(N).e("icon"),(0,a.R1)(N).e("clear")]),onMousedown:(0,o.D$)((0,a.R1)(i.tE),["prevent"]),onClick:Ee},{default:(0,r.k6)((()=>[(0,r.bF)((0,a.R1)(d.R$5))])),_:1},8,["class","onMousedown"])):(0,r.Q3)("v-if",!0),(0,a.R1)(te)?((0,r.uX)(),(0,r.Wv)((0,a.R1)(u.tk),{key:2,class:(0,i.C4)([(0,a.R1)(N).e("icon"),(0,a.R1)(N).e("password")]),onClick:ye},{default:(0,r.k6)((()=>[((0,r.uX)(),(0,r.Wv)((0,r.$y)((0,a.R1)(Y))))])),_:1},8,["class"])):(0,r.Q3)("v-if",!0),(0,a.R1)(ne)?((0,r.uX)(),(0,r.CE)("span",{key:3,class:(0,i.C4)((0,a.R1)(N).e("count"))},[(0,r.Lk)("span",{class:(0,i.C4)((0,a.R1)(N).e("count-inner"))},(0,i.v_)((0,a.R1)(re))+" / "+(0,i.v_)(e.maxlength),3)],2)):(0,r.Q3)("v-if",!0),(0,a.R1)(G)&&(0,a.R1)(X)&&(0,a.R1)(q)?((0,r.uX)(),(0,r.Wv)((0,a.R1)(u.tk),{key:4,class:(0,i.C4)([(0,a.R1)(N).e("icon"),(0,a.R1)(N).e("validateIcon"),(0,a.R1)(N).is("loading","validating"===(0,a.R1)(G))])},{default:(0,r.k6)((()=>[((0,r.uX)(),(0,r.Wv)((0,r.$y)((0,a.R1)(X))))])),_:1},8,["class"])):(0,r.Q3)("v-if",!0)],2)],2)):(0,r.Q3)("v-if",!0)],2),(0,r.Q3)(" append slot "),e.$slots.append?((0,r.uX)(),(0,r.CE)("div",{key:1,class:(0,i.C4)((0,a.R1)(N).be("group","append"))},[(0,r.RG)(e.$slots,"append")],2)):(0,r.Q3)("v-if",!0)],64)):((0,r.uX)(),(0,r.CE)(r.FK,{key:1},[(0,r.Q3)(" textarea "),(0,r.Lk)("textarea",(0,r.v6)({id:(0,a.R1)(L),ref_key:"textarea",ref:F,class:[(0,a.R1)(B).e("inner"),(0,a.R1)(N).is("focus",(0,a.R1)(U))]},(0,a.R1)(f),{minlength:e.minlength,maxlength:e.maxlength,tabindex:e.tabindex,disabled:(0,a.R1)(I),readonly:e.readonly,autocomplete:e.autocomplete,style:(0,a.R1)(Z),"aria-label":e.ariaLabel,placeholder:e.placeholder,form:e.form,autofocus:e.autofocus,rows:e.rows,role:e.containerRole,onCompositionstart:(0,a.R1)(me),onCompositionupdate:(0,a.R1)(ge),onCompositionend:(0,a.R1)(ve),onInput:he,onFocus:(0,a.R1)(K),onBlur:(0,a.R1)(H),onChange:pe,onKeydown:_e}),null,16,["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus","rows","role","onCompositionstart","onCompositionupdate","onCompositionend","onFocus","onBlur"]),(0,a.R1)(ne)?((0,r.uX)(),(0,r.CE)("span",{key:0,style:(0,i.Tr)(z.value),class:(0,i.C4)((0,a.R1)(N).e("count"))},(0,i.v_)((0,a.R1)(re))+" / "+(0,i.v_)(e.maxlength),7)):(0,r.Q3)("v-if",!0)],64))],38))}});var I=(0,w.A)(O,[["__file","input.vue"]]),N=n(5376);const B=(0,N.GU)(I)},6149:function(e,t,n){"use strict";n.d(t,{$:function(){return u},p:function(){return d}});var r=n(3845),a=n(464),i=n(6769),o=n(8501),s=n(2056),l=n(7378),c=n(4232);const u=(0,l.b_)({id:{type:String,default:void 0},size:r.mU,disabled:Boolean,modelValue:{type:(0,l.jq)([String,Number,Object]),default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:(0,l.jq)([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,showPassword:Boolean,showWordLimit:Boolean,suffixIcon:{type:a.Ze},prefixIcon:{type:a.Ze},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:(0,l.jq)([Object,Array,String]),default:()=>(0,i.f)({})},autofocus:Boolean,rows:{type:Number,default:2},...(0,o.l)(["ariaLabel"])}),d={[s.l4]:e=>(0,c.Kg)(e),input:e=>(0,c.Kg)(e),change:e=>(0,c.Kg)(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent}},5320:function(e,t,n){"use strict";n.d(t,{Ks:function(){return w}});var r=n(6768),a=n(144),i=n(5130),o=n(8114),s=n(3558);function l(e){let t;const n=(0,a.KR)(!1),l=(0,a.Kh)({...e,originalPosition:"",originalOverflow:"",visible:!1});function c(e){l.text=e}function u(){const e=l.parent,t=g.ns;if(!e.vLoadingAddClassList){let n=e.getAttribute("loading-number");n=Number.parseInt(n)-1,n?e.setAttribute("loading-number",n.toString()):((0,s.vy)(e,t.bm("parent","relative")),e.removeAttribute("loading-number")),(0,s.vy)(e,t.bm("parent","hidden"))}d(),m.unmount()}function d(){var e,t;null==(t=null==(e=g.$el)?void 0:e.parentNode)||t.removeChild(g.$el)}function h(){var r;e.beforeClose&&!e.beforeClose()||(n.value=!0,clearTimeout(t),t=setTimeout(p,400),l.visible=!1,null==(r=e.closed)||r.call(e))}function p(){if(!n.value)return;const e=l.parent;n.value=!1,e.vLoadingAddClassList=void 0,u()}const f=(0,r.pM)({name:"ElLoading",setup(e,{expose:t}){const{ns:n,zIndex:a}=(0,o.ht)("loading");return t({ns:n,zIndex:a}),()=>{const e=l.spinner||l.svg,t=(0,r.h)("svg",{class:"circular",viewBox:l.svgViewBox?l.svgViewBox:"0 0 50 50",...e?{innerHTML:e}:{}},[(0,r.h)("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),a=l.text?(0,r.h)("p",{class:n.b("text")},[l.text]):void 0;return(0,r.h)(i.eB,{name:n.b("fade"),onAfterLeave:p},{default:(0,r.k6)((()=>[(0,r.bo)((0,r.bF)("div",{style:{backgroundColor:l.background||""},class:[n.b("mask"),l.customClass,l.fullscreen?"is-fullscreen":""]},[(0,r.h)("div",{class:n.b("spinner")},[t,a])]),[[i.aG,l.visible]])]))})}}}),m=(0,i.Ef)(f),g=m.mount(document.createElement("div"));return{...(0,a.QW)(l),setText:c,removeElLoadingChild:d,close:h,handleAfterLeave:p,vm:g,get $el(){return g.$el}}}var c=n(153),u=n(4232);let d;const h=function(e={}){if(!c.oc)return;const t=p(e);if(t.fullscreen&&d)return d;const n=l({...t,closed:()=>{var e;null==(e=t.closed)||e.call(t),t.fullscreen&&(d=void 0)}});f(t,t.parent,n),m(t,t.parent,n),t.parent.vLoadingAddClassList=()=>m(t,t.parent,n);let a=t.parent.getAttribute("loading-number");return a=a?`${Number.parseInt(a)+1}`:"1",t.parent.setAttribute("loading-number",a),t.parent.appendChild(n.$el),(0,r.dY)((()=>n.visible.value=t.visible)),t.fullscreen&&(d=n),n},p=e=>{var t,n,r,a;let i;return i=(0,u.Kg)(e.target)?null!=(t=document.querySelector(e.target))?t:document.body:e.target||document.body,{parent:i===document.body||e.body?document.body:i,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:i===document.body&&(null==(n=e.fullscreen)||n),lock:null!=(r=e.lock)&&r,customClass:e.customClass||"",visible:null==(a=e.visible)||a,beforeClose:e.beforeClose,closed:e.closed,target:i}},f=async(e,t,n)=>{const{nextZIndex:a}=n.vm.zIndex||n.vm._.exposed.zIndex,i={};if(e.fullscreen)n.originalPosition.value=(0,s.gd)(document.body,"position"),n.originalOverflow.value=(0,s.gd)(document.body,"overflow"),i.zIndex=a();else if(e.parent===document.body){n.originalPosition.value=(0,s.gd)(document.body,"position"),await(0,r.dY)();for(const t of["top","left"]){const n="top"===t?"scrollTop":"scrollLeft";i[t]=e.target.getBoundingClientRect()[t]+document.body[n]+document.documentElement[n]-Number.parseInt((0,s.gd)(document.body,`margin-${t}`),10)+"px"}for(const t of["height","width"])i[t]=`${e.target.getBoundingClientRect()[t]}px`}else n.originalPosition.value=(0,s.gd)(t,"position");for(const[r,o]of Object.entries(i))n.$el.style[r]=o},m=(e,t,n)=>{const r=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?(0,s.vy)(t,r.bm("parent","relative")):(0,s.iQ)(t,r.bm("parent","relative")),e.fullscreen&&e.lock?(0,s.iQ)(t,r.bm("parent","hidden")):(0,s.vy)(t,r.bm("parent","hidden"))},g=Symbol("ElLoading"),v=(e,t)=>{var n,r,i,o;const s=t.instance,l=e=>(0,u.Gv)(t.value)?t.value[e]:void 0,c=e=>{const t=(0,u.Kg)(e)&&(null==s?void 0:s[e])||e;return t?(0,a.KR)(t):t},d=t=>c(l(t)||e.getAttribute(`element-loading-${(0,u.Tg)(t)}`)),p=null!=(n=l("fullscreen"))?n:t.modifiers.fullscreen,f={text:d("text"),svg:d("svg"),svgViewBox:d("svgViewBox"),spinner:d("spinner"),background:d("background"),customClass:d("customClass"),fullscreen:p,target:null!=(r=l("target"))?r:p?void 0:e,body:null!=(i=l("body"))?i:t.modifiers.body,lock:null!=(o=l("lock"))?o:t.modifiers.lock};e[g]={options:f,instance:h(f)}},y=(e,t)=>{for(const n of Object.keys(t))(0,a.i9)(t[n])&&(t[n].value=e[n])},b={mounted(e,t){t.value&&v(e,t)},updated(e,t){const n=e[g];t.oldValue!==t.value&&(t.value&&!t.oldValue?v(e,t):t.value&&t.oldValue?(0,u.Gv)(t.value)&&y(t.value,n.options):null==n||n.instance.close())},unmounted(e){var t;null==(t=e[g])||t.instance.close(),e[g]=null}},w={install(e){e.directive("loading",b),e.config.globalProperties.$loading=h},directive:b,service:h}},2933:function(e,t,n){"use strict";n.d(t,{s:function(){return V}});n(8992),n(3949);var r=n(6768),a=n(5130),i=n(144),o=n(4232),s=n(47),l=n(9623),c=n(6714),u=n(813),d=n(7477),h=n(3076),p=n(9077),f=(n(4114),n(6340)),m=n(515);const g="_trap-focus-children",v=[],y=e=>{if(0===v.length)return;const t=v[v.length-1][g];if(t.length>0&&e.code===m.R.tab){if(1===t.length)return e.preventDefault(),void(document.activeElement!==t[0]&&t[0].focus());const n=e.shiftKey,r=e.target===t[0],a=e.target===t[t.length-1];r&&n&&(e.preventDefault(),t[t.length-1].focus()),a&&!n&&(e.preventDefault(),t[0].focus())}},b={beforeMount(e){e[g]=(0,f.uG)(e),v.push(e),v.length<=1&&document.addEventListener("keydown",y)},updated(e){(0,r.dY)((()=>{e[g]=(0,f.uG)(e)}))},unmounted(){v.shift(),0===v.length&&document.removeEventListener("keydown",y)}};var w=n(464),x=n(3027),k=n(8114),_=n(1305),C=n(7833),E=n(2667),R=n(1968);const S=(0,r.pM)({name:"ElMessageBox",directives:{TrapFocus:b},components:{ElButton:s.S2,ElFocusTrap:h.A,ElInput:l.WK,ElOverlay:c._q,ElIcon:u.tk,...w.Nk},inheritAttrs:!1,props:{buttonSize:{type:String,validator:x.x},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,overflow:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{locale:n,zIndex:a,ns:s,size:l}=(0,k.ht)("message-box",(0,r.EW)((()=>e.buttonSize))),{t:c}=n,{nextZIndex:u}=a,h=(0,i.KR)(!1),p=(0,i.Kh)({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:"",inputValidator:void 0,inputErrorMessage:"",message:"",modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonLoadingIcon:(0,i.IG)(d.Rhj),cancelButtonLoadingIcon:(0,i.IG)(d.Rhj),confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:u()}),f=(0,r.EW)((()=>{const e=p.type;return{[s.bm("icon",e)]:e&&w.rz[e]}})),m=(0,_.Bi)(),g=(0,_.Bi)(),v=(0,r.EW)((()=>{const e=p.type;return p.icon||e&&w.rz[e]||""})),y=(0,r.EW)((()=>!!p.message)),b=(0,i.KR)(),x=(0,i.KR)(),S=(0,i.KR)(),A=(0,i.KR)(),T=(0,i.KR)(),M=(0,r.EW)((()=>p.confirmButtonClass));(0,r.wB)((()=>p.inputValue),(async t=>{await(0,r.dY)(),"prompt"===e.boxType&&null!==t&&$()}),{immediate:!0}),(0,r.wB)((()=>h.value),(t=>{var n,a;t&&("prompt"!==e.boxType&&(p.autofocus?S.value=null!=(a=null==(n=T.value)?void 0:n.$el)?a:b.value:S.value=b.value),p.zIndex=u()),"prompt"===e.boxType&&(t?(0,r.dY)().then((()=>{var e;A.value&&A.value.$el&&(p.autofocus?S.value=null!=(e=P())?e:b.value:S.value=b.value)})):(p.editorErrorMessage="",p.validateError=!1))}));const L=(0,r.EW)((()=>e.draggable)),O=(0,r.EW)((()=>e.overflow));function I(){h.value&&(h.value=!1,(0,r.dY)((()=>{p.action&&t("action",p.action)})))}(0,C.P)(b,x,L,O),(0,r.sV)((async()=>{await(0,r.dY)(),e.closeOnHashChange&&window.addEventListener("hashchange",I)})),(0,r.xo)((()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",I)}));const N=()=>{e.closeOnClickModal&&F(p.distinguishCancelAndClose?"close":"cancel")},B=(0,R.r)(N),D=e=>{if("textarea"!==p.inputType)return e.preventDefault(),F("confirm")},F=t=>{var n;("prompt"!==e.boxType||"confirm"!==t||$())&&(p.action=t,p.beforeClose?null==(n=p.beforeClose)||n.call(p,t,p,I):I())},$=()=>{if("prompt"===e.boxType){const e=p.inputPattern;if(e&&!e.test(p.inputValue||""))return p.editorErrorMessage=p.inputErrorMessage||c("el.messagebox.error"),p.validateError=!0,!1;const t=p.inputValidator;if((0,o.Tn)(t)){const e=t(p.inputValue);if(!1===e)return p.editorErrorMessage=p.inputErrorMessage||c("el.messagebox.error"),p.validateError=!0,!1;if((0,o.Kg)(e))return p.editorErrorMessage=e,p.validateError=!0,!1}}return p.editorErrorMessage="",p.validateError=!1,!0},P=()=>{var e,t;const n=null==(e=A.value)?void 0:e.$refs;return null!=(t=null==n?void 0:n.input)?t:null==n?void 0:n.textarea},z=()=>{F("close")},W=()=>{e.closeOnPressEscape&&z()};return e.lockScroll&&(0,E.t)(h),{...(0,i.QW)(p),ns:s,overlayEvent:B,visible:h,hasMessage:y,typeClass:f,contentId:m,inputId:g,btnSize:l,iconComponent:v,confirmButtonClasses:M,rootRef:b,focusStartRef:S,headerRef:x,inputRef:A,confirmRef:T,doClose:I,handleClose:z,onCloseRequested:W,handleWrapperClick:N,handleInputEnter:D,handleAction:F,t:c}}});function A(e,t,n,i,s,l){const c=(0,r.g2)("el-icon"),u=(0,r.g2)("close"),d=(0,r.g2)("el-input"),h=(0,r.g2)("el-button"),p=(0,r.g2)("el-focus-trap"),f=(0,r.g2)("el-overlay");return(0,r.uX)(),(0,r.Wv)(a.eB,{name:"fade-in-linear",onAfterLeave:t=>e.$emit("vanish"),persisted:""},{default:(0,r.k6)((()=>[(0,r.bo)((0,r.bF)(f,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:(0,r.k6)((()=>[(0,r.Lk)("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:(0,o.C4)(`${e.ns.namespace.value}-overlay-message-box`),onClick:e.overlayEvent.onClick,onMousedown:e.overlayEvent.onMousedown,onMouseup:e.overlayEvent.onMouseup},[(0,r.bF)(p,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:(0,r.k6)((()=>[(0,r.Lk)("div",{ref:"rootRef",class:(0,o.C4)([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:(0,o.Tr)(e.customStyle),tabindex:"-1",onClick:(0,a.D$)((()=>{}),["stop"])},[null!==e.title&&void 0!==e.title?((0,r.uX)(),(0,r.CE)("div",{key:0,ref:"headerRef",class:(0,o.C4)([e.ns.e("header"),{"show-close":e.showClose}])},[(0,r.Lk)("div",{class:(0,o.C4)(e.ns.e("title"))},[e.iconComponent&&e.center?((0,r.uX)(),(0,r.Wv)(c,{key:0,class:(0,o.C4)([e.ns.e("status"),e.typeClass])},{default:(0,r.k6)((()=>[((0,r.uX)(),(0,r.Wv)((0,r.$y)(e.iconComponent)))])),_:1},8,["class"])):(0,r.Q3)("v-if",!0),(0,r.Lk)("span",null,(0,o.v_)(e.title),1)],2),e.showClose?((0,r.uX)(),(0,r.CE)("button",{key:0,type:"button",class:(0,o.C4)(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:t=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),onKeydown:(0,a.jR)((0,a.D$)((t=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),["prevent"]),["enter"])},[(0,r.bF)(c,{class:(0,o.C4)(e.ns.e("close"))},{default:(0,r.k6)((()=>[(0,r.bF)(u)])),_:1},8,["class"])],42,["aria-label","onClick","onKeydown"])):(0,r.Q3)("v-if",!0)],2)):(0,r.Q3)("v-if",!0),(0,r.Lk)("div",{id:e.contentId,class:(0,o.C4)(e.ns.e("content"))},[(0,r.Lk)("div",{class:(0,o.C4)(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?((0,r.uX)(),(0,r.Wv)(c,{key:0,class:(0,o.C4)([e.ns.e("status"),e.typeClass])},{default:(0,r.k6)((()=>[((0,r.uX)(),(0,r.Wv)((0,r.$y)(e.iconComponent)))])),_:1},8,["class"])):(0,r.Q3)("v-if",!0),e.hasMessage?((0,r.uX)(),(0,r.CE)("div",{key:1,class:(0,o.C4)(e.ns.e("message"))},[(0,r.RG)(e.$slots,"default",{},(()=>[e.dangerouslyUseHTMLString?((0,r.uX)(),(0,r.Wv)((0,r.$y)(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):((0,r.uX)(),(0,r.Wv)((0,r.$y)(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:(0,r.k6)((()=>[(0,r.eW)((0,o.v_)(e.dangerouslyUseHTMLString?"":e.message),1)])),_:1},8,["for"]))]))],2)):(0,r.Q3)("v-if",!0)],2),(0,r.bo)((0,r.Lk)("div",{class:(0,o.C4)(e.ns.e("input"))},[(0,r.bF)(d,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t=>e.inputValue=t,type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:(0,o.C4)({invalid:e.validateError}),onKeydown:(0,a.jR)(e.handleInputEnter,["enter"])},null,8,["id","modelValue","onUpdate:modelValue","type","placeholder","aria-invalid","class","onKeydown"]),(0,r.Lk)("div",{class:(0,o.C4)(e.ns.e("errormsg")),style:(0,o.Tr)({visibility:e.editorErrorMessage?"visible":"hidden"})},(0,o.v_)(e.editorErrorMessage),7)],2),[[a.aG,e.showInput]])],10,["id"]),(0,r.Lk)("div",{class:(0,o.C4)(e.ns.e("btns"))},[e.showCancelButton?((0,r.uX)(),(0,r.Wv)(h,{key:0,loading:e.cancelButtonLoading,"loading-icon":e.cancelButtonLoadingIcon,class:(0,o.C4)([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t=>e.handleAction("cancel"),onKeydown:(0,a.jR)((0,a.D$)((t=>e.handleAction("cancel")),["prevent"]),["enter"])},{default:(0,r.k6)((()=>[(0,r.eW)((0,o.v_)(e.cancelButtonText||e.t("el.messagebox.cancel")),1)])),_:1},8,["loading","loading-icon","class","round","size","onClick","onKeydown"])):(0,r.Q3)("v-if",!0),(0,r.bo)((0,r.bF)(h,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,"loading-icon":e.confirmButtonLoadingIcon,class:(0,o.C4)([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:t=>e.handleAction("confirm"),onKeydown:(0,a.jR)((0,a.D$)((t=>e.handleAction("confirm")),["prevent"]),["enter"])},{default:(0,r.k6)((()=>[(0,r.eW)((0,o.v_)(e.confirmButtonText||e.t("el.messagebox.confirm")),1)])),_:1},8,["loading","loading-icon","class","round","disabled","size","onClick","onKeydown"]),[[a.aG,e.showConfirmButton]])],2)],14,["onClick"])])),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,["aria-label","aria-describedby","onClick","onMousedown","onMouseup"])])),_:3},8,["z-index","overlay-class","mask"]),[[a.aG,e.visible]])])),_:3},8,["onAfterLeave"])}var T=(0,p.A)(S,[["render",A],["__file","index.vue"]]),M=n(153),L=n(2235),O=n(6894);const I=new Map,N=e=>{let t=document.body;return e.appendTo&&((0,o.Kg)(e.appendTo)&&(t=document.querySelector(e.appendTo)),(0,L.vq)(e.appendTo)&&(t=e.appendTo),(0,L.vq)(t)||((0,O.U)("ElMessageBox","the appendTo option is not an HTMLElement. Falling back to document.body."),t=document.body)),t},B=(e,t,n=null)=>{const i=(0,r.bF)(T,e,(0,o.Tn)(e.message)||(0,r.vv)(e.message)?{default:(0,o.Tn)(e.message)?e.message:()=>e.message}:null);return i.appContext=n,(0,a.XX)(i,t),N(e).appendChild(t.firstElementChild),i.component},D=()=>document.createElement("div"),F=(e,t)=>{const n=D();e.onVanish=()=>{(0,a.XX)(null,n),I.delete(i)},e.onAction=t=>{const n=I.get(i);let a;a=e.showInput?{value:i.inputValue,action:t}:t,e.callback?e.callback(a,r.proxy):"cancel"===t||"close"===t?e.distinguishCancelAndClose&&"cancel"!==t?n.reject("close"):n.reject("cancel"):n.resolve(a)};const r=B(e,n,t),i=r.proxy;for(const a in e)(0,o.$3)(e,a)&&!(0,o.$3)(i.$props,a)&&(i[a]=e[a]);return i.visible=!0,i};function $(e,t=null){if(!M.oc)return Promise.reject();let n;return(0,o.Kg)(e)||(0,r.vv)(e)?e={message:e}:n=e.callback,new Promise(((r,a)=>{const i=F(e,null!=t?t:$._context);I.set(i,{options:e,callback:n,resolve:r,reject:a})}))}const P=["alert","confirm","prompt"],z={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};function W(e){return(t,n,r,a)=>{let i="";return(0,o.Gv)(n)?(r=n,i=""):i=(0,L.b0)(n)?"":n,$(Object.assign({title:i,message:t,type:"",...z[e]},r,{boxType:e}),a)}}P.forEach((e=>{$[e]=W(e)})),$.close=()=>{I.forEach(((e,t)=>{t.doClose()})),I.clear()},$._context=null;const j=$;j.install=e=>{j._context=e._context,e.config.globalProperties.$msgbox=j,e.config.globalProperties.$messageBox=j,e.config.globalProperties.$alert=j.alert,e.config.globalProperties.$confirm=j.confirm,e.config.globalProperties.$prompt=j.prompt};const V=j},6714:function(e,t,n){"use strict";n.d(t,{_q:function(){return h}});var r=n(6768),a=n(1968),i=n(6139),o=n(7378),s=n(3513);const l=(0,o.b_)({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:(0,o.jq)([String,Array,Object])},zIndex:{type:(0,o.jq)([String,Number])}}),c={click:e=>e instanceof MouseEvent},u="overlay";var d=(0,r.pM)({name:"ElOverlay",props:l,emits:c,setup(e,{slots:t,emit:n}){const o=(0,s.DU)(u),l=e=>{n("click",e)},{onClick:c,onMousedown:d,onMouseup:h}=(0,a.r)(e.customMaskEvent?void 0:l);return()=>e.mask?(0,r.bF)("div",{class:[o.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:c,onMousedown:d,onMouseup:h},[(0,r.RG)(t,"default")],i.Yn.STYLE|i.Yn.CLASS|i.Yn.PROPS,["onClick","onMouseup","onMousedown"]):(0,r.h)("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[(0,r.RG)(t,"default")])}});const h=d},515:function(e,t,n){"use strict";n.d(t,{R:function(){return r}});const r={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"}},2056:function(e,t,n){"use strict";n.d(t,{YU:function(){return a},l4:function(){return r},qs:function(){return i}});const r="update:modelValue",a="change",i="input"},1211:function(e,t,n){"use strict";n.d(t,{I:function(){return r}});const r=["","default","small","large"]},1697:function(e,t,n){"use strict";n.d(t,{A:function(){return CI}});n(8992),n(3949);const r="2.9.4",a=Symbol("INSTALLED_KEY");var i=n(8114);const o=(e=[])=>{const t=(t,n)=>{t[a]||(t[a]=!0,e.forEach((e=>t.use(e))),n&&(0,i.Vh)(n,t,!0))};return{version:r,install:t}};var s=n(6768),l=n(144),c=n(4232),u=n(7383),d=n(2056),h=n(7378),p=n(2235);const f=(0,h.b_)({zIndex:{type:(0,h.jq)([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"}}),m={scroll:({scrollTop:e,fixed:t})=>(0,p.Et)(e)&&(0,p.Lm)(t),[d.YU]:e=>(0,p.Lm)(e)};var g=n(9077),v=n(3513),y=n(8587),b=n(3558),w=n(6894);const x="ElAffix",k=(0,s.pM)({name:x}),_=(0,s.pM)({...k,props:f,emits:m,setup(e,{expose:t,emit:n}){const r=e,a=(0,v.DU)("affix"),i=(0,l.IJ)(),o=(0,l.IJ)(),d=(0,l.IJ)(),{height:h}=(0,u.lWr)(),{height:p,width:f,top:m,bottom:g,update:k}=(0,u.SSU)(o,{windowScroll:!1}),_=(0,u.SSU)(i),C=(0,l.KR)(!1),E=(0,l.KR)(0),R=(0,l.KR)(0),S=(0,s.EW)((()=>({height:C.value?`${p.value}px`:"",width:C.value?`${f.value}px`:""}))),A=(0,s.EW)((()=>{if(!C.value)return{};const e=r.offset?(0,b._V)(r.offset):0;return{height:`${p.value}px`,width:`${f.value}px`,top:"top"===r.position?e:"",bottom:"bottom"===r.position?e:"",transform:R.value?`translateY(${R.value}px)`:"",zIndex:r.zIndex}})),T=()=>{if(!d.value)return;E.value=d.value instanceof Window?document.documentElement.scrollTop:d.value.scrollTop||0;const{position:e,target:t,offset:n}=r,a=n+p.value;if("top"===e)if(t){const e=_.bottom.value-a;C.value=n>m.value&&_.bottom.value>0,R.value=e<0?e:0}else C.value=n>m.value;else if(t){const e=h.value-_.top.value-a;C.value=h.value-n<g.value&&h.value>_.top.value,R.value=e<0?-e:0}else C.value=h.value-n<g.value},M=()=>{k(),n("scroll",{scrollTop:E.value,fixed:C.value})};return(0,s.wB)(C,(e=>n("change",e))),(0,s.sV)((()=>{var e;r.target?(i.value=null!=(e=document.querySelector(r.target))?e:void 0,i.value||(0,w.$)(x,`Target does not exist: ${r.target}`)):i.value=document.documentElement,d.value=(0,y.Bo)(o.value,!0),k()})),(0,u.MLh)(d,"scroll",M),(0,s.nT)(T),t({update:T,updateRoot:k}),(e,t)=>((0,s.uX)(),(0,s.CE)("div",{ref_key:"root",ref:o,class:(0,c.C4)((0,l.R1)(a).b()),style:(0,c.Tr)((0,l.R1)(S))},[(0,s.Lk)("div",{class:(0,c.C4)({[(0,l.R1)(a).m("fixed")]:C.value}),style:(0,c.Tr)((0,l.R1)(A))},[(0,s.RG)(e.$slots,"default")],6)],6))}});var C=(0,g.A)(_,[["__file","affix.vue"]]),E=n(5376);const R=(0,E.GU)(C);var S=n(5130),A=n(813),T=n(464),M=n(4340);const L=["light","dark"],O=(0,h.b_)({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:(0,M.YD)(T.rz),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:L,default:"light"}}),I={close:e=>e instanceof MouseEvent},N=(0,s.pM)({name:"ElAlert"}),B=(0,s.pM)({...N,props:O,emits:I,setup(e,{emit:t}){const n=e,{Close:r}=T.Nk,a=(0,s.Ht)(),i=(0,v.DU)("alert"),o=(0,l.KR)(!0),u=(0,s.EW)((()=>T.rz[n.type])),d=(0,s.EW)((()=>!(!n.description&&!a.default))),h=e=>{o.value=!1,t("close",e)};return(e,t)=>((0,s.uX)(),(0,s.Wv)(S.eB,{name:(0,l.R1)(i).b("fade"),persisted:""},{default:(0,s.k6)((()=>[(0,s.bo)((0,s.Lk)("div",{class:(0,c.C4)([(0,l.R1)(i).b(),(0,l.R1)(i).m(e.type),(0,l.R1)(i).is("center",e.center),(0,l.R1)(i).is(e.effect)]),role:"alert"},[e.showIcon&&(0,l.R1)(u)?((0,s.uX)(),(0,s.Wv)((0,l.R1)(A.tk),{key:0,class:(0,c.C4)([(0,l.R1)(i).e("icon"),{[(0,l.R1)(i).is("big")]:(0,l.R1)(d)}])},{default:(0,s.k6)((()=>[((0,s.uX)(),(0,s.Wv)((0,s.$y)((0,l.R1)(u))))])),_:1},8,["class"])):(0,s.Q3)("v-if",!0),(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(i).e("content"))},[e.title||e.$slots.title?((0,s.uX)(),(0,s.CE)("span",{key:0,class:(0,c.C4)([(0,l.R1)(i).e("title"),{"with-description":(0,l.R1)(d)}])},[(0,s.RG)(e.$slots,"title",{},(()=>[(0,s.eW)((0,c.v_)(e.title),1)]))],2)):(0,s.Q3)("v-if",!0),(0,l.R1)(d)?((0,s.uX)(),(0,s.CE)("p",{key:1,class:(0,c.C4)((0,l.R1)(i).e("description"))},[(0,s.RG)(e.$slots,"default",{},(()=>[(0,s.eW)((0,c.v_)(e.description),1)]))],2)):(0,s.Q3)("v-if",!0),e.closable?((0,s.uX)(),(0,s.CE)(s.FK,{key:2},[e.closeText?((0,s.uX)(),(0,s.CE)("div",{key:0,class:(0,c.C4)([(0,l.R1)(i).e("close-btn"),(0,l.R1)(i).is("customed")]),onClick:h},(0,c.v_)(e.closeText),3)):((0,s.uX)(),(0,s.Wv)((0,l.R1)(A.tk),{key:1,class:(0,c.C4)((0,l.R1)(i).e("close-btn")),onClick:h},{default:(0,s.k6)((()=>[(0,s.bF)((0,l.R1)(r))])),_:1},8,["class"]))],64)):(0,s.Q3)("v-if",!0)],2)],2),[[S.aG,o.value]])])),_:3},8,["name"]))}});var D=(0,g.A)(B,[["__file","alert.vue"]]);const F=(0,E.GU)(D);var $=n(168),P=n(2563),z=n(754),W="Expected a function",j=Math.max,V=Math.min;function U(e,t,n){var r,a,i,o,s,l,c=0,u=!1,d=!1,h=!0;if("function"!=typeof e)throw new TypeError(W);function p(t){var n=r,i=a;return r=a=void 0,c=t,o=e.apply(i,n),o}function f(e){return c=e,s=setTimeout(v,t),u?p(e):o}function m(e){var n=e-l,r=e-c,a=t-n;return d?V(a,i-r):a}function g(e){var n=e-l,r=e-c;return void 0===l||n>=t||n<0||d&&r>=i}function v(){var e=(0,P.A)();if(g(e))return y(e);s=setTimeout(v,m(e))}function y(e){return s=void 0,h&&r?p(e):(r=a=void 0,o)}function b(){void 0!==s&&clearTimeout(s),c=0,r=l=a=s=void 0}function w(){return void 0===s?o:y((0,P.A)())}function x(){var e=(0,P.A)(),n=g(e);if(r=arguments,a=this,l=e,n){if(void 0===s)return f(l);if(d)return clearTimeout(s),s=setTimeout(v,t),p(l)}return void 0===s&&(s=setTimeout(v,t)),o}return t=(0,z.A)(t)||0,(0,$.A)(n)&&(u=!!n.leading,d="maxWait"in n,i=d?j((0,z.A)(n.maxWait)||0,t):i,h="trailing"in n?!!n.trailing:h),x.cancel=b,x.flush=w,x}var K=U,H=n(7477),q=n(9623);const G=4,X={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},Y=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`});var Q=n(153);const Z=Symbol("scrollbarContextKey"),J=(0,h.b_)({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),ee="Thumb",te=(0,s.pM)({__name:"thumb",props:J,setup(e){const t=e,n=(0,s.WQ)(Z),r=(0,v.DU)("scrollbar");n||(0,w.$)(ee,"can not inject scrollbar context");const a=(0,l.KR)(),i=(0,l.KR)(),o=(0,l.KR)({}),d=(0,l.KR)(!1);let h=!1,p=!1,f=Q.oc?document.onselectstart:null;const m=(0,s.EW)((()=>X[t.vertical?"vertical":"horizontal"])),g=(0,s.EW)((()=>Y({size:t.size,move:t.move,bar:m.value}))),y=(0,s.EW)((()=>a.value[m.value.offset]**2/n.wrapElement[m.value.scrollSize]/t.ratio/i.value[m.value.offset])),b=e=>{var t;if(e.stopPropagation(),e.ctrlKey||[1,2].includes(e.button))return;null==(t=window.getSelection())||t.removeAllRanges(),k(e);const n=e.currentTarget;n&&(o.value[m.value.axis]=n[m.value.offset]-(e[m.value.client]-n.getBoundingClientRect()[m.value.direction]))},x=e=>{if(!i.value||!a.value||!n.wrapElement)return;const t=Math.abs(e.target.getBoundingClientRect()[m.value.direction]-e[m.value.client]),r=i.value[m.value.offset]/2,o=100*(t-r)*y.value/a.value[m.value.offset];n.wrapElement[m.value.scroll]=o*n.wrapElement[m.value.scrollSize]/100},k=e=>{e.stopImmediatePropagation(),h=!0,document.addEventListener("mousemove",_),document.addEventListener("mouseup",C),f=document.onselectstart,document.onselectstart=()=>!1},_=e=>{if(!a.value||!i.value)return;if(!1===h)return;const t=o.value[m.value.axis];if(!t)return;const r=-1*(a.value.getBoundingClientRect()[m.value.direction]-e[m.value.client]),s=i.value[m.value.offset]-t,l=100*(r-s)*y.value/a.value[m.value.offset];n.wrapElement[m.value.scroll]=l*n.wrapElement[m.value.scrollSize]/100},C=()=>{h=!1,o.value[m.value.axis]=0,document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",C),A(),p&&(d.value=!1)},E=()=>{p=!1,d.value=!!t.size},R=()=>{p=!0,d.value=h};(0,s.xo)((()=>{A(),document.removeEventListener("mouseup",C)}));const A=()=>{document.onselectstart!==f&&(document.onselectstart=f)};return(0,u.MLh)((0,l.lW)(n,"scrollbarElement"),"mousemove",E),(0,u.MLh)((0,l.lW)(n,"scrollbarElement"),"mouseleave",R),(e,t)=>((0,s.uX)(),(0,s.Wv)(S.eB,{name:(0,l.R1)(r).b("fade"),persisted:""},{default:(0,s.k6)((()=>[(0,s.bo)((0,s.Lk)("div",{ref_key:"instance",ref:a,class:(0,c.C4)([(0,l.R1)(r).e("bar"),(0,l.R1)(r).is((0,l.R1)(m).key)]),onMousedown:x},[(0,s.Lk)("div",{ref_key:"thumb",ref:i,class:(0,c.C4)((0,l.R1)(r).e("thumb")),style:(0,c.Tr)((0,l.R1)(g)),onMousedown:b},null,38)],34),[[S.aG,e.always||d.value]])])),_:1},8,["name"]))}});var ne=(0,g.A)(te,[["__file","thumb.vue"]]);const re=(0,h.b_)({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),ae=(0,s.pM)({__name:"bar",props:re,setup(e,{expose:t}){const n=e,r=(0,s.WQ)(Z),a=(0,l.KR)(0),i=(0,l.KR)(0),o=(0,l.KR)(""),c=(0,l.KR)(""),u=(0,l.KR)(1),d=(0,l.KR)(1),h=e=>{if(e){const t=e.offsetHeight-G,n=e.offsetWidth-G;i.value=100*e.scrollTop/t*u.value,a.value=100*e.scrollLeft/n*d.value}},p=()=>{const e=null==r?void 0:r.wrapElement;if(!e)return;const t=e.offsetHeight-G,a=e.offsetWidth-G,i=t**2/e.scrollHeight,s=a**2/e.scrollWidth,l=Math.max(i,n.minSize),h=Math.max(s,n.minSize);u.value=i/(t-i)/(l/(t-l)),d.value=s/(a-s)/(h/(a-h)),c.value=l+G<t?`${l}px`:"",o.value=h+G<a?`${h}px`:""};return t({handleScroll:h,update:p}),(e,t)=>((0,s.uX)(),(0,s.CE)(s.FK,null,[(0,s.bF)(ne,{move:a.value,ratio:d.value,size:o.value,always:e.always},null,8,["move","ratio","size","always"]),(0,s.bF)(ne,{move:i.value,ratio:u.value,size:c.value,vertical:"",always:e.always},null,8,["move","ratio","size","always"])],64))}});var ie=(0,g.A)(ae,[["__file","bar.vue"]]),oe=(n(3215),n(8501));const se=(0,h.b_)({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:(0,h.jq)([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},tabindex:{type:[String,Number],default:void 0},id:String,role:String,...(0,oe.l)(["ariaLabel","ariaOrientation"])}),le={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(p.Et)},ce="ElScrollbar",ue=(0,s.pM)({name:ce}),de=(0,s.pM)({...ue,props:se,emits:le,setup(e,{expose:t,emit:n}){const r=e,a=(0,v.DU)("scrollbar");let i,o,d=0,h=0;const f=(0,l.KR)(),m=(0,l.KR)(),g=(0,l.KR)(),y=(0,l.KR)(),x=(0,s.EW)((()=>{const e={};return r.height&&(e.height=(0,b._V)(r.height)),r.maxHeight&&(e.maxHeight=(0,b._V)(r.maxHeight)),[r.wrapStyle,e]})),k=(0,s.EW)((()=>[r.wrapClass,a.e("wrap"),{[a.em("wrap","hidden-default")]:!r.native}])),_=(0,s.EW)((()=>[a.e("view"),r.viewClass])),C=()=>{var e;m.value&&(null==(e=y.value)||e.handleScroll(m.value),d=m.value.scrollTop,h=m.value.scrollLeft,n("scroll",{scrollTop:m.value.scrollTop,scrollLeft:m.value.scrollLeft}))};function E(e,t){(0,c.Gv)(e)?m.value.scrollTo(e):(0,p.Et)(e)&&(0,p.Et)(t)&&m.value.scrollTo(e,t)}const R=e=>{(0,p.Et)(e)?m.value.scrollTop=e:(0,w.U)(ce,"value must be a number")},S=e=>{(0,p.Et)(e)?m.value.scrollLeft=e:(0,w.U)(ce,"value must be a number")},A=()=>{var e;null==(e=y.value)||e.update()};return(0,s.wB)((()=>r.noresize),(e=>{e?(null==i||i(),null==o||o()):(({stop:i}=(0,u.wYm)(g,A)),o=(0,u.MLh)("resize",A))}),{immediate:!0}),(0,s.wB)((()=>[r.maxHeight,r.height]),(()=>{r.native||(0,s.dY)((()=>{var e;A(),m.value&&(null==(e=y.value)||e.handleScroll(m.value))}))})),(0,s.Gt)(Z,(0,l.Kh)({scrollbarElement:f,wrapElement:m})),(0,s.n)((()=>{m.value&&(m.value.scrollTop=d,m.value.scrollLeft=h)})),(0,s.sV)((()=>{r.native||(0,s.dY)((()=>{A()}))})),(0,s.$u)((()=>A())),t({wrapRef:m,update:A,scrollTo:E,setScrollTop:R,setScrollLeft:S,handleScroll:C}),(e,t)=>((0,s.uX)(),(0,s.CE)("div",{ref_key:"scrollbarRef",ref:f,class:(0,c.C4)((0,l.R1)(a).b())},[(0,s.Lk)("div",{ref_key:"wrapRef",ref:m,class:(0,c.C4)((0,l.R1)(k)),style:(0,c.Tr)((0,l.R1)(x)),tabindex:e.tabindex,onScroll:C},[((0,s.uX)(),(0,s.Wv)((0,s.$y)(e.tag),{id:e.id,ref_key:"resizeRef",ref:g,class:(0,c.C4)((0,l.R1)(_)),style:(0,c.Tr)(e.viewStyle),role:e.role,"aria-label":e.ariaLabel,"aria-orientation":e.ariaOrientation},{default:(0,s.k6)((()=>[(0,s.RG)(e.$slots,"default")])),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,["tabindex"]),e.native?(0,s.Q3)("v-if",!0):((0,s.uX)(),(0,s.Wv)(ie,{key:0,ref_key:"barRef",ref:y,always:e.always,"min-size":e.minSize},null,8,["always","min-size"]))],2))}});var he=(0,g.A)(de,[["__file","scrollbar.vue"]]);const pe=(0,E.GU)(he),fe=Symbol("popper"),me=Symbol("popperContent"),ge=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],ve=(0,h.b_)({role:{type:String,values:ge,default:"tooltip"}}),ye=(0,s.pM)({name:"ElPopper",inheritAttrs:!1}),be=(0,s.pM)({...ye,props:ve,setup(e,{expose:t}){const n=e,r=(0,l.KR)(),a=(0,l.KR)(),i=(0,l.KR)(),o=(0,l.KR)(),c=(0,s.EW)((()=>n.role)),u={triggerRef:r,popperInstanceRef:a,contentRef:i,referenceRef:o,role:c};return t(u),(0,s.Gt)(fe,u),(e,t)=>(0,s.RG)(e.$slots,"default")}});var we=(0,g.A)(be,[["__file","popper.vue"]]);const xe=(0,E.GU)(we),ke=Symbol("elTooltip");function _e(){let e;const t=(t,r)=>{n(),e=window.setTimeout(t,r)},n=()=>window.clearTimeout(e);return(0,Q.Uo)((()=>n())),{registerTimeout:t,cancelTimeout:n}}const Ce=(0,h.b_)({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),Ee=({showAfter:e,hideAfter:t,autoClose:n,open:r,close:a})=>{const{registerTimeout:i}=_e(),{registerTimeout:o,cancelTimeout:s}=_e(),c=t=>{i((()=>{r(t);const e=(0,l.R1)(n);(0,p.Et)(e)&&e>0&&o((()=>{a(t)}),e)}),(0,l.R1)(e))},u=e=>{s(),i((()=>{a(e)}),(0,l.R1)(t))};return{onOpen:c,onClose:u}};n(4114),n(7642),n(8004),n(3853),n(5876),n(2475),n(5024),n(1698),n(4520),n(2577),n(1454),n(8872),n(7550);var Re="top",Se="bottom",Ae="right",Te="left",Me="auto",Le=[Re,Se,Ae,Te],Oe="start",Ie="end",Ne="clippingParents",Be="viewport",De="popper",Fe="reference",$e=Le.reduce((function(e,t){return e.concat([t+"-"+Oe,t+"-"+Ie])}),[]),Pe=[].concat(Le,[Me]).reduce((function(e,t){return e.concat([t,t+"-"+Oe,t+"-"+Ie])}),[]),ze="beforeRead",We="read",je="afterRead",Ve="beforeMain",Ue="main",Ke="afterMain",He="beforeWrite",qe="write",Ge="afterWrite",Xe=[ze,We,je,Ve,Ue,Ke,He,qe,Ge];function Ye(e){return e?(e.nodeName||"").toLowerCase():null}function Qe(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ze(e){var t=Qe(e).Element;return e instanceof t||e instanceof Element}function Je(e){var t=Qe(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function et(e){if("undefined"==typeof ShadowRoot)return!1;var t=Qe(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function tt(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},a=t.elements[e];!Je(a)||!Ye(a)||(Object.assign(a.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?a.removeAttribute(e):a.setAttribute(e,!0===t?"":t)})))}))}function nt(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],a=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]),o=i.reduce((function(e,t){return e[t]="",e}),{});!Je(r)||!Ye(r)||(Object.assign(r.style,o),Object.keys(a).forEach((function(e){r.removeAttribute(e)})))}))}}var rt={name:"applyStyles",enabled:!0,phase:"write",fn:tt,effect:nt,requires:["computeStyles"]};function at(e){return e.split("-")[0]}var it=Math.max,ot=Math.min,st=Math.round;function lt(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,a=1;if(Je(e)&&t){var i=e.offsetHeight,o=e.offsetWidth;o>0&&(r=st(n.width)/o||1),i>0&&(a=st(n.height)/i||1)}return{width:n.width/r,height:n.height/a,top:n.top/a,right:n.right/r,bottom:n.bottom/a,left:n.left/r,x:n.left/r,y:n.top/a}}function ct(e){var t=lt(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function ut(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&et(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function dt(e){return Qe(e).getComputedStyle(e)}function ht(e){return["table","td","th"].indexOf(Ye(e))>=0}function pt(e){return((Ze(e)?e.ownerDocument:e.document)||window.document).documentElement}function ft(e){return"html"===Ye(e)?e:e.assignedSlot||e.parentNode||(et(e)?e.host:null)||pt(e)}function mt(e){return Je(e)&&"fixed"!==dt(e).position?e.offsetParent:null}function gt(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox"),n=-1!==navigator.userAgent.indexOf("Trident");if(n&&Je(e)){var r=dt(e);if("fixed"===r.position)return null}var a=ft(e);for(et(a)&&(a=a.host);Je(a)&&["html","body"].indexOf(Ye(a))<0;){var i=dt(a);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return a;a=a.parentNode}return null}function vt(e){for(var t=Qe(e),n=mt(e);n&&ht(n)&&"static"===dt(n).position;)n=mt(n);return n&&("html"===Ye(n)||"body"===Ye(n)&&"static"===dt(n).position)?t:n||gt(e)||t}function yt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function bt(e,t,n){return it(e,ot(t,n))}function wt(e,t,n){var r=bt(e,t,n);return r>n?n:r}function xt(){return{top:0,right:0,bottom:0,left:0}}function kt(e){return Object.assign({},xt(),e)}function _t(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var Ct=function(e,t){return e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e,kt("number"!=typeof e?e:_t(e,Le))};function Et(e){var t,n=e.state,r=e.name,a=e.options,i=n.elements.arrow,o=n.modifiersData.popperOffsets,s=at(n.placement),l=yt(s),c=[Te,Ae].indexOf(s)>=0,u=c?"height":"width";if(i&&o){var d=Ct(a.padding,n),h=ct(i),p="y"===l?Re:Te,f="y"===l?Se:Ae,m=n.rects.reference[u]+n.rects.reference[l]-o[l]-n.rects.popper[u],g=o[l]-n.rects.reference[l],v=vt(i),y=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,b=m/2-g/2,w=d[p],x=y-h[u]-d[f],k=y/2-h[u]/2+b,_=bt(w,k,x),C=l;n.modifiersData[r]=(t={},t[C]=_,t.centerOffset=_-k,t)}}function Rt(e){var t=e.state,n=e.options,r=n.element,a=void 0===r?"[data-popper-arrow]":r;null!=a&&("string"==typeof a&&(a=t.elements.popper.querySelector(a),!a)||!ut(t.elements.popper,a)||(t.elements.arrow=a))}var St={name:"arrow",enabled:!0,phase:"main",fn:Et,effect:Rt,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function At(e){return e.split("-")[1]}var Tt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Mt(e){var t=e.x,n=e.y,r=window,a=r.devicePixelRatio||1;return{x:st(t*a)/a||0,y:st(n*a)/a||0}}function Lt(e){var t,n=e.popper,r=e.popperRect,a=e.placement,i=e.variation,o=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,h=o.x,p=void 0===h?0:h,f=o.y,m=void 0===f?0:f,g="function"==typeof u?u({x:p,y:m}):{x:p,y:m};p=g.x,m=g.y;var v=o.hasOwnProperty("x"),y=o.hasOwnProperty("y"),b=Te,w=Re,x=window;if(c){var k=vt(n),_="clientHeight",C="clientWidth";if(k===Qe(n)&&(k=pt(n),"static"!==dt(k).position&&"absolute"===s&&(_="scrollHeight",C="scrollWidth")),a===Re||(a===Te||a===Ae)&&i===Ie){w=Se;var E=d&&k===x&&x.visualViewport?x.visualViewport.height:k[_];m-=E-r.height,m*=l?1:-1}if(a===Te||(a===Re||a===Se)&&i===Ie){b=Ae;var R=d&&k===x&&x.visualViewport?x.visualViewport.width:k[C];p-=R-r.width,p*=l?1:-1}}var S,A=Object.assign({position:s},c&&Tt),T=!0===u?Mt({x:p,y:m}):{x:p,y:m};return p=T.x,m=T.y,l?Object.assign({},A,(S={},S[w]=y?"0":"",S[b]=v?"0":"",S.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",S)):Object.assign({},A,(t={},t[w]=y?m+"px":"",t[b]=v?p+"px":"",t.transform="",t))}function Ot(e){var t=e.state,n=e.options,r=n.gpuAcceleration,a=void 0===r||r,i=n.adaptive,o=void 0===i||i,s=n.roundOffsets,l=void 0===s||s,c={placement:at(t.placement),variation:At(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Lt(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Lt(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var It={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Ot,data:{}},Nt={passive:!0};function Bt(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,i=void 0===a||a,o=r.resize,s=void 0===o||o,l=Qe(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(e){e.addEventListener("scroll",n.update,Nt)})),s&&l.addEventListener("resize",n.update,Nt),function(){i&&c.forEach((function(e){e.removeEventListener("scroll",n.update,Nt)})),s&&l.removeEventListener("resize",n.update,Nt)}}var Dt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Bt,data:{}},Ft={left:"right",right:"left",bottom:"top",top:"bottom"};function $t(e){return e.replace(/left|right|bottom|top/g,(function(e){return Ft[e]}))}var Pt={start:"end",end:"start"};function zt(e){return e.replace(/start|end/g,(function(e){return Pt[e]}))}function Wt(e){var t=Qe(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function jt(e){return lt(pt(e)).left+Wt(e).scrollLeft}function Vt(e){var t=Qe(e),n=pt(e),r=t.visualViewport,a=n.clientWidth,i=n.clientHeight,o=0,s=0;return r&&(a=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=r.offsetLeft,s=r.offsetTop)),{width:a,height:i,x:o+jt(e),y:s}}function Ut(e){var t,n=pt(e),r=Wt(e),a=null==(t=e.ownerDocument)?void 0:t.body,i=it(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),o=it(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),s=-r.scrollLeft+jt(e),l=-r.scrollTop;return"rtl"===dt(a||n).direction&&(s+=it(n.clientWidth,a?a.clientWidth:0)-i),{width:i,height:o,x:s,y:l}}function Kt(e){var t=dt(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function Ht(e){return["html","body","#document"].indexOf(Ye(e))>=0?e.ownerDocument.body:Je(e)&&Kt(e)?e:Ht(ft(e))}function qt(e,t){var n;void 0===t&&(t=[]);var r=Ht(e),a=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Qe(r),o=a?[i].concat(i.visualViewport||[],Kt(r)?r:[]):r,s=t.concat(o);return a?s:s.concat(qt(ft(o)))}function Gt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Xt(e){var t=lt(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function Yt(e,t){return t===Be?Gt(Vt(e)):Ze(t)?Xt(t):Gt(Ut(pt(e)))}function Qt(e){var t=qt(ft(e)),n=["absolute","fixed"].indexOf(dt(e).position)>=0,r=n&&Je(e)?vt(e):e;return Ze(r)?t.filter((function(e){return Ze(e)&&ut(e,r)&&"body"!==Ye(e)})):[]}function Zt(e,t,n){var r="clippingParents"===t?Qt(e):[].concat(t),a=[].concat(r,[n]),i=a[0],o=a.reduce((function(t,n){var r=Yt(e,n);return t.top=it(r.top,t.top),t.right=ot(r.right,t.right),t.bottom=ot(r.bottom,t.bottom),t.left=it(r.left,t.left),t}),Yt(e,i));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function Jt(e){var t,n=e.reference,r=e.element,a=e.placement,i=a?at(a):null,o=a?At(a):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(i){case Re:t={x:s,y:n.y-r.height};break;case Se:t={x:s,y:n.y+n.height};break;case Ae:t={x:n.x+n.width,y:l};break;case Te:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=i?yt(i):null;if(null!=c){var u="y"===c?"height":"width";switch(o){case Oe:t[c]=t[c]-(n[u]/2-r[u]/2);break;case Ie:t[c]=t[c]+(n[u]/2-r[u]/2);break}}return t}function en(e,t){void 0===t&&(t={});var n=t,r=n.placement,a=void 0===r?e.placement:r,i=n.boundary,o=void 0===i?Ne:i,s=n.rootBoundary,l=void 0===s?Be:s,c=n.elementContext,u=void 0===c?De:c,d=n.altBoundary,h=void 0!==d&&d,p=n.padding,f=void 0===p?0:p,m=kt("number"!=typeof f?f:_t(f,Le)),g=u===De?Fe:De,v=e.rects.popper,y=e.elements[h?g:u],b=Zt(Ze(y)?y:y.contextElement||pt(e.elements.popper),o,l),w=lt(e.elements.reference),x=Jt({reference:w,element:v,strategy:"absolute",placement:a}),k=Gt(Object.assign({},v,x)),_=u===De?k:w,C={top:b.top-_.top+m.top,bottom:_.bottom-b.bottom+m.bottom,left:b.left-_.left+m.left,right:_.right-b.right+m.right},E=e.modifiersData.offset;if(u===De&&E){var R=E[a];Object.keys(C).forEach((function(e){var t=[Ae,Se].indexOf(e)>=0?1:-1,n=[Re,Se].indexOf(e)>=0?"y":"x";C[e]+=R[n]*t}))}return C}function tn(e,t){void 0===t&&(t={});var n=t,r=n.placement,a=n.boundary,i=n.rootBoundary,o=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?Pe:l,u=At(r),d=u?s?$e:$e.filter((function(e){return At(e)===u})):Le,h=d.filter((function(e){return c.indexOf(e)>=0}));0===h.length&&(h=d);var p=h.reduce((function(t,n){return t[n]=en(e,{placement:n,boundary:a,rootBoundary:i,padding:o})[at(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}function nn(e){if(at(e)===Me)return[];var t=$t(e);return[zt(e),t,zt(t)]}function rn(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,i=void 0===a||a,o=n.altAxis,s=void 0===o||o,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,f=void 0===p||p,m=n.allowedAutoPlacements,g=t.options.placement,v=at(g),y=v===g,b=l||(y||!f?[$t(g)]:nn(g)),w=[g].concat(b).reduce((function(e,n){return e.concat(at(n)===Me?tn(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:m}):n)}),[]),x=t.rects.reference,k=t.rects.popper,_=new Map,C=!0,E=w[0],R=0;R<w.length;R++){var S=w[R],A=at(S),T=At(S)===Oe,M=[Re,Se].indexOf(A)>=0,L=M?"width":"height",O=en(t,{placement:S,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),I=M?T?Ae:Te:T?Se:Re;x[L]>k[L]&&(I=$t(I));var N=$t(I),B=[];if(i&&B.push(O[A]<=0),s&&B.push(O[I]<=0,O[N]<=0),B.every((function(e){return e}))){E=S,C=!1;break}_.set(S,B)}if(C)for(var D=f?3:1,F=function(e){var t=w.find((function(t){var n=_.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return E=t,"break"},$=D;$>0;$--){var P=F($);if("break"===P)break}t.placement!==E&&(t.modifiersData[r]._skip=!0,t.placement=E,t.reset=!0)}}var an={name:"flip",enabled:!0,phase:"main",fn:rn,requiresIfExists:["offset"],data:{_skip:!1}};function on(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function sn(e){return[Re,Ae,Se,Te].some((function(t){return e[t]>=0}))}function ln(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,i=t.modifiersData.preventOverflow,o=en(t,{elementContext:"reference"}),s=en(t,{altBoundary:!0}),l=on(o,r),c=on(s,a,i),u=sn(l),d=sn(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var cn={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ln};function un(e,t,n){var r=at(e),a=[Te,Re].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,o=i[0],s=i[1];return o=o||0,s=(s||0)*a,[Te,Ae].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function dn(e){var t=e.state,n=e.options,r=e.name,a=n.offset,i=void 0===a?[0,0]:a,o=Pe.reduce((function(e,n){return e[n]=un(n,t.rects,i),e}),{}),s=o[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=o}var hn={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:dn};function pn(e){var t=e.state,n=e.name;t.modifiersData[n]=Jt({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var fn={name:"popperOffsets",enabled:!0,phase:"read",fn:pn,data:{}};function mn(e){return"x"===e?"y":"x"}function gn(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,i=void 0===a||a,o=n.altAxis,s=void 0!==o&&o,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,h=n.tether,p=void 0===h||h,f=n.tetherOffset,m=void 0===f?0:f,g=en(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),v=at(t.placement),y=At(t.placement),b=!y,w=yt(v),x=mn(w),k=t.modifiersData.popperOffsets,_=t.rects.reference,C=t.rects.popper,E="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,R="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(k){if(i){var T,M="y"===w?Re:Te,L="y"===w?Se:Ae,O="y"===w?"height":"width",I=k[w],N=I+g[M],B=I-g[L],D=p?-C[O]/2:0,F=y===Oe?_[O]:C[O],$=y===Oe?-C[O]:-_[O],P=t.elements.arrow,z=p&&P?ct(P):{width:0,height:0},W=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:xt(),j=W[M],V=W[L],U=bt(0,_[O],z[O]),K=b?_[O]/2-D-U-j-R.mainAxis:F-U-j-R.mainAxis,H=b?-_[O]/2+D+U+V+R.mainAxis:$+U+V+R.mainAxis,q=t.elements.arrow&&vt(t.elements.arrow),G=q?"y"===w?q.clientTop||0:q.clientLeft||0:0,X=null!=(T=null==S?void 0:S[w])?T:0,Y=I+K-X-G,Q=I+H-X,Z=bt(p?ot(N,Y):N,I,p?it(B,Q):B);k[w]=Z,A[w]=Z-I}if(s){var J,ee="x"===w?Re:Te,te="x"===w?Se:Ae,ne=k[x],re="y"===x?"height":"width",ae=ne+g[ee],ie=ne-g[te],oe=-1!==[Re,Te].indexOf(v),se=null!=(J=null==S?void 0:S[x])?J:0,le=oe?ae:ne-_[re]-C[re]-se+R.altAxis,ce=oe?ne+_[re]+C[re]-se-R.altAxis:ie,ue=p&&oe?wt(le,ne,ce):bt(p?le:ae,ne,p?ce:ie);k[x]=ue,A[x]=ue-ne}t.modifiersData[r]=A}}var vn={name:"preventOverflow",enabled:!0,phase:"main",fn:gn,requiresIfExists:["offset"]};function yn(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function bn(e){return e!==Qe(e)&&Je(e)?yn(e):Wt(e)}function wn(e){var t=e.getBoundingClientRect(),n=st(t.width)/e.offsetWidth||1,r=st(t.height)/e.offsetHeight||1;return 1!==n||1!==r}function xn(e,t,n){void 0===n&&(n=!1);var r=Je(t),a=Je(t)&&wn(t),i=pt(t),o=lt(e,a),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==Ye(t)||Kt(i))&&(s=bn(t)),Je(t)?(l=lt(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=jt(i))),{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function kn(e){var t=new Map,n=new Set,r=[];function a(e){n.add(e.name);var i=[].concat(e.requires||[],e.requiresIfExists||[]);i.forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&a(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||a(e)})),r}function _n(e){var t=kn(e);return Xe.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}function Cn(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}function En(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}var Rn={placement:"bottom",modifiers:[],strategy:"absolute"};function Sn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function An(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,a=t.defaultOptions,i=void 0===a?Rn:a;return function(e,t,n){void 0===n&&(n=i);var a={placement:"bottom",orderedModifiers:[],options:Object.assign({},Rn,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],s=!1,l={state:a,setOptions:function(n){var o="function"==typeof n?n(a.options):n;u(),a.options=Object.assign({},i,a.options,o),a.scrollParents={reference:Ze(e)?qt(e):e.contextElement?qt(e.contextElement):[],popper:qt(t)};var s=_n(En([].concat(r,a.options.modifiers)));return a.orderedModifiers=s.filter((function(e){return e.enabled})),c(),l.update()},forceUpdate:function(){if(!s){var e=a.elements,t=e.reference,n=e.popper;if(Sn(t,n)){a.rects={reference:xn(t,vt(n),"fixed"===a.options.strategy),popper:ct(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(e){return a.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<a.orderedModifiers.length;r++)if(!0!==a.reset){var i=a.orderedModifiers[r],o=i.fn,c=i.options,u=void 0===c?{}:c,d=i.name;"function"==typeof o&&(a=o({state:a,options:u,name:d,instance:l})||a)}else a.reset=!1,r=-1}}},update:Cn((function(){return new Promise((function(e){l.forceUpdate(),e(a)}))})),destroy:function(){u(),s=!0}};if(!Sn(e,t))return l;function c(){a.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"==typeof i){var s=i({state:a,name:t,instance:l,options:r}),c=function(){};o.push(s||c)}}))}function u(){o.forEach((function(e){return e()})),o=[]}return l.setOptions(n).then((function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)})),l}}An();var Tn=[Dt,fn,It,rt],Mn=(An({defaultModifiers:Tn}),[Dt,fn,It,rt,hn,an,vn,St,cn]),Ln=An({defaultModifiers:Mn});const On=["fixed","absolute"],In=(0,h.b_)({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:(0,h.jq)(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Pe,default:"bottom"},popperOptions:{type:(0,h.jq)(Object),default:()=>({})},strategy:{type:String,values:On,default:"absolute"}}),Nn=(0,h.b_)({...In,id:String,style:{type:(0,h.jq)([String,Array,Object])},className:{type:(0,h.jq)([String,Array,Object])},effect:{type:(0,h.jq)(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:(0,h.jq)([String,Array,Object])},popperStyle:{type:(0,h.jq)([String,Array,Object])},referenceEl:{type:(0,h.jq)(Object)},triggerTargetEl:{type:(0,h.jq)(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...(0,oe.l)(["ariaLabel"])}),Bn={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},Dn=(0,h.b_)({...Ce,...Nn,appendTo:{type:(0,h.jq)([String,Object])},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:(0,h.jq)(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...(0,oe.l)(["ariaLabel"])}),Fn=(0,h.b_)({virtualRef:{type:(0,h.jq)(Object)},virtualTriggering:Boolean,onMouseenter:{type:(0,h.jq)(Function)},onMouseleave:{type:(0,h.jq)(Function)},onClick:{type:(0,h.jq)(Function)},onKeydown:{type:(0,h.jq)(Function)},onFocus:{type:(0,h.jq)(Function)},onBlur:{type:(0,h.jq)(Function)},onContextmenu:{type:(0,h.jq)(Function)},id:String,open:Boolean});var $n=n(515);const Pn=(0,h.b_)({...Fn,disabled:Boolean,trigger:{type:(0,h.jq)([String,Array]),default:"hover"},triggerKeys:{type:(0,h.jq)(Array),default:()=>[$n.R.enter,$n.R.numpadEnter,$n.R.space]}}),zn=(0,h.b_)({arrowOffset:{type:Number,default:5}}),Wn=(0,h.Y8)({type:(0,h.jq)(Boolean),default:null}),jn=(0,h.Y8)({type:(0,h.jq)(Function)}),Vn=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,r=[t],a={[e]:Wn,[n]:jn},i=({indicator:r,toggleReason:a,shouldHideWhenRouteChanges:i,shouldProceed:o,onShow:l,onHide:u})=>{const d=(0,s.nI)(),{emit:h}=d,f=d.props,m=(0,s.EW)((()=>(0,c.Tn)(f[n]))),g=(0,s.EW)((()=>null===f[e])),v=e=>{!0!==r.value&&(r.value=!0,a&&(a.value=e),(0,c.Tn)(l)&&l(e))},y=e=>{!1!==r.value&&(r.value=!1,a&&(a.value=e),(0,c.Tn)(u)&&u(e))},b=e=>{if(!0===f.disabled||(0,c.Tn)(o)&&!o())return;const n=m.value&&Q.oc;n&&h(t,!0),!g.value&&n||v(e)},w=e=>{if(!0===f.disabled||!Q.oc)return;const n=m.value&&Q.oc;n&&h(t,!1),!g.value&&n||y(e)},x=e=>{(0,p.Lm)(e)&&(f.disabled&&e?m.value&&h(t,!1):r.value!==e&&(e?v():y()))},k=()=>{r.value?w():b()};return(0,s.wB)((()=>f[e]),x),i&&void 0!==d.appContext.config.globalProperties.$route&&(0,s.wB)((()=>({...d.proxy.$route})),(()=>{i.value&&r.value&&w()})),(0,s.sV)((()=>{x(f[e])})),{hide:w,show:b,toggle:k,hasUpdateHandler:m}};return{useModelToggle:i,useModelToggleProps:a,useModelToggleEmits:r}},{useModelToggle:Un,useModelToggleProps:Kn,useModelToggleEmits:Hn}=Vn("modelValue"),{useModelToggleProps:qn,useModelToggleEmits:Gn,useModelToggle:Xn}=Vn("visible"),Yn=(0,h.b_)({...ve,...qn,...Dn,...Pn,...zn,showArrow:{type:Boolean,default:!0}}),Qn=[...Gn,"before-show","before-hide","show","hide","open","close"],Zn=(e,t)=>(0,c.cy)(e)?e.includes(t):e===t,Jn=(e,t,n)=>r=>{Zn((0,l.R1)(e),t)&&n(r)};var er=n(6032);const tr=Symbol("elForwardRef"),nr=e=>{const t=t=>{e.value=t};(0,s.Gt)(tr,{setForwardRef:t})},rr=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}});var ar=n(6340);const ir="ElOnlyChild",or=(0,s.pM)({name:ir,setup(e,{slots:t,attrs:n}){var r;const a=(0,s.WQ)(tr),i=rr(null!=(r=null==a?void 0:a.setForwardRef)?r:c.tE);return()=>{var e;const r=null==(e=t.default)?void 0:e.call(t,n);if(!r)return null;if(r.length>1)return(0,w.U)(ir,"requires exact only one valid child."),null;const a=sr(r);return a?(0,s.bo)((0,s.E3)(a,n),[[i]]):((0,w.U)(ir,"no valid child node found"),null)}}});function sr(e){if(!e)return null;const t=e;for(const n of t){if((0,c.Gv)(n))switch(n.type){case s.Mw:continue;case s.EY:case"svg":return lr(n);case s.FK:return sr(n.children);default:return n}return lr(n)}return null}function lr(e){const t=(0,v.DU)("only-child");return(0,s.bF)("span",{class:t.e("content")},[e])}const cr=(0,s.pM)({name:"ElPopperTrigger",inheritAttrs:!1}),ur=(0,s.pM)({...cr,props:Fn,setup(e,{expose:t}){const n=e,{role:r,triggerRef:a}=(0,s.WQ)(fe,void 0);nr(a);const i=(0,s.EW)((()=>c.value?n.id:void 0)),o=(0,s.EW)((()=>{if(r&&"tooltip"===r.value)return n.open&&n.id?n.id:void 0})),c=(0,s.EW)((()=>{if(r&&"tooltip"!==r.value)return r.value})),d=(0,s.EW)((()=>c.value?`${n.open}`:void 0));let h;const f=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return(0,s.sV)((()=>{(0,s.wB)((()=>n.virtualRef),(e=>{e&&(a.value=(0,u.F4c)(e))}),{immediate:!0}),(0,s.wB)(a,((e,t)=>{null==h||h(),h=void 0,(0,p.vq)(e)&&(f.forEach((r=>{var a;const i=n[r];i&&(e.addEventListener(r.slice(2).toLowerCase(),i),null==(a=null==t?void 0:t.removeEventListener)||a.call(t,r.slice(2).toLowerCase(),i))})),(0,ar.tp)(e)&&(h=(0,s.wB)([i,o,c,d],(t=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(((n,r)=>{(0,er.A)(t[r])?e.removeAttribute(n):e.setAttribute(n,t[r])}))}),{immediate:!0}))),(0,p.vq)(t)&&(0,ar.tp)(t)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((e=>t.removeAttribute(e)))}),{immediate:!0})})),(0,s.xo)((()=>{if(null==h||h(),h=void 0,a.value&&(0,p.vq)(a.value)){const e=a.value;f.forEach((t=>{const r=n[t];r&&e.removeEventListener(t.slice(2).toLowerCase(),r)})),a.value=void 0}})),t({triggerRef:a}),(e,t)=>e.virtualTriggering?(0,s.Q3)("v-if",!0):((0,s.uX)(),(0,s.Wv)((0,l.R1)(or),(0,s.v6)({key:0},e.$attrs,{"aria-controls":(0,l.R1)(i),"aria-describedby":(0,l.R1)(o),"aria-expanded":(0,l.R1)(d),"aria-haspopup":(0,l.R1)(c)}),{default:(0,s.k6)((()=>[(0,s.RG)(e.$slots,"default")])),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var dr=(0,g.A)(ur,[["__file","trigger.vue"]]);const hr=(e,t,{checkForDefaultPrevented:n=!0}={})=>{const r=r=>{const a=null==e?void 0:e(r);if(!1===n||!a)return null==t?void 0:t(r)};return r},pr=e=>t=>"mouse"===t.pointerType?e(t):void 0,fr=(0,s.pM)({name:"ElTooltipTrigger"}),mr=(0,s.pM)({...fr,props:Pn,setup(e,{expose:t}){const n=e,r=(0,v.DU)("tooltip"),{controlled:a,id:i,open:o,onOpen:u,onClose:d,onToggle:h}=(0,s.WQ)(ke,void 0),p=(0,l.KR)(null),f=()=>{if((0,l.R1)(a)||n.disabled)return!0},m=(0,l.lW)(n,"trigger"),g=hr(f,Jn(m,"hover",u)),y=hr(f,Jn(m,"hover",d)),b=hr(f,Jn(m,"click",(e=>{0===e.button&&h(e)}))),w=hr(f,Jn(m,"focus",u)),x=hr(f,Jn(m,"focus",d)),k=hr(f,Jn(m,"contextmenu",(e=>{e.preventDefault(),h(e)}))),_=hr(f,(e=>{const{code:t}=e;n.triggerKeys.includes(t)&&(e.preventDefault(),h(e))}));return t({triggerRef:p}),(e,t)=>((0,s.uX)(),(0,s.Wv)((0,l.R1)(dr),{id:(0,l.R1)(i),"virtual-ref":e.virtualRef,open:(0,l.R1)(o),"virtual-triggering":e.virtualTriggering,class:(0,c.C4)((0,l.R1)(r).e("trigger")),onBlur:(0,l.R1)(x),onClick:(0,l.R1)(b),onContextmenu:(0,l.R1)(k),onFocus:(0,l.R1)(w),onMouseenter:(0,l.R1)(g),onMouseleave:(0,l.R1)(y),onKeydown:(0,l.R1)(_)},{default:(0,s.k6)((()=>[(0,s.RG)(e.$slots,"default")])),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var gr=(0,g.A)(mr,[["__file","trigger.vue"]]);const vr=(0,h.b_)({to:{type:(0,h.jq)([String,Object]),required:!0},disabled:Boolean}),yr=(0,s.pM)({__name:"teleport",props:vr,setup(e){return(e,t)=>e.disabled?(0,s.RG)(e.$slots,"default",{key:0}):((0,s.uX)(),(0,s.Wv)(s.Im,{key:1,to:e.to},[(0,s.RG)(e.$slots,"default")],8,["to"]))}});var br=(0,g.A)(yr,[["__file","teleport.vue"]]);const wr=(0,E.GU)(br);var xr=n(1305);const kr=()=>{const e=(0,v.E9)(),t=(0,xr.Sj)(),n=(0,s.EW)((()=>`${e.value}-popper-container-${t.prefix}`)),r=(0,s.EW)((()=>`#${n.value}`));return{id:n,selector:r}},_r=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},Cr=()=>{const{id:e,selector:t}=kr();return(0,s.KC)((()=>{Q.oc&&(document.body.querySelector(t.value)||_r(e.value))})),{id:e,selector:t}};var Er=n(3076);const Rr=(e,t)=>{const n=(0,l.KR)(!1),r=(0,l.KR)(),a=()=>{t("focus")},i=e=>{var n;"pointer"!==(null==(n=e.detail)?void 0:n.focusReason)&&(r.value="first",t("blur"))},o=t=>{e.visible&&!n.value&&(t.target&&(r.value=t.target),n.value=!0)},s=t=>{e.trapping||("pointer"===t.detail.focusReason&&t.preventDefault(),n.value=!1)},c=()=>{n.value=!1,t("close")};return{focusStartRef:r,trapped:n,onFocusAfterReleased:i,onFocusAfterTrapped:a,onFocusInTrap:o,onFocusoutPrevented:s,onReleaseRequested:c}};var Sr=n(1631);const Ar=(e,t=[])=>{const{placement:n,strategy:r,popperOptions:a}=e,i={placement:n,strategy:r,...a,modifiers:[...Mr(e),...t]};return Lr(i,null==a?void 0:a.modifiers),i},Tr=e=>{if(Q.oc)return(0,u.F4c)(e)};function Mr(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:r}=e;return[{name:"offset",options:{offset:[0,null!=t?t:12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:r}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function Lr(e,t){t&&(e.modifiers=[...e.modifiers,...null!=t?t:[]])}var Or=n(1154);const Ir=(e,t,n={})=>{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:e})=>{const t=Nr(e);Object.assign(o.value,t)},requires:["computeStyles"]},a=(0,s.EW)((()=>{const{onFirstUpdate:e,placement:t,strategy:a,modifiers:i}=(0,l.R1)(n);return{onFirstUpdate:e,placement:t||"bottom",strategy:a||"absolute",modifiers:[...i||[],r,{name:"applyStyles",enabled:!1}]}})),i=(0,l.IJ)(),o=(0,l.KR)({styles:{popper:{position:(0,l.R1)(a).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),c=()=>{i.value&&(i.value.destroy(),i.value=void 0)};return(0,s.wB)(a,(e=>{const t=(0,l.R1)(i);t&&t.setOptions(e)}),{deep:!0}),(0,s.wB)([e,t],(([e,t])=>{c(),e&&t&&(i.value=Ln(e,t,(0,l.R1)(a)))})),(0,s.xo)((()=>{c()})),{state:(0,s.EW)((()=>{var e;return{...(null==(e=(0,l.R1)(i))?void 0:e.state)||{}}})),styles:(0,s.EW)((()=>(0,l.R1)(o).styles)),attributes:(0,s.EW)((()=>(0,l.R1)(o).attributes)),update:()=>{var e;return null==(e=(0,l.R1)(i))?void 0:e.update()},forceUpdate:()=>{var e;return null==(e=(0,l.R1)(i))?void 0:e.forceUpdate()},instanceRef:(0,s.EW)((()=>(0,l.R1)(i)))}};function Nr(e){const t=Object.keys(e.elements),n=(0,Or.A)(t.map((t=>[t,e.styles[t]||{}]))),r=(0,Or.A)(t.map((t=>[t,e.attributes[t]])));return{styles:n,attributes:r}}const Br=0,Dr=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:r,role:a}=(0,s.WQ)(fe,void 0),i=(0,l.KR)(),o=(0,l.KR)(),c=(0,s.EW)((()=>({name:"eventListeners",enabled:!!e.visible}))),u=(0,s.EW)((()=>{var e;const t=(0,l.R1)(i),n=null!=(e=(0,l.R1)(o))?e:Br;return{name:"arrow",enabled:!(0,Sr.A)(t),options:{element:t,padding:n}}})),d=(0,s.EW)((()=>({onFirstUpdate:()=>{g()},...Ar(e,[(0,l.R1)(u),(0,l.R1)(c)])}))),h=(0,s.EW)((()=>Tr(e.referenceEl)||(0,l.R1)(r))),{attributes:p,state:f,styles:m,update:g,forceUpdate:v,instanceRef:y}=Ir(h,n,d);return(0,s.wB)(y,(e=>t.value=e)),(0,s.sV)((()=>{(0,s.wB)((()=>{var e;return null==(e=(0,l.R1)(h))?void 0:e.getBoundingClientRect()}),(()=>{g()}))})),{attributes:p,arrowRef:i,contentRef:n,instanceRef:y,state:f,styles:m,role:a,forceUpdate:v,update:g}};var Fr=n(2401);const $r=(e,{attributes:t,styles:n,role:r})=>{const{nextZIndex:a}=(0,Fr.YK)(),i=(0,v.DU)("popper"),o=(0,s.EW)((()=>(0,l.R1)(t).popper)),c=(0,l.KR)((0,p.Et)(e.zIndex)?e.zIndex:a()),u=(0,s.EW)((()=>[i.b(),i.is("pure",e.pure),i.is(e.effect),e.popperClass])),d=(0,s.EW)((()=>[{zIndex:(0,l.R1)(c)},(0,l.R1)(n).popper,e.popperStyle||{}])),h=(0,s.EW)((()=>"dialog"===r.value?"false":void 0)),f=(0,s.EW)((()=>(0,l.R1)(n).arrow||{})),m=()=>{c.value=(0,p.Et)(e.zIndex)?e.zIndex:a()};return{ariaModal:h,arrowStyle:f,contentAttrs:o,contentClass:u,contentStyle:d,contentZIndex:c,updateZIndex:m}};var Pr=n(7254);const zr=(0,s.pM)({name:"ElPopperContent"}),Wr=(0,s.pM)({...zr,props:Nn,emits:Bn,setup(e,{expose:t,emit:n}){const r=e,{focusStartRef:a,trapped:i,onFocusAfterReleased:o,onFocusAfterTrapped:u,onFocusInTrap:d,onFocusoutPrevented:h,onReleaseRequested:f}=Rr(r,n),{attributes:m,arrowRef:g,contentRef:v,styles:y,instanceRef:b,role:w,update:x}=Dr(r),{ariaModal:k,arrowStyle:_,contentAttrs:C,contentClass:E,contentStyle:R,updateZIndex:S}=$r(r,{styles:y,attributes:m,role:w}),A=(0,s.WQ)(Pr.w,void 0),T=(0,l.KR)();let M;(0,s.Gt)(me,{arrowStyle:_,arrowRef:g,arrowOffset:T}),A&&(0,s.Gt)(Pr.w,{...A,addInputId:c.tE,removeInputId:c.tE});const L=(e=!0)=>{x(),e&&S()},O=()=>{L(!1),r.visible&&r.focusOnShow?i.value=!0:!1===r.visible&&(i.value=!1)};return(0,s.sV)((()=>{(0,s.wB)((()=>r.triggerTargetEl),((e,t)=>{null==M||M(),M=void 0;const n=(0,l.R1)(e||v.value),a=(0,l.R1)(t||v.value);(0,p.vq)(n)&&(M=(0,s.wB)([w,()=>r.ariaLabel,k,()=>r.id],(e=>{["role","aria-label","aria-modal","id"].forEach(((t,r)=>{(0,er.A)(e[r])?n.removeAttribute(t):n.setAttribute(t,e[r])}))}),{immediate:!0})),a!==n&&(0,p.vq)(a)&&["role","aria-label","aria-modal","id"].forEach((e=>{a.removeAttribute(e)}))}),{immediate:!0}),(0,s.wB)((()=>r.visible),O,{immediate:!0})})),(0,s.xo)((()=>{null==M||M(),M=void 0})),t({popperContentRef:v,popperInstanceRef:b,updatePopper:L,contentStyle:R}),(e,t)=>((0,s.uX)(),(0,s.CE)("div",(0,s.v6)({ref_key:"contentRef",ref:v},(0,l.R1)(C),{style:(0,l.R1)(R),class:(0,l.R1)(E),tabindex:"-1",onMouseenter:t=>e.$emit("mouseenter",t),onMouseleave:t=>e.$emit("mouseleave",t)}),[(0,s.bF)((0,l.R1)(Er.A),{trapped:(0,l.R1)(i),"trap-on-focus-in":!0,"focus-trap-el":(0,l.R1)(v),"focus-start-el":(0,l.R1)(a),onFocusAfterTrapped:(0,l.R1)(u),onFocusAfterReleased:(0,l.R1)(o),onFocusin:(0,l.R1)(d),onFocusoutPrevented:(0,l.R1)(h),onReleaseRequested:(0,l.R1)(f)},{default:(0,s.k6)((()=>[(0,s.RG)(e.$slots,"default")])),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16,["onMouseenter","onMouseleave"]))}});var jr=(0,g.A)(Wr,[["__file","content.vue"]]),Vr=n(427);const Ur=(0,s.pM)({name:"ElTooltipContent",inheritAttrs:!1}),Kr=(0,s.pM)({...Ur,props:Dn,setup(e,{expose:t}){const n=e,{selector:r}=kr(),a=(0,v.DU)("tooltip"),i=(0,l.KR)();let o;const{controlled:c,id:d,open:h,trigger:p,onClose:f,onOpen:m,onShow:g,onHide:y,onBeforeShow:b,onBeforeHide:w}=(0,s.WQ)(ke,void 0),x=(0,s.EW)((()=>n.transition||`${a.namespace.value}-fade-in-linear`)),k=(0,s.EW)((()=>n.persistent));(0,s.xo)((()=>{null==o||o()}));const _=(0,s.EW)((()=>!!(0,l.R1)(k)||(0,l.R1)(h))),C=(0,s.EW)((()=>!n.disabled&&(0,l.R1)(h))),E=(0,s.EW)((()=>n.appendTo||r.value)),R=(0,s.EW)((()=>{var e;return null!=(e=n.style)?e:{}})),A=(0,l.KR)(!0),T=()=>{y(),F()&&(0,Vr.EC)(document.body),A.value=!0},M=()=>{if((0,l.R1)(c))return!0},L=hr(M,(()=>{n.enterable&&"hover"===(0,l.R1)(p)&&m()})),O=hr(M,(()=>{"hover"===(0,l.R1)(p)&&f()})),I=()=>{var e,t;null==(t=null==(e=i.value)?void 0:e.updatePopper)||t.call(e),null==b||b()},N=()=>{null==w||w()},B=()=>{g(),o=(0,u.X2F)((0,s.EW)((()=>{var e;return null==(e=i.value)?void 0:e.popperContentRef})),(()=>{if((0,l.R1)(c))return;const e=(0,l.R1)(p);"hover"!==e&&f()}))},D=()=>{n.virtualTriggering||f()},F=e=>{var t;const n=null==(t=i.value)?void 0:t.popperContentRef,r=(null==e?void 0:e.relatedTarget)||document.activeElement;return null==n?void 0:n.contains(r)};return(0,s.wB)((()=>(0,l.R1)(h)),(e=>{e?A.value=!1:null==o||o()}),{flush:"post"}),(0,s.wB)((()=>n.content),(()=>{var e,t;null==(t=null==(e=i.value)?void 0:e.updatePopper)||t.call(e)})),t({contentRef:i,isFocusInsideContent:F}),(e,t)=>((0,s.uX)(),(0,s.Wv)((0,l.R1)(wr),{disabled:!e.teleported,to:(0,l.R1)(E)},{default:(0,s.k6)((()=>[(0,s.bF)(S.eB,{name:(0,l.R1)(x),onAfterLeave:T,onBeforeEnter:I,onAfterEnter:B,onBeforeLeave:N},{default:(0,s.k6)((()=>[(0,l.R1)(_)?(0,s.bo)(((0,s.uX)(),(0,s.Wv)((0,l.R1)(jr),(0,s.v6)({key:0,id:(0,l.R1)(d),ref_key:"contentRef",ref:i},e.$attrs,{"aria-label":e.ariaLabel,"aria-hidden":A.value,"boundaries-padding":e.boundariesPadding,"fallback-placements":e.fallbackPlacements,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,placement:e.placement,"popper-options":e.popperOptions,strategy:e.strategy,effect:e.effect,enterable:e.enterable,pure:e.pure,"popper-class":e.popperClass,"popper-style":[e.popperStyle,(0,l.R1)(R)],"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,visible:(0,l.R1)(C),"z-index":e.zIndex,onMouseenter:(0,l.R1)(L),onMouseleave:(0,l.R1)(O),onBlur:D,onClose:(0,l.R1)(f)}),{default:(0,s.k6)((()=>[(0,s.RG)(e.$slots,"default")])),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[S.aG,(0,l.R1)(C)]]):(0,s.Q3)("v-if",!0)])),_:3},8,["name"])])),_:3},8,["disabled","to"]))}});var Hr=(0,g.A)(Kr,[["__file","content.vue"]]);const qr=(0,s.pM)({name:"ElPopperArrow",inheritAttrs:!1}),Gr=(0,s.pM)({...qr,props:zn,setup(e,{expose:t}){const n=e,r=(0,v.DU)("popper"),{arrowOffset:a,arrowRef:i,arrowStyle:o}=(0,s.WQ)(me,void 0);return(0,s.wB)((()=>n.arrowOffset),(e=>{a.value=e})),(0,s.xo)((()=>{i.value=void 0})),t({arrowRef:i}),(e,t)=>((0,s.uX)(),(0,s.CE)("span",{ref_key:"arrowRef",ref:i,class:(0,c.C4)((0,l.R1)(r).e("arrow")),style:(0,c.Tr)((0,l.R1)(o)),"data-popper-arrow":""},null,6))}});var Xr=(0,g.A)(Gr,[["__file","arrow.vue"]]);const Yr=(0,s.pM)({name:"ElTooltip"}),Qr=(0,s.pM)({...Yr,props:Yn,emits:Qn,setup(e,{expose:t,emit:n}){const r=e;Cr();const a=(0,xr.Bi)(),i=(0,l.KR)(),o=(0,l.KR)(),u=()=>{var e;const t=(0,l.R1)(i);t&&(null==(e=t.popperInstanceRef)||e.update())},d=(0,l.KR)(!1),h=(0,l.KR)(),{show:f,hide:m,hasUpdateHandler:g}=Xn({indicator:d,toggleReason:h}),{onOpen:v,onClose:y}=Ee({showAfter:(0,l.lW)(r,"showAfter"),hideAfter:(0,l.lW)(r,"hideAfter"),autoClose:(0,l.lW)(r,"autoClose"),open:f,close:m}),b=(0,s.EW)((()=>(0,p.Lm)(r.visible)&&!g.value));(0,s.Gt)(ke,{controlled:b,id:a,open:(0,l.tB)(d),trigger:(0,l.lW)(r,"trigger"),onOpen:e=>{v(e)},onClose:e=>{y(e)},onToggle:e=>{(0,l.R1)(d)?y(e):v(e)},onShow:()=>{n("show",h.value)},onHide:()=>{n("hide",h.value)},onBeforeShow:()=>{n("before-show",h.value)},onBeforeHide:()=>{n("before-hide",h.value)},updatePopper:u}),(0,s.wB)((()=>r.disabled),(e=>{e&&d.value&&(d.value=!1)}));const w=e=>{var t;return null==(t=o.value)?void 0:t.isFocusInsideContent(e)};return(0,s.Y4)((()=>d.value&&m())),t({popperRef:i,contentRef:o,isFocusInsideContent:w,updatePopper:u,onOpen:v,onClose:y,hide:m}),(e,t)=>((0,s.uX)(),(0,s.Wv)((0,l.R1)(xe),{ref_key:"popperRef",ref:i,role:e.role},{default:(0,s.k6)((()=>[(0,s.bF)(gr,{disabled:e.disabled,trigger:e.trigger,"trigger-keys":e.triggerKeys,"virtual-ref":e.virtualRef,"virtual-triggering":e.virtualTriggering},{default:(0,s.k6)((()=>[e.$slots.default?(0,s.RG)(e.$slots,"default",{key:0}):(0,s.Q3)("v-if",!0)])),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),(0,s.bF)(Hr,{ref_key:"contentRef",ref:o,"aria-label":e.ariaLabel,"boundaries-padding":e.boundariesPadding,content:e.content,disabled:e.disabled,effect:e.effect,enterable:e.enterable,"fallback-placements":e.fallbackPlacements,"hide-after":e.hideAfter,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,persistent:e.persistent,"popper-class":e.popperClass,"popper-style":e.popperStyle,placement:e.placement,"popper-options":e.popperOptions,pure:e.pure,"raw-content":e.rawContent,"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,"show-after":e.showAfter,strategy:e.strategy,teleported:e.teleported,transition:e.transition,"virtual-triggering":e.virtualTriggering,"z-index":e.zIndex,"append-to":e.appendTo},{default:(0,s.k6)((()=>[(0,s.RG)(e.$slots,"content",{},(()=>[e.rawContent?((0,s.uX)(),(0,s.CE)("span",{key:0,innerHTML:e.content},null,8,["innerHTML"])):((0,s.uX)(),(0,s.CE)("span",{key:1},(0,c.v_)(e.content),1))])),e.showArrow?((0,s.uX)(),(0,s.Wv)((0,l.R1)(Xr),{key:0,"arrow-offset":e.arrowOffset},null,8,["arrow-offset"])):(0,s.Q3)("v-if",!0)])),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])])),_:3},8,["role"]))}});var Zr=(0,g.A)(Qr,[["__file","tooltip.vue"]]);const Jr=(0,E.GU)(Zr),ea=(0,h.b_)({valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:(0,h.jq)(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:(0,h.jq)([Function,Array]),default:c.tE},popperClass:{type:String,default:""},triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:{type:Boolean,default:!1},hideLoading:{type:Boolean,default:!1},teleported:Dn.teleported,highlightFirstItem:{type:Boolean,default:!1},fitInputWidth:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},name:String,...(0,oe.l)(["ariaLabel"])}),ta={[d.l4]:e=>(0,c.Kg)(e),[d.qs]:e=>(0,c.Kg)(e),[d.YU]:e=>(0,c.Kg)(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,select:e=>(0,c.Gv)(e)};var na=n(3716),ra=n(2436);const aa="ElAutocomplete",ia=(0,s.pM)({name:aa,inheritAttrs:!1}),oa=(0,s.pM)({...ia,props:ea,emits:ta,setup(e,{expose:t,emit:n}){const r=e,a=(0,na.O)(),i=(0,s.OA)(),o=(0,ra.CB)(),h=(0,v.DU)("autocomplete"),p=(0,l.KR)(),f=(0,l.KR)(),m=(0,l.KR)(),g=(0,l.KR)();let y=!1,b=!1;const x=(0,l.KR)([]),k=(0,l.KR)(-1),_=(0,l.KR)(""),C=(0,l.KR)(!1),E=(0,l.KR)(!1),R=(0,l.KR)(!1),T=(0,xr.Bi)(),M=(0,s.EW)((()=>i.style)),L=(0,s.EW)((()=>{const e=x.value.length>0;return(e||R.value)&&C.value})),O=(0,s.EW)((()=>!r.hideLoading&&R.value)),I=(0,s.EW)((()=>p.value?Array.from(p.value.$el.querySelectorAll("input")):[])),N=()=>{L.value&&(_.value=`${p.value.$el.offsetWidth}px`)},B=()=>{k.value=-1},D=async e=>{if(E.value)return;const t=e=>{R.value=!1,E.value||((0,c.cy)(e)?(x.value=e,k.value=r.highlightFirstItem?0:-1):(0,w.$)(aa,"autocomplete suggestions must be an array"))};if(R.value=!0,(0,c.cy)(r.fetchSuggestions))t(r.fetchSuggestions);else{const n=await r.fetchSuggestions(e,t);(0,c.cy)(n)&&t(n)}},F=K(D,r.debounce),$=e=>{const t=!!e;if(n(d.qs,e),n(d.l4,e),E.value=!1,C.value||(C.value=t),!r.triggerOnFocus&&!e)return E.value=!0,void(x.value=[]);F(e)},P=e=>{var t;o.value||("INPUT"!==(null==(t=e.target)?void 0:t.tagName)||I.value.includes(document.activeElement))&&(C.value=!0)},z=e=>{n(d.YU,e)},W=e=>{b?b=!1:(C.value=!0,n("focus",e),r.triggerOnFocus&&!y&&F(String(r.modelValue)))},j=e=>{setTimeout((()=>{var t;(null==(t=m.value)?void 0:t.isFocusInsideContent())?b=!0:(C.value&&X(),n("blur",e))}))},V=()=>{C.value=!1,n(d.l4,""),n("clear")},U=async()=>{L.value&&k.value>=0&&k.value<x.value.length?Z(x.value[k.value]):r.selectWhenUnmatched&&(n("select",{value:r.modelValue}),x.value=[],k.value=-1)},G=e=>{L.value&&(e.preventDefault(),e.stopPropagation(),X())},X=()=>{C.value=!1},Y=()=>{var e;null==(e=p.value)||e.focus()},Q=()=>{var e;null==(e=p.value)||e.blur()},Z=async e=>{n(d.qs,e[r.valueKey]),n(d.l4,e[r.valueKey]),n("select",e),x.value=[],k.value=-1},J=e=>{if(!L.value||R.value)return;if(e<0)return void(k.value=-1);e>=x.value.length&&(e=x.value.length-1);const t=f.value.querySelector(`.${h.be("suggestion","wrap")}`),n=t.querySelectorAll(`.${h.be("suggestion","list")} li`),r=n[e],a=t.scrollTop,{offsetTop:i,scrollHeight:o}=r;i+o>a+t.clientHeight&&(t.scrollTop+=o),i<a&&(t.scrollTop-=o),k.value=e,p.value.ref.setAttribute("aria-activedescendant",`${T.value}-item-${k.value}`)},ee=(0,u.X2F)(g,(()=>{var e;(null==(e=m.value)?void 0:e.isFocusInsideContent())||L.value&&X()}));return(0,s.xo)((()=>{null==ee||ee()})),(0,s.sV)((()=>{p.value.ref.setAttribute("role","textbox"),p.value.ref.setAttribute("aria-autocomplete","list"),p.value.ref.setAttribute("aria-controls","id"),p.value.ref.setAttribute("aria-activedescendant",`${T.value}-item-${k.value}`),y=p.value.ref.hasAttribute("readonly")})),t({highlightedIndex:k,activated:C,loading:R,inputRef:p,popperRef:m,suggestions:x,handleSelect:Z,handleKeyEnter:U,focus:Y,blur:Q,close:X,highlight:J,getData:D}),(e,t)=>((0,s.uX)(),(0,s.Wv)((0,l.R1)(Jr),{ref_key:"popperRef",ref:m,visible:(0,l.R1)(L),placement:e.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[(0,l.R1)(h).e("popper"),e.popperClass],teleported:e.teleported,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${(0,l.R1)(h).namespace.value}-zoom-in-top`,persistent:"",role:"listbox",onBeforeShow:N,onHide:B},{content:(0,s.k6)((()=>[(0,s.Lk)("div",{ref_key:"regionRef",ref:f,class:(0,c.C4)([(0,l.R1)(h).b("suggestion"),(0,l.R1)(h).is("loading",(0,l.R1)(O))]),style:(0,c.Tr)({[e.fitInputWidth?"width":"minWidth"]:_.value,outline:"none"}),role:"region"},[(0,s.bF)((0,l.R1)(pe),{id:(0,l.R1)(T),tag:"ul","wrap-class":(0,l.R1)(h).be("suggestion","wrap"),"view-class":(0,l.R1)(h).be("suggestion","list"),role:"listbox"},{default:(0,s.k6)((()=>[(0,l.R1)(O)?((0,s.uX)(),(0,s.CE)("li",{key:0},[(0,s.RG)(e.$slots,"loading",{},(()=>[(0,s.bF)((0,l.R1)(A.tk),{class:(0,c.C4)((0,l.R1)(h).is("loading"))},{default:(0,s.k6)((()=>[(0,s.bF)((0,l.R1)(H.Rhj))])),_:1},8,["class"])]))])):((0,s.uX)(!0),(0,s.CE)(s.FK,{key:1},(0,s.pI)(x.value,((t,n)=>((0,s.uX)(),(0,s.CE)("li",{id:`${(0,l.R1)(T)}-item-${n}`,key:n,class:(0,c.C4)({highlighted:k.value===n}),role:"option","aria-selected":k.value===n,onClick:e=>Z(t)},[(0,s.RG)(e.$slots,"default",{item:t},(()=>[(0,s.eW)((0,c.v_)(t[e.valueKey]),1)]))],10,["id","aria-selected","onClick"])))),128))])),_:3},8,["id","wrap-class","view-class"])],6)])),default:(0,s.k6)((()=>[(0,s.Lk)("div",{ref_key:"listboxRef",ref:g,class:(0,c.C4)([(0,l.R1)(h).b(),e.$attrs.class]),style:(0,c.Tr)((0,l.R1)(M)),role:"combobox","aria-haspopup":"listbox","aria-expanded":(0,l.R1)(L),"aria-owns":(0,l.R1)(T)},[(0,s.bF)((0,l.R1)(q.WK),(0,s.v6)({ref_key:"inputRef",ref:p},(0,l.R1)(a),{clearable:e.clearable,disabled:(0,l.R1)(o),name:e.name,"model-value":e.modelValue,"aria-label":e.ariaLabel,onInput:$,onChange:z,onFocus:W,onBlur:j,onClear:V,onKeydown:[(0,S.jR)((0,S.D$)((e=>J(k.value-1)),["prevent"]),["up"]),(0,S.jR)((0,S.D$)((e=>J(k.value+1)),["prevent"]),["down"]),(0,S.jR)(U,["enter"]),(0,S.jR)(X,["tab"]),(0,S.jR)(G,["esc"])],onMousedown:P}),(0,s.eX)({_:2},[e.$slots.prepend?{name:"prepend",fn:(0,s.k6)((()=>[(0,s.RG)(e.$slots,"prepend")]))}:void 0,e.$slots.append?{name:"append",fn:(0,s.k6)((()=>[(0,s.RG)(e.$slots,"append")]))}:void 0,e.$slots.prefix?{name:"prefix",fn:(0,s.k6)((()=>[(0,s.RG)(e.$slots,"prefix")]))}:void 0,e.$slots.suffix?{name:"suffix",fn:(0,s.k6)((()=>[(0,s.RG)(e.$slots,"suffix")]))}:void 0]),1040,["clearable","disabled","name","model-value","aria-label","onKeydown"])],14,["aria-expanded","aria-owns"])])),_:3},8,["visible","placement","popper-class","teleported","transition"]))}});var sa=(0,g.A)(oa,[["__file","autocomplete.vue"]]);const la=(0,E.GU)(sa);var ca=n(1211);const ua=(0,h.b_)({size:{type:[Number,String],values:ca.I,default:"",validator:e=>(0,p.Et)(e)},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:T.Ze},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:(0,h.jq)(String),default:"cover"}}),da={error:e=>e instanceof Event},ha=(0,s.pM)({name:"ElAvatar"}),pa=(0,s.pM)({...ha,props:ua,emits:da,setup(e,{emit:t}){const n=e,r=(0,v.DU)("avatar"),a=(0,l.KR)(!1),i=(0,s.EW)((()=>{const{size:e,icon:t,shape:a}=n,i=[r.b()];return(0,c.Kg)(e)&&i.push(r.m(e)),t&&i.push(r.m("icon")),a&&i.push(r.m(a)),i})),o=(0,s.EW)((()=>{const{size:e}=n;return(0,p.Et)(e)?r.cssVarBlock({size:(0,b._V)(e)||""}):void 0})),u=(0,s.EW)((()=>({objectFit:n.fit})));function d(e){a.value=!0,t("error",e)}return(0,s.wB)((()=>n.src),(()=>a.value=!1)),(e,t)=>((0,s.uX)(),(0,s.CE)("span",{class:(0,c.C4)((0,l.R1)(i)),style:(0,c.Tr)((0,l.R1)(o))},[!e.src&&!e.srcSet||a.value?e.icon?((0,s.uX)(),(0,s.Wv)((0,l.R1)(A.tk),{key:1},{default:(0,s.k6)((()=>[((0,s.uX)(),(0,s.Wv)((0,s.$y)(e.icon)))])),_:1})):(0,s.RG)(e.$slots,"default",{key:2}):((0,s.uX)(),(0,s.CE)("img",{key:0,src:e.src,alt:e.alt,srcset:e.srcSet,style:(0,c.Tr)((0,l.R1)(u)),onError:d},null,44,["src","alt","srcset"]))],6))}});var fa=(0,g.A)(pa,[["__file","avatar.vue"]]);const ma=(0,E.GU)(fa),ga={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},va={click:e=>e instanceof MouseEvent},ya=(e,t,n)=>{const r=(0,l.IJ)(),a=(0,l.IJ)(),i=(0,l.KR)(!1),o=()=>{r.value&&(i.value=r.value.scrollTop>=e.visibilityHeight)},c=e=>{var n;null==(n=r.value)||n.scrollTo({top:0,behavior:"smooth"}),t("click",e)},d=(0,Q.k3)(o,300,!0);return(0,u.MLh)(a,"scroll",d),(0,s.sV)((()=>{var t;a.value=document,r.value=document.documentElement,e.target&&(r.value=null!=(t=document.querySelector(e.target))?t:void 0,r.value||(0,w.$)(n,`target does not exist: ${e.target}`),a.value=r.value),o()})),{visible:i,handleClick:c}},ba="ElBacktop",wa=(0,s.pM)({name:ba}),xa=(0,s.pM)({...wa,props:ga,emits:va,setup(e,{emit:t}){const n=e,r=(0,v.DU)("backtop"),{handleClick:a,visible:i}=ya(n,t,ba),o=(0,s.EW)((()=>({right:`${n.right}px`,bottom:`${n.bottom}px`})));return(e,t)=>((0,s.uX)(),(0,s.Wv)(S.eB,{name:`${(0,l.R1)(r).namespace.value}-fade-in`},{default:(0,s.k6)((()=>[(0,l.R1)(i)?((0,s.uX)(),(0,s.CE)("div",{key:0,style:(0,c.Tr)((0,l.R1)(o)),class:(0,c.C4)((0,l.R1)(r).b()),onClick:(0,S.D$)((0,l.R1)(a),["stop"])},[(0,s.RG)(e.$slots,"default",{},(()=>[(0,s.bF)((0,l.R1)(A.tk),{class:(0,c.C4)((0,l.R1)(r).e("icon"))},{default:(0,s.k6)((()=>[(0,s.bF)((0,l.R1)(H.ziD))])),_:1},8,["class"])]))],14,["onClick"])):(0,s.Q3)("v-if",!0)])),_:3},8,["name"]))}});var ka=(0,g.A)(xa,[["__file","backtop.vue"]]);const _a=(0,E.GU)(ka),Ca=(0,h.b_)({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:{type:(0,h.jq)([String,Object,Array])},offset:{type:(0,h.jq)(Array),default:[0,0]},badgeClass:{type:String}}),Ea=(0,s.pM)({name:"ElBadge"}),Ra=(0,s.pM)({...Ea,props:Ca,setup(e,{expose:t}){const n=e,r=(0,v.DU)("badge"),a=(0,s.EW)((()=>n.isDot?"":(0,p.Et)(n.value)&&(0,p.Et)(n.max)&&n.max<n.value?`${n.max}+`:`${n.value}`)),i=(0,s.EW)((()=>{var e,t,r,a,i;return[{backgroundColor:n.color,marginRight:(0,b._V)(-(null!=(t=null==(e=n.offset)?void 0:e[0])?t:0)),marginTop:(0,b._V)(null!=(a=null==(r=n.offset)?void 0:r[1])?a:0)},null!=(i=n.badgeStyle)?i:{}]}));return t({content:a}),(e,t)=>((0,s.uX)(),(0,s.CE)("div",{class:(0,c.C4)((0,l.R1)(r).b())},[(0,s.RG)(e.$slots,"default"),(0,s.bF)(S.eB,{name:`${(0,l.R1)(r).namespace.value}-zoom-in-center`,persisted:""},{default:(0,s.k6)((()=>[(0,s.bo)((0,s.Lk)("sup",{class:(0,c.C4)([(0,l.R1)(r).e("content"),(0,l.R1)(r).em("content",e.type),(0,l.R1)(r).is("fixed",!!e.$slots.default),(0,l.R1)(r).is("dot",e.isDot),(0,l.R1)(r).is("hide-zero",!e.showZero&&0===n.value),e.badgeClass]),style:(0,c.Tr)((0,l.R1)(i))},[(0,s.RG)(e.$slots,"content",{value:(0,l.R1)(a)},(()=>[(0,s.eW)((0,c.v_)((0,l.R1)(a)),1)]))],6),[[S.aG,!e.hidden&&((0,l.R1)(a)||e.isDot||e.$slots.content)]])])),_:3},8,["name"])],2))}});var Sa=(0,g.A)(Ra,[["__file","badge.vue"]]);const Aa=(0,E.GU)(Sa),Ta=Symbol("breadcrumbKey"),Ma=(0,h.b_)({separator:{type:String,default:"/"},separatorIcon:{type:T.Ze}});var La=n(6268);const Oa=(0,s.pM)({name:"ElBreadcrumb"}),Ia=(0,s.pM)({...Oa,props:Ma,setup(e){const t=e,{t:n}=(0,La.Ym)(),r=(0,v.DU)("breadcrumb"),a=(0,l.KR)();return(0,s.Gt)(Ta,t),(0,s.sV)((()=>{const e=a.value.querySelectorAll(`.${r.e("item")}`);e.length&&e[e.length-1].setAttribute("aria-current","page")})),(e,t)=>((0,s.uX)(),(0,s.CE)("div",{ref_key:"breadcrumb",ref:a,class:(0,c.C4)((0,l.R1)(r).b()),"aria-label":(0,l.R1)(n)("el.breadcrumb.label"),role:"navigation"},[(0,s.RG)(e.$slots,"default")],10,["aria-label"]))}});var Na=(0,g.A)(Ia,[["__file","breadcrumb.vue"]]);const Ba=(0,h.b_)({to:{type:(0,h.jq)([String,Object]),default:""},replace:Boolean}),Da=(0,s.pM)({name:"ElBreadcrumbItem"}),Fa=(0,s.pM)({...Da,props:Ba,setup(e){const t=e,n=(0,s.nI)(),r=(0,s.WQ)(Ta,void 0),a=(0,v.DU)("breadcrumb"),i=n.appContext.config.globalProperties.$router,o=(0,l.KR)(),u=()=>{t.to&&i&&(t.replace?i.replace(t.to):i.push(t.to))};return(e,t)=>{var n,i;return(0,s.uX)(),(0,s.CE)("span",{class:(0,c.C4)((0,l.R1)(a).e("item"))},[(0,s.Lk)("span",{ref_key:"link",ref:o,class:(0,c.C4)([(0,l.R1)(a).e("inner"),(0,l.R1)(a).is("link",!!e.to)]),role:"link",onClick:u},[(0,s.RG)(e.$slots,"default")],2),(null==(n=(0,l.R1)(r))?void 0:n.separatorIcon)?((0,s.uX)(),(0,s.Wv)((0,l.R1)(A.tk),{key:0,class:(0,c.C4)((0,l.R1)(a).e("separator"))},{default:(0,s.k6)((()=>[((0,s.uX)(),(0,s.Wv)((0,s.$y)((0,l.R1)(r).separatorIcon)))])),_:1},8,["class"])):((0,s.uX)(),(0,s.CE)("span",{key:1,class:(0,c.C4)((0,l.R1)(a).e("separator")),role:"presentation"},(0,c.v_)(null==(i=(0,l.R1)(r))?void 0:i.separator),3))],2)}}});var $a=(0,g.A)(Fa,[["__file","breadcrumb-item.vue"]]);const Pa=(0,E.GU)(Na,{BreadcrumbItem:$a}),za=(0,E.WM)($a);var Wa=n(47),ja=n(1576);const Va=(e,t)=>[e>0?e-1:void 0,e,e<t?e+1:void 0],Ua=e=>Array.from(Array.from({length:e}).keys()),Ka=e=>e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),Ha=e=>e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),qa=function(e,t){const n=(0,c.$P)(e),r=(0,c.$P)(t);return n&&r?e.getTime()===t.getTime():!n&&!r&&e===t},Ga=function(e,t){const n=(0,c.cy)(e),r=(0,c.cy)(t);return n&&r?e.length===t.length&&e.every(((e,n)=>qa(e,t[n]))):!n&&!r&&qa(e,t)},Xa=function(e,t,n){const r=(0,p.Im)(t)||"x"===t?ja(e).locale(n):ja(e,t).locale(n);return r.isValid()?r:void 0},Ya=function(e,t,n){return(0,p.Im)(t)?e:"x"===t?+e:ja(e).locale(n).format(t)},Qa=(e,t)=>{var n;const r=[],a=null==t?void 0:t();for(let i=0;i<e;i++)r.push(null!=(n=null==a?void 0:a.includes(i))&&n);return r},Za=e=>(0,c.cy)(e)?e.map((e=>e.toDate())):e.toDate(),Ja=(e,t)=>{const n=e.subtract(1,"month").endOf("month").date();return Ua(t).map(((e,r)=>n-(t-r-1)))},ei=e=>{const t=e.daysInMonth();return Ua(t).map(((e,t)=>t+1))},ti=e=>Ua(e.length/7).map((t=>{const n=7*t;return e.slice(n,n+7)})),ni=(0,h.b_)({selectedDay:{type:(0,h.jq)(Object)},range:{type:(0,h.jq)(Array)},date:{type:(0,h.jq)(Object),required:!0},hideHeader:{type:Boolean}}),ri={pick:e=>(0,c.Gv)(e)};var ai=n(2317);const ii=["year","years","month","months","date","dates","week","datetime","datetimerange","daterange","monthrange","yearrange"],oi=["sun","mon","tue","wed","thu","fri","sat"],si=(e,t)=>{ja.extend(ai);const n=ja.localeData().firstDayOfWeek(),{t:r,lang:a}=(0,La.Ym)(),i=ja().locale(a.value),o=(0,s.EW)((()=>!!e.range&&!!e.range.length)),l=(0,s.EW)((()=>{let t=[];if(o.value){const[n,r]=e.range,a=Ua(r.date()-n.date()+1).map((e=>({text:n.date()+e,type:"current"})));let i=a.length%7;i=0===i?0:7-i;const o=Ua(i).map(((e,t)=>({text:t+1,type:"next"})));t=a.concat(o)}else{const r=e.date.startOf("month").day(),a=Ja(e.date,(r-n+7)%7).map((e=>({text:e,type:"prev"}))),i=ei(e.date).map((e=>({text:e,type:"current"})));t=[...a,...i];const o=7-(t.length%7||7),s=Ua(o).map(((e,t)=>({text:t+1,type:"next"})));t=t.concat(s)}return ti(t)})),c=(0,s.EW)((()=>{const e=n;return 0===e?oi.map((e=>r(`el.datepicker.weeks.${e}`))):oi.slice(e).concat(oi.slice(0,e)).map((e=>r(`el.datepicker.weeks.${e}`)))})),u=(t,n)=>{switch(n){case"prev":return e.date.startOf("month").subtract(1,"month").date(t);case"next":return e.date.startOf("month").add(1,"month").date(t);case"current":return e.date.date(t)}},d=({text:e,type:n})=>{const r=u(e,n);t("pick",r)},h=({text:t,type:n})=>{const r=u(t,n);return{isSelected:r.isSame(e.selectedDay),type:`${n}-month`,day:r.format("YYYY-MM-DD"),date:r.toDate()}};return{now:i,isInRange:o,rows:l,weekDays:c,getFormattedDate:u,handlePickDay:d,getSlotData:h}},li=(0,s.pM)({name:"DateTable"}),ci=(0,s.pM)({...li,props:ni,emits:ri,setup(e,{expose:t,emit:n}){const r=e,{isInRange:a,now:i,rows:o,weekDays:u,getFormattedDate:d,handlePickDay:h,getSlotData:p}=si(r,n),f=(0,v.DU)("calendar-table"),m=(0,v.DU)("calendar-day"),g=({text:e,type:t})=>{const n=[t];if("current"===t){const a=d(e,t);a.isSame(r.selectedDay,"day")&&n.push(m.is("selected")),a.isSame(i,"day")&&n.push(m.is("today"))}return n};return t({getFormattedDate:d}),(e,t)=>((0,s.uX)(),(0,s.CE)("table",{class:(0,c.C4)([(0,l.R1)(f).b(),(0,l.R1)(f).is("range",(0,l.R1)(a))]),cellspacing:"0",cellpadding:"0"},[e.hideHeader?(0,s.Q3)("v-if",!0):((0,s.uX)(),(0,s.CE)("thead",{key:0},[(0,s.Lk)("tr",null,[((0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)((0,l.R1)(u),(e=>((0,s.uX)(),(0,s.CE)("th",{key:e,scope:"col"},(0,c.v_)(e),1)))),128))])])),(0,s.Lk)("tbody",null,[((0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)((0,l.R1)(o),((t,n)=>((0,s.uX)(),(0,s.CE)("tr",{key:n,class:(0,c.C4)({[(0,l.R1)(f).e("row")]:!0,[(0,l.R1)(f).em("row","hide-border")]:0===n&&e.hideHeader})},[((0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)(t,((t,n)=>((0,s.uX)(),(0,s.CE)("td",{key:n,class:(0,c.C4)(g(t)),onClick:e=>(0,l.R1)(h)(t)},[(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(m).b())},[(0,s.RG)(e.$slots,"date-cell",{data:(0,l.R1)(p)(t)},(()=>[(0,s.Lk)("span",null,(0,c.v_)(t.text),1)]))],2)],10,["onClick"])))),128))],2)))),128))])],2))}});var ui=(0,g.A)(ci,[["__file","date-table.vue"]]);const di=(e,t)=>{const n=e.endOf("month"),r=t.startOf("month"),a=n.isSame(r,"week"),i=a?r.add(1,"week"):r;return[[e,n],[i.startOf("week"),t]]},hi=(e,t)=>{const n=e.endOf("month"),r=e.add(1,"month").startOf("month"),a=n.isSame(r,"week")?r.add(1,"week"):r,i=a.endOf("month"),o=t.startOf("month"),s=i.isSame(o,"week")?o.add(1,"week"):o;return[[e,n],[a.startOf("week"),i],[s.startOf("week"),t]]},pi=(e,t,n)=>{const{lang:r}=(0,La.Ym)(),a=(0,l.KR)(),i=ja().locale(r.value),o=(0,s.EW)({get(){return e.modelValue?h.value:a.value},set(e){if(!e)return;a.value=e;const n=e.toDate();t(d.qs,n),t(d.l4,n)}}),u=(0,s.EW)((()=>{if(!e.range||!(0,c.cy)(e.range)||2!==e.range.length||e.range.some((e=>!(0,c.$P)(e))))return[];const t=e.range.map((e=>ja(e).locale(r.value))),[a,i]=t;return a.isAfter(i)?((0,w.U)(n,"end time should be greater than start time"),[]):a.isSame(i,"month")?v(a,i):a.add(1,"month").month()!==i.month()?((0,w.U)(n,"start time and end time interval must not exceed two months"),[]):v(a,i)})),h=(0,s.EW)((()=>e.modelValue?ja(e.modelValue).locale(r.value):o.value||(u.value.length?u.value[0][0]:i))),p=(0,s.EW)((()=>h.value.subtract(1,"month").date(1))),f=(0,s.EW)((()=>h.value.add(1,"month").date(1))),m=(0,s.EW)((()=>h.value.subtract(1,"year").date(1))),g=(0,s.EW)((()=>h.value.add(1,"year").date(1))),v=(e,t)=>{const r=e.startOf("week"),a=t.endOf("week"),i=r.get("month"),o=a.get("month");return i===o?[[r,a]]:(i+1)%12===o?di(r,a):i+2===o||(i+1)%11===o?hi(r,a):((0,w.U)(n,"start time and end time interval must not exceed two months"),[])},y=e=>{o.value=e},b=e=>{const t={"prev-month":p.value,"next-month":f.value,"prev-year":m.value,"next-year":g.value,today:i},n=t[e];n.isSame(h.value,"day")||y(n)};return{calculateValidatedDateRange:v,date:h,realSelectedDay:o,pickDay:y,selectDate:b,validatedRange:u}},fi=e=>(0,c.cy)(e)&&2===e.length&&e.every((e=>(0,c.$P)(e))),mi=(0,h.b_)({modelValue:{type:Date},range:{type:(0,h.jq)(Array),validator:fi}}),gi={[d.l4]:e=>(0,c.$P)(e),[d.qs]:e=>(0,c.$P)(e)},vi="ElCalendar",yi=(0,s.pM)({name:vi}),bi=(0,s.pM)({...yi,props:mi,emits:gi,setup(e,{expose:t,emit:n}){const r=e,a=(0,v.DU)("calendar"),{calculateValidatedDateRange:i,date:o,pickDay:u,realSelectedDay:d,selectDate:h,validatedRange:p}=pi(r,n,vi),{t:f}=(0,La.Ym)(),m=(0,s.EW)((()=>{const e=`el.datepicker.month${o.value.format("M")}`;return`${o.value.year()} ${f("el.datepicker.year")} ${f(e)}`}));return t({selectedDay:d,pickDay:u,selectDate:h,calculateValidatedDateRange:i}),(e,t)=>((0,s.uX)(),(0,s.CE)("div",{class:(0,c.C4)((0,l.R1)(a).b())},[(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(a).e("header"))},[(0,s.RG)(e.$slots,"header",{date:(0,l.R1)(m)},(()=>[(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(a).e("title"))},(0,c.v_)((0,l.R1)(m)),3),0===(0,l.R1)(p).length?((0,s.uX)(),(0,s.CE)("div",{key:0,class:(0,c.C4)((0,l.R1)(a).e("button-group"))},[(0,s.bF)((0,l.R1)(Wa.fg),null,{default:(0,s.k6)((()=>[(0,s.bF)((0,l.R1)(Wa.S2),{size:"small",onClick:e=>(0,l.R1)(h)("prev-month")},{default:(0,s.k6)((()=>[(0,s.eW)((0,c.v_)((0,l.R1)(f)("el.datepicker.prevMonth")),1)])),_:1},8,["onClick"]),(0,s.bF)((0,l.R1)(Wa.S2),{size:"small",onClick:e=>(0,l.R1)(h)("today")},{default:(0,s.k6)((()=>[(0,s.eW)((0,c.v_)((0,l.R1)(f)("el.datepicker.today")),1)])),_:1},8,["onClick"]),(0,s.bF)((0,l.R1)(Wa.S2),{size:"small",onClick:e=>(0,l.R1)(h)("next-month")},{default:(0,s.k6)((()=>[(0,s.eW)((0,c.v_)((0,l.R1)(f)("el.datepicker.nextMonth")),1)])),_:1},8,["onClick"])])),_:1})],2)):(0,s.Q3)("v-if",!0)]))],2),0===(0,l.R1)(p).length?((0,s.uX)(),(0,s.CE)("div",{key:0,class:(0,c.C4)((0,l.R1)(a).e("body"))},[(0,s.bF)(ui,{date:(0,l.R1)(o),"selected-day":(0,l.R1)(d),onPick:(0,l.R1)(u)},(0,s.eX)({_:2},[e.$slots["date-cell"]?{name:"date-cell",fn:(0,s.k6)((t=>[(0,s.RG)(e.$slots,"date-cell",(0,c._B)((0,s.Ng)(t)))]))}:void 0]),1032,["date","selected-day","onPick"])],2)):((0,s.uX)(),(0,s.CE)("div",{key:1,class:(0,c.C4)((0,l.R1)(a).e("body"))},[((0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)((0,l.R1)(p),((t,n)=>((0,s.uX)(),(0,s.Wv)(ui,{key:n,date:t[0],"selected-day":(0,l.R1)(d),range:t,"hide-header":0!==n,onPick:(0,l.R1)(u)},(0,s.eX)({_:2},[e.$slots["date-cell"]?{name:"date-cell",fn:(0,s.k6)((t=>[(0,s.RG)(e.$slots,"date-cell",(0,c._B)((0,s.Ng)(t)))]))}:void 0]),1032,["date","selected-day","range","hide-header","onPick"])))),128))],2))],2))}});var wi=(0,g.A)(bi,[["__file","calendar.vue"]]);const xi=(0,E.GU)(wi),ki=(0,h.b_)({header:{type:String,default:""},footer:{type:String,default:""},bodyStyle:{type:(0,h.jq)([String,Object,Array]),default:""},bodyClass:String,shadow:{type:String,values:["always","hover","never"],default:"always"}}),_i=(0,s.pM)({name:"ElCard"}),Ci=(0,s.pM)({..._i,props:ki,setup(e){const t=(0,v.DU)("card");return(e,n)=>((0,s.uX)(),(0,s.CE)("div",{class:(0,c.C4)([(0,l.R1)(t).b(),(0,l.R1)(t).is(`${e.shadow}-shadow`)])},[e.$slots.header||e.header?((0,s.uX)(),(0,s.CE)("div",{key:0,class:(0,c.C4)((0,l.R1)(t).e("header"))},[(0,s.RG)(e.$slots,"header",{},(()=>[(0,s.eW)((0,c.v_)(e.header),1)]))],2)):(0,s.Q3)("v-if",!0),(0,s.Lk)("div",{class:(0,c.C4)([(0,l.R1)(t).e("body"),e.bodyClass]),style:(0,c.Tr)(e.bodyStyle)},[(0,s.RG)(e.$slots,"default")],6),e.$slots.footer||e.footer?((0,s.uX)(),(0,s.CE)("div",{key:1,class:(0,c.C4)((0,l.R1)(t).e("footer"))},[(0,s.RG)(e.$slots,"footer",{},(()=>[(0,s.eW)((0,c.v_)(e.footer),1)]))],2)):(0,s.Q3)("v-if",!0)],2))}});var Ei=(0,g.A)(Ci,[["__file","card.vue"]]);const Ri=(0,E.GU)(Ei),Si=(0,h.b_)({initialIndex:{type:Number,default:0},height:{type:String,default:""},trigger:{type:String,values:["hover","click"],default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:{type:String,values:["","none","outside"],default:""},arrow:{type:String,values:["always","hover","never"],default:"hover"},type:{type:String,values:["","card"],default:""},cardScale:{type:Number,default:.83},loop:{type:Boolean,default:!0},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},pauseOnHover:{type:Boolean,default:!0},motionBlur:Boolean}),Ai={change:(e,t)=>[e,t].every(p.Et)};var Ti="Expected a function";function Mi(e,t,n){var r=!0,a=!0;if("function"!=typeof e)throw new TypeError(Ti);return(0,$.A)(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),K(e,t,{leading:r,maxWait:t,trailing:a})}var Li=Mi;const Oi=Symbol("carouselContextKey"),Ii="ElCarouselItem";var Ni=n(6139);const Bi=(e,t,n)=>{const r=(0,Ni.CW)(e.subTree).filter((e=>{var n;return(0,s.vv)(e)&&(null==(n=e.type)?void 0:n.name)===t&&!!e.component})),a=r.map((e=>e.component.uid));return a.map((e=>n[e])).filter((e=>!!e))},Di=(e,t)=>{const n={},r=(0,l.IJ)([]),a=a=>{n[a.uid]=a,r.value=Bi(e,t,n)},i=e=>{delete n[e],r.value=r.value.filter((t=>t.uid!==e))};return{children:r,addChild:a,removeChild:i}},Fi=300,$i=(e,t,n)=>{const{children:r,addChild:a,removeChild:i}=Di((0,s.nI)(),Ii),o=(0,s.Ht)(),d=(0,l.KR)(-1),h=(0,l.KR)(null),p=(0,l.KR)(!1),f=(0,l.KR)(),m=(0,l.KR)(0),g=(0,l.KR)(!0),v=(0,l.KR)(!0),y=(0,l.KR)(!1),b=(0,s.EW)((()=>"never"!==e.arrow&&!(0,l.R1)(_))),x=(0,s.EW)((()=>r.value.some((e=>e.props.label.toString().length>0)))),k=(0,s.EW)((()=>"card"===e.type)),_=(0,s.EW)((()=>"vertical"===e.direction)),C=(0,s.EW)((()=>"auto"!==e.height?{height:e.height}:{height:`${m.value}px`,overflow:"hidden"})),E=Li((e=>{L(e)}),Fi,{trailing:!0}),R=Li((e=>{z(e)}),Fi),S=e=>!g.value||(d.value<=1?e<=1:e>1);function A(){h.value&&(clearInterval(h.value),h.value=null)}function T(){e.interval<=0||!e.autoplay||h.value||(h.value=setInterval((()=>M()),e.interval))}const M=()=>{v.value||(y.value=!0),v.value=!1,d.value<r.value.length-1?d.value=d.value+1:e.loop?d.value=0:y.value=!1};function L(t){if(v.value||(y.value=!0),v.value=!1,(0,c.Kg)(t)){const e=r.value.filter((e=>e.props.name===t));e.length>0&&(t=r.value.indexOf(e[0]))}if(t=Number(t),Number.isNaN(t)||t!==Math.floor(t))return void(0,w.U)(n,"index must be integer.");const a=r.value.length,i=d.value;d.value=t<0?e.loop?a-1:0:t>=a?e.loop?0:a-1:t,i===d.value&&O(i),V()}function O(e){r.value.forEach(((t,n)=>{t.translateItem(n,d.value,e)}))}function I(e,t){var n,a,i,o;const s=(0,l.R1)(r),c=s.length;if(0===c||!e.states.inStage)return!1;const u=t+1,d=t-1,h=c-1,p=s[h].states.active,f=s[0].states.active,m=null==(a=null==(n=s[u])?void 0:n.states)?void 0:a.active,g=null==(o=null==(i=s[d])?void 0:i.states)?void 0:o.active;return t===h&&f||m?"left":!!(0===t&&p||g)&&"right"}function N(){p.value=!0,e.pauseOnHover&&A()}function B(){p.value=!1,T()}function D(){y.value=!1}function F(e){(0,l.R1)(_)||r.value.forEach(((t,n)=>{e===I(t,n)&&(t.states.hover=!0)}))}function $(){(0,l.R1)(_)||r.value.forEach((e=>{e.states.hover=!1}))}function P(e){e!==d.value&&(v.value||(y.value=!0)),d.value=e}function z(t){"hover"===e.trigger&&t!==d.value&&(d.value=t,v.value||(y.value=!0))}function W(){L(d.value-1)}function j(){L(d.value+1)}function V(){A(),e.pauseOnHover||T()}function U(t){"auto"===e.height&&(m.value=t)}function K(){var t;const n=null==(t=o.default)?void 0:t.call(o);if(!n)return null;const r=(0,Ni.CW)(n),a=r.filter((e=>(0,s.vv)(e)&&e.type.name===Ii));return 2===(null==a?void 0:a.length)&&e.loop&&!k.value?(g.value=!0,a):(g.value=!1,null)}(0,s.wB)((()=>d.value),((e,n)=>{O(n),g.value&&(e%=2,n%=2),n>-1&&t("change",e,n)})),(0,s.wB)((()=>e.autoplay),(e=>{e?T():A()})),(0,s.wB)((()=>e.loop),(()=>{L(d.value)})),(0,s.wB)((()=>e.interval),(()=>{V()}));const H=(0,l.IJ)();return(0,s.sV)((()=>{(0,s.wB)((()=>r.value),(()=>{r.value.length>0&&L(e.initialIndex)}),{immediate:!0}),H.value=(0,u.wYm)(f.value,(()=>{O()})),T()})),(0,s.xo)((()=>{A(),f.value&&H.value&&H.value.stop()})),(0,s.Gt)(Oi,{root:f,isCardType:k,isVertical:_,items:r,loop:e.loop,cardScale:e.cardScale,addItem:a,removeItem:i,setActiveItem:L,setContainerHeight:U}),{root:f,activeIndex:d,arrowDisplay:b,hasLabel:x,hover:p,isCardType:k,isTransitioning:y,items:r,isVertical:_,containerStyle:C,isItemsTwoLength:g,handleButtonEnter:F,handleTransitionEnd:D,handleButtonLeave:$,handleIndicatorClick:P,handleMouseEnter:N,handleMouseLeave:B,setActiveItem:L,prev:W,next:j,PlaceholderItem:K,isTwoLengthShow:S,throttledArrowClick:E,throttledIndicatorHover:R}},Pi="ElCarousel",zi=(0,s.pM)({name:Pi}),Wi=(0,s.pM)({...zi,props:Si,emits:Ai,setup(e,{expose:t,emit:n}){const r=e,{root:a,activeIndex:i,arrowDisplay:o,hasLabel:u,hover:d,isCardType:h,items:p,isVertical:f,containerStyle:m,handleButtonEnter:g,handleButtonLeave:y,isTransitioning:b,handleIndicatorClick:w,handleMouseEnter:x,handleMouseLeave:k,handleTransitionEnd:_,setActiveItem:C,prev:E,next:R,PlaceholderItem:T,isTwoLengthShow:M,throttledArrowClick:L,throttledIndicatorHover:O}=$i(r,n,Pi),I=(0,v.DU)("carousel"),{t:N}=(0,La.Ym)(),B=(0,s.EW)((()=>{const e=[I.b(),I.m(r.direction)];return(0,l.R1)(h)&&e.push(I.m("card")),e})),D=(0,s.EW)((()=>{const e=[I.e("container")];return r.motionBlur&&(0,l.R1)(b)&&p.value.length>1&&e.push((0,l.R1)(f)?`${I.namespace.value}-transitioning-vertical`:`${I.namespace.value}-transitioning`),e})),F=(0,s.EW)((()=>{const e=[I.e("indicators"),I.em("indicators",r.direction)];return(0,l.R1)(u)&&e.push(I.em("indicators","labels")),"outside"===r.indicatorPosition&&e.push(I.em("indicators","outside")),(0,l.R1)(f)&&e.push(I.em("indicators","right")),e}));return t({activeIndex:i,setActiveItem:C,prev:E,next:R}),(e,t)=>((0,s.uX)(),(0,s.CE)("div",{ref_key:"root",ref:a,class:(0,c.C4)((0,l.R1)(B)),onMouseenter:(0,S.D$)((0,l.R1)(x),["stop"]),onMouseleave:(0,S.D$)((0,l.R1)(k),["stop"])},[(0,l.R1)(o)?((0,s.uX)(),(0,s.Wv)(S.eB,{key:0,name:"carousel-arrow-left",persisted:""},{default:(0,s.k6)((()=>[(0,s.bo)((0,s.Lk)("button",{type:"button",class:(0,c.C4)([(0,l.R1)(I).e("arrow"),(0,l.R1)(I).em("arrow","left")]),"aria-label":(0,l.R1)(N)("el.carousel.leftArrow"),onMouseenter:e=>(0,l.R1)(g)("left"),onMouseleave:(0,l.R1)(y),onClick:(0,S.D$)((e=>(0,l.R1)(L)((0,l.R1)(i)-1)),["stop"])},[(0,s.bF)((0,l.R1)(A.tk),null,{default:(0,s.k6)((()=>[(0,s.bF)((0,l.R1)(H.nkM))])),_:1})],42,["aria-label","onMouseenter","onMouseleave","onClick"]),[[S.aG,("always"===e.arrow||(0,l.R1)(d))&&(r.loop||(0,l.R1)(i)>0)]])])),_:1})):(0,s.Q3)("v-if",!0),(0,l.R1)(o)?((0,s.uX)(),(0,s.Wv)(S.eB,{key:1,name:"carousel-arrow-right",persisted:""},{default:(0,s.k6)((()=>[(0,s.bo)((0,s.Lk)("button",{type:"button",class:(0,c.C4)([(0,l.R1)(I).e("arrow"),(0,l.R1)(I).em("arrow","right")]),"aria-label":(0,l.R1)(N)("el.carousel.rightArrow"),onMouseenter:e=>(0,l.R1)(g)("right"),onMouseleave:(0,l.R1)(y),onClick:(0,S.D$)((e=>(0,l.R1)(L)((0,l.R1)(i)+1)),["stop"])},[(0,s.bF)((0,l.R1)(A.tk),null,{default:(0,s.k6)((()=>[(0,s.bF)((0,l.R1)(H.Qpb))])),_:1})],42,["aria-label","onMouseenter","onMouseleave","onClick"]),[[S.aG,("always"===e.arrow||(0,l.R1)(d))&&(r.loop||(0,l.R1)(i)<(0,l.R1)(p).length-1)]])])),_:1})):(0,s.Q3)("v-if",!0),(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(D)),style:(0,c.Tr)((0,l.R1)(m)),onTransitionend:(0,l.R1)(_)},[(0,s.bF)((0,l.R1)(T)),(0,s.RG)(e.$slots,"default")],46,["onTransitionend"]),"none"!==e.indicatorPosition?((0,s.uX)(),(0,s.CE)("ul",{key:2,class:(0,c.C4)((0,l.R1)(F))},[((0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)((0,l.R1)(p),((t,n)=>(0,s.bo)(((0,s.uX)(),(0,s.CE)("li",{key:n,class:(0,c.C4)([(0,l.R1)(I).e("indicator"),(0,l.R1)(I).em("indicator",e.direction),(0,l.R1)(I).is("active",n===(0,l.R1)(i))]),onMouseenter:e=>(0,l.R1)(O)(n),onClick:(0,S.D$)((e=>(0,l.R1)(w)(n)),["stop"])},[(0,s.Lk)("button",{class:(0,c.C4)((0,l.R1)(I).e("button")),"aria-label":(0,l.R1)(N)("el.carousel.indicator",{index:n+1})},[(0,l.R1)(u)?((0,s.uX)(),(0,s.CE)("span",{key:0},(0,c.v_)(t.props.label),1)):(0,s.Q3)("v-if",!0)],10,["aria-label"])],42,["onMouseenter","onClick"])),[[S.aG,(0,l.R1)(M)(n)]]))),128))],2)):(0,s.Q3)("v-if",!0),r.motionBlur?((0,s.uX)(),(0,s.CE)("svg",{key:3,xmlns:"http://www.w3.org/2000/svg",version:"1.1",style:{display:"none"}},[(0,s.Lk)("defs",null,[(0,s.Lk)("filter",{id:"elCarouselHorizontal"},[(0,s.Lk)("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"12,0"})]),(0,s.Lk)("filter",{id:"elCarouselVertical"},[(0,s.Lk)("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"0,10"})])])])):(0,s.Q3)("v-if",!0)],42,["onMouseenter","onMouseleave"]))}});var ji=(0,g.A)(Wi,[["__file","carousel.vue"]]);const Vi=(0,h.b_)({name:{type:String,default:""},label:{type:[String,Number],default:""}}),Ui=e=>{const t=(0,s.WQ)(Oi),n=(0,s.nI)();t||(0,w.U)(Ii,"usage: <el-carousel></el-carousel-item></el-carousel>"),n||(0,w.U)(Ii,"compositional hook can only be invoked inside setups");const r=(0,l.KR)(),a=(0,l.KR)(!1),i=(0,l.KR)(0),o=(0,l.KR)(1),c=(0,l.KR)(!1),u=(0,l.KR)(!1),d=(0,l.KR)(!1),h=(0,l.KR)(!1),{isCardType:f,isVertical:m,cardScale:g}=t;function v(e,t,n){const r=n-1,a=t-1,i=t+1,o=n/2;return 0===t&&e===r?-1:t===r&&0===e?n:e<a&&t-e>=o?n+1:e>i&&e-t>=o?-2:e}function y(e,n){var r,a;const i=(0,l.R1)(m)?(null==(r=t.root.value)?void 0:r.offsetHeight)||0:(null==(a=t.root.value)?void 0:a.offsetWidth)||0;return d.value?i*((2-g)*(e-n)+1)/4:e<n?-(1+g)*i/4:(3+g)*i/4}function b(e,n,r){const a=t.root.value;if(!a)return 0;const i=(r?a.offsetHeight:a.offsetWidth)||0;return i*(e-n)}const x=(e,n,a)=>{var s;const w=(0,l.R1)(f),x=null!=(s=t.items.value.length)?s:Number.NaN,k=e===n;w||(0,p.b0)(a)||(h.value=k||e===a),!k&&x>2&&t.loop&&(e=v(e,n,x));const _=(0,l.R1)(m);c.value=k,w?(d.value=Math.round(Math.abs(e-n))<=1,i.value=y(e,n),o.value=(0,l.R1)(c)?1:g):i.value=b(e,n,_),u.value=!0,k&&r.value&&t.setContainerHeight(r.value.offsetHeight)};function k(){if(t&&(0,l.R1)(f)){const e=t.items.value.findIndex((({uid:e})=>e===n.uid));t.setActiveItem(e)}}return(0,s.sV)((()=>{t.addItem({props:e,states:(0,l.Kh)({hover:a,translate:i,scale:o,active:c,ready:u,inStage:d,animating:h}),uid:n.uid,translateItem:x})})),(0,s.hi)((()=>{t.removeItem(n.uid)})),{carouselItemRef:r,active:c,animating:h,hover:a,inStage:d,isVertical:m,translate:i,isCardType:f,scale:o,ready:u,handleItemClick:k}},Ki=(0,s.pM)({name:Ii}),Hi=(0,s.pM)({...Ki,props:Vi,setup(e){const t=e,n=(0,v.DU)("carousel"),{carouselItemRef:r,active:a,animating:i,hover:o,inStage:u,isVertical:d,translate:h,isCardType:p,scale:f,ready:m,handleItemClick:g}=Ui(t),y=(0,s.EW)((()=>[n.e("item"),n.is("active",a.value),n.is("in-stage",u.value),n.is("hover",o.value),n.is("animating",i.value),{[n.em("item","card")]:p.value,[n.em("item","card-vertical")]:p.value&&d.value}])),b=(0,s.EW)((()=>{const e="translate"+((0,l.R1)(d)?"Y":"X"),t=`${e}(${(0,l.R1)(h)}px)`,n=`scale(${(0,l.R1)(f)})`,r=[t,n].join(" ");return{transform:r}}));return(e,t)=>(0,s.bo)(((0,s.uX)(),(0,s.CE)("div",{ref_key:"carouselItemRef",ref:r,class:(0,c.C4)((0,l.R1)(y)),style:(0,c.Tr)((0,l.R1)(b)),onClick:(0,l.R1)(g)},[(0,l.R1)(p)?(0,s.bo)(((0,s.uX)(),(0,s.CE)("div",{key:0,class:(0,c.C4)((0,l.R1)(n).e("mask"))},null,2)),[[S.aG,!(0,l.R1)(a)]]):(0,s.Q3)("v-if",!0),(0,s.RG)(e.$slots,"default")],14,["onClick"])),[[S.aG,(0,l.R1)(m)]])}});var qi=(0,g.A)(Hi,[["__file","carousel-item.vue"]]);const Gi=(0,E.GU)(ji,{CarouselItem:qi}),Xi=(0,E.WM)(qi);var Yi=n(5856),Qi=n(7179);function Zi(e,t){return(0,Qi.A)(e,t)}var Ji=Zi,eo=n(2308),to=1/0;function no(e){var t=null==e?0:e.length;return t?(0,eo.A)(e,to):[]}var ro=no,ao=n(3845);const io={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},border:Boolean,size:ao.mU,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},...(0,oe.l)(["ariaControls"])},oo={[d.l4]:e=>(0,c.Kg)(e)||(0,p.Et)(e)||(0,p.Lm)(e),change:e=>(0,c.Kg)(e)||(0,p.Et)(e)||(0,p.Lm)(e)},so=Symbol("checkboxGroupContextKey"),lo=({model:e,isChecked:t})=>{const n=(0,s.WQ)(so,void 0),r=(0,s.EW)((()=>{var r,a;const i=null==(r=null==n?void 0:n.max)?void 0:r.value,o=null==(a=null==n?void 0:n.min)?void 0:a.value;return!(0,p.b0)(i)&&e.value.length>=i&&!t.value||!(0,p.b0)(o)&&e.value.length<=o&&t.value})),a=(0,ra.CB)((0,s.EW)((()=>(null==n?void 0:n.disabled.value)||r.value)));return{isDisabled:a,isLimitDisabled:r}};var co=n(4216);const uo=(e,{model:t,isLimitExceeded:n,hasOwnLabel:r,isDisabled:a,isLabeledByFormItem:i})=>{const o=(0,s.WQ)(so,void 0),{formItem:l}=(0,co.j)(),{emit:c}=(0,s.nI)();function u(t){var n,r,a,i;return[!0,e.trueValue,e.trueLabel].includes(t)?null==(r=null!=(n=e.trueValue)?n:e.trueLabel)||r:null!=(i=null!=(a=e.falseValue)?a:e.falseLabel)&&i}function d(e,t){c("change",u(e),t)}function h(e){if(n.value)return;const t=e.target;c("change",u(t.checked),e)}async function p(o){if(!n.value&&!r.value&&!a.value&&i.value){const n=o.composedPath(),r=n.some((e=>"LABEL"===e.tagName));r||(t.value=u([!1,e.falseValue,e.falseLabel].includes(t.value)),await(0,s.dY)(),d(t.value,o))}}const f=(0,s.EW)((()=>(null==o?void 0:o.validateEvent)||e.validateEvent));return(0,s.wB)((()=>e.modelValue),(()=>{f.value&&(null==l||l.validate("change").catch((e=>(0,w.U)(e))))})),{handleChange:h,onClickRoot:p}},ho=e=>{const t=(0,l.KR)(!1),{emit:n}=(0,s.nI)(),r=(0,s.WQ)(so,void 0),a=(0,s.EW)((()=>!1===(0,p.b0)(r))),i=(0,l.KR)(!1),o=(0,s.EW)({get(){var n,i;return a.value?null==(n=null==r?void 0:r.modelValue)?void 0:n.value:null!=(i=e.modelValue)?i:t.value},set(e){var s,l;a.value&&(0,c.cy)(e)?(i.value=void 0!==(null==(s=null==r?void 0:r.max)?void 0:s.value)&&e.length>(null==r?void 0:r.max.value)&&e.length>o.value.length,!1===i.value&&(null==(l=null==r?void 0:r.changeEvent)||l.call(r,e))):(n(d.l4,e),t.value=e)}});return{model:o,isGroup:a,isLimitExceeded:i}},po=(e,t,{model:n})=>{const r=(0,s.WQ)(so,void 0),a=(0,l.KR)(!1),i=(0,s.EW)((()=>(0,p.Xj)(e.value)?e.label:e.value)),o=(0,s.EW)((()=>{const t=n.value;return(0,p.Lm)(t)?t:(0,c.cy)(t)?(0,c.Gv)(i.value)?t.map(l.ux).some((e=>Ji(e,i.value))):t.map(l.ux).includes(i.value):null!==t&&void 0!==t?t===e.trueValue||t===e.trueLabel:!!t})),u=(0,ra.NV)((0,s.EW)((()=>{var e;return null==(e=null==r?void 0:r.size)?void 0:e.value})),{prop:!0}),d=(0,ra.NV)((0,s.EW)((()=>{var e;return null==(e=null==r?void 0:r.size)?void 0:e.value}))),h=(0,s.EW)((()=>!!t.default||!(0,p.Xj)(i.value)));return{checkboxButtonSize:u,isChecked:o,isFocused:a,checkboxSize:d,hasOwnLabel:h,actualValue:i}};var fo=n(261);const mo=(e,t)=>{const{formItem:n}=(0,co.j)(),{model:r,isGroup:a,isLimitExceeded:i}=ho(e),{isFocused:o,isChecked:l,checkboxButtonSize:u,checkboxSize:d,hasOwnLabel:h,actualValue:f}=po(e,t,{model:r}),{isDisabled:m}=lo({model:r,isChecked:l}),{inputId:g,isLabeledByFormItem:v}=(0,co.W)(e,{formItemContext:n,disableIdGeneration:h,disableIdManagement:a}),{handleChange:y,onClickRoot:b}=uo(e,{model:r,isLimitExceeded:i,hasOwnLabel:h,isDisabled:m,isLabeledByFormItem:v}),w=()=>{function t(){var t,n;(0,c.cy)(r.value)&&!r.value.includes(f.value)?r.value.push(f.value):r.value=null==(n=null!=(t=e.trueValue)?t:e.trueLabel)||n}e.checked&&t()};return w(),(0,fo.b)({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},(0,s.EW)((()=>a.value&&(0,p.Xj)(e.value)))),(0,fo.b)({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},(0,s.EW)((()=>!!e.trueLabel))),(0,fo.b)({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},(0,s.EW)((()=>!!e.falseLabel))),{inputId:g,isLabeledByFormItem:v,isChecked:l,isDisabled:m,isFocused:o,checkboxButtonSize:u,checkboxSize:d,hasOwnLabel:h,model:r,actualValue:f,handleChange:y,onClickRoot:b}},go=(0,s.pM)({name:"ElCheckbox"}),vo=(0,s.pM)({...go,props:io,emits:oo,setup(e){const t=e,n=(0,s.Ht)(),{inputId:r,isLabeledByFormItem:a,isChecked:i,isDisabled:o,isFocused:u,checkboxSize:d,hasOwnLabel:h,model:p,actualValue:f,handleChange:m,onClickRoot:g}=mo(t,n),y=(0,v.DU)("checkbox"),b=(0,s.EW)((()=>[y.b(),y.m(d.value),y.is("disabled",o.value),y.is("bordered",t.border),y.is("checked",i.value)])),w=(0,s.EW)((()=>[y.e("input"),y.is("disabled",o.value),y.is("checked",i.value),y.is("indeterminate",t.indeterminate),y.is("focus",u.value)]));return(e,t)=>((0,s.uX)(),(0,s.Wv)((0,s.$y)(!(0,l.R1)(h)&&(0,l.R1)(a)?"span":"label"),{class:(0,c.C4)((0,l.R1)(b)),"aria-controls":e.indeterminate?e.ariaControls:null,onClick:(0,l.R1)(g)},{default:(0,s.k6)((()=>{var t,n,a,i;return[(0,s.Lk)("span",{class:(0,c.C4)((0,l.R1)(w))},[e.trueValue||e.falseValue||e.trueLabel||e.falseLabel?(0,s.bo)(((0,s.uX)(),(0,s.CE)("input",{key:0,id:(0,l.R1)(r),"onUpdate:modelValue":e=>(0,l.i9)(p)?p.value=e:null,class:(0,c.C4)((0,l.R1)(y).e("original")),type:"checkbox",indeterminate:e.indeterminate,name:e.name,tabindex:e.tabindex,disabled:(0,l.R1)(o),"true-value":null==(n=null!=(t=e.trueValue)?t:e.trueLabel)||n,"false-value":null!=(i=null!=(a=e.falseValue)?a:e.falseLabel)&&i,onChange:(0,l.R1)(m),onFocus:e=>u.value=!0,onBlur:e=>u.value=!1,onClick:(0,S.D$)((()=>{}),["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[S.lH,(0,l.R1)(p)]]):(0,s.bo)(((0,s.uX)(),(0,s.CE)("input",{key:1,id:(0,l.R1)(r),"onUpdate:modelValue":e=>(0,l.i9)(p)?p.value=e:null,class:(0,c.C4)((0,l.R1)(y).e("original")),type:"checkbox",indeterminate:e.indeterminate,disabled:(0,l.R1)(o),value:(0,l.R1)(f),name:e.name,tabindex:e.tabindex,onChange:(0,l.R1)(m),onFocus:e=>u.value=!0,onBlur:e=>u.value=!1,onClick:(0,S.D$)((()=>{}),["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","disabled","value","name","tabindex","onChange","onFocus","onBlur","onClick"])),[[S.lH,(0,l.R1)(p)]]),(0,s.Lk)("span",{class:(0,c.C4)((0,l.R1)(y).e("inner"))},null,2)],2),(0,l.R1)(h)?((0,s.uX)(),(0,s.CE)("span",{key:0,class:(0,c.C4)((0,l.R1)(y).e("label"))},[(0,s.RG)(e.$slots,"default"),e.$slots.default?(0,s.Q3)("v-if",!0):((0,s.uX)(),(0,s.CE)(s.FK,{key:0},[(0,s.eW)((0,c.v_)(e.label),1)],64))],2)):(0,s.Q3)("v-if",!0)]})),_:3},8,["class","aria-controls","onClick"]))}});var yo=(0,g.A)(vo,[["__file","checkbox.vue"]]);const bo=(0,s.pM)({name:"ElCheckboxButton"}),wo=(0,s.pM)({...bo,props:io,emits:oo,setup(e){const t=e,n=(0,s.Ht)(),{isFocused:r,isChecked:a,isDisabled:i,checkboxButtonSize:o,model:u,actualValue:d,handleChange:h}=mo(t,n),p=(0,s.WQ)(so,void 0),f=(0,v.DU)("checkbox"),m=(0,s.EW)((()=>{var e,t,n,r;const a=null!=(t=null==(e=null==p?void 0:p.fill)?void 0:e.value)?t:"";return{backgroundColor:a,borderColor:a,color:null!=(r=null==(n=null==p?void 0:p.textColor)?void 0:n.value)?r:"",boxShadow:a?`-1px 0 0 0 ${a}`:void 0}})),g=(0,s.EW)((()=>[f.b("button"),f.bm("button",o.value),f.is("disabled",i.value),f.is("checked",a.value),f.is("focus",r.value)]));return(e,t)=>{var n,o,p,v;return(0,s.uX)(),(0,s.CE)("label",{class:(0,c.C4)((0,l.R1)(g))},[e.trueValue||e.falseValue||e.trueLabel||e.falseLabel?(0,s.bo)(((0,s.uX)(),(0,s.CE)("input",{key:0,"onUpdate:modelValue":e=>(0,l.i9)(u)?u.value=e:null,class:(0,c.C4)((0,l.R1)(f).be("button","original")),type:"checkbox",name:e.name,tabindex:e.tabindex,disabled:(0,l.R1)(i),"true-value":null==(o=null!=(n=e.trueValue)?n:e.trueLabel)||o,"false-value":null!=(v=null!=(p=e.falseValue)?p:e.falseLabel)&&v,onChange:(0,l.R1)(h),onFocus:e=>r.value=!0,onBlur:e=>r.value=!1,onClick:(0,S.D$)((()=>{}),["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[S.lH,(0,l.R1)(u)]]):(0,s.bo)(((0,s.uX)(),(0,s.CE)("input",{key:1,"onUpdate:modelValue":e=>(0,l.i9)(u)?u.value=e:null,class:(0,c.C4)((0,l.R1)(f).be("button","original")),type:"checkbox",name:e.name,tabindex:e.tabindex,disabled:(0,l.R1)(i),value:(0,l.R1)(d),onChange:(0,l.R1)(h),onFocus:e=>r.value=!0,onBlur:e=>r.value=!1,onClick:(0,S.D$)((()=>{}),["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","value","onChange","onFocus","onBlur","onClick"])),[[S.lH,(0,l.R1)(u)]]),e.$slots.default||e.label?((0,s.uX)(),(0,s.CE)("span",{key:2,class:(0,c.C4)((0,l.R1)(f).be("button","inner")),style:(0,c.Tr)((0,l.R1)(a)?(0,l.R1)(m):void 0)},[(0,s.RG)(e.$slots,"default",{},(()=>[(0,s.eW)((0,c.v_)(e.label),1)]))],6)):(0,s.Q3)("v-if",!0)],2)}}});var xo=(0,g.A)(wo,[["__file","checkbox-button.vue"]]),ko=n(1996);const _o=(0,h.b_)({modelValue:{type:(0,h.jq)(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:ao.mU,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},...(0,oe.l)(["ariaLabel"])}),Co={[d.l4]:e=>(0,c.cy)(e),change:e=>(0,c.cy)(e)},Eo=(0,s.pM)({name:"ElCheckboxGroup"}),Ro=(0,s.pM)({...Eo,props:_o,emits:Co,setup(e,{emit:t}){const n=e,r=(0,v.DU)("checkbox"),{formItem:a}=(0,co.j)(),{inputId:i,isLabeledByFormItem:o}=(0,co.W)(n,{formItemContext:a}),u=async e=>{t(d.l4,e),await(0,s.dY)(),t("change",e)},h=(0,s.EW)({get(){return n.modelValue},set(e){u(e)}});return(0,s.Gt)(so,{...(0,ko.A)((0,l.QW)(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:h,changeEvent:u}),(0,s.wB)((()=>n.modelValue),(()=>{n.validateEvent&&(null==a||a.validate("change").catch((e=>(0,w.U)(e))))})),(e,t)=>{var n;return(0,s.uX)(),(0,s.Wv)((0,s.$y)(e.tag),{id:(0,l.R1)(i),class:(0,c.C4)((0,l.R1)(r).b("group")),role:"group","aria-label":(0,l.R1)(o)?void 0:e.ariaLabel||"checkbox-group","aria-labelledby":(0,l.R1)(o)?null==(n=(0,l.R1)(a))?void 0:n.labelId:void 0},{default:(0,s.k6)((()=>[(0,s.RG)(e.$slots,"default")])),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var So=(0,g.A)(Ro,[["__file","checkbox-group.vue"]]);const Ao=(0,E.GU)(yo,{CheckboxButton:xo,CheckboxGroup:So}),To=(0,E.WM)(xo),Mo=(0,E.WM)(So),Lo=(0,h.b_)({modelValue:{type:[String,Number,Boolean],default:void 0},size:ao.mU,disabled:Boolean,label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),Oo=(0,h.b_)({...Lo,border:Boolean}),Io={[d.l4]:e=>(0,c.Kg)(e)||(0,p.Et)(e)||(0,p.Lm)(e),[d.YU]:e=>(0,c.Kg)(e)||(0,p.Et)(e)||(0,p.Lm)(e)},No=Symbol("radioGroupKey"),Bo=(e,t)=>{const n=(0,l.KR)(),r=(0,s.WQ)(No,void 0),a=(0,s.EW)((()=>!!r)),i=(0,s.EW)((()=>(0,p.Xj)(e.value)?e.label:e.value)),o=(0,s.EW)({get(){return a.value?r.modelValue:e.modelValue},set(o){a.value?r.changeEvent(o):t&&t(d.l4,o),n.value.checked=e.modelValue===i.value}}),c=(0,ra.NV)((0,s.EW)((()=>null==r?void 0:r.size))),u=(0,ra.CB)((0,s.EW)((()=>null==r?void 0:r.disabled))),h=(0,l.KR)(!1),f=(0,s.EW)((()=>u.value||a.value&&o.value!==i.value?-1:0));return(0,fo.b)({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},(0,s.EW)((()=>a.value&&(0,p.Xj)(e.value)))),{radioRef:n,isGroup:a,radioGroup:r,focus:h,size:c,disabled:u,tabIndex:f,modelValue:o,actualValue:i}},Do=(0,s.pM)({name:"ElRadio"}),Fo=(0,s.pM)({...Do,props:Oo,emits:Io,setup(e,{emit:t}){const n=e,r=(0,v.DU)("radio"),{radioRef:a,radioGroup:i,focus:o,size:u,disabled:d,modelValue:h,actualValue:p}=Bo(n,t);function f(){(0,s.dY)((()=>t("change",h.value)))}return(e,t)=>{var n;return(0,s.uX)(),(0,s.CE)("label",{class:(0,c.C4)([(0,l.R1)(r).b(),(0,l.R1)(r).is("disabled",(0,l.R1)(d)),(0,l.R1)(r).is("focus",(0,l.R1)(o)),(0,l.R1)(r).is("bordered",e.border),(0,l.R1)(r).is("checked",(0,l.R1)(h)===(0,l.R1)(p)),(0,l.R1)(r).m((0,l.R1)(u))])},[(0,s.Lk)("span",{class:(0,c.C4)([(0,l.R1)(r).e("input"),(0,l.R1)(r).is("disabled",(0,l.R1)(d)),(0,l.R1)(r).is("checked",(0,l.R1)(h)===(0,l.R1)(p))])},[(0,s.bo)((0,s.Lk)("input",{ref_key:"radioRef",ref:a,"onUpdate:modelValue":e=>(0,l.i9)(h)?h.value=e:null,class:(0,c.C4)((0,l.R1)(r).e("original")),value:(0,l.R1)(p),name:e.name||(null==(n=(0,l.R1)(i))?void 0:n.name),disabled:(0,l.R1)(d),checked:(0,l.R1)(h)===(0,l.R1)(p),type:"radio",onFocus:e=>o.value=!0,onBlur:e=>o.value=!1,onChange:f,onClick:(0,S.D$)((()=>{}),["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","checked","onFocus","onBlur","onClick"]),[[S.XL,(0,l.R1)(h)]]),(0,s.Lk)("span",{class:(0,c.C4)((0,l.R1)(r).e("inner"))},null,2)],2),(0,s.Lk)("span",{class:(0,c.C4)((0,l.R1)(r).e("label")),onKeydown:(0,S.D$)((()=>{}),["stop"])},[(0,s.RG)(e.$slots,"default",{},(()=>[(0,s.eW)((0,c.v_)(e.label),1)]))],42,["onKeydown"])],2)}}});var $o=(0,g.A)(Fo,[["__file","radio.vue"]]);const Po=(0,h.b_)({...Lo}),zo=(0,s.pM)({name:"ElRadioButton"}),Wo=(0,s.pM)({...zo,props:Po,setup(e){const t=e,n=(0,v.DU)("radio"),{radioRef:r,focus:a,size:i,disabled:o,modelValue:u,radioGroup:d,actualValue:h}=Bo(t),p=(0,s.EW)((()=>({backgroundColor:(null==d?void 0:d.fill)||"",borderColor:(null==d?void 0:d.fill)||"",boxShadow:(null==d?void 0:d.fill)?`-1px 0 0 0 ${d.fill}`:"",color:(null==d?void 0:d.textColor)||""})));return(e,t)=>{var f;return(0,s.uX)(),(0,s.CE)("label",{class:(0,c.C4)([(0,l.R1)(n).b("button"),(0,l.R1)(n).is("active",(0,l.R1)(u)===(0,l.R1)(h)),(0,l.R1)(n).is("disabled",(0,l.R1)(o)),(0,l.R1)(n).is("focus",(0,l.R1)(a)),(0,l.R1)(n).bm("button",(0,l.R1)(i))])},[(0,s.bo)((0,s.Lk)("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":e=>(0,l.i9)(u)?u.value=e:null,class:(0,c.C4)((0,l.R1)(n).be("button","original-radio")),value:(0,l.R1)(h),type:"radio",name:e.name||(null==(f=(0,l.R1)(d))?void 0:f.name),disabled:(0,l.R1)(o),onFocus:e=>a.value=!0,onBlur:e=>a.value=!1,onClick:(0,S.D$)((()=>{}),["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","onFocus","onBlur","onClick"]),[[S.XL,(0,l.R1)(u)]]),(0,s.Lk)("span",{class:(0,c.C4)((0,l.R1)(n).be("button","inner")),style:(0,c.Tr)((0,l.R1)(u)===(0,l.R1)(h)?(0,l.R1)(p):{}),onKeydown:(0,S.D$)((()=>{}),["stop"])},[(0,s.RG)(e.$slots,"default",{},(()=>[(0,s.eW)((0,c.v_)(e.label),1)]))],46,["onKeydown"])],2)}}});var jo=(0,g.A)(Wo,[["__file","radio-button.vue"]]);const Vo=(0,h.b_)({id:{type:String,default:void 0},size:ao.mU,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:void 0},fill:{type:String,default:""},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0},...(0,oe.l)(["ariaLabel"])}),Uo=Io,Ko=(0,s.pM)({name:"ElRadioGroup"}),Ho=(0,s.pM)({...Ko,props:Vo,emits:Uo,setup(e,{emit:t}){const n=e,r=(0,v.DU)("radio"),a=(0,xr.Bi)(),i=(0,l.KR)(),{formItem:o}=(0,co.j)(),{inputId:u,isLabeledByFormItem:h}=(0,co.W)(n,{formItemContext:o}),p=e=>{t(d.l4,e),(0,s.dY)((()=>t("change",e)))};(0,s.sV)((()=>{const e=i.value.querySelectorAll("[type=radio]"),t=e[0];!Array.from(e).some((e=>e.checked))&&t&&(t.tabIndex=0)}));const f=(0,s.EW)((()=>n.name||a.value));return(0,s.Gt)(No,(0,l.Kh)({...(0,l.QW)(n),changeEvent:p,name:f})),(0,s.wB)((()=>n.modelValue),(()=>{n.validateEvent&&(null==o||o.validate("change").catch((e=>(0,w.U)(e))))})),(e,t)=>((0,s.uX)(),(0,s.CE)("div",{id:(0,l.R1)(u),ref_key:"radioGroupRef",ref:i,class:(0,c.C4)((0,l.R1)(r).b("group")),role:"radiogroup","aria-label":(0,l.R1)(h)?void 0:e.ariaLabel||"radio-group","aria-labelledby":(0,l.R1)(h)?(0,l.R1)(o).labelId:void 0},[(0,s.RG)(e.$slots,"default")],10,["id","aria-label","aria-labelledby"]))}});var qo=(0,g.A)(Ho,[["__file","radio-group.vue"]]);const Go=(0,E.GU)($o,{RadioButton:jo,RadioGroup:qo}),Xo=(0,E.WM)(qo),Yo=(0,E.WM)(jo);var Qo=(0,s.pM)({name:"NodeContent",setup(){const e=(0,v.DU)("cascader-node");return{ns:e}},render(){const{ns:e}=this,{node:t,panel:n}=this.$parent,{data:r,label:a}=t,{renderLabelFn:i}=n;return(0,s.h)("span",{class:e.e("label")},i?i({node:t,data:r}):a)}});const Zo=Symbol(),Jo=(0,s.pM)({name:"ElCascaderNode",components:{ElCheckbox:Ao,ElRadio:Go,NodeContent:Qo,ElIcon:A.tk,Check:H.Jlk,Loading:H.Rhj,ArrowRight:H.Qpb},props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(e,{emit:t}){const n=(0,s.WQ)(Zo),r=(0,v.DU)("cascader-node"),a=(0,s.EW)((()=>n.isHoverMenu)),i=(0,s.EW)((()=>n.config.multiple)),o=(0,s.EW)((()=>n.config.checkStrictly)),l=(0,s.EW)((()=>{var e;return null==(e=n.checkedNodes[0])?void 0:e.uid})),c=(0,s.EW)((()=>e.node.isDisabled)),u=(0,s.EW)((()=>e.node.isLeaf)),d=(0,s.EW)((()=>o.value&&!u.value||!c.value)),h=(0,s.EW)((()=>f(n.expandingNode))),p=(0,s.EW)((()=>o.value&&n.checkedNodes.some(f))),f=t=>{var n;const{level:r,uid:a}=e.node;return(null==(n=null==t?void 0:t.pathNodes[r-1])?void 0:n.uid)===a},m=()=>{h.value||n.expandNode(e.node)},g=t=>{const{node:r}=e;t!==r.checked&&n.handleCheckChange(r,t)},y=()=>{n.lazyLoad(e.node,(()=>{u.value||m()}))},b=e=>{a.value&&(w(),!u.value&&t("expand",e))},w=()=>{const{node:t}=e;d.value&&!t.loading&&(t.loaded?m():y())},x=()=>{a.value&&!u.value||(!u.value||c.value||o.value||i.value?w():_(!0))},k=t=>{o.value?(g(t),e.node.loaded&&m()):_(t)},_=t=>{e.node.loaded?(g(t),!o.value&&m()):y()};return{panel:n,isHoverMenu:a,multiple:i,checkStrictly:o,checkedNodeId:l,isDisabled:c,isLeaf:u,expandable:d,inExpandingPath:h,inCheckedPath:p,ns:r,handleHoverExpand:b,handleExpand:w,handleClick:x,handleCheck:_,handleSelectCheck:k}}});function es(e,t,n,r,a,i){const o=(0,s.g2)("el-checkbox"),l=(0,s.g2)("el-radio"),u=(0,s.g2)("check"),d=(0,s.g2)("el-icon"),h=(0,s.g2)("node-content"),p=(0,s.g2)("loading"),f=(0,s.g2)("arrow-right");return(0,s.uX)(),(0,s.CE)("li",{id:`${e.menuId}-${e.node.uid}`,role:"menuitem","aria-haspopup":!e.isLeaf,"aria-owns":e.isLeaf?void 0:e.menuId,"aria-expanded":e.inExpandingPath,tabindex:e.expandable?-1:void 0,class:(0,c.C4)([e.ns.b(),e.ns.is("selectable",e.checkStrictly),e.ns.is("active",e.node.checked),e.ns.is("disabled",!e.expandable),e.inExpandingPath&&"in-active-path",e.inCheckedPath&&"in-checked-path"]),onMouseenter:e.handleHoverExpand,onFocus:e.handleHoverExpand,onClick:e.handleClick},[(0,s.Q3)(" prefix "),e.multiple?((0,s.uX)(),(0,s.Wv)(o,{key:0,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:e.isDisabled,onClick:(0,S.D$)((()=>{}),["stop"]),"onUpdate:modelValue":e.handleSelectCheck},null,8,["model-value","indeterminate","disabled","onClick","onUpdate:modelValue"])):e.checkStrictly?((0,s.uX)(),(0,s.Wv)(l,{key:1,"model-value":e.checkedNodeId,label:e.node.uid,disabled:e.isDisabled,"onUpdate:modelValue":e.handleSelectCheck,onClick:(0,S.D$)((()=>{}),["stop"])},{default:(0,s.k6)((()=>[(0,s.Q3)("\n Add an empty element to avoid render label,\n do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485\n "),(0,s.Lk)("span")])),_:1},8,["model-value","label","disabled","onUpdate:modelValue","onClick"])):e.isLeaf&&e.node.checked?((0,s.uX)(),(0,s.Wv)(d,{key:2,class:(0,c.C4)(e.ns.e("prefix"))},{default:(0,s.k6)((()=>[(0,s.bF)(u)])),_:1},8,["class"])):(0,s.Q3)("v-if",!0),(0,s.Q3)(" content "),(0,s.bF)(h),(0,s.Q3)(" postfix "),e.isLeaf?(0,s.Q3)("v-if",!0):((0,s.uX)(),(0,s.CE)(s.FK,{key:3},[e.node.loading?((0,s.uX)(),(0,s.Wv)(d,{key:0,class:(0,c.C4)([e.ns.is("loading"),e.ns.e("postfix")])},{default:(0,s.k6)((()=>[(0,s.bF)(p)])),_:1},8,["class"])):((0,s.uX)(),(0,s.Wv)(d,{key:1,class:(0,c.C4)(["arrow-right",e.ns.e("postfix")])},{default:(0,s.k6)((()=>[(0,s.bF)(f)])),_:1},8,["class"]))],64))],42,["id","aria-haspopup","aria-owns","aria-expanded","tabindex","onMouseenter","onFocus","onClick"])}var ts=(0,g.A)(Jo,[["render",es],["__file","node.vue"]]);const ns=(0,s.pM)({name:"ElCascaderMenu",components:{Loading:H.Rhj,ElIcon:A.tk,ElScrollbar:pe,ElCascaderNode:ts},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=(0,s.nI)(),n=(0,v.DU)("cascader-menu"),{t:r}=(0,La.Ym)(),a=(0,xr.Bi)();let i=null,o=null;const c=(0,s.WQ)(Zo),u=(0,l.KR)(null),d=(0,s.EW)((()=>!e.nodes.length)),h=(0,s.EW)((()=>!c.initialLoaded)),p=(0,s.EW)((()=>`${a.value}-${e.index}`)),f=e=>{i=e.target},m=e=>{if(c.isHoverMenu&&i&&u.value)if(i.contains(e.target)){g();const n=t.vnode.el,{left:r}=n.getBoundingClientRect(),{offsetWidth:a,offsetHeight:o}=n,s=e.clientX-r,l=i.offsetTop,c=l+i.offsetHeight;u.value.innerHTML=`\n <path style="pointer-events: auto;" fill="transparent" d="M${s} ${l} L${a} 0 V${l} Z" />\n <path style="pointer-events: auto;" fill="transparent" d="M${s} ${c} L${a} ${o} V${c} Z" />\n `}else o||(o=window.setTimeout(y,c.config.hoverThreshold))},g=()=>{o&&(clearTimeout(o),o=null)},y=()=>{u.value&&(u.value.innerHTML="",g())};return{ns:n,panel:c,hoverZone:u,isEmpty:d,isLoading:h,menuId:p,t:r,handleExpand:f,handleMouseMove:m,clearHoverZone:y}}});function rs(e,t,n,r,a,i){const o=(0,s.g2)("el-cascader-node"),l=(0,s.g2)("loading"),u=(0,s.g2)("el-icon"),d=(0,s.g2)("el-scrollbar");return(0,s.uX)(),(0,s.Wv)(d,{key:e.menuId,tag:"ul",role:"menu",class:(0,c.C4)(e.ns.b()),"wrap-class":e.ns.e("wrap"),"view-class":[e.ns.e("list"),e.ns.is("empty",e.isEmpty)],onMousemove:e.handleMouseMove,onMouseleave:e.clearHoverZone},{default:(0,s.k6)((()=>{var t;return[((0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)(e.nodes,(t=>((0,s.uX)(),(0,s.Wv)(o,{key:t.uid,node:t,"menu-id":e.menuId,onExpand:e.handleExpand},null,8,["node","menu-id","onExpand"])))),128)),e.isLoading?((0,s.uX)(),(0,s.CE)("div",{key:0,class:(0,c.C4)(e.ns.e("empty-text"))},[(0,s.bF)(u,{size:"14",class:(0,c.C4)(e.ns.is("loading"))},{default:(0,s.k6)((()=>[(0,s.bF)(l)])),_:1},8,["class"]),(0,s.eW)(" "+(0,c.v_)(e.t("el.cascader.loading")),1)],2)):e.isEmpty?((0,s.uX)(),(0,s.CE)("div",{key:1,class:(0,c.C4)(e.ns.e("empty-text"))},[(0,s.RG)(e.$slots,"empty",{},(()=>[(0,s.eW)((0,c.v_)(e.t("el.cascader.noData")),1)]))],2)):(null==(t=e.panel)?void 0:t.isHoverMenu)?((0,s.uX)(),(0,s.CE)("svg",{key:2,ref:"hoverZone",class:(0,c.C4)(e.ns.e("hover-zone"))},null,2)):(0,s.Q3)("v-if",!0)]})),_:3},8,["class","wrap-class","view-class","onMousemove","onMouseleave"])}var as=(0,g.A)(ns,[["render",rs],["__file","menu.vue"]]);const is=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),os=e=>(0,c.ZH)(e);let ss=0;const ls=e=>{const t=[e];let{parent:n}=e;while(n)t.unshift(n),n=n.parent;return t};class cs{constructor(e,t,n,r=!1){this.data=e,this.config=t,this.parent=n,this.root=r,this.uid=ss++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:a,label:i,children:o}=t,s=e[o],l=ls(this);this.level=r?0:n?n.level+1:1,this.value=e[a],this.label=e[i],this.pathNodes=l,this.pathValues=l.map((e=>e.value)),this.pathLabels=l.map((e=>e.label)),this.childrenData=s,this.children=(s||[]).map((e=>new cs(e,t,this))),this.loaded=!t.lazy||this.isLeaf||!(0,p.Im)(s)}get isDisabled(){const{data:e,parent:t,config:n}=this,{disabled:r,checkStrictly:a}=n,i=(0,c.Tn)(r)?r(e,this):!!e[r];return i||!a&&(null==t?void 0:t.isDisabled)}get isLeaf(){const{data:e,config:t,childrenData:n,loaded:r}=this,{lazy:a,leaf:i}=t,o=(0,c.Tn)(i)?i(e,this):e[i];return(0,p.b0)(o)?!(a&&!r)&&!((0,c.cy)(n)&&n.length):!!o}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(e){const{childrenData:t,children:n}=this,r=new cs(e,this.config,this);return(0,c.cy)(t)?t.push(e):this.childrenData=[e],n.push(r),r}calcText(e,t){const n=e?this.pathLabels.join(t):this.label;return this.text=n,n}broadcast(e,...t){const n=`onParent${os(e)}`;this.children.forEach((r=>{r&&(r.broadcast(e,...t),r[n]&&r[n](...t))}))}emit(e,...t){const{parent:n}=this,r=`onChild${os(e)}`;n&&(n[r]&&n[r](...t),n.emit(e,...t))}onParentCheck(e){this.isDisabled||this.setCheckState(e)}onChildCheck(){const{children:e}=this,t=e.filter((e=>!e.isDisabled)),n=!!t.length&&t.every((e=>e.checked));this.setCheckState(n)}setCheckState(e){const t=this.children.length,n=this.children.reduce(((e,t)=>{const n=t.checked?1:t.indeterminate?.5:0;return e+n}),0);this.checked=this.loaded&&this.children.filter((e=>!e.isDisabled)).every((e=>e.loaded&&e.checked))&&e,this.indeterminate=this.loaded&&n!==t&&n>0}doCheck(e){if(this.checked===e)return;const{checkStrictly:t,multiple:n}=this.config;t||!n?this.checked=e:(this.broadcast("check",e),this.setCheckState(e),this.emit("check"))}}const us=(e,t)=>e.reduce(((e,n)=>(n.isLeaf?e.push(n):(!t&&e.push(n),e=e.concat(us(n.children,t))),e)),[]);class ds{constructor(e,t){this.config=t;const n=(e||[]).map((e=>new cs(e,this.config)));this.nodes=n,this.allNodes=us(n,!1),this.leafNodes=us(n,!0)}getNodes(){return this.nodes}getFlattedNodes(e){return e?this.leafNodes:this.allNodes}appendNode(e,t){const n=t?t.appendChild(e):new cs(e,this.config);t||this.nodes.push(n),this.appendAllNodesAndLeafNodes(n)}appendNodes(e,t){e.forEach((e=>this.appendNode(e,t)))}appendAllNodesAndLeafNodes(e){this.allNodes.push(e),e.isLeaf&&this.leafNodes.push(e),e.children&&e.children.forEach((e=>{this.appendAllNodesAndLeafNodes(e)}))}getNodeByValue(e,t=!1){if(!e&&0!==e)return null;const n=this.getFlattedNodes(t).find((t=>Ji(t.value,e)||Ji(t.pathValues,e)));return n||null}getSameNode(e){if(!e)return null;const t=this.getFlattedNodes(!1).find((({value:t,level:n})=>Ji(e.value,t)&&e.level===n));return t||null}}const hs=(0,h.b_)({modelValue:{type:(0,h.jq)([Number,String,Array])},options:{type:(0,h.jq)(Array),default:()=>[]},props:{type:(0,h.jq)(Object),default:()=>({})}}),ps={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:c.tE,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},fs=e=>(0,s.EW)((()=>({...ps,...e.props}))),ms=e=>{if(!e)return 0;const t=e.id.split("-");return Number(t[t.length-2])},gs=e=>{if(!e)return;const t=e.querySelector("input");t?t.click():(0,ar.xe)(e)&&e.click()},vs=(e,t)=>{const n=t.slice(0),r=n.map((e=>e.uid)),a=e.reduce(((e,t)=>{const a=r.indexOf(t.uid);return a>-1&&(e.push(t),n.splice(a,1),r.splice(a,1)),e}),[]);return a.push(...n),a},ys=e=>[...new Set(e)],bs=e=>e||0===e?(0,c.cy)(e)?e:[e]:[],ws=(0,s.pM)({name:"ElCascaderPanel",components:{ElCascaderMenu:as},props:{...hs,border:{type:Boolean,default:!0},renderLabel:Function},emits:[d.l4,d.YU,"close","expand-change"],setup(e,{emit:t,slots:n}){let r=!1;const a=(0,v.DU)("cascader"),i=fs(e);let o=null;const c=(0,l.KR)(!0),u=(0,l.KR)([]),h=(0,l.KR)(null),f=(0,l.KR)([]),m=(0,l.KR)(null),g=(0,l.KR)([]),b=(0,s.EW)((()=>"hover"===i.value.expandTrigger)),w=(0,s.EW)((()=>e.renderLabel||n.default)),x=()=>{const{options:t}=e,n=i.value;r=!1,o=new ds(t,n),f.value=[o.getNodes()],n.lazy&&(0,p.Im)(e.options)?(c.value=!1,k(void 0,(e=>{e&&(o=new ds(e,n),f.value=[o.getNodes()]),c.value=!0,M(!1,!0)}))):M(!1,!0)},k=(e,t)=>{const n=i.value;e=e||new cs({},n,void 0,!0),e.loading=!0;const r=n=>{const r=e,a=r.root?null:r;n&&(null==o||o.appendNodes(n,a)),r.loading=!1,r.loaded=!0,r.childrenData=r.childrenData||[],t&&t(n)};n.lazyLoad(e,r)},_=(e,n)=>{var r;const{level:a}=e,i=f.value.slice(0,a);let o;e.isLeaf?o=e.pathNodes[a-2]:(o=e,i.push(e.children)),(null==(r=m.value)?void 0:r.uid)!==(null==o?void 0:o.uid)&&(m.value=e,f.value=i,!n&&t("expand-change",(null==e?void 0:e.pathValues)||[]))},C=(e,n,a=!0)=>{const{checkStrictly:o,multiple:s}=i.value,l=g.value[0];r=!0,!s&&(null==l||l.doCheck(!1)),e.doCheck(n),T(),a&&!s&&!o&&t("close"),!a&&!s&&!o&&E(e)},E=e=>{e&&(e=e.parent,E(e),e&&_(e))},R=e=>null==o?void 0:o.getFlattedNodes(e),S=e=>{var t;return null==(t=R(e))?void 0:t.filter((e=>!1!==e.checked))},A=()=>{g.value.forEach((e=>e.doCheck(!1))),T(),f.value=f.value.slice(0,1),m.value=null,t("expand-change",[])},T=()=>{var e;const{checkStrictly:t,multiple:n}=i.value,r=g.value,a=S(!t),o=vs(r,a),s=o.map((e=>e.valueByOption));g.value=o,h.value=n?s:null!=(e=s[0])?e:null},M=(t=!1,n=!1)=>{const{modelValue:a}=e,{lazy:s,multiple:l,checkStrictly:u}=i.value,d=!u;if(c.value&&!r&&(n||!Ji(a,h.value)))if(s&&!t){const e=ys(ro(bs(a))),t=e.map((e=>null==o?void 0:o.getNodeByValue(e))).filter((e=>!!e&&!e.loaded&&!e.loading));t.length?t.forEach((e=>{k(e,(()=>M(!1,n)))})):M(!0,n)}else{const e=l?bs(a):[a],t=ys(e.map((e=>null==o?void 0:o.getNodeByValue(e,d))));L(t,n),h.value=(0,Yi.A)(a)}},L=(e,t=!0)=>{const{checkStrictly:n}=i.value,r=g.value,a=e.filter((e=>!!e&&(n||e.isLeaf))),c=null==o?void 0:o.getSameNode(m.value),u=t&&c||a[0];u?u.pathNodes.forEach((e=>_(e,!0))):m.value=null,r.forEach((e=>e.doCheck(!1))),(0,l.Kh)(a).forEach((e=>e.doCheck(!0))),g.value=a,(0,s.dY)(O)},O=()=>{Q.oc&&u.value.forEach((e=>{const t=null==e?void 0:e.$el;if(t){const e=t.querySelector(`.${a.namespace.value}-scrollbar__wrap`),n=t.querySelector(`.${a.b("node")}.${a.is("active")}`)||t.querySelector(`.${a.b("node")}.in-active-path`);(0,y.Rt)(e,n)}}))},I=e=>{const t=e.target,{code:n}=e;switch(n){case $n.R.up:case $n.R.down:{e.preventDefault();const r=n===$n.R.up?-1:1;(0,ar.Lw)((0,ar.rQ)(t,r,`.${a.b("node")}[tabindex="-1"]`));break}case $n.R.left:{e.preventDefault();const n=u.value[ms(t)-1],r=null==n?void 0:n.$el.querySelector(`.${a.b("node")}[aria-expanded="true"]`);(0,ar.Lw)(r);break}case $n.R.right:{e.preventDefault();const n=u.value[ms(t)+1],r=null==n?void 0:n.$el.querySelector(`.${a.b("node")}[tabindex="-1"]`);(0,ar.Lw)(r);break}case $n.R.enter:case $n.R.numpadEnter:gs(t);break}};return(0,s.Gt)(Zo,(0,l.Kh)({config:i,expandingNode:m,checkedNodes:g,isHoverMenu:b,initialLoaded:c,renderLabelFn:w,lazyLoad:k,expandNode:_,handleCheckChange:C})),(0,s.wB)([i,()=>e.options],x,{deep:!0,immediate:!0}),(0,s.wB)((()=>e.modelValue),(()=>{r=!1,M()}),{deep:!0}),(0,s.wB)((()=>h.value),(n=>{Ji(n,e.modelValue)||(t(d.l4,n),t(d.YU,n))})),(0,s.Ic)((()=>u.value=[])),(0,s.sV)((()=>!(0,p.Im)(e.modelValue)&&M())),{ns:a,menuList:u,menus:f,checkedNodes:g,handleKeyDown:I,handleCheckChange:C,getFlattedNodes:R,getCheckedNodes:S,clearCheckedNodes:A,calculateCheckedValue:T,scrollToExpandingNode:O}}});function xs(e,t,n,r,a,i){const o=(0,s.g2)("el-cascader-menu");return(0,s.uX)(),(0,s.CE)("div",{class:(0,c.C4)([e.ns.b("panel"),e.ns.is("bordered",e.border)]),onKeydown:e.handleKeyDown},[((0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)(e.menus,((t,n)=>((0,s.uX)(),(0,s.Wv)(o,{key:n,ref_for:!0,ref:t=>e.menuList[n]=t,index:n,nodes:[...t]},{empty:(0,s.k6)((()=>[(0,s.RG)(e.$slots,"empty")])),_:2},1032,["index","nodes"])))),128))],42,["onKeydown"])}var ks=(0,g.A)(ws,[["render",xs],["__file","index.vue"]]);const _s=(0,E.GU)(ks),Cs=(0,h.b_)({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:ca.I},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),Es={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},Rs=(0,s.pM)({name:"ElTag"}),Ss=(0,s.pM)({...Rs,props:Cs,emits:Es,setup(e,{emit:t}){const n=e,r=(0,ra.NV)(),a=(0,v.DU)("tag"),i=(0,s.EW)((()=>{const{type:e,hit:t,effect:i,closable:o,round:s}=n;return[a.b(),a.is("closable",o),a.m(e||"primary"),a.m(r.value),a.m(i),a.is("hit",t),a.is("round",s)]})),o=e=>{t("close",e)},u=e=>{t("click",e)},d=e=>{var t,n,r;(null==(r=null==(n=null==(t=null==e?void 0:e.component)?void 0:t.subTree)?void 0:n.component)?void 0:r.bum)&&(e.component.subTree.component.bum=null)};return(e,t)=>e.disableTransitions?((0,s.uX)(),(0,s.CE)("span",{key:0,class:(0,c.C4)((0,l.R1)(i)),style:(0,c.Tr)({backgroundColor:e.color}),onClick:u},[(0,s.Lk)("span",{class:(0,c.C4)((0,l.R1)(a).e("content"))},[(0,s.RG)(e.$slots,"default")],2),e.closable?((0,s.uX)(),(0,s.Wv)((0,l.R1)(A.tk),{key:0,class:(0,c.C4)((0,l.R1)(a).e("close")),onClick:(0,S.D$)(o,["stop"])},{default:(0,s.k6)((()=>[(0,s.bF)((0,l.R1)(H.bm))])),_:1},8,["class","onClick"])):(0,s.Q3)("v-if",!0)],6)):((0,s.uX)(),(0,s.Wv)(S.eB,{key:1,name:`${(0,l.R1)(a).namespace.value}-zoom-in-center`,appear:"",onVnodeMounted:d},{default:(0,s.k6)((()=>[(0,s.Lk)("span",{class:(0,c.C4)((0,l.R1)(i)),style:(0,c.Tr)({backgroundColor:e.color}),onClick:u},[(0,s.Lk)("span",{class:(0,c.C4)((0,l.R1)(a).e("content"))},[(0,s.RG)(e.$slots,"default")],2),e.closable?((0,s.uX)(),(0,s.Wv)((0,l.R1)(A.tk),{key:0,class:(0,c.C4)((0,l.R1)(a).e("close")),onClick:(0,S.D$)(o,["stop"])},{default:(0,s.k6)((()=>[(0,s.bF)((0,l.R1)(H.bm))])),_:1},8,["class","onClick"])):(0,s.Q3)("v-if",!0)],6)])),_:3},8,["name"]))}});var As=(0,g.A)(Ss,[["__file","tag.vue"]]);const Ts=(0,E.GU)(As);var Ms=n(9180);const Ls=(0,h.b_)({...hs,size:ao.mU,placeholder:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:{type:(0,h.jq)(Function),default:(e,t)=>e.text.includes(t)},separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,maxCollapseTags:{type:Number,default:1},collapseTagsTooltip:{type:Boolean,default:!1},debounce:{type:Number,default:300},beforeFilter:{type:(0,h.jq)(Function),default:()=>!0},placement:{type:(0,h.jq)(String),values:Pe,default:"bottom-start"},fallbackPlacements:{type:(0,h.jq)(Array),default:["bottom-start","bottom","top-start","top","right","left"]},popperClass:{type:String,default:""},teleported:Dn.teleported,tagType:{...Cs.type,default:"info"},tagEffect:{...Cs.effect,default:"light"},validateEvent:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},...Ms.bs}),Os={[d.l4]:e=>!0,[d.YU]:e=>!0,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,visibleChange:e=>(0,p.Lm)(e),expandChange:e=>!!e,removeTag:e=>!!e},Is=new Map;if(Q.oc){let e;document.addEventListener("mousedown",(t=>e=t)),document.addEventListener("mouseup",(t=>{if(e){for(const n of Is.values())for(const{documentHandler:r}of n)r(t,e);e=void 0}}))}function Ns(e,t){let n=[];return(0,c.cy)(t.arg)?n=t.arg:(0,p.vq)(t.arg)&&n.push(t.arg),function(r,a){const i=t.instance.popperRef,o=r.target,s=null==a?void 0:a.target,l=!t||!t.instance,c=!o||!s,u=e.contains(o)||e.contains(s),d=e===o,h=n.length&&n.some((e=>null==e?void 0:e.contains(o)))||n.length&&n.includes(s),p=i&&(i.contains(o)||i.contains(s));l||c||u||d||h||p||t.value(r,a)}}const Bs={beforeMount(e,t){Is.has(e)||Is.set(e,[]),Is.get(e).push({documentHandler:Ns(e,t),bindingFn:t.value})},updated(e,t){Is.has(e)||Is.set(e,[]);const n=Is.get(e),r=n.findIndex((e=>e.bindingFn===t.oldValue)),a={documentHandler:Ns(e,t),bindingFn:t.value};r>=0?n.splice(r,1,a):n.push(a)},unmounted(e){Is.delete(e)}};var Ds=n(5488);const Fs="ElCascader",$s=(0,s.pM)({name:Fs}),Ps=(0,s.pM)({...$s,props:Ls,emits:Os,setup(e,{expose:t,emit:n}){const r=e,a={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:e})=>{const{modifiersData:t,placement:n}=e;["right","left","bottom","top"].includes(n)||(t.arrow.x=35)},requires:["arrow"]}]},i=(0,s.OA)();let o=0,h=0;const p=(0,v.DU)("cascader"),f=(0,v.DU)("input"),{t:m}=(0,La.Ym)(),{form:g,formItem:y}=(0,co.j)(),{valueOnClear:b}=(0,Ms.fQ)(r),{isComposing:x,handleComposition:k}=(0,Ds.o)({afterComposition(e){var t;const n=null==(t=e.target)?void 0:t.value;Ae(n)}}),_=(0,l.KR)(null),C=(0,l.KR)(null),E=(0,l.KR)(null),R=(0,l.KR)(null),T=(0,l.KR)(null),M=(0,l.KR)(!1),L=(0,l.KR)(!1),O=(0,l.KR)(!1),I=(0,l.KR)(!1),N=(0,l.KR)(""),B=(0,l.KR)(""),D=(0,l.KR)([]),F=(0,l.KR)([]),$=(0,l.KR)([]),P=(0,s.EW)((()=>i.style)),z=(0,s.EW)((()=>r.disabled||(null==g?void 0:g.disabled))),W=(0,s.EW)((()=>r.placeholder||m("el.cascader.placeholder"))),j=(0,s.EW)((()=>B.value||D.value.length>0||x.value?"":W.value)),V=(0,ra.NV)(),U=(0,s.EW)((()=>"small"===V.value?"small":"default")),G=(0,s.EW)((()=>!!r.props.multiple)),X=(0,s.EW)((()=>!r.filterable||G.value)),Y=(0,s.EW)((()=>G.value?B.value:N.value)),Z=(0,s.EW)((()=>{var e;return(null==(e=R.value)?void 0:e.checkedNodes)||[]})),J=(0,s.EW)((()=>!(!r.clearable||z.value||O.value||!L.value)&&!!Z.value.length)),ee=(0,s.EW)((()=>{const{showAllLevels:e,separator:t}=r,n=Z.value;return n.length?G.value?"":n[0].calcText(e,t):""})),te=(0,s.EW)((()=>(null==y?void 0:y.validateState)||"")),ne=(0,s.EW)({get(){return(0,Yi.A)(r.modelValue)},set(e){const t=null!=e?e:b.value;n(d.l4,t),n(d.YU,t),r.validateEvent&&(null==y||y.validate("change").catch((e=>(0,w.U)(e))))}}),re=(0,s.EW)((()=>[p.b(),p.m(V.value),p.is("disabled",z.value),i.class])),ae=(0,s.EW)((()=>[f.e("icon"),"icon-arrow-down",p.is("reverse",M.value)])),ie=(0,s.EW)((()=>p.is("focus",M.value||I.value))),oe=(0,s.EW)((()=>{var e,t;return null==(t=null==(e=_.value)?void 0:e.popperRef)?void 0:t.contentRef})),se=e=>{var t,a,i;z.value||(e=null!=e?e:!M.value,e!==M.value&&(M.value=e,null==(a=null==(t=C.value)?void 0:t.input)||a.setAttribute("aria-expanded",`${e}`),e?(le(),(0,s.dY)(null==(i=R.value)?void 0:i.scrollToExpandingNode)):r.filterable&&xe(),n("visibleChange",e)))},le=()=>{(0,s.dY)((()=>{var e;null==(e=_.value)||e.updatePopper()}))},ce=()=>{O.value=!1},ue=e=>{const{showAllLevels:t,separator:n}=r;return{node:e,key:e.uid,text:e.calcText(t,n),hitState:!1,closable:!z.value&&!e.isDisabled,isCollapseTag:!1}},de=e=>{var t;const r=e.node;r.doCheck(!1),null==(t=R.value)||t.calculateCheckedValue(),n("removeTag",r.valueByOption)},he=()=>{if(!G.value)return;const e=Z.value,t=[],n=[];if(e.forEach((e=>n.push(ue(e)))),F.value=n,e.length){e.slice(0,r.maxCollapseTags).forEach((e=>t.push(ue(e))));const n=e.slice(r.maxCollapseTags),a=n.length;a&&(r.collapseTags?t.push({key:-1,text:`+ ${a}`,closable:!1,isCollapseTag:!0}):n.forEach((e=>t.push(ue(e)))))}D.value=t},fe=()=>{var e,t;const{filterMethod:n,showAllLevels:a,separator:i}=r,o=null==(t=null==(e=R.value)?void 0:e.getFlattedNodes(!r.props.checkStrictly))?void 0:t.filter((e=>!e.isDisabled&&(e.calcText(a,i),n(e,Y.value))));G.value&&(D.value.forEach((e=>{e.hitState=!1})),F.value.forEach((e=>{e.hitState=!1}))),O.value=!0,$.value=o,le()},me=()=>{var e;let t;t=O.value&&T.value?T.value.$el.querySelector(`.${p.e("suggestion-item")}`):null==(e=R.value)?void 0:e.$el.querySelector(`.${p.b("node")}[tabindex="-1"]`),t&&(t.focus(),!O.value&&t.click())},ge=()=>{var e,t;const n=null==(e=C.value)?void 0:e.input,r=E.value,a=null==(t=T.value)?void 0:t.$el;if(Q.oc&&n){if(a){const e=a.querySelector(`.${p.e("suggestion-list")}`);e.style.minWidth=`${n.offsetWidth}px`}if(r){const{offsetHeight:e}=r,t=D.value.length>0?Math.max(e,o)-2+"px":`${o}px`;n.style.height=t,le()}}},ve=e=>{var t;return null==(t=R.value)?void 0:t.getCheckedNodes(e)},ye=e=>{le(),n("expandChange",e)},be=e=>{if(!x.value)switch(e.code){case $n.R.enter:case $n.R.numpadEnter:se();break;case $n.R.down:se(!0),(0,s.dY)(me),e.preventDefault();break;case $n.R.esc:!0===M.value&&(e.preventDefault(),e.stopPropagation(),se(!1));break;case $n.R.tab:se(!1);break}},we=()=>{var e;null==(e=R.value)||e.clearCheckedNodes(),!M.value&&r.filterable&&xe(),se(!1),n("clear")},xe=()=>{const{value:e}=ee;N.value=e,B.value=e},ke=e=>{var t,n;const{checked:r}=e;G.value?null==(t=R.value)||t.handleCheckChange(e,!r,!1):(!r&&(null==(n=R.value)||n.handleCheckChange(e,!0,!1)),se(!1))},_e=e=>{const t=e.target,{code:n}=e;switch(n){case $n.R.up:case $n.R.down:{const e=n===$n.R.up?-1:1;(0,ar.Lw)((0,ar.rQ)(t,e,`.${p.e("suggestion-item")}[tabindex="-1"]`));break}case $n.R.enter:case $n.R.numpadEnter:t.click();break}},Ce=()=>{const e=D.value,t=e[e.length-1];h=B.value?0:h+1,!t||!h||r.collapseTags&&e.length>1||(t.hitState?de(t):t.hitState=!0)},Ee=e=>{const t=e.target,r=p.e("search-input");t.className===r&&(I.value=!0),n("focus",e)},Re=e=>{I.value=!1,n("blur",e)},Se=K((()=>{const{value:e}=Y;if(!e)return;const t=r.beforeFilter(e);(0,c.yL)(t)?t.then(fe).catch((()=>{})):!1!==t?fe():ce()}),r.debounce),Ae=(e,t)=>{!M.value&&se(!0),(null==t?void 0:t.isComposing)||(e?Se():ce())},Te=e=>Number.parseFloat((0,u.eU5)(f.cssVarName("input-height"),e).value)-2;return(0,s.wB)(O,le),(0,s.wB)([Z,z,()=>r.collapseTags],he),(0,s.wB)(D,(()=>{(0,s.dY)((()=>ge()))})),(0,s.wB)(V,(async()=>{await(0,s.dY)();const e=C.value.input;o=Te(e)||o,ge()})),(0,s.wB)(ee,xe,{immediate:!0}),(0,s.sV)((()=>{const e=C.value.input,t=Te(e);o=e.offsetHeight||t,(0,u.wYm)(e,ge)})),t({getCheckedNodes:ve,cascaderPanelRef:R,togglePopperVisible:se,contentRef:oe,presentText:ee}),(e,t)=>((0,s.uX)(),(0,s.Wv)((0,l.R1)(Jr),{ref_key:"tooltipRef",ref:_,visible:M.value,teleported:e.teleported,"popper-class":[(0,l.R1)(p).e("dropdown"),e.popperClass],"popper-options":a,"fallback-placements":e.fallbackPlacements,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,placement:e.placement,transition:`${(0,l.R1)(p).namespace.value}-zoom-in-top`,effect:"light",pure:"",persistent:e.persistent,onHide:ce},{default:(0,s.k6)((()=>[(0,s.bo)(((0,s.uX)(),(0,s.CE)("div",{class:(0,c.C4)((0,l.R1)(re)),style:(0,c.Tr)((0,l.R1)(P)),onClick:()=>se(!(0,l.R1)(X)||void 0),onKeydown:be,onMouseenter:e=>L.value=!0,onMouseleave:e=>L.value=!1},[(0,s.bF)((0,l.R1)(q.WK),{ref_key:"input",ref:C,modelValue:N.value,"onUpdate:modelValue":e=>N.value=e,placeholder:(0,l.R1)(j),readonly:(0,l.R1)(X),disabled:(0,l.R1)(z),"validate-event":!1,size:(0,l.R1)(V),class:(0,c.C4)((0,l.R1)(ie)),tabindex:(0,l.R1)(G)&&e.filterable&&!(0,l.R1)(z)?-1:void 0,onCompositionstart:(0,l.R1)(k),onCompositionupdate:(0,l.R1)(k),onCompositionend:(0,l.R1)(k),onFocus:Ee,onBlur:Re,onInput:Ae},(0,s.eX)({suffix:(0,s.k6)((()=>[(0,l.R1)(J)?((0,s.uX)(),(0,s.Wv)((0,l.R1)(A.tk),{key:"clear",class:(0,c.C4)([(0,l.R1)(f).e("icon"),"icon-circle-close"]),onClick:(0,S.D$)(we,["stop"])},{default:(0,s.k6)((()=>[(0,s.bF)((0,l.R1)(H.R$5))])),_:1},8,["class","onClick"])):((0,s.uX)(),(0,s.Wv)((0,l.R1)(A.tk),{key:"arrow-down",class:(0,c.C4)((0,l.R1)(ae)),onClick:(0,S.D$)((e=>se()),["stop"])},{default:(0,s.k6)((()=>[(0,s.bF)((0,l.R1)(H.yd$))])),_:1},8,["class","onClick"]))])),_:2},[e.$slots.prefix?{name:"prefix",fn:(0,s.k6)((()=>[(0,s.RG)(e.$slots,"prefix")]))}:void 0]),1032,["modelValue","onUpdate:modelValue","placeholder","readonly","disabled","size","class","tabindex","onCompositionstart","onCompositionupdate","onCompositionend"]),(0,l.R1)(G)?((0,s.uX)(),(0,s.CE)("div",{key:0,ref_key:"tagWrapper",ref:E,class:(0,c.C4)([(0,l.R1)(p).e("tags"),(0,l.R1)(p).is("validate",Boolean((0,l.R1)(te)))])},[((0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)(D.value,(t=>((0,s.uX)(),(0,s.Wv)((0,l.R1)(Ts),{key:t.key,type:e.tagType,size:(0,l.R1)(U),effect:e.tagEffect,hit:t.hitState,closable:t.closable,"disable-transitions":"",onClose:e=>de(t)},{default:(0,s.k6)((()=>[!1===t.isCollapseTag?((0,s.uX)(),(0,s.CE)("span",{key:0},(0,c.v_)(t.text),1)):((0,s.uX)(),(0,s.Wv)((0,l.R1)(Jr),{key:1,disabled:M.value||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom",effect:"light"},{default:(0,s.k6)((()=>[(0,s.Lk)("span",null,(0,c.v_)(t.text),1)])),content:(0,s.k6)((()=>[(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(p).e("collapse-tags"))},[((0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)(F.value.slice(e.maxCollapseTags),((t,n)=>((0,s.uX)(),(0,s.CE)("div",{key:n,class:(0,c.C4)((0,l.R1)(p).e("collapse-tag"))},[((0,s.uX)(),(0,s.Wv)((0,l.R1)(Ts),{key:t.key,class:"in-tooltip",type:e.tagType,size:(0,l.R1)(U),effect:e.tagEffect,hit:t.hitState,closable:t.closable,"disable-transitions":"",onClose:e=>de(t)},{default:(0,s.k6)((()=>[(0,s.Lk)("span",null,(0,c.v_)(t.text),1)])),_:2},1032,["type","size","effect","hit","closable","onClose"]))],2)))),128))],2)])),_:2},1032,["disabled"]))])),_:2},1032,["type","size","effect","hit","closable","onClose"])))),128)),e.filterable&&!(0,l.R1)(z)?(0,s.bo)(((0,s.uX)(),(0,s.CE)("input",{key:0,"onUpdate:modelValue":e=>B.value=e,type:"text",class:(0,c.C4)((0,l.R1)(p).e("search-input")),placeholder:(0,l.R1)(ee)?"":(0,l.R1)(W),onInput:e=>Ae(B.value,e),onClick:(0,S.D$)((e=>se(!0)),["stop"]),onKeydown:(0,S.jR)(Ce,["delete"]),onCompositionstart:(0,l.R1)(k),onCompositionupdate:(0,l.R1)(k),onCompositionend:(0,l.R1)(k),onFocus:Ee,onBlur:Re},null,42,["onUpdate:modelValue","placeholder","onInput","onClick","onKeydown","onCompositionstart","onCompositionupdate","onCompositionend"])),[[S.Jo,B.value]]):(0,s.Q3)("v-if",!0)],2)):(0,s.Q3)("v-if",!0)],46,["onClick","onMouseenter","onMouseleave"])),[[(0,l.R1)(Bs),()=>se(!1),(0,l.R1)(oe)]])])),content:(0,s.k6)((()=>[(0,s.bo)((0,s.bF)((0,l.R1)(_s),{ref_key:"cascaderPanelRef",ref:R,modelValue:(0,l.R1)(ne),"onUpdate:modelValue":e=>(0,l.i9)(ne)?ne.value=e:null,options:e.options,props:r.props,border:!1,"render-label":e.$slots.default,onExpandChange:ye,onClose:t=>e.$nextTick((()=>se(!1)))},{empty:(0,s.k6)((()=>[(0,s.RG)(e.$slots,"empty")])),_:3},8,["modelValue","onUpdate:modelValue","options","props","render-label","onClose"]),[[S.aG,!O.value]]),e.filterable?(0,s.bo)(((0,s.uX)(),(0,s.Wv)((0,l.R1)(pe),{key:0,ref_key:"suggestionPanel",ref:T,tag:"ul",class:(0,c.C4)((0,l.R1)(p).e("suggestion-panel")),"view-class":(0,l.R1)(p).e("suggestion-list"),onKeydown:_e},{default:(0,s.k6)((()=>[$.value.length?((0,s.uX)(!0),(0,s.CE)(s.FK,{key:0},(0,s.pI)($.value,(e=>((0,s.uX)(),(0,s.CE)("li",{key:e.uid,class:(0,c.C4)([(0,l.R1)(p).e("suggestion-item"),(0,l.R1)(p).is("checked",e.checked)]),tabindex:-1,onClick:t=>ke(e)},[(0,s.Lk)("span",null,(0,c.v_)(e.text),1),e.checked?((0,s.uX)(),(0,s.Wv)((0,l.R1)(A.tk),{key:0},{default:(0,s.k6)((()=>[(0,s.bF)((0,l.R1)(H.Jlk))])),_:1})):(0,s.Q3)("v-if",!0)],10,["onClick"])))),128)):(0,s.RG)(e.$slots,"empty",{key:1},(()=>[(0,s.Lk)("li",{class:(0,c.C4)((0,l.R1)(p).e("empty-text"))},(0,c.v_)((0,l.R1)(m)("el.cascader.noMatch")),3)]))])),_:3},8,["class","view-class"])),[[S.aG,O.value]]):(0,s.Q3)("v-if",!0)])),_:3},8,["visible","teleported","popper-class","fallback-placements","placement","transition","persistent"]))}});var zs=(0,g.A)(Ps,[["__file","cascader.vue"]]);const Ws=(0,E.GU)(zs),js=(0,h.b_)({checked:Boolean,disabled:Boolean,type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"}}),Vs={"update:checked":e=>(0,p.Lm)(e),[d.YU]:e=>(0,p.Lm)(e)},Us=(0,s.pM)({name:"ElCheckTag"}),Ks=(0,s.pM)({...Us,props:js,emits:Vs,setup(e,{emit:t}){const n=e,r=(0,v.DU)("check-tag"),a=(0,s.EW)((()=>n.disabled)),i=(0,s.EW)((()=>[r.b(),r.is("checked",n.checked),r.is("disabled",a.value),r.m(n.type||"primary")])),o=()=>{if(a.value)return;const e=!n.checked;t(d.YU,e),t("update:checked",e)};return(e,t)=>((0,s.uX)(),(0,s.CE)("span",{class:(0,c.C4)((0,l.R1)(i)),onClick:o},[(0,s.RG)(e.$slots,"default")],2))}});var Hs=(0,g.A)(Ks,[["__file","check-tag.vue"]]);const qs=(0,E.GU)(Hs);var Gs=n(6769);const Xs=(0,h.b_)({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:(0,h.jq)([Number,Object]),default:()=>(0,Gs.f)({})},sm:{type:(0,h.jq)([Number,Object]),default:()=>(0,Gs.f)({})},md:{type:(0,h.jq)([Number,Object]),default:()=>(0,Gs.f)({})},lg:{type:(0,h.jq)([Number,Object]),default:()=>(0,Gs.f)({})},xl:{type:(0,h.jq)([Number,Object]),default:()=>(0,Gs.f)({})}}),Ys=Symbol("rowContextKey"),Qs=(0,s.pM)({name:"ElCol"}),Zs=(0,s.pM)({...Qs,props:Xs,setup(e){const t=e,{gutter:n}=(0,s.WQ)(Ys,{gutter:(0,s.EW)((()=>0))}),r=(0,v.DU)("col"),a=(0,s.EW)((()=>{const e={};return n.value&&(e.paddingLeft=e.paddingRight=n.value/2+"px"),e})),i=(0,s.EW)((()=>{const e=[],a=["span","offset","pull","push"];a.forEach((n=>{const a=t[n];(0,p.Et)(a)&&("span"===n?e.push(r.b(`${t[n]}`)):a>0&&e.push(r.b(`${n}-${t[n]}`)))}));const i=["xs","sm","md","lg","xl"];return i.forEach((n=>{(0,p.Et)(t[n])?e.push(r.b(`${n}-${t[n]}`)):(0,c.Gv)(t[n])&&Object.entries(t[n]).forEach((([t,a])=>{e.push("span"!==t?r.b(`${n}-${t}-${a}`):r.b(`${n}-${a}`))}))})),n.value&&e.push(r.is("guttered")),[r.b(),e]}));return(e,t)=>((0,s.uX)(),(0,s.Wv)((0,s.$y)(e.tag),{class:(0,c.C4)((0,l.R1)(i)),style:(0,c.Tr)((0,l.R1)(a))},{default:(0,s.k6)((()=>[(0,s.RG)(e.$slots,"default")])),_:3},8,["class","style"]))}});var Js=(0,g.A)(Zs,[["__file","col.vue"]]);const el=(0,E.GU)(Js),tl=e=>(0,p.Et)(e)||(0,c.Kg)(e)||(0,c.cy)(e),nl=(0,h.b_)({accordion:Boolean,modelValue:{type:(0,h.jq)([Array,String,Number]),default:()=>(0,Gs.f)([])}}),rl={[d.l4]:tl,[d.YU]:tl},al=Symbol("collapseContextKey");var il=n(1125);function ol(){if(!arguments.length)return[];var e=arguments[0];return(0,il.A)(e)?e:[e]}var sl=ol;const ll=(e,t)=>{const n=(0,l.KR)(sl(e.modelValue)),r=r=>{n.value=r;const a=e.accordion?n.value[0]:n.value;t(d.l4,a),t(d.YU,a)},a=t=>{if(e.accordion)r([n.value[0]===t?"":t]);else{const e=[...n.value],a=e.indexOf(t);a>-1?e.splice(a,1):e.push(t),r(e)}};return(0,s.wB)((()=>e.modelValue),(()=>n.value=sl(e.modelValue)),{deep:!0}),(0,s.Gt)(al,{activeNames:n,handleItemClick:a}),{activeNames:n,setActiveNames:r}},cl=()=>{const e=(0,v.DU)("collapse"),t=(0,s.EW)((()=>e.b()));return{rootKls:t}},ul=(0,s.pM)({name:"ElCollapse"}),dl=(0,s.pM)({...ul,props:nl,emits:rl,setup(e,{expose:t,emit:n}){const r=e,{activeNames:a,setActiveNames:i}=ll(r,n),{rootKls:o}=cl();return t({activeNames:a,setActiveNames:i}),(e,t)=>((0,s.uX)(),(0,s.CE)("div",{class:(0,c.C4)((0,l.R1)(o))},[(0,s.RG)(e.$slots,"default")],2))}});var hl=(0,g.A)(dl,[["__file","collapse.vue"]]);const pl=(0,s.pM)({name:"ElCollapseTransition"}),fl=(0,s.pM)({...pl,setup(e){const t=(0,v.DU)("collapse-transition"),n=e=>{e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom},r={beforeEnter(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.style.height&&(e.dataset.elExistsHeight=e.style.height),e.style.maxHeight=0,e.style.paddingTop=0,e.style.paddingBottom=0},enter(e){requestAnimationFrame((()=>{e.dataset.oldOverflow=e.style.overflow,e.dataset.elExistsHeight?e.style.maxHeight=e.dataset.elExistsHeight:0!==e.scrollHeight?e.style.maxHeight=`${e.scrollHeight}px`:e.style.maxHeight=0,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom,e.style.overflow="hidden"}))},afterEnter(e){e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow},enterCancelled(e){n(e)},beforeLeave(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.dataset.oldOverflow=e.style.overflow,e.style.maxHeight=`${e.scrollHeight}px`,e.style.overflow="hidden"},leave(e){0!==e.scrollHeight&&(e.style.maxHeight=0,e.style.paddingTop=0,e.style.paddingBottom=0)},afterLeave(e){n(e)},leaveCancelled(e){n(e)}};return(e,n)=>((0,s.uX)(),(0,s.Wv)(S.eB,(0,s.v6)({name:(0,l.R1)(t).b()},(0,s.Tb)(r)),{default:(0,s.k6)((()=>[(0,s.RG)(e.$slots,"default")])),_:3},16,["name"]))}});var ml=(0,g.A)(fl,[["__file","collapse-transition.vue"]]);const gl=(0,E.GU)(ml),vl=(0,h.b_)({title:{type:String,default:""},name:{type:(0,h.jq)([String,Number]),default:void 0},icon:{type:T.Ze,default:H.Qpb},disabled:Boolean}),yl=e=>{const t=(0,s.WQ)(al),{namespace:n}=(0,v.DU)("collapse"),r=(0,l.KR)(!1),a=(0,l.KR)(!1),i=(0,xr.Sj)(),o=(0,s.EW)((()=>i.current++)),c=(0,s.EW)((()=>{var t;return null!=(t=e.name)?t:`${n.value}-id-${i.prefix}-${(0,l.R1)(o)}`})),u=(0,s.EW)((()=>null==t?void 0:t.activeNames.value.includes((0,l.R1)(c)))),d=()=>{setTimeout((()=>{a.value?a.value=!1:r.value=!0}),50)},h=()=>{e.disabled||(null==t||t.handleItemClick((0,l.R1)(c)),r.value=!1,a.value=!0)},p=()=>{null==t||t.handleItemClick((0,l.R1)(c))};return{focusing:r,id:o,isActive:u,handleFocus:d,handleHeaderClick:h,handleEnterClick:p}},bl=(e,{focusing:t,isActive:n,id:r})=>{const a=(0,v.DU)("collapse"),i=(0,s.EW)((()=>[a.b("item"),a.is("active",(0,l.R1)(n)),a.is("disabled",e.disabled)])),o=(0,s.EW)((()=>[a.be("item","header"),a.is("active",(0,l.R1)(n)),{focusing:(0,l.R1)(t)&&!e.disabled}])),c=(0,s.EW)((()=>[a.be("item","arrow"),a.is("active",(0,l.R1)(n))])),u=(0,s.EW)((()=>a.be("item","wrap"))),d=(0,s.EW)((()=>a.be("item","content"))),h=(0,s.EW)((()=>a.b(`content-${(0,l.R1)(r)}`))),p=(0,s.EW)((()=>a.b(`head-${(0,l.R1)(r)}`)));return{arrowKls:c,headKls:o,rootKls:i,itemWrapperKls:u,itemContentKls:d,scopedContentId:h,scopedHeadId:p}},wl=(0,s.pM)({name:"ElCollapseItem"}),xl=(0,s.pM)({...wl,props:vl,setup(e,{expose:t}){const n=e,{focusing:r,id:a,isActive:i,handleFocus:o,handleHeaderClick:u,handleEnterClick:d}=yl(n),{arrowKls:h,headKls:p,rootKls:f,itemWrapperKls:m,itemContentKls:g,scopedContentId:v,scopedHeadId:y}=bl(n,{focusing:r,isActive:i,id:a});return t({isActive:i}),(e,t)=>((0,s.uX)(),(0,s.CE)("div",{class:(0,c.C4)((0,l.R1)(f))},[(0,s.Lk)("button",{id:(0,l.R1)(y),class:(0,c.C4)((0,l.R1)(p)),"aria-expanded":(0,l.R1)(i),"aria-controls":(0,l.R1)(v),"aria-describedby":(0,l.R1)(v),tabindex:e.disabled?-1:0,type:"button",onClick:(0,l.R1)(u),onKeydown:(0,S.jR)((0,S.D$)((0,l.R1)(d),["stop","prevent"]),["space","enter"]),onFocus:(0,l.R1)(o),onBlur:e=>r.value=!1},[(0,s.RG)(e.$slots,"title",{},(()=>[(0,s.eW)((0,c.v_)(e.title),1)])),(0,s.RG)(e.$slots,"icon",{isActive:(0,l.R1)(i)},(()=>[(0,s.bF)((0,l.R1)(A.tk),{class:(0,c.C4)((0,l.R1)(h))},{default:(0,s.k6)((()=>[((0,s.uX)(),(0,s.Wv)((0,s.$y)(e.icon)))])),_:1},8,["class"])]))],42,["id","aria-expanded","aria-controls","aria-describedby","tabindex","onClick","onKeydown","onFocus","onBlur"]),(0,s.bF)((0,l.R1)(gl),null,{default:(0,s.k6)((()=>[(0,s.bo)((0,s.Lk)("div",{id:(0,l.R1)(v),role:"region",class:(0,c.C4)((0,l.R1)(m)),"aria-hidden":!(0,l.R1)(i),"aria-labelledby":(0,l.R1)(y)},[(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(g))},[(0,s.RG)(e.$slots,"default")],2)],10,["id","aria-hidden","aria-labelledby"]),[[S.aG,(0,l.R1)(i)]])])),_:3})],2))}});var kl=(0,g.A)(xl,[["__file","collapse-item.vue"]]);const _l=(0,E.GU)(hl,{CollapseItem:kl}),Cl=(0,E.WM)(kl),El=(0,h.b_)({color:{type:(0,h.jq)(Object),required:!0},vertical:{type:Boolean,default:!1}});let Rl=!1;function Sl(e,t){if(!Q.oc)return;const n=function(e){var n;null==(n=t.drag)||n.call(t,e)},r=function(e){var a;document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",r),document.removeEventListener("touchmove",n),document.removeEventListener("touchend",r),document.onselectstart=null,document.ondragstart=null,Rl=!1,null==(a=t.end)||a.call(t,e)},a=function(e){var a;Rl||(e.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",r),document.addEventListener("touchmove",n),document.addEventListener("touchend",r),Rl=!0,null==(a=t.start)||a.call(t,e))};e.addEventListener("mousedown",a),e.addEventListener("touchstart",a,{passive:!1})}const Al=(e,t)=>{if(!Q.oc||!e||!t)return!1;const n=e.getBoundingClientRect();let r;return r=t instanceof Element?t.getBoundingClientRect():{top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},n.top<r.bottom&&n.bottom>r.top&&n.right>r.left&&n.left<r.right},Tl=e=>{let t=0,n=e;while(n)t+=n.offsetTop,n=n.offsetParent;return t},Ml=(e,t)=>Math.abs(Tl(e)-Tl(t)),Ll=e=>{let t,n;return"touchend"===e.type?(n=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(n=e.touches[0].clientY,t=e.touches[0].clientX):(n=e.clientY,t=e.clientX),{clientX:t,clientY:n}},Ol=e=>{const t=(0,s.nI)(),{t:n}=(0,La.Ym)(),r=(0,l.IJ)(),a=(0,l.IJ)(),i=(0,s.EW)((()=>e.color.get("alpha"))),o=(0,s.EW)((()=>n("el.colorpicker.alphaLabel")));function c(e){var t;const n=e.target;n!==r.value&&u(e),null==(t=r.value)||t.focus()}function u(n){if(!a.value||!r.value)return;const i=t.vnode.el,o=i.getBoundingClientRect(),{clientX:s,clientY:l}=Ll(n);if(e.vertical){let t=l-o.top;t=Math.max(r.value.offsetHeight/2,t),t=Math.min(t,o.height-r.value.offsetHeight/2),e.color.set("alpha",Math.round((t-r.value.offsetHeight/2)/(o.height-r.value.offsetHeight)*100))}else{let t=s-o.left;t=Math.max(r.value.offsetWidth/2,t),t=Math.min(t,o.width-r.value.offsetWidth/2),e.color.set("alpha",Math.round((t-r.value.offsetWidth/2)/(o.width-r.value.offsetWidth)*100))}}function d(e){const{code:t,shiftKey:n}=e,r=n?10:1;switch(t){case $n.R.left:case $n.R.down:e.preventDefault(),e.stopPropagation(),h(-r);break;case $n.R.right:case $n.R.up:e.preventDefault(),e.stopPropagation(),h(r);break}}function h(t){let n=i.value+t;n=n<0?0:n>100?100:n,e.color.set("alpha",n)}return{thumb:r,bar:a,alpha:i,alphaLabel:o,handleDrag:u,handleClick:c,handleKeydown:d}},Il=(e,{bar:t,thumb:n,handleDrag:r})=>{const a=(0,s.nI)(),i=(0,v.DU)("color-alpha-slider"),o=(0,l.KR)(0),c=(0,l.KR)(0),u=(0,l.KR)();function d(){if(!n.value)return 0;if(e.vertical)return 0;const t=a.vnode.el,r=e.color.get("alpha");return t?Math.round(r*(t.offsetWidth-n.value.offsetWidth/2)/100):0}function h(){if(!n.value)return 0;const t=a.vnode.el;if(!e.vertical)return 0;const r=e.color.get("alpha");return t?Math.round(r*(t.offsetHeight-n.value.offsetHeight/2)/100):0}function p(){if(e.color&&e.color.value){const{r:t,g:n,b:r}=e.color.toRgb();return`linear-gradient(to right, rgba(${t}, ${n}, ${r}, 0) 0%, rgba(${t}, ${n}, ${r}, 1) 100%)`}return""}function f(){o.value=d(),c.value=h(),u.value=p()}(0,s.sV)((()=>{if(!t.value||!n.value)return;const e={drag:e=>{r(e)},end:e=>{r(e)}};Sl(t.value,e),Sl(n.value,e),f()})),(0,s.wB)((()=>e.color.get("alpha")),(()=>f())),(0,s.wB)((()=>e.color.value),(()=>f()));const m=(0,s.EW)((()=>[i.b(),i.is("vertical",e.vertical)])),g=(0,s.EW)((()=>i.e("bar"))),y=(0,s.EW)((()=>i.e("thumb"))),w=(0,s.EW)((()=>({background:u.value}))),x=(0,s.EW)((()=>({left:(0,b._V)(o.value),top:(0,b._V)(c.value)})));return{rootKls:m,barKls:g,barStyle:w,thumbKls:y,thumbStyle:x,update:f}},Nl="ElColorAlphaSlider",Bl=(0,s.pM)({name:Nl}),Dl=(0,s.pM)({...Bl,props:El,setup(e,{expose:t}){const n=e,{alpha:r,alphaLabel:a,bar:i,thumb:o,handleDrag:u,handleClick:d,handleKeydown:h}=Ol(n),{rootKls:p,barKls:f,barStyle:m,thumbKls:g,thumbStyle:v,update:y}=Il(n,{bar:i,thumb:o,handleDrag:u});return t({update:y,bar:i,thumb:o}),(e,t)=>((0,s.uX)(),(0,s.CE)("div",{class:(0,c.C4)((0,l.R1)(p))},[(0,s.Lk)("div",{ref_key:"bar",ref:i,class:(0,c.C4)((0,l.R1)(f)),style:(0,c.Tr)((0,l.R1)(m)),onClick:(0,l.R1)(d)},null,14,["onClick"]),(0,s.Lk)("div",{ref_key:"thumb",ref:o,class:(0,c.C4)((0,l.R1)(g)),style:(0,c.Tr)((0,l.R1)(v)),"aria-label":(0,l.R1)(a),"aria-valuenow":(0,l.R1)(r),"aria-orientation":e.vertical?"vertical":"horizontal","aria-valuemin":"0","aria-valuemax":"100",role:"slider",tabindex:"0",onKeydown:(0,l.R1)(h)},null,46,["aria-label","aria-valuenow","aria-orientation","onKeydown"])],2))}});var Fl=(0,g.A)(Dl,[["__file","alpha-slider.vue"]]);const $l=(0,s.pM)({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(e){const t=(0,v.DU)("color-hue-slider"),n=(0,s.nI)(),r=(0,l.KR)(),a=(0,l.KR)(),i=(0,l.KR)(0),o=(0,l.KR)(0),c=(0,s.EW)((()=>e.color.get("hue")));function u(e){const t=e.target;t!==r.value&&d(e)}function d(t){if(!a.value||!r.value)return;const i=n.vnode.el,o=i.getBoundingClientRect(),{clientX:s,clientY:l}=Ll(t);let c;if(e.vertical){let e=l-o.top;e=Math.min(e,o.height-r.value.offsetHeight/2),e=Math.max(r.value.offsetHeight/2,e),c=Math.round((e-r.value.offsetHeight/2)/(o.height-r.value.offsetHeight)*360)}else{let e=s-o.left;e=Math.min(e,o.width-r.value.offsetWidth/2),e=Math.max(r.value.offsetWidth/2,e),c=Math.round((e-r.value.offsetWidth/2)/(o.width-r.value.offsetWidth)*360)}e.color.set("hue",c)}function h(){if(!r.value)return 0;const t=n.vnode.el;if(e.vertical)return 0;const a=e.color.get("hue");return t?Math.round(a*(t.offsetWidth-r.value.offsetWidth/2)/360):0}function p(){if(!r.value)return 0;const t=n.vnode.el;if(!e.vertical)return 0;const a=e.color.get("hue");return t?Math.round(a*(t.offsetHeight-r.value.offsetHeight/2)/360):0}function f(){i.value=h(),o.value=p()}return(0,s.wB)((()=>c.value),(()=>{f()})),(0,s.sV)((()=>{if(!a.value||!r.value)return;const e={drag:e=>{d(e)},end:e=>{d(e)}};Sl(a.value,e),Sl(r.value,e),f()})),{bar:a,thumb:r,thumbLeft:i,thumbTop:o,hueValue:c,handleClick:u,update:f,ns:t}}});function Pl(e,t,n,r,a,i){return(0,s.uX)(),(0,s.CE)("div",{class:(0,c.C4)([e.ns.b(),e.ns.is("vertical",e.vertical)])},[(0,s.Lk)("div",{ref:"bar",class:(0,c.C4)(e.ns.e("bar")),onClick:e.handleClick},null,10,["onClick"]),(0,s.Lk)("div",{ref:"thumb",class:(0,c.C4)(e.ns.e("thumb")),style:(0,c.Tr)({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}var zl=(0,g.A)($l,[["render",Pl],["__file","hue-slider.vue"]]);const Wl=(0,h.b_)({modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:ao.mU,popperClass:{type:String,default:""},tabindex:{type:[String,Number],default:0},teleported:Dn.teleported,predefine:{type:(0,h.jq)(Array)},validateEvent:{type:Boolean,default:!0},...(0,oe.l)(["ariaLabel"])}),jl={[d.l4]:e=>(0,c.Kg)(e)||(0,er.A)(e),[d.YU]:e=>(0,c.Kg)(e)||(0,er.A)(e),activeChange:e=>(0,c.Kg)(e)||(0,er.A)(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},Vl=Symbol("colorPickerContextKey"),Ul=function(e,t,n){return[e,t*n/((e=(2-t)*n)<1?e:2-e)||0,e/2]},Kl=function(e){return(0,c.Kg)(e)&&e.includes(".")&&1===Number.parseFloat(e)},Hl=function(e){return(0,c.Kg)(e)&&e.includes("%")},ql=function(e,t){Kl(e)&&(e="100%");const n=Hl(e);return e=Math.min(t,Math.max(0,Number.parseFloat(`${e}`))),n&&(e=Number.parseInt(""+e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/Number.parseFloat(t)},Gl={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},Xl=e=>{e=Math.min(Math.round(e),255);const t=Math.floor(e/16),n=e%16;return`${Gl[t]||t}${Gl[n]||n}`},Yl=function({r:e,g:t,b:n}){return Number.isNaN(+e)||Number.isNaN(+t)||Number.isNaN(+n)?"":`#${Xl(e)}${Xl(t)}${Xl(n)}`},Ql={A:10,B:11,C:12,D:13,E:14,F:15},Zl=function(e){return 2===e.length?16*(Ql[e[0].toUpperCase()]||+e[0])+(Ql[e[1].toUpperCase()]||+e[1]):Ql[e[1].toUpperCase()]||+e[1]},Jl=function(e,t,n){t/=100,n/=100;let r=t;const a=Math.max(n,.01);n*=2,t*=n<=1?n:2-n,r*=a<=1?a:2-a;const i=(n+t)/2,o=0===n?2*r/(a+r):2*t/(n+t);return{h:e,s:100*o,v:100*i}},ec=(e,t,n)=>{e=ql(e,255),t=ql(t,255),n=ql(n,255);const r=Math.max(e,t,n),a=Math.min(e,t,n);let i;const o=r,s=r-a,l=0===r?0:s/r;if(r===a)i=0;else{switch(r){case e:i=(t-n)/s+(t<n?6:0);break;case t:i=(n-e)/s+2;break;case n:i=(e-t)/s+4;break}i/=6}return{h:360*i,s:100*l,v:100*o}},tc=function(e,t,n){e=6*ql(e,360),t=ql(t,100),n=ql(n,100);const r=Math.floor(e),a=e-r,i=n*(1-t),o=n*(1-a*t),s=n*(1-(1-a)*t),l=r%6,c=[n,o,i,i,s,n][l],u=[s,n,n,o,i,i][l],d=[i,i,s,n,n,o][l];return{r:Math.round(255*c),g:Math.round(255*u),b:Math.round(255*d)}};class nc{constructor(e={}){this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this.enableAlpha=!1,this.format="hex",this.value="";for(const t in e)(0,c.$3)(e,t)&&(this[t]=e[t]);e.value?this.fromString(e.value):this.doOnChange()}set(e,t){if(1!==arguments.length||"object"!==typeof e)this[`_${e}`]=t,this.doOnChange();else for(const n in e)(0,c.$3)(e,n)&&this.set(n,e[n])}get(e){return"alpha"===e?Math.floor(this[`_${e}`]):this[`_${e}`]}toRgb(){return tc(this._hue,this._saturation,this._value)}fromString(e){if(!e)return this._hue=0,this._saturation=100,this._value=100,void this.doOnChange();const t=(e,t,n)=>{this._hue=Math.max(0,Math.min(360,e)),this._saturation=Math.max(0,Math.min(100,t)),this._value=Math.max(0,Math.min(100,n)),this.doOnChange()};if(e.includes("hsl")){const n=e.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter((e=>""!==e)).map(((e,t)=>t>2?Number.parseFloat(e):Number.parseInt(e,10)));if(4===n.length?this._alpha=100*Number.parseFloat(n[3]):3===n.length&&(this._alpha=100),n.length>=3){const{h:e,s:r,v:a}=Jl(n[0],n[1],n[2]);t(e,r,a)}}else if(e.includes("hsv")){const n=e.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter((e=>""!==e)).map(((e,t)=>t>2?Number.parseFloat(e):Number.parseInt(e,10)));4===n.length?this._alpha=100*Number.parseFloat(n[3]):3===n.length&&(this._alpha=100),n.length>=3&&t(n[0],n[1],n[2])}else if(e.includes("rgb")){const n=e.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter((e=>""!==e)).map(((e,t)=>t>2?Number.parseFloat(e):Number.parseInt(e,10)));if(4===n.length?this._alpha=100*Number.parseFloat(n[3]):3===n.length&&(this._alpha=100),n.length>=3){const{h:e,s:r,v:a}=ec(n[0],n[1],n[2]);t(e,r,a)}}else if(e.includes("#")){const n=e.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(n))return;let r,a,i;3===n.length?(r=Zl(n[0]+n[0]),a=Zl(n[1]+n[1]),i=Zl(n[2]+n[2])):6!==n.length&&8!==n.length||(r=Zl(n.slice(0,2)),a=Zl(n.slice(2,4)),i=Zl(n.slice(4,6))),8===n.length?this._alpha=Zl(n.slice(6))/255*100:3!==n.length&&6!==n.length||(this._alpha=100);const{h:o,s:s,v:l}=ec(r,a,i);t(o,s,l)}}compare(e){return Math.abs(e._hue-this._hue)<2&&Math.abs(e._saturation-this._saturation)<1&&Math.abs(e._value-this._value)<1&&Math.abs(e._alpha-this._alpha)<1}doOnChange(){const{_hue:e,_saturation:t,_value:n,_alpha:r,format:a}=this;if(this.enableAlpha)switch(a){case"hsl":{const r=Ul(e,t/100,n/100);this.value=`hsla(${e}, ${Math.round(100*r[1])}%, ${Math.round(100*r[2])}%, ${this.get("alpha")/100})`;break}case"hsv":this.value=`hsva(${e}, ${Math.round(t)}%, ${Math.round(n)}%, ${this.get("alpha")/100})`;break;case"hex":this.value=`${Yl(tc(e,t,n))}${Xl(255*r/100)}`;break;default:{const{r:r,g:a,b:i}=tc(e,t,n);this.value=`rgba(${r}, ${a}, ${i}, ${this.get("alpha")/100})`}}else switch(a){case"hsl":{const r=Ul(e,t/100,n/100);this.value=`hsl(${e}, ${Math.round(100*r[1])}%, ${Math.round(100*r[2])}%)`;break}case"hsv":this.value=`hsv(${e}, ${Math.round(t)}%, ${Math.round(n)}%)`;break;case"rgb":{const{r:r,g:a,b:i}=tc(e,t,n);this.value=`rgb(${r}, ${a}, ${i})`;break}default:this.value=Yl(tc(e,t,n))}}}const rc=(0,s.pM)({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0},enableAlpha:{type:Boolean,required:!0}},setup(e){const t=(0,v.DU)("color-predefine"),{currentColor:n}=(0,s.WQ)(Vl),r=(0,l.KR)(i(e.colors,e.color));function a(t){e.color.fromString(e.colors[t])}function i(t,n){return t.map((t=>{const r=new nc;return r.enableAlpha=e.enableAlpha,r.format="rgba",r.fromString(t),r.selected=r.value===n.value,r}))}return(0,s.wB)((()=>n.value),(e=>{const t=new nc;t.fromString(e),r.value.forEach((e=>{e.selected=t.compare(e)}))})),(0,s.nT)((()=>{r.value=i(e.colors,e.color)})),{rgbaColors:r,handleSelect:a,ns:t}}});function ac(e,t,n,r,a,i){return(0,s.uX)(),(0,s.CE)("div",{class:(0,c.C4)(e.ns.b())},[(0,s.Lk)("div",{class:(0,c.C4)(e.ns.e("colors"))},[((0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)(e.rgbaColors,((t,n)=>((0,s.uX)(),(0,s.CE)("div",{key:e.colors[n],class:(0,c.C4)([e.ns.e("color-selector"),e.ns.is("alpha",t._alpha<100),{selected:t.selected}]),onClick:t=>e.handleSelect(n)},[(0,s.Lk)("div",{style:(0,c.Tr)({backgroundColor:t.value})},null,4)],10,["onClick"])))),128))],2)],2)}var ic=(0,g.A)(rc,[["render",ac],["__file","predefine.vue"]]);const oc=(0,s.pM)({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(e){const t=(0,v.DU)("color-svpanel"),n=(0,s.nI)(),r=(0,l.KR)(0),a=(0,l.KR)(0),i=(0,l.KR)("hsl(0, 100%, 50%)"),o=(0,s.EW)((()=>{const t=e.color.get("hue"),n=e.color.get("value");return{hue:t,value:n}}));function c(){const t=e.color.get("saturation"),o=e.color.get("value"),s=n.vnode.el,{clientWidth:l,clientHeight:c}=s;a.value=t*l/100,r.value=(100-o)*c/100,i.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}function u(t){const i=n.vnode.el,o=i.getBoundingClientRect(),{clientX:s,clientY:l}=Ll(t);let c=s-o.left,u=l-o.top;c=Math.max(0,c),c=Math.min(c,o.width),u=Math.max(0,u),u=Math.min(u,o.height),a.value=c,r.value=u,e.color.set({saturation:c/o.width*100,value:100-u/o.height*100})}return(0,s.wB)((()=>o.value),(()=>{c()})),(0,s.sV)((()=>{Sl(n.vnode.el,{drag:e=>{u(e)},end:e=>{u(e)}}),c()})),{cursorTop:r,cursorLeft:a,background:i,colorValue:o,handleDrag:u,update:c,ns:t}}});function sc(e,t,n,r,a,i){return(0,s.uX)(),(0,s.CE)("div",{class:(0,c.C4)(e.ns.b()),style:(0,c.Tr)({backgroundColor:e.background})},[(0,s.Lk)("div",{class:(0,c.C4)(e.ns.e("white"))},null,2),(0,s.Lk)("div",{class:(0,c.C4)(e.ns.e("black"))},null,2),(0,s.Lk)("div",{class:(0,c.C4)(e.ns.e("cursor")),style:(0,c.Tr)({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},[(0,s.Lk)("div")],6)],6)}var lc=(0,g.A)(oc,[["render",sc],["__file","sv-panel.vue"]]),cc=n(1939);const uc=(0,s.pM)({name:"ElColorPicker"}),dc=(0,s.pM)({...uc,props:Wl,emits:jl,setup(e,{expose:t,emit:n}){const r=e,{t:a}=(0,La.Ym)(),i=(0,v.DU)("color"),{formItem:o}=(0,co.j)(),u=(0,ra.NV)(),h=(0,ra.CB)(),{inputId:p,isLabeledByFormItem:f}=(0,co.W)(r,{formItemContext:o}),m=(0,l.KR)(),g=(0,l.KR)(),y=(0,l.KR)(),b=(0,l.KR)(),x=(0,l.KR)(),k=(0,l.KR)(),{isFocused:_,handleFocus:C,handleBlur:E}=(0,cc.K)(x,{beforeFocus(){return h.value},beforeBlur(e){var t;return null==(t=b.value)?void 0:t.isFocusInsideContent(e)},afterBlur(){P(!1),V()}});let R=!0;const T=(0,l.Kh)(new nc({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue})),M=(0,l.KR)(!1),L=(0,l.KR)(!1),O=(0,l.KR)(""),I=(0,s.EW)((()=>r.modelValue||L.value?$(T,r.showAlpha):"transparent")),N=(0,s.EW)((()=>r.modelValue||L.value?T.value:"")),B=(0,s.EW)((()=>f.value?void 0:r.ariaLabel||a("el.colorpicker.defaultLabel"))),D=(0,s.EW)((()=>f.value?null==o?void 0:o.labelId:void 0)),F=(0,s.EW)((()=>[i.b("picker"),i.is("disabled",h.value),i.bm("picker",u.value),i.is("focused",_.value)]));function $(e,t){if(!(e instanceof nc))throw new TypeError("color should be instance of _color Class");const{r:n,g:r,b:a}=e.toRgb();return t?`rgba(${n}, ${r}, ${a}, ${e.get("alpha")/100})`:`rgb(${n}, ${r}, ${a})`}function P(e){M.value=e}const z=K(P,100,{leading:!0});function W(){h.value||P(!0)}function j(){z(!1),V()}function V(){(0,s.dY)((()=>{r.modelValue?T.fromString(r.modelValue):(T.value="",(0,s.dY)((()=>{L.value=!1})))}))}function U(){h.value||(M.value&&V(),z(!M.value))}function G(){T.fromString(O.value)}function X(){const e=T.value;n(d.l4,e),n("change",e),r.validateEvent&&(null==o||o.validate("change").catch((e=>(0,w.U)(e)))),z(!1),(0,s.dY)((()=>{const e=new nc({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue});T.compare(e)||V()}))}function Y(){z(!1),n(d.l4,null),n("change",null),null!==r.modelValue&&r.validateEvent&&(null==o||o.validate("change").catch((e=>(0,w.U)(e)))),V()}function Q(){M.value&&(j(),_.value&&ee())}function Z(e){e.preventDefault(),e.stopPropagation(),P(!1),V()}function J(e){switch(e.code){case $n.R.enter:case $n.R.numpadEnter:case $n.R.space:e.preventDefault(),e.stopPropagation(),W(),k.value.focus();break;case $n.R.esc:Z(e);break}}function ee(){x.value.focus()}function te(){x.value.blur()}return(0,s.sV)((()=>{r.modelValue&&(O.value=N.value)})),(0,s.wB)((()=>r.modelValue),(e=>{e?e&&e!==T.value&&(R=!1,T.fromString(e)):L.value=!1})),(0,s.wB)((()=>[r.colorFormat,r.showAlpha]),(()=>{T.enableAlpha=r.showAlpha,T.format=r.colorFormat||T.format,T.doOnChange(),n(d.l4,T.value)})),(0,s.wB)((()=>N.value),(e=>{O.value=e,R&&n("activeChange",e),R=!0})),(0,s.wB)((()=>T.value),(()=>{r.modelValue||L.value||(L.value=!0)})),(0,s.wB)((()=>M.value),(()=>{(0,s.dY)((()=>{var e,t,n;null==(e=m.value)||e.update(),null==(t=g.value)||t.update(),null==(n=y.value)||n.update()}))})),(0,s.Gt)(Vl,{currentColor:N}),t({color:T,show:W,hide:j,focus:ee,blur:te}),(e,t)=>((0,s.uX)(),(0,s.Wv)((0,l.R1)(Jr),{ref_key:"popper",ref:b,visible:M.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[(0,l.R1)(i).be("picker","panel"),(0,l.R1)(i).b("dropdown"),e.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",teleported:e.teleported,transition:`${(0,l.R1)(i).namespace.value}-zoom-in-top`,persistent:"",onHide:e=>P(!1)},{content:(0,s.k6)((()=>[(0,s.bo)(((0,s.uX)(),(0,s.CE)("div",{onKeydown:(0,S.jR)(Z,["esc"])},[(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(i).be("dropdown","main-wrapper"))},[(0,s.bF)(zl,{ref_key:"hue",ref:m,class:"hue-slider",color:(0,l.R1)(T),vertical:""},null,8,["color"]),(0,s.bF)(lc,{ref_key:"sv",ref:g,color:(0,l.R1)(T)},null,8,["color"])],2),e.showAlpha?((0,s.uX)(),(0,s.Wv)(Fl,{key:0,ref_key:"alpha",ref:y,color:(0,l.R1)(T)},null,8,["color"])):(0,s.Q3)("v-if",!0),e.predefine?((0,s.uX)(),(0,s.Wv)(ic,{key:1,ref:"predefine","enable-alpha":e.showAlpha,color:(0,l.R1)(T),colors:e.predefine},null,8,["enable-alpha","color","colors"])):(0,s.Q3)("v-if",!0),(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(i).be("dropdown","btns"))},[(0,s.Lk)("span",{class:(0,c.C4)((0,l.R1)(i).be("dropdown","value"))},[(0,s.bF)((0,l.R1)(q.WK),{ref_key:"inputRef",ref:k,modelValue:O.value,"onUpdate:modelValue":e=>O.value=e,"validate-event":!1,size:"small",onKeyup:(0,S.jR)(G,["enter"]),onBlur:G},null,8,["modelValue","onUpdate:modelValue","onKeyup"])],2),(0,s.bF)((0,l.R1)(Wa.S2),{class:(0,c.C4)((0,l.R1)(i).be("dropdown","link-btn")),text:"",size:"small",onClick:Y},{default:(0,s.k6)((()=>[(0,s.eW)((0,c.v_)((0,l.R1)(a)("el.colorpicker.clear")),1)])),_:1},8,["class"]),(0,s.bF)((0,l.R1)(Wa.S2),{plain:"",size:"small",class:(0,c.C4)((0,l.R1)(i).be("dropdown","btn")),onClick:X},{default:(0,s.k6)((()=>[(0,s.eW)((0,c.v_)((0,l.R1)(a)("el.colorpicker.confirm")),1)])),_:1},8,["class"])],2)],40,["onKeydown"])),[[(0,l.R1)(Bs),Q,x.value]])])),default:(0,s.k6)((()=>[(0,s.Lk)("div",(0,s.v6)({id:(0,l.R1)(p),ref_key:"triggerRef",ref:x},e.$attrs,{class:(0,l.R1)(F),role:"button","aria-label":(0,l.R1)(B),"aria-labelledby":(0,l.R1)(D),"aria-description":(0,l.R1)(a)("el.colorpicker.description",{color:e.modelValue||""}),"aria-disabled":(0,l.R1)(h),tabindex:(0,l.R1)(h)?-1:e.tabindex,onKeydown:J,onFocus:(0,l.R1)(C),onBlur:(0,l.R1)(E)}),[(0,l.R1)(h)?((0,s.uX)(),(0,s.CE)("div",{key:0,class:(0,c.C4)((0,l.R1)(i).be("picker","mask"))},null,2)):(0,s.Q3)("v-if",!0),(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(i).be("picker","trigger")),onClick:U},[(0,s.Lk)("span",{class:(0,c.C4)([(0,l.R1)(i).be("picker","color"),(0,l.R1)(i).is("alpha",e.showAlpha)])},[(0,s.Lk)("span",{class:(0,c.C4)((0,l.R1)(i).be("picker","color-inner")),style:(0,c.Tr)({backgroundColor:(0,l.R1)(I)})},[(0,s.bo)((0,s.bF)((0,l.R1)(A.tk),{class:(0,c.C4)([(0,l.R1)(i).be("picker","icon"),(0,l.R1)(i).is("icon-arrow-down")])},{default:(0,s.k6)((()=>[(0,s.bF)((0,l.R1)(H.yd$))])),_:1},8,["class"]),[[S.aG,e.modelValue||L.value]]),(0,s.bo)((0,s.bF)((0,l.R1)(A.tk),{class:(0,c.C4)([(0,l.R1)(i).be("picker","empty"),(0,l.R1)(i).is("icon-close")])},{default:(0,s.k6)((()=>[(0,s.bF)((0,l.R1)(H.bm))])),_:1},8,["class"]),[[S.aG,!e.modelValue&&!L.value]])],6)],2)],2)],16,["id","aria-label","aria-labelledby","aria-description","aria-disabled","tabindex","onFocus","onBlur"])])),_:1},8,["visible","popper-class","teleported","transition","onHide"]))}});var hc=(0,g.A)(dc,[["__file","color-picker.vue"]]);const pc=(0,E.GU)(hc),fc=(0,h.b_)({a11y:{type:Boolean,default:!0},locale:{type:(0,h.jq)(Object)},size:ao.mU,button:{type:(0,h.jq)(Object)},experimentalFeatures:{type:(0,h.jq)(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:(0,h.jq)(Object)},zIndex:Number,namespace:{type:String,default:"el"},...Ms.bs}),mc={},gc=(0,s.pM)({name:"ElConfigProvider",props:fc,setup(e,{slots:t}){(0,s.wB)((()=>e.message),(e=>{Object.assign(mc,null!=e?e:{})}),{immediate:!0,deep:!0});const n=(0,i.Vh)(e);return()=>(0,s.RG)(t,"default",{config:null==n?void 0:n.value})}}),vc=(0,E.GU)(gc),yc=(0,s.pM)({name:"ElContainer"}),bc=(0,s.pM)({...yc,props:{direction:{type:String}},setup(e){const t=e,n=(0,s.Ht)(),r=(0,v.DU)("container"),a=(0,s.EW)((()=>{if("vertical"===t.direction)return!0;if("horizontal"===t.direction)return!1;if(n&&n.default){const e=n.default();return e.some((e=>{const t=e.type.name;return"ElHeader"===t||"ElFooter"===t}))}return!1}));return(e,t)=>((0,s.uX)(),(0,s.CE)("section",{class:(0,c.C4)([(0,l.R1)(r).b(),(0,l.R1)(r).is("vertical",(0,l.R1)(a))])},[(0,s.RG)(e.$slots,"default")],2))}});var wc=(0,g.A)(bc,[["__file","container.vue"]]);const xc=(0,s.pM)({name:"ElAside"}),kc=(0,s.pM)({...xc,props:{width:{type:String,default:null}},setup(e){const t=e,n=(0,v.DU)("aside"),r=(0,s.EW)((()=>t.width?n.cssVarBlock({width:t.width}):{}));return(e,t)=>((0,s.uX)(),(0,s.CE)("aside",{class:(0,c.C4)((0,l.R1)(n).b()),style:(0,c.Tr)((0,l.R1)(r))},[(0,s.RG)(e.$slots,"default")],6))}});var _c=(0,g.A)(kc,[["__file","aside.vue"]]);const Cc=(0,s.pM)({name:"ElFooter"}),Ec=(0,s.pM)({...Cc,props:{height:{type:String,default:null}},setup(e){const t=e,n=(0,v.DU)("footer"),r=(0,s.EW)((()=>t.height?n.cssVarBlock({height:t.height}):{}));return(e,t)=>((0,s.uX)(),(0,s.CE)("footer",{class:(0,c.C4)((0,l.R1)(n).b()),style:(0,c.Tr)((0,l.R1)(r))},[(0,s.RG)(e.$slots,"default")],6))}});var Rc=(0,g.A)(Ec,[["__file","footer.vue"]]);const Sc=(0,s.pM)({name:"ElHeader"}),Ac=(0,s.pM)({...Sc,props:{height:{type:String,default:null}},setup(e){const t=e,n=(0,v.DU)("header"),r=(0,s.EW)((()=>t.height?n.cssVarBlock({height:t.height}):{}));return(e,t)=>((0,s.uX)(),(0,s.CE)("header",{class:(0,c.C4)((0,l.R1)(n).b()),style:(0,c.Tr)((0,l.R1)(r))},[(0,s.RG)(e.$slots,"default")],6))}});var Tc=(0,g.A)(Ac,[["__file","header.vue"]]);const Mc=(0,s.pM)({name:"ElMain"}),Lc=(0,s.pM)({...Mc,setup(e){const t=(0,v.DU)("main");return(e,n)=>((0,s.uX)(),(0,s.CE)("main",{class:(0,c.C4)((0,l.R1)(t).b())},[(0,s.RG)(e.$slots,"default")],2))}});var Oc=(0,g.A)(Lc,[["__file","main.vue"]]);const Ic=(0,E.GU)(wc,{Aside:_c,Footer:Rc,Header:Tc,Main:Oc}),Nc=(0,E.WM)(_c),Bc=(0,E.WM)(Rc),Dc=(0,E.WM)(Tc),Fc=(0,E.WM)(Oc);var $c=n(6110),Pc=n(4642),zc=n(7515),Wc=n(5806),jc=n(3569),Vc=n(8083),Uc=n(2899);const Kc=Symbol(),Hc=(0,h.b_)({disabledHours:{type:(0,h.jq)(Function)},disabledMinutes:{type:(0,h.jq)(Function)},disabledSeconds:{type:(0,h.jq)(Function)}}),qc=(0,h.b_)({visible:Boolean,actualVisible:{type:Boolean,default:void 0},format:{type:String,default:""}}),Gc=(0,h.b_)({id:{type:(0,h.jq)([Array,String])},name:{type:(0,h.jq)([Array,String])},popperClass:{type:String,default:""},format:String,valueFormat:String,dateFormat:String,timeFormat:String,type:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:(0,h.jq)([String,Object]),default:H.R$5},editable:{type:Boolean,default:!0},prefixIcon:{type:(0,h.jq)([String,Object]),default:""},size:ao.mU,readonly:Boolean,disabled:Boolean,placeholder:{type:String,default:""},popperOptions:{type:(0,h.jq)(Object),default:()=>({})},modelValue:{type:(0,h.jq)([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:(0,h.jq)([Date,Array])},defaultTime:{type:(0,h.jq)([Date,Array])},isRange:Boolean,...Hc,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:Boolean,tabindex:{type:(0,h.jq)([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean,placement:{type:(0,h.jq)(String),values:Pe,default:"bottom"},fallbackPlacements:{type:(0,h.jq)(Array),default:["bottom","top","right","left"]},...Ms.bs,...(0,oe.l)(["ariaLabel"]),showNow:{type:Boolean,default:!0}}),Xc=(0,h.b_)({id:{type:(0,h.jq)(Array)},name:{type:(0,h.jq)(Array)},modelValue:{type:(0,h.jq)([Array,String])},startPlaceholder:String,endPlaceholder:String}),Yc=(0,h.b_)({...Gc,type:{type:(0,h.jq)(String),default:"date"}}),Qc=["date","dates","year","years","month","months","week","range"],Zc=(0,h.b_)({disabledDate:{type:(0,h.jq)(Function)},date:{type:(0,h.jq)(Object),required:!0},minDate:{type:(0,h.jq)(Object)},maxDate:{type:(0,h.jq)(Object)},parsedValue:{type:(0,h.jq)([Object,Array])},rangeState:{type:(0,h.jq)(Object),default:()=>({endDate:null,selecting:!1})}}),Jc=(0,h.b_)({type:{type:(0,h.jq)(String),required:!0,values:ii},dateFormat:String,timeFormat:String,showNow:{type:Boolean,default:!0}}),eu=(0,h.b_)({unlinkPanels:Boolean,parsedValue:{type:(0,h.jq)(Array)}}),tu=e=>({type:String,values:Qc,default:e}),nu=(0,h.b_)({...Jc,parsedValue:{type:(0,h.jq)([Object,Array])},visible:{type:Boolean},format:{type:String,default:""}}),ru=e=>{if(!(0,c.cy)(e))return!1;const[t,n]=e;return ja.isDayjs(t)&&ja.isDayjs(n)&&t.isSameOrBefore(n)},au=(e,{lang:t,unit:n,unlinkPanels:r})=>{let a;if((0,c.cy)(e)){let[a,i]=e.map((e=>ja(e).locale(t)));return r||(i=a.add(1,n)),[a,i]}return a=e?ja(e):ja(),a=a.locale(t),[a,a.add(1,n)]},iu=(e,t,{columnIndexOffset:n,startDate:r,nextEndDate:a,now:i,unit:o,relativeDateGetter:s,setCellMetadata:l,setRowMetadata:c})=>{for(let u=0;u<e.row;u++){const d=t[u];for(let t=0;t<e.column;t++){let c=d[t+n];c||(c={row:u,column:t,type:"normal",inRange:!1,start:!1,end:!1});const h=u*e.column+t,p=s(h);c.dayjs=p,c.date=p.toDate(),c.timestamp=p.valueOf(),c.type="normal",c.inRange=!!(r&&p.isSameOrAfter(r,o)&&a&&p.isSameOrBefore(a,o))||!!(r&&p.isSameOrBefore(r,o)&&a&&p.isSameOrAfter(a,o)),(null==r?void 0:r.isSameOrAfter(a))?(c.start=!!a&&p.isSame(a,o),c.end=r&&p.isSame(r,o)):(c.start=!!r&&p.isSame(r,o),c.end=!!a&&p.isSame(a,o));const f=p.isSame(i,o);f&&(c.type="today"),null==l||l(c,{rowIndex:u,columnIndex:t}),d[t+n]=c}null==c||c(d)}},ou=(e,t,n)=>{const r=ja().locale(n).startOf("month").month(t).year(e),a=r.daysInMonth();return Ua(a).map((e=>r.add(e,"day").toDate()))},su=(e,t,n,r)=>{const a=ja().year(e).month(t).startOf("month"),i=ou(e,t,n).find((e=>!(null==r?void 0:r(e))));return i?ja(i).locale(n):a.locale(n)},lu=(e,t,n)=>{const r=e.year();if(!(null==n?void 0:n(e.toDate())))return e.locale(t);const a=e.month();if(!ou(r,a,t).every(n))return su(r,a,t,n);for(let i=0;i<12;i++)if(!ou(r,i,t).every(n))return su(r,i,t,n);return e},cu=(0,h.b_)({...Zc,cellClassName:{type:(0,h.jq)(Function)},showWeekNumber:Boolean,selectionMode:tu("date")}),uu=["changerange","pick","select"];var du=n(5101);const hu=(e="")=>["normal","today"].includes(e),pu=(e,t)=>{const{lang:n}=(0,La.Ym)(),r=(0,l.KR)(),a=(0,l.KR)(),i=(0,l.KR)(),o=(0,l.KR)(),u=(0,l.KR)([[],[],[],[],[],[]]);let d=!1;const h=e.date.$locale().weekStart||7,p=e.date.locale("en").localeData().weekdaysShort().map((e=>e.toLowerCase())),f=(0,s.EW)((()=>h>3?7-h:-h)),m=(0,s.EW)((()=>{const t=e.date.startOf("month");return t.subtract(t.day()||7,"day")})),g=(0,s.EW)((()=>p.concat(p).slice(h,h+7))),v=(0,s.EW)((()=>(0,du.A)((0,l.R1)(_)).some((e=>e.isCurrent)))),y=(0,s.EW)((()=>{const t=e.date.startOf("month"),n=t.day()||7,r=t.daysInMonth(),a=t.subtract(1,"month").daysInMonth();return{startOfMonthDay:n,dateCountOfMonth:r,dateCountOfLastMonth:a}})),b=(0,s.EW)((()=>"dates"===e.selectionMode?bs(e.parsedValue):[])),w=(e,{count:t,rowIndex:n,columnIndex:r})=>{const{startOfMonthDay:a,dateCountOfMonth:i,dateCountOfLastMonth:o}=(0,l.R1)(y),s=(0,l.R1)(f);if(!(n>=0&&n<=1))return t<=i?e.text=t:(e.text=t-i,e.type="next-month"),!0;{const i=a+s<0?7+a+s:a+s;if(r+7*n>=i)return e.text=t,!0;e.text=o-(i-r%7)+1+7*n,e.type="prev-month"}return!1},x=(t,{columnIndex:n,rowIndex:r},a)=>{const{disabledDate:i,cellClassName:o}=e,s=(0,l.R1)(b),c=w(t,{count:a,rowIndex:r,columnIndex:n}),u=t.dayjs.toDate();return t.selected=s.find((e=>e.isSame(t.dayjs,"day"))),t.isSelected=!!t.selected,t.isCurrent=E(t),t.disabled=null==i?void 0:i(u),t.customClass=null==o?void 0:o(u),c},k=t=>{if("week"===e.selectionMode){const[n,r]=e.showWeekNumber?[1,7]:[0,6],a=F(t[n+1]);t[n].inRange=a,t[n].start=a,t[r].inRange=a,t[r].end=a}},_=(0,s.EW)((()=>{const{minDate:t,maxDate:r,rangeState:a,showWeekNumber:i}=e,o=(0,l.R1)(f),s=(0,l.R1)(u),c="day";let d=1;if(i)for(let e=0;e<6;e++)s[e][0]||(s[e][0]={type:"week",text:(0,l.R1)(m).add(7*e+1,c).week()});return iu({row:6,column:7},s,{startDate:t,columnIndexOffset:i?1:0,nextEndDate:a.endDate||r||a.selecting&&t||null,now:ja().locale((0,l.R1)(n)).startOf(c),unit:c,relativeDateGetter:e=>(0,l.R1)(m).add(e-o,c),setCellMetadata:(...e)=>{x(...e,d)&&(d+=1)},setRowMetadata:k}),s}));(0,s.wB)((()=>e.date),(async()=>{var e;(null==(e=(0,l.R1)(r))?void 0:e.contains(document.activeElement))&&(await(0,s.dY)(),await C())}));const C=async()=>{var e;return null==(e=(0,l.R1)(a))?void 0:e.focus()},E=t=>"date"===e.selectionMode&&hu(t.type)&&R(t,e.parsedValue),R=(t,r)=>!!r&&ja(r).locale((0,l.R1)(n)).isSame(e.date.date(Number(t.text)),"day"),S=(t,n)=>{const r=7*t+(n-(e.showWeekNumber?1:0))-(0,l.R1)(f);return(0,l.R1)(m).add(r,"day")},A=n=>{var r;if(!e.rangeState.selecting)return;let a=n.target;if("SPAN"===a.tagName&&(a=null==(r=a.parentNode)?void 0:r.parentNode),"DIV"===a.tagName&&(a=a.parentNode),"TD"!==a.tagName)return;const s=a.parentNode.rowIndex-1,c=a.cellIndex;(0,l.R1)(_)[s][c].disabled||s===(0,l.R1)(i)&&c===(0,l.R1)(o)||(i.value=s,o.value=c,t("changerange",{selecting:!0,endDate:S(s,c)}))},T=e=>!(0,l.R1)(v)&&1===(null==e?void 0:e.text)&&"normal"===e.type||e.isCurrent,M=t=>{d||(0,l.R1)(v)||"date"!==e.selectionMode||D(t,!0)},L=e=>{const t=e.target.closest("td");t&&(d=!0)},O=e=>{const t=e.target.closest("td");t&&(d=!1)},I=n=>{e.rangeState.selecting&&e.minDate?(n>=e.minDate?t("pick",{minDate:e.minDate,maxDate:n}):t("pick",{minDate:n,maxDate:e.minDate}),t("select",!1)):(t("pick",{minDate:n,maxDate:null}),t("select",!0))},N=e=>{const n=e.week(),r=`${e.year()}w${n}`;t("pick",{year:e.year(),week:n,value:r,date:e.startOf("week")})},B=(n,r)=>{const a=r?bs(e.parsedValue).filter((e=>(null==e?void 0:e.valueOf())!==n.valueOf())):bs(e.parsedValue).concat([n]);t("pick",a)},D=(n,r=!1)=>{const a=n.target.closest("td");if(!a)return;const i=a.parentNode.rowIndex-1,o=a.cellIndex,s=(0,l.R1)(_)[i][o];if(s.disabled||"week"===s.type)return;const c=S(i,o);switch(e.selectionMode){case"range":I(c);break;case"date":t("pick",c,r);break;case"week":N(c);break;case"dates":B(c,!!s.selected);break}},F=t=>{if("week"!==e.selectionMode)return!1;let n=e.date.startOf("day");if("prev-month"===t.type&&(n=n.subtract(1,"month")),"next-month"===t.type&&(n=n.add(1,"month")),n=n.date(Number.parseInt(t.text,10)),e.parsedValue&&!(0,c.cy)(e.parsedValue)){const t=(e.parsedValue.day()-h+7)%7-1,r=e.parsedValue.subtract(t,"day");return r.isSame(n,"day")}return!1};return{WEEKS:g,rows:_,tbodyRef:r,currentCellRef:a,focus:C,isCurrent:E,isWeekActive:F,isSelectedCell:T,handlePickDate:D,handleMouseUp:O,handleMouseDown:L,handleMouseMove:A,handleFocus:M}},fu=(e,{isCurrent:t,isWeekActive:n})=>{const r=(0,v.DU)("date-table"),{t:a}=(0,La.Ym)(),i=(0,s.EW)((()=>[r.b(),{"is-week-mode":"week"===e.selectionMode}])),o=(0,s.EW)((()=>a("el.datepicker.dateTablePrompt"))),l=(0,s.EW)((()=>a("el.datepicker.week"))),c=n=>{const r=[];return hu(n.type)&&!n.disabled?(r.push("available"),"today"===n.type&&r.push("today")):r.push(n.type),t(n)&&r.push("current"),n.inRange&&(hu(n.type)||"week"===e.selectionMode)&&(r.push("in-range"),n.start&&r.push("start-date"),n.end&&r.push("end-date")),n.disabled&&r.push("disabled"),n.selected&&r.push("selected"),n.customClass&&r.push(n.customClass),r.join(" ")},u=e=>[r.e("row"),{current:n(e)}];return{tableKls:i,tableLabel:o,weekLabel:l,getCellClasses:c,getRowKls:u,t:a}},mu=(0,h.b_)({cell:{type:(0,h.jq)(Object)}});var gu=(0,s.pM)({name:"ElDatePickerCell",props:mu,setup(e){const t=(0,v.DU)("date-table-cell"),{slots:n}=(0,s.WQ)(Kc);return()=>{const{cell:r}=e;return(0,s.RG)(n,"default",{...r},(()=>{var e;return[(0,s.bF)("div",{class:t.b()},[(0,s.bF)("span",{class:t.e("text")},[null!=(e=null==r?void 0:r.renderText)?e:null==r?void 0:r.text])])]}))}}});const vu=(0,s.pM)({__name:"basic-date-table",props:cu,emits:uu,setup(e,{expose:t,emit:n}){const r=e,{WEEKS:a,rows:i,tbodyRef:o,currentCellRef:u,focus:d,isCurrent:h,isWeekActive:p,isSelectedCell:f,handlePickDate:m,handleMouseUp:g,handleMouseDown:v,handleMouseMove:y,handleFocus:b}=pu(r,n),{tableLabel:w,tableKls:x,weekLabel:k,getCellClasses:_,getRowKls:C,t:E}=fu(r,{isCurrent:h,isWeekActive:p});return t({focus:d}),(e,t)=>((0,s.uX)(),(0,s.CE)("table",{"aria-label":(0,l.R1)(w),class:(0,c.C4)((0,l.R1)(x)),cellspacing:"0",cellpadding:"0",role:"grid",onClick:(0,l.R1)(m),onMousemove:(0,l.R1)(y),onMousedown:(0,S.D$)((0,l.R1)(v),["prevent"]),onMouseup:(0,l.R1)(g)},[(0,s.Lk)("tbody",{ref_key:"tbodyRef",ref:o},[(0,s.Lk)("tr",null,[e.showWeekNumber?((0,s.uX)(),(0,s.CE)("th",{key:0,scope:"col"},(0,c.v_)((0,l.R1)(k)),1)):(0,s.Q3)("v-if",!0),((0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)((0,l.R1)(a),((e,t)=>((0,s.uX)(),(0,s.CE)("th",{key:t,"aria-label":(0,l.R1)(E)("el.datepicker.weeksFull."+e),scope:"col"},(0,c.v_)((0,l.R1)(E)("el.datepicker.weeks."+e)),9,["aria-label"])))),128))]),((0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)((0,l.R1)(i),((e,t)=>((0,s.uX)(),(0,s.CE)("tr",{key:t,class:(0,c.C4)((0,l.R1)(C)(e[1]))},[((0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)(e,((e,n)=>((0,s.uX)(),(0,s.CE)("td",{key:`${t}.${n}`,ref_for:!0,ref:t=>(0,l.R1)(f)(e)&&(u.value=t),class:(0,c.C4)((0,l.R1)(_)(e)),"aria-current":e.isCurrent?"date":void 0,"aria-selected":e.isCurrent,tabindex:(0,l.R1)(f)(e)?0:-1,onFocus:(0,l.R1)(b)},[(0,s.bF)((0,l.R1)(gu),{cell:e},null,8,["cell"])],42,["aria-current","aria-selected","tabindex","onFocus"])))),128))],2)))),128))],512)],42,["aria-label","onClick","onMousemove","onMousedown","onMouseup"]))}});var yu=(0,g.A)(vu,[["__file","basic-date-table.vue"]]);const bu=(0,h.b_)({...Zc,selectionMode:tu("month")}),wu=(0,s.pM)({__name:"basic-month-table",props:bu,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const r=e,a=(0,v.DU)("month-table"),{t:i,lang:o}=(0,La.Ym)(),u=(0,l.KR)(),d=(0,l.KR)(),h=(0,l.KR)(r.date.locale("en").localeData().monthsShort().map((e=>e.toLowerCase()))),p=(0,l.KR)([[],[],[]]),f=(0,l.KR)(),m=(0,l.KR)(),g=(0,s.EW)((()=>{var e,t;const n=p.value,a=ja().locale(o.value).startOf("month");for(let i=0;i<3;i++){const o=n[i];for(let n=0;n<4;n++){const s=o[n]||(o[n]={row:i,column:n,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1});s.type="normal";const l=4*i+n,c=r.date.startOf("year").month(l),u=r.rangeState.endDate||r.maxDate||r.rangeState.selecting&&r.minDate||null;s.inRange=!!(r.minDate&&c.isSameOrAfter(r.minDate,"month")&&u&&c.isSameOrBefore(u,"month"))||!!(r.minDate&&c.isSameOrBefore(r.minDate,"month")&&u&&c.isSameOrAfter(u,"month")),(null==(e=r.minDate)?void 0:e.isSameOrAfter(u))?(s.start=!(!u||!c.isSame(u,"month")),s.end=r.minDate&&c.isSame(r.minDate,"month")):(s.start=!(!r.minDate||!c.isSame(r.minDate,"month")),s.end=!(!u||!c.isSame(u,"month")));const d=a.isSame(c);d&&(s.type="today"),s.text=l,s.disabled=(null==(t=r.disabledDate)?void 0:t.call(r,c.toDate()))||!1}}return n})),y=()=>{var e;null==(e=d.value)||e.focus()},w=e=>{const t={},n=r.date.year(),a=new Date,i=e.text;return t.disabled=!!r.disabledDate&&ou(n,i,o.value).every(r.disabledDate),t.current=bs(r.parsedValue).findIndex((e=>ja.isDayjs(e)&&e.year()===n&&e.month()===i))>=0,t.today=a.getFullYear()===n&&a.getMonth()===i,e.inRange&&(t["in-range"]=!0,e.start&&(t["start-date"]=!0),e.end&&(t["end-date"]=!0)),t},x=e=>{const t=r.date.year(),n=e.text;return bs(r.date).findIndex((e=>e.year()===t&&e.month()===n))>=0},k=e=>{var t;if(!r.rangeState.selecting)return;let a=e.target;if("SPAN"===a.tagName&&(a=null==(t=a.parentNode)?void 0:t.parentNode),"DIV"===a.tagName&&(a=a.parentNode),"TD"!==a.tagName)return;const i=a.parentNode.rowIndex,o=a.cellIndex;g.value[i][o].disabled||i===f.value&&o===m.value||(f.value=i,m.value=o,n("changerange",{selecting:!0,endDate:r.date.startOf("year").month(4*i+o)}))},_=e=>{var t;const a=null==(t=e.target)?void 0:t.closest("td");if("TD"!==(null==a?void 0:a.tagName))return;if((0,b.nB)(a,"disabled"))return;const i=a.cellIndex,s=a.parentNode.rowIndex,l=4*s+i,c=r.date.startOf("year").month(l);if("months"===r.selectionMode){if("keydown"===e.type)return void n("pick",bs(r.parsedValue),!1);const t=su(r.date.year(),l,o.value,r.disabledDate),i=(0,b.nB)(a,"current")?bs(r.parsedValue).filter((e=>(null==e?void 0:e.month())!==t.month())):bs(r.parsedValue).concat([ja(t)]);n("pick",i)}else"range"===r.selectionMode?r.rangeState.selecting?(r.minDate&&c>=r.minDate?n("pick",{minDate:r.minDate,maxDate:c}):n("pick",{minDate:c,maxDate:r.minDate}),n("select",!1)):(n("pick",{minDate:c,maxDate:null}),n("select",!0)):n("pick",l)};return(0,s.wB)((()=>r.date),(async()=>{var e,t;(null==(e=u.value)?void 0:e.contains(document.activeElement))&&(await(0,s.dY)(),null==(t=d.value)||t.focus())})),t({focus:y}),(e,t)=>((0,s.uX)(),(0,s.CE)("table",{role:"grid","aria-label":(0,l.R1)(i)("el.datepicker.monthTablePrompt"),class:(0,c.C4)((0,l.R1)(a).b()),onClick:_,onMousemove:k},[(0,s.Lk)("tbody",{ref_key:"tbodyRef",ref:u},[((0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)((0,l.R1)(g),((e,t)=>((0,s.uX)(),(0,s.CE)("tr",{key:t},[((0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)(e,((e,t)=>((0,s.uX)(),(0,s.CE)("td",{key:t,ref_for:!0,ref:t=>x(e)&&(d.value=t),class:(0,c.C4)(w(e)),"aria-selected":`${x(e)}`,"aria-label":(0,l.R1)(i)("el.datepicker.month"+(+e.text+1)),tabindex:x(e)?0:-1,onKeydown:[(0,S.jR)((0,S.D$)(_,["prevent","stop"]),["space"]),(0,S.jR)((0,S.D$)(_,["prevent","stop"]),["enter"])]},[(0,s.bF)((0,l.R1)(gu),{cell:{...e,renderText:(0,l.R1)(i)("el.datepicker.months."+h.value[e.text])}},null,8,["cell"])],42,["aria-selected","aria-label","tabindex","onKeydown"])))),128))])))),128))],512)],42,["aria-label"]))}});var xu=(0,g.A)(wu,[["__file","basic-month-table.vue"]]);const ku=(0,h.b_)({...Zc,selectionMode:tu("year")}),_u=(0,s.pM)({__name:"basic-year-table",props:ku,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const r=e,a=(e,t)=>{const n=ja(String(e)).locale(t).startOf("year"),r=n.endOf("year"),a=r.dayOfYear();return Ua(a).map((e=>n.add(e,"day").toDate()))},i=(0,v.DU)("year-table"),{t:o,lang:u}=(0,La.Ym)(),d=(0,l.KR)(),h=(0,l.KR)(),p=(0,s.EW)((()=>10*Math.floor(r.date.year()/10))),f=(0,l.KR)([[],[],[]]),m=(0,l.KR)(),g=(0,l.KR)(),y=(0,s.EW)((()=>{var e;const t=f.value,n=ja().locale(u.value).startOf("year");for(let a=0;a<3;a++){const i=t[a];for(let t=0;t<4;t++){if(4*a+t>=10)break;let o=i[t];o||(o={row:a,column:t,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1}),o.type="normal";const s=4*a+t+p.value,l=ja().year(s),c=r.rangeState.endDate||r.maxDate||r.rangeState.selecting&&r.minDate||null;o.inRange=!!(r.minDate&&l.isSameOrAfter(r.minDate,"year")&&c&&l.isSameOrBefore(c,"year"))||!!(r.minDate&&l.isSameOrBefore(r.minDate,"year")&&c&&l.isSameOrAfter(c,"year")),(null==(e=r.minDate)?void 0:e.isSameOrAfter(c))?(o.start=!(!c||!l.isSame(c,"year")),o.end=!(!r.minDate||!l.isSame(r.minDate,"year"))):(o.start=!(!r.minDate||!l.isSame(r.minDate,"year")),o.end=!(!c||!l.isSame(c,"year")));const u=n.isSame(l);u&&(o.type="today"),o.text=s;const d=l.toDate();o.disabled=r.disabledDate&&r.disabledDate(d)||!1,i[t]=o}}return t})),w=()=>{var e;null==(e=h.value)||e.focus()},x=e=>{const t={},n=ja().locale(u.value),i=e.text;return t.disabled=!!r.disabledDate&&a(i,u.value).every(r.disabledDate),t.today=n.year()===i,t.current=bs(r.parsedValue).findIndex((e=>e.year()===i))>=0,e.inRange&&(t["in-range"]=!0,e.start&&(t["start-date"]=!0),e.end&&(t["end-date"]=!0)),t},k=e=>{const t=e.text;return bs(r.date).findIndex((e=>e.year()===t))>=0},_=e=>{var t;const a=null==(t=e.target)?void 0:t.closest("td");if(!a||!a.textContent||(0,b.nB)(a,"disabled"))return;const i=a.cellIndex,o=a.parentNode.rowIndex,s=4*o+i+p.value,l=ja().year(s);if("range"===r.selectionMode)r.rangeState.selecting?(r.minDate&&l>=r.minDate?n("pick",{minDate:r.minDate,maxDate:l}):n("pick",{minDate:l,maxDate:r.minDate}),n("select",!1)):(n("pick",{minDate:l,maxDate:null}),n("select",!0));else if("years"===r.selectionMode){if("keydown"===e.type)return void n("pick",bs(r.parsedValue),!1);const t=lu(l.startOf("year"),u.value,r.disabledDate),i=(0,b.nB)(a,"current")?bs(r.parsedValue).filter((e=>(null==e?void 0:e.year())!==s)):bs(r.parsedValue).concat([t]);n("pick",i)}else n("pick",s)},C=e=>{var t;if(!r.rangeState.selecting)return;const a=null==(t=e.target)?void 0:t.closest("td");if(!a)return;const i=a.parentNode.rowIndex,o=a.cellIndex;y.value[i][o].disabled||i===m.value&&o===g.value||(m.value=i,g.value=o,n("changerange",{selecting:!0,endDate:ja().year(p.value).add(4*i+o,"year")}))};return(0,s.wB)((()=>r.date),(async()=>{var e,t;(null==(e=d.value)?void 0:e.contains(document.activeElement))&&(await(0,s.dY)(),null==(t=h.value)||t.focus())})),t({focus:w}),(e,t)=>((0,s.uX)(),(0,s.CE)("table",{role:"grid","aria-label":(0,l.R1)(o)("el.datepicker.yearTablePrompt"),class:(0,c.C4)((0,l.R1)(i).b()),onClick:_,onMousemove:C},[(0,s.Lk)("tbody",{ref_key:"tbodyRef",ref:d},[((0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)((0,l.R1)(y),((e,t)=>((0,s.uX)(),(0,s.CE)("tr",{key:t},[((0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)(e,((e,n)=>((0,s.uX)(),(0,s.CE)("td",{key:`${t}_${n}`,ref_for:!0,ref:t=>k(e)&&(h.value=t),class:(0,c.C4)(["available",x(e)]),"aria-selected":k(e),"aria-label":String(e.text),tabindex:k(e)?0:-1,onKeydown:[(0,S.jR)((0,S.D$)(_,["prevent","stop"]),["space"]),(0,S.jR)((0,S.D$)(_,["prevent","stop"]),["enter"])]},[(0,s.bF)((0,l.R1)(gu),{cell:e},null,8,["cell"])],42,["aria-selected","aria-label","tabindex","onKeydown"])))),128))])))),128))],512)],42,["aria-label"]))}});var Cu=(0,g.A)(_u,[["__file","basic-year-table.vue"]]);const Eu=(0,h.b_)({...qc,datetimeRole:String,parsedValue:{type:(0,h.jq)(Object)}}),Ru=({getAvailableHours:e,getAvailableMinutes:t,getAvailableSeconds:n})=>{const r=(r,a,i,o)=>{const s={hour:e,minute:t,second:n};let l=r;return["hour","minute","second"].forEach((e=>{if(s[e]){let t;const n=s[e];switch(e){case"minute":t=n(l.hour(),a,o);break;case"second":t=n(l.hour(),l.minute(),a,o);break;default:t=n(a,o);break}if((null==t?void 0:t.length)&&!t.includes(l[e]())){const n=i?0:t.length-1;l=l[e](t[n])}}})),l},a={},i=([e,t])=>{a[e]=t};return{timePickerOptions:a,getAvailableTime:r,onSetOption:i}},Su=e=>{const t=(e,t)=>e||t,n=e=>!0!==e;return e.map(t).filter(n)},Au=(e,t,n)=>{const r=(t,n)=>Qa(24,e&&(()=>null==e?void 0:e(t,n))),a=(e,n,r)=>Qa(60,t&&(()=>null==t?void 0:t(e,n,r))),i=(e,t,r,a)=>Qa(60,n&&(()=>null==n?void 0:n(e,t,r,a)));return{getHoursList:r,getMinutesList:a,getSecondsList:i}},Tu=(e,t,n)=>{const{getHoursList:r,getMinutesList:a,getSecondsList:i}=Au(e,t,n),o=(e,t)=>Su(r(e,t)),s=(e,t,n)=>Su(a(e,t,n)),l=(e,t,n,r)=>Su(i(e,t,n,r));return{getAvailableHours:o,getAvailableMinutes:s,getAvailableSeconds:l}},Mu=e=>{const t=(0,l.KR)(e.parsedValue);return(0,s.wB)((()=>e.visible),(n=>{n||(t.value=e.parsedValue)})),t},Lu=["hours","minutes","seconds"],Ou="HH:mm:ss",Iu="YYYY-MM-DD",Nu={date:Iu,dates:Iu,week:"gggg[w]ww",year:"YYYY",years:"YYYY",month:"YYYY-MM",months:"YYYY-MM",datetime:`${Iu} ${Ou}`,monthrange:"YYYY-MM",yearrange:"YYYY",daterange:Iu,datetimerange:`${Iu} ${Ou}`},Bu=(0,h.b_)({role:{type:String,required:!0},spinnerDate:{type:(0,h.jq)(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:(0,h.jq)(String),default:""},...Hc}),Du=100,Fu=600,$u={beforeMount(e,t){const n=t.value,{interval:r=Du,delay:a=Fu}=(0,c.Tn)(n)?{}:n;let i,o;const s=()=>(0,c.Tn)(n)?n():n.handler(),l=()=>{o&&(clearTimeout(o),o=void 0),i&&(clearInterval(i),i=void 0)};e.addEventListener("mousedown",(e=>{0===e.button&&(l(),s(),document.addEventListener("mouseup",(()=>l()),{once:!0}),o=setTimeout((()=>{i=setInterval((()=>{s()}),r)}),a))}))}},Pu=(0,s.pM)({__name:"basic-time-spinner",props:Bu,emits:["change","select-range","set-option"],setup(e,{emit:t}){const n=e,r=(0,s.WQ)("EP_PICKER_BASE"),{isRange:a}=r.props,i=(0,v.DU)("time"),{getHoursList:o,getMinutesList:u,getSecondsList:d}=Au(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let h=!1;const f=(0,l.KR)(),m=(0,l.KR)(),g=(0,l.KR)(),y=(0,l.KR)(),w={hours:m,minutes:g,seconds:y},x=(0,s.EW)((()=>n.showSeconds?Lu:Lu.slice(0,2))),k=(0,s.EW)((()=>{const{spinnerDate:e}=n,t=e.hour(),r=e.minute(),a=e.second();return{hours:t,minutes:r,seconds:a}})),_=(0,s.EW)((()=>{const{hours:e,minutes:t}=(0,l.R1)(k),{role:r,spinnerDate:i}=n,s=a?void 0:i;return{hours:o(r,s),minutes:u(e,r,s),seconds:d(e,t,r,s)}})),C=(0,s.EW)((()=>{const{hours:e,minutes:t,seconds:n}=(0,l.R1)(k);return{hours:Va(e,23),minutes:Va(t,59),seconds:Va(n,59)}})),E=K((e=>{h=!1,T(e)}),200),R=e=>{const t=!!n.amPmMode;if(!t)return"";const r="A"===n.amPmMode;let a=e<12?" am":" pm";return r&&(a=a.toUpperCase()),a},S=e=>{let n;switch(e){case"hours":n=[0,2];break;case"minutes":n=[3,5];break;case"seconds":n=[6,8];break}const[r,a]=n;t("select-range",r,a),f.value=e},T=e=>{O(e,(0,l.R1)(k)[e])},M=()=>{T("hours"),T("minutes"),T("seconds")},L=e=>e.querySelector(`.${i.namespace.value}-scrollbar__wrap`),O=(e,t)=>{if(n.arrowControl)return;const r=(0,l.R1)(w[e]);r&&r.$el&&(L(r.$el).scrollTop=Math.max(0,t*I(e)))},I=e=>{const t=(0,l.R1)(w[e]),n=null==t?void 0:t.$el.querySelector("li");return n&&Number.parseFloat((0,b.gd)(n,"height"))||0},N=()=>{D(1)},B=()=>{D(-1)},D=e=>{f.value||S("hours");const t=f.value,n=(0,l.R1)(k)[t],r="hours"===f.value?24:60,a=F(t,n,e,r);$(t,a),O(t,a),(0,s.dY)((()=>S(t)))},F=(e,t,n,r)=>{let a=(t+n+r)%r;const i=(0,l.R1)(_)[e];while(i[a]&&a!==t)a=(a+n+r)%r;return a},$=(e,r)=>{const a=(0,l.R1)(_)[e],i=a[r];if(i)return;const{hours:o,minutes:s,seconds:c}=(0,l.R1)(k);let u;switch(e){case"hours":u=n.spinnerDate.hour(r).minute(s).second(c);break;case"minutes":u=n.spinnerDate.hour(o).minute(r).second(c);break;case"seconds":u=n.spinnerDate.hour(o).minute(s).second(r);break}t("change",u)},P=(e,{value:t,disabled:n})=>{n||($(e,t),S(e),O(e,t))},z=e=>{const t=(0,l.R1)(w[e]);if(!t)return;h=!0,E(e);const n=Math.min(Math.round((L(t.$el).scrollTop-(.5*W(e)-10)/I(e)+3)/I(e)),"hours"===e?23:59);$(e,n)},W=e=>(0,l.R1)(w[e]).$el.offsetHeight,j=()=>{const e=e=>{const t=(0,l.R1)(w[e]);t&&t.$el&&(L(t.$el).onscroll=()=>{z(e)})};e("hours"),e("minutes"),e("seconds")};(0,s.sV)((()=>{(0,s.dY)((()=>{!n.arrowControl&&j(),M(),"start"===n.role&&S("hours")}))}));const V=(e,t)=>{w[t].value=null!=e?e:void 0};return t("set-option",[`${n.role}_scrollDown`,D]),t("set-option",[`${n.role}_emitSelectRange`,S]),(0,s.wB)((()=>n.spinnerDate),(()=>{h||M()})),(e,t)=>((0,s.uX)(),(0,s.CE)("div",{class:(0,c.C4)([(0,l.R1)(i).b("spinner"),{"has-seconds":e.showSeconds}])},[e.arrowControl?(0,s.Q3)("v-if",!0):((0,s.uX)(!0),(0,s.CE)(s.FK,{key:0},(0,s.pI)((0,l.R1)(x),(t=>((0,s.uX)(),(0,s.Wv)((0,l.R1)(pe),{key:t,ref_for:!0,ref:e=>V(e,t),class:(0,c.C4)((0,l.R1)(i).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":(0,l.R1)(i).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:e=>S(t),onMousemove:e=>T(t)},{default:(0,s.k6)((()=>[((0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)((0,l.R1)(_)[t],((n,r)=>((0,s.uX)(),(0,s.CE)("li",{key:r,class:(0,c.C4)([(0,l.R1)(i).be("spinner","item"),(0,l.R1)(i).is("active",r===(0,l.R1)(k)[t]),(0,l.R1)(i).is("disabled",n)]),onClick:e=>P(t,{value:r,disabled:n})},["hours"===t?((0,s.uX)(),(0,s.CE)(s.FK,{key:0},[(0,s.eW)((0,c.v_)(("0"+(e.amPmMode?r%12||12:r)).slice(-2))+(0,c.v_)(R(r)),1)],64)):((0,s.uX)(),(0,s.CE)(s.FK,{key:1},[(0,s.eW)((0,c.v_)(("0"+r).slice(-2)),1)],64))],10,["onClick"])))),128))])),_:2},1032,["class","view-class","onMouseenter","onMousemove"])))),128)),e.arrowControl?((0,s.uX)(!0),(0,s.CE)(s.FK,{key:1},(0,s.pI)((0,l.R1)(x),(t=>((0,s.uX)(),(0,s.CE)("div",{key:t,class:(0,c.C4)([(0,l.R1)(i).be("spinner","wrapper"),(0,l.R1)(i).is("arrow")]),onMouseenter:e=>S(t)},[(0,s.bo)(((0,s.uX)(),(0,s.Wv)((0,l.R1)(A.tk),{class:(0,c.C4)(["arrow-up",(0,l.R1)(i).be("spinner","arrow")])},{default:(0,s.k6)((()=>[(0,s.bF)((0,l.R1)(H.DoI))])),_:1},8,["class"])),[[(0,l.R1)($u),B]]),(0,s.bo)(((0,s.uX)(),(0,s.Wv)((0,l.R1)(A.tk),{class:(0,c.C4)(["arrow-down",(0,l.R1)(i).be("spinner","arrow")])},{default:(0,s.k6)((()=>[(0,s.bF)((0,l.R1)(H.yd$))])),_:1},8,["class"])),[[(0,l.R1)($u),N]]),(0,s.Lk)("ul",{class:(0,c.C4)((0,l.R1)(i).be("spinner","list"))},[((0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)((0,l.R1)(C)[t],((n,r)=>((0,s.uX)(),(0,s.CE)("li",{key:r,class:(0,c.C4)([(0,l.R1)(i).be("spinner","item"),(0,l.R1)(i).is("active",n===(0,l.R1)(k)[t]),(0,l.R1)(i).is("disabled",(0,l.R1)(_)[t][n])])},[(0,l.R1)(p.Et)(n)?((0,s.uX)(),(0,s.CE)(s.FK,{key:0},["hours"===t?((0,s.uX)(),(0,s.CE)(s.FK,{key:0},[(0,s.eW)((0,c.v_)(("0"+(e.amPmMode?n%12||12:n)).slice(-2))+(0,c.v_)(R(n)),1)],64)):((0,s.uX)(),(0,s.CE)(s.FK,{key:1},[(0,s.eW)((0,c.v_)(("0"+n).slice(-2)),1)],64))],64)):(0,s.Q3)("v-if",!0)],2)))),128))],2)],42,["onMouseenter"])))),128)):(0,s.Q3)("v-if",!0)],2))}});var zu=(0,g.A)(Pu,[["__file","basic-time-spinner.vue"]]);const Wu=(0,s.pM)({__name:"panel-time-pick",props:Eu,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,r=(0,s.WQ)("EP_PICKER_BASE"),{arrowControl:a,disabledHours:i,disabledMinutes:o,disabledSeconds:u,defaultValue:d}=r.props,{getAvailableHours:h,getAvailableMinutes:f,getAvailableSeconds:m}=Tu(i,o,u),g=(0,v.DU)("time"),{t:y,lang:b}=(0,La.Ym)(),w=(0,l.KR)([0,2]),x=Mu(n),k=(0,s.EW)((()=>(0,p.b0)(n.actualVisible)?`${g.namespace.value}-zoom-in-top`:"")),_=(0,s.EW)((()=>n.format.includes("ss"))),C=(0,s.EW)((()=>n.format.includes("A")?"A":n.format.includes("a")?"a":"")),E=e=>{const t=ja(e).locale(b.value),n=D(t);return t.isSame(n)},R=()=>{t("pick",x.value,!1)},A=(e=!1,r=!1)=>{r||t("pick",n.parsedValue,e)},T=e=>{if(!n.visible)return;const r=D(e).millisecond(0);t("pick",r,!0)},M=(e,n)=>{t("select-range",e,n),w.value=[e,n]},L=e=>{const t=[0,3].concat(_.value?[6]:[]),n=["hours","minutes"].concat(_.value?["seconds"]:[]),r=t.indexOf(w.value[0]),a=(r+e+t.length)%t.length;I["start_emitSelectRange"](n[a])},O=e=>{const t=e.code,{left:n,right:r,up:a,down:i}=$n.R;if([n,r].includes(t)){const r=t===n?-1:1;return L(r),void e.preventDefault()}if([a,i].includes(t)){const n=t===a?-1:1;return I["start_scrollDown"](n),void e.preventDefault()}},{timePickerOptions:I,onSetOption:N,getAvailableTime:B}=Ru({getAvailableHours:h,getAvailableMinutes:f,getAvailableSeconds:m}),D=e=>B(e,n.datetimeRole||"",!0),F=e=>e?ja(e,n.format).locale(b.value):null,$=e=>e?e.format(n.format):null,P=()=>ja(d).locale(b.value);return t("set-picker-option",["isValidValue",E]),t("set-picker-option",["formatToString",$]),t("set-picker-option",["parseUserInput",F]),t("set-picker-option",["handleKeydownInput",O]),t("set-picker-option",["getRangeAvailableTime",D]),t("set-picker-option",["getDefaultValue",P]),(e,t)=>((0,s.uX)(),(0,s.Wv)(S.eB,{name:(0,l.R1)(k)},{default:(0,s.k6)((()=>[e.actualVisible||e.visible?((0,s.uX)(),(0,s.CE)("div",{key:0,class:(0,c.C4)((0,l.R1)(g).b("panel"))},[(0,s.Lk)("div",{class:(0,c.C4)([(0,l.R1)(g).be("panel","content"),{"has-seconds":(0,l.R1)(_)}])},[(0,s.bF)(zu,{ref:"spinner",role:e.datetimeRole||"start","arrow-control":(0,l.R1)(a),"show-seconds":(0,l.R1)(_),"am-pm-mode":(0,l.R1)(C),"spinner-date":e.parsedValue,"disabled-hours":(0,l.R1)(i),"disabled-minutes":(0,l.R1)(o),"disabled-seconds":(0,l.R1)(u),onChange:T,onSetOption:(0,l.R1)(N),onSelectRange:M},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onSetOption"])],2),(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(g).be("panel","footer"))},[(0,s.Lk)("button",{type:"button",class:(0,c.C4)([(0,l.R1)(g).be("panel","btn"),"cancel"]),onClick:R},(0,c.v_)((0,l.R1)(y)("el.datepicker.cancel")),3),(0,s.Lk)("button",{type:"button",class:(0,c.C4)([(0,l.R1)(g).be("panel","btn"),"confirm"]),onClick:e=>A()},(0,c.v_)((0,l.R1)(y)("el.datepicker.confirm")),11,["onClick"])],2)],2)):(0,s.Q3)("v-if",!0)])),_:1},8,["name"]))}});var ju=(0,g.A)(Wu,[["__file","panel-time-pick.vue"]]);const Vu=(0,s.pM)({__name:"panel-date-pick",props:nu,emits:["pick","set-picker-option","panel-change"],setup(e,{emit:t}){const n=e,r=(e,t,n)=>!0,a=(0,v.DU)("picker-panel"),i=(0,v.DU)("date-picker"),o=(0,s.OA)(),u=(0,s.Ht)(),{t:d,lang:h}=(0,La.Ym)(),p=(0,s.WQ)("EP_PICKER_BASE"),f=(0,s.WQ)(ke),{shortcuts:m,disabledDate:g,cellClassName:y,defaultTime:b}=p.props,w=(0,l.lW)(p.props,"defaultValue"),x=(0,l.KR)(),k=(0,l.KR)(ja().locale(h.value)),_=(0,l.KR)(!1);let C=!1;const E=(0,s.EW)((()=>ja(b).locale(h.value))),R=(0,s.EW)((()=>k.value.month())),T=(0,s.EW)((()=>k.value.year())),M=(0,l.KR)([]),L=(0,l.KR)(null),O=(0,l.KR)(null),I=e=>!(M.value.length>0)||r(e,M.value,n.format||"HH:mm:ss"),N=e=>!b||ie.value||_.value||C?Q.value?e.millisecond(0):e.startOf("day"):E.value.year(e.year()).month(e.month()).date(e.date()),B=(e,...n)=>{if(e)if((0,c.cy)(e)){const r=e.map(N);t("pick",r,...n)}else t("pick",N(e),...n);else t("pick",e,...n);L.value=null,O.value=null,_.value=!1,C=!1},D=async(e,t)=>{if("date"===j.value){let r=n.parsedValue?n.parsedValue.year(e.year()).month(e.month()).date(e.date()):e;I(r)||(r=M.value[0][0].year(e.year()).month(e.month()).date(e.date())),k.value=r,B(r,Q.value||t),"datetime"===n.type&&(await(0,s.dY)(),ye())}else"week"===j.value?B(e.date):"dates"===j.value&&B(e,!0)},F=e=>{const t=e?"add":"subtract";k.value=k.value[t](1,"month"),_e("month")},$=e=>{const t=k.value,n=e?"add":"subtract";k.value="year"===P.value?t[n](10,"year"):t[n](1,"year"),_e("year")},P=(0,l.KR)("date"),z=(0,s.EW)((()=>{const e=d("el.datepicker.year");if("year"===P.value){const t=10*Math.floor(T.value/10);return e?`${t} ${e} - ${t+9} ${e}`:`${t} - ${t+9}`}return`${T.value} ${e}`})),W=e=>{const n=(0,c.Tn)(e.value)?e.value():e.value;if(n)return C=!0,void B(ja(n).locale(h.value));e.onClick&&e.onClick({attrs:o,slots:u,emit:t})},j=(0,s.EW)((()=>{const{type:e}=n;return["week","month","months","year","years","dates"].includes(e)?e:"date"})),V=(0,s.EW)((()=>"dates"===j.value||"months"===j.value||"years"===j.value)),U=(0,s.EW)((()=>"date"===j.value?P.value:j.value)),K=(0,s.EW)((()=>!!m.length)),G=async(e,t)=>{"month"===j.value?(k.value=su(k.value.year(),e,h.value,g),B(k.value,!1)):"months"===j.value?B(e,null==t||t):(k.value=su(k.value.year(),e,h.value,g),P.value="date",["month","year","date","week"].includes(j.value)&&(B(k.value,!0),await(0,s.dY)(),ye())),_e("month")},X=async(e,t)=>{if("year"===j.value){const t=k.value.startOf("year").year(e);k.value=lu(t,h.value,g),B(k.value,!1)}else if("years"===j.value)B(e,null==t||t);else{const t=k.value.year(e);k.value=lu(t,h.value,g),P.value="month",["month","year","date","week"].includes(j.value)&&(B(k.value,!0),await(0,s.dY)(),ye())}_e("year")},Y=async e=>{P.value=e,await(0,s.dY)(),ye()},Q=(0,s.EW)((()=>"datetime"===n.type||"datetimerange"===n.type)),Z=(0,s.EW)((()=>{const e=Q.value||"dates"===j.value,t="years"===j.value,n="months"===j.value,r="date"===P.value,a="year"===P.value,i="month"===P.value;return e&&r||t&&a||n&&i})),J=(0,s.EW)((()=>!!g&&(!n.parsedValue||((0,c.cy)(n.parsedValue)?g(n.parsedValue[0].toDate()):g(n.parsedValue.toDate()))))),ee=()=>{if(V.value)B(n.parsedValue);else{let e=n.parsedValue;if(!e){const t=ja(b).locale(h.value),n=ve();e=t.year(n.year()).month(n.month()).date(n.date())}k.value=e,B(e)}},te=(0,s.EW)((()=>!!g&&g(ja().locale(h.value).toDate()))),ne=()=>{const e=ja().locale(h.value),t=e.toDate();_.value=!0,g&&g(t)||!I(t)||(k.value=ja().locale(h.value),B(k.value))},re=(0,s.EW)((()=>n.timeFormat||Ha(n.format))),ae=(0,s.EW)((()=>n.dateFormat||Ka(n.format))),ie=(0,s.EW)((()=>O.value?O.value:n.parsedValue||w.value?(n.parsedValue||k.value).format(re.value):void 0)),oe=(0,s.EW)((()=>L.value?L.value:n.parsedValue||w.value?(n.parsedValue||k.value).format(ae.value):void 0)),se=(0,l.KR)(!1),le=()=>{se.value=!0},ce=()=>{se.value=!1},ue=e=>({hour:e.hour(),minute:e.minute(),second:e.second(),year:e.year(),month:e.month(),date:e.date()}),de=(e,t,r)=>{const{hour:a,minute:i,second:o}=ue(e),s=n.parsedValue?n.parsedValue.hour(a).minute(i).second(o):e;k.value=s,B(k.value,!0),r||(se.value=t)},he=e=>{const t=ja(e,re.value).locale(h.value);if(t.isValid()&&I(t)){const{year:e,month:n,date:r}=ue(k.value);k.value=t.year(e).month(n).date(r),O.value=null,se.value=!1,B(k.value,!0)}},pe=e=>{const t=ja(e,ae.value).locale(h.value);if(t.isValid()){if(g&&g(t.toDate()))return;const{hour:e,minute:n,second:r}=ue(k.value);k.value=t.hour(e).minute(n).second(r),L.value=null,B(k.value,!0)}},fe=e=>ja.isDayjs(e)&&e.isValid()&&(!g||!g(e.toDate())),me=e=>(0,c.cy)(e)?e.map((e=>e.format(n.format))):e.format(n.format),ge=e=>ja(e,n.format).locale(h.value),ve=()=>{const e=ja(w.value).locale(h.value);if(!w.value){const e=E.value;return ja().hour(e.hour()).minute(e.minute()).second(e.second()).locale(h.value)}return e},ye=()=>{var e;["week","month","year","date"].includes(j.value)&&(null==(e=x.value)||e.focus())},be=()=>{ye(),"week"===j.value&&xe($n.R.down)},we=e=>{const{code:t}=e,n=[$n.R.up,$n.R.down,$n.R.left,$n.R.right,$n.R.home,$n.R.end,$n.R.pageUp,$n.R.pageDown];n.includes(t)&&(xe(t),e.stopPropagation(),e.preventDefault()),[$n.R.enter,$n.R.space,$n.R.numpadEnter].includes(t)&&null===L.value&&null===O.value&&(e.preventDefault(),B(k.value,!1))},xe=e=>{var n;const{up:r,down:a,left:i,right:o,home:s,end:l,pageUp:u,pageDown:d}=$n.R,p={year:{[r]:-4,[a]:4,[i]:-1,[o]:1,offset:(e,t)=>e.setFullYear(e.getFullYear()+t)},month:{[r]:-4,[a]:4,[i]:-1,[o]:1,offset:(e,t)=>e.setMonth(e.getMonth()+t)},week:{[r]:-1,[a]:1,[i]:-1,[o]:1,offset:(e,t)=>e.setDate(e.getDate()+7*t)},date:{[r]:-7,[a]:7,[i]:-1,[o]:1,[s]:e=>-e.getDay(),[l]:e=>6-e.getDay(),[u]:e=>-new Date(e.getFullYear(),e.getMonth(),0).getDate(),[d]:e=>new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),offset:(e,t)=>e.setDate(e.getDate()+t)}},f=k.value.toDate();while(Math.abs(k.value.diff(f,"year",!0))<1){const r=p[U.value];if(!r)return;if(r.offset(f,(0,c.Tn)(r[e])?r[e](f):null!=(n=r[e])?n:0),g&&g(f))break;const a=ja(f).locale(h.value);k.value=a,t("pick",a,!0);break}},_e=e=>{t("panel-change",k.value.toDate(),e,P.value)};return(0,s.wB)((()=>j.value),(e=>{["month","year"].includes(e)?P.value=e:P.value="years"!==e?"months"!==e?"date":"month":"year"}),{immediate:!0}),(0,s.wB)((()=>P.value),(()=>{null==f||f.updatePopper()})),(0,s.wB)((()=>w.value),(e=>{e&&(k.value=ve())}),{immediate:!0}),(0,s.wB)((()=>n.parsedValue),(e=>{if(e){if(V.value)return;if((0,c.cy)(e))return;k.value=e}else k.value=ve()}),{immediate:!0}),t("set-picker-option",["isValidValue",fe]),t("set-picker-option",["formatToString",me]),t("set-picker-option",["parseUserInput",ge]),t("set-picker-option",["handleFocusPicker",be]),(e,t)=>((0,s.uX)(),(0,s.CE)("div",{class:(0,c.C4)([(0,l.R1)(a).b(),(0,l.R1)(i).b(),{"has-sidebar":e.$slots.sidebar||(0,l.R1)(K),"has-time":(0,l.R1)(Q)}])},[(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(a).e("body-wrapper"))},[(0,s.RG)(e.$slots,"sidebar",{class:(0,c.C4)((0,l.R1)(a).e("sidebar"))}),(0,l.R1)(K)?((0,s.uX)(),(0,s.CE)("div",{key:0,class:(0,c.C4)((0,l.R1)(a).e("sidebar"))},[((0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)((0,l.R1)(m),((e,t)=>((0,s.uX)(),(0,s.CE)("button",{key:t,type:"button",class:(0,c.C4)((0,l.R1)(a).e("shortcut")),onClick:t=>W(e)},(0,c.v_)(e.text),11,["onClick"])))),128))],2)):(0,s.Q3)("v-if",!0),(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(a).e("body"))},[(0,l.R1)(Q)?((0,s.uX)(),(0,s.CE)("div",{key:0,class:(0,c.C4)((0,l.R1)(i).e("time-header"))},[(0,s.Lk)("span",{class:(0,c.C4)((0,l.R1)(i).e("editor-wrap"))},[(0,s.bF)((0,l.R1)(q.WK),{placeholder:(0,l.R1)(d)("el.datepicker.selectDate"),"model-value":(0,l.R1)(oe),size:"small","validate-event":!1,onInput:e=>L.value=e,onChange:pe},null,8,["placeholder","model-value","onInput"])],2),(0,s.bo)(((0,s.uX)(),(0,s.CE)("span",{class:(0,c.C4)((0,l.R1)(i).e("editor-wrap"))},[(0,s.bF)((0,l.R1)(q.WK),{placeholder:(0,l.R1)(d)("el.datepicker.selectTime"),"model-value":(0,l.R1)(ie),size:"small","validate-event":!1,onFocus:le,onInput:e=>O.value=e,onChange:he},null,8,["placeholder","model-value","onInput"]),(0,s.bF)((0,l.R1)(ju),{visible:se.value,format:(0,l.R1)(re),"parsed-value":k.value,onPick:de},null,8,["visible","format","parsed-value"])],2)),[[(0,l.R1)(Bs),ce]])],2)):(0,s.Q3)("v-if",!0),(0,s.bo)((0,s.Lk)("div",{class:(0,c.C4)([(0,l.R1)(i).e("header"),("year"===P.value||"month"===P.value)&&(0,l.R1)(i).e("header--bordered")])},[(0,s.Lk)("span",{class:(0,c.C4)((0,l.R1)(i).e("prev-btn"))},[(0,s.Lk)("button",{type:"button","aria-label":(0,l.R1)(d)("el.datepicker.prevYear"),class:(0,c.C4)(["d-arrow-left",(0,l.R1)(a).e("icon-btn")]),onClick:e=>$(!1)},[(0,s.RG)(e.$slots,"prev-year",{},(()=>[(0,s.bF)((0,l.R1)(A.tk),null,{default:(0,s.k6)((()=>[(0,s.bF)((0,l.R1)(H.V6m))])),_:1})]))],10,["aria-label","onClick"]),(0,s.bo)((0,s.Lk)("button",{type:"button","aria-label":(0,l.R1)(d)("el.datepicker.prevMonth"),class:(0,c.C4)([(0,l.R1)(a).e("icon-btn"),"arrow-left"]),onClick:e=>F(!1)},[(0,s.RG)(e.$slots,"prev-month",{},(()=>[(0,s.bF)((0,l.R1)(A.tk),null,{default:(0,s.k6)((()=>[(0,s.bF)((0,l.R1)(H.nkM))])),_:1})]))],10,["aria-label","onClick"]),[[S.aG,"date"===P.value]])],2),(0,s.Lk)("span",{role:"button",class:(0,c.C4)((0,l.R1)(i).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:(0,S.jR)((e=>Y("year")),["enter"]),onClick:e=>Y("year")},(0,c.v_)((0,l.R1)(z)),43,["onKeydown","onClick"]),(0,s.bo)((0,s.Lk)("span",{role:"button","aria-live":"polite",tabindex:"0",class:(0,c.C4)([(0,l.R1)(i).e("header-label"),{active:"month"===P.value}]),onKeydown:(0,S.jR)((e=>Y("month")),["enter"]),onClick:e=>Y("month")},(0,c.v_)((0,l.R1)(d)(`el.datepicker.month${(0,l.R1)(R)+1}`)),43,["onKeydown","onClick"]),[[S.aG,"date"===P.value]]),(0,s.Lk)("span",{class:(0,c.C4)((0,l.R1)(i).e("next-btn"))},[(0,s.bo)((0,s.Lk)("button",{type:"button","aria-label":(0,l.R1)(d)("el.datepicker.nextMonth"),class:(0,c.C4)([(0,l.R1)(a).e("icon-btn"),"arrow-right"]),onClick:e=>F(!0)},[(0,s.RG)(e.$slots,"next-month",{},(()=>[(0,s.bF)((0,l.R1)(A.tk),null,{default:(0,s.k6)((()=>[(0,s.bF)((0,l.R1)(H.Qpb))])),_:1})]))],10,["aria-label","onClick"]),[[S.aG,"date"===P.value]]),(0,s.Lk)("button",{type:"button","aria-label":(0,l.R1)(d)("el.datepicker.nextYear"),class:(0,c.C4)([(0,l.R1)(a).e("icon-btn"),"d-arrow-right"]),onClick:e=>$(!0)},[(0,s.RG)(e.$slots,"next-year",{},(()=>[(0,s.bF)((0,l.R1)(A.tk),null,{default:(0,s.k6)((()=>[(0,s.bF)((0,l.R1)(H.u$D))])),_:1})]))],10,["aria-label","onClick"])],2)],2),[[S.aG,"time"!==P.value]]),(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(a).e("content")),onKeydown:we},["date"===P.value?((0,s.uX)(),(0,s.Wv)(yu,{key:0,ref_key:"currentViewRef",ref:x,"selection-mode":(0,l.R1)(j),date:k.value,"parsed-value":e.parsedValue,"disabled-date":(0,l.R1)(g),"cell-class-name":(0,l.R1)(y),onPick:D},null,8,["selection-mode","date","parsed-value","disabled-date","cell-class-name"])):(0,s.Q3)("v-if",!0),"year"===P.value?((0,s.uX)(),(0,s.Wv)(Cu,{key:1,ref_key:"currentViewRef",ref:x,"selection-mode":(0,l.R1)(j),date:k.value,"disabled-date":(0,l.R1)(g),"parsed-value":e.parsedValue,onPick:X},null,8,["selection-mode","date","disabled-date","parsed-value"])):(0,s.Q3)("v-if",!0),"month"===P.value?((0,s.uX)(),(0,s.Wv)(xu,{key:2,ref_key:"currentViewRef",ref:x,"selection-mode":(0,l.R1)(j),date:k.value,"parsed-value":e.parsedValue,"disabled-date":(0,l.R1)(g),onPick:G},null,8,["selection-mode","date","parsed-value","disabled-date"])):(0,s.Q3)("v-if",!0)],34)],2)],2),(0,s.bo)((0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(a).e("footer"))},[(0,s.bo)((0,s.bF)((0,l.R1)(Wa.S2),{text:"",size:"small",class:(0,c.C4)((0,l.R1)(a).e("link-btn")),disabled:(0,l.R1)(te),onClick:ne},{default:(0,s.k6)((()=>[(0,s.eW)((0,c.v_)((0,l.R1)(d)("el.datepicker.now")),1)])),_:1},8,["class","disabled"]),[[S.aG,!(0,l.R1)(V)&&e.showNow]]),(0,s.bF)((0,l.R1)(Wa.S2),{plain:"",size:"small",class:(0,c.C4)((0,l.R1)(a).e("link-btn")),disabled:(0,l.R1)(J),onClick:ee},{default:(0,s.k6)((()=>[(0,s.eW)((0,c.v_)((0,l.R1)(d)("el.datepicker.confirm")),1)])),_:1},8,["class","disabled"])],2),[[S.aG,(0,l.R1)(Z)]])],2))}});var Uu=(0,g.A)(Vu,[["__file","panel-date-pick.vue"]]);const Ku=(0,h.b_)({...Jc,...eu,visible:Boolean}),Hu=e=>{const{emit:t}=(0,s.nI)(),n=(0,s.OA)(),r=(0,s.Ht)(),a=a=>{const i=(0,c.Tn)(a.value)?a.value():a.value;i?t("pick",[ja(i[0]).locale(e.value),ja(i[1]).locale(e.value)]):a.onClick&&a.onClick({attrs:n,slots:r,emit:t})};return a},qu=(e,{defaultValue:t,leftDate:n,rightDate:r,unit:a,onParsedValueChanged:i})=>{const{emit:o}=(0,s.nI)(),{pickerNs:u}=(0,s.WQ)(Kc),d=(0,v.DU)("date-range-picker"),{t:h,lang:p}=(0,La.Ym)(),f=Hu(p),m=(0,l.KR)(),g=(0,l.KR)(),y=(0,l.KR)({endDate:null,selecting:!1}),b=e=>{y.value=e},w=(e=!1)=>{const t=(0,l.R1)(m),n=(0,l.R1)(g);ru([t,n])&&o("pick",[t,n],e)},x=e=>{y.value.selecting=e,e||(y.value.endDate=null)},k=e=>{if((0,c.cy)(e)&&2===e.length){const[t,r]=e;m.value=t,n.value=t,g.value=r,i((0,l.R1)(m),(0,l.R1)(g))}else _()},_=()=>{const[i,o]=au((0,l.R1)(t),{lang:(0,l.R1)(p),unit:a,unlinkPanels:e.unlinkPanels});m.value=void 0,g.value=void 0,n.value=i,r.value=o};return(0,s.wB)(t,(e=>{e&&_()}),{immediate:!0}),(0,s.wB)((()=>e.parsedValue),k,{immediate:!0}),{minDate:m,maxDate:g,rangeState:y,lang:p,ppNs:u,drpNs:d,handleChangeRange:b,handleRangeConfirm:w,handleShortcutClick:f,onSelect:x,onReset:k,t:h}},Gu="month",Xu=(0,s.pM)({__name:"panel-date-range",props:Ku,emits:["pick","set-picker-option","calendar-change","panel-change"],setup(e,{emit:t}){const n=e,r=(0,s.WQ)("EP_PICKER_BASE"),{disabledDate:a,cellClassName:i,defaultTime:o,clearable:u}=r.props,d=(0,l.lW)(r.props,"format"),h=(0,l.lW)(r.props,"shortcuts"),p=(0,l.lW)(r.props,"defaultValue"),{lang:f}=(0,La.Ym)(),m=(0,l.KR)(ja().locale(f.value)),g=(0,l.KR)(ja().locale(f.value).add(1,Gu)),{minDate:v,maxDate:y,rangeState:b,ppNs:w,drpNs:x,handleChangeRange:k,handleRangeConfirm:_,handleShortcutClick:C,onSelect:E,onReset:R,t:S}=qu(n,{defaultValue:p,leftDate:m,rightDate:g,unit:Gu,onParsedValueChanged:xe});(0,s.wB)((()=>n.visible),(e=>{!e&&b.value.selecting&&(R(n.parsedValue),E(!1))}));const T=(0,l.KR)({min:null,max:null}),M=(0,l.KR)({min:null,max:null}),L=(0,s.EW)((()=>`${m.value.year()} ${S("el.datepicker.year")} ${S(`el.datepicker.month${m.value.month()+1}`)}`)),O=(0,s.EW)((()=>`${g.value.year()} ${S("el.datepicker.year")} ${S(`el.datepicker.month${g.value.month()+1}`)}`)),I=(0,s.EW)((()=>m.value.year())),N=(0,s.EW)((()=>m.value.month())),B=(0,s.EW)((()=>g.value.year())),D=(0,s.EW)((()=>g.value.month())),F=(0,s.EW)((()=>!!h.value.length)),$=(0,s.EW)((()=>null!==T.value.min?T.value.min:v.value?v.value.format(V.value):"")),P=(0,s.EW)((()=>null!==T.value.max?T.value.max:y.value||v.value?(y.value||v.value).format(V.value):"")),z=(0,s.EW)((()=>null!==M.value.min?M.value.min:v.value?v.value.format(j.value):"")),W=(0,s.EW)((()=>null!==M.value.max?M.value.max:y.value||v.value?(y.value||v.value).format(j.value):"")),j=(0,s.EW)((()=>n.timeFormat||Ha(d.value))),V=(0,s.EW)((()=>n.dateFormat||Ka(d.value))),U=e=>ru(e)&&(!a||!a(e[0].toDate())&&!a(e[1].toDate())),K=()=>{m.value=m.value.subtract(1,"year"),n.unlinkPanels||(g.value=m.value.add(1,"month")),te("year")},G=()=>{m.value=m.value.subtract(1,"month"),n.unlinkPanels||(g.value=m.value.add(1,"month")),te("month")},X=()=>{n.unlinkPanels?g.value=g.value.add(1,"year"):(m.value=m.value.add(1,"year"),g.value=m.value.add(1,"month")),te("year")},Y=()=>{n.unlinkPanels?g.value=g.value.add(1,"month"):(m.value=m.value.add(1,"month"),g.value=m.value.add(1,"month")),te("month")},Q=()=>{m.value=m.value.add(1,"year"),te("year")},Z=()=>{m.value=m.value.add(1,"month"),te("month")},J=()=>{g.value=g.value.subtract(1,"year"),te("year")},ee=()=>{g.value=g.value.subtract(1,"month"),te("month")},te=e=>{t("panel-change",[m.value.toDate(),g.value.toDate()],e)},ne=(0,s.EW)((()=>{const e=(N.value+1)%12,t=N.value+1>=12?1:0;return n.unlinkPanels&&new Date(I.value+t,e)<new Date(B.value,D.value)})),re=(0,s.EW)((()=>n.unlinkPanels&&12*B.value+D.value-(12*I.value+N.value+1)>=12)),ae=(0,s.EW)((()=>!(v.value&&y.value&&!b.value.selecting&&ru([v.value,y.value])))),ie=(0,s.EW)((()=>"datetime"===n.type||"datetimerange"===n.type)),oe=(e,t)=>{if(e){if(o){const n=ja(o[t]||o).locale(f.value);return n.year(e.year()).month(e.month()).date(e.date())}return e}},se=(e,n=!0)=>{const r=e.minDate,a=e.maxDate,i=oe(r,0),o=oe(a,1);y.value===o&&v.value===i||(t("calendar-change",[r.toDate(),a&&a.toDate()]),y.value=o,v.value=i,n&&!ie.value&&_())},le=(0,l.KR)(!1),ce=(0,l.KR)(!1),ue=()=>{le.value=!1},de=()=>{ce.value=!1},he=(e,t)=>{T.value[t]=e;const r=ja(e,V.value).locale(f.value);if(r.isValid()){if(a&&a(r.toDate()))return;"min"===t?(m.value=r,v.value=(v.value||m.value).year(r.year()).month(r.month()).date(r.date()),n.unlinkPanels||y.value&&!y.value.isBefore(v.value)||(g.value=r.add(1,"month"),y.value=v.value.add(1,"month"))):(g.value=r,y.value=(y.value||g.value).year(r.year()).month(r.month()).date(r.date()),n.unlinkPanels||v.value&&!v.value.isAfter(y.value)||(m.value=r.subtract(1,"month"),v.value=y.value.subtract(1,"month")))}},pe=(e,t)=>{T.value[t]=null},fe=(e,t)=>{M.value[t]=e;const n=ja(e,j.value).locale(f.value);n.isValid()&&("min"===t?(le.value=!0,v.value=(v.value||m.value).hour(n.hour()).minute(n.minute()).second(n.second())):(ce.value=!0,y.value=(y.value||g.value).hour(n.hour()).minute(n.minute()).second(n.second()),g.value=y.value))},me=(e,t)=>{M.value[t]=null,"min"===t?(m.value=v.value,le.value=!1,y.value&&!y.value.isBefore(v.value)||(y.value=v.value)):(g.value=y.value,ce.value=!1,y.value&&y.value.isBefore(v.value)&&(v.value=y.value))},ge=(e,t,n)=>{M.value.min||(e&&(m.value=e,v.value=(v.value||m.value).hour(e.hour()).minute(e.minute()).second(e.second())),n||(le.value=t),y.value&&!y.value.isBefore(v.value)||(y.value=v.value,g.value=e))},ve=(e,t,n)=>{M.value.max||(e&&(g.value=e,y.value=(y.value||g.value).hour(e.hour()).minute(e.minute()).second(e.second())),n||(ce.value=t),y.value&&y.value.isBefore(v.value)&&(v.value=y.value))},ye=()=>{m.value=au((0,l.R1)(p),{lang:(0,l.R1)(f),unit:"month",unlinkPanels:n.unlinkPanels})[0],g.value=m.value.add(1,"month"),y.value=void 0,v.value=void 0,t("pick",null)},be=e=>(0,c.cy)(e)?e.map((e=>e.format(d.value))):e.format(d.value),we=e=>(0,c.cy)(e)?e.map((e=>ja(e,d.value).locale(f.value))):ja(e,d.value).locale(f.value);function xe(e,t){if(n.unlinkPanels&&t){const n=(null==e?void 0:e.year())||0,r=(null==e?void 0:e.month())||0,a=t.year(),i=t.month();g.value=n===a&&r===i?t.add(1,Gu):t}else g.value=m.value.add(1,Gu),t&&(g.value=g.value.hour(t.hour()).minute(t.minute()).second(t.second()))}return t("set-picker-option",["isValidValue",U]),t("set-picker-option",["parseUserInput",we]),t("set-picker-option",["formatToString",be]),t("set-picker-option",["handleClear",ye]),(e,t)=>((0,s.uX)(),(0,s.CE)("div",{class:(0,c.C4)([(0,l.R1)(w).b(),(0,l.R1)(x).b(),{"has-sidebar":e.$slots.sidebar||(0,l.R1)(F),"has-time":(0,l.R1)(ie)}])},[(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(w).e("body-wrapper"))},[(0,s.RG)(e.$slots,"sidebar",{class:(0,c.C4)((0,l.R1)(w).e("sidebar"))}),(0,l.R1)(F)?((0,s.uX)(),(0,s.CE)("div",{key:0,class:(0,c.C4)((0,l.R1)(w).e("sidebar"))},[((0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)((0,l.R1)(h),((e,t)=>((0,s.uX)(),(0,s.CE)("button",{key:t,type:"button",class:(0,c.C4)((0,l.R1)(w).e("shortcut")),onClick:t=>(0,l.R1)(C)(e)},(0,c.v_)(e.text),11,["onClick"])))),128))],2)):(0,s.Q3)("v-if",!0),(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(w).e("body"))},[(0,l.R1)(ie)?((0,s.uX)(),(0,s.CE)("div",{key:0,class:(0,c.C4)((0,l.R1)(x).e("time-header"))},[(0,s.Lk)("span",{class:(0,c.C4)((0,l.R1)(x).e("editors-wrap"))},[(0,s.Lk)("span",{class:(0,c.C4)((0,l.R1)(x).e("time-picker-wrap"))},[(0,s.bF)((0,l.R1)(q.WK),{size:"small",disabled:(0,l.R1)(b).selecting,placeholder:(0,l.R1)(S)("el.datepicker.startDate"),class:(0,c.C4)((0,l.R1)(x).e("editor")),"model-value":(0,l.R1)($),"validate-event":!1,onInput:e=>he(e,"min"),onChange:e=>pe(e,"min")},null,8,["disabled","placeholder","class","model-value","onInput","onChange"])],2),(0,s.bo)(((0,s.uX)(),(0,s.CE)("span",{class:(0,c.C4)((0,l.R1)(x).e("time-picker-wrap"))},[(0,s.bF)((0,l.R1)(q.WK),{size:"small",class:(0,c.C4)((0,l.R1)(x).e("editor")),disabled:(0,l.R1)(b).selecting,placeholder:(0,l.R1)(S)("el.datepicker.startTime"),"model-value":(0,l.R1)(z),"validate-event":!1,onFocus:e=>le.value=!0,onInput:e=>fe(e,"min"),onChange:e=>me(e,"min")},null,8,["class","disabled","placeholder","model-value","onFocus","onInput","onChange"]),(0,s.bF)((0,l.R1)(ju),{visible:le.value,format:(0,l.R1)(j),"datetime-role":"start","parsed-value":m.value,onPick:ge},null,8,["visible","format","parsed-value"])],2)),[[(0,l.R1)(Bs),ue]])],2),(0,s.Lk)("span",null,[(0,s.bF)((0,l.R1)(A.tk),null,{default:(0,s.k6)((()=>[(0,s.bF)((0,l.R1)(H.Qpb))])),_:1})]),(0,s.Lk)("span",{class:(0,c.C4)([(0,l.R1)(x).e("editors-wrap"),"is-right"])},[(0,s.Lk)("span",{class:(0,c.C4)((0,l.R1)(x).e("time-picker-wrap"))},[(0,s.bF)((0,l.R1)(q.WK),{size:"small",class:(0,c.C4)((0,l.R1)(x).e("editor")),disabled:(0,l.R1)(b).selecting,placeholder:(0,l.R1)(S)("el.datepicker.endDate"),"model-value":(0,l.R1)(P),readonly:!(0,l.R1)(v),"validate-event":!1,onInput:e=>he(e,"max"),onChange:e=>pe(e,"max")},null,8,["class","disabled","placeholder","model-value","readonly","onInput","onChange"])],2),(0,s.bo)(((0,s.uX)(),(0,s.CE)("span",{class:(0,c.C4)((0,l.R1)(x).e("time-picker-wrap"))},[(0,s.bF)((0,l.R1)(q.WK),{size:"small",class:(0,c.C4)((0,l.R1)(x).e("editor")),disabled:(0,l.R1)(b).selecting,placeholder:(0,l.R1)(S)("el.datepicker.endTime"),"model-value":(0,l.R1)(W),readonly:!(0,l.R1)(v),"validate-event":!1,onFocus:e=>(0,l.R1)(v)&&(ce.value=!0),onInput:e=>fe(e,"max"),onChange:e=>me(e,"max")},null,8,["class","disabled","placeholder","model-value","readonly","onFocus","onInput","onChange"]),(0,s.bF)((0,l.R1)(ju),{"datetime-role":"end",visible:ce.value,format:(0,l.R1)(j),"parsed-value":g.value,onPick:ve},null,8,["visible","format","parsed-value"])],2)),[[(0,l.R1)(Bs),de]])],2)],2)):(0,s.Q3)("v-if",!0),(0,s.Lk)("div",{class:(0,c.C4)([[(0,l.R1)(w).e("content"),(0,l.R1)(x).e("content")],"is-left"])},[(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(x).e("header"))},[(0,s.Lk)("button",{type:"button",class:(0,c.C4)([(0,l.R1)(w).e("icon-btn"),"d-arrow-left"]),"aria-label":(0,l.R1)(S)("el.datepicker.prevYear"),onClick:K},[(0,s.RG)(e.$slots,"prev-year",{},(()=>[(0,s.bF)((0,l.R1)(A.tk),null,{default:(0,s.k6)((()=>[(0,s.bF)((0,l.R1)(H.V6m))])),_:1})]))],10,["aria-label"]),(0,s.Lk)("button",{type:"button",class:(0,c.C4)([(0,l.R1)(w).e("icon-btn"),"arrow-left"]),"aria-label":(0,l.R1)(S)("el.datepicker.prevMonth"),onClick:G},[(0,s.RG)(e.$slots,"prev-month",{},(()=>[(0,s.bF)((0,l.R1)(A.tk),null,{default:(0,s.k6)((()=>[(0,s.bF)((0,l.R1)(H.nkM))])),_:1})]))],10,["aria-label"]),e.unlinkPanels?((0,s.uX)(),(0,s.CE)("button",{key:0,type:"button",disabled:!(0,l.R1)(re),class:(0,c.C4)([[(0,l.R1)(w).e("icon-btn"),{"is-disabled":!(0,l.R1)(re)}],"d-arrow-right"]),"aria-label":(0,l.R1)(S)("el.datepicker.nextYear"),onClick:Q},[(0,s.RG)(e.$slots,"next-year",{},(()=>[(0,s.bF)((0,l.R1)(A.tk),null,{default:(0,s.k6)((()=>[(0,s.bF)((0,l.R1)(H.u$D))])),_:1})]))],10,["disabled","aria-label"])):(0,s.Q3)("v-if",!0),e.unlinkPanels?((0,s.uX)(),(0,s.CE)("button",{key:1,type:"button",disabled:!(0,l.R1)(ne),class:(0,c.C4)([[(0,l.R1)(w).e("icon-btn"),{"is-disabled":!(0,l.R1)(ne)}],"arrow-right"]),"aria-label":(0,l.R1)(S)("el.datepicker.nextMonth"),onClick:Z},[(0,s.RG)(e.$slots,"next-month",{},(()=>[(0,s.bF)((0,l.R1)(A.tk),null,{default:(0,s.k6)((()=>[(0,s.bF)((0,l.R1)(H.Qpb))])),_:1})]))],10,["disabled","aria-label"])):(0,s.Q3)("v-if",!0),(0,s.Lk)("div",null,(0,c.v_)((0,l.R1)(L)),1)],2),(0,s.bF)(yu,{"selection-mode":"range",date:m.value,"min-date":(0,l.R1)(v),"max-date":(0,l.R1)(y),"range-state":(0,l.R1)(b),"disabled-date":(0,l.R1)(a),"cell-class-name":(0,l.R1)(i),onChangerange:(0,l.R1)(k),onPick:se,onSelect:(0,l.R1)(E)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2),(0,s.Lk)("div",{class:(0,c.C4)([[(0,l.R1)(w).e("content"),(0,l.R1)(x).e("content")],"is-right"])},[(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(x).e("header"))},[e.unlinkPanels?((0,s.uX)(),(0,s.CE)("button",{key:0,type:"button",disabled:!(0,l.R1)(re),class:(0,c.C4)([[(0,l.R1)(w).e("icon-btn"),{"is-disabled":!(0,l.R1)(re)}],"d-arrow-left"]),"aria-label":(0,l.R1)(S)("el.datepicker.prevYear"),onClick:J},[(0,s.RG)(e.$slots,"prev-year",{},(()=>[(0,s.bF)((0,l.R1)(A.tk),null,{default:(0,s.k6)((()=>[(0,s.bF)((0,l.R1)(H.V6m))])),_:1})]))],10,["disabled","aria-label"])):(0,s.Q3)("v-if",!0),e.unlinkPanels?((0,s.uX)(),(0,s.CE)("button",{key:1,type:"button",disabled:!(0,l.R1)(ne),class:(0,c.C4)([[(0,l.R1)(w).e("icon-btn"),{"is-disabled":!(0,l.R1)(ne)}],"arrow-left"]),"aria-label":(0,l.R1)(S)("el.datepicker.prevMonth"),onClick:ee},[(0,s.RG)(e.$slots,"prev-month",{},(()=>[(0,s.bF)((0,l.R1)(A.tk),null,{default:(0,s.k6)((()=>[(0,s.bF)((0,l.R1)(H.nkM))])),_:1})]))],10,["disabled","aria-label"])):(0,s.Q3)("v-if",!0),(0,s.Lk)("button",{type:"button","aria-label":(0,l.R1)(S)("el.datepicker.nextYear"),class:(0,c.C4)([(0,l.R1)(w).e("icon-btn"),"d-arrow-right"]),onClick:X},[(0,s.RG)(e.$slots,"next-year",{},(()=>[(0,s.bF)((0,l.R1)(A.tk),null,{default:(0,s.k6)((()=>[(0,s.bF)((0,l.R1)(H.u$D))])),_:1})]))],10,["aria-label"]),(0,s.Lk)("button",{type:"button",class:(0,c.C4)([(0,l.R1)(w).e("icon-btn"),"arrow-right"]),"aria-label":(0,l.R1)(S)("el.datepicker.nextMonth"),onClick:Y},[(0,s.RG)(e.$slots,"next-month",{},(()=>[(0,s.bF)((0,l.R1)(A.tk),null,{default:(0,s.k6)((()=>[(0,s.bF)((0,l.R1)(H.Qpb))])),_:1})]))],10,["aria-label"]),(0,s.Lk)("div",null,(0,c.v_)((0,l.R1)(O)),1)],2),(0,s.bF)(yu,{"selection-mode":"range",date:g.value,"min-date":(0,l.R1)(v),"max-date":(0,l.R1)(y),"range-state":(0,l.R1)(b),"disabled-date":(0,l.R1)(a),"cell-class-name":(0,l.R1)(i),onChangerange:(0,l.R1)(k),onPick:se,onSelect:(0,l.R1)(E)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2)],2)],2),(0,l.R1)(ie)?((0,s.uX)(),(0,s.CE)("div",{key:0,class:(0,c.C4)((0,l.R1)(w).e("footer"))},[(0,l.R1)(u)?((0,s.uX)(),(0,s.Wv)((0,l.R1)(Wa.S2),{key:0,text:"",size:"small",class:(0,c.C4)((0,l.R1)(w).e("link-btn")),onClick:ye},{default:(0,s.k6)((()=>[(0,s.eW)((0,c.v_)((0,l.R1)(S)("el.datepicker.clear")),1)])),_:1},8,["class"])):(0,s.Q3)("v-if",!0),(0,s.bF)((0,l.R1)(Wa.S2),{plain:"",size:"small",class:(0,c.C4)((0,l.R1)(w).e("link-btn")),disabled:(0,l.R1)(ae),onClick:e=>(0,l.R1)(_)(!1)},{default:(0,s.k6)((()=>[(0,s.eW)((0,c.v_)((0,l.R1)(S)("el.datepicker.confirm")),1)])),_:1},8,["class","disabled","onClick"])],2)):(0,s.Q3)("v-if",!0)],2))}});var Yu=(0,g.A)(Xu,[["__file","panel-date-range.vue"]]);const Qu=(0,h.b_)({...eu}),Zu=["pick","set-picker-option","calendar-change"],Ju=({unlinkPanels:e,leftDate:t,rightDate:n})=>{const{t:r}=(0,La.Ym)(),a=()=>{t.value=t.value.subtract(1,"year"),e.value||(n.value=n.value.subtract(1,"year"))},i=()=>{e.value||(t.value=t.value.add(1,"year")),n.value=n.value.add(1,"year")},o=()=>{t.value=t.value.add(1,"year")},l=()=>{n.value=n.value.subtract(1,"year")},c=(0,s.EW)((()=>`${t.value.year()} ${r("el.datepicker.year")}`)),u=(0,s.EW)((()=>`${n.value.year()} ${r("el.datepicker.year")}`)),d=(0,s.EW)((()=>t.value.year())),h=(0,s.EW)((()=>n.value.year()===t.value.year()?t.value.year()+1:n.value.year()));return{leftPrevYear:a,rightNextYear:i,leftNextYear:o,rightPrevYear:l,leftLabel:c,rightLabel:u,leftYear:d,rightYear:h}},ed="year",td=(0,s.pM)({name:"DatePickerMonthRange"}),nd=(0,s.pM)({...td,props:Qu,emits:Zu,setup(e,{emit:t}){const n=e,{lang:r}=(0,La.Ym)(),a=(0,s.WQ)("EP_PICKER_BASE"),{shortcuts:i,disabledDate:o}=a.props,u=(0,l.lW)(a.props,"format"),d=(0,l.lW)(a.props,"defaultValue"),h=(0,l.KR)(ja().locale(r.value)),p=(0,l.KR)(ja().locale(r.value).add(1,ed)),{minDate:f,maxDate:m,rangeState:g,ppNs:v,drpNs:y,handleChangeRange:b,handleRangeConfirm:w,handleShortcutClick:x,onSelect:k}=qu(n,{defaultValue:d,leftDate:h,rightDate:p,unit:ed,onParsedValueChanged:$}),_=(0,s.EW)((()=>!!i.length)),{leftPrevYear:C,rightNextYear:E,leftNextYear:R,rightPrevYear:S,leftLabel:T,rightLabel:M,leftYear:L,rightYear:O}=Ju({unlinkPanels:(0,l.lW)(n,"unlinkPanels"),leftDate:h,rightDate:p}),I=(0,s.EW)((()=>n.unlinkPanels&&O.value>L.value+1)),N=(e,n=!0)=>{const r=e.minDate,a=e.maxDate;m.value===a&&f.value===r||(t("calendar-change",[r.toDate(),a&&a.toDate()]),m.value=a,f.value=r,n&&w())},B=()=>{h.value=au((0,l.R1)(d),{lang:(0,l.R1)(r),unit:"year",unlinkPanels:n.unlinkPanels})[0],p.value=h.value.add(1,"year"),t("pick",null)},D=e=>(0,c.cy)(e)?e.map((e=>e.format(u.value))):e.format(u.value),F=e=>(0,c.cy)(e)?e.map((e=>ja(e,u.value).locale(r.value))):ja(e,u.value).locale(r.value);function $(e,t){if(n.unlinkPanels&&t){const n=(null==e?void 0:e.year())||0,r=t.year();p.value=n===r?t.add(1,ed):t}else p.value=h.value.add(1,ed)}return t("set-picker-option",["isValidValue",ru]),t("set-picker-option",["formatToString",D]),t("set-picker-option",["parseUserInput",F]),t("set-picker-option",["handleClear",B]),(e,t)=>((0,s.uX)(),(0,s.CE)("div",{class:(0,c.C4)([(0,l.R1)(v).b(),(0,l.R1)(y).b(),{"has-sidebar":Boolean(e.$slots.sidebar)||(0,l.R1)(_)}])},[(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(v).e("body-wrapper"))},[(0,s.RG)(e.$slots,"sidebar",{class:(0,c.C4)((0,l.R1)(v).e("sidebar"))}),(0,l.R1)(_)?((0,s.uX)(),(0,s.CE)("div",{key:0,class:(0,c.C4)((0,l.R1)(v).e("sidebar"))},[((0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)((0,l.R1)(i),((e,t)=>((0,s.uX)(),(0,s.CE)("button",{key:t,type:"button",class:(0,c.C4)((0,l.R1)(v).e("shortcut")),onClick:t=>(0,l.R1)(x)(e)},(0,c.v_)(e.text),11,["onClick"])))),128))],2)):(0,s.Q3)("v-if",!0),(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(v).e("body"))},[(0,s.Lk)("div",{class:(0,c.C4)([[(0,l.R1)(v).e("content"),(0,l.R1)(y).e("content")],"is-left"])},[(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(y).e("header"))},[(0,s.Lk)("button",{type:"button",class:(0,c.C4)([(0,l.R1)(v).e("icon-btn"),"d-arrow-left"]),onClick:(0,l.R1)(C)},[(0,s.RG)(e.$slots,"prev-year",{},(()=>[(0,s.bF)((0,l.R1)(A.tk),null,{default:(0,s.k6)((()=>[(0,s.bF)((0,l.R1)(H.V6m))])),_:1})]))],10,["onClick"]),e.unlinkPanels?((0,s.uX)(),(0,s.CE)("button",{key:0,type:"button",disabled:!(0,l.R1)(I),class:(0,c.C4)([[(0,l.R1)(v).e("icon-btn"),{[(0,l.R1)(v).is("disabled")]:!(0,l.R1)(I)}],"d-arrow-right"]),onClick:(0,l.R1)(R)},[(0,s.RG)(e.$slots,"next-year",{},(()=>[(0,s.bF)((0,l.R1)(A.tk),null,{default:(0,s.k6)((()=>[(0,s.bF)((0,l.R1)(H.u$D))])),_:1})]))],10,["disabled","onClick"])):(0,s.Q3)("v-if",!0),(0,s.Lk)("div",null,(0,c.v_)((0,l.R1)(T)),1)],2),(0,s.bF)(xu,{"selection-mode":"range",date:h.value,"min-date":(0,l.R1)(f),"max-date":(0,l.R1)(m),"range-state":(0,l.R1)(g),"disabled-date":(0,l.R1)(o),onChangerange:(0,l.R1)(b),onPick:N,onSelect:(0,l.R1)(k)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2),(0,s.Lk)("div",{class:(0,c.C4)([[(0,l.R1)(v).e("content"),(0,l.R1)(y).e("content")],"is-right"])},[(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(y).e("header"))},[e.unlinkPanels?((0,s.uX)(),(0,s.CE)("button",{key:0,type:"button",disabled:!(0,l.R1)(I),class:(0,c.C4)([[(0,l.R1)(v).e("icon-btn"),{"is-disabled":!(0,l.R1)(I)}],"d-arrow-left"]),onClick:(0,l.R1)(S)},[(0,s.RG)(e.$slots,"prev-year",{},(()=>[(0,s.bF)((0,l.R1)(A.tk),null,{default:(0,s.k6)((()=>[(0,s.bF)((0,l.R1)(H.V6m))])),_:1})]))],10,["disabled","onClick"])):(0,s.Q3)("v-if",!0),(0,s.Lk)("button",{type:"button",class:(0,c.C4)([(0,l.R1)(v).e("icon-btn"),"d-arrow-right"]),onClick:(0,l.R1)(E)},[(0,s.RG)(e.$slots,"next-year",{},(()=>[(0,s.bF)((0,l.R1)(A.tk),null,{default:(0,s.k6)((()=>[(0,s.bF)((0,l.R1)(H.u$D))])),_:1})]))],10,["onClick"]),(0,s.Lk)("div",null,(0,c.v_)((0,l.R1)(M)),1)],2),(0,s.bF)(xu,{"selection-mode":"range",date:p.value,"min-date":(0,l.R1)(f),"max-date":(0,l.R1)(m),"range-state":(0,l.R1)(g),"disabled-date":(0,l.R1)(o),onChangerange:(0,l.R1)(b),onPick:N,onSelect:(0,l.R1)(k)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2)],2)],2)],2))}});var rd=(0,g.A)(nd,[["__file","panel-month-range.vue"]]);const ad=(0,h.b_)({...eu}),id=["pick","set-picker-option","calendar-change"],od=({unlinkPanels:e,leftDate:t,rightDate:n})=>{const r=()=>{t.value=t.value.subtract(10,"year"),e.value||(n.value=n.value.subtract(10,"year"))},a=()=>{e.value||(t.value=t.value.add(10,"year")),n.value=n.value.add(10,"year")},i=()=>{t.value=t.value.add(10,"year")},o=()=>{n.value=n.value.subtract(10,"year")},l=(0,s.EW)((()=>{const e=10*Math.floor(t.value.year()/10);return`${e}-${e+9}`})),c=(0,s.EW)((()=>{const e=10*Math.floor(n.value.year()/10);return`${e}-${e+9}`})),u=(0,s.EW)((()=>{const e=10*Math.floor(t.value.year()/10)+9;return e})),d=(0,s.EW)((()=>{const e=10*Math.floor(n.value.year()/10);return e}));return{leftPrevYear:r,rightNextYear:a,leftNextYear:i,rightPrevYear:o,leftLabel:l,rightLabel:c,leftYear:u,rightYear:d}},sd="year",ld=(0,s.pM)({name:"DatePickerYearRange"}),cd=(0,s.pM)({...ld,props:ad,emits:id,setup(e,{emit:t}){const n=e,{lang:r}=(0,La.Ym)(),a=(0,l.KR)(ja().locale(r.value)),i=(0,l.KR)(a.value.add(10,"year")),{pickerNs:o}=(0,s.WQ)(Kc),u=(0,v.DU)("date-range-picker"),d=(0,s.EW)((()=>!!B.length)),h=(0,s.EW)((()=>[o.b(),u.b(),{"has-sidebar":Boolean((0,s.Ht)().sidebar)||d.value}])),p=(0,s.EW)((()=>({content:[o.e("content"),u.e("content"),"is-left"],arrowLeftBtn:[o.e("icon-btn"),"d-arrow-left"],arrowRightBtn:[o.e("icon-btn"),{[o.is("disabled")]:!E.value},"d-arrow-right"]}))),f=(0,s.EW)((()=>({content:[o.e("content"),u.e("content"),"is-right"],arrowLeftBtn:[o.e("icon-btn"),{"is-disabled":!E.value},"d-arrow-left"],arrowRightBtn:[o.e("icon-btn"),"d-arrow-right"]}))),m=Hu(r),{leftPrevYear:g,rightNextYear:y,leftNextYear:b,rightPrevYear:w,leftLabel:x,rightLabel:k,leftYear:_,rightYear:C}=od({unlinkPanels:(0,l.lW)(n,"unlinkPanels"),leftDate:a,rightDate:i}),E=(0,s.EW)((()=>n.unlinkPanels&&C.value>_.value+1)),R=(0,l.KR)(),S=(0,l.KR)(),T=(0,l.KR)({endDate:null,selecting:!1}),M=e=>{T.value=e},L=(e,n=!0)=>{const r=e.minDate,a=e.maxDate;S.value===a&&R.value===r||(t("calendar-change",[r.toDate(),a&&a.toDate()]),S.value=a,R.value=r,n&&O())},O=(e=!1)=>{ru([R.value,S.value])&&t("pick",[R.value,S.value],e)},I=e=>{T.value.selecting=e,e||(T.value.endDate=null)},N=(0,s.WQ)("EP_PICKER_BASE"),{shortcuts:B,disabledDate:D}=N.props,F=(0,l.lW)(N.props,"format"),$=(0,l.lW)(N.props,"defaultValue"),P=()=>{let e;if((0,c.cy)($.value)){const e=ja($.value[0]);let t=ja($.value[1]);return n.unlinkPanels||(t=e.add(10,sd)),[e,t]}return e=$.value?ja($.value):ja(),e=e.locale(r.value),[e,e.add(10,sd)]};(0,s.wB)((()=>$.value),(e=>{if(e){const e=P();a.value=e[0],i.value=e[1]}}),{immediate:!0}),(0,s.wB)((()=>n.parsedValue),(e=>{if(e&&2===e.length)if(R.value=e[0],S.value=e[1],a.value=R.value,n.unlinkPanels&&S.value){const e=R.value.year(),t=S.value.year();i.value=e===t?S.value.add(10,"year"):S.value}else i.value=a.value.add(10,"year");else{const e=P();R.value=void 0,S.value=void 0,a.value=e[0],i.value=e[1]}}),{immediate:!0});const z=e=>(0,c.cy)(e)?e.map((e=>ja(e,F.value).locale(r.value))):ja(e,F.value).locale(r.value),W=e=>(0,c.cy)(e)?e.map((e=>e.format(F.value))):e.format(F.value),j=e=>ru(e)&&(!D||!D(e[0].toDate())&&!D(e[1].toDate())),V=()=>{const e=P();a.value=e[0],i.value=e[1],S.value=void 0,R.value=void 0,t("pick",null)};return t("set-picker-option",["isValidValue",j]),t("set-picker-option",["parseUserInput",z]),t("set-picker-option",["formatToString",W]),t("set-picker-option",["handleClear",V]),(e,t)=>((0,s.uX)(),(0,s.CE)("div",{class:(0,c.C4)((0,l.R1)(h))},[(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(o).e("body-wrapper"))},[(0,s.RG)(e.$slots,"sidebar",{class:(0,c.C4)((0,l.R1)(o).e("sidebar"))}),(0,l.R1)(d)?((0,s.uX)(),(0,s.CE)("div",{key:0,class:(0,c.C4)((0,l.R1)(o).e("sidebar"))},[((0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)((0,l.R1)(B),((e,t)=>((0,s.uX)(),(0,s.CE)("button",{key:t,type:"button",class:(0,c.C4)((0,l.R1)(o).e("shortcut")),onClick:t=>(0,l.R1)(m)(e)},(0,c.v_)(e.text),11,["onClick"])))),128))],2)):(0,s.Q3)("v-if",!0),(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(o).e("body"))},[(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(p).content)},[(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(u).e("header"))},[(0,s.Lk)("button",{type:"button",class:(0,c.C4)((0,l.R1)(p).arrowLeftBtn),onClick:(0,l.R1)(g)},[(0,s.RG)(e.$slots,"prev-year",{},(()=>[(0,s.bF)((0,l.R1)(A.tk),null,{default:(0,s.k6)((()=>[(0,s.bF)((0,l.R1)(H.V6m))])),_:1})]))],10,["onClick"]),e.unlinkPanels?((0,s.uX)(),(0,s.CE)("button",{key:0,type:"button",disabled:!(0,l.R1)(E),class:(0,c.C4)((0,l.R1)(p).arrowRightBtn),onClick:(0,l.R1)(b)},[(0,s.RG)(e.$slots,"next-year",{},(()=>[(0,s.bF)((0,l.R1)(A.tk),null,{default:(0,s.k6)((()=>[(0,s.bF)((0,l.R1)(H.u$D))])),_:1})]))],10,["disabled","onClick"])):(0,s.Q3)("v-if",!0),(0,s.Lk)("div",null,(0,c.v_)((0,l.R1)(x)),1)],2),(0,s.bF)(Cu,{"selection-mode":"range",date:a.value,"min-date":R.value,"max-date":S.value,"range-state":T.value,"disabled-date":(0,l.R1)(D),onChangerange:M,onPick:L,onSelect:I},null,8,["date","min-date","max-date","range-state","disabled-date"])],2),(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(f).content)},[(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(u).e("header"))},[e.unlinkPanels?((0,s.uX)(),(0,s.CE)("button",{key:0,type:"button",disabled:!(0,l.R1)(E),class:(0,c.C4)((0,l.R1)(f).arrowLeftBtn),onClick:(0,l.R1)(w)},[(0,s.RG)(e.$slots,"prev-year",{},(()=>[(0,s.bF)((0,l.R1)(A.tk),null,{default:(0,s.k6)((()=>[(0,s.bF)((0,l.R1)(H.V6m))])),_:1})]))],10,["disabled","onClick"])):(0,s.Q3)("v-if",!0),(0,s.Lk)("button",{type:"button",class:(0,c.C4)((0,l.R1)(f).arrowRightBtn),onClick:(0,l.R1)(y)},[(0,s.RG)(e.$slots,"next-year",{},(()=>[(0,s.bF)((0,l.R1)(A.tk),null,{default:(0,s.k6)((()=>[(0,s.bF)((0,l.R1)(H.u$D))])),_:1})]))],10,["onClick"]),(0,s.Lk)("div",null,(0,c.v_)((0,l.R1)(k)),1)],2),(0,s.bF)(Cu,{"selection-mode":"range",date:i.value,"min-date":R.value,"max-date":S.value,"range-state":T.value,"disabled-date":(0,l.R1)(D),onChangerange:M,onPick:L,onSelect:I},null,8,["date","min-date","max-date","range-state","disabled-date"])],2)],2)],2)],2))}});var ud=(0,g.A)(cd,[["__file","panel-year-range.vue"]]);const dd=function(e){switch(e){case"daterange":case"datetimerange":return Yu;case"monthrange":return rd;case"yearrange":return ud;default:return Uu}},hd=(0,s.pM)({name:"PickerRangeTrigger",inheritAttrs:!1}),pd=(0,s.pM)({...hd,props:Xc,emits:["mouseenter","mouseleave","click","touchstart","focus","blur","startInput","endInput","startChange","endChange"],setup(e,{expose:t,emit:n}){const r=(0,na.O)(),a=(0,v.DU)("date"),i=(0,v.DU)("range"),o=(0,l.KR)(),u=(0,l.KR)(),{wrapperRef:d,isFocused:h}=(0,cc.K)(o),p=e=>{n("click",e)},f=e=>{n("mouseenter",e)},m=e=>{n("mouseleave",e)},g=e=>{n("mouseenter",e)},y=e=>{n("startInput",e)},b=e=>{n("endInput",e)},w=e=>{n("startChange",e)},x=e=>{n("endChange",e)},k=()=>{var e;null==(e=o.value)||e.focus()},_=()=>{var e,t;null==(e=o.value)||e.blur(),null==(t=u.value)||t.blur()};return t({focus:k,blur:_}),(e,t)=>((0,s.uX)(),(0,s.CE)("div",{ref_key:"wrapperRef",ref:d,class:(0,c.C4)([(0,l.R1)(a).is("active",(0,l.R1)(h)),e.$attrs.class]),style:(0,c.Tr)(e.$attrs.style),onClick:p,onMouseenter:f,onMouseleave:m,onTouchstartPassive:g},[(0,s.RG)(e.$slots,"prefix"),(0,s.Lk)("input",(0,s.v6)((0,l.R1)(r),{id:e.id&&e.id[0],ref_key:"inputRef",ref:o,name:e.name&&e.name[0],placeholder:e.startPlaceholder,value:e.modelValue&&e.modelValue[0],class:(0,l.R1)(i).b("input"),onInput:y,onChange:w}),null,16,["id","name","placeholder","value"]),(0,s.RG)(e.$slots,"range-separator"),(0,s.Lk)("input",(0,s.v6)((0,l.R1)(r),{id:e.id&&e.id[1],ref_key:"endInputRef",ref:u,name:e.name&&e.name[1],placeholder:e.endPlaceholder,value:e.modelValue&&e.modelValue[1],class:(0,l.R1)(i).b("input"),onInput:b,onChange:x}),null,16,["id","name","placeholder","value"]),(0,s.RG)(e.$slots,"suffix")],38))}});var fd=(0,g.A)(pd,[["__file","picker-range-trigger.vue"]]);const md=(0,s.pM)({name:"Picker"}),gd=(0,s.pM)({...md,props:Gc,emits:["update:modelValue","change","focus","blur","clear","calendar-change","panel-change","visible-change","keydown"],setup(e,{expose:t,emit:n}){const r=e,a=(0,s.OA)(),{lang:i}=(0,La.Ym)(),o=(0,v.DU)("date"),d=(0,v.DU)("input"),h=(0,v.DU)("range"),{form:p,formItem:f}=(0,co.j)(),m=(0,s.WQ)("ElPopperOptions",{}),{valueOnClear:g}=(0,Ms.fQ)(r,null),y=(0,l.KR)(),b=(0,l.KR)(),x=(0,l.KR)(!1),k=(0,l.KR)(!1),_=(0,l.KR)(null);let C=!1;const{isFocused:E,handleFocus:R,handleBlur:T}=(0,cc.K)(b,{beforeFocus(){return r.readonly||V.value},afterFocus(){x.value=!0},beforeBlur(e){var t;return!C&&(null==(t=y.value)?void 0:t.isFocusInsideContent(e))},afterBlur(){he(),x.value=!1,C=!1,r.validateEvent&&(null==f||f.validate("blur").catch((e=>(0,w.U)(e))))}}),M=(0,s.EW)((()=>[o.b("editor"),o.bm("editor",r.type),d.e("wrapper"),o.is("disabled",V.value),o.is("active",x.value),h.b("editor"),le?h.bm("editor",le.value):"",a.class])),L=(0,s.EW)((()=>[d.e("icon"),h.e("close-icon"),ee.value?"":h.e("close-icon--hidden")]));(0,s.wB)(x,(e=>{e?(0,s.dY)((()=>{e&&(_.value=r.modelValue)})):(de.value=null,(0,s.dY)((()=>{O(r.modelValue)})))}));const O=(e,t)=>{!t&&Ga(e,_.value)||(n("change",e),r.validateEvent&&(null==f||f.validate("change").catch((e=>(0,w.U)(e)))))},I=e=>{if(!Ga(r.modelValue,e)){let t;(0,c.cy)(e)?t=e.map((e=>Ya(e,r.valueFormat,i.value))):e&&(t=Ya(e,r.valueFormat,i.value)),n("update:modelValue",e?t:e,i.value)}},N=e=>{n("keydown",e)},B=(0,s.EW)((()=>b.value?Array.from(b.value.$el.querySelectorAll("input")):[])),D=(e,t,n)=>{const r=B.value;r.length&&(n&&"min"!==n?"max"===n&&(r[1].setSelectionRange(e,t),r[1].focus()):(r[0].setSelectionRange(e,t),r[0].focus()))},F=(e="",t=!1)=>{let n;x.value=t,n=(0,c.cy)(e)?e.map((e=>e.toDate())):e?e.toDate():e,de.value=null,I(n)},$=()=>{k.value=!0},P=()=>{n("visible-change",!0)},z=()=>{k.value=!1,x.value=!1,n("visible-change",!1)},W=()=>{x.value=!0},j=()=>{x.value=!1},V=(0,s.EW)((()=>r.disabled||(null==p?void 0:p.disabled))),U=(0,s.EW)((()=>{let e;if(ne.value?ke.value.getDefaultValue&&(e=ke.value.getDefaultValue()):e=(0,c.cy)(r.modelValue)?r.modelValue.map((e=>Xa(e,r.valueFormat,i.value))):Xa(r.modelValue,r.valueFormat,i.value),ke.value.getRangeAvailableTime){const t=ke.value.getRangeAvailableTime(e);Ji(t,e)||(e=t,ne.value||I(Za(e)))}return(0,c.cy)(e)&&e.some((e=>!e))&&(e=[]),e})),K=(0,s.EW)((()=>{if(!ke.value.panelReady)return"";const e=fe(U.value);return(0,c.cy)(de.value)?[de.value[0]||e&&e[0]||"",de.value[1]||e&&e[1]||""]:null!==de.value?de.value:!X.value&&ne.value||!x.value&&ne.value?"":e?Y.value||Q.value||Z.value?e.join(", "):e:""})),G=(0,s.EW)((()=>r.type.includes("time"))),X=(0,s.EW)((()=>r.type.startsWith("time"))),Y=(0,s.EW)((()=>"dates"===r.type)),Q=(0,s.EW)((()=>"months"===r.type)),Z=(0,s.EW)((()=>"years"===r.type)),J=(0,s.EW)((()=>r.prefixIcon||(G.value?H.zD7:H.VvS))),ee=(0,l.KR)(!1),te=e=>{r.readonly||V.value||(ee.value&&(e.stopPropagation(),ke.value.handleClear?ke.value.handleClear():I(g.value),O(g.value,!0),ee.value=!1,z()),n("clear"))},ne=(0,s.EW)((()=>{const{modelValue:e}=r;return!e||(0,c.cy)(e)&&!e.filter(Boolean).length})),re=async e=>{var t;r.readonly||V.value||("INPUT"!==(null==(t=e.target)?void 0:t.tagName)||E.value)&&(x.value=!0)},ae=()=>{r.readonly||V.value||!ne.value&&r.clearable&&(ee.value=!0)},ie=()=>{ee.value=!1},oe=e=>{var t;r.readonly||V.value||("INPUT"!==(null==(t=e.touches[0].target)?void 0:t.tagName)||E.value)&&(x.value=!0)},se=(0,s.EW)((()=>r.type.includes("range"))),le=(0,ra.NV)(),ce=(0,s.EW)((()=>{var e,t;return null==(t=null==(e=(0,l.R1)(y))?void 0:e.popperRef)?void 0:t.contentRef})),ue=(0,u.X2F)(b,(e=>{const t=(0,l.R1)(ce),n=(0,u.F4c)(b);t&&(e.target===t||e.composedPath().includes(t))||e.target===n||n&&e.composedPath().includes(n)||(x.value=!1)}));(0,s.xo)((()=>{null==ue||ue()}));const de=(0,l.KR)(null),he=()=>{if(de.value){const e=pe(K.value);e&&me(e)&&(I(Za(e)),de.value=null)}""===de.value&&(I(g.value),O(g.value),de.value=null)},pe=e=>e?ke.value.parseUserInput(e):null,fe=e=>e?ke.value.formatToString(e):null,me=e=>ke.value.isValidValue(e),ge=async e=>{if(r.readonly||V.value)return;const{code:t}=e;if(N(e),t!==$n.R.esc)if(t===$n.R.down&&(ke.value.handleFocusPicker&&(e.preventDefault(),e.stopPropagation()),!1===x.value&&(x.value=!0,await(0,s.dY)()),ke.value.handleFocusPicker))ke.value.handleFocusPicker();else{if(t!==$n.R.tab)return t===$n.R.enter||t===$n.R.numpadEnter?((null===de.value||""===de.value||me(pe(K.value)))&&(he(),x.value=!1),void e.stopPropagation()):void(de.value?e.stopPropagation():ke.value.handleKeydownInput&&ke.value.handleKeydownInput(e));C=!0}else!0===x.value&&(x.value=!1,e.preventDefault(),e.stopPropagation())},ve=e=>{de.value=e,x.value||(x.value=!0)},ye=e=>{const t=e.target;de.value?de.value=[t.value,de.value[1]]:de.value=[t.value,null]},be=e=>{const t=e.target;de.value?de.value=[de.value[0],t.value]:de.value=[null,t.value]},we=()=>{var e;const t=de.value,n=pe(t&&t[0]),r=(0,l.R1)(U);if(n&&n.isValid()){de.value=[fe(n),(null==(e=K.value)?void 0:e[1])||null];const t=[n,r&&(r[1]||null)];me(t)&&(I(Za(t)),de.value=null)}},xe=()=>{var e;const t=(0,l.R1)(de),n=pe(t&&t[1]),r=(0,l.R1)(U);if(n&&n.isValid()){de.value=[(null==(e=(0,l.R1)(K))?void 0:e[0])||null,fe(n)];const t=[r&&r[0],n];me(t)&&(I(Za(t)),de.value=null)}},ke=(0,l.KR)({}),_e=e=>{ke.value[e[0]]=e[1],ke.value.panelReady=!0},Ce=e=>{n("calendar-change",e)},Ee=(e,t,r)=>{n("panel-change",e,t,r)},Re=()=>{var e;null==(e=b.value)||e.focus()},Se=()=>{var e;null==(e=b.value)||e.blur()};return(0,s.Gt)("EP_PICKER_BASE",{props:r}),t({focus:Re,blur:Se,handleOpen:W,handleClose:j,onPick:F}),(e,t)=>((0,s.uX)(),(0,s.Wv)((0,l.R1)(Jr),(0,s.v6)({ref_key:"refPopper",ref:y,visible:x.value,effect:"light",pure:"",trigger:"click"},e.$attrs,{role:"dialog",teleported:"",transition:`${(0,l.R1)(o).namespace.value}-zoom-in-top`,"popper-class":[`${(0,l.R1)(o).namespace.value}-picker__popper`,e.popperClass],"popper-options":(0,l.R1)(m),"fallback-placements":e.fallbackPlacements,"gpu-acceleration":!1,placement:e.placement,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:$,onShow:P,onHide:z}),{default:(0,s.k6)((()=>[(0,l.R1)(se)?((0,s.uX)(),(0,s.Wv)(fd,{key:1,id:e.id,ref_key:"inputRef",ref:b,"model-value":(0,l.R1)(K),name:e.name,disabled:(0,l.R1)(V),readonly:!e.editable||e.readonly,"start-placeholder":e.startPlaceholder,"end-placeholder":e.endPlaceholder,class:(0,c.C4)((0,l.R1)(M)),style:(0,c.Tr)(e.$attrs.style),"aria-label":e.ariaLabel,tabindex:e.tabindex,autocomplete:"off",role:"combobox",onClick:re,onFocus:(0,l.R1)(R),onBlur:(0,l.R1)(T),onStartInput:ye,onStartChange:we,onEndInput:be,onEndChange:xe,onMousedown:re,onMouseenter:ae,onMouseleave:ie,onTouchstartPassive:oe,onKeydown:ge},{prefix:(0,s.k6)((()=>[(0,l.R1)(J)?((0,s.uX)(),(0,s.Wv)((0,l.R1)(A.tk),{key:0,class:(0,c.C4)([(0,l.R1)(d).e("icon"),(0,l.R1)(h).e("icon")])},{default:(0,s.k6)((()=>[((0,s.uX)(),(0,s.Wv)((0,s.$y)((0,l.R1)(J))))])),_:1},8,["class"])):(0,s.Q3)("v-if",!0)])),"range-separator":(0,s.k6)((()=>[(0,s.RG)(e.$slots,"range-separator",{},(()=>[(0,s.Lk)("span",{class:(0,c.C4)((0,l.R1)(h).b("separator"))},(0,c.v_)(e.rangeSeparator),3)]))])),suffix:(0,s.k6)((()=>[e.clearIcon?((0,s.uX)(),(0,s.Wv)((0,l.R1)(A.tk),{key:0,class:(0,c.C4)((0,l.R1)(L)),onMousedown:(0,S.D$)((0,l.R1)(c.tE),["prevent"]),onClick:te},{default:(0,s.k6)((()=>[((0,s.uX)(),(0,s.Wv)((0,s.$y)(e.clearIcon)))])),_:1},8,["class","onMousedown"])):(0,s.Q3)("v-if",!0)])),_:3},8,["id","model-value","name","disabled","readonly","start-placeholder","end-placeholder","class","style","aria-label","tabindex","onFocus","onBlur"])):((0,s.uX)(),(0,s.Wv)((0,l.R1)(q.WK),{key:0,id:e.id,ref_key:"inputRef",ref:b,"container-role":"combobox","model-value":(0,l.R1)(K),name:e.name,size:(0,l.R1)(le),disabled:(0,l.R1)(V),placeholder:e.placeholder,class:(0,c.C4)([(0,l.R1)(o).b("editor"),(0,l.R1)(o).bm("editor",e.type),e.$attrs.class]),style:(0,c.Tr)(e.$attrs.style),readonly:!e.editable||e.readonly||(0,l.R1)(Y)||(0,l.R1)(Q)||(0,l.R1)(Z)||"week"===e.type,"aria-label":e.ariaLabel,tabindex:e.tabindex,"validate-event":!1,onInput:ve,onFocus:(0,l.R1)(R),onBlur:(0,l.R1)(T),onKeydown:ge,onChange:he,onMousedown:re,onMouseenter:ae,onMouseleave:ie,onTouchstartPassive:oe,onClick:(0,S.D$)((()=>{}),["stop"])},{prefix:(0,s.k6)((()=>[(0,l.R1)(J)?((0,s.uX)(),(0,s.Wv)((0,l.R1)(A.tk),{key:0,class:(0,c.C4)((0,l.R1)(d).e("icon")),onMousedown:(0,S.D$)(re,["prevent"]),onTouchstartPassive:oe},{default:(0,s.k6)((()=>[((0,s.uX)(),(0,s.Wv)((0,s.$y)((0,l.R1)(J))))])),_:1},8,["class","onMousedown"])):(0,s.Q3)("v-if",!0)])),suffix:(0,s.k6)((()=>[ee.value&&e.clearIcon?((0,s.uX)(),(0,s.Wv)((0,l.R1)(A.tk),{key:0,class:(0,c.C4)(`${(0,l.R1)(d).e("icon")} clear-icon`),onMousedown:(0,S.D$)((0,l.R1)(c.tE),["prevent"]),onClick:te},{default:(0,s.k6)((()=>[((0,s.uX)(),(0,s.Wv)((0,s.$y)(e.clearIcon)))])),_:1},8,["class","onMousedown"])):(0,s.Q3)("v-if",!0)])),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","aria-label","tabindex","onFocus","onBlur","onClick"]))])),content:(0,s.k6)((()=>[(0,s.RG)(e.$slots,"default",{visible:x.value,actualVisible:k.value,parsedValue:(0,l.R1)(U),format:e.format,dateFormat:e.dateFormat,timeFormat:e.timeFormat,unlinkPanels:e.unlinkPanels,type:e.type,defaultValue:e.defaultValue,showNow:e.showNow,onPick:F,onSelectRange:D,onSetPickerOption:_e,onCalendarChange:Ce,onPanelChange:Ee,onMousedown:(0,S.D$)((()=>{}),["stop"])})])),_:3},16,["visible","transition","popper-class","popper-options","fallback-placements","placement"]))}});var vd=(0,g.A)(gd,[["__file","picker.vue"]]);ja.extend(ai),ja.extend(Pc),ja.extend($c),ja.extend(zc),ja.extend(Wc),ja.extend(jc),ja.extend(Vc),ja.extend(Uc);var yd=(0,s.pM)({name:"ElDatePicker",install:null,props:Yc,emits:["update:modelValue"],setup(e,{expose:t,emit:n,slots:r}){const a=(0,v.DU)("picker-panel");(0,s.Gt)("ElPopperOptions",(0,l.Kh)((0,l.lW)(e,"popperOptions"))),(0,s.Gt)(Kc,{slots:r,pickerNs:a});const i=(0,l.KR)(),o={focus:()=>{var e;null==(e=i.value)||e.focus()},blur:()=>{var e;null==(e=i.value)||e.blur()},handleOpen:()=>{var e;null==(e=i.value)||e.handleOpen()},handleClose:()=>{var e;null==(e=i.value)||e.handleClose()}};t(o);const c=e=>{n("update:modelValue",e)};return()=>{var t;const n=null!=(t=e.format)?t:Nu[e.type]||Iu,a=dd(e.type);return(0,s.bF)(vd,(0,s.v6)(e,{format:n,type:e.type,ref:i,"onUpdate:modelValue":c}),{default:e=>(0,s.bF)(a,e,{"prev-month":r["prev-month"],"next-month":r["next-month"],"prev-year":r["prev-year"],"next-year":r["next-year"]}),"range-separator":r["range-separator"]})}}});const bd=(0,E.GU)(yd),wd=Symbol("elDescriptions");var xd=(0,s.pM)({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String,default:"td"},type:{type:String}},setup(){const e=(0,s.WQ)(wd,{});return{descriptions:e}},render(){var e;const t=(0,Ni.oh)(this.cell),n=((null==(e=this.cell)?void 0:e.dirs)||[]).map((e=>{const{dir:t,arg:n,modifiers:r,value:a}=e;return[t,a,n,r]})),{border:r,direction:a}=this.descriptions,i="vertical"===a,o=()=>{var e,n,r;return(null==(r=null==(n=null==(e=this.cell)?void 0:e.children)?void 0:n.label)?void 0:r.call(n))||t.label},l=()=>{var e,t,n;return null==(n=null==(t=null==(e=this.cell)?void 0:e.children)?void 0:t.default)?void 0:n.call(t)},c=t.span,u=t.rowspan,d=t.align?`is-${t.align}`:"",h=t.labelAlign?`is-${t.labelAlign}`:d,p=t.className,f=t.labelClassName,m="label"===this.type&&(t.labelWidth||this.descriptions.labelWidth)||t.width,g={width:(0,b._V)(m),minWidth:(0,b._V)(t.minWidth)},y=(0,v.DU)("descriptions");switch(this.type){case"label":return(0,s.bo)((0,s.h)(this.tag,{style:g,class:[y.e("cell"),y.e("label"),y.is("bordered-label",r),y.is("vertical-label",i),h,f],colSpan:i?c:1,rowspan:i?1:u},o()),n);case"content":return(0,s.bo)((0,s.h)(this.tag,{style:g,class:[y.e("cell"),y.e("content"),y.is("bordered-content",r),y.is("vertical-content",i),d,p],colSpan:i?c:2*c-1,rowspan:i?2*u-1:u},l()),n);default:{const e=o(),r={},a=(0,b._V)(t.labelWidth||this.descriptions.labelWidth);return a&&(r.width=a,r.display="inline-block"),(0,s.bo)((0,s.h)("td",{style:g,class:[y.e("cell"),d],colSpan:c,rowspan:u},[(0,er.A)(e)?void 0:(0,s.h)("span",{style:r,class:[y.e("label"),f]},e),(0,s.h)("span",{class:[y.e("content"),p]},l())]),n)}}}});const kd=(0,h.b_)({row:{type:(0,h.jq)(Array),default:()=>[]}}),_d=(0,s.pM)({name:"ElDescriptionsRow"}),Cd=(0,s.pM)({..._d,props:kd,setup(e){const t=(0,s.WQ)(wd,{});return(e,n)=>"vertical"===(0,l.R1)(t).direction?((0,s.uX)(),(0,s.CE)(s.FK,{key:0},[(0,s.Lk)("tr",null,[((0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)(e.row,((e,t)=>((0,s.uX)(),(0,s.Wv)((0,l.R1)(xd),{key:`tr1-${t}`,cell:e,tag:"th",type:"label"},null,8,["cell"])))),128))]),(0,s.Lk)("tr",null,[((0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)(e.row,((e,t)=>((0,s.uX)(),(0,s.Wv)((0,l.R1)(xd),{key:`tr2-${t}`,cell:e,tag:"td",type:"content"},null,8,["cell"])))),128))])],64)):((0,s.uX)(),(0,s.CE)("tr",{key:1},[((0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)(e.row,((e,n)=>((0,s.uX)(),(0,s.CE)(s.FK,{key:`tr3-${n}`},[(0,l.R1)(t).border?((0,s.uX)(),(0,s.CE)(s.FK,{key:0},[(0,s.bF)((0,l.R1)(xd),{cell:e,tag:"td",type:"label"},null,8,["cell"]),(0,s.bF)((0,l.R1)(xd),{cell:e,tag:"td",type:"content"},null,8,["cell"])],64)):((0,s.uX)(),(0,s.Wv)((0,l.R1)(xd),{key:1,cell:e,tag:"td",type:"both"},null,8,["cell"]))],64)))),128))]))}});var Ed=(0,g.A)(Cd,[["__file","descriptions-row.vue"]]);const Rd=(0,h.b_)({border:Boolean,column:{type:Number,default:3},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},size:ao.mU,title:{type:String,default:""},extra:{type:String,default:""},labelWidth:{type:[String,Number],default:""}}),Sd=(0,s.pM)({name:"ElDescriptions"}),Ad=(0,s.pM)({...Sd,props:Rd,setup(e){const t=e,n=(0,v.DU)("descriptions"),r=(0,ra.NV)(),a=(0,s.Ht)();(0,s.Gt)(wd,t);const i=(0,s.EW)((()=>[n.b(),n.m(r.value)])),o=(e,t,n,r=!1)=>(e.props||(e.props={}),t>n&&(e.props.span=n),r&&(e.props.span=t),e),u=()=>{if(!a.default)return[];const e=(0,Ni.CW)(a.default()).filter((e=>{var t;return"ElDescriptionsItem"===(null==(t=null==e?void 0:e.type)?void 0:t.name)})),n=[];let r=[],i=t.column,s=0;const l=[];return e.forEach(((a,c)=>{var u,d,h;const p=(null==(u=a.props)?void 0:u.span)||1,f=(null==(d=a.props)?void 0:d.rowspan)||1,m=n.length;if(l[m]||(l[m]=0),f>1)for(let e=1;e<f;e++)l[h=m+e]||(l[h]=0),l[m+e]++,s++;if(l[m]>0&&(i-=l[m],l[m]=0),c<e.length-1&&(s+=p>i?i:p),c===e.length-1){const e=t.column-s%t.column;return r.push(o(a,e,i,!0)),void n.push(r)}p<i?(i-=p,r.push(a)):(r.push(o(a,p,i)),n.push(r),i=t.column,r=[])})),n};return(e,t)=>((0,s.uX)(),(0,s.CE)("div",{class:(0,c.C4)((0,l.R1)(i))},[e.title||e.extra||e.$slots.title||e.$slots.extra?((0,s.uX)(),(0,s.CE)("div",{key:0,class:(0,c.C4)((0,l.R1)(n).e("header"))},[(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(n).e("title"))},[(0,s.RG)(e.$slots,"title",{},(()=>[(0,s.eW)((0,c.v_)(e.title),1)]))],2),(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(n).e("extra"))},[(0,s.RG)(e.$slots,"extra",{},(()=>[(0,s.eW)((0,c.v_)(e.extra),1)]))],2)],2)):(0,s.Q3)("v-if",!0),(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(n).e("body"))},[(0,s.Lk)("table",{class:(0,c.C4)([(0,l.R1)(n).e("table"),(0,l.R1)(n).is("bordered",e.border)])},[(0,s.Lk)("tbody",null,[((0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)(u(),((e,t)=>((0,s.uX)(),(0,s.Wv)(Ed,{key:t,row:e},null,8,["row"])))),128))])],2)],2)],2))}});var Td=(0,g.A)(Ad,[["__file","description.vue"]]);const Md=(0,h.b_)({label:{type:String,default:""},span:{type:Number,default:1},rowspan:{type:Number,default:1},width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},labelWidth:{type:[String,Number],default:""},align:{type:String,default:"left"},labelAlign:{type:String,default:""},className:{type:String,default:""},labelClassName:{type:String,default:""}}),Ld=(0,s.pM)({name:"ElDescriptionsItem",props:Md}),Od=(0,E.GU)(Td,{DescriptionsItem:Ld}),Id=(0,E.WM)(Ld);var Nd=n(6714);const Bd=Symbol("dialogInjectionKey"),Dd=(0,h.b_)({center:Boolean,alignCenter:Boolean,closeIcon:{type:T.Ze},draggable:Boolean,overflow:Boolean,fullscreen:Boolean,headerClass:String,bodyClass:String,footerClass:String,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),Fd={close:()=>!0};var $d=n(3291),Pd=n(7833);const zd=(...e)=>t=>{e.forEach((e=>{(0,c.Tn)(e)?e(t):e.value=t}))},Wd=(0,s.pM)({name:"ElDialogContent"}),jd=(0,s.pM)({...Wd,props:Dd,emits:Fd,setup(e,{expose:t}){const n=e,{t:r}=(0,La.Ym)(),{Close:a}=T.H2,{dialogRef:i,headerRef:o,bodyId:u,ns:d,style:h}=(0,s.WQ)(Bd),{focusTrapRef:p}=(0,s.WQ)($d.r3),f=(0,s.EW)((()=>[d.b(),d.is("fullscreen",n.fullscreen),d.is("draggable",n.draggable),d.is("align-center",n.alignCenter),{[d.m("center")]:n.center}])),m=zd(p,i),g=(0,s.EW)((()=>n.draggable)),v=(0,s.EW)((()=>n.overflow)),{resetPosition:y}=(0,Pd.P)(i,o,g,v);return t({resetPosition:y}),(e,t)=>((0,s.uX)(),(0,s.CE)("div",{ref:(0,l.R1)(m),class:(0,c.C4)((0,l.R1)(f)),style:(0,c.Tr)((0,l.R1)(h)),tabindex:"-1"},[(0,s.Lk)("header",{ref_key:"headerRef",ref:o,class:(0,c.C4)([(0,l.R1)(d).e("header"),e.headerClass,{"show-close":e.showClose}])},[(0,s.RG)(e.$slots,"header",{},(()=>[(0,s.Lk)("span",{role:"heading","aria-level":e.ariaLevel,class:(0,c.C4)((0,l.R1)(d).e("title"))},(0,c.v_)(e.title),11,["aria-level"])])),e.showClose?((0,s.uX)(),(0,s.CE)("button",{key:0,"aria-label":(0,l.R1)(r)("el.dialog.close"),class:(0,c.C4)((0,l.R1)(d).e("headerbtn")),type:"button",onClick:t=>e.$emit("close")},[(0,s.bF)((0,l.R1)(A.tk),{class:(0,c.C4)((0,l.R1)(d).e("close"))},{default:(0,s.k6)((()=>[((0,s.uX)(),(0,s.Wv)((0,s.$y)(e.closeIcon||(0,l.R1)(a))))])),_:1},8,["class"])],10,["aria-label","onClick"])):(0,s.Q3)("v-if",!0)],2),(0,s.Lk)("div",{id:(0,l.R1)(u),class:(0,c.C4)([(0,l.R1)(d).e("body"),e.bodyClass])},[(0,s.RG)(e.$slots,"default")],10,["id"]),e.$slots.footer?((0,s.uX)(),(0,s.CE)("footer",{key:0,class:(0,c.C4)([(0,l.R1)(d).e("footer"),e.footerClass])},[(0,s.RG)(e.$slots,"footer")],2)):(0,s.Q3)("v-if",!0)],6))}});var Vd=(0,g.A)(jd,[["__file","dialog-content.vue"]]);const Ud=(0,h.b_)({...Dd,appendToBody:Boolean,appendTo:{type:(0,h.jq)([String,Object]),default:"body"},beforeClose:{type:(0,h.jq)(Function)},destroyOnClose:Boolean,closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:Boolean,modalClass:String,headerClass:String,bodyClass:String,footerClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:Boolean,headerAriaLevel:{type:String,default:"2"}}),Kd={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[d.l4]:e=>(0,p.Lm)(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0};var Hd=n(2667);const qd=(e,t)=>{var n;const r=(0,s.nI)(),a=r.emit,{nextZIndex:o}=(0,Fr.YK)();let c="";const u=(0,xr.Bi)(),h=(0,xr.Bi)(),p=(0,l.KR)(!1),f=(0,l.KR)(!1),m=(0,l.KR)(!1),g=(0,l.KR)(null!=(n=e.zIndex)?n:o());let y,w;const x=(0,i.H3)("namespace",v.Lt),k=(0,s.EW)((()=>{const t={},n=`--${x.value}-dialog`;return e.fullscreen||(e.top&&(t[`${n}-margin-top`]=e.top),e.width&&(t[`${n}-width`]=(0,b._V)(e.width))),t})),_=(0,s.EW)((()=>e.alignCenter?{display:"flex"}:{}));function C(){a("opened")}function E(){a("closed"),a(d.l4,!1),e.destroyOnClose&&(m.value=!1)}function R(){a("close")}function S(){null==w||w(),null==y||y(),e.openDelay&&e.openDelay>0?({stop:y}=(0,Q.TO)((()=>L()),e.openDelay)):L()}function A(){null==y||y(),null==w||w(),e.closeDelay&&e.closeDelay>0?({stop:w}=(0,Q.TO)((()=>O()),e.closeDelay)):O()}function T(){function t(e){e||(f.value=!0,p.value=!1)}e.beforeClose?e.beforeClose(t):A()}function M(){e.closeOnClickModal&&T()}function L(){Q.oc&&(p.value=!0)}function O(){p.value=!1}function I(){a("openAutoFocus")}function N(){a("closeAutoFocus")}function B(e){var t;"pointer"===(null==(t=e.detail)?void 0:t.focusReason)&&e.preventDefault()}function D(){e.closeOnPressEscape&&T()}return e.lockScroll&&(0,Hd.t)(p),(0,s.wB)((()=>e.modelValue),(n=>{n?(f.value=!1,S(),m.value=!0,g.value=(0,Sr.A)(e.zIndex)?o():g.value++,(0,s.dY)((()=>{a("open"),t.value&&(t.value.parentElement.scrollTop=0,t.value.parentElement.scrollLeft=0,t.value.scrollTop=0)}))):p.value&&A()})),(0,s.wB)((()=>e.fullscreen),(e=>{t.value&&(e?(c=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=c)})),(0,s.sV)((()=>{e.modelValue&&(p.value=!0,m.value=!0,S())})),{afterEnter:C,afterLeave:E,beforeLeave:R,handleClose:T,onModalClick:M,close:A,doClose:O,onOpenAutoFocus:I,onCloseAutoFocus:N,onCloseRequested:D,onFocusoutPrevented:B,titleId:u,bodyId:h,closed:f,style:k,overlayDialogStyle:_,rendered:m,visible:p,zIndex:g}};var Gd=n(1968);const Xd=(0,s.pM)({name:"ElDialog",inheritAttrs:!1}),Yd=(0,s.pM)({...Xd,props:Ud,emits:Kd,setup(e,{expose:t}){const n=e,r=(0,s.Ht)();(0,fo.b)({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},(0,s.EW)((()=>!!r.title)));const a=(0,v.DU)("dialog"),i=(0,l.KR)(),o=(0,l.KR)(),u=(0,l.KR)(),{visible:d,titleId:h,bodyId:p,style:f,overlayDialogStyle:m,rendered:g,zIndex:y,afterEnter:b,afterLeave:w,beforeLeave:x,handleClose:k,onModalClick:_,onOpenAutoFocus:C,onCloseAutoFocus:E,onCloseRequested:R,onFocusoutPrevented:A}=qd(n,i);(0,s.Gt)(Bd,{dialogRef:i,headerRef:o,bodyId:p,ns:a,rendered:g,style:f});const T=(0,Gd.r)(_),M=(0,s.EW)((()=>n.draggable&&!n.fullscreen)),L=()=>{var e;null==(e=u.value)||e.resetPosition()};return t({visible:d,dialogContentRef:u,resetPosition:L}),(e,t)=>((0,s.uX)(),(0,s.Wv)((0,l.R1)(wr),{to:e.appendTo,disabled:"body"===e.appendTo&&!e.appendToBody},{default:(0,s.k6)((()=>[(0,s.bF)(S.eB,{name:"dialog-fade",onAfterEnter:(0,l.R1)(b),onAfterLeave:(0,l.R1)(w),onBeforeLeave:(0,l.R1)(x),persisted:""},{default:(0,s.k6)((()=>[(0,s.bo)((0,s.bF)((0,l.R1)(Nd._q),{"custom-mask-event":"",mask:e.modal,"overlay-class":e.modalClass,"z-index":(0,l.R1)(y)},{default:(0,s.k6)((()=>[(0,s.Lk)("div",{role:"dialog","aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:(0,l.R1)(h),"aria-describedby":(0,l.R1)(p),class:(0,c.C4)(`${(0,l.R1)(a).namespace.value}-overlay-dialog`),style:(0,c.Tr)((0,l.R1)(m)),onClick:(0,l.R1)(T).onClick,onMousedown:(0,l.R1)(T).onMousedown,onMouseup:(0,l.R1)(T).onMouseup},[(0,s.bF)((0,l.R1)(Er.A),{loop:"",trapped:(0,l.R1)(d),"focus-start-el":"container",onFocusAfterTrapped:(0,l.R1)(C),onFocusAfterReleased:(0,l.R1)(E),onFocusoutPrevented:(0,l.R1)(A),onReleaseRequested:(0,l.R1)(R)},{default:(0,s.k6)((()=>[(0,l.R1)(g)?((0,s.uX)(),(0,s.Wv)(Vd,(0,s.v6)({key:0,ref_key:"dialogContentRef",ref:u},e.$attrs,{center:e.center,"align-center":e.alignCenter,"close-icon":e.closeIcon,draggable:(0,l.R1)(M),overflow:e.overflow,fullscreen:e.fullscreen,"header-class":e.headerClass,"body-class":e.bodyClass,"footer-class":e.footerClass,"show-close":e.showClose,title:e.title,"aria-level":e.headerAriaLevel,onClose:(0,l.R1)(k)}),(0,s.eX)({header:(0,s.k6)((()=>[e.$slots.title?(0,s.RG)(e.$slots,"title",{key:1}):(0,s.RG)(e.$slots,"header",{key:0,close:(0,l.R1)(k),titleId:(0,l.R1)(h),titleClass:(0,l.R1)(a).e("title")})])),default:(0,s.k6)((()=>[(0,s.RG)(e.$slots,"default")])),_:2},[e.$slots.footer?{name:"footer",fn:(0,s.k6)((()=>[(0,s.RG)(e.$slots,"footer")]))}:void 0]),1040,["center","align-center","close-icon","draggable","overflow","fullscreen","header-class","body-class","footer-class","show-close","title","aria-level","onClose"])):(0,s.Q3)("v-if",!0)])),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,["aria-label","aria-labelledby","aria-describedby","onClick","onMousedown","onMouseup"])])),_:3},8,["mask","overlay-class","z-index"]),[[S.aG,(0,l.R1)(d)]])])),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])])),_:3},8,["to","disabled"]))}});var Qd=(0,g.A)(Yd,[["__file","dialog.vue"]]);const Zd=(0,E.GU)(Qd),Jd=(0,h.b_)({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:(0,h.jq)(String),default:"solid"}}),eh=(0,s.pM)({name:"ElDivider"}),th=(0,s.pM)({...eh,props:Jd,setup(e){const t=e,n=(0,v.DU)("divider"),r=(0,s.EW)((()=>n.cssVar({"border-style":t.borderStyle})));return(e,t)=>((0,s.uX)(),(0,s.CE)("div",{class:(0,c.C4)([(0,l.R1)(n).b(),(0,l.R1)(n).m(e.direction)]),style:(0,c.Tr)((0,l.R1)(r)),role:"separator"},[e.$slots.default&&"vertical"!==e.direction?((0,s.uX)(),(0,s.CE)("div",{key:0,class:(0,c.C4)([(0,l.R1)(n).e("text"),(0,l.R1)(n).is(e.contentPosition)])},[(0,s.RG)(e.$slots,"default")],2)):(0,s.Q3)("v-if",!0)],6))}});var nh=(0,g.A)(th,[["__file","divider.vue"]]);const rh=(0,E.GU)(nh),ah=(0,h.b_)({...Ud,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0},headerAriaLevel:{type:String,default:"2"}}),ih=Kd,oh=(0,s.pM)({name:"ElDrawer",inheritAttrs:!1}),sh=(0,s.pM)({...oh,props:ah,emits:ih,setup(e,{expose:t}){const n=e,r=(0,s.Ht)();(0,fo.b)({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},(0,s.EW)((()=>!!r.title)));const a=(0,l.KR)(),i=(0,l.KR)(),o=(0,v.DU)("drawer"),{t:u}=(0,La.Ym)(),{afterEnter:d,afterLeave:h,beforeLeave:p,visible:f,rendered:m,titleId:g,bodyId:y,zIndex:w,onModalClick:x,onOpenAutoFocus:k,onCloseAutoFocus:_,onFocusoutPrevented:C,onCloseRequested:E,handleClose:R}=qd(n,a),T=(0,s.EW)((()=>"rtl"===n.direction||"ltr"===n.direction)),M=(0,s.EW)((()=>(0,b._V)(n.size)));return t({handleClose:R,afterEnter:d,afterLeave:h}),(e,t)=>((0,s.uX)(),(0,s.Wv)((0,l.R1)(wr),{to:e.appendTo,disabled:"body"===e.appendTo&&!e.appendToBody},{default:(0,s.k6)((()=>[(0,s.bF)(S.eB,{name:(0,l.R1)(o).b("fade"),onAfterEnter:(0,l.R1)(d),onAfterLeave:(0,l.R1)(h),onBeforeLeave:(0,l.R1)(p),persisted:""},{default:(0,s.k6)((()=>[(0,s.bo)((0,s.bF)((0,l.R1)(Nd._q),{mask:e.modal,"overlay-class":e.modalClass,"z-index":(0,l.R1)(w),onClick:(0,l.R1)(x)},{default:(0,s.k6)((()=>[(0,s.bF)((0,l.R1)(Er.A),{loop:"",trapped:(0,l.R1)(f),"focus-trap-el":a.value,"focus-start-el":i.value,onFocusAfterTrapped:(0,l.R1)(k),onFocusAfterReleased:(0,l.R1)(_),onFocusoutPrevented:(0,l.R1)(C),onReleaseRequested:(0,l.R1)(E)},{default:(0,s.k6)((()=>[(0,s.Lk)("div",(0,s.v6)({ref_key:"drawerRef",ref:a,"aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:(0,l.R1)(g),"aria-describedby":(0,l.R1)(y)},e.$attrs,{class:[(0,l.R1)(o).b(),e.direction,(0,l.R1)(f)&&"open"],style:(0,l.R1)(T)?"width: "+(0,l.R1)(M):"height: "+(0,l.R1)(M),role:"dialog",onClick:(0,S.D$)((()=>{}),["stop"])}),[(0,s.Lk)("span",{ref_key:"focusStartRef",ref:i,class:(0,c.C4)((0,l.R1)(o).e("sr-focus")),tabindex:"-1"},null,2),e.withHeader?((0,s.uX)(),(0,s.CE)("header",{key:0,class:(0,c.C4)([(0,l.R1)(o).e("header"),e.headerClass])},[e.$slots.title?(0,s.RG)(e.$slots,"title",{key:1},(()=>[(0,s.Q3)(" DEPRECATED SLOT ")])):(0,s.RG)(e.$slots,"header",{key:0,close:(0,l.R1)(R),titleId:(0,l.R1)(g),titleClass:(0,l.R1)(o).e("title")},(()=>[e.$slots.title?(0,s.Q3)("v-if",!0):((0,s.uX)(),(0,s.CE)("span",{key:0,id:(0,l.R1)(g),role:"heading","aria-level":e.headerAriaLevel,class:(0,c.C4)((0,l.R1)(o).e("title"))},(0,c.v_)(e.title),11,["id","aria-level"]))])),e.showClose?((0,s.uX)(),(0,s.CE)("button",{key:2,"aria-label":(0,l.R1)(u)("el.drawer.close"),class:(0,c.C4)((0,l.R1)(o).e("close-btn")),type:"button",onClick:(0,l.R1)(R)},[(0,s.bF)((0,l.R1)(A.tk),{class:(0,c.C4)((0,l.R1)(o).e("close"))},{default:(0,s.k6)((()=>[(0,s.bF)((0,l.R1)(H.bm))])),_:1},8,["class"])],10,["aria-label","onClick"])):(0,s.Q3)("v-if",!0)],2)):(0,s.Q3)("v-if",!0),(0,l.R1)(m)?((0,s.uX)(),(0,s.CE)("div",{key:1,id:(0,l.R1)(y),class:(0,c.C4)([(0,l.R1)(o).e("body"),e.bodyClass])},[(0,s.RG)(e.$slots,"default")],10,["id"])):(0,s.Q3)("v-if",!0),e.$slots.footer?((0,s.uX)(),(0,s.CE)("div",{key:2,class:(0,c.C4)([(0,l.R1)(o).e("footer"),e.footerClass])},[(0,s.RG)(e.$slots,"footer")],2)):(0,s.Q3)("v-if",!0)],16,["aria-label","aria-labelledby","aria-describedby","onClick"])])),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])])),_:3},8,["mask","overlay-class","z-index","onClick"]),[[S.aG,(0,l.R1)(f)]])])),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])])),_:3},8,["to","disabled"]))}});var lh=(0,g.A)(sh,[["__file","drawer.vue"]]);const ch=(0,E.GU)(lh),uh=(0,s.pM)({inheritAttrs:!1});function dh(e,t,n,r,a,i){return(0,s.RG)(e.$slots,"default")}var hh=(0,g.A)(uh,[["render",dh],["__file","collection.vue"]]);const ph=(0,s.pM)({name:"ElCollectionItem",inheritAttrs:!1});function fh(e,t,n,r,a,i){return(0,s.RG)(e.$slots,"default")}var mh=(0,g.A)(ph,[["render",fh],["__file","collection-item.vue"]]);const gh="data-el-collection-item",vh=e=>{const t=`El${e}Collection`,n=`${t}Item`,r=Symbol(t),a=Symbol(n),i={...hh,name:t,setup(){const e=(0,l.KR)(null),t=new Map,n=()=>{const n=(0,l.R1)(e);if(!n)return[];const r=Array.from(n.querySelectorAll(`[${gh}]`)),a=[...t.values()];return a.sort(((e,t)=>r.indexOf(e.ref)-r.indexOf(t.ref)))};(0,s.Gt)(r,{itemMap:t,getItems:n,collectionRef:e})}},o={...mh,name:n,setup(e,{attrs:t}){const n=(0,l.KR)(null),i=(0,s.WQ)(r,void 0);(0,s.Gt)(a,{collectionItemRef:n}),(0,s.sV)((()=>{const e=(0,l.R1)(n);e&&i.itemMap.set(e,{ref:e,...t})})),(0,s.xo)((()=>{const e=(0,l.R1)(n);i.itemMap.delete(e)}))}};return{COLLECTION_INJECTION_KEY:r,COLLECTION_ITEM_INJECTION_KEY:a,ElCollection:i,ElCollectionItem:o}},yh=(0,h.b_)({style:{type:(0,h.jq)([String,Array,Object])},currentTabId:{type:(0,h.jq)(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:(0,h.jq)(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:bh,ElCollectionItem:wh,COLLECTION_INJECTION_KEY:xh,COLLECTION_ITEM_INJECTION_KEY:kh}=vh("RovingFocusGroup"),_h=Symbol("elRovingFocusGroup"),Ch=Symbol("elRovingFocusGroupItem"),Eh={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},Rh=(e,t)=>{if("rtl"!==t)return e;switch(e){case $n.R.right:return $n.R.left;case $n.R.left:return $n.R.right;default:return e}},Sh=(e,t,n)=>{const r=Rh(e.code,n);if(("vertical"!==t||![$n.R.left,$n.R.right].includes(r))&&("horizontal"!==t||![$n.R.up,$n.R.down].includes(r)))return Eh[r]},Ah=(e,t)=>e.map(((n,r)=>e[(r+t)%e.length])),Th=e=>{const{activeElement:t}=document;for(const n of e){if(n===t)return;if(n.focus(),t!==document.activeElement)return}},Mh="currentTabIdChange",Lh="rovingFocusGroup.entryFocus",Oh={bubbles:!1,cancelable:!0},Ih=(0,s.pM)({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:yh,emits:[Mh,"entryFocus"],setup(e,{emit:t}){var n;const r=(0,l.KR)(null!=(n=e.currentTabId||e.defaultCurrentTabId)?n:null),a=(0,l.KR)(!1),i=(0,l.KR)(!1),o=(0,l.KR)(null),{getItems:c}=(0,s.WQ)(xh,void 0),d=(0,s.EW)((()=>[{outline:"none"},e.style])),h=e=>{t(Mh,e)},p=()=>{a.value=!0},f=hr((t=>{var n;null==(n=e.onMousedown)||n.call(e,t)}),(()=>{i.value=!0})),m=hr((t=>{var n;null==(n=e.onFocus)||n.call(e,t)}),(e=>{const t=!(0,l.R1)(i),{target:n,currentTarget:o}=e;if(n===o&&t&&!(0,l.R1)(a)){const e=new Event(Lh,Oh);if(null==o||o.dispatchEvent(e),!e.defaultPrevented){const e=c().filter((e=>e.focusable)),t=e.find((e=>e.active)),n=e.find((e=>e.id===(0,l.R1)(r))),a=[t,n,...e].filter(Boolean),i=a.map((e=>e.ref));Th(i)}}i.value=!1})),g=hr((t=>{var n;null==(n=e.onBlur)||n.call(e,t)}),(()=>{a.value=!1})),v=(...e)=>{t("entryFocus",...e)};(0,s.Gt)(_h,{currentTabbedId:(0,l.tB)(r),loop:(0,l.lW)(e,"loop"),tabIndex:(0,s.EW)((()=>(0,l.R1)(a)?-1:0)),rovingFocusGroupRef:o,rovingFocusGroupRootStyle:d,orientation:(0,l.lW)(e,"orientation"),dir:(0,l.lW)(e,"dir"),onItemFocus:h,onItemShiftTab:p,onBlur:g,onFocus:m,onMousedown:f}),(0,s.wB)((()=>e.currentTabId),(e=>{r.value=null!=e?e:null})),(0,u.MLh)(o,Lh,v)}});function Nh(e,t,n,r,a,i){return(0,s.RG)(e.$slots,"default")}var Bh=(0,g.A)(Ih,[["render",Nh],["__file","roving-focus-group-impl.vue"]]);const Dh=(0,s.pM)({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:bh,ElRovingFocusGroupImpl:Bh}});function Fh(e,t,n,r,a,i){const o=(0,s.g2)("el-roving-focus-group-impl"),l=(0,s.g2)("el-focus-group-collection");return(0,s.uX)(),(0,s.Wv)(l,null,{default:(0,s.k6)((()=>[(0,s.bF)(o,(0,c._B)((0,s.Ng)(e.$attrs)),{default:(0,s.k6)((()=>[(0,s.RG)(e.$slots,"default")])),_:3},16)])),_:3})}var $h=(0,g.A)(Dh,[["render",Fh],["__file","roving-focus-group.vue"]]);const Ph=(0,h.b_)({trigger:Pn.trigger,triggerKeys:{type:(0,h.jq)(Array),default:()=>[$n.R.enter,$n.R.numpadEnter,$n.R.space,$n.R.down]},effect:{...Dn.effect,default:"light"},type:{type:(0,h.jq)(String)},placement:{type:(0,h.jq)(String),default:"bottom"},popperOptions:{type:(0,h.jq)(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:(0,h.jq)([Number,String]),default:0},maxHeight:{type:(0,h.jq)([Number,String]),default:""},popperClass:{type:String,default:""},disabled:Boolean,role:{type:String,default:"menu"},buttonProps:{type:(0,h.jq)(Object)},teleported:Dn.teleported}),zh=(0,h.b_)({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:T.Ze}}),Wh=(0,h.b_)({onKeydown:{type:(0,h.jq)(Function)}}),jh=[$n.R.down,$n.R.pageDown,$n.R.home],Vh=[$n.R.up,$n.R.pageUp,$n.R.end],Uh=[...jh,...Vh],{ElCollection:Kh,ElCollectionItem:Hh,COLLECTION_INJECTION_KEY:qh,COLLECTION_ITEM_INJECTION_KEY:Gh}=vh("Dropdown"),Xh=Symbol("elDropdown"),{ButtonGroup:Yh}=Wa.S2,Qh=(0,s.pM)({name:"ElDropdown",components:{ElButton:Wa.S2,ElButtonGroup:Yh,ElScrollbar:pe,ElDropdownCollection:Kh,ElTooltip:Jr,ElRovingFocusGroup:$h,ElOnlyChild:or,ElIcon:A.tk,ArrowDown:H.yd$},props:Ph,emits:["visible-change","click","command"],setup(e,{emit:t}){const n=(0,s.nI)(),r=(0,v.DU)("dropdown"),{t:a}=(0,La.Ym)(),i=(0,l.KR)(),o=(0,l.KR)(),c=(0,l.KR)(null),u=(0,l.KR)(null),d=(0,l.KR)(null),h=(0,l.KR)(null),p=(0,l.KR)(!1),f=(0,s.EW)((()=>({maxHeight:(0,b._V)(e.maxHeight)}))),m=(0,s.EW)((()=>[r.m(C.value)])),g=(0,s.EW)((()=>sl(e.trigger))),y=(0,xr.Bi)().value,w=(0,s.EW)((()=>e.id||y));function x(){k()}function k(){var e;null==(e=c.value)||e.onClose()}function _(){var e;null==(e=c.value)||e.onOpen()}(0,s.wB)([i,g],(([e,t],[n])=>{var r,a,i;(null==(r=null==n?void 0:n.$el)?void 0:r.removeEventListener)&&n.$el.removeEventListener("pointerenter",R),(null==(a=null==e?void 0:e.$el)?void 0:a.removeEventListener)&&e.$el.removeEventListener("pointerenter",R),(null==(i=null==e?void 0:e.$el)?void 0:i.addEventListener)&&t.includes("hover")&&e.$el.addEventListener("pointerenter",R)}),{immediate:!0}),(0,s.xo)((()=>{var e,t;(null==(t=null==(e=i.value)?void 0:e.$el)?void 0:t.removeEventListener)&&i.value.$el.removeEventListener("pointerenter",R)}));const C=(0,ra.NV)();function E(...e){t("command",...e)}function R(){var e,t;null==(t=null==(e=i.value)?void 0:e.$el)||t.focus()}function S(){}function A(){const e=(0,l.R1)(u);g.value.includes("hover")&&(null==e||e.focus()),h.value=null}function T(e){h.value=e}function M(e){p.value||(e.preventDefault(),e.stopImmediatePropagation())}function L(){t("visible-change",!0)}function O(e){"keydown"===(null==e?void 0:e.type)&&u.value.focus()}function I(){t("visible-change",!1)}(0,s.Gt)(Xh,{contentRef:u,role:(0,s.EW)((()=>e.role)),triggerId:w,isUsingKeyboard:p,onItemEnter:S,onItemLeave:A}),(0,s.Gt)("elDropdown",{instance:n,dropdownSize:C,handleClick:x,commandHandler:E,trigger:(0,l.lW)(e,"trigger"),hideOnClick:(0,l.lW)(e,"hideOnClick")});const N=e=>{var t,n;e.preventDefault(),null==(n=null==(t=u.value)?void 0:t.focus)||n.call(t,{preventScroll:!0})},B=e=>{t("click",e)};return{t:a,ns:r,scrollbar:d,wrapStyle:f,dropdownTriggerKls:m,dropdownSize:C,triggerId:w,currentTabId:h,handleCurrentTabIdChange:T,handlerMainButtonClick:B,handleEntryFocus:M,handleClose:k,handleOpen:_,handleBeforeShowTooltip:L,handleShowTooltip:O,handleBeforeHideTooltip:I,onFocusAfterTrapped:N,popperRef:c,contentRef:u,triggeringElementRef:i,referenceElementRef:o}}});function Zh(e,t,n,r,a,i){var o;const l=(0,s.g2)("el-dropdown-collection"),u=(0,s.g2)("el-roving-focus-group"),d=(0,s.g2)("el-scrollbar"),h=(0,s.g2)("el-only-child"),p=(0,s.g2)("el-tooltip"),f=(0,s.g2)("el-button"),m=(0,s.g2)("arrow-down"),g=(0,s.g2)("el-icon"),v=(0,s.g2)("el-button-group");return(0,s.uX)(),(0,s.CE)("div",{class:(0,c.C4)([e.ns.b(),e.ns.is("disabled",e.disabled)])},[(0,s.bF)(p,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,"hide-after":"hover"===e.trigger?e.hideTimeout:0,"manual-mode":!0,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"reference-element":null==(o=e.referenceElementRef)?void 0:o.$el,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-after":"hover"===e.trigger?e.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":e.triggeringElementRef,"virtual-triggering":e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:e.teleported,pure:"",persistent:"",onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},(0,s.eX)({content:(0,s.k6)((()=>[(0,s.bF)(d,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:(0,s.k6)((()=>[(0,s.bF)(u,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:(0,s.k6)((()=>[(0,s.bF)(l,null,{default:(0,s.k6)((()=>[(0,s.RG)(e.$slots,"dropdown")])),_:3})])),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])])),_:3},8,["wrap-style","view-class"])])),_:2},[e.splitButton?void 0:{name:"default",fn:(0,s.k6)((()=>[(0,s.bF)(h,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:(0,s.k6)((()=>[(0,s.RG)(e.$slots,"default")])),_:3},8,["id","tabindex"])]))}]),1032,["role","effect","popper-options","hide-after","placement","popper-class","reference-element","trigger","trigger-keys","trigger-target-el","show-after","virtual-ref","virtual-triggering","disabled","transition","teleported","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?((0,s.uX)(),(0,s.Wv)(v,{key:0},{default:(0,s.k6)((()=>[(0,s.bF)(f,(0,s.v6)({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:(0,s.k6)((()=>[(0,s.RG)(e.$slots,"default")])),_:3},16,["size","type","disabled","tabindex","onClick"]),(0,s.bF)(f,(0,s.v6)({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("el.dropdown.toggleDropdown")}),{default:(0,s.k6)((()=>[(0,s.bF)(g,{class:(0,c.C4)(e.ns.e("icon"))},{default:(0,s.k6)((()=>[(0,s.bF)(m)])),_:1},8,["class"])])),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])])),_:3})):(0,s.Q3)("v-if",!0)],2)}var Jh=(0,g.A)(Qh,[["render",Zh],["__file","dropdown.vue"]]);const ep=(0,s.pM)({components:{ElRovingFocusCollectionItem:wh},props:{focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!1}},emits:["mousedown","focus","keydown"],setup(e,{emit:t}){const{currentTabbedId:n,loop:r,onItemFocus:a,onItemShiftTab:i}=(0,s.WQ)(_h,void 0),{getItems:o}=(0,s.WQ)(xh,void 0),c=(0,xr.Bi)(),u=(0,l.KR)(null),d=hr((e=>{t("mousedown",e)}),(t=>{e.focusable?a((0,l.R1)(c)):t.preventDefault()})),h=hr((e=>{t("focus",e)}),(()=>{a((0,l.R1)(c))})),p=hr((e=>{t("keydown",e)}),(e=>{const{code:t,shiftKey:n,target:a,currentTarget:l}=e;if(t===$n.R.tab&&n)return void i();if(a!==l)return;const c=Sh(e);if(c){e.preventDefault();const t=o().filter((e=>e.focusable));let n=t.map((e=>e.ref));switch(c){case"last":n.reverse();break;case"prev":case"next":{"prev"===c&&n.reverse();const e=n.indexOf(l);n=r.value?Ah(n,e+1):n.slice(e+1);break}}(0,s.dY)((()=>{Th(n)}))}})),f=(0,s.EW)((()=>n.value===(0,l.R1)(c)));return(0,s.Gt)(Ch,{rovingFocusGroupItemRef:u,tabIndex:(0,s.EW)((()=>(0,l.R1)(f)?0:-1)),handleMousedown:d,handleFocus:h,handleKeydown:p}),{id:c,handleKeydown:p,handleFocus:h,handleMousedown:d}}});function tp(e,t,n,r,a,i){const o=(0,s.g2)("el-roving-focus-collection-item");return(0,s.uX)(),(0,s.Wv)(o,{id:e.id,focusable:e.focusable,active:e.active},{default:(0,s.k6)((()=>[(0,s.RG)(e.$slots,"default")])),_:3},8,["id","focusable","active"])}var np=(0,g.A)(ep,[["render",tp],["__file","roving-focus-item.vue"]]);const rp=(0,s.pM)({name:"DropdownItemImpl",components:{ElIcon:A.tk},props:zh,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const n=(0,v.DU)("dropdown"),{role:r}=(0,s.WQ)(Xh,void 0),{collectionItemRef:a}=(0,s.WQ)(Gh,void 0),{collectionItemRef:i}=(0,s.WQ)(kh,void 0),{rovingFocusGroupItemRef:o,tabIndex:l,handleFocus:c,handleKeydown:u,handleMousedown:d}=(0,s.WQ)(Ch,void 0),h=zd(a,i,o),p=(0,s.EW)((()=>"menu"===r.value?"menuitem":"navigation"===r.value?"link":"button")),f=hr((e=>{if([$n.R.enter,$n.R.numpadEnter,$n.R.space].includes(e.code))return e.preventDefault(),e.stopImmediatePropagation(),t("clickimpl",e),!0}),u);return{ns:n,itemRef:h,dataset:{[gh]:""},role:p,tabIndex:l,handleFocus:c,handleKeydown:f,handleMousedown:d}}});function ap(e,t,n,r,a,i){const o=(0,s.g2)("el-icon");return(0,s.uX)(),(0,s.CE)(s.FK,null,[e.divided?((0,s.uX)(),(0,s.CE)("li",{key:0,role:"separator",class:(0,c.C4)(e.ns.bem("menu","item","divided"))},null,2)):(0,s.Q3)("v-if",!0),(0,s.Lk)("li",(0,s.v6)({ref:e.itemRef},{...e.dataset,...e.$attrs},{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:e.role,onClick:t=>e.$emit("clickimpl",t),onFocus:e.handleFocus,onKeydown:(0,S.D$)(e.handleKeydown,["self"]),onMousedown:e.handleMousedown,onPointermove:t=>e.$emit("pointermove",t),onPointerleave:t=>e.$emit("pointerleave",t)}),[e.icon?((0,s.uX)(),(0,s.Wv)(o,{key:0},{default:(0,s.k6)((()=>[((0,s.uX)(),(0,s.Wv)((0,s.$y)(e.icon)))])),_:1})):(0,s.Q3)("v-if",!0),(0,s.RG)(e.$slots,"default")],16,["aria-disabled","tabindex","role","onClick","onFocus","onKeydown","onMousedown","onPointermove","onPointerleave"])],64)}var ip=(0,g.A)(rp,[["render",ap],["__file","dropdown-item-impl.vue"]]);const op=()=>{const e=(0,s.WQ)("elDropdown",{}),t=(0,s.EW)((()=>null==e?void 0:e.dropdownSize));return{elDropdown:e,_elDropdownSize:t}},sp=(0,s.pM)({name:"ElDropdownItem",components:{ElDropdownCollectionItem:Hh,ElRovingFocusItem:np,ElDropdownItemImpl:ip},inheritAttrs:!1,props:zh,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:n}){const{elDropdown:r}=op(),a=(0,s.nI)(),i=(0,l.KR)(null),o=(0,s.EW)((()=>{var e,t;return null!=(t=null==(e=(0,l.R1)(i))?void 0:e.textContent)?t:""})),{onItemEnter:c,onItemLeave:u}=(0,s.WQ)(Xh,void 0),d=hr((e=>(t("pointermove",e),e.defaultPrevented)),pr((t=>{if(e.disabled)return void u(t);const n=t.currentTarget;n===document.activeElement||n.contains(document.activeElement)||(c(t),t.defaultPrevented||null==n||n.focus())}))),h=hr((e=>(t("pointerleave",e),e.defaultPrevented)),pr(u)),p=hr((n=>{if(!e.disabled)return t("click",n),"keydown"!==n.type&&n.defaultPrevented}),(t=>{var n,i,o;e.disabled?t.stopImmediatePropagation():((null==(n=null==r?void 0:r.hideOnClick)?void 0:n.value)&&(null==(i=r.handleClick)||i.call(r)),null==(o=r.commandHandler)||o.call(r,e.command,a,t))})),f=(0,s.EW)((()=>({...e,...n})));return{handleClick:p,handlePointerMove:d,handlePointerLeave:h,textContent:o,propsAndAttrs:f}}});function lp(e,t,n,r,a,i){var o;const l=(0,s.g2)("el-dropdown-item-impl"),c=(0,s.g2)("el-roving-focus-item"),u=(0,s.g2)("el-dropdown-collection-item");return(0,s.uX)(),(0,s.Wv)(u,{disabled:e.disabled,"text-value":null!=(o=e.textValue)?o:e.textContent},{default:(0,s.k6)((()=>[(0,s.bF)(c,{focusable:!e.disabled},{default:(0,s.k6)((()=>[(0,s.bF)(l,(0,s.v6)(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:(0,s.k6)((()=>[(0,s.RG)(e.$slots,"default")])),_:3},16,["onPointerleave","onPointermove","onClickimpl"])])),_:3},8,["focusable"])])),_:3},8,["disabled","text-value"])}var cp=(0,g.A)(sp,[["render",lp],["__file","dropdown-item.vue"]]);const up=(0,s.pM)({name:"ElDropdownMenu",props:Wh,setup(e){const t=(0,v.DU)("dropdown"),{_elDropdownSize:n}=op(),r=n.value,{focusTrapRef:a,onKeydown:i}=(0,s.WQ)($d.r3,void 0),{contentRef:o,role:c,triggerId:u}=(0,s.WQ)(Xh,void 0),{collectionRef:d,getItems:h}=(0,s.WQ)(qh,void 0),{rovingFocusGroupRef:p,rovingFocusGroupRootStyle:f,tabIndex:m,onBlur:g,onFocus:y,onMousedown:b}=(0,s.WQ)(_h,void 0),{collectionRef:w}=(0,s.WQ)(xh,void 0),x=(0,s.EW)((()=>[t.b("menu"),t.bm("menu",null==r?void 0:r.value)])),k=zd(o,d,a,p,w),_=hr((t=>{var n;null==(n=e.onKeydown)||n.call(e,t)}),(e=>{const{currentTarget:t,code:n,target:r}=e;if(t.contains(r),$n.R.tab===n&&e.stopImmediatePropagation(),e.preventDefault(),r!==(0,l.R1)(o)||!Uh.includes(n))return;const a=h().filter((e=>!e.disabled)),i=a.map((e=>e.ref));Vh.includes(n)&&i.reverse(),Th(i)})),C=e=>{_(e),i(e)};return{size:r,rovingFocusGroupRootStyle:f,tabIndex:m,dropdownKls:x,role:c,triggerId:u,dropdownListWrapperRef:k,handleKeydown:C,onBlur:g,onFocus:y,onMousedown:b}}});function dp(e,t,n,r,a,i){return(0,s.uX)(),(0,s.CE)("ul",{ref:e.dropdownListWrapperRef,class:(0,c.C4)(e.dropdownKls),style:(0,c.Tr)(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onBlur:e.onBlur,onFocus:e.onFocus,onKeydown:(0,S.D$)(e.handleKeydown,["self"]),onMousedown:(0,S.D$)(e.onMousedown,["self"])},[(0,s.RG)(e.$slots,"default")],46,["role","aria-labelledby","onBlur","onFocus","onKeydown","onMousedown"])}var hp=(0,g.A)(up,[["render",dp],["__file","dropdown-menu.vue"]]);const pp=(0,E.GU)(Jh,{DropdownItem:cp,DropdownMenu:hp}),fp=(0,E.WM)(cp),mp=(0,E.WM)(hp),gp=(0,s.pM)({name:"ImgEmpty"}),vp=(0,s.pM)({...gp,setup(e){const t=(0,v.DU)("empty"),n=(0,xr.Bi)();return(e,r)=>((0,s.uX)(),(0,s.CE)("svg",{viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[(0,s.Lk)("defs",null,[(0,s.Lk)("linearGradient",{id:`linearGradient-1-${(0,l.R1)(n)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[(0,s.Lk)("stop",{"stop-color":`var(${(0,l.R1)(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,["stop-color"]),(0,s.Lk)("stop",{"stop-color":`var(${(0,l.R1)(t).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,["stop-color"])],8,["id"]),(0,s.Lk)("linearGradient",{id:`linearGradient-2-${(0,l.R1)(n)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[(0,s.Lk)("stop",{"stop-color":`var(${(0,l.R1)(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,["stop-color"]),(0,s.Lk)("stop",{"stop-color":`var(${(0,l.R1)(t).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,["stop-color"])],8,["id"]),(0,s.Lk)("rect",{id:`path-3-${(0,l.R1)(n)}`,x:"0",y:"0",width:"17",height:"36"},null,8,["id"])]),(0,s.Lk)("g",{id:"Illustrations",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[(0,s.Lk)("g",{id:"B-type",transform:"translate(-1268.000000, -535.000000)"},[(0,s.Lk)("g",{id:"Group-2",transform:"translate(1268.000000, 535.000000)"},[(0,s.Lk)("path",{id:"Oval-Copy-2",d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:`var(${(0,l.R1)(t).cssVarBlockName("fill-color-3")})`},null,8,["fill"]),(0,s.Lk)("polygon",{id:"Rectangle-Copy-14",fill:`var(${(0,l.R1)(t).cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,["fill"]),(0,s.Lk)("g",{id:"Group-Copy",transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},[(0,s.Lk)("polygon",{id:"Rectangle-Copy-10",fill:`var(${(0,l.R1)(t).cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,["fill"]),(0,s.Lk)("polygon",{id:"Rectangle-Copy-11",fill:`var(${(0,l.R1)(t).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,["fill"]),(0,s.Lk)("rect",{id:"Rectangle-Copy-12",fill:`url(#linearGradient-1-${(0,l.R1)(n)})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,["fill"]),(0,s.Lk)("polygon",{id:"Rectangle-Copy-13",fill:`var(${(0,l.R1)(t).cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,["fill"])]),(0,s.Lk)("rect",{id:"Rectangle-Copy-15",fill:`url(#linearGradient-2-${(0,l.R1)(n)})`,x:"13",y:"45",width:"40",height:"36"},null,8,["fill"]),(0,s.Lk)("g",{id:"Rectangle-Copy-17",transform:"translate(53.000000, 45.000000)"},[(0,s.Lk)("use",{id:"Mask",fill:`var(${(0,l.R1)(t).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${(0,l.R1)(n)}`},null,8,["fill","xlink:href"]),(0,s.Lk)("polygon",{id:"Rectangle-Copy",fill:`var(${(0,l.R1)(t).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${(0,l.R1)(n)})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,["fill","mask"])]),(0,s.Lk)("polygon",{id:"Rectangle-Copy-18",fill:`var(${(0,l.R1)(t).cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,["fill"])])])])]))}});var yp=(0,g.A)(vp,[["__file","img-empty.vue"]]);const bp=(0,h.b_)({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),wp=(0,s.pM)({name:"ElEmpty"}),xp=(0,s.pM)({...wp,props:bp,setup(e){const t=e,{t:n}=(0,La.Ym)(),r=(0,v.DU)("empty"),a=(0,s.EW)((()=>t.description||n("el.table.emptyText"))),i=(0,s.EW)((()=>({width:(0,b._V)(t.imageSize)})));return(e,t)=>((0,s.uX)(),(0,s.CE)("div",{class:(0,c.C4)((0,l.R1)(r).b())},[(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(r).e("image")),style:(0,c.Tr)((0,l.R1)(i))},[e.image?((0,s.uX)(),(0,s.CE)("img",{key:0,src:e.image,ondragstart:"return false"},null,8,["src"])):(0,s.RG)(e.$slots,"image",{key:1},(()=>[(0,s.bF)(yp)]))],6),(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(r).e("description"))},[e.$slots.description?(0,s.RG)(e.$slots,"description",{key:0}):((0,s.uX)(),(0,s.CE)("p",{key:1},(0,c.v_)((0,l.R1)(a)),1))],2),e.$slots.default?((0,s.uX)(),(0,s.CE)("div",{key:0,class:(0,c.C4)((0,l.R1)(r).e("bottom"))},[(0,s.RG)(e.$slots,"default")],2)):(0,s.Q3)("v-if",!0)],2))}});var kp=(0,g.A)(xp,[["__file","empty.vue"]]);const _p=(0,E.GU)(kp),Cp=(0,h.b_)({size:{type:String,values:ca.I},disabled:Boolean}),Ep=(0,h.b_)({...Cp,model:Object,rules:{type:(0,h.jq)(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean]}}),Rp={validate:(e,t,n)=>((0,c.cy)(e)||(0,c.Kg)(e))&&(0,p.Lm)(t)&&(0,c.Kg)(n)},Sp="ElForm";function Ap(){const e=(0,l.KR)([]),t=(0,s.EW)((()=>{if(!e.value.length)return"0";const t=Math.max(...e.value);return t?`${t}px`:""}));function n(n){const r=e.value.indexOf(n);return-1===r&&"0"===t.value&&(0,w.U)(Sp,`unexpected width ${n}`),r}function r(t,r){if(t&&r){const a=n(r);e.value.splice(a,1,t)}else t&&e.value.push(t)}function a(t){const r=n(t);r>-1&&e.value.splice(r,1)}return{autoLabelWidth:t,registerLabelWidth:r,deregisterLabelWidth:a}}const Tp=(e,t)=>{const n=sl(t);return n.length>0?e.filter((e=>e.prop&&n.includes(e.prop))):e},Mp="ElForm",Lp=(0,s.pM)({name:Mp}),Op=(0,s.pM)({...Lp,props:Ep,emits:Rp,setup(e,{expose:t,emit:n}){const r=e,a=[],i=(0,ra.NV)(),o=(0,v.DU)("form"),u=(0,s.EW)((()=>{const{labelPosition:e,inline:t}=r;return[o.b(),o.m(i.value||"default"),{[o.m(`label-${e}`)]:e,[o.m("inline")]:t}]})),d=e=>a.find((t=>t.prop===e)),h=e=>{a.push(e)},p=e=>{e.prop&&a.splice(a.indexOf(e),1)},f=(e=[])=>{r.model?Tp(a,e).forEach((e=>e.resetField())):(0,w.U)(Mp,"model is required for resetFields to work.")},m=(e=[])=>{Tp(a,e).forEach((e=>e.clearValidate()))},g=(0,s.EW)((()=>{const e=!!r.model;return e||(0,w.U)(Mp,"model is required for validate to work."),e})),y=e=>{if(0===a.length)return[];const t=Tp(a,e);return t.length?t:((0,w.U)(Mp,"please pass correct props!"),[])},b=async e=>k(void 0,e),x=async(e=[])=>{if(!g.value)return!1;const t=y(e);if(0===t.length)return!0;let n={};for(const a of t)try{await a.validate(""),"error"===a.validateState&&a.resetField()}catch(r){n={...n,...r}}return 0===Object.keys(n).length||Promise.reject(n)},k=async(e=[],t)=>{const n=!(0,c.Tn)(t);try{const n=await x(e);return!0===n&&await(null==t?void 0:t(n)),n}catch(a){if(a instanceof Error)throw a;const e=a;return r.scrollToError&&_(Object.keys(e)[0]),await(null==t?void 0:t(!1,e)),n&&Promise.reject(e)}},_=e=>{var t;const n=Tp(a,e)[0];n&&(null==(t=n.$el)||t.scrollIntoView(r.scrollIntoViewOptions))};return(0,s.wB)((()=>r.rules),(()=>{r.validateOnRuleChange&&b().catch((e=>(0,w.U)(e)))}),{deep:!0,flush:"post"}),(0,s.Gt)(Pr.F,(0,l.Kh)({...(0,l.QW)(r),emit:n,resetFields:f,clearValidate:m,validateField:k,getField:d,addField:h,removeField:p,...Ap()})),t({validate:b,validateField:k,resetFields:f,clearValidate:m,scrollToField:_,fields:a}),(e,t)=>((0,s.uX)(),(0,s.CE)("form",{class:(0,c.C4)((0,l.R1)(u))},[(0,s.RG)(e.$slots,"default")],2))}});var Ip=(0,g.A)(Op,[["__file","form.vue"]]);function Np(){return Np=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Np.apply(this,arguments)}function Bp(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Fp(e,t)}function Dp(e){return Dp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Dp(e)}function Fp(e,t){return Fp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Fp(e,t)}function $p(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function Pp(e,t,n){return Pp=$p()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var a=Function.bind.apply(e,r),i=new a;return n&&Fp(i,n.prototype),i},Pp.apply(null,arguments)}function zp(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function Wp(e){var t="function"===typeof Map?new Map:void 0;return Wp=function(e){if(null===e||!zp(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Pp(e,arguments,Dp(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Fp(n,e)},Wp(e)}var jp=/%[sdj%]/g,Vp=function(){};function Up(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)})),t}function Kp(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var a=0,i=n.length;if("function"===typeof e)return e.apply(null,n);if("string"===typeof e){var o=e.replace(jp,(function(e){if("%%"===e)return"%";if(a>=i)return e;switch(e){case"%s":return String(n[a++]);case"%d":return Number(n[a++]);case"%j":try{return JSON.stringify(n[a++])}catch(Pk){return"[Circular]"}break;default:return e}}));return o}return e}function Hp(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}function qp(e,t){return void 0===e||null===e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!Hp(t)||"string"!==typeof e||e))}function Gp(e,t,n){var r=[],a=0,i=e.length;function o(e){r.push.apply(r,e||[]),a++,a===i&&n(r)}e.forEach((function(e){t(e,o)}))}function Xp(e,t,n){var r=0,a=e.length;function i(o){if(o&&o.length)n(o);else{var s=r;r+=1,s<a?t(e[s],i):n([])}}i([])}function Yp(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n]||[])})),t}var Qp=function(e){function t(t,n){var r;return r=e.call(this,"Async Validation Error")||this,r.errors=t,r.fields=n,r}return Bp(t,e),t}(Wp(Error));function Zp(e,t,n,r,a){if(t.first){var i=new Promise((function(t,i){var o=function(e){return r(e),e.length?i(new Qp(e,Up(e))):t(a)},s=Yp(e);Xp(s,n,o)}));return i["catch"]((function(e){return e})),i}var o=!0===t.firstFields?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],d=new Promise((function(t,i){var d=function(e){if(u.push.apply(u,e),c++,c===l)return r(u),u.length?i(new Qp(u,Up(u))):t(a)};s.length||(r(u),t(a)),s.forEach((function(t){var r=e[t];-1!==o.indexOf(t)?Xp(r,n,d):Gp(r,n,d)}))}));return d["catch"]((function(e){return e})),d}function Jp(e){return!(!e||void 0===e.message)}function ef(e,t){for(var n=e,r=0;r<t.length;r++){if(void 0==n)return n;n=n[t[r]]}return n}function tf(e,t){return function(n){var r;return r=e.fullFields?ef(t,e.fullFields):t[n.field||e.fullField],Jp(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:"function"===typeof n?n():n,fieldValue:r,field:n.field||e.fullField}}}function nf(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"===typeof r&&"object"===typeof e[n]?e[n]=Np({},e[n],r):e[n]=r}return e}var rf,af=function(e,t,n,r,a,i){!e.required||n.hasOwnProperty(e.field)&&!qp(t,i||e.type)||r.push(Kp(a.messages.required,e.fullField))},of=function(e,t,n,r,a){(/^\s+$/.test(t)||""===t)&&r.push(Kp(a.messages.whitespace,e.fullField))},sf=function(){if(rf)return rf;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",a=("\n(?:\n(?:"+r+":){7}(?:"+r+"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:"+r+":){6}(?:"+n+"|:"+r+"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:"+r+":){5}(?::"+n+"|(?::"+r+"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:"+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:"+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:"+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:"+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::"+r+"){0,5}:"+n+"|(?::"+r+"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+n+"$)|(?:^"+a+"$)"),o=new RegExp("^"+n+"$"),s=new RegExp("^"+a+"$"),l=function(e){return e&&e.exact?i:new RegExp("(?:"+t(e)+n+t(e)+")|(?:"+t(e)+a+t(e)+")","g")};l.v4=function(e){return e&&e.exact?o:new RegExp(""+t(e)+n+t(e),"g")},l.v6=function(e){return e&&e.exact?s:new RegExp(""+t(e)+a+t(e),"g")};var c="(?:(?:[a-z]+:)?//)",u="(?:\\S+(?::\\S*)?@)?",d=l.v4().source,h=l.v6().source,p="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",f="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",m="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",g="(?::\\d{2,5})?",v='(?:[/?#][^\\s"]*)?',y="(?:"+c+"|www\\.)"+u+"(?:localhost|"+d+"|"+h+"|"+p+f+m+")"+g+v;return rf=new RegExp("(?:^"+y+"$)","i"),rf},lf={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},cf={integer:function(e){return cf.number(e)&&parseInt(e,10)===e},float:function(e){return cf.number(e)&&!cf.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(t){return!1}},date:function(e){return"function"===typeof e.getTime&&"function"===typeof e.getMonth&&"function"===typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"===typeof e},object:function(e){return"object"===typeof e&&!cf.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&e.length<=320&&!!e.match(lf.email)},url:function(e){return"string"===typeof e&&e.length<=2048&&!!e.match(sf())},hex:function(e){return"string"===typeof e&&!!e.match(lf.hex)}},uf=function(e,t,n,r,a){if(e.required&&void 0===t)af(e,t,n,r,a);else{var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],o=e.type;i.indexOf(o)>-1?cf[o](t)||r.push(Kp(a.messages.types[o],e.fullField,e.type)):o&&typeof t!==e.type&&r.push(Kp(a.messages.types[o],e.fullField,e.type))}},df=function(e,t,n,r,a){var i="number"===typeof e.len,o="number"===typeof e.min,s="number"===typeof e.max,l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=t,u=null,d="number"===typeof t,h="string"===typeof t,p=Array.isArray(t);if(d?u="number":h?u="string":p&&(u="array"),!u)return!1;p&&(c=t.length),h&&(c=t.replace(l,"_").length),i?c!==e.len&&r.push(Kp(a.messages[u].len,e.fullField,e.len)):o&&!s&&c<e.min?r.push(Kp(a.messages[u].min,e.fullField,e.min)):s&&!o&&c>e.max?r.push(Kp(a.messages[u].max,e.fullField,e.max)):o&&s&&(c<e.min||c>e.max)&&r.push(Kp(a.messages[u].range,e.fullField,e.min,e.max))},hf="enum",pf=function(e,t,n,r,a){e[hf]=Array.isArray(e[hf])?e[hf]:[],-1===e[hf].indexOf(t)&&r.push(Kp(a.messages[hf],e.fullField,e[hf].join(", ")))},ff=function(e,t,n,r,a){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(Kp(a.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"===typeof e.pattern){var i=new RegExp(e.pattern);i.test(t)||r.push(Kp(a.messages.pattern.mismatch,e.fullField,t,e.pattern))}},mf={required:af,whitespace:of,type:uf,range:df,enum:pf,pattern:ff},gf=function(e,t,n,r,a){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(qp(t,"string")&&!e.required)return n();mf.required(e,t,r,i,a,"string"),qp(t,"string")||(mf.type(e,t,r,i,a),mf.range(e,t,r,i,a),mf.pattern(e,t,r,i,a),!0===e.whitespace&&mf.whitespace(e,t,r,i,a))}n(i)},vf=function(e,t,n,r,a){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(qp(t)&&!e.required)return n();mf.required(e,t,r,i,a),void 0!==t&&mf.type(e,t,r,i,a)}n(i)},yf=function(e,t,n,r,a){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(""===t&&(t=void 0),qp(t)&&!e.required)return n();mf.required(e,t,r,i,a),void 0!==t&&(mf.type(e,t,r,i,a),mf.range(e,t,r,i,a))}n(i)},bf=function(e,t,n,r,a){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(qp(t)&&!e.required)return n();mf.required(e,t,r,i,a),void 0!==t&&mf.type(e,t,r,i,a)}n(i)},wf=function(e,t,n,r,a){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(qp(t)&&!e.required)return n();mf.required(e,t,r,i,a),qp(t)||mf.type(e,t,r,i,a)}n(i)},xf=function(e,t,n,r,a){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(qp(t)&&!e.required)return n();mf.required(e,t,r,i,a),void 0!==t&&(mf.type(e,t,r,i,a),mf.range(e,t,r,i,a))}n(i)},kf=function(e,t,n,r,a){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(qp(t)&&!e.required)return n();mf.required(e,t,r,i,a),void 0!==t&&(mf.type(e,t,r,i,a),mf.range(e,t,r,i,a))}n(i)},_f=function(e,t,n,r,a){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if((void 0===t||null===t)&&!e.required)return n();mf.required(e,t,r,i,a,"array"),void 0!==t&&null!==t&&(mf.type(e,t,r,i,a),mf.range(e,t,r,i,a))}n(i)},Cf=function(e,t,n,r,a){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(qp(t)&&!e.required)return n();mf.required(e,t,r,i,a),void 0!==t&&mf.type(e,t,r,i,a)}n(i)},Ef="enum",Rf=function(e,t,n,r,a){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(qp(t)&&!e.required)return n();mf.required(e,t,r,i,a),void 0!==t&&mf[Ef](e,t,r,i,a)}n(i)},Sf=function(e,t,n,r,a){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(qp(t,"string")&&!e.required)return n();mf.required(e,t,r,i,a),qp(t,"string")||mf.pattern(e,t,r,i,a)}n(i)},Af=function(e,t,n,r,a){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(qp(t,"date")&&!e.required)return n();var s;if(mf.required(e,t,r,i,a),!qp(t,"date"))s=t instanceof Date?t:new Date(t),mf.type(e,s,r,i,a),s&&mf.range(e,s.getTime(),r,i,a)}n(i)},Tf=function(e,t,n,r,a){var i=[],o=Array.isArray(t)?"array":typeof t;mf.required(e,t,r,i,a,o),n(i)},Mf=function(e,t,n,r,a){var i=e.type,o=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(qp(t,i)&&!e.required)return n();mf.required(e,t,r,o,a,i),qp(t,i)||mf.type(e,t,r,o,a)}n(o)},Lf=function(e,t,n,r,a){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(qp(t)&&!e.required)return n();mf.required(e,t,r,i,a)}n(i)},Of={string:gf,method:vf,number:yf,boolean:bf,regexp:wf,integer:xf,float:kf,array:_f,object:Cf,enum:Rf,pattern:Sf,date:Af,url:Mf,hex:Mf,email:Mf,required:Tf,any:Lf};function If(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var Nf=If(),Bf=function(){function e(e){this.rules=null,this._messages=Nf,this.define(e)}var t=e.prototype;return t.define=function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==typeof e||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]}))},t.messages=function(e){return e&&(this._messages=nf(If(),e)),this._messages},t.validate=function(t,n,r){var a=this;void 0===n&&(n={}),void 0===r&&(r=function(){});var i=t,o=n,s=r;if("function"===typeof o&&(s=o,o={}),!this.rules||0===Object.keys(this.rules).length)return s&&s(null,i),Promise.resolve(i);function l(e){var t=[],n={};function r(e){var n;Array.isArray(e)?t=(n=t).concat.apply(n,e):t.push(e)}for(var a=0;a<e.length;a++)r(e[a]);t.length?(n=Up(t),s(t,n)):s(null,i)}if(o.messages){var c=this.messages();c===Nf&&(c=If()),nf(c,o.messages),o.messages=c}else o.messages=this.messages();var u={},d=o.keys||Object.keys(this.rules);d.forEach((function(e){var n=a.rules[e],r=i[e];n.forEach((function(n){var o=n;"function"===typeof o.transform&&(i===t&&(i=Np({},i)),r=i[e]=o.transform(r)),o="function"===typeof o?{validator:o}:Np({},o),o.validator=a.getValidationMethod(o),o.validator&&(o.field=e,o.fullField=o.fullField||e,o.type=a.getType(o),u[e]=u[e]||[],u[e].push({rule:o,value:r,source:i,field:e}))}))}));var h={};return Zp(u,o,(function(t,n){var r,a=t.rule,s=("object"===a.type||"array"===a.type)&&("object"===typeof a.fields||"object"===typeof a.defaultField);function l(e,t){return Np({},t,{fullField:a.fullField+"."+e,fullFields:a.fullFields?[].concat(a.fullFields,[e]):[e]})}function c(r){void 0===r&&(r=[]);var c=Array.isArray(r)?r:[r];!o.suppressWarning&&c.length&&e.warning("async-validator:",c),c.length&&void 0!==a.message&&(c=[].concat(a.message));var u=c.map(tf(a,i));if(o.first&&u.length)return h[a.field]=1,n(u);if(s){if(a.required&&!t.value)return void 0!==a.message?u=[].concat(a.message).map(tf(a,i)):o.error&&(u=[o.error(a,Kp(o.messages.required,a.field))]),n(u);var d={};a.defaultField&&Object.keys(t.value).map((function(e){d[e]=a.defaultField})),d=Np({},d,t.rule.fields);var p={};Object.keys(d).forEach((function(e){var t=d[e],n=Array.isArray(t)?t:[t];p[e]=n.map(l.bind(null,e))}));var f=new e(p);f.messages(o.messages),t.rule.options&&(t.rule.options.messages=o.messages,t.rule.options.error=o.error),f.validate(t.value,t.rule.options||o,(function(e){var t=[];u&&u.length&&t.push.apply(t,u),e&&e.length&&t.push.apply(t,e),n(t.length?t:null)}))}else n(u)}if(s=s&&(a.required||!a.required&&t.value),a.field=t.field,a.asyncValidator)r=a.asyncValidator(a,t.value,c,t.source,o);else if(a.validator){try{r=a.validator(a,t.value,c,t.source,o)}catch(w){null==console.error||console.error(w),o.suppressValidatorError||setTimeout((function(){throw w}),0),c(w.message)}!0===r?c():!1===r?c("function"===typeof a.message?a.message(a.fullField||a.field):a.message||(a.fullField||a.field)+" fails"):r instanceof Array?c(r):r instanceof Error&&c(r.message)}r&&r.then&&r.then((function(){return c()}),(function(e){return c(e)}))}),(function(e){l(e)}),i)},t.getType=function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!==typeof e.validator&&e.type&&!Of.hasOwnProperty(e.type))throw new Error(Kp("Unknown rule type %s",e.type));return e.type||"string"},t.getValidationMethod=function(e){if("function"===typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?Of.required:Of[this.getType(e)]||void 0},e}();Bf.register=function(e,t){if("function"!==typeof t)throw new Error("Cannot register a validator by type, validator is not a function");Of[e]=t},Bf.warning=Vp,Bf.messages=Nf,Bf.validators=Of;var Df=n(4266);const Ff=["","error","validating","success"],$f=(0,h.b_)({label:String,labelWidth:{type:[String,Number],default:""},labelPosition:{type:String,values:["left","right","top",""],default:""},prop:{type:(0,h.jq)([String,Array])},required:{type:Boolean,default:void 0},rules:{type:(0,h.jq)([Object,Array])},error:String,validateStatus:{type:String,values:Ff},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:ca.I}}),Pf="ElLabelWrap";var zf=(0,s.pM)({name:Pf,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const n=(0,s.WQ)(Pr.F,void 0),r=(0,s.WQ)(Pr.w);r||(0,w.$)(Pf,"usage: <el-form-item><label-wrap /></el-form-item>");const a=(0,v.DU)("form"),i=(0,l.KR)(),o=(0,l.KR)(0),c=()=>{var e;if(null==(e=i.value)?void 0:e.firstElementChild){const e=window.getComputedStyle(i.value.firstElementChild).width;return Math.ceil(Number.parseFloat(e))}return 0},d=(r="update")=>{(0,s.dY)((()=>{t.default&&e.isAutoWidth&&("update"===r?o.value=c():"remove"===r&&(null==n||n.deregisterLabelWidth(o.value)))}))},h=()=>d("update");return(0,s.sV)((()=>{h()})),(0,s.xo)((()=>{d("remove")})),(0,s.$u)((()=>h())),(0,s.wB)(o,((t,r)=>{e.updateAll&&(null==n||n.registerLabelWidth(t,r))})),(0,u.wYm)((0,s.EW)((()=>{var e,t;return null!=(t=null==(e=i.value)?void 0:e.firstElementChild)?t:null})),h),()=>{var l,c;if(!t)return null;const{isAutoWidth:u}=e;if(u){const e=null==n?void 0:n.autoLabelWidth,c=null==r?void 0:r.hasLabel,u={};if(c&&e&&"auto"!==e){const t=Math.max(0,Number.parseInt(e,10)-o.value),a=r.labelPosition||n.labelPosition,i="left"===a?"marginRight":"marginLeft";t&&(u[i]=`${t}px`)}return(0,s.bF)("div",{ref:i,class:[a.be("item","label-wrap")],style:u},[null==(l=t.default)?void 0:l.call(t)])}return(0,s.bF)(s.FK,{ref:i},[null==(c=t.default)?void 0:c.call(t)])}}});const Wf=(0,s.pM)({name:"ElFormItem"}),jf=(0,s.pM)({...Wf,props:$f,setup(e,{expose:t}){const n=e,r=(0,s.Ht)(),a=(0,s.WQ)(Pr.F,void 0),i=(0,s.WQ)(Pr.w,void 0),o=(0,ra.NV)(void 0,{formItem:!1}),u=(0,v.DU)("form-item"),d=(0,xr.Bi)().value,h=(0,l.KR)([]),f=(0,l.KR)(""),m=(0,Q.V7)(f,100),g=(0,l.KR)(""),y=(0,l.KR)();let w,x=!1;const k=(0,s.EW)((()=>n.labelPosition||(null==a?void 0:a.labelPosition))),_=(0,s.EW)((()=>{if("top"===k.value)return{};const e=(0,b._V)(n.labelWidth||(null==a?void 0:a.labelWidth)||"");return e?{width:e}:{}})),C=(0,s.EW)((()=>{if("top"===k.value||(null==a?void 0:a.inline))return{};if(!n.label&&!n.labelWidth&&N)return{};const e=(0,b._V)(n.labelWidth||(null==a?void 0:a.labelWidth)||"");return n.label||r.label?{}:{marginLeft:e}})),E=(0,s.EW)((()=>[u.b(),u.m(o.value),u.is("error","error"===f.value),u.is("validating","validating"===f.value),u.is("success","success"===f.value),u.is("required",P.value||n.required),u.is("no-asterisk",null==a?void 0:a.hideRequiredAsterisk),"right"===(null==a?void 0:a.requireAsteriskPosition)?"asterisk-right":"asterisk-left",{[u.m("feedback")]:null==a?void 0:a.statusIcon,[u.m(`label-${k.value}`)]:k.value}])),R=(0,s.EW)((()=>(0,p.Lm)(n.inlineMessage)?n.inlineMessage:(null==a?void 0:a.inlineMessage)||!1)),A=(0,s.EW)((()=>[u.e("error"),{[u.em("error","inline")]:R.value}])),T=(0,s.EW)((()=>n.prop?(0,c.Kg)(n.prop)?n.prop:n.prop.join("."):"")),L=(0,s.EW)((()=>!(!n.label&&!r.label))),O=(0,s.EW)((()=>n.for||(1===h.value.length?h.value[0]:void 0))),I=(0,s.EW)((()=>!O.value&&L.value)),N=!!i,B=(0,s.EW)((()=>{const e=null==a?void 0:a.model;if(e&&n.prop)return(0,M.GT)(e,n.prop).value})),D=(0,s.EW)((()=>{const{required:e}=n,t=[];n.rules&&t.push(...sl(n.rules));const r=null==a?void 0:a.rules;if(r&&n.prop){const e=(0,M.GT)(r,n.prop).value;e&&t.push(...sl(e))}if(void 0!==e){const n=t.map(((e,t)=>[e,t])).filter((([e])=>Object.keys(e).includes("required")));if(n.length>0)for(const[r,a]of n)r.required!==e&&(t[a]={...r,required:e});else t.push({required:e})}return t})),F=(0,s.EW)((()=>D.value.length>0)),$=e=>{const t=D.value;return t.filter((t=>!t.trigger||!e||((0,c.cy)(t.trigger)?t.trigger.includes(e):t.trigger===e))).map((({trigger:e,...t})=>t))},P=(0,s.EW)((()=>D.value.some((e=>e.required)))),z=(0,s.EW)((()=>{var e;return"error"===m.value&&n.showMessage&&(null==(e=null==a?void 0:a.showMessage)||e)})),W=(0,s.EW)((()=>`${n.label||""}${(null==a?void 0:a.labelSuffix)||""}`)),j=e=>{f.value=e},V=e=>{var t,r;const{errors:i,fields:o}=e;i&&o||console.error(e),j("error"),g.value=i?null!=(r=null==(t=null==i?void 0:i[0])?void 0:t.message)?r:`${n.prop} is required`:"",null==a||a.emit("validate",n.prop,!1,g.value)},U=()=>{j("success"),null==a||a.emit("validate",n.prop,!0,"")},K=async e=>{const t=T.value,n=new Bf({[t]:e});return n.validate({[t]:B.value},{firstFields:!0}).then((()=>(U(),!0))).catch((e=>(V(e),Promise.reject(e))))},H=async(e,t)=>{if(x||!n.prop)return!1;const r=(0,c.Tn)(t);if(!F.value)return null==t||t(!1),!1;const a=$(e);return 0===a.length?(null==t||t(!0),!0):(j("validating"),K(a).then((()=>(null==t||t(!0),!0))).catch((e=>{const{fields:n}=e;return null==t||t(!1,n),!r&&Promise.reject(n)})))},q=()=>{j(""),g.value="",x=!1},G=async()=>{const e=null==a?void 0:a.model;if(!e||!n.prop)return;const t=(0,M.GT)(e,n.prop);x=!0,t.value=(0,Df.A)(w),await(0,s.dY)(),q(),x=!1},X=e=>{h.value.includes(e)||h.value.push(e)},Y=e=>{h.value=h.value.filter((t=>t!==e))};(0,s.wB)((()=>n.error),(e=>{g.value=e||"",j(e?"error":"")}),{immediate:!0}),(0,s.wB)((()=>n.validateStatus),(e=>j(e||"")));const Z=(0,l.Kh)({...(0,l.QW)(n),$el:y,size:o,validateState:f,labelId:d,inputIds:h,isGroup:I,hasLabel:L,fieldValue:B,addInputId:X,removeInputId:Y,resetField:G,clearValidate:q,validate:H});return(0,s.Gt)(Pr.w,Z),(0,s.sV)((()=>{n.prop&&(null==a||a.addField(Z),w=(0,Df.A)(B.value))})),(0,s.xo)((()=>{null==a||a.removeField(Z)})),t({size:o,validateMessage:g,validateState:f,validate:H,clearValidate:q,resetField:G}),(e,t)=>{var n;return(0,s.uX)(),(0,s.CE)("div",{ref_key:"formItemRef",ref:y,class:(0,c.C4)((0,l.R1)(E)),role:(0,l.R1)(I)?"group":void 0,"aria-labelledby":(0,l.R1)(I)?(0,l.R1)(d):void 0},[(0,s.bF)((0,l.R1)(zf),{"is-auto-width":"auto"===(0,l.R1)(_).width,"update-all":"auto"===(null==(n=(0,l.R1)(a))?void 0:n.labelWidth)},{default:(0,s.k6)((()=>[(0,l.R1)(L)?((0,s.uX)(),(0,s.Wv)((0,s.$y)((0,l.R1)(O)?"label":"div"),{key:0,id:(0,l.R1)(d),for:(0,l.R1)(O),class:(0,c.C4)((0,l.R1)(u).e("label")),style:(0,c.Tr)((0,l.R1)(_))},{default:(0,s.k6)((()=>[(0,s.RG)(e.$slots,"label",{label:(0,l.R1)(W)},(()=>[(0,s.eW)((0,c.v_)((0,l.R1)(W)),1)]))])),_:3},8,["id","for","class","style"])):(0,s.Q3)("v-if",!0)])),_:3},8,["is-auto-width","update-all"]),(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(u).e("content")),style:(0,c.Tr)((0,l.R1)(C))},[(0,s.RG)(e.$slots,"default"),(0,s.bF)(S.F,{name:`${(0,l.R1)(u).namespace.value}-zoom-in-top`},{default:(0,s.k6)((()=>[(0,l.R1)(z)?(0,s.RG)(e.$slots,"error",{key:0,error:g.value},(()=>[(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(A))},(0,c.v_)(g.value),3)])):(0,s.Q3)("v-if",!0)])),_:3},8,["name"])],6)],10,["role","aria-labelledby"])}}});var Vf=(0,g.A)(jf,[["__file","form-item.vue"]]);const Uf=(0,E.GU)(Ip,{FormItem:Vf}),Kf=(0,E.WM)(Vf),Hf=(0,h.b_)({urlList:{type:(0,h.jq)(Array),default:()=>(0,Gs.f)([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:Boolean,teleported:Boolean,closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},showProgress:{type:Boolean,default:!1},crossorigin:{type:(0,h.jq)(String)}}),qf={close:()=>!0,switch:e=>(0,p.Et)(e),rotate:e=>(0,p.Et)(e)},Gf=(0,s.pM)({name:"ElImageViewer"}),Xf=(0,s.pM)({...Gf,props:Hf,emits:qf,setup(e,{expose:t,emit:n}){var r;const a=e,i={CONTAIN:{name:"contain",icon:(0,l.IG)(H.mcU)},ORIGINAL:{name:"original",icon:(0,l.IG)(H.PoX)}},{t:o}=(0,La.Ym)(),d=(0,v.DU)("image-viewer"),{nextZIndex:h}=(0,Fr.YK)(),p=(0,l.KR)(),f=(0,l.KR)([]),m=(0,l.uY)(),g=(0,l.KR)(!0),y=(0,l.KR)(a.initialIndex),b=(0,l.IJ)(i.CONTAIN),w=(0,l.KR)({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),x=(0,l.KR)(null!=(r=a.zIndex)?r:h()),k=(0,s.EW)((()=>{const{urlList:e}=a;return e.length<=1})),_=(0,s.EW)((()=>0===y.value)),C=(0,s.EW)((()=>y.value===a.urlList.length-1)),E=(0,s.EW)((()=>a.urlList[y.value])),R=(0,s.EW)((()=>[d.e("btn"),d.e("prev"),d.is("disabled",!a.infinite&&_.value)])),T=(0,s.EW)((()=>[d.e("btn"),d.e("next"),d.is("disabled",!a.infinite&&C.value)])),L=(0,s.EW)((()=>{const{scale:e,deg:t,offsetX:n,offsetY:r,enableTransition:a}=w.value;let o=n/e,s=r/e;const l=t*Math.PI/180,c=Math.cos(l),u=Math.sin(l);o=o*c+s*u,s=s*c-n/e*u;const d={transform:`scale(${e}) rotate(${t}deg) translate(${o}px, ${s}px)`,transition:a?"transform .3s":""};return b.value.name===i.CONTAIN.name&&(d.maxWidth=d.maxHeight="100%"),d})),O=(0,s.EW)((()=>`${y.value+1} / ${a.urlList.length}`));function I(){B(),n("close")}function N(){const e=Li((e=>{switch(e.code){case $n.R.esc:a.closeOnPressEscape&&I();break;case $n.R.space:z();break;case $n.R.left:j();break;case $n.R.up:U("zoomIn");break;case $n.R.right:V();break;case $n.R.down:U("zoomOut");break}})),t=Li((e=>{const t=e.deltaY||e.deltaX;U(t<0?"zoomIn":"zoomOut",{zoomRate:a.zoomRate,enableTransition:!1})}));m.run((()=>{(0,u.MLh)(document,"keydown",e),(0,u.MLh)(document,"wheel",t)}))}function B(){m.stop()}function D(){g.value=!1}function F(e){g.value=!1,e.target.alt=o("el.image.error")}function $(e){if(g.value||0!==e.button||!p.value)return;w.value.enableTransition=!1;const{offsetX:t,offsetY:n}=w.value,r=e.pageX,a=e.pageY,i=Li((e=>{w.value={...w.value,offsetX:t+e.pageX-r,offsetY:n+e.pageY-a}})),o=(0,u.MLh)(document,"mousemove",i);(0,u.MLh)(document,"mouseup",(()=>{o()})),e.preventDefault()}function P(){w.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function z(){if(g.value)return;const e=(0,M.YD)(i),t=Object.values(i),n=b.value.name,r=t.findIndex((e=>e.name===n)),a=(r+1)%e.length;b.value=i[e[a]],P()}function W(e){const t=a.urlList.length;y.value=(e+t)%t}function j(){_.value&&!a.infinite||W(y.value-1)}function V(){C.value&&!a.infinite||W(y.value+1)}function U(e,t={}){if(g.value)return;const{minScale:r,maxScale:i}=a,{zoomRate:o,rotateDeg:s,enableTransition:l}={zoomRate:a.zoomRate,rotateDeg:90,enableTransition:!0,...t};switch(e){case"zoomOut":w.value.scale>r&&(w.value.scale=Number.parseFloat((w.value.scale/o).toFixed(3)));break;case"zoomIn":w.value.scale<i&&(w.value.scale=Number.parseFloat((w.value.scale*o).toFixed(3)));break;case"clockwise":w.value.deg+=s,n("rotate",w.value.deg);break;case"anticlockwise":w.value.deg-=s,n("rotate",w.value.deg);break}w.value.enableTransition=l}function K(e){var t;"pointer"===(null==(t=e.detail)?void 0:t.focusReason)&&e.preventDefault()}function q(){a.closeOnPressEscape&&I()}return(0,s.wB)(E,(()=>{(0,s.dY)((()=>{const e=f.value[0];(null==e?void 0:e.complete)||(g.value=!0)}))})),(0,s.wB)(y,(e=>{P(),n("switch",e)})),(0,s.sV)((()=>{N()})),t({setActiveItem:W}),(e,t)=>((0,s.uX)(),(0,s.Wv)((0,l.R1)(wr),{to:"body",disabled:!e.teleported},{default:(0,s.k6)((()=>[(0,s.bF)(S.eB,{name:"viewer-fade",appear:""},{default:(0,s.k6)((()=>[(0,s.Lk)("div",{ref_key:"wrapper",ref:p,tabindex:-1,class:(0,c.C4)((0,l.R1)(d).e("wrapper")),style:(0,c.Tr)({zIndex:x.value})},[(0,s.bF)((0,l.R1)(Er.A),{loop:"",trapped:"","focus-trap-el":p.value,"focus-start-el":"container",onFocusoutPrevented:K,onReleaseRequested:q},{default:(0,s.k6)((()=>[(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(d).e("mask")),onClick:(0,S.D$)((t=>e.hideOnClickModal&&I()),["self"])},null,10,["onClick"]),(0,s.Q3)(" CLOSE "),(0,s.Lk)("span",{class:(0,c.C4)([(0,l.R1)(d).e("btn"),(0,l.R1)(d).e("close")]),onClick:I},[(0,s.bF)((0,l.R1)(A.tk),null,{default:(0,s.k6)((()=>[(0,s.bF)((0,l.R1)(H.bm))])),_:1})],2),(0,s.Q3)(" ARROW "),(0,l.R1)(k)?(0,s.Q3)("v-if",!0):((0,s.uX)(),(0,s.CE)(s.FK,{key:0},[(0,s.Lk)("span",{class:(0,c.C4)((0,l.R1)(R)),onClick:j},[(0,s.bF)((0,l.R1)(A.tk),null,{default:(0,s.k6)((()=>[(0,s.bF)((0,l.R1)(H.nkM))])),_:1})],2),(0,s.Lk)("span",{class:(0,c.C4)((0,l.R1)(T)),onClick:V},[(0,s.bF)((0,l.R1)(A.tk),null,{default:(0,s.k6)((()=>[(0,s.bF)((0,l.R1)(H.Qpb))])),_:1})],2)],64)),e.showProgress?((0,s.uX)(),(0,s.CE)("div",{key:1,class:(0,c.C4)([(0,l.R1)(d).e("btn"),(0,l.R1)(d).e("progress")])},[(0,s.RG)(e.$slots,"progress",{activeIndex:y.value,total:e.urlList.length},(()=>[(0,s.eW)((0,c.v_)((0,l.R1)(O)),1)]))],2)):(0,s.Q3)("v-if",!0),(0,s.Q3)(" ACTIONS "),(0,s.Lk)("div",{class:(0,c.C4)([(0,l.R1)(d).e("btn"),(0,l.R1)(d).e("actions")])},[(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(d).e("actions__inner"))},[(0,s.RG)(e.$slots,"toolbar",{actions:U,prev:j,next:V,reset:z,activeIndex:y.value},(()=>[(0,s.bF)((0,l.R1)(A.tk),{onClick:e=>U("zoomOut")},{default:(0,s.k6)((()=>[(0,s.bF)((0,l.R1)(H.enP))])),_:1},8,["onClick"]),(0,s.bF)((0,l.R1)(A.tk),{onClick:e=>U("zoomIn")},{default:(0,s.k6)((()=>[(0,s.bF)((0,l.R1)(H.$Zd))])),_:1},8,["onClick"]),(0,s.Lk)("i",{class:(0,c.C4)((0,l.R1)(d).e("actions__divider"))},null,2),(0,s.bF)((0,l.R1)(A.tk),{onClick:z},{default:(0,s.k6)((()=>[((0,s.uX)(),(0,s.Wv)((0,s.$y)((0,l.R1)(b).icon)))])),_:1}),(0,s.Lk)("i",{class:(0,c.C4)((0,l.R1)(d).e("actions__divider"))},null,2),(0,s.bF)((0,l.R1)(A.tk),{onClick:e=>U("anticlockwise")},{default:(0,s.k6)((()=>[(0,s.bF)((0,l.R1)(H.Zck))])),_:1},8,["onClick"]),(0,s.bF)((0,l.R1)(A.tk),{onClick:e=>U("clockwise")},{default:(0,s.k6)((()=>[(0,s.bF)((0,l.R1)(H.kyK))])),_:1},8,["onClick"])]))],2)],2),(0,s.Q3)(" CANVAS "),(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(d).e("canvas"))},[((0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)(e.urlList,((t,n)=>(0,s.bo)(((0,s.uX)(),(0,s.CE)("img",{ref_for:!0,ref:e=>f.value[n]=e,key:t,src:t,style:(0,c.Tr)((0,l.R1)(L)),class:(0,c.C4)((0,l.R1)(d).e("img")),crossorigin:e.crossorigin,onLoad:D,onError:F,onMousedown:$},null,46,["src","crossorigin"])),[[S.aG,n===y.value]]))),128))],2),(0,s.RG)(e.$slots,"default")])),_:3},8,["focus-trap-el"])],6)])),_:3})])),_:3},8,["disabled"]))}});var Yf=(0,g.A)(Xf,[["__file","image-viewer.vue"]]);const Qf=(0,E.GU)(Yf),Zf=(0,h.b_)({hideOnClickModal:Boolean,src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:Boolean,scrollContainer:{type:(0,h.jq)([String,Object])},previewSrcList:{type:(0,h.jq)(Array),default:()=>(0,Gs.f)([])},previewTeleported:Boolean,zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},showProgress:{type:Boolean,default:!1},crossorigin:{type:(0,h.jq)(String)}}),Jf={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>(0,p.Et)(e),close:()=>!0,show:()=>!0},em=(0,s.pM)({name:"ElImage",inheritAttrs:!1}),tm=(0,s.pM)({...em,props:Zf,emits:Jf,setup(e,{expose:t,emit:n}){const r=e;let a="";const{t:i}=(0,La.Ym)(),o=(0,v.DU)("image"),d=(0,s.OA)(),h=(0,s.EW)((()=>(0,Or.A)(Object.entries(d).filter((([e])=>/^(data-|on[A-Z])/i.test(e)||["id","style"].includes(e)))))),f=(0,na.O)({excludeListeners:!0,excludeKeys:(0,s.EW)((()=>Object.keys(h.value)))}),m=(0,l.KR)(),g=(0,l.KR)(!1),b=(0,l.KR)(!0),w=(0,l.KR)(!1),x=(0,l.KR)(),k=(0,l.KR)(),_=Q.oc&&"loading"in HTMLImageElement.prototype;let C,E;const R=(0,s.EW)((()=>[o.e("inner"),A.value&&o.e("preview"),b.value&&o.is("loading")])),S=(0,s.EW)((()=>{const{fit:e}=r;return Q.oc&&e?{objectFit:e}:{}})),A=(0,s.EW)((()=>{const{previewSrcList:e}=r;return(0,c.cy)(e)&&e.length>0})),T=(0,s.EW)((()=>{const{previewSrcList:e,initialIndex:t}=r;let n=t;return t>e.length-1&&(n=0),n})),M=(0,s.EW)((()=>"eager"!==r.loading&&(!_&&"lazy"===r.loading||r.lazy))),L=()=>{Q.oc&&(b.value=!0,g.value=!1,m.value=r.src)};function O(e){b.value=!1,g.value=!1,n("load",e)}function I(e){b.value=!1,g.value=!0,n("error",e)}function N(){Al(x.value,k.value)&&(L(),F())}const B=(0,Q.k3)(N,200,!0);async function D(){var e;if(!Q.oc)return;await(0,s.dY)();const{scrollContainer:t}=r;(0,p.vq)(t)?k.value=t:(0,c.Kg)(t)&&""!==t?k.value=null!=(e=document.querySelector(t))?e:void 0:x.value&&(k.value=(0,y.Bo)(x.value)),k.value&&(C=(0,u.MLh)(k,"scroll",B),setTimeout((()=>N()),100))}function F(){Q.oc&&k.value&&B&&(null==C||C(),k.value=void 0)}function $(e){if(e.ctrlKey)return e.deltaY<0||e.deltaY>0?(e.preventDefault(),!1):void 0}function P(){A.value&&(E=(0,u.MLh)("wheel",$,{passive:!1}),a=document.body.style.overflow,document.body.style.overflow="hidden",w.value=!0,n("show"))}function z(){null==E||E(),document.body.style.overflow=a,w.value=!1,n("close")}function W(e){n("switch",e)}return(0,s.wB)((()=>r.src),(()=>{M.value?(b.value=!0,g.value=!1,F(),D()):L()})),(0,s.sV)((()=>{M.value?D():L()})),t({showPreview:P}),(e,t)=>((0,s.uX)(),(0,s.CE)("div",(0,s.v6)({ref_key:"container",ref:x},(0,l.R1)(h),{class:[(0,l.R1)(o).b(),e.$attrs.class]}),[g.value?(0,s.RG)(e.$slots,"error",{key:0},(()=>[(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(o).e("error"))},(0,c.v_)((0,l.R1)(i)("el.image.error")),3)])):((0,s.uX)(),(0,s.CE)(s.FK,{key:1},[void 0!==m.value?((0,s.uX)(),(0,s.CE)("img",(0,s.v6)({key:0},(0,l.R1)(f),{src:m.value,loading:e.loading,style:(0,l.R1)(S),class:(0,l.R1)(R),crossorigin:e.crossorigin,onClick:P,onLoad:O,onError:I}),null,16,["src","loading","crossorigin"])):(0,s.Q3)("v-if",!0),b.value?((0,s.uX)(),(0,s.CE)("div",{key:1,class:(0,c.C4)((0,l.R1)(o).e("wrapper"))},[(0,s.RG)(e.$slots,"placeholder",{},(()=>[(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(o).e("placeholder"))},null,2)]))],2)):(0,s.Q3)("v-if",!0)],64)),(0,l.R1)(A)?((0,s.uX)(),(0,s.CE)(s.FK,{key:2},[w.value?((0,s.uX)(),(0,s.Wv)((0,l.R1)(Qf),{key:0,"z-index":e.zIndex,"initial-index":(0,l.R1)(T),infinite:e.infinite,"zoom-rate":e.zoomRate,"min-scale":e.minScale,"max-scale":e.maxScale,"show-progress":e.showProgress,"url-list":e.previewSrcList,crossorigin:e.crossorigin,"hide-on-click-modal":e.hideOnClickModal,teleported:e.previewTeleported,"close-on-press-escape":e.closeOnPressEscape,onClose:z,onSwitch:W},{progress:(0,s.k6)((t=>[(0,s.RG)(e.$slots,"progress",(0,c._B)((0,s.Ng)(t)))])),toolbar:(0,s.k6)((t=>[(0,s.RG)(e.$slots,"toolbar",(0,c._B)((0,s.Ng)(t)))])),default:(0,s.k6)((()=>[e.$slots.viewer?((0,s.uX)(),(0,s.CE)("div",{key:0},[(0,s.RG)(e.$slots,"viewer")])):(0,s.Q3)("v-if",!0)])),_:3},8,["z-index","initial-index","infinite","zoom-rate","min-scale","max-scale","show-progress","url-list","crossorigin","hide-on-click-modal","teleported","close-on-press-escape"])):(0,s.Q3)("v-if",!0)],64)):(0,s.Q3)("v-if",!0)],16))}});var nm=(0,g.A)(tm,[["__file","image.vue"]]);const rm=(0,E.GU)(nm),am=(0,h.b_)({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:Number,readonly:Boolean,disabled:Boolean,size:ao.mU,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:e=>null===e||(0,p.Et)(e)||["min","max"].includes(e),default:null},name:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)},validateEvent:{type:Boolean,default:!0},...(0,oe.l)(["ariaLabel"])}),im={[d.YU]:(e,t)=>t!==e,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[d.qs]:e=>(0,p.Et)(e)||(0,er.A)(e),[d.l4]:e=>(0,p.Et)(e)||(0,er.A)(e)};var om=n(2808);const sm=(0,s.pM)({name:"ElInputNumber"}),lm=(0,s.pM)({...sm,props:am,emits:im,setup(e,{expose:t,emit:n}){const r=e,{t:a}=(0,La.Ym)(),i=(0,v.DU)("input-number"),o=(0,l.KR)(),u=(0,l.Kh)({currentValue:r.modelValue,userInput:null}),{formItem:h}=(0,co.j)(),f=(0,s.EW)((()=>(0,p.Et)(r.modelValue)&&r.modelValue<=r.min)),m=(0,s.EW)((()=>(0,p.Et)(r.modelValue)&&r.modelValue>=r.max)),g=(0,s.EW)((()=>{const e=C(r.step);return(0,p.b0)(r.precision)?Math.max(C(r.modelValue),e):(e>r.precision&&(0,w.U)("InputNumber","precision should not be less than the decimal places of step"),r.precision)})),y=(0,s.EW)((()=>r.controls&&"right"===r.controlsPosition)),b=(0,ra.NV)(),x=(0,ra.CB)(),k=(0,s.EW)((()=>{if(null!==u.userInput)return u.userInput;let e=u.currentValue;if((0,er.A)(e))return"";if((0,p.Et)(e)){if(Number.isNaN(e))return"";(0,p.b0)(r.precision)||(e=e.toFixed(r.precision))}return e})),_=(e,t)=>{if((0,p.b0)(t)&&(t=g.value),0===t)return Math.round(e);let n=String(e);const r=n.indexOf(".");if(-1===r)return e;const a=n.replace(".","").split(""),i=a[r+t];if(!i)return e;const o=n.length;return"5"===n.charAt(o-1)&&(n=`${n.slice(0,Math.max(0,o-1))}6`),Number.parseFloat(Number(n).toFixed(t))},C=e=>{if((0,er.A)(e))return 0;const t=e.toString(),n=t.indexOf(".");let r=0;return-1!==n&&(r=t.length-n-1),r},E=(e,t=1)=>(0,p.Et)(e)?_(e+r.step*t):u.currentValue,R=()=>{if(r.readonly||x.value||m.value)return;const e=Number(k.value)||0,t=E(e);L(t),n(d.qs,u.currentValue),$()},T=()=>{if(r.readonly||x.value||f.value)return;const e=Number(k.value)||0,t=E(e,-1);L(t),n(d.qs,u.currentValue),$()},M=(e,t)=>{const{max:a,min:i,step:o,precision:s,stepStrictly:l,valueOnClear:u}=r;a<i&&(0,w.$)("InputNumber","min should not be greater than max.");let h=Number(e);if((0,er.A)(e)||Number.isNaN(h))return null;if(""===e){if(null===u)return null;h=(0,c.Kg)(u)?{min:i,max:a}[u]:u}return l&&(h=_(Math.round(h/o)*o,s),h!==e&&t&&n(d.l4,h)),(0,p.b0)(s)||(h=_(h,s)),(h>a||h<i)&&(h=h>a?a:i,t&&n(d.l4,h)),h},L=(e,t=!0)=>{var a;const i=u.currentValue,o=M(e);t?i===o&&e||(u.userInput=null,n(d.l4,o),i!==o&&n(d.YU,o,i),r.validateEvent&&(null==(a=null==h?void 0:h.validate)||a.call(h,"change").catch((e=>(0,w.U)(e)))),u.currentValue=o):n(d.l4,o)},O=e=>{u.userInput=e;const t=""===e?null:Number(e);n(d.qs,t),L(t,!1)},I=e=>{const t=""!==e?Number(e):"";((0,p.Et)(t)&&!Number.isNaN(t)||""===e)&&L(t),$(),u.userInput=null},N=()=>{var e,t;null==(t=null==(e=o.value)?void 0:e.focus)||t.call(e)},B=()=>{var e,t;null==(t=null==(e=o.value)?void 0:e.blur)||t.call(e)},D=e=>{n("focus",e)},F=e=>{var t,a;u.userInput=null,(0,om.gm)()&&null===u.currentValue&&(null==(t=o.value)?void 0:t.input)&&(o.value.input.value=""),n("blur",e),r.validateEvent&&(null==(a=null==h?void 0:h.validate)||a.call(h,"blur").catch((e=>(0,w.U)(e))))},$=()=>{u.currentValue!==r.modelValue&&(u.currentValue=r.modelValue)},P=e=>{document.activeElement===e.target&&e.preventDefault()};return(0,s.wB)((()=>r.modelValue),((e,t)=>{const n=M(e,!0);null===u.userInput&&n!==t&&(u.currentValue=n)}),{immediate:!0}),(0,s.sV)((()=>{var e;const{min:t,max:a,modelValue:i}=r,s=null==(e=o.value)?void 0:e.input;if(s.setAttribute("role","spinbutton"),Number.isFinite(a)?s.setAttribute("aria-valuemax",String(a)):s.removeAttribute("aria-valuemax"),Number.isFinite(t)?s.setAttribute("aria-valuemin",String(t)):s.removeAttribute("aria-valuemin"),s.setAttribute("aria-valuenow",u.currentValue||0===u.currentValue?String(u.currentValue):""),s.setAttribute("aria-disabled",String(x.value)),!(0,p.Et)(i)&&null!=i){let e=Number(i);Number.isNaN(e)&&(e=null),n(d.l4,e)}s.addEventListener("wheel",P,{passive:!1})})),(0,s.$u)((()=>{var e,t;const n=null==(e=o.value)?void 0:e.input;null==n||n.setAttribute("aria-valuenow",`${null!=(t=u.currentValue)?t:""}`)})),t({focus:N,blur:B}),(e,t)=>((0,s.uX)(),(0,s.CE)("div",{class:(0,c.C4)([(0,l.R1)(i).b(),(0,l.R1)(i).m((0,l.R1)(b)),(0,l.R1)(i).is("disabled",(0,l.R1)(x)),(0,l.R1)(i).is("without-controls",!e.controls),(0,l.R1)(i).is("controls-right",(0,l.R1)(y))]),onDragstart:(0,S.D$)((()=>{}),["prevent"])},[e.controls?(0,s.bo)(((0,s.uX)(),(0,s.CE)("span",{key:0,role:"button","aria-label":(0,l.R1)(a)("el.inputNumber.decrease"),class:(0,c.C4)([(0,l.R1)(i).e("decrease"),(0,l.R1)(i).is("disabled",(0,l.R1)(f))]),onKeydown:(0,S.jR)(T,["enter"])},[(0,s.RG)(e.$slots,"decrease-icon",{},(()=>[(0,s.bF)((0,l.R1)(A.tk),null,{default:(0,s.k6)((()=>[(0,l.R1)(y)?((0,s.uX)(),(0,s.Wv)((0,l.R1)(H.yd$),{key:0})):((0,s.uX)(),(0,s.Wv)((0,l.R1)(H.Hsy),{key:1}))])),_:1})]))],42,["aria-label","onKeydown"])),[[(0,l.R1)($u),T]]):(0,s.Q3)("v-if",!0),e.controls?(0,s.bo)(((0,s.uX)(),(0,s.CE)("span",{key:1,role:"button","aria-label":(0,l.R1)(a)("el.inputNumber.increase"),class:(0,c.C4)([(0,l.R1)(i).e("increase"),(0,l.R1)(i).is("disabled",(0,l.R1)(m))]),onKeydown:(0,S.jR)(R,["enter"])},[(0,s.RG)(e.$slots,"increase-icon",{},(()=>[(0,s.bF)((0,l.R1)(A.tk),null,{default:(0,s.k6)((()=>[(0,l.R1)(y)?((0,s.uX)(),(0,s.Wv)((0,l.R1)(H.DoI),{key:0})):((0,s.uX)(),(0,s.Wv)((0,l.R1)(H.FWt),{key:1}))])),_:1})]))],42,["aria-label","onKeydown"])),[[(0,l.R1)($u),R]]):(0,s.Q3)("v-if",!0),(0,s.bF)((0,l.R1)(q.WK),{id:e.id,ref_key:"input",ref:o,type:"number",step:e.step,"model-value":(0,l.R1)(k),placeholder:e.placeholder,readonly:e.readonly,disabled:(0,l.R1)(x),size:(0,l.R1)(b),max:e.max,min:e.min,name:e.name,"aria-label":e.ariaLabel,"validate-event":!1,onKeydown:[(0,S.jR)((0,S.D$)(R,["prevent"]),["up"]),(0,S.jR)((0,S.D$)(T,["prevent"]),["down"])],onBlur:F,onFocus:D,onInput:O,onChange:I},(0,s.eX)({_:2},[e.$slots.prefix?{name:"prefix",fn:(0,s.k6)((()=>[(0,s.RG)(e.$slots,"prefix")]))}:void 0,e.$slots.suffix?{name:"suffix",fn:(0,s.k6)((()=>[(0,s.RG)(e.$slots,"suffix")]))}:void 0]),1032,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","aria-label","onKeydown"])],42,["onDragstart"]))}});var cm=(0,g.A)(lm,[["__file","input-number.vue"]]);const um=(0,E.GU)(cm),dm=(0,h.b_)({modelValue:{type:(0,h.jq)(Array)},max:Number,tagType:{...Cs.type,default:"info"},tagEffect:Cs.effect,trigger:{type:(0,h.jq)(String),default:$n.R.enter},draggable:{type:Boolean,default:!1},size:ao.mU,clearable:Boolean,disabled:{type:Boolean,default:void 0},validateEvent:{type:Boolean,default:!0},readonly:Boolean,autofocus:Boolean,id:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},placeholder:String,autocomplete:{type:String,default:"off"},ariaLabel:String}),hm={[d.l4]:e=>(0,c.cy)(e)||(0,p.b0)(e),[d.YU]:e=>(0,c.cy)(e)||(0,p.b0)(e),[d.qs]:e=>(0,c.Kg)(e),"add-tag":e=>(0,c.Kg)(e),"remove-tag":e=>(0,c.Kg)(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0};function pm({props:e,emit:t,formItem:n}){const r=(0,ra.CB)(),a=(0,ra.NV)(),i=(0,l.IJ)(),o=(0,l.KR)(),c=(0,s.EW)((()=>["small"].includes(a.value)?"small":"default")),u=(0,s.EW)((()=>{var t;return(null==(t=e.modelValue)?void 0:t.length)?void 0:e.placeholder})),h=(0,s.EW)((()=>!(e.readonly||r.value))),f=(0,s.EW)((()=>{var t,n;return!(0,p.b0)(e.max)&&(null!=(n=null==(t=e.modelValue)?void 0:t.length)?n:0)>=e.max})),m=e=>{f.value?o.value=void 0:R.value||t(d.qs,e.target.value)},g=t=>{var n;if(!R.value)switch(t.code){case e.trigger:t.preventDefault(),t.stopPropagation(),v();break;case $n.R.numpadEnter:e.trigger===$n.R.enter&&(t.preventDefault(),t.stopPropagation(),v());break;case $n.R.backspace:!o.value&&(null==(n=e.modelValue)?void 0:n.length)&&(t.preventDefault(),t.stopPropagation(),y(e.modelValue.length-1));break}},v=()=>{var n,r;const a=null==(n=o.value)?void 0:n.trim();if(!a||f.value)return;const i=[...null!=(r=e.modelValue)?r:[],a];t(d.l4,i),t(d.YU,i),t("add-tag",a),o.value=void 0},y=n=>{var r;const a=(null!=(r=e.modelValue)?r:[]).slice(),[i]=a.splice(n,1);t(d.l4,a),t(d.YU,a),t("remove-tag",i)},b=()=>{o.value=void 0,t(d.l4,void 0),t(d.YU,void 0),t("clear")},x=(n,r,a)=>{var i;const o=(null!=(i=e.modelValue)?i:[]).slice(),[s]=o.splice(n,1),l=r>n&&"before"===a?-1:r<n&&"after"===a?1:0;o.splice(r+l,0,s),t(d.l4,o),t(d.YU,o)},k=()=>{var e;null==(e=i.value)||e.focus()},_=()=>{var e;null==(e=i.value)||e.blur()},{wrapperRef:C,isFocused:E}=(0,cc.K)(i,{beforeFocus(){return r.value},afterBlur(){var t;v(),e.validateEvent&&(null==(t=null==n?void 0:n.validate)||t.call(n,"blur").catch((e=>(0,w.U)(e))))}}),{isComposing:R,handleCompositionStart:S,handleCompositionUpdate:A,handleCompositionEnd:T}=(0,Ds.o)({afterComposition:m});return(0,s.wB)((()=>e.modelValue),(()=>{var t;e.validateEvent&&(null==(t=null==n?void 0:n.validate)||t.call(n,d.YU).catch((e=>(0,w.U)(e))))})),{inputRef:i,wrapperRef:C,isFocused:E,isComposing:R,inputValue:o,size:a,tagSize:c,placeholder:u,closable:h,disabled:r,inputLimit:f,handleDragged:x,handleInput:m,handleKeydown:g,handleAddTag:v,handleRemoveTag:y,handleClear:b,handleCompositionStart:S,handleCompositionUpdate:A,handleCompositionEnd:T,focus:k,blur:_}}function fm(){const e=(0,l.KR)(!1),t=()=>{e.value=!0},n=()=>{e.value=!1};return{hovering:e,handleMouseEnter:t,handleMouseLeave:n}}function mm(){const e=(0,l.IJ)(),t=(0,l.KR)(0),n=11,r=(0,s.EW)((()=>({minWidth:`${Math.max(t.value,n)}px`}))),a=()=>{var n,r;t.value=null!=(r=null==(n=e.value)?void 0:n.getBoundingClientRect().width)?r:0};return(0,u.wYm)(e,a),{calculatorRef:e,calculatorWidth:t,inputStyle:r}}function gm({wrapperRef:e,handleDragged:t,afterDragged:n}){const r=(0,v.DU)("input-tag"),a=(0,l.IJ)(),i=(0,l.KR)(!1);let o,s,c,u;function d(e){return`.${r.e("inner")} .${r.namespace.value}-tag:nth-child(${e+1})`}function h(t,n){o=n,s=e.value.querySelector(d(n)),s&&(s.style.opacity="0.5"),t.dataTransfer.effectAllowed="move"}function f(t,n){if(c=n,t.preventDefault(),t.dataTransfer.dropEffect="move",(0,p.b0)(o)||o===n)return void(i.value=!1);const s=e.value.querySelector(d(n)).getBoundingClientRect(),l=!(o+1===n),h=!(o-1===n),f=t.clientX-s.left,m=l?h?.5:1:-1,g=h?l?.5:0:1;u=f<=s.width*m?"before":f>s.width*g?"after":void 0;const v=e.value.querySelector(`.${r.e("inner")}`),y=v.getBoundingClientRect(),w=Number.parseFloat((0,b.gd)(v,"gap"))/2,x=s.top-y.top;let k=-9999;if("before"===u)k=Math.max(s.left-y.left-w,Math.floor(-w/2));else if("after"===u){const e=s.right-y.left;k=e+(y.width===e?Math.floor(w/2):w)}(0,b.eC)(a.value,{top:`${x}px`,left:`${k}px`}),i.value=!!u}function m(e){e.preventDefault(),s&&(s.style.opacity=""),!u||(0,p.b0)(o)||(0,p.b0)(c)||o===c||t(o,c,u),i.value=!1,o=void 0,s=null,c=void 0,u=void 0,null==n||n()}return{dropIndicatorRef:a,showDropIndicator:i,handleDragStart:h,handleDragOver:f,handleDragEnd:m}}function vm({props:e,isFocused:t,hovering:n,disabled:r,inputValue:a,size:i,validateState:o,validateIcon:l,needStatusIcon:c}){const u=(0,s.OA)(),d=(0,s.Ht)(),h=(0,v.DU)("input-tag"),p=(0,v.DU)("input"),f=(0,s.EW)((()=>[h.b(),h.is("focused",t.value),h.is("hovering",n.value),h.is("disabled",r.value),h.m(i.value),h.e("wrapper"),u.class])),m=(0,s.EW)((()=>[u.style])),g=(0,s.EW)((()=>{var t,n;return[h.e("inner"),h.is("draggable",e.draggable),h.is("left-space",!(null==(t=e.modelValue)?void 0:t.length)&&!d.prefix),h.is("right-space",!(null==(n=e.modelValue)?void 0:n.length)&&!b.value)]})),y=(0,s.EW)((()=>{var i;return e.clearable&&!r.value&&!e.readonly&&((null==(i=e.modelValue)?void 0:i.length)||a.value)&&(t.value||n.value)})),b=(0,s.EW)((()=>d.suffix||y.value||o.value&&l.value&&c.value));return{ns:h,nsInput:p,containerKls:f,containerStyle:m,innerKls:g,showClear:y,showSuffix:b}}const ym=(0,s.pM)({name:"ElInputTag",inheritAttrs:!1}),bm=(0,s.pM)({...ym,props:dm,emits:hm,setup(e,{expose:t,emit:n}){const r=e,a=(0,na.O)(),i=(0,s.Ht)(),{form:o,formItem:u}=(0,co.j)(),{inputId:d}=(0,co.W)(r,{formItemContext:u}),h=(0,s.EW)((()=>{var e;return null!=(e=null==o?void 0:o.statusIcon)&&e})),p=(0,s.EW)((()=>(null==u?void 0:u.validateState)||"")),f=(0,s.EW)((()=>p.value&&T.vK[p.value])),{inputRef:m,wrapperRef:g,isFocused:v,inputValue:y,size:b,tagSize:w,placeholder:x,closable:k,disabled:_,handleDragged:C,handleInput:E,handleKeydown:R,handleRemoveTag:M,handleClear:L,handleCompositionStart:O,handleCompositionUpdate:I,handleCompositionEnd:N,focus:B,blur:D}=pm({props:r,emit:n,formItem:u}),{hovering:F,handleMouseEnter:$,handleMouseLeave:P}=fm(),{calculatorRef:z,inputStyle:W}=mm(),{dropIndicatorRef:j,showDropIndicator:V,handleDragStart:U,handleDragOver:K,handleDragEnd:q}=gm({wrapperRef:g,handleDragged:C,afterDragged:B}),{ns:G,nsInput:X,containerKls:Y,containerStyle:Q,innerKls:Z,showClear:J,showSuffix:ee}=vm({props:r,hovering:F,isFocused:v,inputValue:y,disabled:_,size:b,validateState:p,validateIcon:f,needStatusIcon:h});return t({focus:B,blur:D}),(e,t)=>((0,s.uX)(),(0,s.CE)("div",{ref_key:"wrapperRef",ref:g,class:(0,c.C4)((0,l.R1)(Y)),style:(0,c.Tr)((0,l.R1)(Q)),onMouseenter:(0,l.R1)($),onMouseleave:(0,l.R1)(P)},[(0,l.R1)(i).prefix?((0,s.uX)(),(0,s.CE)("div",{key:0,class:(0,c.C4)((0,l.R1)(G).e("prefix"))},[(0,s.RG)(e.$slots,"prefix")],2)):(0,s.Q3)("v-if",!0),(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(Z))},[((0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)(e.modelValue,((t,n)=>((0,s.uX)(),(0,s.Wv)((0,l.R1)(Ts),{key:n,size:(0,l.R1)(w),closable:(0,l.R1)(k),type:e.tagType,effect:e.tagEffect,draggable:(0,l.R1)(k)&&e.draggable,"disable-transitions":"",onClose:e=>(0,l.R1)(M)(n),onDragstart:e=>(0,l.R1)(U)(e,n),onDragover:e=>(0,l.R1)(K)(e,n),onDragend:(0,l.R1)(q),onDrop:(0,S.D$)((()=>{}),["stop"])},{default:(0,s.k6)((()=>[(0,s.RG)(e.$slots,"tag",{value:t,index:n},(()=>[(0,s.eW)((0,c.v_)(t),1)]))])),_:2},1032,["size","closable","type","effect","draggable","onClose","onDragstart","onDragover","onDragend","onDrop"])))),128)),(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(G).e("input-wrapper"))},[(0,s.bo)((0,s.Lk)("input",(0,s.v6)({id:(0,l.R1)(d),ref_key:"inputRef",ref:m,"onUpdate:modelValue":e=>(0,l.i9)(y)?y.value=e:null},(0,l.R1)(a),{type:"text",minlength:e.minlength,maxlength:e.maxlength,disabled:(0,l.R1)(_),readonly:e.readonly,autocomplete:e.autocomplete,tabindex:e.tabindex,placeholder:(0,l.R1)(x),autofocus:e.autofocus,ariaLabel:e.ariaLabel,class:(0,l.R1)(G).e("input"),style:(0,l.R1)(W),onCompositionstart:(0,l.R1)(O),onCompositionupdate:(0,l.R1)(I),onCompositionend:(0,l.R1)(N),onInput:(0,l.R1)(E),onKeydown:(0,l.R1)(R)}),null,16,["id","onUpdate:modelValue","minlength","maxlength","disabled","readonly","autocomplete","tabindex","placeholder","autofocus","ariaLabel","onCompositionstart","onCompositionupdate","onCompositionend","onInput","onKeydown"]),[[S.Jo,(0,l.R1)(y)]]),(0,s.Lk)("span",{ref_key:"calculatorRef",ref:z,"aria-hidden":"true",class:(0,c.C4)((0,l.R1)(G).e("input-calculator")),textContent:(0,c.v_)((0,l.R1)(y))},null,10,["textContent"])],2),(0,s.bo)((0,s.Lk)("div",{ref_key:"dropIndicatorRef",ref:j,class:(0,c.C4)((0,l.R1)(G).e("drop-indicator"))},null,2),[[S.aG,(0,l.R1)(V)]])],2),(0,l.R1)(ee)?((0,s.uX)(),(0,s.CE)("div",{key:1,class:(0,c.C4)((0,l.R1)(G).e("suffix"))},[(0,s.RG)(e.$slots,"suffix"),(0,l.R1)(J)?((0,s.uX)(),(0,s.Wv)((0,l.R1)(A.tk),{key:0,class:(0,c.C4)([(0,l.R1)(G).e("icon"),(0,l.R1)(G).e("clear")]),onMousedown:(0,S.D$)((0,l.R1)(c.tE),["prevent"]),onClick:(0,l.R1)(L)},{default:(0,s.k6)((()=>[(0,s.bF)((0,l.R1)(H.R$5))])),_:1},8,["class","onMousedown","onClick"])):(0,s.Q3)("v-if",!0),(0,l.R1)(p)&&(0,l.R1)(f)&&(0,l.R1)(h)?((0,s.uX)(),(0,s.Wv)((0,l.R1)(A.tk),{key:1,class:(0,c.C4)([(0,l.R1)(X).e("icon"),(0,l.R1)(X).e("validateIcon"),(0,l.R1)(X).is("loading","validating"===(0,l.R1)(p))])},{default:(0,s.k6)((()=>[((0,s.uX)(),(0,s.Wv)((0,s.$y)((0,l.R1)(f))))])),_:1},8,["class"])):(0,s.Q3)("v-if",!0)],2)):(0,s.Q3)("v-if",!0)],46,["onMouseenter","onMouseleave"]))}});var wm=(0,g.A)(bm,[["__file","input-tag.vue"]]);const xm=(0,E.GU)(wm),km=(0,h.b_)({type:{type:String,values:["primary","success","warning","info","danger","default"],default:"default"},underline:{type:Boolean,default:!0},disabled:Boolean,href:{type:String,default:""},target:{type:String,default:"_self"},icon:{type:T.Ze}}),_m={click:e=>e instanceof MouseEvent},Cm=(0,s.pM)({name:"ElLink"}),Em=(0,s.pM)({...Cm,props:km,emits:_m,setup(e,{emit:t}){const n=e,r=(0,v.DU)("link"),a=(0,s.EW)((()=>[r.b(),r.m(n.type),r.is("disabled",n.disabled),r.is("underline",n.underline&&!n.disabled)]));function i(e){n.disabled||t("click",e)}return(e,t)=>((0,s.uX)(),(0,s.CE)("a",{class:(0,c.C4)((0,l.R1)(a)),href:e.disabled||!e.href?void 0:e.href,target:e.disabled||!e.href?void 0:e.target,onClick:i},[e.icon?((0,s.uX)(),(0,s.Wv)((0,l.R1)(A.tk),{key:0},{default:(0,s.k6)((()=>[((0,s.uX)(),(0,s.Wv)((0,s.$y)(e.icon)))])),_:1})):(0,s.Q3)("v-if",!0),e.$slots.default?((0,s.uX)(),(0,s.CE)("span",{key:1,class:(0,c.C4)((0,l.R1)(r).e("inner"))},[(0,s.RG)(e.$slots,"default")],2)):(0,s.Q3)("v-if",!0),e.$slots.icon?(0,s.RG)(e.$slots,"icon",{key:2}):(0,s.Q3)("v-if",!0)],10,["href","target"]))}});var Rm=(0,g.A)(Em,[["__file","link.vue"]]);const Sm=(0,E.GU)(Rm);class Am{constructor(e,t){this.parent=e,this.domNode=t,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(e){e===this.subMenuItems.length?e=0:e<0&&(e=this.subMenuItems.length-1),this.subMenuItems[e].focus(),this.subIndex=e}addListeners(){const e=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,(t=>{t.addEventListener("keydown",(t=>{let n=!1;switch(t.code){case $n.R.down:this.gotoSubIndex(this.subIndex+1),n=!0;break;case $n.R.up:this.gotoSubIndex(this.subIndex-1),n=!0;break;case $n.R.tab:(0,ar.Hl)(e,"mouseleave");break;case $n.R.enter:case $n.R.numpadEnter:case $n.R.space:n=!0,t.currentTarget.click();break}return n&&(t.preventDefault(),t.stopPropagation()),!1}))}))}}class Tm{constructor(e,t){this.domNode=e,this.submenu=null,this.submenu=null,this.init(t)}init(e){this.domNode.setAttribute("tabindex","0");const t=this.domNode.querySelector(`.${e}-menu`);t&&(this.submenu=new Am(this,t)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",(e=>{let t=!1;switch(e.code){case $n.R.down:(0,ar.Hl)(e.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),t=!0;break;case $n.R.up:(0,ar.Hl)(e.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),t=!0;break;case $n.R.tab:(0,ar.Hl)(e.currentTarget,"mouseleave");break;case $n.R.enter:case $n.R.numpadEnter:case $n.R.space:t=!0,e.currentTarget.click();break}t&&e.preventDefault()}))}}class Mm{constructor(e,t){this.domNode=e,this.init(t)}init(e){const t=this.domNode.childNodes;Array.from(t).forEach((t=>{1===t.nodeType&&new Tm(t,e)}))}}const Lm=(0,s.pM)({name:"ElMenuCollapseTransition",setup(){const e=(0,v.DU)("menu"),t={onBeforeEnter:e=>e.style.opacity="0.2",onEnter(t,n){(0,b.iQ)(t,`${e.namespace.value}-opacity-transition`),t.style.opacity="1",n()},onAfterEnter(t){(0,b.vy)(t,`${e.namespace.value}-opacity-transition`),t.style.opacity=""},onBeforeLeave(t){t.dataset||(t.dataset={}),(0,b.nB)(t,e.m("collapse"))?((0,b.vy)(t,e.m("collapse")),t.dataset.oldOverflow=t.style.overflow,t.dataset.scrollWidth=t.clientWidth.toString(),(0,b.iQ)(t,e.m("collapse"))):((0,b.iQ)(t,e.m("collapse")),t.dataset.oldOverflow=t.style.overflow,t.dataset.scrollWidth=t.clientWidth.toString(),(0,b.vy)(t,e.m("collapse"))),t.style.width=`${t.scrollWidth}px`,t.style.overflow="hidden"},onLeave(e){(0,b.iQ)(e,"horizontal-collapse-transition"),e.style.width=`${e.dataset.scrollWidth}px`}};return{listeners:t}}});function Om(e,t,n,r,a,i){return(0,s.uX)(),(0,s.Wv)(S.eB,(0,s.v6)({mode:"out-in"},e.listeners),{default:(0,s.k6)((()=>[(0,s.RG)(e.$slots,"default")])),_:3},16)}var Im=(0,g.A)(Lm,[["render",Om],["__file","menu-collapse-transition.vue"]]);function Nm(e,t){const n=(0,s.EW)((()=>{let n=e.parent;const r=[t.value];while("ElMenu"!==n.type.name)n.props.index&&r.unshift(n.props.index),n=n.parent;return r})),r=(0,s.EW)((()=>{let t=e.parent;while(t&&!["ElMenu","ElSubMenu"].includes(t.type.name))t=t.parent;return t}));return{parentMenu:r,indexPath:n}}var Bm=n(1513);function Dm(e){const t=(0,s.EW)((()=>{const t=e.backgroundColor;return t?new Bm.q(t).shade(20).toString():""}));return t}const Fm=(e,t)=>{const n=(0,v.DU)("menu");return(0,s.EW)((()=>n.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":Dm(e).value||"","active-color":e.activeTextColor||"",level:`${t}`})))},$m=(0,h.b_)({index:{type:String,required:!0},showTimeout:Number,hideTimeout:Number,popperClass:String,disabled:Boolean,teleported:{type:Boolean,default:void 0},popperOffset:Number,expandCloseIcon:{type:T.Ze},expandOpenIcon:{type:T.Ze},collapseCloseIcon:{type:T.Ze},collapseOpenIcon:{type:T.Ze}}),Pm="ElSubMenu";var zm=(0,s.pM)({name:Pm,props:$m,setup(e,{slots:t,expose:n}){const r=(0,s.nI)(),{indexPath:a,parentMenu:i}=Nm(r,(0,s.EW)((()=>e.index))),o=(0,v.DU)("menu"),u=(0,v.DU)("sub-menu"),d=(0,s.WQ)("rootMenu");d||(0,w.$)(Pm,"can not inject root menu");const h=(0,s.WQ)(`subMenu:${i.value.uid}`);h||(0,w.$)(Pm,"can not inject sub menu");const p=(0,l.KR)({}),f=(0,l.KR)({});let m;const g=(0,l.KR)(!1),y=(0,l.KR)(),b=(0,l.KR)(null),x=(0,s.EW)((()=>"horizontal"===L.value&&_.value?"bottom-start":"right-start")),k=(0,s.EW)((()=>"horizontal"===L.value&&_.value||"vertical"===L.value&&!d.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?T.value?e.expandOpenIcon:e.expandCloseIcon:H.yd$:e.collapseCloseIcon&&e.collapseOpenIcon?T.value?e.collapseOpenIcon:e.collapseCloseIcon:H.Qpb)),_=(0,s.EW)((()=>0===h.level)),C=(0,s.EW)((()=>{const t=e.teleported;return void 0===t?_.value:t})),E=(0,s.EW)((()=>d.props.collapse?`${o.namespace.value}-zoom-in-left`:`${o.namespace.value}-zoom-in-top`)),R=(0,s.EW)((()=>"horizontal"===L.value&&_.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","right","right-end","left-start","bottom-start","bottom-end","top-start","top-end"])),T=(0,s.EW)((()=>d.openedMenus.includes(e.index))),M=(0,s.EW)((()=>{let e=!1;return Object.values(p.value).forEach((t=>{t.active&&(e=!0)})),Object.values(f.value).forEach((t=>{t.active&&(e=!0)})),e})),L=(0,s.EW)((()=>d.props.mode)),O=(0,l.Kh)({index:e.index,indexPath:a,active:M}),I=Fm(d.props,h.level+1),N=(0,s.EW)((()=>{var t;return null!=(t=e.popperOffset)?t:d.props.popperOffset})),B=(0,s.EW)((()=>{var t;return null!=(t=e.popperClass)?t:d.props.popperClass})),D=(0,s.EW)((()=>{var t;return null!=(t=e.showTimeout)?t:d.props.showTimeout})),F=(0,s.EW)((()=>{var t;return null!=(t=e.hideTimeout)?t:d.props.hideTimeout})),$=()=>{var e,t,n;return null==(n=null==(t=null==(e=b.value)?void 0:e.popperRef)?void 0:t.popperInstanceRef)?void 0:n.destroy()},P=e=>{e||$()},z=()=>{"hover"===d.props.menuTrigger&&"horizontal"===d.props.mode||d.props.collapse&&"vertical"===d.props.mode||e.disabled||d.handleSubMenuClick({index:e.index,indexPath:a.value,active:M.value})},W=(t,n=D.value)=>{var r;"focus"!==t.type&&("click"===d.props.menuTrigger&&"horizontal"===d.props.mode||!d.props.collapse&&"vertical"===d.props.mode||e.disabled?h.mouseInChild.value=!0:(h.mouseInChild.value=!0,null==m||m(),({stop:m}=(0,Q.TO)((()=>{d.openMenu(e.index,a.value)}),n)),C.value&&(null==(r=i.value.vnode.el)||r.dispatchEvent(new MouseEvent("mouseenter")))))},j=(t=!1)=>{var n;"click"===d.props.menuTrigger&&"horizontal"===d.props.mode||!d.props.collapse&&"vertical"===d.props.mode?h.mouseInChild.value=!1:(null==m||m(),h.mouseInChild.value=!1,({stop:m}=(0,Q.TO)((()=>!g.value&&d.closeMenu(e.index,a.value)),F.value)),C.value&&t&&(null==(n=h.handleMouseleave)||n.call(h,!0)))};(0,s.wB)((()=>d.props.collapse),(e=>P(Boolean(e))));{const e=e=>{f.value[e.index]=e},t=e=>{delete f.value[e.index]};(0,s.Gt)(`subMenu:${r.uid}`,{addSubMenu:e,removeSubMenu:t,handleMouseleave:j,mouseInChild:g,level:h.level+1})}return n({opened:T}),(0,s.sV)((()=>{d.addSubMenu(O),h.addSubMenu(O)})),(0,s.xo)((()=>{h.removeSubMenu(O),d.removeSubMenu(O)})),()=>{var n;const a=[null==(n=t.title)?void 0:n.call(t),(0,s.h)(A.tk,{class:u.e("icon-arrow"),style:{transform:T.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&d.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>(0,c.Kg)(k.value)?(0,s.h)(r.appContext.components[k.value]):(0,s.h)(k.value)})],i=d.isMenuPopup?(0,s.h)(Jr,{ref:b,visible:T.value,effect:"light",pure:!0,offset:N.value,showArrow:!1,persistent:!0,popperClass:B.value,placement:x.value,teleported:C.value,fallbackPlacements:R.value,transition:E.value,gpuAcceleration:!1},{content:()=>{var e;return(0,s.h)("div",{class:[o.m(L.value),o.m("popup-container"),B.value],onMouseenter:e=>W(e,100),onMouseleave:()=>j(!0),onFocus:e=>W(e,100)},[(0,s.h)("ul",{class:[o.b(),o.m("popup"),o.m(`popup-${x.value}`)],style:I.value},[null==(e=t.default)?void 0:e.call(t)])])},default:()=>(0,s.h)("div",{class:u.e("title"),onClick:z},a)}):(0,s.h)(s.FK,{},[(0,s.h)("div",{class:u.e("title"),ref:y,onClick:z},a),(0,s.h)(gl,{},{default:()=>{var e;return(0,s.bo)((0,s.h)("ul",{role:"menu",class:[o.b(),o.m("inline")],style:I.value},[null==(e=t.default)?void 0:e.call(t)]),[[S.aG,T.value]])}})]);return(0,s.h)("li",{class:[u.b(),u.is("active",M.value),u.is("opened",T.value),u.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:T.value,onMouseenter:W,onMouseleave:()=>j(),onFocus:W},[i])}}});const Wm=(0,h.b_)({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:(0,h.jq)(Array),default:()=>(0,Gs.f)([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,closeOnClickOutside:Boolean,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperOffset:{type:Number,default:6},ellipsisIcon:{type:T.Ze,default:()=>H.KcK},popperEffect:{type:(0,h.jq)(String),default:"dark"},popperClass:String,showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300}}),jm=e=>(0,c.cy)(e)&&e.every((e=>(0,c.Kg)(e))),Vm={close:(e,t)=>(0,c.Kg)(e)&&jm(t),open:(e,t)=>(0,c.Kg)(e)&&jm(t),select:(e,t,n,r)=>(0,c.Kg)(e)&&jm(t)&&(0,c.Gv)(n)&&(void 0===r||r instanceof Promise)};var Um=(0,s.pM)({name:"ElMenu",props:Wm,emits:Vm,setup(e,{emit:t,slots:n,expose:r}){const a=(0,s.nI)(),i=a.appContext.config.globalProperties.$router,o=(0,l.KR)(),c=(0,v.DU)("menu"),d=(0,v.DU)("sub-menu"),h=(0,l.KR)(-1),p=(0,l.KR)(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),f=(0,l.KR)(e.defaultActive),m=(0,l.KR)({}),g=(0,l.KR)({}),y=(0,s.EW)((()=>"horizontal"===e.mode||"vertical"===e.mode&&e.collapse)),b=()=>{const t=f.value&&m.value[f.value];if(!t||"horizontal"===e.mode||e.collapse)return;const n=t.indexPath;n.forEach((e=>{const t=g.value[e];t&&w(e,t.indexPath)}))},w=(n,r)=>{p.value.includes(n)||(e.uniqueOpened&&(p.value=p.value.filter((e=>r.includes(e)))),p.value.push(n),t("open",n,r))},x=e=>{const t=p.value.indexOf(e);-1!==t&&p.value.splice(t,1)},k=(e,n)=>{x(e),t("close",e,n)},_=({index:e,indexPath:t})=>{const n=p.value.includes(e);n?k(e,t):w(e,t)},C=n=>{("horizontal"===e.mode||e.collapse)&&(p.value=[]);const{index:r,indexPath:a}=n;if(!(0,er.A)(r)&&!(0,er.A)(a))if(e.router&&i){const e=n.route||r,o=i.push(e).then((e=>(e||(f.value=r),e)));t("select",r,a,{index:r,indexPath:a,route:e},o)}else f.value=r,t("select",r,a,{index:r,indexPath:a})},E=t=>{const n=m.value,r=n[t]||f.value&&n[f.value]||n[e.defaultActive];f.value=r?r.index:t},R=e=>{const t=getComputedStyle(e),n=Number.parseInt(t.marginLeft,10),r=Number.parseInt(t.marginRight,10);return e.offsetWidth+n+r||0},S=()=>{var e,t;if(!o.value)return-1;const n=Array.from(null!=(t=null==(e=o.value)?void 0:e.childNodes)?t:[]).filter((e=>"#text"!==e.nodeName||e.nodeValue)),r=64,a=getComputedStyle(o.value),i=Number.parseInt(a.paddingLeft,10),s=Number.parseInt(a.paddingRight,10),l=o.value.clientWidth-i-s;let c=0,u=0;return n.forEach(((e,t)=>{"#comment"!==e.nodeName&&(c+=R(e),c<=l-r&&(u=t+1))})),u===n.length?-1:u},T=e=>g.value[e].indexPath,M=(e,t=33.34)=>{let n;return()=>{n&&clearTimeout(n),n=setTimeout((()=>{e()}),t)}};let L=!0;const O=()=>{if(h.value===S())return;const e=()=>{h.value=-1,(0,s.dY)((()=>{h.value=S()}))};L?e():M(e)(),L=!1};let I;(0,s.wB)((()=>e.defaultActive),(e=>{m.value[e]||(f.value=""),E(e)})),(0,s.wB)((()=>e.collapse),(e=>{e&&(p.value=[])})),(0,s.wB)(m.value,b),(0,s.nT)((()=>{"horizontal"===e.mode&&e.ellipsis?I=(0,u.wYm)(o,O).stop:null==I||I()}));const N=(0,l.KR)(!1);{const t=e=>{g.value[e.index]=e},n=e=>{delete g.value[e.index]},r=e=>{m.value[e.index]=e},i=e=>{delete m.value[e.index]};(0,s.Gt)("rootMenu",(0,l.Kh)({props:e,openedMenus:p,items:m,subMenus:g,activeIndex:f,isMenuPopup:y,addMenuItem:r,removeMenuItem:i,addSubMenu:t,removeSubMenu:n,openMenu:w,closeMenu:k,handleMenuItemClick:C,handleSubMenuClick:_})),(0,s.Gt)(`subMenu:${a.uid}`,{addSubMenu:t,removeSubMenu:n,mouseInChild:N,level:0})}(0,s.sV)((()=>{"horizontal"===e.mode&&new Mm(a.vnode.el,c.namespace.value)}));{const e=e=>{const{indexPath:t}=g.value[e];t.forEach((e=>w(e,t)))};r({open:e,close:x,handleResize:O})}const B=Fm(e,0);return()=>{var r,a;let i=null!=(a=null==(r=n.default)?void 0:r.call(n))?a:[];const l=[];if("horizontal"===e.mode&&o.value){const t=(0,Ni.CW)(i),n=-1===h.value?t:t.slice(0,h.value),r=-1===h.value?[]:t.slice(h.value);(null==r?void 0:r.length)&&e.ellipsis&&(i=n,l.push((0,s.h)(zm,{index:"sub-menu-more",class:d.e("hide-arrow"),popperOffset:e.popperOffset},{title:()=>(0,s.h)(A.tk,{class:d.e("icon-more")},{default:()=>(0,s.h)(e.ellipsisIcon)}),default:()=>r})))}const u=e.closeOnClickOutside?[[Bs,()=>{p.value.length&&(N.value||(p.value.forEach((e=>t("close",e,T(e)))),p.value=[]))}]]:[],f=(0,s.bo)((0,s.h)("ul",{key:String(e.collapse),role:"menubar",ref:o,style:B.value,class:{[c.b()]:!0,[c.m(e.mode)]:!0,[c.m("collapse")]:e.collapse}},[...i,...l]),u);return e.collapseTransition&&"vertical"===e.mode?(0,s.h)(Im,(()=>f)):f}}});const Km=(0,h.b_)({index:{type:(0,h.jq)([String,null]),default:null},route:{type:(0,h.jq)([String,Object])},disabled:Boolean}),Hm={click:e=>(0,c.Kg)(e.index)&&(0,c.cy)(e.indexPath)},qm="ElMenuItem",Gm=(0,s.pM)({name:qm,components:{ElTooltip:Jr},props:Km,emits:Hm,setup(e,{emit:t}){const n=(0,s.nI)(),r=(0,s.WQ)("rootMenu"),a=(0,v.DU)("menu"),i=(0,v.DU)("menu-item");r||(0,w.$)(qm,"can not inject root menu");const{parentMenu:o,indexPath:c}=Nm(n,(0,l.lW)(e,"index")),u=(0,s.WQ)(`subMenu:${o.value.uid}`);u||(0,w.$)(qm,"can not inject sub menu");const d=(0,s.EW)((()=>e.index===r.activeIndex)),h=(0,l.Kh)({index:e.index,indexPath:c,active:d}),p=()=>{e.disabled||(r.handleMenuItemClick({index:e.index,indexPath:c.value,route:e.route}),t("click",h))};return(0,s.sV)((()=>{u.addSubMenu(h),r.addMenuItem(h)})),(0,s.xo)((()=>{u.removeSubMenu(h),r.removeMenuItem(h)})),{parentMenu:o,rootMenu:r,active:d,nsMenu:a,nsMenuItem:i,handleClick:p}}});function Xm(e,t,n,r,a,i){const o=(0,s.g2)("el-tooltip");return(0,s.uX)(),(0,s.CE)("li",{class:(0,c.C4)([e.nsMenuItem.b(),e.nsMenuItem.is("active",e.active),e.nsMenuItem.is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:e.handleClick},["ElMenu"===e.parentMenu.type.name&&e.rootMenu.props.collapse&&e.$slots.title?((0,s.uX)(),(0,s.Wv)(o,{key:0,effect:e.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:(0,s.k6)((()=>[(0,s.RG)(e.$slots,"title")])),default:(0,s.k6)((()=>[(0,s.Lk)("div",{class:(0,c.C4)(e.nsMenu.be("tooltip","trigger"))},[(0,s.RG)(e.$slots,"default")],2)])),_:3},8,["effect"])):((0,s.uX)(),(0,s.CE)(s.FK,{key:1},[(0,s.RG)(e.$slots,"default"),(0,s.RG)(e.$slots,"title")],64))],10,["onClick"])}var Ym=(0,g.A)(Gm,[["render",Xm],["__file","menu-item.vue"]]);const Qm={title:String},Zm="ElMenuItemGroup",Jm=(0,s.pM)({name:Zm,props:Qm,setup(){const e=(0,v.DU)("menu-item-group");return{ns:e}}});function eg(e,t,n,r,a,i){return(0,s.uX)(),(0,s.CE)("li",{class:(0,c.C4)(e.ns.b())},[(0,s.Lk)("div",{class:(0,c.C4)(e.ns.e("title"))},[e.$slots.title?(0,s.RG)(e.$slots,"title",{key:1}):((0,s.uX)(),(0,s.CE)(s.FK,{key:0},[(0,s.eW)((0,c.v_)(e.title),1)],64))],2),(0,s.Lk)("ul",null,[(0,s.RG)(e.$slots,"default")])],2)}var tg=(0,g.A)(Jm,[["render",eg],["__file","menu-item-group.vue"]]);const ng=(0,E.GU)(Um,{MenuItem:Ym,MenuItemGroup:tg,SubMenu:zm}),rg=(0,E.WM)(Ym),ag=(0,E.WM)(tg),ig=(0,E.WM)(zm),og=(0,h.b_)({icon:{type:T.Ze,default:()=>H.kcb},title:String,content:{type:String,default:""}}),sg={back:()=>!0},lg=(0,s.pM)({name:"ElPageHeader"}),cg=(0,s.pM)({...lg,props:og,emits:sg,setup(e,{emit:t}){const{t:n}=(0,La.Ym)(),r=(0,v.DU)("page-header");function a(){t("back")}return(e,t)=>((0,s.uX)(),(0,s.CE)("div",{class:(0,c.C4)([(0,l.R1)(r).b(),{[(0,l.R1)(r).m("has-breadcrumb")]:!!e.$slots.breadcrumb,[(0,l.R1)(r).m("has-extra")]:!!e.$slots.extra,[(0,l.R1)(r).is("contentful")]:!!e.$slots.default}])},[e.$slots.breadcrumb?((0,s.uX)(),(0,s.CE)("div",{key:0,class:(0,c.C4)((0,l.R1)(r).e("breadcrumb"))},[(0,s.RG)(e.$slots,"breadcrumb")],2)):(0,s.Q3)("v-if",!0),(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(r).e("header"))},[(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(r).e("left"))},[(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(r).e("back")),role:"button",tabindex:"0",onClick:a},[e.icon||e.$slots.icon?((0,s.uX)(),(0,s.CE)("div",{key:0,"aria-label":e.title||(0,l.R1)(n)("el.pageHeader.title"),class:(0,c.C4)((0,l.R1)(r).e("icon"))},[(0,s.RG)(e.$slots,"icon",{},(()=>[e.icon?((0,s.uX)(),(0,s.Wv)((0,l.R1)(A.tk),{key:0},{default:(0,s.k6)((()=>[((0,s.uX)(),(0,s.Wv)((0,s.$y)(e.icon)))])),_:1})):(0,s.Q3)("v-if",!0)]))],10,["aria-label"])):(0,s.Q3)("v-if",!0),(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(r).e("title"))},[(0,s.RG)(e.$slots,"title",{},(()=>[(0,s.eW)((0,c.v_)(e.title||(0,l.R1)(n)("el.pageHeader.title")),1)]))],2)],2),(0,s.bF)((0,l.R1)(rh),{direction:"vertical"}),(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(r).e("content"))},[(0,s.RG)(e.$slots,"content",{},(()=>[(0,s.eW)((0,c.v_)(e.content),1)]))],2)],2),e.$slots.extra?((0,s.uX)(),(0,s.CE)("div",{key:0,class:(0,c.C4)((0,l.R1)(r).e("extra"))},[(0,s.RG)(e.$slots,"extra")],2)):(0,s.Q3)("v-if",!0)],2),e.$slots.default?((0,s.uX)(),(0,s.CE)("div",{key:1,class:(0,c.C4)((0,l.R1)(r).e("main"))},[(0,s.RG)(e.$slots,"default")],2)):(0,s.Q3)("v-if",!0)],2))}});var ug=(0,g.A)(cg,[["__file","page-header.vue"]]);const dg=(0,E.GU)(ug),hg=Symbol("elPaginationKey"),pg=(0,h.b_)({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:T.Ze}}),fg={click:e=>e instanceof MouseEvent},mg=(0,s.pM)({name:"ElPaginationPrev"}),gg=(0,s.pM)({...mg,props:pg,emits:fg,setup(e){const t=e,{t:n}=(0,La.Ym)(),r=(0,s.EW)((()=>t.disabled||t.currentPage<=1));return(e,t)=>((0,s.uX)(),(0,s.CE)("button",{type:"button",class:"btn-prev",disabled:(0,l.R1)(r),"aria-label":e.prevText||(0,l.R1)(n)("el.pagination.prev"),"aria-disabled":(0,l.R1)(r),onClick:t=>e.$emit("click",t)},[e.prevText?((0,s.uX)(),(0,s.CE)("span",{key:0},(0,c.v_)(e.prevText),1)):((0,s.uX)(),(0,s.Wv)((0,l.R1)(A.tk),{key:1},{default:(0,s.k6)((()=>[((0,s.uX)(),(0,s.Wv)((0,s.$y)(e.prevIcon)))])),_:1}))],8,["disabled","aria-label","aria-disabled","onClick"]))}});var vg=(0,g.A)(gg,[["__file","prev.vue"]]);const yg=(0,h.b_)({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:T.Ze}}),bg=(0,s.pM)({name:"ElPaginationNext"}),wg=(0,s.pM)({...bg,props:yg,emits:["click"],setup(e){const t=e,{t:n}=(0,La.Ym)(),r=(0,s.EW)((()=>t.disabled||t.currentPage===t.pageCount||0===t.pageCount));return(e,t)=>((0,s.uX)(),(0,s.CE)("button",{type:"button",class:"btn-next",disabled:(0,l.R1)(r),"aria-label":e.nextText||(0,l.R1)(n)("el.pagination.next"),"aria-disabled":(0,l.R1)(r),onClick:t=>e.$emit("click",t)},[e.nextText?((0,s.uX)(),(0,s.CE)("span",{key:0},(0,c.v_)(e.nextText),1)):((0,s.uX)(),(0,s.Wv)((0,l.R1)(A.tk),{key:1},{default:(0,s.k6)((()=>[((0,s.uX)(),(0,s.Wv)((0,s.$y)(e.nextIcon)))])),_:1}))],8,["disabled","aria-label","aria-disabled","onClick"]))}});var xg=(0,g.A)(wg,[["__file","next.vue"]]),kg=n(9615);const _g=Symbol("ElSelectGroup"),Cg=Symbol("ElSelect");function Eg(e,t){const n=(0,s.WQ)(Cg),r=(0,s.WQ)(_g,{disabled:!1}),a=(0,s.EW)((()=>p(sl(n.props.modelValue),e.value))),i=(0,s.EW)((()=>{var e;if(n.props.multiple){const t=sl(null!=(e=n.props.modelValue)?e:[]);return!a.value&&t.length>=n.props.multipleLimit&&n.props.multipleLimit>0}return!1})),o=(0,s.EW)((()=>e.label||((0,c.Gv)(e.value)?"":e.value))),u=(0,s.EW)((()=>e.value||e.label||"")),d=(0,s.EW)((()=>e.disabled||t.groupDisabled||i.value)),h=(0,s.nI)(),p=(t=[],r)=>{if((0,c.Gv)(e.value)){const e=n.props.valueKey;return t&&t.some((t=>(0,l.ux)((0,kg.A)(t,e))===(0,kg.A)(r,e)))}return t&&t.includes(r)},f=()=>{e.disabled||r.disabled||(n.states.hoveringIndex=n.optionsArray.indexOf(h.proxy))},m=n=>{const r=new RegExp(is(n),"i");t.visible=r.test(o.value)||e.created};return(0,s.wB)((()=>o.value),(()=>{e.created||n.props.remote||n.setSelected()})),(0,s.wB)((()=>e.value),((t,r)=>{const{remote:a,valueKey:i}=n.props;if(t!==r&&(n.onOptionDestroy(r,h.proxy),n.onOptionCreate(h.proxy)),!e.created&&!a){if(i&&(0,c.Gv)(t)&&(0,c.Gv)(r)&&t[i]===r[i])return;n.setSelected()}})),(0,s.wB)((()=>r.disabled),(()=>{t.groupDisabled=r.disabled}),{immediate:!0}),{select:n,currentLabel:o,currentValue:u,itemSelected:a,isDisabled:d,hoverItem:f,updateOption:m}}const Rg=(0,s.pM)({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:Boolean},setup(e){const t=(0,v.DU)("select"),n=(0,xr.Bi)(),r=(0,s.EW)((()=>[t.be("dropdown","item"),t.is("disabled",(0,l.R1)(c)),t.is("selected",(0,l.R1)(o)),t.is("hovering",(0,l.R1)(f))])),a=(0,l.Kh)({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:i,itemSelected:o,isDisabled:c,select:u,hoverItem:d,updateOption:h}=Eg(e,a),{visible:p,hover:f}=(0,l.QW)(a),m=(0,s.nI)().proxy;function g(){c.value||u.handleOptionSelect(m)}return u.onOptionCreate(m),(0,s.xo)((()=>{const e=m.value,{selected:t}=u.states,n=t.some((e=>e.value===m.value));(0,s.dY)((()=>{u.states.cachedOptions.get(e)!==m||n||u.states.cachedOptions.delete(e)})),u.onOptionDestroy(e,m)})),{ns:t,id:n,containerKls:r,currentLabel:i,itemSelected:o,isDisabled:c,select:u,hoverItem:d,updateOption:h,visible:p,hover:f,selectOptionClick:g,states:a}}});function Sg(e,t,n,r,a,i){return(0,s.bo)(((0,s.uX)(),(0,s.CE)("li",{id:e.id,class:(0,c.C4)(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMousemove:e.hoverItem,onClick:(0,S.D$)(e.selectOptionClick,["stop"])},[(0,s.RG)(e.$slots,"default",{},(()=>[(0,s.Lk)("span",null,(0,c.v_)(e.currentLabel),1)]))],42,["id","aria-disabled","aria-selected","onMousemove","onClick"])),[[S.aG,e.visible]])}var Ag=(0,g.A)(Rg,[["render",Sg],["__file","option.vue"]]);const Tg=(0,s.pM)({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=(0,s.WQ)(Cg),t=(0,v.DU)("select"),n=(0,s.EW)((()=>e.props.popperClass)),r=(0,s.EW)((()=>e.props.multiple)),a=(0,s.EW)((()=>e.props.fitInputWidth)),i=(0,l.KR)("");function o(){var t;i.value=`${null==(t=e.selectRef)?void 0:t.offsetWidth}px`}return(0,s.sV)((()=>{o(),(0,u.wYm)(e.selectRef,o)})),{ns:t,minWidth:i,popperClass:n,isMultiple:r,isFitInputWidth:a}}});function Mg(e,t,n,r,a,i){return(0,s.uX)(),(0,s.CE)("div",{class:(0,c.C4)([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:(0,c.Tr)({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?((0,s.uX)(),(0,s.CE)("div",{key:0,class:(0,c.C4)(e.ns.be("dropdown","header"))},[(0,s.RG)(e.$slots,"header")],2)):(0,s.Q3)("v-if",!0),(0,s.RG)(e.$slots,"default"),e.$slots.footer?((0,s.uX)(),(0,s.CE)("div",{key:1,class:(0,c.C4)(e.ns.be("dropdown","footer"))},[(0,s.RG)(e.$slots,"footer")],2)):(0,s.Q3)("v-if",!0)],6)}var Lg=(0,g.A)(Tg,[["render",Mg],["__file","select-dropdown.vue"]]),Og=n(1158),Ig=n(2444),Ng=n(478),Bg=Math.max,Dg=Math.min;function Fg(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=r-1;return void 0!==n&&(a=(0,Ng.A)(n),a=n<0?Bg(r+a,0):Dg(a,r-1)),(0,Og.A)(e,(0,Ig.A)(t,3),a,!0)}var $g=Fg;const Pg=(e,t)=>{const{t:n}=(0,La.Ym)(),r=(0,xr.Bi)(),a=(0,v.DU)("select"),i=(0,v.DU)("input"),o=(0,l.Kh)({inputValue:"",options:new Map,cachedOptions:new Map,optionValues:[],selected:[],selectionWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),h=(0,l.KR)(null),f=(0,l.KR)(null),m=(0,l.KR)(null),g=(0,l.KR)(null),b=(0,l.KR)(null),x=(0,l.KR)(null),k=(0,l.KR)(null),_=(0,l.KR)(null),C=(0,l.KR)(null),E=(0,l.KR)(null),R=(0,l.KR)(null),{isComposing:S,handleCompositionStart:A,handleCompositionUpdate:M,handleCompositionEnd:L}=(0,Ds.o)({afterComposition:e=>ke(e)}),{wrapperRef:O,isFocused:I,handleBlur:N}=(0,cc.K)(b,{beforeFocus(){return j.value},afterFocus(){e.automaticDropdown&&!B.value&&(B.value=!0,o.menuVisibleOnFocus=!0)},beforeBlur(e){var t,n;return(null==(t=m.value)?void 0:t.isFocusInsideContent(e))||(null==(n=g.value)?void 0:n.isFocusInsideContent(e))},afterBlur(){B.value=!1,o.menuVisibleOnFocus=!1}}),B=(0,l.KR)(!1),D=(0,l.KR)(),{form:F,formItem:$}=(0,co.j)(),{inputId:P}=(0,co.W)(e,{formItemContext:$}),{valueOnClear:z,isEmptyValue:W}=(0,Ms.fQ)(e),j=(0,s.EW)((()=>e.disabled||(null==F?void 0:F.disabled))),V=(0,s.EW)((()=>(0,c.cy)(e.modelValue)?e.modelValue.length>0:!W(e.modelValue))),U=(0,s.EW)((()=>{var e;return null!=(e=null==F?void 0:F.statusIcon)&&e})),H=(0,s.EW)((()=>e.clearable&&!j.value&&o.inputHovering&&V.value)),q=(0,s.EW)((()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon)),G=(0,s.EW)((()=>a.is("reverse",q.value&&B.value))),X=(0,s.EW)((()=>(null==$?void 0:$.validateState)||"")),Y=(0,s.EW)((()=>T.vK[X.value])),Z=(0,s.EW)((()=>e.remote?300:0)),J=(0,s.EW)((()=>e.remote&&!o.inputValue&&0===o.options.size)),ee=(0,s.EW)((()=>e.loading?e.loadingText||n("el.select.loading"):e.filterable&&o.inputValue&&o.options.size>0&&0===te.value?e.noMatchText||n("el.select.noMatch"):0===o.options.size?e.noDataText||n("el.select.noData"):null)),te=(0,s.EW)((()=>ne.value.filter((e=>e.visible)).length)),ne=(0,s.EW)((()=>{const e=Array.from(o.options.values()),t=[];return o.optionValues.forEach((n=>{const r=e.findIndex((e=>e.value===n));r>-1&&t.push(e[r])})),t.length>=e.length?t:e})),re=(0,s.EW)((()=>Array.from(o.cachedOptions.values()))),ae=(0,s.EW)((()=>{const t=ne.value.filter((e=>!e.created)).some((e=>e.currentLabel===o.inputValue));return e.filterable&&e.allowCreate&&""!==o.inputValue&&!t})),ie=()=>{e.filterable&&(0,c.Tn)(e.filterMethod)||e.filterable&&e.remote&&(0,c.Tn)(e.remoteMethod)||ne.value.forEach((e=>{var t;null==(t=e.updateOption)||t.call(e,o.inputValue)}))},oe=(0,ra.NV)(),se=(0,s.EW)((()=>["small"].includes(oe.value)?"small":"default")),le=(0,s.EW)({get(){return B.value&&!J.value},set(e){B.value=e}}),ce=(0,s.EW)((()=>{if(e.multiple&&!(0,p.b0)(e.modelValue))return 0===sl(e.modelValue).length&&!o.inputValue;const t=(0,c.cy)(e.modelValue)?e.modelValue[0]:e.modelValue;return!e.filterable&&!(0,p.b0)(t)||!o.inputValue})),ue=(0,s.EW)((()=>{var t;const r=null!=(t=e.placeholder)?t:n("el.select.placeholder");return e.multiple||!V.value?r:o.selectedLabel})),de=(0,s.EW)((()=>Q.un?null:"mouseenter"));(0,s.wB)((()=>e.modelValue),((t,n)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(o.inputValue="",he("")),fe(),!Ji(t,n)&&e.validateEvent&&(null==$||$.validate("change").catch((e=>(0,w.U)(e))))}),{flush:"post",deep:!0}),(0,s.wB)((()=>B.value),(e=>{e?he(o.inputValue):(o.inputValue="",o.previousQuery=null,o.isBeforeHide=!0),t("visible-change",e)})),(0,s.wB)((()=>o.options.entries()),(()=>{Q.oc&&(fe(),e.defaultFirstOption&&(e.filterable||e.remote)&&te.value&&pe())}),{flush:"post"}),(0,s.wB)((()=>o.hoveringIndex),(e=>{(0,p.Et)(e)&&e>-1?D.value=ne.value[e]||{}:D.value={},ne.value.forEach((e=>{e.hover=D.value===e}))})),(0,s.nT)((()=>{o.isBeforeHide||ie()}));const he=t=>{o.previousQuery===t||S.value||(o.previousQuery=t,e.filterable&&(0,c.Tn)(e.filterMethod)?e.filterMethod(t):e.filterable&&e.remote&&(0,c.Tn)(e.remoteMethod)&&e.remoteMethod(t),e.defaultFirstOption&&(e.filterable||e.remote)&&te.value?(0,s.dY)(pe):(0,s.dY)(ge))},pe=()=>{const e=ne.value.filter((e=>e.visible&&!e.disabled&&!e.states.groupDisabled)),t=e.find((e=>e.created)),n=e[0],r=ne.value.map((e=>e.value));o.hoveringIndex=Me(r,t||n)},fe=()=>{if(!e.multiple){const t=(0,c.cy)(e.modelValue)?e.modelValue[0]:e.modelValue,n=me(t);return o.selectedLabel=n.currentLabel,void(o.selected=[n])}o.selectedLabel="";const t=[];(0,p.b0)(e.modelValue)||sl(e.modelValue).forEach((e=>{t.push(me(e))})),o.selected=t},me=t=>{let n;const r=(0,c.Qd)(t);for(let s=o.cachedOptions.size-1;s>=0;s--){const a=re.value[s],i=r?(0,kg.A)(a.value,e.valueKey)===(0,kg.A)(t,e.valueKey):a.value===t;if(i){n={value:t,currentLabel:a.currentLabel,get isDisabled(){return a.isDisabled}};break}}if(n)return n;const a=r?t.label:null!=t?t:"",i={value:t,currentLabel:a};return i},ge=()=>{o.hoveringIndex=ne.value.findIndex((e=>o.selected.some((t=>Ve(t)===Ve(e)))))},ve=()=>{o.selectionWidth=f.value.getBoundingClientRect().width},ye=()=>{o.collapseItemWidth=E.value.getBoundingClientRect().width},be=()=>{var e,t;null==(t=null==(e=m.value)?void 0:e.updatePopper)||t.call(e)},we=()=>{var e,t;null==(t=null==(e=g.value)?void 0:e.updatePopper)||t.call(e)},xe=()=>{o.inputValue.length>0&&!B.value&&(B.value=!0),he(o.inputValue)},ke=t=>{if(o.inputValue=t.target.value,!e.remote)return xe();_e()},_e=K((()=>{xe()}),Z.value),Ce=n=>{Ji(e.modelValue,n)||t(d.YU,n)},Ee=e=>$g(e,(e=>{const t=o.cachedOptions.get(e);return t&&!t.disabled&&!t.states.groupDisabled})),Re=n=>{if(e.multiple&&n.code!==$n.R.delete&&n.target.value.length<=0){const n=sl(e.modelValue).slice(),r=Ee(n);if(r<0)return;const a=n[r];n.splice(r,1),t(d.l4,n),Ce(n),t("remove-tag",a)}},Se=(n,r)=>{const a=o.selected.indexOf(r);if(a>-1&&!j.value){const n=sl(e.modelValue).slice();n.splice(a,1),t(d.l4,n),Ce(n),t("remove-tag",r.value)}n.stopPropagation(),De()},Ae=n=>{n.stopPropagation();const r=e.multiple?[]:z.value;if(e.multiple)for(const e of o.selected)e.isDisabled&&r.push(e.value);t(d.l4,r),Ce(r),o.hoveringIndex=-1,B.value=!1,t("clear"),De()},Te=n=>{var r;if(e.multiple){const a=sl(null!=(r=e.modelValue)?r:[]).slice(),i=Me(a,n);i>-1?a.splice(i,1):(e.multipleLimit<=0||a.length<e.multipleLimit)&&a.push(n.value),t(d.l4,a),Ce(a),n.created&&he(""),e.filterable&&!e.reserveKeyword&&(o.inputValue="")}else t(d.l4,n.value),Ce(n.value),B.value=!1;De(),B.value||(0,s.dY)((()=>{Le(n)}))},Me=(t=[],n)=>(0,p.b0)(n)?-1:(0,c.Gv)(n.value)?t.findIndex((t=>Ji((0,kg.A)(t,e.valueKey),Ve(n)))):t.indexOf(n.value),Le=e=>{var t,n,r,i,o;const s=(0,c.cy)(e)?e[0]:e;let l=null;if(null==s?void 0:s.value){const e=ne.value.filter((e=>e.value===s.value));e.length>0&&(l=e[0].$el)}if(m.value&&l){const e=null==(i=null==(r=null==(n=null==(t=m.value)?void 0:t.popperRef)?void 0:n.contentRef)?void 0:r.querySelector)?void 0:i.call(r,`.${a.be("dropdown","wrap")}`);e&&(0,y.Rt)(e,l)}null==(o=R.value)||o.handleScroll()},Oe=e=>{o.options.set(e.value,e),o.cachedOptions.set(e.value,e)},Ie=(e,t)=>{o.options.get(e)===t&&o.options.delete(e)},Ne=(0,s.EW)((()=>{var e,t;return null==(t=null==(e=m.value)?void 0:e.popperRef)?void 0:t.contentRef})),Be=()=>{o.isBeforeHide=!1,(0,s.dY)((()=>Le(o.selected)))},De=()=>{var e;null==(e=b.value)||e.focus()},Fe=()=>{var e;if(B.value)return B.value=!1,void(0,s.dY)((()=>{var e;return null==(e=b.value)?void 0:e.blur()}));null==(e=b.value)||e.blur()},$e=e=>{Ae(e)},Pe=e=>{if(B.value=!1,I.value){const t=new FocusEvent("focus",e);(0,s.dY)((()=>N(t)))}},ze=()=>{o.inputValue.length>0?o.inputValue="":B.value=!1},We=()=>{j.value||(Q.un&&(o.inputHovering=!0),o.menuVisibleOnFocus?o.menuVisibleOnFocus=!1:B.value=!B.value)},je=()=>{if(B.value){const e=ne.value[o.hoveringIndex];e&&!e.isDisabled&&Te(e)}else We()},Ve=t=>(0,c.Gv)(t.value)?(0,kg.A)(t.value,e.valueKey):t.value,Ue=(0,s.EW)((()=>ne.value.filter((e=>e.visible)).every((e=>e.isDisabled)))),Ke=(0,s.EW)((()=>e.multiple?e.collapseTags?o.selected.slice(0,e.maxCollapseTags):o.selected:[])),He=(0,s.EW)((()=>e.multiple&&e.collapseTags?o.selected.slice(e.maxCollapseTags):[])),qe=e=>{if(B.value){if(0!==o.options.size&&0!==te.value&&!S.value&&!Ue.value){"next"===e?(o.hoveringIndex++,o.hoveringIndex===o.options.size&&(o.hoveringIndex=0)):"prev"===e&&(o.hoveringIndex--,o.hoveringIndex<0&&(o.hoveringIndex=o.options.size-1));const t=ne.value[o.hoveringIndex];!t.isDisabled&&t.visible||qe(e),(0,s.dY)((()=>Le(D.value)))}}else B.value=!0},Ge=()=>{if(!f.value)return 0;const e=window.getComputedStyle(f.value);return Number.parseFloat(e.gap||"6px")},Xe=(0,s.EW)((()=>{const t=Ge(),n=E.value&&1===e.maxCollapseTags?o.selectionWidth-o.collapseItemWidth-t:o.selectionWidth;return{maxWidth:`${n}px`}})),Ye=(0,s.EW)((()=>({maxWidth:`${o.selectionWidth}px`}))),Qe=e=>{t("popup-scroll",e)};return(0,u.wYm)(f,ve),(0,u.wYm)(_,be),(0,u.wYm)(O,be),(0,u.wYm)(C,we),(0,u.wYm)(E,ye),(0,s.sV)((()=>{fe()})),{inputId:P,contentId:r,nsSelect:a,nsInput:i,states:o,isFocused:I,expanded:B,optionsArray:ne,hoverOption:D,selectSize:oe,filteredOptionsCount:te,updateTooltip:be,updateTagTooltip:we,debouncedOnInputChange:_e,onInput:ke,deletePrevTag:Re,deleteTag:Se,deleteSelected:Ae,handleOptionSelect:Te,scrollToOption:Le,hasModelValue:V,shouldShowPlaceholder:ce,currentPlaceholder:ue,mouseEnterEventName:de,needStatusIcon:U,showClose:H,iconComponent:q,iconReverse:G,validateState:X,validateIcon:Y,showNewOption:ae,updateOptions:ie,collapseTagSize:se,setSelected:fe,selectDisabled:j,emptyText:ee,handleCompositionStart:A,handleCompositionUpdate:M,handleCompositionEnd:L,onOptionCreate:Oe,onOptionDestroy:Ie,handleMenuEnter:Be,focus:De,blur:Fe,handleClearClick:$e,handleClickOutside:Pe,handleEsc:ze,toggleMenu:We,selectOption:je,getValueKey:Ve,navigateOptions:qe,dropdownMenuVisible:le,showTagList:Ke,collapseTagList:He,popupScroll:Qe,tagStyle:Xe,collapseTagStyle:Ye,popperRef:Ne,inputRef:b,tooltipRef:m,tagTooltipRef:g,prefixRef:x,suffixRef:k,selectRef:h,wrapperRef:O,selectionRef:f,scrollbarRef:R,menuRef:_,tagMenuRef:C,collapseItemRef:E}};var zg=(0,s.pM)({name:"ElOptions",setup(e,{slots:t}){const n=(0,s.WQ)(Cg);let r=[];return()=>{var e,a;const i=null==(e=t.default)?void 0:e.call(t),o=[];function s(e){(0,c.cy)(e)&&e.forEach((e=>{var t,n,r,a;const i=null==(t=(null==e?void 0:e.type)||{})?void 0:t.name;"ElOptionGroup"===i?s((0,c.Kg)(e.children)||(0,c.cy)(e.children)||!(0,c.Tn)(null==(n=e.children)?void 0:n.default)?e.children:null==(r=e.children)?void 0:r.default()):"ElOption"===i?o.push(null==(a=e.props)?void 0:a.value):(0,c.cy)(e.children)&&s(e.children)}))}return i.length&&s(null==(a=i[0])?void 0:a.children),Ji(o,r)||(r=o,n&&(n.states.optionValues=o)),i}}});const Wg=(0,h.b_)({name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:ao.mU,effect:{type:(0,h.jq)(String),default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:(0,h.jq)(Object),default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:Dn.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:T.Ze,default:H.R$5},fitInputWidth:Boolean,suffixIcon:{type:T.Ze,default:H.yd$},tagType:{...Cs.type,default:"info"},tagEffect:{...Cs.effect,default:"light"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:(0,h.jq)(String),values:Pe,default:"bottom-start"},fallbackPlacements:{type:(0,h.jq)(Array),default:["bottom-start","top-start","right","left"]},tabindex:{type:[String,Number],default:0},appendTo:String,...Ms.bs,...(0,oe.l)(["ariaLabel"])}),jg="ElSelect",Vg=(0,s.pM)({name:jg,componentName:jg,components:{ElSelectMenu:Lg,ElOption:Ag,ElOptions:zg,ElTag:Ts,ElScrollbar:pe,ElTooltip:Jr,ElIcon:A.tk},directives:{ClickOutside:Bs},props:Wg,emits:[d.l4,d.YU,"remove-tag","clear","visible-change","focus","blur","popup-scroll"],setup(e,{emit:t}){const n=(0,s.EW)((()=>{const{modelValue:t,multiple:n}=e,r=n?[]:void 0;return(0,c.cy)(t)?n?t:r:n?r:t})),r=(0,l.Kh)({...(0,l.QW)(e),modelValue:n}),a=Pg(r,t),{calculatorRef:i,inputStyle:o}=mm();(0,s.Gt)(Cg,(0,l.Kh)({props:r,states:a.states,optionsArray:a.optionsArray,handleOptionSelect:a.handleOptionSelect,onOptionCreate:a.onOptionCreate,onOptionDestroy:a.onOptionDestroy,selectRef:a.selectRef,setSelected:a.setSelected}));const u=(0,s.EW)((()=>e.multiple?a.states.selected.map((e=>e.currentLabel)):a.states.selectedLabel));return{...a,modelValue:n,selectedLabel:u,calculatorRef:i,inputStyle:o}}});function Ug(e,t,n,r,a,i){const o=(0,s.g2)("el-tag"),l=(0,s.g2)("el-tooltip"),u=(0,s.g2)("el-icon"),d=(0,s.g2)("el-option"),h=(0,s.g2)("el-options"),p=(0,s.g2)("el-scrollbar"),f=(0,s.g2)("el-select-menu"),m=(0,s.gN)("click-outside");return(0,s.bo)(((0,s.uX)(),(0,s.CE)("div",{ref:"selectRef",class:(0,c.C4)([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),[(0,c.rU)(e.mouseEnterEventName)]:t=>e.states.inputHovering=!0,onMouseleave:t=>e.states.inputHovering=!1},[(0,s.bF)(l,{ref:"tooltipRef",visible:e.dropdownMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,"append-to":e.appendTo,"show-arrow":e.showArrow,offset:e.offset,onBeforeShow:e.handleMenuEnter,onHide:t=>e.states.isBeforeHide=!1},{default:(0,s.k6)((()=>{var t;return[(0,s.Lk)("div",{ref:"wrapperRef",class:(0,c.C4)([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:(0,S.D$)(e.toggleMenu,["prevent"])},[e.$slots.prefix?((0,s.uX)(),(0,s.CE)("div",{key:0,ref:"prefixRef",class:(0,c.C4)(e.nsSelect.e("prefix"))},[(0,s.RG)(e.$slots,"prefix")],2)):(0,s.Q3)("v-if",!0),(0,s.Lk)("div",{ref:"selectionRef",class:(0,c.C4)([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?(0,s.RG)(e.$slots,"tag",{key:0},(()=>[((0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)(e.showTagList,(t=>((0,s.uX)(),(0,s.CE)("div",{key:e.getValueKey(t),class:(0,c.C4)(e.nsSelect.e("selected-item"))},[(0,s.bF)(o,{closable:!e.selectDisabled&&!t.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:(0,c.Tr)(e.tagStyle),onClose:n=>e.deleteTag(n,t)},{default:(0,s.k6)((()=>[(0,s.Lk)("span",{class:(0,c.C4)(e.nsSelect.e("tags-text"))},[(0,s.RG)(e.$slots,"label",{label:t.currentLabel,value:t.value},(()=>[(0,s.eW)((0,c.v_)(t.currentLabel),1)]))],2)])),_:2},1032,["closable","size","type","effect","style","onClose"])],2)))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?((0,s.uX)(),(0,s.Wv)(l,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:(0,s.k6)((()=>[(0,s.Lk)("div",{ref:"collapseItemRef",class:(0,c.C4)(e.nsSelect.e("selected-item"))},[(0,s.bF)(o,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:(0,c.Tr)(e.collapseTagStyle)},{default:(0,s.k6)((()=>[(0,s.Lk)("span",{class:(0,c.C4)(e.nsSelect.e("tags-text"))}," + "+(0,c.v_)(e.states.selected.length-e.maxCollapseTags),3)])),_:1},8,["size","type","effect","style"])],2)])),content:(0,s.k6)((()=>[(0,s.Lk)("div",{ref:"tagMenuRef",class:(0,c.C4)(e.nsSelect.e("selection"))},[((0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)(e.collapseTagList,(t=>((0,s.uX)(),(0,s.CE)("div",{key:e.getValueKey(t),class:(0,c.C4)(e.nsSelect.e("selected-item"))},[(0,s.bF)(o,{class:"in-tooltip",closable:!e.selectDisabled&&!t.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:n=>e.deleteTag(n,t)},{default:(0,s.k6)((()=>[(0,s.Lk)("span",{class:(0,c.C4)(e.nsSelect.e("tags-text"))},[(0,s.RG)(e.$slots,"label",{label:t.currentLabel,value:t.value},(()=>[(0,s.eW)((0,c.v_)(t.currentLabel),1)]))],2)])),_:2},1032,["closable","size","type","effect","onClose"])],2)))),128))],2)])),_:3},8,["disabled","effect","teleported"])):(0,s.Q3)("v-if",!0)])):(0,s.Q3)("v-if",!0),(0,s.Lk)("div",{class:(0,c.C4)([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[(0,s.bo)((0,s.Lk)("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":t=>e.states.inputValue=t,type:"text",name:e.name,class:(0,c.C4)([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:(0,c.Tr)(e.inputStyle),tabindex:e.tabindex,role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":(null==(t=e.hoverOption)?void 0:t.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onKeydown:[(0,S.jR)((0,S.D$)((t=>e.navigateOptions("next")),["stop","prevent"]),["down"]),(0,S.jR)((0,S.D$)((t=>e.navigateOptions("prev")),["stop","prevent"]),["up"]),(0,S.jR)((0,S.D$)(e.handleEsc,["stop","prevent"]),["esc"]),(0,S.jR)((0,S.D$)(e.selectOption,["stop","prevent"]),["enter"]),(0,S.jR)((0,S.D$)(e.deletePrevTag,["stop"]),["delete"])],onCompositionstart:e.handleCompositionStart,onCompositionupdate:e.handleCompositionUpdate,onCompositionend:e.handleCompositionEnd,onInput:e.onInput,onClick:(0,S.D$)(e.toggleMenu,["stop"])},null,46,["id","onUpdate:modelValue","name","disabled","autocomplete","tabindex","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label","onKeydown","onCompositionstart","onCompositionupdate","onCompositionend","onInput","onClick"]),[[S.Jo,e.states.inputValue]]),e.filterable?((0,s.uX)(),(0,s.CE)("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:(0,c.C4)(e.nsSelect.e("input-calculator")),textContent:(0,c.v_)(e.states.inputValue)},null,10,["textContent"])):(0,s.Q3)("v-if",!0)],2),e.shouldShowPlaceholder?((0,s.uX)(),(0,s.CE)("div",{key:1,class:(0,c.C4)([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?(0,s.RG)(e.$slots,"label",{key:0,label:e.currentPlaceholder,value:e.modelValue},(()=>[(0,s.Lk)("span",null,(0,c.v_)(e.currentPlaceholder),1)])):((0,s.uX)(),(0,s.CE)("span",{key:1},(0,c.v_)(e.currentPlaceholder),1))],2)):(0,s.Q3)("v-if",!0)],2),(0,s.Lk)("div",{ref:"suffixRef",class:(0,c.C4)(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClose?((0,s.uX)(),(0,s.Wv)(u,{key:0,class:(0,c.C4)([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:(0,s.k6)((()=>[((0,s.uX)(),(0,s.Wv)((0,s.$y)(e.iconComponent)))])),_:1},8,["class"])):(0,s.Q3)("v-if",!0),e.showClose&&e.clearIcon?((0,s.uX)(),(0,s.Wv)(u,{key:1,class:(0,c.C4)([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.nsSelect.e("clear")]),onClick:e.handleClearClick},{default:(0,s.k6)((()=>[((0,s.uX)(),(0,s.Wv)((0,s.$y)(e.clearIcon)))])),_:1},8,["class","onClick"])):(0,s.Q3)("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?((0,s.uX)(),(0,s.Wv)(u,{key:2,class:(0,c.C4)([e.nsInput.e("icon"),e.nsInput.e("validateIcon"),e.nsInput.is("loading","validating"===e.validateState)])},{default:(0,s.k6)((()=>[((0,s.uX)(),(0,s.Wv)((0,s.$y)(e.validateIcon)))])),_:1},8,["class"])):(0,s.Q3)("v-if",!0)],2)],10,["onClick"])]})),content:(0,s.k6)((()=>[(0,s.bF)(f,{ref:"menuRef"},{default:(0,s.k6)((()=>[e.$slots.header?((0,s.uX)(),(0,s.CE)("div",{key:0,class:(0,c.C4)(e.nsSelect.be("dropdown","header")),onClick:(0,S.D$)((()=>{}),["stop"])},[(0,s.RG)(e.$slots,"header")],10,["onClick"])):(0,s.Q3)("v-if",!0),(0,s.bo)((0,s.bF)(p,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:(0,c.C4)([e.nsSelect.is("empty",0===e.filteredOptionsCount)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical",onScroll:e.popupScroll},{default:(0,s.k6)((()=>[e.showNewOption?((0,s.uX)(),(0,s.Wv)(d,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):(0,s.Q3)("v-if",!0),(0,s.bF)(h,null,{default:(0,s.k6)((()=>[(0,s.RG)(e.$slots,"default")])),_:3})])),_:3},8,["id","wrap-class","view-class","class","aria-label","onScroll"]),[[S.aG,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?((0,s.uX)(),(0,s.CE)("div",{key:1,class:(0,c.C4)(e.nsSelect.be("dropdown","loading"))},[(0,s.RG)(e.$slots,"loading")],2)):e.loading||0===e.filteredOptionsCount?((0,s.uX)(),(0,s.CE)("div",{key:2,class:(0,c.C4)(e.nsSelect.be("dropdown","empty"))},[(0,s.RG)(e.$slots,"empty",{},(()=>[(0,s.Lk)("span",null,(0,c.v_)(e.emptyText),1)]))],2)):(0,s.Q3)("v-if",!0),e.$slots.footer?((0,s.uX)(),(0,s.CE)("div",{key:3,class:(0,c.C4)(e.nsSelect.be("dropdown","footer")),onClick:(0,S.D$)((()=>{}),["stop"])},[(0,s.RG)(e.$slots,"footer")],10,["onClick"])):(0,s.Q3)("v-if",!0)])),_:3},512)])),_:3},8,["visible","placement","teleported","popper-class","popper-options","fallback-placements","effect","transition","persistent","append-to","show-arrow","offset","onBeforeShow","onHide"])],16,["onMouseleave"])),[[m,e.handleClickOutside,e.popperRef]])}var Kg=(0,g.A)(Vg,[["render",Ug],["__file","select.vue"]]);const Hg=(0,s.pM)({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=(0,v.DU)("select"),n=(0,l.KR)(null),r=(0,s.nI)(),a=(0,l.KR)([]);(0,s.Gt)(_g,(0,l.Kh)({...(0,l.QW)(e)}));const i=(0,s.EW)((()=>a.value.some((e=>!0===e.visible)))),o=e=>{var t,n;return"ElOption"===(null==(t=e.type)?void 0:t.name)&&!!(null==(n=e.component)?void 0:n.proxy)},c=e=>{const t=sl(e),n=[];return t.forEach((e=>{var t,r;o(e)?n.push(e.component.proxy):(null==(t=e.children)?void 0:t.length)?n.push(...c(e.children)):(null==(r=e.component)?void 0:r.subTree)&&n.push(...c(e.component.subTree))})),n},d=()=>{a.value=c(r.subTree)};return(0,s.sV)((()=>{d()})),(0,u.P1n)(n,d,{attributes:!0,subtree:!0,childList:!0}),{groupRef:n,visible:i,ns:t}}});function qg(e,t,n,r,a,i){return(0,s.bo)(((0,s.uX)(),(0,s.CE)("ul",{ref:"groupRef",class:(0,c.C4)(e.ns.be("group","wrap"))},[(0,s.Lk)("li",{class:(0,c.C4)(e.ns.be("group","title"))},(0,c.v_)(e.label),3),(0,s.Lk)("li",null,[(0,s.Lk)("ul",{class:(0,c.C4)(e.ns.b("group"))},[(0,s.RG)(e.$slots,"default")],2)])],2)),[[S.aG,e.visible]])}var Gg=(0,g.A)(Hg,[["render",qg],["__file","option-group.vue"]]);const Xg=(0,E.GU)(Kg,{Option:Ag,OptionGroup:Gg}),Yg=(0,E.WM)(Ag),Qg=(0,E.WM)(Gg),Zg=()=>(0,s.WQ)(hg,{}),Jg=(0,h.b_)({pageSize:{type:Number,required:!0},pageSizes:{type:(0,h.jq)(Array),default:()=>(0,Gs.f)([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,teleported:Boolean,size:{type:String,values:ca.I},appendSizeTo:String}),ev=(0,s.pM)({name:"ElPaginationSizes"}),tv=(0,s.pM)({...ev,props:Jg,emits:["page-size-change"],setup(e,{emit:t}){const n=e,{t:r}=(0,La.Ym)(),a=(0,v.DU)("pagination"),i=Zg(),o=(0,l.KR)(n.pageSize);(0,s.wB)((()=>n.pageSizes),((e,r)=>{if(!Ji(e,r)&&(0,c.cy)(e)){const r=e.includes(n.pageSize)?n.pageSize:n.pageSizes[0];t("page-size-change",r)}})),(0,s.wB)((()=>n.pageSize),(e=>{o.value=e}));const u=(0,s.EW)((()=>n.pageSizes));function d(e){var t;e!==o.value&&(o.value=e,null==(t=i.handleSizeChange)||t.call(i,Number(e)))}return(e,t)=>((0,s.uX)(),(0,s.CE)("span",{class:(0,c.C4)((0,l.R1)(a).e("sizes"))},[(0,s.bF)((0,l.R1)(Xg),{"model-value":o.value,disabled:e.disabled,"popper-class":e.popperClass,size:e.size,teleported:e.teleported,"validate-event":!1,"append-to":e.appendSizeTo,onChange:d},{default:(0,s.k6)((()=>[((0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)((0,l.R1)(u),(e=>((0,s.uX)(),(0,s.Wv)((0,l.R1)(Yg),{key:e,value:e,label:e+(0,l.R1)(r)("el.pagination.pagesize")},null,8,["value","label"])))),128))])),_:1},8,["model-value","disabled","popper-class","size","teleported","append-to"])],2))}});var nv=(0,g.A)(tv,[["__file","sizes.vue"]]);const rv=(0,h.b_)({size:{type:String,values:ca.I}}),av=(0,s.pM)({name:"ElPaginationJumper"}),iv=(0,s.pM)({...av,props:rv,setup(e){const{t:t}=(0,La.Ym)(),n=(0,v.DU)("pagination"),{pageCount:r,disabled:a,currentPage:i,changeEvent:o}=Zg(),u=(0,l.KR)(),d=(0,s.EW)((()=>{var e;return null!=(e=u.value)?e:null==i?void 0:i.value}));function h(e){u.value=e?+e:""}function p(e){e=Math.trunc(+e),null==o||o(e),u.value=void 0}return(e,i)=>((0,s.uX)(),(0,s.CE)("span",{class:(0,c.C4)((0,l.R1)(n).e("jump")),disabled:(0,l.R1)(a)},[(0,s.Lk)("span",{class:(0,c.C4)([(0,l.R1)(n).e("goto")])},(0,c.v_)((0,l.R1)(t)("el.pagination.goto")),3),(0,s.bF)((0,l.R1)(q.WK),{size:e.size,class:(0,c.C4)([(0,l.R1)(n).e("editor"),(0,l.R1)(n).is("in-pagination")]),min:1,max:(0,l.R1)(r),disabled:(0,l.R1)(a),"model-value":(0,l.R1)(d),"validate-event":!1,"aria-label":(0,l.R1)(t)("el.pagination.page"),type:"number","onUpdate:modelValue":h,onChange:p},null,8,["size","class","max","disabled","model-value","aria-label"]),(0,s.Lk)("span",{class:(0,c.C4)([(0,l.R1)(n).e("classifier")])},(0,c.v_)((0,l.R1)(t)("el.pagination.pageClassifier")),3)],10,["disabled"]))}});var ov=(0,g.A)(iv,[["__file","jumper.vue"]]);const sv=(0,h.b_)({total:{type:Number,default:1e3}}),lv=(0,s.pM)({name:"ElPaginationTotal"}),cv=(0,s.pM)({...lv,props:sv,setup(e){const{t:t}=(0,La.Ym)(),n=(0,v.DU)("pagination"),{disabled:r}=Zg();return(e,a)=>((0,s.uX)(),(0,s.CE)("span",{class:(0,c.C4)((0,l.R1)(n).e("total")),disabled:(0,l.R1)(r)},(0,c.v_)((0,l.R1)(t)("el.pagination.total",{total:e.total})),11,["disabled"]))}});var uv=(0,g.A)(cv,[["__file","total.vue"]]);const dv=(0,h.b_)({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),hv=(0,s.pM)({name:"ElPaginationPager"}),pv=(0,s.pM)({...hv,props:dv,emits:["change"],setup(e,{emit:t}){const n=e,r=(0,v.DU)("pager"),a=(0,v.DU)("icon"),{t:i}=(0,La.Ym)(),o=(0,l.KR)(!1),u=(0,l.KR)(!1),d=(0,l.KR)(!1),h=(0,l.KR)(!1),p=(0,l.KR)(!1),f=(0,l.KR)(!1),m=(0,s.EW)((()=>{const e=n.pagerCount,t=(e-1)/2,r=Number(n.currentPage),a=Number(n.pageCount);let i=!1,o=!1;a>e&&(r>e-t&&(i=!0),r<a-t&&(o=!0));const s=[];if(i&&!o){const t=a-(e-2);for(let e=t;e<a;e++)s.push(e)}else if(!i&&o)for(let n=2;n<e;n++)s.push(n);else if(i&&o){const t=Math.floor(e/2)-1;for(let e=r-t;e<=r+t;e++)s.push(e)}else for(let n=2;n<a;n++)s.push(n);return s})),g=(0,s.EW)((()=>["more","btn-quickprev",a.b(),r.is("disabled",n.disabled)])),y=(0,s.EW)((()=>["more","btn-quicknext",a.b(),r.is("disabled",n.disabled)])),b=(0,s.EW)((()=>n.disabled?-1:0));function w(e=!1){n.disabled||(e?d.value=!0:h.value=!0)}function x(e=!1){e?p.value=!0:f.value=!0}function k(e){const r=e.target;if("li"===r.tagName.toLowerCase()&&Array.from(r.classList).includes("number")){const e=Number(r.textContent);e!==n.currentPage&&t("change",e)}else"li"===r.tagName.toLowerCase()&&Array.from(r.classList).includes("more")&&_(e)}function _(e){const r=e.target;if("ul"===r.tagName.toLowerCase()||n.disabled)return;let a=Number(r.textContent);const i=n.pageCount,o=n.currentPage,s=n.pagerCount-2;r.className.includes("more")&&(r.className.includes("quickprev")?a=o-s:r.className.includes("quicknext")&&(a=o+s)),Number.isNaN(+a)||(a<1&&(a=1),a>i&&(a=i)),a!==o&&t("change",a)}return(0,s.nT)((()=>{const e=(n.pagerCount-1)/2;o.value=!1,u.value=!1,n.pageCount>n.pagerCount&&(n.currentPage>n.pagerCount-e&&(o.value=!0),n.currentPage<n.pageCount-e&&(u.value=!0))})),(e,t)=>((0,s.uX)(),(0,s.CE)("ul",{class:(0,c.C4)((0,l.R1)(r).b()),onClick:_,onKeyup:(0,S.jR)(k,["enter"])},[e.pageCount>0?((0,s.uX)(),(0,s.CE)("li",{key:0,class:(0,c.C4)([[(0,l.R1)(r).is("active",1===e.currentPage),(0,l.R1)(r).is("disabled",e.disabled)],"number"]),"aria-current":1===e.currentPage,"aria-label":(0,l.R1)(i)("el.pagination.currentPage",{pager:1}),tabindex:(0,l.R1)(b)}," 1 ",10,["aria-current","aria-label","tabindex"])):(0,s.Q3)("v-if",!0),o.value?((0,s.uX)(),(0,s.CE)("li",{key:1,class:(0,c.C4)((0,l.R1)(g)),tabindex:(0,l.R1)(b),"aria-label":(0,l.R1)(i)("el.pagination.prevPages",{pager:e.pagerCount-2}),onMouseenter:e=>w(!0),onMouseleave:e=>d.value=!1,onFocus:e=>x(!0),onBlur:e=>p.value=!1},[!d.value&&!p.value||e.disabled?((0,s.uX)(),(0,s.Wv)((0,l.R1)(H.yGC),{key:1})):((0,s.uX)(),(0,s.Wv)((0,l.R1)(H.V6m),{key:0}))],42,["tabindex","aria-label","onMouseenter","onMouseleave","onFocus","onBlur"])):(0,s.Q3)("v-if",!0),((0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)((0,l.R1)(m),(t=>((0,s.uX)(),(0,s.CE)("li",{key:t,class:(0,c.C4)([[(0,l.R1)(r).is("active",e.currentPage===t),(0,l.R1)(r).is("disabled",e.disabled)],"number"]),"aria-current":e.currentPage===t,"aria-label":(0,l.R1)(i)("el.pagination.currentPage",{pager:t}),tabindex:(0,l.R1)(b)},(0,c.v_)(t),11,["aria-current","aria-label","tabindex"])))),128)),u.value?((0,s.uX)(),(0,s.CE)("li",{key:2,class:(0,c.C4)((0,l.R1)(y)),tabindex:(0,l.R1)(b),"aria-label":(0,l.R1)(i)("el.pagination.nextPages",{pager:e.pagerCount-2}),onMouseenter:e=>w(),onMouseleave:e=>h.value=!1,onFocus:e=>x(),onBlur:e=>f.value=!1},[!h.value&&!f.value||e.disabled?((0,s.uX)(),(0,s.Wv)((0,l.R1)(H.yGC),{key:1})):((0,s.uX)(),(0,s.Wv)((0,l.R1)(H.u$D),{key:0}))],42,["tabindex","aria-label","onMouseenter","onMouseleave","onFocus","onBlur"])):(0,s.Q3)("v-if",!0),e.pageCount>1?((0,s.uX)(),(0,s.CE)("li",{key:3,class:(0,c.C4)([[(0,l.R1)(r).is("active",e.currentPage===e.pageCount),(0,l.R1)(r).is("disabled",e.disabled)],"number"]),"aria-current":e.currentPage===e.pageCount,"aria-label":(0,l.R1)(i)("el.pagination.currentPage",{pager:e.pageCount}),tabindex:(0,l.R1)(b)},(0,c.v_)(e.pageCount),11,["aria-current","aria-label","tabindex"])):(0,s.Q3)("v-if",!0)],42,["onKeyup"]))}});var fv=(0,g.A)(pv,[["__file","pager.vue"]]);const mv=e=>"number"!==typeof e,gv=(0,h.b_)({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>(0,p.Et)(e)&&Math.trunc(e)===e&&e>4&&e<22&&e%2===1,default:7},currentPage:Number,defaultCurrentPage:Number,layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:(0,h.jq)(Array),default:()=>(0,Gs.f)([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},prevIcon:{type:T.Ze,default:()=>H.nkM},nextText:{type:String,default:""},nextIcon:{type:T.Ze,default:()=>H.Qpb},teleported:{type:Boolean,default:!0},small:Boolean,size:ao.mU,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean,appendSizeTo:String}),vv={"update:current-page":e=>(0,p.Et)(e),"update:page-size":e=>(0,p.Et)(e),"size-change":e=>(0,p.Et)(e),change:(e,t)=>(0,p.Et)(e)&&(0,p.Et)(t),"current-change":e=>(0,p.Et)(e),"prev-click":e=>(0,p.Et)(e),"next-click":e=>(0,p.Et)(e)},yv="ElPagination";var bv=(0,s.pM)({name:yv,props:gv,emits:vv,setup(e,{emit:t,slots:n}){const{t:r}=(0,La.Ym)(),a=(0,v.DU)("pagination"),i=(0,s.nI)().vnode.props||{},o=(0,ao.wC)(),c=(0,s.EW)((()=>{var t;return e.small?"small":null!=(t=e.size)?t:o.value}));(0,fo.b)({from:"small",replacement:"size",version:"3.0.0",scope:"el-pagination",ref:"https://element-plus.org/zh-CN/component/pagination.html"},(0,s.EW)((()=>!!e.small)));const u="onUpdate:currentPage"in i||"onUpdate:current-page"in i||"onCurrentChange"in i,d="onUpdate:pageSize"in i||"onUpdate:page-size"in i||"onSizeChange"in i,h=(0,s.EW)((()=>{if(mv(e.total)&&mv(e.pageCount))return!1;if(!mv(e.currentPage)&&!u)return!1;if(e.layout.includes("sizes"))if(mv(e.pageCount)){if(!mv(e.total)&&!mv(e.pageSize)&&!d)return!1}else if(!d)return!1;return!0})),p=(0,l.KR)(mv(e.defaultPageSize)?10:e.defaultPageSize),f=(0,l.KR)(mv(e.defaultCurrentPage)?1:e.defaultCurrentPage),m=(0,s.EW)({get(){return mv(e.pageSize)?p.value:e.pageSize},set(n){mv(e.pageSize)&&(p.value=n),d&&(t("update:page-size",n),t("size-change",n))}}),g=(0,s.EW)((()=>{let t=0;return mv(e.pageCount)?mv(e.total)||(t=Math.max(1,Math.ceil(e.total/m.value))):t=e.pageCount,t})),y=(0,s.EW)({get(){return mv(e.currentPage)?f.value:e.currentPage},set(n){let r=n;n<1?r=1:n>g.value&&(r=g.value),mv(e.currentPage)&&(f.value=r),u&&(t("update:current-page",r),t("current-change",r))}});function b(e){y.value=e}function x(e){m.value=e;const t=g.value;y.value>t&&(y.value=t)}function k(){e.disabled||(y.value-=1,t("prev-click",y.value))}function _(){e.disabled||(y.value+=1,t("next-click",y.value))}function C(e,t){e&&(e.props||(e.props={}),e.props.class=[e.props.class,t].join(" "))}return(0,s.wB)(g,(e=>{y.value>e&&(y.value=e)})),(0,s.wB)([y,m],(e=>{t("change",...e)}),{flush:"post"}),(0,s.Gt)(hg,{pageCount:g,disabled:(0,s.EW)((()=>e.disabled)),currentPage:y,changeEvent:b,handleSizeChange:x}),()=>{var t,i;if(!h.value)return(0,w.U)(yv,r("el.pagination.deprecationWarning")),null;if(!e.layout)return null;if(e.hideOnSinglePage&&g.value<=1)return null;const o=[],l=[],u=(0,s.h)("div",{class:a.e("rightwrapper")},l),d={prev:(0,s.h)(vg,{disabled:e.disabled,currentPage:y.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:k}),jumper:(0,s.h)(ov,{size:c.value}),pager:(0,s.h)(fv,{currentPage:y.value,pageCount:g.value,pagerCount:e.pagerCount,onChange:b,disabled:e.disabled}),next:(0,s.h)(xg,{disabled:e.disabled,currentPage:y.value,pageCount:g.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:_}),sizes:(0,s.h)(nv,{pageSize:m.value,pageSizes:e.pageSizes,popperClass:e.popperClass,disabled:e.disabled,teleported:e.teleported,size:c.value,appendSizeTo:e.appendSizeTo}),slot:null!=(i=null==(t=null==n?void 0:n.default)?void 0:t.call(n))?i:null,total:(0,s.h)(uv,{total:mv(e.total)?0:e.total})},p=e.layout.split(",").map((e=>e.trim()));let f=!1;return p.forEach((e=>{"->"!==e?f?l.push(d[e]):o.push(d[e]):f=!0})),C(o[0],a.is("first")),C(o[o.length-1],a.is("last")),f&&l.length>0&&(C(l[0],a.is("first")),C(l[l.length-1],a.is("last")),o.push(u)),(0,s.h)("div",{class:[a.b(),a.is("background",e.background),a.m(c.value)]},o)}}});const wv=(0,E.GU)(bv);var xv=n(1585);const kv=(0,h.b_)({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:xv.Od,default:"primary"},cancelButtonType:{type:String,values:xv.Od,default:"text"},icon:{type:T.Ze,default:()=>H.lOC},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1},hideAfter:{type:Number,default:200},teleported:Dn.teleported,persistent:Dn.persistent,width:{type:[String,Number],default:150}}),_v={confirm:e=>e instanceof MouseEvent,cancel:e=>e instanceof MouseEvent},Cv=(0,s.pM)({name:"ElPopconfirm"}),Ev=(0,s.pM)({...Cv,props:kv,emits:_v,setup(e,{emit:t}){const n=e,{t:r}=(0,La.Ym)(),a=(0,v.DU)("popconfirm"),i=(0,l.KR)(),o=()=>{var e,t;null==(t=null==(e=i.value)?void 0:e.onClose)||t.call(e)},u=(0,s.EW)((()=>({width:(0,b._V)(n.width)}))),d=e=>{t("confirm",e),o()},h=e=>{t("cancel",e),o()},p=(0,s.EW)((()=>n.confirmButtonText||r("el.popconfirm.confirmButtonText"))),f=(0,s.EW)((()=>n.cancelButtonText||r("el.popconfirm.cancelButtonText")));return(e,t)=>((0,s.uX)(),(0,s.Wv)((0,l.R1)(Jr),(0,s.v6)({ref_key:"tooltipRef",ref:i,trigger:"click",effect:"light"},e.$attrs,{"popper-class":`${(0,l.R1)(a).namespace.value}-popover`,"popper-style":(0,l.R1)(u),teleported:e.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":e.hideAfter,persistent:e.persistent}),{content:(0,s.k6)((()=>[(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(a).b())},[(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(a).e("main"))},[!e.hideIcon&&e.icon?((0,s.uX)(),(0,s.Wv)((0,l.R1)(A.tk),{key:0,class:(0,c.C4)((0,l.R1)(a).e("icon")),style:(0,c.Tr)({color:e.iconColor})},{default:(0,s.k6)((()=>[((0,s.uX)(),(0,s.Wv)((0,s.$y)(e.icon)))])),_:1},8,["class","style"])):(0,s.Q3)("v-if",!0),(0,s.eW)(" "+(0,c.v_)(e.title),1)],2),(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(a).e("action"))},[(0,s.RG)(e.$slots,"actions",{confirm:d,cancel:h},(()=>[(0,s.bF)((0,l.R1)(Wa.S2),{size:"small",type:"text"===e.cancelButtonType?"":e.cancelButtonType,text:"text"===e.cancelButtonType,onClick:h},{default:(0,s.k6)((()=>[(0,s.eW)((0,c.v_)((0,l.R1)(f)),1)])),_:1},8,["type","text"]),(0,s.bF)((0,l.R1)(Wa.S2),{size:"small",type:"text"===e.confirmButtonType?"":e.confirmButtonType,text:"text"===e.confirmButtonType,onClick:d},{default:(0,s.k6)((()=>[(0,s.eW)((0,c.v_)((0,l.R1)(p)),1)])),_:1},8,["type","text"])]))],2)],2)])),default:(0,s.k6)((()=>[e.$slots.reference?(0,s.RG)(e.$slots,"reference",{key:0}):(0,s.Q3)("v-if",!0)])),_:3},16,["popper-class","popper-style","teleported","hide-after","persistent"]))}});var Rv=(0,g.A)(Ev,[["__file","popconfirm.vue"]]);const Sv=(0,E.GU)(Rv),Av=(0,h.b_)({trigger:Pn.trigger,placement:Ph.placement,disabled:Pn.disabled,visible:Dn.visible,transition:Dn.transition,popperOptions:Ph.popperOptions,tabindex:Ph.tabindex,content:Dn.content,popperStyle:Dn.popperStyle,popperClass:Dn.popperClass,enterable:{...Dn.enterable,default:!0},effect:{...Dn.effect,default:"light"},teleported:Dn.teleported,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),Tv={"update:visible":e=>(0,p.Lm)(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},Mv="onUpdate:visible",Lv=(0,s.pM)({name:"ElPopover"}),Ov=(0,s.pM)({...Lv,props:Av,emits:Tv,setup(e,{expose:t,emit:n}){const r=e,a=(0,s.EW)((()=>r[Mv])),i=(0,v.DU)("popover"),o=(0,l.KR)(),u=(0,s.EW)((()=>{var e;return null==(e=(0,l.R1)(o))?void 0:e.popperRef})),d=(0,s.EW)((()=>[{width:(0,b._V)(r.width)},r.popperStyle])),h=(0,s.EW)((()=>[i.b(),r.popperClass,{[i.m("plain")]:!!r.content}])),p=(0,s.EW)((()=>r.transition===`${i.namespace.value}-fade-in-linear`)),f=()=>{var e;null==(e=o.value)||e.hide()},m=()=>{n("before-enter")},g=()=>{n("before-leave")},y=()=>{n("after-enter")},w=()=>{n("update:visible",!1),n("after-leave")};return t({popperRef:u,hide:f}),(e,t)=>((0,s.uX)(),(0,s.Wv)((0,l.R1)(Jr),(0,s.v6)({ref_key:"tooltipRef",ref:o},e.$attrs,{trigger:e.trigger,placement:e.placement,disabled:e.disabled,visible:e.visible,transition:e.transition,"popper-options":e.popperOptions,tabindex:e.tabindex,content:e.content,offset:e.offset,"show-after":e.showAfter,"hide-after":e.hideAfter,"auto-close":e.autoClose,"show-arrow":e.showArrow,"aria-label":e.title,effect:e.effect,enterable:e.enterable,"popper-class":(0,l.R1)(h),"popper-style":(0,l.R1)(d),teleported:e.teleported,persistent:e.persistent,"gpu-acceleration":(0,l.R1)(p),"onUpdate:visible":(0,l.R1)(a),onBeforeShow:m,onBeforeHide:g,onShow:y,onHide:w}),{content:(0,s.k6)((()=>[e.title?((0,s.uX)(),(0,s.CE)("div",{key:0,class:(0,c.C4)((0,l.R1)(i).e("title")),role:"title"},(0,c.v_)(e.title),3)):(0,s.Q3)("v-if",!0),(0,s.RG)(e.$slots,"default",{},(()=>[(0,s.eW)((0,c.v_)(e.content),1)]))])),default:(0,s.k6)((()=>[e.$slots.reference?(0,s.RG)(e.$slots,"reference",{key:0}):(0,s.Q3)("v-if",!0)])),_:3},16,["trigger","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","persistent","gpu-acceleration","onUpdate:visible"]))}});var Iv=(0,g.A)(Ov,[["__file","popover.vue"]]);const Nv=(e,t)=>{const n=t.arg||t.value,r=null==n?void 0:n.popperRef;r&&(r.triggerRef=e)};var Bv={mounted(e,t){Nv(e,t)},updated(e,t){Nv(e,t)}};const Dv="popover",Fv=(0,E.PZ)(Bv,Dv),$v=(0,E.GU)(Iv,{directive:Fv}),Pv=(0,h.b_)({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:e=>e>=0&&e<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:Boolean,duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:(0,h.jq)(String),default:"round"},textInside:Boolean,width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:(0,h.jq)([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:(0,h.jq)(Function),default:e=>`${e}%`}}),zv=(0,s.pM)({name:"ElProgress"}),Wv=(0,s.pM)({...zv,props:Pv,setup(e){const t=e,n={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},r=(0,v.DU)("progress"),a=(0,s.EW)((()=>{const e={width:`${t.percentage}%`,animationDuration:`${t.duration}s`},n=k(t.percentage);return n.includes("gradient")?e.background=n:e.backgroundColor=n,e})),i=(0,s.EW)((()=>(t.strokeWidth/t.width*100).toFixed(1))),o=(0,s.EW)((()=>["circle","dashboard"].includes(t.type)?Number.parseInt(""+(50-Number.parseFloat(i.value)/2),10):0)),u=(0,s.EW)((()=>{const e=o.value,n="dashboard"===t.type;return`\n M 50 50\n m 0 ${n?"":"-"}${e}\n a ${e} ${e} 0 1 1 0 ${n?"-":""}${2*e}\n a ${e} ${e} 0 1 1 0 ${n?"":"-"}${2*e}\n `})),d=(0,s.EW)((()=>2*Math.PI*o.value)),h=(0,s.EW)((()=>"dashboard"===t.type?.75:1)),p=(0,s.EW)((()=>{const e=-1*d.value*(1-h.value)/2;return`${e}px`})),f=(0,s.EW)((()=>({strokeDasharray:`${d.value*h.value}px, ${d.value}px`,strokeDashoffset:p.value}))),m=(0,s.EW)((()=>({strokeDasharray:`${d.value*h.value*(t.percentage/100)}px, ${d.value}px`,strokeDashoffset:p.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"}))),g=(0,s.EW)((()=>{let e;return e=t.color?k(t.percentage):n[t.status]||n.default,e})),y=(0,s.EW)((()=>"warning"===t.status?H.BFW:"line"===t.type?"success"===t.status?H.rW7:H.R$5:"success"===t.status?H.Jlk:H.bm)),b=(0,s.EW)((()=>"line"===t.type?12+.4*t.strokeWidth:.111111*t.width+2)),w=(0,s.EW)((()=>t.format(t.percentage)));function x(e){const t=100/e.length,n=e.map(((e,n)=>(0,c.Kg)(e)?{color:e,percentage:(n+1)*t}:e));return n.sort(((e,t)=>e.percentage-t.percentage))}const k=e=>{var n;const{color:r}=t;if((0,c.Tn)(r))return r(e);if((0,c.Kg)(r))return r;{const t=x(r);for(const n of t)if(n.percentage>e)return n.color;return null==(n=t[t.length-1])?void 0:n.color}};return(e,t)=>((0,s.uX)(),(0,s.CE)("div",{class:(0,c.C4)([(0,l.R1)(r).b(),(0,l.R1)(r).m(e.type),(0,l.R1)(r).is(e.status),{[(0,l.R1)(r).m("without-text")]:!e.showText,[(0,l.R1)(r).m("text-inside")]:e.textInside}]),role:"progressbar","aria-valuenow":e.percentage,"aria-valuemin":"0","aria-valuemax":"100"},["line"===e.type?((0,s.uX)(),(0,s.CE)("div",{key:0,class:(0,c.C4)((0,l.R1)(r).b("bar"))},[(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(r).be("bar","outer")),style:(0,c.Tr)({height:`${e.strokeWidth}px`})},[(0,s.Lk)("div",{class:(0,c.C4)([(0,l.R1)(r).be("bar","inner"),{[(0,l.R1)(r).bem("bar","inner","indeterminate")]:e.indeterminate},{[(0,l.R1)(r).bem("bar","inner","striped")]:e.striped},{[(0,l.R1)(r).bem("bar","inner","striped-flow")]:e.stripedFlow}]),style:(0,c.Tr)((0,l.R1)(a))},[(e.showText||e.$slots.default)&&e.textInside?((0,s.uX)(),(0,s.CE)("div",{key:0,class:(0,c.C4)((0,l.R1)(r).be("bar","innerText"))},[(0,s.RG)(e.$slots,"default",{percentage:e.percentage},(()=>[(0,s.Lk)("span",null,(0,c.v_)((0,l.R1)(w)),1)]))],2)):(0,s.Q3)("v-if",!0)],6)],6)],2)):((0,s.uX)(),(0,s.CE)("div",{key:1,class:(0,c.C4)((0,l.R1)(r).b("circle")),style:(0,c.Tr)({height:`${e.width}px`,width:`${e.width}px`})},[((0,s.uX)(),(0,s.CE)("svg",{viewBox:"0 0 100 100"},[(0,s.Lk)("path",{class:(0,c.C4)((0,l.R1)(r).be("circle","track")),d:(0,l.R1)(u),stroke:`var(${(0,l.R1)(r).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":e.strokeLinecap,"stroke-width":(0,l.R1)(i),fill:"none",style:(0,c.Tr)((0,l.R1)(f))},null,14,["d","stroke","stroke-linecap","stroke-width"]),(0,s.Lk)("path",{class:(0,c.C4)((0,l.R1)(r).be("circle","path")),d:(0,l.R1)(u),stroke:(0,l.R1)(g),fill:"none",opacity:e.percentage?1:0,"stroke-linecap":e.strokeLinecap,"stroke-width":(0,l.R1)(i),style:(0,c.Tr)((0,l.R1)(m))},null,14,["d","stroke","opacity","stroke-linecap","stroke-width"])]))],6)),!e.showText&&!e.$slots.default||e.textInside?(0,s.Q3)("v-if",!0):((0,s.uX)(),(0,s.CE)("div",{key:2,class:(0,c.C4)((0,l.R1)(r).e("text")),style:(0,c.Tr)({fontSize:`${(0,l.R1)(b)}px`})},[(0,s.RG)(e.$slots,"default",{percentage:e.percentage},(()=>[e.status?((0,s.uX)(),(0,s.Wv)((0,l.R1)(A.tk),{key:1},{default:(0,s.k6)((()=>[((0,s.uX)(),(0,s.Wv)((0,s.$y)((0,l.R1)(y))))])),_:1})):((0,s.uX)(),(0,s.CE)("span",{key:0},(0,c.v_)((0,l.R1)(w)),1))]))],6))],10,["aria-valuenow"]))}});var jv=(0,g.A)(Wv,[["__file","progress.vue"]]);const Vv=(0,E.GU)(jv),Uv=(0,h.b_)({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:(0,h.jq)([Array,Object]),default:()=>(0,Gs.f)(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:(0,h.jq)([Array,Object]),default:()=>[H.BQ2,H.BQ2,H.BQ2]},voidIcon:{type:T.Ze,default:()=>H.FEq},disabledVoidIcon:{type:T.Ze,default:()=>H.BQ2},disabled:Boolean,allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:(0,h.jq)(Array),default:()=>(0,Gs.f)(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:ao.mU,clearable:Boolean,...(0,oe.l)(["ariaLabel"])}),Kv={[d.YU]:e=>(0,p.Et)(e),[d.l4]:e=>(0,p.Et)(e)},Hv=(0,s.pM)({name:"ElRate"}),qv=(0,s.pM)({...Hv,props:Uv,emits:Kv,setup(e,{expose:t,emit:n}){const r=e;function a(e,t){const n=e=>(0,c.Gv)(e),r=Object.keys(t).map((e=>+e)).filter((r=>{const a=t[r],i=!!n(a)&&a.excluded;return i?e<r:e<=r})).sort(((e,t)=>e-t)),a=t[r[0]];return n(a)&&a.value||a}const i=(0,s.WQ)(Pr.F,void 0),o=(0,s.WQ)(Pr.w,void 0),u=(0,ra.NV)(),h=(0,v.DU)("rate"),{inputId:p,isLabeledByFormItem:f}=(0,co.W)(r,{formItemContext:o}),m=(0,l.KR)(r.modelValue),g=(0,l.KR)(-1),y=(0,l.KR)(!0),w=(0,s.EW)((()=>[h.b(),h.m(u.value)])),x=(0,s.EW)((()=>r.disabled||(null==i?void 0:i.disabled))),k=(0,s.EW)((()=>h.cssVarBlock({"void-color":r.voidColor,"disabled-void-color":r.disabledVoidColor,"fill-color":R.value}))),_=(0,s.EW)((()=>{let e="";return r.showScore?e=r.scoreTemplate.replace(/\{\s*value\s*\}/,x.value?`${r.modelValue}`:`${m.value}`):r.showText&&(e=r.texts[Math.ceil(m.value)-1]),e})),C=(0,s.EW)((()=>100*r.modelValue-100*Math.floor(r.modelValue))),E=(0,s.EW)((()=>(0,c.cy)(r.colors)?{[r.lowThreshold]:r.colors[0],[r.highThreshold]:{value:r.colors[1],excluded:!0},[r.max]:r.colors[2]}:r.colors)),R=(0,s.EW)((()=>{const e=a(m.value,E.value);return(0,c.Gv)(e)?"":e})),T=(0,s.EW)((()=>{let e="";return x.value?e=`${C.value}%`:r.allowHalf&&(e="50%"),{color:R.value,width:e}})),M=(0,s.EW)((()=>{let e=(0,c.cy)(r.icons)?[...r.icons]:{...r.icons};return e=(0,l.IG)(e),(0,c.cy)(e)?{[r.lowThreshold]:e[0],[r.highThreshold]:{value:e[1],excluded:!0},[r.max]:e[2]}:e})),L=(0,s.EW)((()=>a(r.modelValue,M.value))),O=(0,s.EW)((()=>x.value?(0,c.Kg)(r.disabledVoidIcon)?r.disabledVoidIcon:(0,l.IG)(r.disabledVoidIcon):(0,c.Kg)(r.voidIcon)?r.voidIcon:(0,l.IG)(r.voidIcon))),I=(0,s.EW)((()=>a(m.value,M.value)));function N(e){const t=x.value&&C.value>0&&e-1<r.modelValue&&e>r.modelValue,n=r.allowHalf&&y.value&&e-.5<=m.value&&e>m.value;return t||n}function B(e){r.clearable&&e===r.modelValue&&(e=0),n(d.l4,e),r.modelValue!==e&&n("change",e)}function D(e){x.value||(r.allowHalf&&y.value?B(m.value):B(e))}function F(e){if(x.value)return;let t=m.value;const a=e.code;return a===$n.R.up||a===$n.R.right?(r.allowHalf?t+=.5:t+=1,e.stopPropagation(),e.preventDefault()):a!==$n.R.left&&a!==$n.R.down||(r.allowHalf?t-=.5:t-=1,e.stopPropagation(),e.preventDefault()),t=t<0?0:t,t=t>r.max?r.max:t,n(d.l4,t),n("change",t),t}function $(e,t){if(!x.value){if(r.allowHalf&&t){let n=t.target;(0,b.nB)(n,h.e("item"))&&(n=n.querySelector(`.${h.e("icon")}`)),(0===n.clientWidth||(0,b.nB)(n,h.e("decimal")))&&(n=n.parentNode),y.value=2*t.offsetX<=n.clientWidth,m.value=y.value?e-.5:e}else m.value=e;g.value=e}}function P(){x.value||(r.allowHalf&&(y.value=r.modelValue!==Math.floor(r.modelValue)),m.value=r.modelValue,g.value=-1)}return(0,s.wB)((()=>r.modelValue),(e=>{m.value=e,y.value=r.modelValue!==Math.floor(r.modelValue)})),r.modelValue||n(d.l4,0),t({setCurrentValue:$,resetCurrentValue:P}),(e,t)=>{var n;return(0,s.uX)(),(0,s.CE)("div",{id:(0,l.R1)(p),class:(0,c.C4)([(0,l.R1)(w),(0,l.R1)(h).is("disabled",(0,l.R1)(x))]),role:"slider","aria-label":(0,l.R1)(f)?void 0:e.ariaLabel||"rating","aria-labelledby":(0,l.R1)(f)?null==(n=(0,l.R1)(o))?void 0:n.labelId:void 0,"aria-valuenow":m.value,"aria-valuetext":(0,l.R1)(_)||void 0,"aria-valuemin":"0","aria-valuemax":e.max,tabindex:"0",style:(0,c.Tr)((0,l.R1)(k)),onKeydown:F},[((0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)(e.max,((e,t)=>((0,s.uX)(),(0,s.CE)("span",{key:t,class:(0,c.C4)((0,l.R1)(h).e("item")),onMousemove:t=>$(e,t),onMouseleave:P,onClick:t=>D(e)},[(0,s.bF)((0,l.R1)(A.tk),{class:(0,c.C4)([(0,l.R1)(h).e("icon"),{hover:g.value===e},(0,l.R1)(h).is("active",e<=m.value)])},{default:(0,s.k6)((()=>[N(e)?(0,s.Q3)("v-if",!0):((0,s.uX)(),(0,s.CE)(s.FK,{key:0},[(0,s.bo)(((0,s.uX)(),(0,s.Wv)((0,s.$y)((0,l.R1)(I)),null,null,512)),[[S.aG,e<=m.value]]),(0,s.bo)(((0,s.uX)(),(0,s.Wv)((0,s.$y)((0,l.R1)(O)),null,null,512)),[[S.aG,!(e<=m.value)]])],64)),N(e)?((0,s.uX)(),(0,s.CE)(s.FK,{key:1},[((0,s.uX)(),(0,s.Wv)((0,s.$y)((0,l.R1)(O)),{class:(0,c.C4)([(0,l.R1)(h).em("decimal","box")])},null,8,["class"])),(0,s.bF)((0,l.R1)(A.tk),{style:(0,c.Tr)((0,l.R1)(T)),class:(0,c.C4)([(0,l.R1)(h).e("icon"),(0,l.R1)(h).e("decimal")])},{default:(0,s.k6)((()=>[((0,s.uX)(),(0,s.Wv)((0,s.$y)((0,l.R1)(L))))])),_:1},8,["style","class"])],64)):(0,s.Q3)("v-if",!0)])),_:2},1032,["class"])],42,["onMousemove","onClick"])))),128)),e.showText||e.showScore?((0,s.uX)(),(0,s.CE)("span",{key:0,class:(0,c.C4)((0,l.R1)(h).e("text")),style:(0,c.Tr)({color:e.textColor})},(0,c.v_)((0,l.R1)(_)),7)):(0,s.Q3)("v-if",!0)],46,["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"])}}});var Gv=(0,g.A)(qv,[["__file","rate.vue"]]);const Xv=(0,E.GU)(Gv),Yv={success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},Qv={[Yv.success]:H.Dwh,[Yv.warning]:H.BFW,[Yv.error]:H.BZj,[Yv.info]:H.N_H},Zv=(0,h.b_)({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["success","warning","info","error"],default:"info"}}),Jv=(0,s.pM)({name:"ElResult"}),ey=(0,s.pM)({...Jv,props:Zv,setup(e){const t=e,n=(0,v.DU)("result"),r=(0,s.EW)((()=>{const e=t.icon,n=e&&Yv[e]?Yv[e]:"icon-info",r=Qv[n]||Qv["icon-info"];return{class:n,component:r}}));return(e,t)=>((0,s.uX)(),(0,s.CE)("div",{class:(0,c.C4)((0,l.R1)(n).b())},[(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(n).e("icon"))},[(0,s.RG)(e.$slots,"icon",{},(()=>[(0,l.R1)(r).component?((0,s.uX)(),(0,s.Wv)((0,s.$y)((0,l.R1)(r).component),{key:0,class:(0,c.C4)((0,l.R1)(r).class)},null,8,["class"])):(0,s.Q3)("v-if",!0)]))],2),e.title||e.$slots.title?((0,s.uX)(),(0,s.CE)("div",{key:0,class:(0,c.C4)((0,l.R1)(n).e("title"))},[(0,s.RG)(e.$slots,"title",{},(()=>[(0,s.Lk)("p",null,(0,c.v_)(e.title),1)]))],2)):(0,s.Q3)("v-if",!0),e.subTitle||e.$slots["sub-title"]?((0,s.uX)(),(0,s.CE)("div",{key:1,class:(0,c.C4)((0,l.R1)(n).e("subtitle"))},[(0,s.RG)(e.$slots,"sub-title",{},(()=>[(0,s.Lk)("p",null,(0,c.v_)(e.subTitle),1)]))],2)):(0,s.Q3)("v-if",!0),e.$slots.extra?((0,s.uX)(),(0,s.CE)("div",{key:2,class:(0,c.C4)((0,l.R1)(n).e("extra"))},[(0,s.RG)(e.$slots,"extra")],2)):(0,s.Q3)("v-if",!0)],2))}});var ty=(0,g.A)(ey,[["__file","result.vue"]]);const ny=(0,E.GU)(ty),ry=["start","center","end","space-around","space-between","space-evenly"],ay=["top","middle","bottom"],iy=(0,h.b_)({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:ry,default:"start"},align:{type:String,values:ay}}),oy=(0,s.pM)({name:"ElRow"}),sy=(0,s.pM)({...oy,props:iy,setup(e){const t=e,n=(0,v.DU)("row"),r=(0,s.EW)((()=>t.gutter));(0,s.Gt)(Ys,{gutter:r});const a=(0,s.EW)((()=>{const e={};return t.gutter?(e.marginRight=e.marginLeft=`-${t.gutter/2}px`,e):e})),i=(0,s.EW)((()=>[n.b(),n.is(`justify-${t.justify}`,"start"!==t.justify),n.is(`align-${t.align}`,!!t.align)]));return(e,t)=>((0,s.uX)(),(0,s.Wv)((0,s.$y)(e.tag),{class:(0,c.C4)((0,l.R1)(i)),style:(0,c.Tr)((0,l.R1)(a))},{default:(0,s.k6)((()=>[(0,s.RG)(e.$slots,"default")])),_:3},8,["class","style"]))}});var ly=(0,g.A)(sy,[["__file","row.vue"]]);const cy=(0,E.GU)(ly),uy=(0,s.pM)({props:{item:{type:Object,required:!0},style:{type:Object},height:Number},setup(){const e=(0,v.DU)("select");return{ns:e}}});function dy(e,t,n,r,a,i){return(0,s.uX)(),(0,s.CE)("div",{class:(0,c.C4)(e.ns.be("group","title")),style:(0,c.Tr)({...e.style,lineHeight:`${e.height}px`})},(0,c.v_)(e.item.label),7)}var hy=(0,g.A)(uy,[["render",dy],["__file","group-item.vue"]]);function py(e,{emit:t}){return{hoverItem:()=>{e.disabled||t("hover",e.index)},selectOptionClick:()=>{e.disabled||t("select",e.item,e.index)}}}const fy={label:"label",value:"value",disabled:"disabled",options:"options"};function my(e){const t=(0,s.EW)((()=>({...fy,...e.props}))),n=e=>(0,kg.A)(e,t.value.label),r=e=>(0,kg.A)(e,t.value.value),a=e=>(0,kg.A)(e,t.value.disabled),i=e=>(0,kg.A)(e,t.value.options);return{aliasProps:t,getLabel:n,getValue:r,getDisabled:a,getOptions:i}}const gy=(0,h.b_)({allowCreate:Boolean,autocomplete:{type:(0,h.jq)(String),default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:T.Ze,default:H.R$5},effect:{type:(0,h.jq)(String),default:"light"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},defaultFirstOption:Boolean,disabled:Boolean,estimatedOptionHeight:{type:Number,default:void 0},filterable:Boolean,filterMethod:Function,height:{type:Number,default:274},itemHeight:{type:Number,default:34},id:String,loading:Boolean,loadingText:String,modelValue:{type:(0,h.jq)([Array,String,Number,Boolean,Object])},multiple:Boolean,multipleLimit:{type:Number,default:0},name:String,noDataText:String,noMatchText:String,remoteMethod:Function,reserveKeyword:{type:Boolean,default:!0},options:{type:(0,h.jq)(Array),required:!0},placeholder:{type:String},teleported:Dn.teleported,persistent:{type:Boolean,default:!0},popperClass:{type:String,default:""},popperOptions:{type:(0,h.jq)(Object),default:()=>({})},remote:Boolean,size:ao.mU,props:{type:(0,h.jq)(Object),default:()=>fy},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:Boolean,validateEvent:{type:Boolean,default:!0},offset:{type:Number,default:12},showArrow:{type:Boolean,default:!0},placement:{type:(0,h.jq)(String),values:Pe,default:"bottom-start"},fallbackPlacements:{type:(0,h.jq)(Array),default:["bottom-start","top-start","right","left"]},tagType:{...Cs.type,default:"info"},tagEffect:{...Cs.effect,default:"light"},tabindex:{type:[String,Number],default:0},appendTo:String,fitInputWidth:{type:[Boolean,Number],default:!0,validator(e){return(0,p.Lm)(e)||(0,p.Et)(e)}},...Ms.bs,...(0,oe.l)(["ariaLabel"])}),vy=(0,h.b_)({data:Array,disabled:Boolean,hovering:Boolean,item:{type:(0,h.jq)(Object),required:!0},index:Number,style:Object,selected:Boolean,created:Boolean}),yy={[d.l4]:e=>!0,[d.YU]:e=>!0,"remove-tag":e=>!0,"visible-change":e=>!0,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0},by={hover:e=>(0,p.Et)(e),select:(e,t)=>!0},wy=Symbol("ElSelectV2Injection"),xy=(0,s.pM)({props:vy,emits:by,setup(e,{emit:t}){const n=(0,s.WQ)(wy),r=(0,v.DU)("select"),{hoverItem:a,selectOptionClick:i}=py(e,{emit:t}),{getLabel:o}=my(n.props);return{ns:r,hoverItem:a,selectOptionClick:i,getLabel:o}}});function ky(e,t,n,r,a,i){return(0,s.uX)(),(0,s.CE)("li",{"aria-selected":e.selected,style:(0,c.Tr)(e.style),class:(0,c.C4)([e.ns.be("dropdown","item"),e.ns.is("selected",e.selected),e.ns.is("disabled",e.disabled),e.ns.is("created",e.created),e.ns.is("hovering",e.hovering)]),onMousemove:e.hoverItem,onClick:(0,S.D$)(e.selectOptionClick,["stop"])},[(0,s.RG)(e.$slots,"default",{item:e.item,index:e.index,disabled:e.disabled},(()=>[(0,s.Lk)("span",null,(0,c.v_)(e.getLabel(e.item)),1)]))],46,["aria-selected","onMousemove","onClick"])}var _y=(0,g.A)(xy,[["render",ky],["__file","option-item.vue"]]),Cy=n(8500),Ey=Number.isNaN||function(e){return"number"===typeof e&&e!==e};function Ry(e,t){return e===t||!(!Ey(e)||!Ey(t))}function Sy(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!Ry(e[n],t[n]))return!1;return!0}function Ay(e,t){void 0===t&&(t=Sy);var n=null;function r(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}const Ty=()=>{const e=(0,s.nI)(),t=e.proxy.$props;return(0,s.EW)((()=>{const e=(e,t,n)=>({});return t.perfMode?(0,Cy.A)(e):Ay(e)}))},My=50,Ly="itemRendered",Oy="scroll",Iy="forward",Ny="backward",By="auto",Dy="smart",Fy="start",$y="center",Py="end",zy="horizontal",Wy="vertical",jy="ltr",Vy="rtl",Uy="negative",Ky="positive-ascending",Hy="positive-descending",qy={[zy]:"left",[Wy]:"top"},Gy=20;var Xy=n(5431);const Yy={[zy]:"deltaX",[Wy]:"deltaY"},Qy=({atEndEdge:e,atStartEdge:t,layout:n},r)=>{let a,i=0;const o=n=>{const r=n<0&&t.value||n>0&&e.value;return r},s=e=>{(0,Xy.V)(a);const t=e[Yy[n.value]];o(i)&&o(i+t)||(i+=t,(0,om.gm)()||e.preventDefault(),a=(0,Xy.m)((()=>{r(i),i=0})))};return{hasReachedEdge:o,onWheel:s}},Zy=(0,h.Y8)({type:(0,h.jq)([Number,Function]),required:!0}),Jy=(0,h.Y8)({type:Number}),eb=(0,h.Y8)({type:Number,default:2}),tb=(0,h.Y8)({type:String,values:["ltr","rtl"],default:"ltr"}),nb=(0,h.Y8)({type:Number,default:0}),rb=(0,h.Y8)({type:Number,required:!0}),ab=(0,h.Y8)({type:String,values:["horizontal","vertical"],default:Wy}),ib=(0,h.b_)({className:{type:String,default:""},containerElement:{type:(0,h.jq)([String,Object]),default:"div"},data:{type:(0,h.jq)(Array),default:()=>(0,Gs.f)([])},direction:tb,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},style:{type:(0,h.jq)([Object,String,Array])},useIsScrolling:{type:Boolean,default:!1},width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:{type:Boolean,default:!1}}),ob=(0,h.b_)({cache:eb,estimatedItemSize:Jy,layout:ab,initScrollOffset:nb,total:rb,itemSize:Zy,...ib}),sb={type:Number,default:6},lb={type:Number,default:0},cb={type:Number,default:2},ub=(0,h.b_)({columnCache:eb,columnWidth:Zy,estimatedColumnWidth:Jy,estimatedRowHeight:Jy,initScrollLeft:nb,initScrollTop:nb,itemKey:{type:(0,h.jq)(Function),default:({columnIndex:e,rowIndex:t})=>`${t}:${e}`},rowCache:eb,rowHeight:Zy,totalColumn:rb,totalRow:rb,hScrollbarSize:sb,vScrollbarSize:sb,scrollbarStartGap:lb,scrollbarEndGap:cb,role:String,...ib}),db=(0,h.b_)({alwaysOn:Boolean,class:String,layout:ab,total:rb,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:sb,startGap:lb,endGap:cb,visible:Boolean}),hb=(e,t)=>e<t?Iy:Ny,pb=e=>e===jy||e===Vy||e===zy,fb=e=>e===Vy;let mb=null;function gb(e=!1){if(null===mb||e){const e=document.createElement("div"),t=e.style;t.width="50px",t.height="50px",t.overflow="scroll",t.direction="rtl";const n=document.createElement("div"),r=n.style;return r.width="100px",r.height="100px",e.appendChild(n),document.body.appendChild(e),e.scrollLeft>0?mb=Hy:(e.scrollLeft=1,mb=0===e.scrollLeft?Uy:Ky),document.body.removeChild(e),mb}return mb}function vb({move:e,size:t,bar:n},r){const a={},i=`translate${n.axis}(${e}px)`;return a[n.size]=t,a.transform=i,a.msTransform=i,a.webkitTransform=i,"horizontal"===r?a.height="100%":a.width="100%",a}const yb=(0,s.pM)({name:"ElVirtualScrollBar",props:db,emits:["scroll","start-move","stop-move"],setup(e,{emit:t}){const n=(0,s.EW)((()=>e.startGap+e.endGap)),r=(0,v.DU)("virtual-scrollbar"),a=(0,v.DU)("scrollbar"),i=(0,l.KR)(),o=(0,l.KR)();let c=null,u=null;const d=(0,l.Kh)({isDragging:!1,traveled:0}),h=(0,s.EW)((()=>X[e.layout])),p=(0,s.EW)((()=>e.clientSize-(0,l.R1)(n))),f=(0,s.EW)((()=>({position:"absolute",width:`${zy===e.layout?p.value:e.scrollbarSize}px`,height:`${zy===e.layout?e.scrollbarSize:p.value}px`,[qy[e.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"}))),m=(0,s.EW)((()=>{const t=e.ratio,n=e.clientSize;if(t>=100)return Number.POSITIVE_INFINITY;if(t>=50)return t*n/100;const r=n/3;return Math.floor(Math.min(Math.max(t*n,Gy),r))})),g=(0,s.EW)((()=>{if(!Number.isFinite(m.value))return{display:"none"};const t=`${m.value}px`,n=vb({bar:h.value,size:t,move:d.traveled},e.layout);return n})),y=(0,s.EW)((()=>Math.floor(e.clientSize-m.value-(0,l.R1)(n)))),b=()=>{window.addEventListener("mousemove",_),window.addEventListener("mouseup",k);const e=(0,l.R1)(o);e&&(u=document.onselectstart,document.onselectstart=()=>!1,e.addEventListener("touchmove",_,{passive:!0}),e.addEventListener("touchend",k))},w=()=>{window.removeEventListener("mousemove",_),window.removeEventListener("mouseup",k),document.onselectstart=u,u=null;const e=(0,l.R1)(o);e&&(e.removeEventListener("touchmove",_),e.removeEventListener("touchend",k))},x=e=>{e.stopImmediatePropagation(),e.ctrlKey||[1,2].includes(e.button)||(d.isDragging=!0,d[h.value.axis]=e.currentTarget[h.value.offset]-(e[h.value.client]-e.currentTarget.getBoundingClientRect()[h.value.direction]),t("start-move"),b())},k=()=>{d.isDragging=!1,d[h.value.axis]=0,t("stop-move"),w()},_=n=>{const{isDragging:r}=d;if(!r)return;if(!o.value||!i.value)return;const a=d[h.value.axis];if(!a)return;(0,Xy.V)(c);const s=-1*(i.value.getBoundingClientRect()[h.value.direction]-n[h.value.client]),l=o.value[h.value.offset]-a,u=s-l;c=(0,Xy.m)((()=>{d.traveled=Math.max(e.startGap,Math.min(u,y.value)),t("scroll",u,y.value)}))},C=e=>{const n=Math.abs(e.target.getBoundingClientRect()[h.value.direction]-e[h.value.client]),r=o.value[h.value.offset]/2,a=n-r;d.traveled=Math.max(0,Math.min(a,y.value)),t("scroll",a,y.value)};return(0,s.wB)((()=>e.scrollFrom),(e=>{d.isDragging||(d.traveled=Math.ceil(e*y.value))})),(0,s.xo)((()=>{w()})),()=>(0,s.h)("div",{role:"presentation",ref:i,class:[r.b(),e.class,(e.alwaysOn||d.isDragging)&&"always-on"],style:f.value,onMousedown:(0,S.D$)(C,["stop","prevent"]),onTouchstartPrevent:x},(0,s.h)("div",{ref:o,class:a.e("thumb"),style:g.value,onMousedown:x},[]))}}),bb=({name:e,getOffset:t,getItemSize:n,getItemOffset:r,getEstimatedTotalSize:a,getStartIndexForOffset:i,getStopIndexForStartIndex:o,initCache:d,clearCache:h,validateProps:f})=>(0,s.pM)({name:null!=e?e:"ElVirtualList",props:ob,emits:[Ly,Oy],setup(e,{emit:m,expose:g}){f(e);const y=(0,s.nI)(),b=(0,v.DU)("vl"),w=(0,l.KR)(d(e,y)),x=Ty(),k=(0,l.KR)(),_=(0,l.KR)(),C=(0,l.KR)(),E=(0,l.KR)({isScrolling:!1,scrollDir:"forward",scrollOffset:(0,p.Et)(e.initScrollOffset)?e.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:e.scrollbarAlwaysOn}),R=(0,s.EW)((()=>{const{total:t,cache:n}=e,{isScrolling:r,scrollDir:a,scrollOffset:s}=(0,l.R1)(E);if(0===t)return[0,0,0,0];const c=i(e,s,(0,l.R1)(w)),u=o(e,c,s,(0,l.R1)(w)),d=r&&a!==Ny?1:Math.max(1,n),h=r&&a!==Iy?1:Math.max(1,n);return[Math.max(0,c-d),Math.max(0,Math.min(t-1,u+h)),c,u]})),S=(0,s.EW)((()=>a(e,(0,l.R1)(w)))),A=(0,s.EW)((()=>pb(e.layout))),T=(0,s.EW)((()=>[{position:"relative",["overflow-"+(A.value?"x":"y")]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:e.direction,height:(0,p.Et)(e.height)?`${e.height}px`:e.height,width:(0,p.Et)(e.width)?`${e.width}px`:e.width},e.style])),M=(0,s.EW)((()=>{const e=(0,l.R1)(S),t=(0,l.R1)(A);return{height:t?"100%":`${e}px`,pointerEvents:(0,l.R1)(E).isScrolling?"none":void 0,width:t?`${e}px`:"100%"}})),L=(0,s.EW)((()=>A.value?e.width:e.height)),{onWheel:O}=Qy({atStartEdge:(0,s.EW)((()=>E.value.scrollOffset<=0)),atEndEdge:(0,s.EW)((()=>E.value.scrollOffset>=S.value)),layout:(0,s.EW)((()=>e.layout))},(e=>{var t,n;null==(n=(t=C.value).onMouseUp)||n.call(t),$(Math.min(E.value.scrollOffset+e,S.value-L.value))}));(0,u.MLh)(k,"wheel",O,{passive:!1});const I=()=>{const{total:t}=e;if(t>0){const[e,t,n,r]=(0,l.R1)(R);m(Ly,e,t,n,r)}const{scrollDir:n,scrollOffset:r,updateRequested:a}=(0,l.R1)(E);m(Oy,n,r,a)},N=e=>{const{clientHeight:t,scrollHeight:n,scrollTop:r}=e.currentTarget,a=(0,l.R1)(E);if(a.scrollOffset===r)return;const i=Math.max(0,Math.min(r,n-t));E.value={...a,isScrolling:!0,scrollDir:hb(a.scrollOffset,i),scrollOffset:i,updateRequested:!1},(0,s.dY)(W)},B=t=>{const{clientWidth:n,scrollLeft:r,scrollWidth:a}=t.currentTarget,i=(0,l.R1)(E);if(i.scrollOffset===r)return;const{direction:o}=e;let c=r;if(o===Vy)switch(gb()){case Uy:c=-r;break;case Hy:c=a-n-r;break}c=Math.max(0,Math.min(c,a-n)),E.value={...i,isScrolling:!0,scrollDir:hb(i.scrollOffset,c),scrollOffset:c,updateRequested:!1},(0,s.dY)(W)},D=e=>{(0,l.R1)(A)?B(e):N(e),I()},F=(e,t)=>{const n=(S.value-L.value)/t*e;$(Math.min(S.value-L.value,n))},$=e=>{e=Math.max(e,0),e!==(0,l.R1)(E).scrollOffset&&(E.value={...(0,l.R1)(E),scrollOffset:e,scrollDir:hb((0,l.R1)(E).scrollOffset,e),updateRequested:!0},(0,s.dY)(W))},P=(n,r=By)=>{const{scrollOffset:a}=(0,l.R1)(E);n=Math.max(0,Math.min(n,e.total-1)),$(t(e,n,r,a,(0,l.R1)(w)))},z=t=>{const{direction:a,itemSize:i,layout:o}=e,s=x.value(h&&i,h&&o,h&&a);let u;if((0,c.$3)(s,String(t)))u=s[t];else{const i=r(e,t,(0,l.R1)(w)),o=n(e,t,(0,l.R1)(w)),c=(0,l.R1)(A),d=a===Vy,h=c?i:0;s[t]=u={position:"absolute",left:d?void 0:`${h}px`,right:d?`${h}px`:void 0,top:c?0:`${i}px`,height:c?"100%":`${o}px`,width:c?`${o}px`:"100%"}}return u},W=()=>{E.value.isScrolling=!1,(0,s.dY)((()=>{x.value(-1,null,null)}))},j=()=>{const e=k.value;e&&(e.scrollTop=0)};(0,s.sV)((()=>{if(!Q.oc)return;const{initScrollOffset:t}=e,n=(0,l.R1)(k);(0,p.Et)(t)&&n&&((0,l.R1)(A)?n.scrollLeft=t:n.scrollTop=t),I()})),(0,s.$u)((()=>{const{direction:t,layout:n}=e,{scrollOffset:r,updateRequested:a}=(0,l.R1)(E),i=(0,l.R1)(k);if(a&&i)if(n===zy)if(t===Vy)switch(gb()){case Uy:i.scrollLeft=-r;break;case Ky:i.scrollLeft=r;break;default:{const{clientWidth:e,scrollWidth:t}=i;i.scrollLeft=t-e-r;break}}else i.scrollLeft=r;else i.scrollTop=r})),(0,s.n)((()=>{(0,l.R1)(k).scrollTop=(0,l.R1)(E).scrollOffset}));const V={ns:b,clientSize:L,estimatedTotalSize:S,windowStyle:T,windowRef:k,innerRef:_,innerStyle:M,itemsToRender:R,scrollbarRef:C,states:E,getItemStyle:z,onScroll:D,onScrollbarScroll:F,onWheel:O,scrollTo:$,scrollToItem:P,resetScrollTop:j};return g({windowRef:k,innerRef:_,getItemStyleCache:x,scrollTo:$,scrollToItem:P,resetScrollTop:j,states:E}),V},render(e){var t;const{$slots:n,className:r,clientSize:a,containerElement:i,data:o,getItemStyle:l,innerElement:u,itemsToRender:d,innerStyle:h,layout:p,total:f,onScroll:m,onScrollbarScroll:g,states:v,useIsScrolling:y,windowStyle:b,ns:w}=e,[x,k]=d,_=(0,s.$y)(i),C=(0,s.$y)(u),E=[];if(f>0)for(let c=x;c<=k;c++)E.push((0,s.h)(s.FK,{key:c},null==(t=n.default)?void 0:t.call(n,{data:o,index:c,isScrolling:y?v.isScrolling:void 0,style:l(c)})));const R=[(0,s.h)(C,{style:h,ref:"innerRef"},(0,c.Kg)(C)?E:{default:()=>E})],S=(0,s.h)(yb,{ref:"scrollbarRef",clientSize:a,layout:p,onScroll:g,ratio:100*a/this.estimatedTotalSize,scrollFrom:v.scrollOffset/(this.estimatedTotalSize-a),total:f}),A=(0,s.h)(_,{class:[w.e("window"),r],style:b,onScroll:m,ref:"windowRef",key:0},(0,c.Kg)(_)?[R]:{default:()=>[R]});return(0,s.h)("div",{key:0,class:[w.e("wrapper"),v.scrollbarAlwaysOn?"always-on":""]},[A,S])}}),wb=bb({name:"ElFixedSizeList",getItemOffset:({itemSize:e},t)=>t*e,getItemSize:({itemSize:e})=>e,getEstimatedTotalSize:({total:e,itemSize:t})=>t*e,getOffset:({height:e,total:t,itemSize:n,layout:r,width:a},i,o,s)=>{const l=pb(r)?a:e;const c=Math.max(0,t*n-l),u=Math.min(c,i*n),d=Math.max(0,(i+1)*n-l);switch(o===Dy&&(o=s>=d-l&&s<=u+l?By:$y),o){case Fy:return u;case Py:return d;case $y:{const e=Math.round(d+(u-d)/2);return e<Math.ceil(l/2)?0:e>c+Math.floor(l/2)?c:e}case By:default:return s>=d&&s<=u?s:s<d?d:u}},getStartIndexForOffset:({total:e,itemSize:t},n)=>Math.max(0,Math.min(e-1,Math.floor(n/t))),getStopIndexForStartIndex:({height:e,total:t,itemSize:n,layout:r,width:a},i,o)=>{const s=i*n,l=pb(r)?a:e,c=Math.ceil((l+o-s)/n);return Math.max(0,Math.min(t-1,i+c-1))},initCache(){},clearCache:!0,validateProps(){}}),xb=(e,t,n)=>{const{itemSize:r}=e,{items:a,lastVisitedIndex:i}=n;if(t>i){let e=0;if(i>=0){const t=a[i];e=t.offset+t.size}for(let n=i+1;n<=t;n++){const t=r(n);a[n]={offset:e,size:t},e+=t}n.lastVisitedIndex=t}return a[t]},kb=(e,t,n)=>{const{items:r,lastVisitedIndex:a}=t,i=a>0?r[a].offset:0;return i>=n?_b(e,t,0,a,n):Cb(e,t,Math.max(0,a),n)},_b=(e,t,n,r,a)=>{while(n<=r){const i=n+Math.floor((r-n)/2),o=xb(e,i,t).offset;if(o===a)return i;o<a?n=i+1:o>a&&(r=i-1)}return Math.max(0,n-1)},Cb=(e,t,n,r)=>{const{total:a}=e;let i=1;while(n<a&&xb(e,n,t).offset<r)n+=i,i*=2;return _b(e,t,Math.floor(n/2),Math.min(n,a-1),r)},Eb=({total:e},{items:t,estimatedItemSize:n,lastVisitedIndex:r})=>{let a=0;if(r>=e&&(r=e-1),r>=0){const e=t[r];a=e.offset+e.size}const i=e-r-1,o=i*n;return a+o},Rb=bb({name:"ElDynamicSizeList",getItemOffset:(e,t,n)=>xb(e,t,n).offset,getItemSize:(e,t,{items:n})=>n[t].size,getEstimatedTotalSize:Eb,getOffset:(e,t,n,r,a)=>{const{height:i,layout:o,width:s}=e,l=pb(o)?s:i,c=xb(e,t,a),u=Eb(e,a),d=Math.max(0,Math.min(u-l,c.offset)),h=Math.max(0,c.offset-l+c.size);switch(n===Dy&&(n=r>=h-l&&r<=d+l?By:$y),n){case Fy:return d;case Py:return h;case $y:return Math.round(h+(d-h)/2);case By:default:return r>=h&&r<=d?r:r<h?h:d}},getStartIndexForOffset:(e,t,n)=>kb(e,n,t),getStopIndexForStartIndex:(e,t,n,r)=>{const{height:a,total:i,layout:o,width:s}=e,l=pb(o)?s:a,c=xb(e,t,r),u=n+l;let d=c.offset+c.size,h=t;while(h<i-1&&d<u)h++,d+=xb(e,h,r).size;return h},initCache({estimatedItemSize:e=My},t){const n={items:{},estimatedItemSize:e,lastVisitedIndex:-1,clearCacheAfterIndex:(e,r=!0)=>{var a,i;n.lastVisitedIndex=Math.min(n.lastVisitedIndex,e-1),null==(a=t.exposed)||a.getItemStyleCache(-1),r&&(null==(i=t.proxy)||i.$forceUpdate())}};return n},clearCache:!1,validateProps:({itemSize:e})=>{0}}),Sb={loading:Boolean,data:{type:Array,required:!0},hoveringIndex:Number,width:Number};var Ab=(0,s.pM)({name:"ElSelectDropdown",props:Sb,setup(e,{slots:t,expose:n}){const r=(0,s.WQ)(wy),a=(0,v.DU)("select"),{getLabel:i,getValue:o,getDisabled:u}=my(r.props),d=(0,l.KR)([]),h=(0,l.KR)(),f=(0,s.EW)((()=>e.data.length));(0,s.wB)((()=>f.value),(()=>{var e,t;null==(t=(e=r.tooltipRef.value).updatePopper)||t.call(e)}));const m=(0,s.EW)((()=>(0,p.b0)(r.props.estimatedOptionHeight))),g=(0,s.EW)((()=>m.value?{itemSize:r.props.itemHeight}:{estimatedSize:r.props.estimatedOptionHeight,itemSize:e=>d.value[e]})),y=(e=[],t)=>{const{props:{valueKey:n}}=r;return(0,c.Gv)(t)?e&&e.some((e=>(0,l.ux)((0,kg.A)(e,n))===(0,kg.A)(t,n))):e.includes(t)},b=(e,t)=>{if((0,c.Gv)(t)){const{valueKey:n}=r.props;return(0,kg.A)(e,n)===(0,kg.A)(t,n)}return e===t},w=(e,t)=>r.props.multiple?y(e,o(t)):b(e,o(t)),x=(e,t)=>{const{disabled:n,multiple:a,multipleLimit:i}=r.props;return n||!t&&!!a&&i>0&&e.length>=i},k=t=>e.hoveringIndex===t,_=e=>{const t=h.value;t&&t.scrollToItem(e)},C=()=>{const e=h.value;e&&e.resetScrollTop()},E={listRef:h,isSized:m,isItemDisabled:x,isItemHovering:k,isItemSelected:w,scrollToItem:_,resetScrollTop:C};n(E);const R=e=>{const{index:n,data:a,style:o}=e,c=(0,l.R1)(m),{itemSize:d,estimatedSize:h}=(0,l.R1)(g),{modelValue:p}=r.props,{onSelect:f,onHover:v}=r,y=a[n];if("Group"===y.type)return(0,s.bF)(hy,{item:y,style:o,height:c?d:h},null);const b=w(p,y),_=x(p,b),C=k(n);return(0,s.bF)(_y,(0,s.v6)(e,{selected:b,disabled:u(y)||_,created:!!y.created,hovering:C,item:y,onSelect:f,onHover:v}),{default:e=>{var n;return(null==(n=t.default)?void 0:n.call(t,e))||(0,s.bF)("span",null,[i(y)])}})},{onKeyboardNavigate:S,onKeyboardSelect:A}=r,T=()=>{S("forward")},M=()=>{S("backward")},L=e=>{const{code:t}=e,{tab:n,esc:r,down:a,up:i,enter:o,numpadEnter:s}=$n.R;switch(t!==n&&(e.preventDefault(),e.stopPropagation()),t){case n:case r:break;case a:T();break;case i:M();break;case o:case s:A();break}};return()=>{var n,i,o,c;const{data:u,width:d}=e,{height:p,multiple:f,scrollbarAlwaysOn:v}=r.props,y=(0,l.R1)(m)?wb:Rb;return(0,s.bF)("div",{class:[a.b("dropdown"),a.is("multiple",f)],style:{width:`${d}px`}},[null==(n=t.header)?void 0:n.call(t),(null==(i=t.loading)?void 0:i.call(t))||(null==(o=t.empty)?void 0:o.call(t))||(0,s.bF)(y,(0,s.v6)({ref:h},(0,l.R1)(g),{className:a.be("dropdown","list"),scrollbarAlwaysOn:v,data:u,height:p,width:d,total:u.length,onKeydown:L}),{default:e=>(0,s.bF)(R,e,null)}),null==(c=t.footer)?void 0:c.call(t)])}}});function Tb(e,t){const{aliasProps:n,getLabel:r,getValue:a}=my(e),i=(0,l.KR)(0),o=(0,l.KR)(),c=(0,s.EW)((()=>e.allowCreate&&e.filterable));function u(n){const a=e=>r(e)===n;return e.options&&e.options.some(a)||t.createdOptions.some(a)}function d(t){c.value&&(e.multiple&&t.created?i.value++:o.value=t)}function h(r){if(c.value)if(r&&r.length>0){if(u(r))return;const e={[n.value.value]:r,[n.value.label]:r,created:!0,[n.value.disabled]:!1};t.createdOptions.length>=i.value?t.createdOptions[i.value]=e:t.createdOptions.push(e)}else if(e.multiple)t.createdOptions.length=i.value;else{const e=o.value;t.createdOptions.length=0,e&&e.created&&t.createdOptions.push(e)}}function p(n){if(!c.value||!n||!n.created||n.created&&e.reserveKeyword&&t.inputValue===r(n))return;const o=t.createdOptions.findIndex((e=>a(e)===a(n)));~o&&(t.createdOptions.splice(o,1),i.value--)}function f(){c.value&&(t.createdOptions.length=0,i.value=0)}return{createNewOption:h,removeNewOption:p,selectNewOption:d,clearAllNewOption:f}}const Mb=(e,t)=>{const{t:n}=(0,La.Ym)(),r=(0,v.DU)("select"),a=(0,v.DU)("input"),{form:i,formItem:o}=(0,co.j)(),{inputId:h}=(0,co.W)(e,{formItemContext:o}),{aliasProps:f,getLabel:m,getValue:g,getDisabled:y,getOptions:b}=my(e),{valueOnClear:x,isEmptyValue:k}=(0,Ms.fQ)(e),_=(0,l.Kh)({inputValue:"",cachedOptions:[],createdOptions:[],hoveringIndex:-1,inputHovering:!1,selectionWidth:0,collapseItemWidth:0,previousQuery:null,previousValue:void 0,selectedLabel:"",menuVisibleOnFocus:!1,isBeforeHide:!1}),C=(0,l.KR)(-1),E=(0,l.KR)(),R=(0,l.KR)(),S=(0,l.KR)(),A=(0,l.KR)(),M=(0,l.KR)(),L=(0,l.KR)(),O=(0,l.KR)(),I=(0,l.KR)(),N=(0,l.KR)(),B=(0,l.KR)(),{isComposing:D,handleCompositionStart:F,handleCompositionEnd:$,handleCompositionUpdate:P}=(0,Ds.o)({afterComposition:e=>et(e)}),{wrapperRef:z,isFocused:W,handleBlur:j}=(0,cc.K)(M,{beforeFocus(){return G.value},afterFocus(){e.automaticDropdown&&!q.value&&(q.value=!0,_.menuVisibleOnFocus=!0)},beforeBlur(e){var t,n;return(null==(t=S.value)?void 0:t.isFocusInsideContent(e))||(null==(n=A.value)?void 0:n.isFocusInsideContent(e))},afterBlur(){q.value=!1,_.menuVisibleOnFocus=!1}}),V=(0,l.KR)([]),U=(0,l.KR)([]),q=(0,l.KR)(!1),G=(0,s.EW)((()=>e.disabled||(null==i?void 0:i.disabled))),X=(0,s.EW)((()=>{var e;return null!=(e=null==i?void 0:i.statusIcon)&&e})),Y=(0,s.EW)((()=>{const t=U.value.length*e.itemHeight;return t>e.height?e.height:t})),Q=(0,s.EW)((()=>e.multiple?(0,c.cy)(e.modelValue)&&e.modelValue.length>0:!k(e.modelValue))),Z=(0,s.EW)((()=>e.clearable&&!G.value&&_.inputHovering&&Q.value)),J=(0,s.EW)((()=>e.remote&&e.filterable?"":H.yd$)),ee=(0,s.EW)((()=>J.value&&r.is("reverse",q.value))),te=(0,s.EW)((()=>(null==o?void 0:o.validateState)||"")),ne=(0,s.EW)((()=>{if(te.value)return T.vK[te.value]})),re=(0,s.EW)((()=>e.remote?300:0)),ae=(0,s.EW)((()=>e.loading?e.loadingText||n("el.select.loading"):!(e.remote&&!_.inputValue&&0===V.value.length)&&(e.filterable&&_.inputValue&&V.value.length>0&&0===U.value.length?e.noMatchText||n("el.select.noMatch"):0===V.value.length?e.noDataText||n("el.select.noData"):null))),ie=t=>{const n=n=>{if(e.filterable&&(0,c.Tn)(e.filterMethod))return!0;if(e.filterable&&e.remote&&(0,c.Tn)(e.remoteMethod))return!0;const r=new RegExp(is(t),"i");return!t||r.test(m(n)||"")};return e.loading?[]:[..._.createdOptions,...e.options].reduce(((t,r)=>{const a=b(r);if((0,c.cy)(a)){const e=a.filter(n);e.length>0&&t.push({label:m(r),type:"Group"},...e)}else(e.remote||n(r))&&t.push(r);return t}),[])},oe=()=>{V.value=ie(""),U.value=ie(_.inputValue)},se=(0,s.EW)((()=>{const e=new Map;return V.value.forEach(((t,n)=>{e.set(De(g(t)),{option:t,index:n})})),e})),le=(0,s.EW)((()=>{const e=new Map;return U.value.forEach(((t,n)=>{e.set(De(g(t)),{option:t,index:n})})),e})),ce=(0,s.EW)((()=>U.value.every((e=>y(e))))),ue=(0,ra.NV)(),de=(0,s.EW)((()=>"small"===ue.value?"small":"default")),he=()=>{var t;if((0,p.Et)(e.fitInputWidth))return void(C.value=e.fitInputWidth);const n=(null==(t=E.value)?void 0:t.offsetWidth)||200;!e.fitInputWidth&&V.value.length>0?(0,s.dY)((()=>{C.value=Math.max(n,pe())})):C.value=n},pe=()=>{var e,t;const n=document.createElement("canvas"),a=n.getContext("2d"),i=r.be("dropdown","item"),o=(null==(t=null==(e=I.value)?void 0:e.listRef)?void 0:t.innerRef)||document,s=o.querySelector(`.${i}`);if(null===s||null===a)return 0;const l=getComputedStyle(s),c=Number.parseFloat(l.paddingLeft)+Number.parseFloat(l.paddingRight);a.font=l.font;const u=U.value.reduce(((e,t)=>{const n=a.measureText(m(t));return Math.max(n.width,e)}),0);return u+c},fe=()=>{if(!R.value)return 0;const e=window.getComputedStyle(R.value);return Number.parseFloat(e.gap||"6px")},me=(0,s.EW)((()=>{const t=fe(),n=B.value&&1===e.maxCollapseTags?_.selectionWidth-_.collapseItemWidth-t:_.selectionWidth;return{maxWidth:`${n}px`}})),ge=(0,s.EW)((()=>({maxWidth:`${_.selectionWidth}px`}))),ve=(0,s.EW)((()=>(0,c.cy)(e.modelValue)?0===e.modelValue.length&&!_.inputValue:!e.filterable||!_.inputValue)),ye=(0,s.EW)((()=>{var t;const r=null!=(t=e.placeholder)?t:n("el.select.placeholder");return e.multiple||!Q.value?r:_.selectedLabel})),be=(0,s.EW)((()=>{var e,t;return null==(t=null==(e=S.value)?void 0:e.popperRef)?void 0:t.contentRef})),we=(0,s.EW)((()=>{if(e.multiple){const t=e.modelValue.length;if(e.modelValue.length>0&&le.value.has(e.modelValue[t-1])){const{index:n}=le.value.get(e.modelValue[t-1]);return n}}else if(!k(e.modelValue)&&le.value.has(e.modelValue)){const{index:t}=le.value.get(e.modelValue);return t}return-1})),xe=(0,s.EW)({get(){return q.value&&!1!==ae.value},set(e){q.value=e}}),ke=(0,s.EW)((()=>e.multiple?e.collapseTags?_.cachedOptions.slice(0,e.maxCollapseTags):_.cachedOptions:[])),_e=(0,s.EW)((()=>e.multiple&&e.collapseTags?_.cachedOptions.slice(e.maxCollapseTags):[])),{createNewOption:Ce,removeNewOption:Ee,selectNewOption:Re,clearAllNewOption:Se}=Tb(e,_),Ae=()=>{G.value||(_.menuVisibleOnFocus?_.menuVisibleOnFocus=!1:q.value=!q.value)},Te=()=>{_.inputValue.length>0&&!q.value&&(q.value=!0),Ce(_.inputValue),Le(_.inputValue)},Me=K(Te,re.value),Le=t=>{_.previousQuery===t||D.value||(_.previousQuery=t,e.filterable&&(0,c.Tn)(e.filterMethod)?e.filterMethod(t):e.filterable&&e.remote&&(0,c.Tn)(e.remoteMethod)&&e.remoteMethod(t),e.defaultFirstOption&&(e.filterable||e.remote)&&U.value.length?(0,s.dY)(Oe):(0,s.dY)(Je))},Oe=()=>{const e=U.value.filter((e=>!e.disabled&&"Group"!==e.type)),t=e.find((e=>e.created)),n=e[0];_.hoveringIndex=Be(U.value,t||n)},Ie=n=>{Ji(e.modelValue,n)||t(d.YU,n)},Ne=n=>{t(d.l4,n),Ie(n),_.previousValue=e.multiple?String(n):n},Be=(t=[],n)=>{if(!(0,c.Gv)(n))return t.indexOf(n);const r=e.valueKey;let a=-1;return t.some(((e,t)=>(0,kg.A)(e,r)===(0,kg.A)(n,r)&&(a=t,!0))),a},De=t=>(0,c.Gv)(t)?(0,kg.A)(t,e.valueKey):t,Fe=()=>{he()},$e=()=>{_.selectionWidth=R.value.getBoundingClientRect().width},Pe=()=>{_.collapseItemWidth=B.value.getBoundingClientRect().width},ze=()=>{var e,t;null==(t=null==(e=S.value)?void 0:e.updatePopper)||t.call(e)},We=()=>{var e,t;null==(t=null==(e=A.value)?void 0:e.updatePopper)||t.call(e)},je=t=>{if(e.multiple){let n=e.modelValue.slice();const r=Be(n,g(t));r>-1?(n=[...n.slice(0,r),...n.slice(r+1)],_.cachedOptions.splice(r,1),Ee(t)):(e.multipleLimit<=0||n.length<e.multipleLimit)&&(n=[...n,g(t)],_.cachedOptions.push(t),Re(t)),Ne(n),t.created&&Le(""),e.filterable&&!e.reserveKeyword&&(_.inputValue="")}else _.selectedLabel=m(t),Ne(g(t)),q.value=!1,Re(t),t.created||Se();Ue()},Ve=(n,r)=>{let a=e.modelValue.slice();const i=Be(a,g(r));i>-1&&!G.value&&(a=[...e.modelValue.slice(0,i),...e.modelValue.slice(i+1)],_.cachedOptions.splice(i,1),Ne(a),t("remove-tag",g(r)),Ee(r)),n.stopPropagation(),Ue()},Ue=()=>{var e;null==(e=M.value)||e.focus()},Ke=()=>{var e;if(q.value)return q.value=!1,void(0,s.dY)((()=>{var e;return null==(e=M.value)?void 0:e.blur()}));null==(e=M.value)||e.blur()},He=()=>{_.inputValue.length>0?_.inputValue="":q.value=!1},qe=e=>$g(e,(e=>!_.cachedOptions.some((t=>g(t)===e&&y(t))))),Ge=n=>{if(e.multiple&&n.code!==$n.R.delete&&0===_.inputValue.length){n.preventDefault();const r=e.modelValue.slice(),a=qe(r);if(a<0)return;const i=r[a];r.splice(a,1);const o=_.cachedOptions[a];_.cachedOptions.splice(a,1),Ee(o),Ne(r),t("remove-tag",i)}},Xe=()=>{let n;n=(0,c.cy)(e.modelValue)?[]:x.value,e.multiple?_.cachedOptions=[]:_.selectedLabel="",q.value=!1,Ne(n),t("clear"),Se(),Ue()},Ye=(e,t=void 0)=>{const n=U.value;if(!["forward","backward"].includes(e)||G.value||n.length<=0||ce.value||D.value)return;if(!q.value)return Ae();void 0===t&&(t=_.hoveringIndex);let r=-1;"forward"===e?(r=t+1,r>=n.length&&(r=0)):"backward"===e&&(r=t-1,(r<0||r>=n.length)&&(r=n.length-1));const a=n[r];if(y(a)||"Group"===a.type)return Ye(e,r);_.hoveringIndex=r,rt(r)},Qe=()=>{if(!q.value)return Ae();~_.hoveringIndex&&U.value[_.hoveringIndex]&&je(U.value[_.hoveringIndex])},Ze=e=>{_.hoveringIndex=null!=e?e:-1},Je=()=>{e.multiple?_.hoveringIndex=U.value.findIndex((t=>e.modelValue.some((e=>De(e)===De(t))))):_.hoveringIndex=U.value.findIndex((t=>De(t)===De(e.modelValue)))},et=t=>{if(_.inputValue=t.target.value,!e.remote)return Te();Me()},tt=e=>{if(q.value=!1,W.value){const t=new FocusEvent("focus",e);j(t)}},nt=()=>(_.isBeforeHide=!1,(0,s.dY)((()=>{~we.value&&rt(_.hoveringIndex)}))),rt=e=>{I.value.scrollToItem(e)},at=(e,t)=>{const n=De(e);if(se.value.has(n)){const{option:e}=se.value.get(n);return e}if(t&&t.length){const e=t.find((e=>De(g(e))===n));if(e)return e}return{[f.value.value]:e,[f.value.label]:e}},it=(t=!1)=>{if(e.multiple)if(e.modelValue.length>0){const t=_.cachedOptions.slice();_.cachedOptions.length=0,_.previousValue=e.modelValue.toString();for(const n of e.modelValue){const e=at(n,t);_.cachedOptions.push(e)}}else _.cachedOptions=[],_.previousValue=void 0;else if(Q.value){_.previousValue=e.modelValue;const n=U.value,r=n.findIndex((t=>De(g(t))===De(e.modelValue)));~r?_.selectedLabel=m(n[r]):_.selectedLabel&&!t||(_.selectedLabel=De(e.modelValue))}else _.selectedLabel="",_.previousValue=void 0;Se(),he()};return(0,s.wB)((()=>e.fitInputWidth),(()=>{he()})),(0,s.wB)(q,(n=>{n?(e.persistent||he(),Le("")):(_.inputValue="",_.previousQuery=null,_.isBeforeHide=!0,Ce("")),t("visible-change",n)})),(0,s.wB)((()=>e.modelValue),((t,n)=>{var r;const a=!t||(0,c.cy)(t)&&0===t.length;(a||e.multiple&&!Ji(t.toString(),_.previousValue)||!e.multiple&&De(t)!==De(_.previousValue))&&it(!0),!Ji(t,n)&&e.validateEvent&&(null==(r=null==o?void 0:o.validate)||r.call(o,"change").catch((e=>(0,w.U)(e))))}),{deep:!0}),(0,s.wB)((()=>e.options),(()=>{const e=M.value;(!e||e&&document.activeElement!==e)&&it()}),{deep:!0,flush:"post"}),(0,s.wB)((()=>U.value),(()=>(he(),I.value&&(0,s.dY)(I.value.resetScrollTop)))),(0,s.nT)((()=>{_.isBeforeHide||oe()})),(0,s.nT)((()=>{const{valueKey:t,options:n}=e,r=new Map;for(const e of n){const n=g(e);let a=n;if((0,c.Gv)(a)&&(a=(0,kg.A)(n,t)),r.get(a)){(0,w.U)("ElSelectV2","The option values you provided seem to be duplicated, which may cause some problems, please check.");break}r.set(a,!0)}})),(0,s.sV)((()=>{it()})),(0,u.wYm)(E,Fe),(0,u.wYm)(R,$e),(0,u.wYm)(I,ze),(0,u.wYm)(z,ze),(0,u.wYm)(N,We),(0,u.wYm)(B,Pe),{inputId:h,collapseTagSize:de,currentPlaceholder:ye,expanded:q,emptyText:ae,popupHeight:Y,debounce:re,allOptions:V,filteredOptions:U,iconComponent:J,iconReverse:ee,tagStyle:me,collapseTagStyle:ge,popperSize:C,dropdownMenuVisible:xe,hasModelValue:Q,shouldShowPlaceholder:ve,selectDisabled:G,selectSize:ue,needStatusIcon:X,showClearBtn:Z,states:_,isFocused:W,nsSelect:r,nsInput:a,inputRef:M,menuRef:I,tagMenuRef:N,tooltipRef:S,tagTooltipRef:A,selectRef:E,wrapperRef:z,selectionRef:R,prefixRef:L,suffixRef:O,collapseItemRef:B,popperRef:be,validateState:te,validateIcon:ne,showTagList:ke,collapseTagList:_e,debouncedOnInputChange:Me,deleteTag:Ve,getLabel:m,getValue:g,getDisabled:y,getValueKey:De,handleClear:Xe,handleClickOutside:tt,handleDel:Ge,handleEsc:He,focus:Ue,blur:Ke,handleMenuEnter:nt,handleResize:Fe,resetSelectionWidth:$e,updateTooltip:ze,updateTagTooltip:We,updateOptions:oe,toggleMenu:Ae,scrollTo:rt,onInput:et,onKeyboardNavigate:Ye,onKeyboardSelect:Qe,onSelect:je,onHover:Ze,handleCompositionStart:F,handleCompositionEnd:$,handleCompositionUpdate:P}},Lb=(0,s.pM)({name:"ElSelectV2",components:{ElSelectMenu:Ab,ElTag:Ts,ElTooltip:Jr,ElIcon:A.tk},directives:{ClickOutside:Bs},props:gy,emits:yy,setup(e,{emit:t}){const n=(0,s.EW)((()=>{const{modelValue:t,multiple:n}=e,r=n?[]:void 0;return(0,c.cy)(t)?n?t:r:n?r:t})),r=Mb((0,l.Kh)({...(0,l.QW)(e),modelValue:n}),t),{calculatorRef:a,inputStyle:i}=mm();(0,s.Gt)(wy,{props:(0,l.Kh)({...(0,l.QW)(e),height:r.popupHeight,modelValue:n}),expanded:r.expanded,tooltipRef:r.tooltipRef,onSelect:r.onSelect,onHover:r.onHover,onKeyboardNavigate:r.onKeyboardNavigate,onKeyboardSelect:r.onKeyboardSelect});const o=(0,s.EW)((()=>e.multiple?r.states.cachedOptions.map((e=>e.label)):r.states.selectedLabel));return{...r,modelValue:n,selectedLabel:o,calculatorRef:a,inputStyle:i}}});function Ob(e,t,n,r,a,i){const o=(0,s.g2)("el-tag"),l=(0,s.g2)("el-tooltip"),u=(0,s.g2)("el-icon"),d=(0,s.g2)("el-select-menu"),h=(0,s.gN)("click-outside");return(0,s.bo)(((0,s.uX)(),(0,s.CE)("div",{ref:"selectRef",class:(0,c.C4)([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),onMouseenter:t=>e.states.inputHovering=!0,onMouseleave:t=>e.states.inputHovering=!1},[(0,s.bF)(l,{ref:"tooltipRef",visible:e.dropdownMenuVisible,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,placement:e.placement,pure:"",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,trigger:"click",persistent:e.persistent,"append-to":e.appendTo,"show-arrow":e.showArrow,offset:e.offset,onBeforeShow:e.handleMenuEnter,onHide:t=>e.states.isBeforeHide=!1},{default:(0,s.k6)((()=>[(0,s.Lk)("div",{ref:"wrapperRef",class:(0,c.C4)([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:(0,S.D$)(e.toggleMenu,["prevent"])},[e.$slots.prefix?((0,s.uX)(),(0,s.CE)("div",{key:0,ref:"prefixRef",class:(0,c.C4)(e.nsSelect.e("prefix"))},[(0,s.RG)(e.$slots,"prefix")],2)):(0,s.Q3)("v-if",!0),(0,s.Lk)("div",{ref:"selectionRef",class:(0,c.C4)([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.modelValue.length)])},[e.multiple?(0,s.RG)(e.$slots,"tag",{key:0},(()=>[((0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)(e.showTagList,(t=>((0,s.uX)(),(0,s.CE)("div",{key:e.getValueKey(e.getValue(t)),class:(0,c.C4)(e.nsSelect.e("selected-item"))},[(0,s.bF)(o,{closable:!e.selectDisabled&&!e.getDisabled(t),size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:(0,c.Tr)(e.tagStyle),onClose:n=>e.deleteTag(n,t)},{default:(0,s.k6)((()=>[(0,s.Lk)("span",{class:(0,c.C4)(e.nsSelect.e("tags-text"))},[(0,s.RG)(e.$slots,"label",{label:e.getLabel(t),value:e.getValue(t)},(()=>[(0,s.eW)((0,c.v_)(e.getLabel(t)),1)]))],2)])),_:2},1032,["closable","size","type","effect","style","onClose"])],2)))),128)),e.collapseTags&&e.modelValue.length>e.maxCollapseTags?((0,s.uX)(),(0,s.Wv)(l,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:(0,s.k6)((()=>[(0,s.Lk)("div",{ref:"collapseItemRef",class:(0,c.C4)(e.nsSelect.e("selected-item"))},[(0,s.bF)(o,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,style:(0,c.Tr)(e.collapseTagStyle),"disable-transitions":""},{default:(0,s.k6)((()=>[(0,s.Lk)("span",{class:(0,c.C4)(e.nsSelect.e("tags-text"))}," + "+(0,c.v_)(e.modelValue.length-e.maxCollapseTags),3)])),_:1},8,["size","type","effect","style"])],2)])),content:(0,s.k6)((()=>[(0,s.Lk)("div",{ref:"tagMenuRef",class:(0,c.C4)(e.nsSelect.e("selection"))},[((0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)(e.collapseTagList,(t=>((0,s.uX)(),(0,s.CE)("div",{key:e.getValueKey(e.getValue(t)),class:(0,c.C4)(e.nsSelect.e("selected-item"))},[(0,s.bF)(o,{class:"in-tooltip",closable:!e.selectDisabled&&!e.getDisabled(t),size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:n=>e.deleteTag(n,t)},{default:(0,s.k6)((()=>[(0,s.Lk)("span",{class:(0,c.C4)(e.nsSelect.e("tags-text"))},[(0,s.RG)(e.$slots,"label",{label:e.getLabel(t),value:e.getValue(t)},(()=>[(0,s.eW)((0,c.v_)(e.getLabel(t)),1)]))],2)])),_:2},1032,["closable","size","type","effect","onClose"])],2)))),128))],2)])),_:3},8,["disabled","effect","teleported"])):(0,s.Q3)("v-if",!0)])):(0,s.Q3)("v-if",!0),(0,s.Lk)("div",{class:(0,c.C4)([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[(0,s.bo)((0,s.Lk)("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":t=>e.states.inputValue=t,style:(0,c.Tr)(e.inputStyle),autocomplete:e.autocomplete,tabindex:e.tabindex,"aria-autocomplete":"list","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":e.expanded,"aria-label":e.ariaLabel,class:(0,c.C4)([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,role:"combobox",readonly:!e.filterable,spellcheck:"false",type:"text",name:e.name,onInput:e.onInput,onCompositionstart:e.handleCompositionStart,onCompositionupdate:e.handleCompositionUpdate,onCompositionend:e.handleCompositionEnd,onKeydown:[(0,S.jR)((0,S.D$)((t=>e.onKeyboardNavigate("backward")),["stop","prevent"]),["up"]),(0,S.jR)((0,S.D$)((t=>e.onKeyboardNavigate("forward")),["stop","prevent"]),["down"]),(0,S.jR)((0,S.D$)(e.onKeyboardSelect,["stop","prevent"]),["enter"]),(0,S.jR)((0,S.D$)(e.handleEsc,["stop","prevent"]),["esc"]),(0,S.jR)((0,S.D$)(e.handleDel,["stop"]),["delete"])],onClick:(0,S.D$)(e.toggleMenu,["stop"])},null,46,["id","onUpdate:modelValue","autocomplete","tabindex","aria-expanded","aria-label","disabled","readonly","name","onInput","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown","onClick"]),[[S.Jo,e.states.inputValue]]),e.filterable?((0,s.uX)(),(0,s.CE)("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:(0,c.C4)(e.nsSelect.e("input-calculator")),textContent:(0,c.v_)(e.states.inputValue)},null,10,["textContent"])):(0,s.Q3)("v-if",!0)],2),e.shouldShowPlaceholder?((0,s.uX)(),(0,s.CE)("div",{key:1,class:(0,c.C4)([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?(0,s.RG)(e.$slots,"label",{key:0,label:e.currentPlaceholder,value:e.modelValue},(()=>[(0,s.Lk)("span",null,(0,c.v_)(e.currentPlaceholder),1)])):((0,s.uX)(),(0,s.CE)("span",{key:1},(0,c.v_)(e.currentPlaceholder),1))],2)):(0,s.Q3)("v-if",!0)],2),(0,s.Lk)("div",{ref:"suffixRef",class:(0,c.C4)(e.nsSelect.e("suffix"))},[e.iconComponent?(0,s.bo)(((0,s.uX)(),(0,s.Wv)(u,{key:0,class:(0,c.C4)([e.nsSelect.e("caret"),e.nsInput.e("icon"),e.iconReverse])},{default:(0,s.k6)((()=>[((0,s.uX)(),(0,s.Wv)((0,s.$y)(e.iconComponent)))])),_:1},8,["class"])),[[S.aG,!e.showClearBtn]]):(0,s.Q3)("v-if",!0),e.showClearBtn&&e.clearIcon?((0,s.uX)(),(0,s.Wv)(u,{key:1,class:(0,c.C4)([e.nsSelect.e("caret"),e.nsInput.e("icon"),e.nsSelect.e("clear")]),onClick:(0,S.D$)(e.handleClear,["prevent","stop"])},{default:(0,s.k6)((()=>[((0,s.uX)(),(0,s.Wv)((0,s.$y)(e.clearIcon)))])),_:1},8,["class","onClick"])):(0,s.Q3)("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?((0,s.uX)(),(0,s.Wv)(u,{key:2,class:(0,c.C4)([e.nsInput.e("icon"),e.nsInput.e("validateIcon"),e.nsInput.is("loading","validating"===e.validateState)])},{default:(0,s.k6)((()=>[((0,s.uX)(),(0,s.Wv)((0,s.$y)(e.validateIcon)))])),_:1},8,["class"])):(0,s.Q3)("v-if",!0)],2)],10,["onClick"])])),content:(0,s.k6)((()=>[(0,s.bF)(d,{ref:"menuRef",data:e.filteredOptions,width:e.popperSize,"hovering-index":e.states.hoveringIndex,"scrollbar-always-on":e.scrollbarAlwaysOn},(0,s.eX)({default:(0,s.k6)((t=>[(0,s.RG)(e.$slots,"default",(0,c._B)((0,s.Ng)(t)))])),_:2},[e.$slots.header?{name:"header",fn:(0,s.k6)((()=>[(0,s.Lk)("div",{class:(0,c.C4)(e.nsSelect.be("dropdown","header"))},[(0,s.RG)(e.$slots,"header")],2)]))}:void 0,e.$slots.loading&&e.loading?{name:"loading",fn:(0,s.k6)((()=>[(0,s.Lk)("div",{class:(0,c.C4)(e.nsSelect.be("dropdown","loading"))},[(0,s.RG)(e.$slots,"loading")],2)]))}:e.loading||0===e.filteredOptions.length?{name:"empty",fn:(0,s.k6)((()=>[(0,s.Lk)("div",{class:(0,c.C4)(e.nsSelect.be("dropdown","empty"))},[(0,s.RG)(e.$slots,"empty",{},(()=>[(0,s.Lk)("span",null,(0,c.v_)(e.emptyText),1)]))],2)]))}:void 0,e.$slots.footer?{name:"footer",fn:(0,s.k6)((()=>[(0,s.Lk)("div",{class:(0,c.C4)(e.nsSelect.be("dropdown","footer"))},[(0,s.RG)(e.$slots,"footer")],2)]))}:void 0]),1032,["data","width","hovering-index","scrollbar-always-on"])])),_:3},8,["visible","teleported","popper-class","popper-options","fallback-placements","effect","placement","transition","persistent","append-to","show-arrow","offset","onBeforeShow","onHide"])],42,["onMouseenter","onMouseleave"])),[[h,e.handleClickOutside,e.popperRef]])}var Ib=(0,g.A)(Lb,[["render",Ob],["__file","select.vue"]]);const Nb=(0,E.GU)(Ib),Bb=(0,h.b_)({animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:(0,h.jq)([Number,Object])}}),Db=(0,h.b_)({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),Fb=(0,s.pM)({name:"ElSkeletonItem"}),$b=(0,s.pM)({...Fb,props:Db,setup(e){const t=(0,v.DU)("skeleton");return(e,n)=>((0,s.uX)(),(0,s.CE)("div",{class:(0,c.C4)([(0,l.R1)(t).e("item"),(0,l.R1)(t).e(e.variant)])},["image"===e.variant?((0,s.uX)(),(0,s.Wv)((0,l.R1)(H.F46),{key:0})):(0,s.Q3)("v-if",!0)],2))}});var Pb=(0,g.A)($b,[["__file","skeleton-item.vue"]]);const zb=(e,t=0)=>{if(0===t)return e;const n=(0,c.Gv)(t)&&Boolean(t.initVal),r=(0,l.KR)(n);let a=null;const i=t=>{(0,p.b0)(t)?r.value=e.value:(a&&clearTimeout(a),a=setTimeout((()=>{r.value=e.value}),t))},o=e=>{"leading"===e?(0,p.Et)(t)?i(t):i(t.leading):(0,c.Gv)(t)?i(t.trailing):r.value=!1};return(0,s.sV)((()=>o("leading"))),(0,s.wB)((()=>e.value),(e=>{o(e?"leading":"trailing")})),r},Wb=(0,s.pM)({name:"ElSkeleton"}),jb=(0,s.pM)({...Wb,props:Bb,setup(e,{expose:t}){const n=e,r=(0,v.DU)("skeleton"),a=zb((0,l.lW)(n,"loading"),n.throttle);return t({uiLoading:a}),(e,t)=>(0,l.R1)(a)?((0,s.uX)(),(0,s.CE)("div",(0,s.v6)({key:0,class:[(0,l.R1)(r).b(),(0,l.R1)(r).is("animated",e.animated)]},e.$attrs),[((0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)(e.count,(t=>((0,s.uX)(),(0,s.CE)(s.FK,{key:t},[(0,l.R1)(a)?(0,s.RG)(e.$slots,"template",{key:t},(()=>[(0,s.bF)(Pb,{class:(0,c.C4)((0,l.R1)(r).is("first")),variant:"p"},null,8,["class"]),((0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)(e.rows,(t=>((0,s.uX)(),(0,s.Wv)(Pb,{key:t,class:(0,c.C4)([(0,l.R1)(r).e("paragraph"),(0,l.R1)(r).is("last",t===e.rows&&e.rows>1)]),variant:"p"},null,8,["class"])))),128))])):(0,s.Q3)("v-if",!0)],64)))),128))],16)):(0,s.RG)(e.$slots,"default",(0,c._B)((0,s.v6)({key:1},e.$attrs)))}});var Vb=(0,g.A)(jb,[["__file","skeleton.vue"]]);const Ub=(0,E.GU)(Vb,{SkeletonItem:Pb}),Kb=(0,E.WM)(Pb),Hb=Symbol("sliderContextKey"),qb=(0,h.b_)({modelValue:{type:(0,h.jq)([Number,Array]),default:0},id:{type:String,default:void 0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},showInput:Boolean,showInputControls:{type:Boolean,default:!0},size:ao.mU,inputSize:ao.mU,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:(0,h.jq)(Function),default:void 0},disabled:Boolean,range:Boolean,vertical:Boolean,height:String,debounce:{type:Number,default:300},rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:(0,h.jq)(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:Pe,default:"top"},marks:{type:(0,h.jq)(Object)},validateEvent:{type:Boolean,default:!0},...(0,oe.l)(["ariaLabel"])}),Gb=e=>(0,p.Et)(e)||(0,c.cy)(e)&&e.every(p.Et),Xb={[d.l4]:Gb,[d.qs]:Gb,[d.YU]:Gb},Yb=(0,h.b_)({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:Pe,default:"top"}}),Qb={[d.l4]:e=>(0,p.Et)(e)},Zb=(e,t,n)=>{const r=(0,l.KR)(),a=(0,l.KR)(!1),i=(0,s.EW)((()=>t.value instanceof Function)),o=(0,s.EW)((()=>i.value&&t.value(e.modelValue)||e.modelValue)),c=K((()=>{n.value&&(a.value=!0)}),50),u=K((()=>{n.value&&(a.value=!1)}),50);return{tooltip:r,tooltipVisible:a,formatValue:o,displayTooltip:c,hideTooltip:u}},Jb=(e,t,n)=>{const{disabled:r,min:a,max:i,step:o,showTooltip:c,precision:h,sliderSize:p,formatTooltip:f,emitChange:m,resetSize:g,updateDragging:v}=(0,s.WQ)(Hb),{tooltip:y,tooltipVisible:b,formatValue:w,displayTooltip:x,hideTooltip:k}=Zb(e,f,c),_=(0,l.KR)(),C=(0,s.EW)((()=>(e.modelValue-a.value)/(i.value-a.value)*100+"%")),E=(0,s.EW)((()=>e.vertical?{bottom:C.value}:{left:C.value})),R=()=>{t.hovering=!0,x()},S=()=>{t.hovering=!1,t.dragging||k()},A=e=>{r.value||(e.preventDefault(),$(e),window.addEventListener("mousemove",P),window.addEventListener("touchmove",P),window.addEventListener("mouseup",z),window.addEventListener("touchend",z),window.addEventListener("contextmenu",z),_.value.focus())},T=e=>{r.value||(t.newPosition=Number.parseFloat(C.value)+e/(i.value-a.value)*100,W(t.newPosition),m())},M=()=>{T(-o.value)},L=()=>{T(o.value)},O=()=>{T(4*-o.value)},I=()=>{T(4*o.value)},N=()=>{r.value||(W(0),m())},B=()=>{r.value||(W(100),m())},D=e=>{let t=!0;switch(e.code){case $n.R.left:case $n.R.down:M();break;case $n.R.right:case $n.R.up:L();break;case $n.R.home:N();break;case $n.R.end:B();break;case $n.R.pageDown:O();break;case $n.R.pageUp:I();break;default:t=!1;break}t&&e.preventDefault()},F=e=>{let t,n;return e.type.startsWith("touch")?(n=e.touches[0].clientY,t=e.touches[0].clientX):(n=e.clientY,t=e.clientX),{clientX:t,clientY:n}},$=n=>{t.dragging=!0,t.isClick=!0;const{clientX:r,clientY:a}=F(n);e.vertical?t.startY=a:t.startX=r,t.startPosition=Number.parseFloat(C.value),t.newPosition=t.startPosition},P=n=>{if(t.dragging){let r;t.isClick=!1,x(),g();const{clientX:a,clientY:i}=F(n);e.vertical?(t.currentY=i,r=(t.startY-t.currentY)/p.value*100):(t.currentX=a,r=(t.currentX-t.startX)/p.value*100),t.newPosition=t.startPosition+r,W(t.newPosition)}},z=()=>{t.dragging&&(setTimeout((()=>{t.dragging=!1,t.hovering||k(),t.isClick||W(t.newPosition),m()}),0),window.removeEventListener("mousemove",P),window.removeEventListener("touchmove",P),window.removeEventListener("mouseup",z),window.removeEventListener("touchend",z),window.removeEventListener("contextmenu",z))},W=async r=>{if(null===r||Number.isNaN(+r))return;r<0?r=0:r>100&&(r=100);const l=100/((i.value-a.value)/o.value),c=Math.round(r/l);let u=c*l*(i.value-a.value)*.01+a.value;u=Number.parseFloat(u.toFixed(h.value)),u!==e.modelValue&&n(d.l4,u),t.dragging||e.modelValue===t.oldValue||(t.oldValue=e.modelValue),await(0,s.dY)(),t.dragging&&x(),y.value.updatePopper()};return(0,s.wB)((()=>t.dragging),(e=>{v(e)})),(0,u.MLh)(_,"touchstart",A,{passive:!1}),{disabled:r,button:_,tooltip:y,tooltipVisible:b,showTooltip:c,wrapperStyle:E,formatValue:w,handleMouseEnter:R,handleMouseLeave:S,onButtonDown:A,onKeyDown:D,setPosition:W}},ew=(0,s.pM)({name:"ElSliderButton"}),tw=(0,s.pM)({...ew,props:Yb,emits:Qb,setup(e,{expose:t,emit:n}){const r=e,a=(0,v.DU)("slider"),i=(0,l.Kh)({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:r.modelValue}),{disabled:o,button:u,tooltip:d,showTooltip:h,tooltipVisible:p,wrapperStyle:f,formatValue:m,handleMouseEnter:g,handleMouseLeave:y,onButtonDown:b,onKeyDown:w,setPosition:x}=Jb(r,i,n),{hovering:k,dragging:_}=(0,l.QW)(i);return t({onButtonDown:b,onKeyDown:w,setPosition:x,hovering:k,dragging:_}),(e,t)=>((0,s.uX)(),(0,s.CE)("div",{ref_key:"button",ref:u,class:(0,c.C4)([(0,l.R1)(a).e("button-wrapper"),{hover:(0,l.R1)(k),dragging:(0,l.R1)(_)}]),style:(0,c.Tr)((0,l.R1)(f)),tabindex:(0,l.R1)(o)?-1:0,onMouseenter:(0,l.R1)(g),onMouseleave:(0,l.R1)(y),onMousedown:(0,l.R1)(b),onFocus:(0,l.R1)(g),onBlur:(0,l.R1)(y),onKeydown:(0,l.R1)(w)},[(0,s.bF)((0,l.R1)(Jr),{ref_key:"tooltip",ref:d,visible:(0,l.R1)(p),placement:e.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":e.tooltipClass,disabled:!(0,l.R1)(h),persistent:(0,l.R1)(h)},{content:(0,s.k6)((()=>[(0,s.Lk)("span",null,(0,c.v_)((0,l.R1)(m)),1)])),default:(0,s.k6)((()=>[(0,s.Lk)("div",{class:(0,c.C4)([(0,l.R1)(a).e("button"),{hover:(0,l.R1)(k),dragging:(0,l.R1)(_)}])},null,2)])),_:1},8,["visible","placement","popper-class","disabled","persistent"])],46,["tabindex","onMouseenter","onMouseleave","onMousedown","onFocus","onBlur","onKeydown"]))}});var nw=(0,g.A)(tw,[["__file","button.vue"]]);const rw=(0,h.b_)({mark:{type:(0,h.jq)([String,Object]),default:void 0}});var aw=(0,s.pM)({name:"ElSliderMarker",props:rw,setup(e){const t=(0,v.DU)("slider"),n=(0,s.EW)((()=>(0,c.Kg)(e.mark)?e.mark:e.mark.label)),r=(0,s.EW)((()=>(0,c.Kg)(e.mark)?void 0:e.mark.style));return()=>(0,s.h)("div",{class:t.e("marks-text"),style:r.value},n.value)}});const iw=(e,t,n)=>{const{form:r,formItem:a}=(0,co.j)(),i=(0,l.IJ)(),o=(0,l.KR)(),c=(0,l.KR)(),u={firstButton:o,secondButton:c},h=(0,s.EW)((()=>e.disabled||(null==r?void 0:r.disabled)||!1)),p=(0,s.EW)((()=>Math.min(t.firstValue,t.secondValue))),f=(0,s.EW)((()=>Math.max(t.firstValue,t.secondValue))),m=(0,s.EW)((()=>e.range?100*(f.value-p.value)/(e.max-e.min)+"%":100*(t.firstValue-e.min)/(e.max-e.min)+"%")),g=(0,s.EW)((()=>e.range?100*(p.value-e.min)/(e.max-e.min)+"%":"0%")),v=(0,s.EW)((()=>e.vertical?{height:e.height}:{})),y=(0,s.EW)((()=>e.vertical?{height:m.value,bottom:g.value}:{width:m.value,left:g.value})),b=()=>{i.value&&(t.sliderSize=i.value["client"+(e.vertical?"Height":"Width")])},w=n=>{const r=e.min+n*(e.max-e.min)/100;if(!e.range)return o;let a;return a=Math.abs(p.value-r)<Math.abs(f.value-r)?t.firstValue<t.secondValue?"firstButton":"secondButton":t.firstValue>t.secondValue?"firstButton":"secondButton",u[a]},x=e=>{const t=w(e);return t.value.setPosition(e),t},k=n=>{t.firstValue=null!=n?n:e.min,C(e.range?[p.value,f.value]:null!=n?n:e.min)},_=n=>{t.secondValue=n,e.range&&C([p.value,f.value])},C=e=>{n(d.l4,e),n(d.qs,e)},E=async()=>{await(0,s.dY)(),n(d.YU,e.range?[p.value,f.value]:e.modelValue)},R=n=>{var r,a,o,s,l,c;if(h.value||t.dragging)return;b();let u=0;if(e.vertical){const e=null!=(o=null==(a=null==(r=n.touches)?void 0:r.item(0))?void 0:a.clientY)?o:n.clientY,s=i.value.getBoundingClientRect().bottom;u=(s-e)/t.sliderSize*100}else{const e=null!=(c=null==(l=null==(s=n.touches)?void 0:s.item(0))?void 0:l.clientX)?c:n.clientX,r=i.value.getBoundingClientRect().left;u=(e-r)/t.sliderSize*100}return u<0||u>100?void 0:x(u)},S=e=>{var t,n;((null==(t=u["firstButton"].value)?void 0:t.dragging)||(null==(n=u["secondButton"].value)?void 0:n.dragging))&&e.preventDefault()},A=async e=>{const t=R(e);t&&(await(0,s.dY)(),t.value.onButtonDown(e))},T=e=>{const t=R(e);t&&E()},M=e=>{h.value||t.dragging||x(e)};return{elFormItem:a,slider:i,firstButton:o,secondButton:c,sliderDisabled:h,minValue:p,maxValue:f,runwayStyle:v,barStyle:y,resetSize:b,setPosition:x,emitChange:E,onSliderWrapperPrevent:S,onSliderClick:T,onSliderDown:A,onSliderMarkerDown:M,setFirstValue:k,setSecondValue:_}},ow=(e,t,n,r)=>{const a=(0,s.EW)((()=>{if(!e.showStops||e.min>e.max)return[];if(0===e.step)return(0,w.U)("ElSlider","step should not be 0."),[];const a=(e.max-e.min)/e.step,i=100*e.step/(e.max-e.min),o=Array.from({length:a-1}).map(((e,t)=>(t+1)*i));return e.range?o.filter((t=>t<100*(n.value-e.min)/(e.max-e.min)||t>100*(r.value-e.min)/(e.max-e.min))):o.filter((n=>n>100*(t.firstValue-e.min)/(e.max-e.min)))})),i=t=>e.vertical?{bottom:`${t}%`}:{left:`${t}%`};return{stops:a,getStopStyle:i}},sw=e=>(0,s.EW)((()=>{if(!e.marks)return[];const t=Object.keys(e.marks);return t.map(Number.parseFloat).sort(((e,t)=>e-t)).filter((t=>t<=e.max&&t>=e.min)).map((t=>({point:t,position:100*(t-e.min)/(e.max-e.min),mark:e.marks[t]})))})),lw=(e,t,n,r,a,i)=>{const o=e=>{a(d.l4,e),a(d.qs,e)},l=()=>e.range?![n.value,r.value].every(((e,n)=>e===t.oldValue[n])):e.modelValue!==t.oldValue,u=()=>{var n,r;e.min>e.max&&(0,w.$)("Slider","min should not be greater than max.");const a=e.modelValue;e.range&&(0,c.cy)(a)?a[1]<e.min?o([e.min,e.min]):a[0]>e.max?o([e.max,e.max]):a[0]<e.min?o([e.min,a[1]]):a[1]>e.max?o([a[0],e.max]):(t.firstValue=a[0],t.secondValue=a[1],l()&&(e.validateEvent&&(null==(n=null==i?void 0:i.validate)||n.call(i,"change").catch((e=>(0,w.U)(e)))),t.oldValue=a.slice())):e.range||!(0,p.Et)(a)||Number.isNaN(a)||(a<e.min?o(e.min):a>e.max?o(e.max):(t.firstValue=a,l()&&(e.validateEvent&&(null==(r=null==i?void 0:i.validate)||r.call(i,"change").catch((e=>(0,w.U)(e)))),t.oldValue=a)))};u(),(0,s.wB)((()=>t.dragging),(e=>{e||u()})),(0,s.wB)((()=>e.modelValue),((e,n)=>{t.dragging||(0,c.cy)(e)&&(0,c.cy)(n)&&e.every(((e,t)=>e===n[t]))&&t.firstValue===e[0]&&t.secondValue===e[1]||u()}),{deep:!0}),(0,s.wB)((()=>[e.min,e.max]),(()=>{u()}))},cw=(e,t,n)=>{const r=(0,l.KR)();return(0,s.sV)((async()=>{e.range?((0,c.cy)(e.modelValue)?(t.firstValue=Math.max(e.min,e.modelValue[0]),t.secondValue=Math.min(e.max,e.modelValue[1])):(t.firstValue=e.min,t.secondValue=e.max),t.oldValue=[t.firstValue,t.secondValue]):(!(0,p.Et)(e.modelValue)||Number.isNaN(e.modelValue)?t.firstValue=e.min:t.firstValue=Math.min(e.max,Math.max(e.min,e.modelValue)),t.oldValue=t.firstValue),(0,u.MLh)(window,"resize",n),await(0,s.dY)(),n()})),{sliderWrapper:r}},uw=(0,s.pM)({name:"ElSlider"}),dw=(0,s.pM)({...uw,props:qb,emits:Xb,setup(e,{expose:t,emit:n}){const r=e,a=(0,v.DU)("slider"),{t:i}=(0,La.Ym)(),o=(0,l.Kh)({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:d,slider:h,firstButton:p,secondButton:f,sliderDisabled:m,minValue:g,maxValue:y,runwayStyle:b,barStyle:w,resetSize:x,emitChange:k,onSliderWrapperPrevent:_,onSliderClick:C,onSliderDown:E,onSliderMarkerDown:R,setFirstValue:A,setSecondValue:T}=iw(r,o,n),{stops:M,getStopStyle:L}=ow(r,o,g,y),{inputId:O,isLabeledByFormItem:I}=(0,co.W)(r,{formItemContext:d}),N=(0,ra.NV)(),B=(0,s.EW)((()=>r.inputSize||N.value)),D=(0,s.EW)((()=>r.ariaLabel||i("el.slider.defaultLabel",{min:r.min,max:r.max}))),F=(0,s.EW)((()=>r.range?r.rangeStartLabel||i("el.slider.defaultRangeStartLabel"):D.value)),$=(0,s.EW)((()=>r.formatValueText?r.formatValueText(K.value):`${K.value}`)),P=(0,s.EW)((()=>r.rangeEndLabel||i("el.slider.defaultRangeEndLabel"))),z=(0,s.EW)((()=>r.formatValueText?r.formatValueText(H.value):`${H.value}`)),W=(0,s.EW)((()=>[a.b(),a.m(N.value),a.is("vertical",r.vertical),{[a.m("with-input")]:r.showInput}])),j=sw(r);lw(r,o,g,y,n,d);const V=(0,s.EW)((()=>{const e=[r.min,r.max,r.step].map((e=>{const t=`${e}`.split(".")[1];return t?t.length:0}));return Math.max.apply(null,e)})),{sliderWrapper:U}=cw(r,o,x),{firstValue:K,secondValue:H,sliderSize:q}=(0,l.QW)(o),G=e=>{o.dragging=e};return(0,u.MLh)(U,"touchstart",_,{passive:!1}),(0,u.MLh)(U,"touchmove",_,{passive:!1}),(0,s.Gt)(Hb,{...(0,l.QW)(r),sliderSize:q,disabled:m,precision:V,emitChange:k,resetSize:x,updateDragging:G}),t({onSliderClick:C}),(e,t)=>{var n,r;return(0,s.uX)(),(0,s.CE)("div",{id:e.range?(0,l.R1)(O):void 0,ref_key:"sliderWrapper",ref:U,class:(0,c.C4)((0,l.R1)(W)),role:e.range?"group":void 0,"aria-label":e.range&&!(0,l.R1)(I)?(0,l.R1)(D):void 0,"aria-labelledby":e.range&&(0,l.R1)(I)?null==(n=(0,l.R1)(d))?void 0:n.labelId:void 0},[(0,s.Lk)("div",{ref_key:"slider",ref:h,class:(0,c.C4)([(0,l.R1)(a).e("runway"),{"show-input":e.showInput&&!e.range},(0,l.R1)(a).is("disabled",(0,l.R1)(m))]),style:(0,c.Tr)((0,l.R1)(b)),onMousedown:(0,l.R1)(E),onTouchstartPassive:(0,l.R1)(E)},[(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(a).e("bar")),style:(0,c.Tr)((0,l.R1)(w))},null,6),(0,s.bF)(nw,{id:e.range?void 0:(0,l.R1)(O),ref_key:"firstButton",ref:p,"model-value":(0,l.R1)(K),vertical:e.vertical,"tooltip-class":e.tooltipClass,placement:e.placement,role:"slider","aria-label":e.range||!(0,l.R1)(I)?(0,l.R1)(F):void 0,"aria-labelledby":!e.range&&(0,l.R1)(I)?null==(r=(0,l.R1)(d))?void 0:r.labelId:void 0,"aria-valuemin":e.min,"aria-valuemax":e.range?(0,l.R1)(H):e.max,"aria-valuenow":(0,l.R1)(K),"aria-valuetext":(0,l.R1)($),"aria-orientation":e.vertical?"vertical":"horizontal","aria-disabled":(0,l.R1)(m),"onUpdate:modelValue":(0,l.R1)(A)},null,8,["id","model-value","vertical","tooltip-class","placement","aria-label","aria-labelledby","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"]),e.range?((0,s.uX)(),(0,s.Wv)(nw,{key:0,ref_key:"secondButton",ref:f,"model-value":(0,l.R1)(H),vertical:e.vertical,"tooltip-class":e.tooltipClass,placement:e.placement,role:"slider","aria-label":(0,l.R1)(P),"aria-valuemin":(0,l.R1)(K),"aria-valuemax":e.max,"aria-valuenow":(0,l.R1)(H),"aria-valuetext":(0,l.R1)(z),"aria-orientation":e.vertical?"vertical":"horizontal","aria-disabled":(0,l.R1)(m),"onUpdate:modelValue":(0,l.R1)(T)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):(0,s.Q3)("v-if",!0),e.showStops?((0,s.uX)(),(0,s.CE)("div",{key:1},[((0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)((0,l.R1)(M),((e,t)=>((0,s.uX)(),(0,s.CE)("div",{key:t,class:(0,c.C4)((0,l.R1)(a).e("stop")),style:(0,c.Tr)((0,l.R1)(L)(e))},null,6)))),128))])):(0,s.Q3)("v-if",!0),(0,l.R1)(j).length>0?((0,s.uX)(),(0,s.CE)(s.FK,{key:2},[(0,s.Lk)("div",null,[((0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)((0,l.R1)(j),((e,t)=>((0,s.uX)(),(0,s.CE)("div",{key:t,style:(0,c.Tr)((0,l.R1)(L)(e.position)),class:(0,c.C4)([(0,l.R1)(a).e("stop"),(0,l.R1)(a).e("marks-stop")])},null,6)))),128))]),(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(a).e("marks"))},[((0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)((0,l.R1)(j),((e,t)=>((0,s.uX)(),(0,s.Wv)((0,l.R1)(aw),{key:t,mark:e.mark,style:(0,c.Tr)((0,l.R1)(L)(e.position)),onMousedown:(0,S.D$)((t=>(0,l.R1)(R)(e.position)),["stop"])},null,8,["mark","style","onMousedown"])))),128))],2)],64)):(0,s.Q3)("v-if",!0)],46,["onMousedown","onTouchstartPassive"]),e.showInput&&!e.range?((0,s.uX)(),(0,s.Wv)((0,l.R1)(um),{key:0,ref:"input","model-value":(0,l.R1)(K),class:(0,c.C4)((0,l.R1)(a).e("input")),step:e.step,disabled:(0,l.R1)(m),controls:e.showInputControls,min:e.min,max:e.max,precision:(0,l.R1)(V),debounce:e.debounce,size:(0,l.R1)(B),"onUpdate:modelValue":(0,l.R1)(A),onChange:(0,l.R1)(k)},null,8,["model-value","class","step","disabled","controls","min","max","precision","debounce","size","onUpdate:modelValue","onChange"])):(0,s.Q3)("v-if",!0)],10,["id","role","aria-label","aria-labelledby"])}}});var hw=(0,g.A)(dw,[["__file","slider.vue"]]);const pw=(0,E.GU)(hw),fw=(0,h.b_)({prefixCls:{type:String}}),mw=(0,s.pM)({name:"ElSpaceItem",props:fw,setup(e,{slots:t}){const n=(0,v.DU)("space"),r=(0,s.EW)((()=>`${e.prefixCls||n.b()}__item`));return()=>(0,s.h)("div",{class:r.value},(0,s.RG)(t,"default"))}}),gw={small:8,default:12,large:16};function vw(e){const t=(0,v.DU)("space"),n=(0,s.EW)((()=>[t.b(),t.m(e.direction),e.class])),r=(0,l.KR)(0),a=(0,l.KR)(0),i=(0,s.EW)((()=>{const t=e.wrap||e.fill?{flexWrap:"wrap"}:{},n={alignItems:e.alignment},i={rowGap:`${a.value}px`,columnGap:`${r.value}px`};return[t,n,i,e.style]})),o=(0,s.EW)((()=>e.fill?{flexGrow:1,minWidth:`${e.fillRatio}%`}:{}));return(0,s.nT)((()=>{const{size:t="small",wrap:n,direction:i,fill:o}=e;if((0,c.cy)(t)){const[e=0,n=0]=t;r.value=e,a.value=n}else{let e;e=(0,p.Et)(t)?t:gw[t||"small"]||gw.small,(n||o)&&"horizontal"===i?r.value=a.value=e:"horizontal"===i?(r.value=e,a.value=0):(a.value=e,r.value=0)}})),{classes:n,containerStyle:i,itemStyle:o}}const yw=(0,h.b_)({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:(0,h.jq)([String,Object,Array]),default:""},style:{type:(0,h.jq)([String,Array,Object]),default:""},alignment:{type:(0,h.jq)(String),default:"center"},prefixCls:{type:String},spacer:{type:(0,h.jq)([Object,String,Number,Array]),default:null,validator:e=>(0,s.vv)(e)||(0,p.Et)(e)||(0,c.Kg)(e)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:ca.I,validator:e=>(0,p.Et)(e)||(0,c.cy)(e)&&2===e.length&&e.every(p.Et)}}),bw=(0,s.pM)({name:"ElSpace",props:yw,setup(e,{slots:t}){const{classes:n,containerStyle:r,itemStyle:a}=vw(e);function i(t,n="",r=[]){const{prefixCls:o}=e;return t.forEach(((e,t)=>{(0,Ni.zv)(e)?(0,c.cy)(e.children)&&e.children.forEach(((e,t)=>{(0,Ni.zv)(e)&&(0,c.cy)(e.children)?i(e.children,`${n+t}-`,r):r.push((0,s.bF)(mw,{style:a.value,prefixCls:o,key:`nested-${n+t}`},{default:()=>[e]},Ni.Yn.PROPS|Ni.Yn.STYLE,["style","prefixCls"]))})):(0,Ni.jO)(e)&&r.push((0,s.bF)(mw,{style:a.value,prefixCls:o,key:`LoopKey${n+t}`},{default:()=>[e]},Ni.Yn.PROPS|Ni.Yn.STYLE,["style","prefixCls"]))})),r}return()=>{var o;const{spacer:l,direction:u}=e,d=(0,s.RG)(t,"default",{key:0},(()=>[]));if(0===(null!=(o=d.children)?o:[]).length)return null;if((0,c.cy)(d.children)){let e=i(d.children);if(l){const t=e.length-1;e=e.reduce(((e,n,r)=>{const i=[...e,n];return r!==t&&i.push((0,s.bF)("span",{style:[a.value,"vertical"===u?"width: 100%":null],key:r},[(0,s.vv)(l)?l:(0,s.eW)(l,Ni.Yn.TEXT)],Ni.Yn.STYLE)),i}),[])}return(0,s.bF)("div",{class:n.value,style:r.value},e,Ni.Yn.STYLE|Ni.Yn.CLASS)}return d.children}}}),ww=(0,E.GU)(bw),xw=(0,h.b_)({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:(0,h.jq)([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:(0,h.jq)([String,Object,Array])}}),kw=(0,s.pM)({name:"ElStatistic"}),_w=(0,s.pM)({...kw,props:xw,setup(e,{expose:t}){const n=e,r=(0,v.DU)("statistic"),a=(0,s.EW)((()=>{const{value:e,formatter:t,precision:r,decimalSeparator:a,groupSeparator:i}=n;if((0,c.Tn)(t))return t(e);if(!(0,p.Et)(e)||Number.isNaN(e))return e;let[o,s=""]=String(e).split(".");return s=s.padEnd(r,"0").slice(0,r>0?r:0),o=o.replace(/\B(?=(\d{3})+(?!\d))/g,i),[o,s].join(s?a:"")}));return t({displayValue:a}),(e,t)=>((0,s.uX)(),(0,s.CE)("div",{class:(0,c.C4)((0,l.R1)(r).b())},[e.$slots.title||e.title?((0,s.uX)(),(0,s.CE)("div",{key:0,class:(0,c.C4)((0,l.R1)(r).e("head"))},[(0,s.RG)(e.$slots,"title",{},(()=>[(0,s.eW)((0,c.v_)(e.title),1)]))],2)):(0,s.Q3)("v-if",!0),(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(r).e("content"))},[e.$slots.prefix||e.prefix?((0,s.uX)(),(0,s.CE)("div",{key:0,class:(0,c.C4)((0,l.R1)(r).e("prefix"))},[(0,s.RG)(e.$slots,"prefix",{},(()=>[(0,s.Lk)("span",null,(0,c.v_)(e.prefix),1)]))],2)):(0,s.Q3)("v-if",!0),(0,s.Lk)("span",{class:(0,c.C4)((0,l.R1)(r).e("number")),style:(0,c.Tr)(e.valueStyle)},(0,c.v_)((0,l.R1)(a)),7),e.$slots.suffix||e.suffix?((0,s.uX)(),(0,s.CE)("div",{key:1,class:(0,c.C4)((0,l.R1)(r).e("suffix"))},[(0,s.RG)(e.$slots,"suffix",{},(()=>[(0,s.Lk)("span",null,(0,c.v_)(e.suffix),1)]))],2)):(0,s.Q3)("v-if",!0)],2)],2))}});var Cw=(0,g.A)(_w,[["__file","statistic.vue"]]);const Ew=(0,E.GU)(Cw),Rw=(0,h.b_)({format:{type:String,default:"HH:mm:ss"},prefix:String,suffix:String,title:String,value:{type:(0,h.jq)([Number,Object]),default:0},valueStyle:{type:(0,h.jq)([String,Object,Array])}}),Sw={finish:()=>!0,[d.YU]:e=>(0,p.Et)(e)},Aw=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]],Tw=e=>(0,p.Et)(e)?new Date(e).getTime():e.valueOf(),Mw=(e,t)=>{let n=e;const r=/\[([^\]]*)]/g,a=Aw.reduce(((e,[t,r])=>{const a=new RegExp(`${t}+(?![^\\[\\]]*\\])`,"g");if(a.test(e)){const t=Math.floor(n/r);return n-=t*r,e.replace(a,(e=>String(t).padStart(e.length,"0")))}return e}),t);return a.replace(r,"$1")},Lw=(0,s.pM)({name:"ElCountdown"}),Ow=(0,s.pM)({...Lw,props:Rw,emits:Sw,setup(e,{expose:t,emit:n}){const r=e;let a;const i=(0,l.KR)(0),o=(0,s.EW)((()=>Mw(i.value,r.format))),c=e=>Mw(e,r.format),u=()=>{a&&((0,Xy.V)(a),a=void 0)},d=()=>{const e=Tw(r.value),t=()=>{let r=e-Date.now();n("change",r),r<=0?(r=0,u(),n("finish")):a=(0,Xy.m)(t),i.value=r};a=(0,Xy.m)(t)};return(0,s.sV)((()=>{i.value=Tw(r.value)-Date.now(),(0,s.wB)((()=>[r.value,r.format]),(()=>{u(),d()}),{immediate:!0})})),(0,s.xo)((()=>{u()})),t({displayValue:o}),(e,t)=>((0,s.uX)(),(0,s.Wv)((0,l.R1)(Ew),{value:i.value,title:e.title,prefix:e.prefix,suffix:e.suffix,"value-style":e.valueStyle,formatter:c},(0,s.eX)({_:2},[(0,s.pI)(e.$slots,((t,n)=>({name:n,fn:(0,s.k6)((()=>[(0,s.RG)(e.$slots,n)]))})))]),1032,["value","title","prefix","suffix","value-style"]))}});var Iw=(0,g.A)(Ow,[["__file","countdown.vue"]]);const Nw=(0,E.GU)(Iw),Bw=(0,h.b_)({space:{type:[Number,String],default:""},active:{type:Number,default:0},direction:{type:String,default:"horizontal",values:["horizontal","vertical"]},alignCenter:{type:Boolean},simple:{type:Boolean},finishStatus:{type:String,values:["wait","process","finish","error","success"],default:"finish"},processStatus:{type:String,values:["wait","process","finish","error","success"],default:"process"}}),Dw={[d.YU]:(e,t)=>[e,t].every(p.Et)},Fw=(0,s.pM)({name:"ElSteps"}),$w=(0,s.pM)({...Fw,props:Bw,emits:Dw,setup(e,{emit:t}){const n=e,r=(0,v.DU)("steps"),{children:a,addChild:i,removeChild:o}=Di((0,s.nI)(),"ElStep");return(0,s.wB)(a,(()=>{a.value.forEach(((e,t)=>{e.setIndex(t)}))})),(0,s.Gt)("ElSteps",{props:n,steps:a,addStep:i,removeStep:o}),(0,s.wB)((()=>n.active),((e,n)=>{t(d.YU,e,n)})),(e,t)=>((0,s.uX)(),(0,s.CE)("div",{class:(0,c.C4)([(0,l.R1)(r).b(),(0,l.R1)(r).m(e.simple?"simple":e.direction)])},[(0,s.RG)(e.$slots,"default")],2))}});var Pw=(0,g.A)($w,[["__file","steps.vue"]]);const zw=(0,h.b_)({title:{type:String,default:""},icon:{type:T.Ze},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}}),Ww=(0,s.pM)({name:"ElStep"}),jw=(0,s.pM)({...Ww,props:zw,setup(e){const t=e,n=(0,v.DU)("step"),r=(0,l.KR)(-1),a=(0,l.KR)({}),i=(0,l.KR)(""),o=(0,s.WQ)("ElSteps"),u=(0,s.nI)();(0,s.sV)((()=>{(0,s.wB)([()=>o.props.active,()=>o.props.processStatus,()=>o.props.finishStatus],(([e])=>{E(e)}),{immediate:!0})})),(0,s.xo)((()=>{o.removeStep(R.uid)}));const d=(0,s.EW)((()=>t.status||i.value)),h=(0,s.EW)((()=>{const e=o.steps.value[r.value-1];return e?e.currentStatus:"wait"})),f=(0,s.EW)((()=>o.props.alignCenter)),m=(0,s.EW)((()=>"vertical"===o.props.direction)),g=(0,s.EW)((()=>o.props.simple)),y=(0,s.EW)((()=>o.steps.value.length)),b=(0,s.EW)((()=>{var e;return(null==(e=o.steps.value[y.value-1])?void 0:e.uid)===(null==u?void 0:u.uid)})),w=(0,s.EW)((()=>g.value?"":o.props.space)),x=(0,s.EW)((()=>[n.b(),n.is(g.value?"simple":o.props.direction),n.is("flex",b.value&&!w.value&&!f.value),n.is("center",f.value&&!m.value&&!g.value)])),k=(0,s.EW)((()=>{const e={flexBasis:(0,p.Et)(w.value)?`${w.value}px`:w.value?w.value:100/(y.value-(f.value?0:1))+"%"};return m.value||b.value&&(e.maxWidth=100/y.value+"%"),e})),_=e=>{r.value=e},C=e=>{const t="wait"===e,n={transitionDelay:`${t?"-":""}${150*r.value}ms`},i=e===o.props.processStatus||t?0:100;n.borderWidth=i&&!g.value?"1px":0,n["vertical"===o.props.direction?"height":"width"]=`${i}%`,a.value=n},E=e=>{e>r.value?i.value=o.props.finishStatus:e===r.value&&"error"!==h.value?i.value=o.props.processStatus:i.value="wait";const t=o.steps.value[r.value-1];t&&t.calcProgress(i.value)},R=(0,l.Kh)({uid:u.uid,currentStatus:d,setIndex:_,calcProgress:C});return o.addStep(R),(e,t)=>((0,s.uX)(),(0,s.CE)("div",{style:(0,c.Tr)((0,l.R1)(k)),class:(0,c.C4)((0,l.R1)(x))},[(0,s.Q3)(" icon & line "),(0,s.Lk)("div",{class:(0,c.C4)([(0,l.R1)(n).e("head"),(0,l.R1)(n).is((0,l.R1)(d))])},[(0,l.R1)(g)?(0,s.Q3)("v-if",!0):((0,s.uX)(),(0,s.CE)("div",{key:0,class:(0,c.C4)((0,l.R1)(n).e("line"))},[(0,s.Lk)("i",{class:(0,c.C4)((0,l.R1)(n).e("line-inner")),style:(0,c.Tr)(a.value)},null,6)],2)),(0,s.Lk)("div",{class:(0,c.C4)([(0,l.R1)(n).e("icon"),(0,l.R1)(n).is(e.icon||e.$slots.icon?"icon":"text")])},[(0,s.RG)(e.$slots,"icon",{},(()=>[e.icon?((0,s.uX)(),(0,s.Wv)((0,l.R1)(A.tk),{key:0,class:(0,c.C4)((0,l.R1)(n).e("icon-inner"))},{default:(0,s.k6)((()=>[((0,s.uX)(),(0,s.Wv)((0,s.$y)(e.icon)))])),_:1},8,["class"])):"success"===(0,l.R1)(d)?((0,s.uX)(),(0,s.Wv)((0,l.R1)(A.tk),{key:1,class:(0,c.C4)([(0,l.R1)(n).e("icon-inner"),(0,l.R1)(n).is("status")])},{default:(0,s.k6)((()=>[(0,s.bF)((0,l.R1)(H.Jlk))])),_:1},8,["class"])):"error"===(0,l.R1)(d)?((0,s.uX)(),(0,s.Wv)((0,l.R1)(A.tk),{key:2,class:(0,c.C4)([(0,l.R1)(n).e("icon-inner"),(0,l.R1)(n).is("status")])},{default:(0,s.k6)((()=>[(0,s.bF)((0,l.R1)(H.bm))])),_:1},8,["class"])):(0,l.R1)(g)?(0,s.Q3)("v-if",!0):((0,s.uX)(),(0,s.CE)("div",{key:3,class:(0,c.C4)((0,l.R1)(n).e("icon-inner"))},(0,c.v_)(r.value+1),3))]))],2)],2),(0,s.Q3)(" title & description "),(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(n).e("main"))},[(0,s.Lk)("div",{class:(0,c.C4)([(0,l.R1)(n).e("title"),(0,l.R1)(n).is((0,l.R1)(d))])},[(0,s.RG)(e.$slots,"title",{},(()=>[(0,s.eW)((0,c.v_)(e.title),1)]))],2),(0,l.R1)(g)?((0,s.uX)(),(0,s.CE)("div",{key:0,class:(0,c.C4)((0,l.R1)(n).e("arrow"))},null,2)):((0,s.uX)(),(0,s.CE)("div",{key:1,class:(0,c.C4)([(0,l.R1)(n).e("description"),(0,l.R1)(n).is((0,l.R1)(d))])},[(0,s.RG)(e.$slots,"description",{},(()=>[(0,s.eW)((0,c.v_)(e.description),1)]))],2))],2)],6))}});var Vw=(0,g.A)(jw,[["__file","item.vue"]]);const Uw=(0,E.GU)(Pw,{Step:Vw}),Kw=(0,E.WM)(Vw);var Hw=n(3027);const qw=(0,h.b_)({modelValue:{type:[Boolean,String,Number],default:!1},disabled:Boolean,loading:Boolean,size:{type:String,validator:Hw.x},width:{type:[String,Number],default:""},inlinePrompt:Boolean,inactiveActionIcon:{type:T.Ze},activeActionIcon:{type:T.Ze},activeIcon:{type:T.Ze},inactiveIcon:{type:T.Ze},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},beforeChange:{type:(0,h.jq)(Function)},id:String,tabindex:{type:[String,Number]},...(0,oe.l)(["ariaLabel"])}),Gw={[d.l4]:e=>(0,p.Lm)(e)||(0,c.Kg)(e)||(0,p.Et)(e),[d.YU]:e=>(0,p.Lm)(e)||(0,c.Kg)(e)||(0,p.Et)(e),[d.qs]:e=>(0,p.Lm)(e)||(0,c.Kg)(e)||(0,p.Et)(e)},Xw="ElSwitch",Yw=(0,s.pM)({name:Xw}),Qw=(0,s.pM)({...Yw,props:qw,emits:Gw,setup(e,{expose:t,emit:n}){const r=e,{formItem:a}=(0,co.j)(),i=(0,ra.NV)(),o=(0,v.DU)("switch"),{inputId:u}=(0,co.W)(r,{formItemContext:a}),h=(0,ra.CB)((0,s.EW)((()=>r.loading))),f=(0,l.KR)(!1!==r.modelValue),m=(0,l.KR)(),g=(0,l.KR)(),y=(0,s.EW)((()=>[o.b(),o.m(i.value),o.is("disabled",h.value),o.is("checked",E.value)])),x=(0,s.EW)((()=>[o.e("label"),o.em("label","left"),o.is("active",!E.value)])),k=(0,s.EW)((()=>[o.e("label"),o.em("label","right"),o.is("active",E.value)])),_=(0,s.EW)((()=>({width:(0,b._V)(r.width)})));(0,s.wB)((()=>r.modelValue),(()=>{f.value=!0}));const C=(0,s.EW)((()=>!!f.value&&r.modelValue)),E=(0,s.EW)((()=>C.value===r.activeValue));[r.activeValue,r.inactiveValue].includes(C.value)||(n(d.l4,r.inactiveValue),n(d.YU,r.inactiveValue),n(d.qs,r.inactiveValue)),(0,s.wB)(E,(e=>{var t;m.value.checked=e,r.validateEvent&&(null==(t=null==a?void 0:a.validate)||t.call(a,"change").catch((e=>(0,w.U)(e))))}));const R=()=>{const e=E.value?r.inactiveValue:r.activeValue;n(d.l4,e),n(d.YU,e),n(d.qs,e),(0,s.dY)((()=>{m.value.checked=E.value}))},T=()=>{if(h.value)return;const{beforeChange:e}=r;if(!e)return void R();const t=e(),n=[(0,c.yL)(t),(0,p.Lm)(t)].includes(!0);n||(0,w.$)(Xw,"beforeChange must return type `Promise<boolean>` or `boolean`"),(0,c.yL)(t)?t.then((e=>{e&&R()})).catch((e=>{(0,w.U)(Xw,`some error occurred: ${e}`)})):t&&R()},M=()=>{var e,t;null==(t=null==(e=m.value)?void 0:e.focus)||t.call(e)};return(0,s.sV)((()=>{m.value.checked=E.value})),t({focus:M,checked:E}),(e,t)=>((0,s.uX)(),(0,s.CE)("div",{class:(0,c.C4)((0,l.R1)(y)),onClick:(0,S.D$)(T,["prevent"])},[(0,s.Lk)("input",{id:(0,l.R1)(u),ref_key:"input",ref:m,class:(0,c.C4)((0,l.R1)(o).e("input")),type:"checkbox",role:"switch","aria-checked":(0,l.R1)(E),"aria-disabled":(0,l.R1)(h),"aria-label":e.ariaLabel,name:e.name,"true-value":e.activeValue,"false-value":e.inactiveValue,disabled:(0,l.R1)(h),tabindex:e.tabindex,onChange:R,onKeydown:(0,S.jR)(T,["enter"])},null,42,["id","aria-checked","aria-disabled","aria-label","name","true-value","false-value","disabled","tabindex","onKeydown"]),e.inlinePrompt||!e.inactiveIcon&&!e.inactiveText?(0,s.Q3)("v-if",!0):((0,s.uX)(),(0,s.CE)("span",{key:0,class:(0,c.C4)((0,l.R1)(x))},[e.inactiveIcon?((0,s.uX)(),(0,s.Wv)((0,l.R1)(A.tk),{key:0},{default:(0,s.k6)((()=>[((0,s.uX)(),(0,s.Wv)((0,s.$y)(e.inactiveIcon)))])),_:1})):(0,s.Q3)("v-if",!0),!e.inactiveIcon&&e.inactiveText?((0,s.uX)(),(0,s.CE)("span",{key:1,"aria-hidden":(0,l.R1)(E)},(0,c.v_)(e.inactiveText),9,["aria-hidden"])):(0,s.Q3)("v-if",!0)],2)),(0,s.Lk)("span",{ref_key:"core",ref:g,class:(0,c.C4)((0,l.R1)(o).e("core")),style:(0,c.Tr)((0,l.R1)(_))},[e.inlinePrompt?((0,s.uX)(),(0,s.CE)("div",{key:0,class:(0,c.C4)((0,l.R1)(o).e("inner"))},[e.activeIcon||e.inactiveIcon?((0,s.uX)(),(0,s.Wv)((0,l.R1)(A.tk),{key:0,class:(0,c.C4)((0,l.R1)(o).is("icon"))},{default:(0,s.k6)((()=>[((0,s.uX)(),(0,s.Wv)((0,s.$y)((0,l.R1)(E)?e.activeIcon:e.inactiveIcon)))])),_:1},8,["class"])):e.activeText||e.inactiveText?((0,s.uX)(),(0,s.CE)("span",{key:1,class:(0,c.C4)((0,l.R1)(o).is("text")),"aria-hidden":!(0,l.R1)(E)},(0,c.v_)((0,l.R1)(E)?e.activeText:e.inactiveText),11,["aria-hidden"])):(0,s.Q3)("v-if",!0)],2)):(0,s.Q3)("v-if",!0),(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(o).e("action"))},[e.loading?((0,s.uX)(),(0,s.Wv)((0,l.R1)(A.tk),{key:0,class:(0,c.C4)((0,l.R1)(o).is("loading"))},{default:(0,s.k6)((()=>[(0,s.bF)((0,l.R1)(H.Rhj))])),_:1},8,["class"])):(0,l.R1)(E)?(0,s.RG)(e.$slots,"active-action",{key:1},(()=>[e.activeActionIcon?((0,s.uX)(),(0,s.Wv)((0,l.R1)(A.tk),{key:0},{default:(0,s.k6)((()=>[((0,s.uX)(),(0,s.Wv)((0,s.$y)(e.activeActionIcon)))])),_:1})):(0,s.Q3)("v-if",!0)])):(0,l.R1)(E)?(0,s.Q3)("v-if",!0):(0,s.RG)(e.$slots,"inactive-action",{key:2},(()=>[e.inactiveActionIcon?((0,s.uX)(),(0,s.Wv)((0,l.R1)(A.tk),{key:0},{default:(0,s.k6)((()=>[((0,s.uX)(),(0,s.Wv)((0,s.$y)(e.inactiveActionIcon)))])),_:1})):(0,s.Q3)("v-if",!0)]))],2)],6),e.inlinePrompt||!e.activeIcon&&!e.activeText?(0,s.Q3)("v-if",!0):((0,s.uX)(),(0,s.CE)("span",{key:1,class:(0,c.C4)((0,l.R1)(k))},[e.activeIcon?((0,s.uX)(),(0,s.Wv)((0,l.R1)(A.tk),{key:0},{default:(0,s.k6)((()=>[((0,s.uX)(),(0,s.Wv)((0,s.$y)(e.activeIcon)))])),_:1})):(0,s.Q3)("v-if",!0),!e.activeIcon&&e.activeText?((0,s.uX)(),(0,s.CE)("span",{key:1,"aria-hidden":!(0,l.R1)(E)},(0,c.v_)(e.activeText),9,["aria-hidden"])):(0,s.Q3)("v-if",!0)],2))],10,["onClick"]))}});var Zw=(0,g.A)(Qw,[["__file","switch.vue"]]);const Jw=(0,E.GU)(Zw);function ex(e){return null===e}var tx=ex,nx=n(229),rx=n(3357);function ax(e,t){return(0,eo.A)((0,rx.A)(e,t),1)}var ix=ax;const ox=function(e){var t;return null==(t=e.target)?void 0:t.closest("td")},sx=function(e,t,n,r,a){if(!t&&!r&&(!a||(0,c.cy)(a)&&!a.length))return e;n=(0,c.Kg)(n)?"descending"===n?-1:1:n&&n<0?-1:1;const i=r?null:function(n,r){return a?((0,c.cy)(a)||(a=[a]),a.map((t=>(0,c.Kg)(t)?(0,kg.A)(n,t):t(n,r,e)))):("$key"!==t&&(0,c.Gv)(n)&&"$value"in n&&(n=n.$value),[(0,c.Gv)(n)?(0,kg.A)(n,t):n])},o=function(e,t){if(r)return r(e.value,t.value);for(let n=0,r=e.key.length;n<r;n++){if(e.key[n]<t.key[n])return-1;if(e.key[n]>t.key[n])return 1}return 0};return e.map(((e,t)=>({value:e,index:t,key:i?i(e,t):null}))).sort(((e,t)=>{let r=o(e,t);return r||(r=e.index-t.index),r*+n})).map((e=>e.value))},lx=function(e,t){let n=null;return e.columns.forEach((e=>{e.id===t&&(n=e)})),n},cx=function(e,t){let n=null;for(let r=0;r<e.columns.length;r++){const a=e.columns[r];if(a.columnKey===t){n=a;break}}return n||(0,w.$)("ElTable",`No column matching with column-key: ${t}`),n},ux=function(e,t,n){const r=(t.className||"").match(new RegExp(`${n}-table_[^\\s]+`,"gm"));return r?lx(e,r[0]):null},dx=(e,t)=>{if(!e)throw new Error("Row is required when get row identity");if((0,c.Kg)(t)){if(!t.includes("."))return`${e[t]}`;const n=t.split(".");let r=e;for(const e of n)r=r[e];return`${r}`}if((0,c.Tn)(t))return t.call(null,e)},hx=function(e,t){const n={};return(e||[]).forEach(((e,r)=>{n[dx(e,t)]={row:e,index:r}})),n};function px(e,t){const n={};let r;for(r in e)n[r]=e[r];for(r in t)if((0,c.$3)(t,r)){const e=t[r];(0,p.b0)(e)||(n[r]=e)}return n}function fx(e){return""===e||(0,p.b0)(e)||(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function mx(e){return""===e||(0,p.b0)(e)||(e=fx(e),Number.isNaN(e)&&(e=80)),e}function gx(e){return(0,p.Et)(e)?e:(0,c.Kg)(e)?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function vx(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}function yx(e,t,n,r,a,i){let o=null!=i?i:0,s=!1;const l=e.indexOf(t),u=-1!==l,d=null==a?void 0:a.call(null,t,o),h=n=>{"add"===n?e.push(t):e.splice(l,1),s=!0},f=e=>{let t=0;const n=(null==r?void 0:r.children)&&e[r.children];return n&&(0,c.cy)(n)&&(t+=n.length,n.forEach((e=>{t+=f(e)}))),t};return a&&!d||((0,p.Lm)(n)?n&&!u?h("add"):!n&&u&&h("remove"):h(u?"remove":"add")),!(null==r?void 0:r.checkStrictly)&&(null==r?void 0:r.children)&&(0,c.cy)(t[r.children])&&t[r.children].forEach((t=>{const i=yx(e,t,null!=n?n:!u,r,a,o+1);o+=f(t)+1,i&&(s=i)})),s}function bx(e,t,n="children",r="hasChildren"){const a=e=>!((0,c.cy)(e)&&e.length);function i(e,o,s){t(e,o,s),o.forEach((e=>{if(e[r])return void t(e,null,s+1);const o=e[n];a(o)||i(e,o,s+1)}))}e.forEach((e=>{if(e[r])return void t(e,null,0);const o=e[n];a(o)||i(e,o,0)}))}const wx=(e,t,n,r)=>{const a={strategy:"fixed",...e.popperOptions},i=(0,c.Tn)(r.tooltipFormatter)?r.tooltipFormatter({row:n,column:r,cellValue:(0,M.GT)(n,r.property).value}):void 0;return(0,s.vv)(i)?{slotContent:i,content:null,...e,popperOptions:a}:{slotContent:null,content:null!=i?i:t,...e,popperOptions:a}};let xx=null;function kx(e,t,n,r,a,i){const o=wx(e,t,n,r),l={...o,slotContent:void 0};if((null==xx?void 0:xx.trigger)===a){const e=xx.vm.component;return(0,nx.A)(e.props,l),void(o.slotContent&&(e.slots.content=()=>[o.slotContent]))}null==xx||xx();const c=null==i?void 0:i.refs.tableWrapper,u=null==c?void 0:c.dataset.prefix,d=(0,s.bF)(Jr,{virtualTriggering:!0,virtualRef:a,appendTo:c,placement:"top",transition:"none",offset:0,hideAfter:0,...l},o.slotContent?{content:()=>o.slotContent}:void 0);d.appContext={...i.appContext,...i};const h=document.createElement("div");(0,S.XX)(d,h),d.component.exposed.onOpen();const p=null==c?void 0:c.querySelector(`.${u}-scrollbar__wrap`);xx=()=>{(0,S.XX)(null,h),null==p||p.removeEventListener("scroll",xx),xx=null},xx.trigger=a,xx.vm=d,null==p||p.addEventListener("scroll",xx)}function _x(e){return e.children?ix(e.children,_x):[e]}function Cx(e,t){return e+t.colSpan}const Ex=(e,t,n,r)=>{let a=0,i=e;const o=n.states.columns.value;if(r){const t=_x(r[e]),n=o.slice(0,o.indexOf(t[0]));a=n.reduce(Cx,0),i=a+t.reduce(Cx,0)-1}else a=e;let s;switch(t){case"left":i<n.states.fixedLeafColumnsLength.value&&(s="left");break;case"right":a>=o.length-n.states.rightFixedLeafColumnsLength.value&&(s="right");break;default:i<n.states.fixedLeafColumnsLength.value?s="left":a>=o.length-n.states.rightFixedLeafColumnsLength.value&&(s="right")}return s?{direction:s,start:a,after:i}:{}},Rx=(e,t,n,r,a,i=0)=>{const o=[],{direction:s,start:l,after:c}=Ex(t,n,r,a);if(s){const t="left"===s;o.push(`${e}-fixed-column--${s}`),t&&c+i===r.states.fixedLeafColumnsLength.value-1?o.push("is-last-column"):t||l-i!==r.states.columns.value.length-r.states.rightFixedLeafColumnsLength.value||o.push("is-first-column")}return o};function Sx(e,t){return e+(tx(t.realWidth)||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const Ax=(e,t,n,r)=>{const{direction:a,start:i=0,after:o=0}=Ex(e,t,n,r);if(!a)return;const s={},l="left"===a,c=n.states.columns.value;return l?s.left=c.slice(0,i).reduce(Sx,0):s.right=c.slice(o+1).reverse().reduce(Sx,0),s},Tx=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function Mx(e){const t=(0,s.nI)(),n=(0,l.KR)(!1),r=(0,l.KR)([]),a=()=>{const t=e.data.value||[],a=e.rowKey.value;if(n.value)r.value=t.slice();else if(a){const e=hx(r.value,a);r.value=t.reduce(((t,n)=>{const r=dx(n,a),i=e[r];return i&&t.push(n),t}),[])}else r.value=[]},i=(e,n)=>{const a=yx(r.value,e,n);a&&t.emit("expand-change",e,r.value.slice())},o=n=>{t.store.assertRowKey();const a=e.data.value||[],i=e.rowKey.value,o=hx(a,i);r.value=n.reduce(((e,t)=>{const n=o[t];return n&&e.push(n.row),e}),[])},c=t=>{const n=e.rowKey.value;if(n){const e=hx(r.value,n);return!!e[dx(t,n)]}return r.value.includes(t)};return{updateExpandRows:a,toggleRowExpansion:i,setExpandRowKeys:o,isRowExpanded:c,states:{expandRows:r,defaultExpandAll:n}}}function Lx(e){const t=(0,s.nI)(),n=(0,l.KR)(null),r=(0,l.KR)(null),a=e=>{t.store.assertRowKey(),n.value=e,o(e)},i=()=>{n.value=null},o=n=>{const{data:a,rowKey:i}=e;let o=null;i.value&&(o=((0,l.R1)(a)||[]).find((e=>dx(e,i.value)===n))),r.value=o,t.emit("current-change",r.value,null)},c=e=>{const n=r.value;if(e&&e!==n)return r.value=e,void t.emit("current-change",r.value,n);!e&&n&&(r.value=null,t.emit("current-change",null,n))},u=()=>{const a=e.rowKey.value,s=e.data.value||[],l=r.value;if(!s.includes(l)&&l){if(a){const e=dx(l,a);o(e)}else r.value=null;tx(r.value)&&t.emit("current-change",null,l)}else n.value&&(o(n.value),i())};return{setCurrentRowKey:a,restoreCurrentRowKey:i,setCurrentRowByKey:o,updateCurrentRow:c,updateCurrentRowData:u,states:{_currentRowKey:n,currentRow:r}}}function Ox(e){const t=(0,l.KR)([]),n=(0,l.KR)({}),r=(0,l.KR)(16),a=(0,l.KR)(!1),i=(0,l.KR)({}),o=(0,l.KR)("hasChildren"),u=(0,l.KR)("children"),d=(0,l.KR)(!1),h=(0,s.nI)(),f=(0,s.EW)((()=>{if(!e.rowKey.value)return{};const t=e.data.value||[];return g(t)})),m=(0,s.EW)((()=>{const t=e.rowKey.value,n=Object.keys(i.value),r={};return n.length?(n.forEach((e=>{if(i.value[e].length){const n={children:[]};i.value[e].forEach((e=>{const a=dx(e,t);n.children.push(a),e[o.value]&&!r[a]&&(r[a]={children:[]})})),r[e]=n}})),r):r})),g=t=>{const n=e.rowKey.value,r={};return bx(t,((e,t,i)=>{const o=dx(e,n);(0,c.cy)(t)?r[o]={children:t.map((e=>dx(e,n))),level:i}:a.value&&(r[o]={children:[],lazy:!0,level:i})}),u.value,o.value),r},v=(e=!1,r=(e=>null==(e=h.store)?void 0:e.states.defaultExpandAll.value)())=>{var i;const o=f.value,s=m.value,c=Object.keys(o),u={};if(c.length){const i=(0,l.R1)(n),d=[],h=(n,a)=>{if(e)return t.value?r||t.value.includes(a):!(!r&&!(null==n?void 0:n.expanded));{const e=r||t.value&&t.value.includes(a);return!(!(null==n?void 0:n.expanded)&&!e)}};c.forEach((e=>{const t=i[e],n={...o[e]};if(n.expanded=h(t,e),n.lazy){const{loaded:r=!1,loading:a=!1}=t||{};n.loaded=!!r,n.loading=!!a,d.push(e)}u[e]=n}));const p=Object.keys(s);a.value&&p.length&&d.length&&p.forEach((e=>{const t=i[e],n=s[e].children;if(d.includes(e)){if(0!==u[e].children.length)throw new Error("[ElTable]children must be an empty array.");u[e].children=n}else{const{loaded:r=!1,loading:a=!1}=t||{};u[e]={lazy:!0,loaded:!!r,loading:!!a,expanded:h(t,e),children:n,level:""}}}))}n.value=u,null==(i=h.store)||i.updateTableScrollY()};(0,s.wB)((()=>t.value),(()=>{v(!0)})),(0,s.wB)((()=>f.value),(()=>{v()})),(0,s.wB)((()=>m.value),(()=>{v()}));const y=e=>{t.value=e,v()},b=e=>a.value&&e&&"loaded"in e&&!e.loaded,w=(t,r)=>{h.store.assertRowKey();const a=e.rowKey.value,i=dx(t,a),o=i&&n.value[i];if(i&&o&&"expanded"in o){const e=o.expanded;r=(0,p.b0)(r)?!o.expanded:r,n.value[i].expanded=r,e!==r&&h.emit("expand-change",t,r),b(o)&&k(t,i,o),h.store.updateTableScrollY()}},x=t=>{h.store.assertRowKey();const r=e.rowKey.value,a=dx(t,r),i=n.value[a];b(i)?k(t,a,i):w(t,void 0)},k=(e,t,r)=>{const{load:a}=h.props;a&&!n.value[t].loaded&&(n.value[t].loading=!0,a(e,r,(r=>{if(!(0,c.cy)(r))throw new TypeError("[ElTable] data must be an array");n.value[t].loading=!1,n.value[t].loaded=!0,n.value[t].expanded=!0,r.length&&(i.value[t]=r),h.emit("expand-change",e,!0)})))},_=(e,t)=>{const{lazy:n,rowKey:r}=h.props;if(n){if(!r)throw new Error("[Table] rowKey is required in updateKeyChild");i.value[e]&&(i.value[e]=t)}};return{loadData:k,loadOrToggle:x,toggleTreeExpansion:w,updateTreeExpandKeys:y,updateTreeData:v,updateKeyChildren:_,normalize:g,states:{expandRowKeys:t,treeData:n,indent:r,lazy:a,lazyTreeNodeMap:i,lazyColumnIdentifier:o,childrenColumnName:u,checkStrictly:d}}}const Ix=(e,t)=>{const n=t.sortingColumn;return!n||(0,c.Kg)(n.sortable)?e:sx(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},Nx=e=>{const t=[];return e.forEach((e=>{e.children&&e.children.length>0?t.push.apply(t,Nx(e.children)):t.push(e)})),t};function Bx(){var e;const t=(0,s.nI)(),{size:n}=(0,l.QW)(null==(e=t.proxy)?void 0:e.$props),r=(0,l.KR)(null),a=(0,l.KR)([]),i=(0,l.KR)([]),o=(0,l.KR)(!1),u=(0,l.KR)([]),d=(0,l.KR)([]),h=(0,l.KR)([]),p=(0,l.KR)([]),f=(0,l.KR)([]),m=(0,l.KR)([]),g=(0,l.KR)([]),v=(0,l.KR)([]),y=[],b=(0,l.KR)(0),w=(0,l.KR)(0),x=(0,l.KR)(0),k=(0,l.KR)(!1),_=(0,l.KR)([]),C=(0,l.KR)(!1),E=(0,l.KR)(!1),R=(0,l.KR)(null),S=(0,l.KR)({}),A=(0,l.KR)(null),T=(0,l.KR)(null),M=(0,l.KR)(null),L=(0,l.KR)(null),O=(0,l.KR)(null),I=(0,s.EW)((()=>r.value?hx(_.value,r.value):void 0));(0,s.wB)(a,(()=>{var e;if(t.state){F(!1);const n="auto"===t.props.tableLayout;n&&(null==(e=t.refs.tableHeaderRef)||e.updateFixedColumnStyle())}}),{deep:!0});const N=()=>{if(!r.value)throw new Error("[ElTable] prop row-key is required")},B=e=>{var t;null==(t=e.children)||t.forEach((t=>{t.fixed=e.fixed,B(t)}))},D=()=>{var e,t;let n;if(u.value.forEach((e=>{B(e)})),p.value=u.value.filter((e=>"selection"!==e.type&&[!0,"left"].includes(e.fixed))),"selection"===(null==(t=null==(e=u.value)?void 0:e[0])?void 0:t.type)){const e=u.value[0];n=[!0,"left"].includes(e.fixed)||p.value.length&&"right"!==e.fixed,n&&p.value.unshift(e)}f.value=u.value.filter((e=>"right"===e.fixed));const r=u.value.filter((e=>(!n||"selection"!==e.type)&&!e.fixed));d.value=[].concat(p.value).concat(r).concat(f.value);const a=Nx(r),i=Nx(p.value),s=Nx(f.value);b.value=a.length,w.value=i.length,x.value=s.length,h.value=[].concat(i).concat(a).concat(s),o.value=p.value.length>0||f.value.length>0},F=(e,n=!1)=>{e&&D(),n?t.state.doLayout():t.state.debouncedUpdateLayout()},$=e=>I.value?!!I.value[dx(e,r.value)]:_.value.includes(e),P=()=>{k.value=!1;const e=_.value;_.value=[],e.length&&t.emit("selection-change",[])},z=()=>{let e;if(r.value){e=[];const t=hx(a.value,r.value);for(const n in I.value)(0,c.$3)(I.value,n)&&!t[n]&&e.push(I.value[n].row)}else e=_.value.filter((e=>!a.value.includes(e)));if(e.length){const n=_.value.filter((t=>!e.includes(t)));_.value=n,t.emit("selection-change",n.slice())}},W=()=>(_.value||[]).slice(),j=(e,n,r=!0,i=!1)=>{var o,s,l,c;const u={children:null==(s=null==(o=null==t?void 0:t.store)?void 0:o.states)?void 0:s.childrenColumnName.value,checkStrictly:null==(c=null==(l=null==t?void 0:t.store)?void 0:l.states)?void 0:c.checkStrictly.value},d=yx(_.value,e,n,u,i?void 0:R.value,a.value.indexOf(e));if(d){const n=(_.value||[]).slice();r&&t.emit("select",n,e),t.emit("selection-change",n)}},V=()=>{var e,n;const r=E.value?!k.value:!(k.value||_.value.length);k.value=r;let i=!1,o=0;const s=null==(n=null==(e=null==t?void 0:t.store)?void 0:e.states)?void 0:n.rowKey.value,{childrenColumnName:l}=t.store.states,c={children:l.value,checkStrictly:!1};a.value.forEach(((e,t)=>{const n=t+o;yx(_.value,e,r,c,R.value,n)&&(i=!0),o+=H(dx(e,s))})),i&&t.emit("selection-change",_.value?_.value.slice():[]),t.emit("select-all",(_.value||[]).slice())},U=()=>{a.value.forEach((e=>{const t=dx(e,r.value),n=I.value[t];n&&(_.value[n.index]=e)}))},K=()=>{var e;if(0===(null==(e=a.value)?void 0:e.length))return void(k.value=!1);const{childrenColumnName:n}=t.store.states;let r=0,i=0;const o=e=>{var t;for(const a of e){const e=R.value&&R.value.call(null,a,r);if($(a))i++;else if(!R.value||e)return!1;if(r++,(null==(t=a[n.value])?void 0:t.length)&&!o(a[n.value]))return!1}return!0},s=o(a.value||[]);k.value=0!==i&&s},H=e=>{var n;if(!t||!t.store)return 0;const{treeData:r}=t.store.states;let a=0;const i=null==(n=r.value[e])?void 0:n.children;return i&&(a+=i.length,i.forEach((e=>{a+=H(e)}))),a},q=(e,t)=>{(0,c.cy)(e)||(e=[e]);const n={};return e.forEach((e=>{S.value[e.id]=t,n[e.columnKey||e.id]=t})),n},G=(e,t,n)=>{T.value&&T.value!==e&&(T.value.order=null),T.value=e,M.value=t,L.value=n},X=()=>{let e=(0,l.R1)(i);Object.keys(S.value).forEach((t=>{const n=S.value[t];if(!n||0===n.length)return;const r=lx({columns:h.value},t);r&&r.filterMethod&&(e=e.filter((e=>n.some((t=>r.filterMethod.call(null,t,e,r))))))})),A.value=e},Y=()=>{a.value=Ix(A.value,{sortingColumn:T.value,sortProp:M.value,sortOrder:L.value})},Q=(e=void 0)=>{e&&e.filter||X(),Y()},Z=e=>{const{tableHeaderRef:n}=t.refs;if(!n)return;const r=Object.assign({},n.filterPanels),a=Object.keys(r);if(a.length)if((0,c.Kg)(e)&&(e=[e]),(0,c.cy)(e)){const n=e.map((e=>cx({columns:h.value},e)));a.forEach((e=>{const t=n.find((t=>t.id===e));t&&(t.filteredValue=[])})),t.store.commit("filterChange",{column:n,values:[],silent:!0,multi:!0})}else a.forEach((e=>{const t=h.value.find((t=>t.id===e));t&&(t.filteredValue=[])})),S.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},J=()=>{T.value&&(G(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:ee,toggleRowExpansion:te,updateExpandRows:ne,states:re,isRowExpanded:ae}=Mx({data:a,rowKey:r}),{updateTreeExpandKeys:ie,toggleTreeExpansion:oe,updateTreeData:se,updateKeyChildren:le,loadOrToggle:ce,states:ue}=Ox({data:a,rowKey:r}),{updateCurrentRowData:de,updateCurrentRow:he,setCurrentRowKey:pe,states:fe}=Lx({data:a,rowKey:r}),me=e=>{ee(e),ie(e)},ge=(e,t)=>{const n=h.value.some((({type:e})=>"expand"===e));n?te(e,t):oe(e,t)};return{assertRowKey:N,updateColumns:D,scheduleLayout:F,isSelected:$,clearSelection:P,cleanSelection:z,getSelectionRows:W,toggleRowSelection:j,_toggleAllSelection:V,toggleAllSelection:null,updateSelectionByRowKey:U,updateAllSelected:K,updateFilters:q,updateCurrentRow:he,updateSort:G,execFilter:X,execSort:Y,execQuery:Q,clearFilter:Z,clearSort:J,toggleRowExpansion:te,setExpandRowKeysAdapter:me,setCurrentRowKey:pe,toggleRowExpansionAdapter:ge,isRowExpanded:ae,updateExpandRows:ne,updateCurrentRowData:de,loadOrToggle:ce,updateTreeData:se,updateKeyChildren:le,states:{tableSize:n,rowKey:r,data:a,_data:i,isComplex:o,_columns:u,originColumns:d,columns:h,fixedColumns:p,rightFixedColumns:f,leafColumns:m,fixedLeafColumns:g,rightFixedLeafColumns:v,updateOrderFns:y,leafColumnsLength:b,fixedLeafColumnsLength:w,rightFixedLeafColumnsLength:x,isAllSelected:k,selection:_,reserveSelection:C,selectOnIndeterminate:E,selectable:R,filters:S,filteredData:A,sortingColumn:T,sortProp:M,sortOrder:L,hoverRow:O,...re,...ue,...fe}}}function Dx(e,t){return e.map((e=>{var n;return e.id===t.id?t:((null==(n=e.children)?void 0:n.length)&&(e.children=Dx(e.children,t)),e)}))}function Fx(e){e.forEach((e=>{var t,n;e.no=null==(t=e.getColumnIndex)?void 0:t.call(e),(null==(n=e.children)?void 0:n.length)&&Fx(e.children)})),e.sort(((e,t)=>e.no-t.no))}function $x(){const e=(0,s.nI)(),t=Bx(),n=(0,v.DU)("table"),r={setData(t,n){const r=(0,l.R1)(t._data)!==n;t.data.value=n,t._data.value=n,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),(0,l.R1)(t.reserveSelection)?(e.store.assertRowKey(),e.store.updateSelectionByRowKey()):r?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(t,n,r,a){const i=(0,l.R1)(t._columns);let o=[];r?(r&&!r.children&&(r.children=[]),r.children.push(n),o=Dx(i,r)):(i.push(n),o=i),Fx(o),t._columns.value=o,t.updateOrderFns.push(a),"selection"===n.type&&(t.selectable.value=n.selectable,t.reserveSelection.value=n.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder(t,n){var r;const a=null==(r=n.getColumnIndex)?void 0:r.call(n);a!==n.no&&(Fx(t._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(t,n,r,a){const i=(0,l.R1)(t._columns)||[];if(r)r.children.splice(r.children.findIndex((e=>e.id===n.id)),1),(0,s.dY)((()=>{var e;0===(null==(e=r.children)?void 0:e.length)&&delete r.children})),t._columns.value=Dx(i,r);else{const e=i.indexOf(n);e>-1&&(i.splice(e,1),t._columns.value=i)}const o=t.updateOrderFns.indexOf(a);o>-1&&t.updateOrderFns.splice(o,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(t,n){const{prop:r,order:a,init:i}=n;if(r){const n=(0,l.R1)(t.columns).find((e=>e.property===r));n&&(n.order=a,e.store.updateSort(n,r,a),e.store.commit("changeSortCondition",{init:i}))}},changeSortCondition(t,n){const{sortingColumn:r,sortProp:a,sortOrder:i}=t,o=(0,l.R1)(r),s=(0,l.R1)(a),c=(0,l.R1)(i);tx(c)&&(t.sortingColumn.value=null,t.sortProp.value=null);const u={filter:!0};e.store.execQuery(u),n&&(n.silent||n.init)||e.emit("sort-change",{column:o,prop:s,order:c}),e.store.updateTableScrollY()},filterChange(t,n){const{column:r,values:a,silent:i}=n,o=e.store.updateFilters(r,a);e.store.execQuery(),i||e.emit("filter-change",o),e.store.updateTableScrollY()},toggleAllSelection(){e.store.toggleAllSelection()},rowSelectedChanged(t,n){e.store.toggleRowSelection(n),e.store.updateAllSelected()},setHoverRow(e,t){e.hoverRow.value=t},setCurrentRow(t,n){e.store.updateCurrentRow(n)}},a=function(t,...n){const r=e.store.mutations;if(!r[t])throw new Error(`Action not found: ${t}`);r[t].apply(e,[e.store.states].concat(n))},i=function(){(0,s.dY)((()=>e.layout.updateScrollY.apply(e.layout)))};return{ns:n,...t,mutations:r,commit:a,updateTableScrollY:i}}const Px={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data",["treeProps.hasChildren"]:{key:"lazyColumnIdentifier",default:"hasChildren"},["treeProps.children"]:{key:"childrenColumnName",default:"children"},["treeProps.checkStrictly"]:{key:"checkStrictly",default:!1}};function zx(e,t){if(!e)throw new Error("Table is required.");const n=$x();return n.toggleAllSelection=K(n._toggleAllSelection,10),Object.keys(Px).forEach((e=>{jx(Vx(t,e),e,n)})),Wx(n,t),n}function Wx(e,t){Object.keys(Px).forEach((n=>{(0,s.wB)((()=>Vx(t,n)),(t=>{jx(t,n,e)}))}))}function jx(e,t,n){let r=e,a=Px[t];(0,c.Gv)(Px[t])&&(a=a.key,r=r||Px[t].default),n.states[a].value=r}function Vx(e,t){if(t.includes(".")){const n=t.split(".");let r=e;return n.forEach((e=>{r=r[e]})),r}return e[t]}class Ux{constructor(e){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=(0,l.KR)(null),this.scrollX=(0,l.KR)(!1),this.scrollY=(0,l.KR)(!1),this.bodyWidth=(0,l.KR)(null),this.fixedWidth=(0,l.KR)(null),this.rightFixedWidth=(0,l.KR)(null),this.gutterWidth=0;for(const t in e)(0,c.$3)(e,t)&&((0,l.i9)(this[t])?this[t].value=e[t]:this[t]=e[t]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){const e=this.height.value;if(tx(e))return!1;const t=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(null==t?void 0:t.wrapRef)){let e=!0;const n=this.scrollY.value;return e=t.wrapRef.scrollHeight>t.wrapRef.clientHeight,this.scrollY.value=e,n!==e}return!1}setHeight(e,t="height"){if(!Q.oc)return;const n=this.table.vnode.el;if(e=gx(e),this.height.value=Number(e),!n&&(e||0===e))return(0,s.dY)((()=>this.setHeight(e,t)));(0,p.Et)(e)?(n.style[t]=`${e}px`,this.updateElsHeight()):(0,c.Kg)(e)&&(n.style[t]=e,this.updateElsHeight())}setMaxHeight(e){this.setHeight(e,"max-height")}getFlattenColumns(){const e=[],t=this.table.store.states.columns.value;return t.forEach((t=>{t.isColumnGroup?e.push.apply(e,t.columns):e.push(t)})),e}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(e){if(!e)return!0;let t=e;while("DIV"!==t.tagName){if("none"===getComputedStyle(t).display)return!0;t=t.parentElement}return!1}updateColumnsWidth(){if(!Q.oc)return;const e=this.fit,t=this.table.vnode.el.clientWidth;let n=0;const r=this.getFlattenColumns(),a=r.filter((e=>!(0,p.Et)(e.width)));if(r.forEach((e=>{(0,p.Et)(e.width)&&e.realWidth&&(e.realWidth=null)})),a.length>0&&e){if(r.forEach((e=>{n+=Number(e.width||e.minWidth||80)})),n<=t){this.scrollX.value=!1;const e=t-n;if(1===a.length)a[0].realWidth=Number(a[0].minWidth||80)+e;else{const t=a.reduce(((e,t)=>e+Number(t.minWidth||80)),0),n=e/t;let r=0;a.forEach(((e,t)=>{if(0===t)return;const a=Math.floor(Number(e.minWidth||80)*n);r+=a,e.realWidth=Number(e.minWidth||80)+a})),a[0].realWidth=Number(a[0].minWidth||80)+e-r}}else this.scrollX.value=!0,a.forEach((e=>{e.realWidth=Number(e.minWidth)}));this.bodyWidth.value=Math.max(n,t),this.table.state.resizeState.value.width=this.bodyWidth.value}else r.forEach((e=>{e.width||e.minWidth?e.realWidth=Number(e.width||e.minWidth):e.realWidth=80,n+=e.realWidth})),this.scrollX.value=n>t,this.bodyWidth.value=n;const i=this.store.states.fixedColumns.value;if(i.length>0){let e=0;i.forEach((t=>{e+=Number(t.realWidth||t.width)})),this.fixedWidth.value=e}const o=this.store.states.rightFixedColumns.value;if(o.length>0){let e=0;o.forEach((t=>{e+=Number(t.realWidth||t.width)})),this.rightFixedWidth.value=e}this.notifyObservers("columns")}addObserver(e){this.observers.push(e)}removeObserver(e){const t=this.observers.indexOf(e);-1!==t&&this.observers.splice(t,1)}notifyObservers(e){const t=this.observers;t.forEach((t=>{var n,r;switch(e){case"columns":null==(n=t.state)||n.onColumnsChange(this);break;case"scrollable":null==(r=t.state)||r.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${e}.`)}}))}}const{CheckboxGroup:Kx}=Ao,Hx=(0,s.pM)({name:"ElTableFilterPanel",components:{ElCheckbox:Ao,ElCheckboxGroup:Kx,ElScrollbar:pe,ElTooltip:Jr,ElIcon:A.tk,ArrowDown:H.yd$,ArrowUp:H.DoI},directives:{ClickOutside:Bs},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function},appendTo:{type:String}},setup(e){const t=(0,s.nI)(),{t:n}=(0,La.Ym)(),r=(0,v.DU)("table-filter"),a=null==t?void 0:t.parent;a.filterPanels.value[e.column.id]||(a.filterPanels.value[e.column.id]=t);const i=(0,l.KR)(!1),o=(0,l.KR)(null),c=(0,s.EW)((()=>e.column&&e.column.filters)),u=(0,s.EW)((()=>e.column.filterClassName?`${r.b()} ${e.column.filterClassName}`:r.b())),d=(0,s.EW)({get:()=>{var t;return((null==(t=e.column)?void 0:t.filteredValue)||[])[0]},set:e=>{h.value&&((0,p.Xj)(e)?h.value.splice(0,1):h.value.splice(0,1,e))}}),h=(0,s.EW)({get(){return e.column&&e.column.filteredValue||[]},set(t){e.column&&e.upDataColumn("filteredValue",t)}}),f=(0,s.EW)((()=>!e.column||e.column.filterMultiple)),m=e=>e.value===d.value,g=()=>{i.value=!1},y=e=>{e.stopPropagation(),i.value=!i.value},b=()=>{i.value=!1},w=()=>{_(h.value),g()},x=()=>{h.value=[],_(h.value),g()},k=e=>{d.value=e,(0,p.Xj)(e)?_([]):_(h.value),g()},_=t=>{e.store.commit("filterChange",{column:e.column,values:t}),e.store.updateAllSelected()};(0,s.wB)(i,(t=>{e.column&&e.upDataColumn("filterOpened",t)}),{immediate:!0});const C=(0,s.EW)((()=>{var e,t;return null==(t=null==(e=o.value)?void 0:e.popperRef)?void 0:t.contentRef}));return{tooltipVisible:i,multiple:f,filterClassName:u,filteredValue:h,filterValue:d,filters:c,handleConfirm:w,handleReset:x,handleSelect:k,isPropAbsent:p.Xj,isActive:m,t:n,ns:r,showFilterPanel:y,hideFilterPanel:b,popperPaneRef:C,tooltip:o}}});function qx(e,t,n,r,a,i){const o=(0,s.g2)("el-checkbox"),l=(0,s.g2)("el-checkbox-group"),u=(0,s.g2)("el-scrollbar"),d=(0,s.g2)("arrow-up"),h=(0,s.g2)("arrow-down"),p=(0,s.g2)("el-icon"),f=(0,s.g2)("el-tooltip"),m=(0,s.gN)("click-outside");return(0,s.uX)(),(0,s.Wv)(f,{ref:"tooltip",visible:e.tooltipVisible,offset:0,placement:e.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":e.filterClassName,persistent:"","append-to":e.appendTo},{content:(0,s.k6)((()=>[e.multiple?((0,s.uX)(),(0,s.CE)("div",{key:0},[(0,s.Lk)("div",{class:(0,c.C4)(e.ns.e("content"))},[(0,s.bF)(u,{"wrap-class":e.ns.e("wrap")},{default:(0,s.k6)((()=>[(0,s.bF)(l,{modelValue:e.filteredValue,"onUpdate:modelValue":t=>e.filteredValue=t,class:(0,c.C4)(e.ns.e("checkbox-group"))},{default:(0,s.k6)((()=>[((0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)(e.filters,(e=>((0,s.uX)(),(0,s.Wv)(o,{key:e.value,value:e.value},{default:(0,s.k6)((()=>[(0,s.eW)((0,c.v_)(e.text),1)])),_:2},1032,["value"])))),128))])),_:1},8,["modelValue","onUpdate:modelValue","class"])])),_:1},8,["wrap-class"])],2),(0,s.Lk)("div",{class:(0,c.C4)(e.ns.e("bottom"))},[(0,s.Lk)("button",{class:(0,c.C4)({[e.ns.is("disabled")]:0===e.filteredValue.length}),disabled:0===e.filteredValue.length,type:"button",onClick:e.handleConfirm},(0,c.v_)(e.t("el.table.confirmFilter")),11,["disabled","onClick"]),(0,s.Lk)("button",{type:"button",onClick:e.handleReset},(0,c.v_)(e.t("el.table.resetFilter")),9,["onClick"])],2)])):((0,s.uX)(),(0,s.CE)("ul",{key:1,class:(0,c.C4)(e.ns.e("list"))},[(0,s.Lk)("li",{class:(0,c.C4)([e.ns.e("list-item"),{[e.ns.is("active")]:e.isPropAbsent(e.filterValue)}]),onClick:t=>e.handleSelect(null)},(0,c.v_)(e.t("el.table.clearFilter")),11,["onClick"]),((0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)(e.filters,(t=>((0,s.uX)(),(0,s.CE)("li",{key:t.value,class:(0,c.C4)([e.ns.e("list-item"),e.ns.is("active",e.isActive(t))]),label:t.value,onClick:n=>e.handleSelect(t.value)},(0,c.v_)(t.text),11,["label","onClick"])))),128))],2))])),default:(0,s.k6)((()=>[(0,s.bo)(((0,s.uX)(),(0,s.CE)("span",{class:(0,c.C4)([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:e.showFilterPanel},[(0,s.bF)(p,null,{default:(0,s.k6)((()=>[(0,s.RG)(e.$slots,"filter-icon",{},(()=>[e.column.filterOpened?((0,s.uX)(),(0,s.Wv)(d,{key:0})):((0,s.uX)(),(0,s.Wv)(h,{key:1}))]))])),_:3})],10,["onClick"])),[[m,e.hideFilterPanel,e.popperPaneRef]])])),_:3},8,["visible","placement","popper-class","append-to"])}var Gx=(0,g.A)(Hx,[["render",qx],["__file","filter-panel.vue"]]);function Xx(e){const t=(0,s.nI)();(0,s.KC)((()=>{n.value.addObserver(t)})),(0,s.sV)((()=>{r(n.value),a(n.value)})),(0,s.$u)((()=>{r(n.value),a(n.value)})),(0,s.hi)((()=>{n.value.removeObserver(t)}));const n=(0,s.EW)((()=>{const t=e.layout;if(!t)throw new Error("Can not find table layout.");return t})),r=t=>{var n;const r=(null==(n=e.vnode.el)?void 0:n.querySelectorAll("colgroup > col"))||[];if(!r.length)return;const a=t.getFlattenColumns(),i={};a.forEach((e=>{i[e.id]=e}));for(let e=0,o=r.length;e<o;e++){const t=r[e],n=t.getAttribute("name"),a=i[n];a&&t.setAttribute("width",a.realWidth||a.width)}},a=t=>{var n,r;const a=(null==(n=e.vnode.el)?void 0:n.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let e=0,o=a.length;e<o;e++){const n=a[e];n.setAttribute("width",t.scrollY.value?t.gutterWidth:"0")}const i=(null==(r=e.vnode.el)?void 0:r.querySelectorAll("th.gutter"))||[];for(let e=0,o=i.length;e<o;e++){const n=i[e];n.style.width=t.scrollY.value?`${t.gutterWidth}px`:"0",n.style.display=t.scrollY.value?"":"none"}};return{tableLayout:n.value,onColumnsChange:r,onScrollableChange:a}}const Yx=Symbol("ElTable");function Qx(e,t){const n=(0,s.nI)(),r=(0,s.WQ)(Yx),a=e=>{e.stopPropagation()},i=(e,t)=>{!t.filters&&t.sortable?v(e,t,!1):t.filterable&&!t.sortable&&a(e),null==r||r.emit("header-click",t,e)},o=(e,t)=>{null==r||r.emit("header-contextmenu",t,e)},c=(0,l.KR)(null),u=(0,l.KR)(!1),d=(0,l.KR)({}),h=(a,i)=>{if(Q.oc&&!(i.children&&i.children.length>0)&&c.value&&e.border){u.value=!0;const o=r;t("set-drag-visible",!0);const s=null==o?void 0:o.vnode.el,l=s.getBoundingClientRect().left,h=n.vnode.el.querySelector(`th.${i.id}`),p=h.getBoundingClientRect(),f=p.left-l+30;(0,b.iQ)(h,"noclick"),d.value={startMouseLeft:a.clientX,startLeft:p.right-l,startColumnLeft:p.left-l,tableLeft:l};const m=null==o?void 0:o.refs.resizeProxy;m.style.left=`${d.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const g=e=>{const t=e.clientX-d.value.startMouseLeft,n=d.value.startLeft+t;m.style.left=`${Math.max(f,n)}px`},v=()=>{if(u.value){const{startColumnLeft:n,startLeft:r}=d.value,s=Number.parseInt(m.style.left,10),l=s-n;i.width=i.realWidth=l,null==o||o.emit("header-dragend",i.width,r-n,i,a),requestAnimationFrame((()=>{e.store.scheduleLayout(!1,!0)})),document.body.style.cursor="",u.value=!1,c.value=null,d.value={},t("set-drag-visible",!1)}document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",v),document.onselectstart=null,document.ondragstart=null,setTimeout((()=>{(0,b.vy)(h,"noclick")}),0)};document.addEventListener("mousemove",g),document.addEventListener("mouseup",v)}},f=(t,n)=>{var r;if(n.children&&n.children.length>0)return;const a=t.target;if(!(0,p.vq)(a))return;const i=null==a?void 0:a.closest("th");if(n&&n.resizable&&i&&!u.value&&e.border){const a=i.getBoundingClientRect(),o=document.body.style,s=(null==(r=i.parentNode)?void 0:r.lastElementChild)===i,l=e.allowDragLastColumn||!s;a.width>12&&a.right-t.pageX<8&&l?(o.cursor="col-resize",(0,b.nB)(i,"is-sortable")&&(i.style.cursor="col-resize"),c.value=n):u.value||(o.cursor="",(0,b.nB)(i,"is-sortable")&&(i.style.cursor="pointer"),c.value=null)}},m=()=>{Q.oc&&(document.body.style.cursor="")},g=({order:e,sortOrders:t})=>{if(""===e)return t[0];const n=t.indexOf(e||null);return t[n>t.length-2?0:n+1]},v=(t,n,a)=>{var i;t.stopPropagation();const o=n.order===a?null:a||g(n),s=null==(i=t.target)?void 0:i.closest("th");if(s&&(0,b.nB)(s,"noclick"))return void(0,b.vy)(s,"noclick");if(!n.sortable)return;const l=t.currentTarget;if(["ascending","descending"].some((e=>(0,b.nB)(l,e)&&!n.sortOrders.includes(e))))return;const c=e.store.states;let u,d=c.sortProp.value;const h=c.sortingColumn.value;(h!==n||h===n&&tx(h.order))&&(h&&(h.order=null),c.sortingColumn.value=n,d=n.property),u=n.order=o||null,c.sortProp.value=d,c.sortOrder.value=u,null==r||r.store.commit("changeSortCondition")};return{handleHeaderClick:i,handleHeaderContextMenu:o,handleMouseDown:h,handleMouseMove:f,handleMouseOut:m,handleSortClick:v,handleFilterClick:a}}function Zx(e){const t=(0,s.WQ)(Yx),n=(0,v.DU)("table"),r=e=>{const n=null==t?void 0:t.props.headerRowStyle;return(0,c.Tn)(n)?n.call(null,{rowIndex:e}):n},a=e=>{const n=[],r=null==t?void 0:t.props.headerRowClassName;return(0,c.Kg)(r)?n.push(r):(0,c.Tn)(r)&&n.push(r.call(null,{rowIndex:e})),n.join(" ")},i=(n,r,a,i)=>{var o;let s=null!=(o=null==t?void 0:t.props.headerCellStyle)?o:{};(0,c.Tn)(s)&&(s=s.call(null,{rowIndex:n,columnIndex:r,row:a,column:i}));const l=Ax(r,i.fixed,e.store,a);return Tx(l,"left"),Tx(l,"right"),Object.assign({},s,l)},o=(r,a,i,o)=>{const s=Rx(n.b(),a,o.fixed,e.store,i),l=[o.id,o.order,o.headerAlign,o.className,o.labelClassName,...s];o.children||l.push("is-leaf"),o.sortable&&l.push("is-sortable");const u=null==t?void 0:t.props.headerCellClassName;return(0,c.Kg)(u)?l.push(u):(0,c.Tn)(u)&&l.push(u.call(null,{rowIndex:r,columnIndex:a,row:i,column:o})),l.push(n.e("cell")),l.filter((e=>Boolean(e))).join(" ")};return{getHeaderRowStyle:r,getHeaderRowClass:a,getHeaderCellStyle:i,getHeaderCellClass:o}}const Jx=e=>{const t=[];return e.forEach((e=>{e.children?(t.push(e),t.push.apply(t,Jx(e.children))):t.push(e)})),t},ek=e=>{let t=1;const n=(e,r)=>{if(r&&(e.level=r.level+1,t<e.level&&(t=e.level)),e.children){let t=0;e.children.forEach((r=>{n(r,e),t+=r.colSpan})),e.colSpan=t}else e.colSpan=1};e.forEach((e=>{e.level=1,n(e,void 0)}));const r=[];for(let i=0;i<t;i++)r.push([]);const a=Jx(e);return a.forEach((e=>{e.children?(e.rowSpan=1,e.children.forEach((e=>e.isSubColumn=!0))):e.rowSpan=t-e.level+1,r[e.level-1].push(e)})),r};function tk(e){const t=(0,s.WQ)(Yx),n=(0,s.EW)((()=>ek(e.store.states.originColumns.value))),r=(0,s.EW)((()=>{const e=n.value.length>1;return e&&t&&(t.state.isGroup.value=!0),e})),a=e=>{e.stopPropagation(),null==t||t.store.commit("toggleAllSelection")};return{isGroup:r,toggleAllSelection:a,columnRows:n}}var nk=(0,s.pM)({name:"ElTableHeader",components:{ElCheckbox:Ao},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})},appendFilterPanelTo:{type:String},allowDragLastColumn:{type:Boolean}},setup(e,{emit:t}){const n=(0,s.nI)(),r=(0,s.WQ)(Yx),a=(0,v.DU)("table"),i=(0,l.KR)({}),{onColumnsChange:o,onScrollableChange:c}=Xx(r),u="auto"===(null==r?void 0:r.props.tableLayout),d=(0,l.Kh)(new Map),h=(0,l.KR)(),p=()=>{setTimeout((()=>{d.size>0&&(d.forEach(((e,t)=>{const n=h.value.querySelector(`.${t.replace(/\s/g,".")}`);if(n){const t=n.getBoundingClientRect().width;e.width=t}})),d.clear())}))};(0,s.wB)(d,p),(0,s.sV)((async()=>{await(0,s.dY)(),await(0,s.dY)();const{prop:t,order:n}=e.defaultSort;null==r||r.store.commit("sort",{prop:t,order:n,init:!0}),p()}));const{handleHeaderClick:f,handleHeaderContextMenu:m,handleMouseDown:g,handleMouseMove:y,handleMouseOut:b,handleSortClick:w,handleFilterClick:x}=Qx(e,t),{getHeaderRowStyle:k,getHeaderRowClass:_,getHeaderCellStyle:C,getHeaderCellClass:E}=Zx(e),{isGroup:R,toggleAllSelection:S,columnRows:A}=tk(e);return n.state={onColumnsChange:o,onScrollableChange:c},n.filterPanels=i,{ns:a,filterPanels:i,onColumnsChange:o,onScrollableChange:c,columnRows:A,getHeaderRowClass:_,getHeaderRowStyle:k,getHeaderCellClass:E,getHeaderCellStyle:C,handleHeaderClick:f,handleHeaderContextMenu:m,handleMouseDown:g,handleMouseMove:y,handleMouseOut:b,handleSortClick:w,handleFilterClick:x,isGroup:R,toggleAllSelection:S,saveIndexSelection:d,isTableLayoutAuto:u,theadRef:h,updateFixedColumnStyle:p}},render(){const{ns:e,isGroup:t,columnRows:n,getHeaderCellStyle:r,getHeaderCellClass:a,getHeaderRowClass:i,getHeaderRowStyle:o,handleHeaderClick:l,handleHeaderContextMenu:c,handleMouseDown:u,handleMouseMove:d,handleSortClick:h,handleMouseOut:p,store:f,$parent:m,saveIndexSelection:g,isTableLayoutAuto:v}=this;let y=1;return(0,s.h)("thead",{ref:"theadRef",class:{[e.is("group")]:t}},n.map(((e,t)=>(0,s.h)("tr",{class:i(t),key:t,style:o(t)},e.map(((n,i)=>{n.rowSpan>y&&(y=n.rowSpan);const o=a(t,i,e,n);return v&&n.fixed&&g.set(o,n),(0,s.h)("th",{class:o,colspan:n.colSpan,key:`${n.id}-thead`,rowspan:n.rowSpan,style:r(t,i,e,n),onClick:e=>{e.currentTarget.classList.contains("noclick")||l(e,n)},onContextmenu:e=>c(e,n),onMousedown:e=>u(e,n),onMousemove:e=>d(e,n),onMouseout:p},[(0,s.h)("div",{class:["cell",n.filteredValue&&n.filteredValue.length>0?"highlight":""]},[n.renderHeader?n.renderHeader({column:n,$index:i,store:f,_self:m}):n.label,n.sortable&&(0,s.h)("span",{onClick:e=>h(e,n),class:"caret-wrapper"},[(0,s.h)("i",{onClick:e=>h(e,n,"ascending"),class:"sort-caret ascending"}),(0,s.h)("i",{onClick:e=>h(e,n,"descending"),class:"sort-caret descending"})]),n.filterable&&(0,s.h)(Gx,{store:f,placement:n.filterPlacement||"bottom-start",appendTo:m.appendFilterPanelTo,column:n,upDataColumn:(e,t)=>{n[e]=t}},{"filter-icon":()=>n.renderFilterIcon?n.renderFilterIcon({filterOpened:n.filterOpened}):null})])])}))))))}});function rk(e,t,n=.03){return e-t>n}function ak(e){const t=(0,s.WQ)(Yx),n=(0,l.KR)(""),r=(0,l.KR)((0,s.h)("div")),a=(n,r,a)=>{var i;const o=t,s=ox(n);let l;const c=null==(i=null==o?void 0:o.vnode.el)?void 0:i.dataset.prefix;s&&(l=ux({columns:e.store.states.columns.value},s,c),l&&(null==o||o.emit(`cell-${a}`,r,l,s,n))),null==o||o.emit(`row-${a}`,r,l,n)},i=(e,t)=>{a(e,t,"dblclick")},o=(t,n)=>{e.store.commit("setCurrentRow",n),a(t,n,"click")},c=(e,t)=>{a(e,t,"contextmenu")},u=K((t=>{e.store.commit("setHoverRow",t)}),30),d=K((()=>{e.store.commit("setHoverRow",null)}),30),h=e=>{const t=window.getComputedStyle(e,null),n=Number.parseInt(t.paddingLeft,10)||0,r=Number.parseInt(t.paddingRight,10)||0,a=Number.parseInt(t.paddingTop,10)||0,i=Number.parseInt(t.paddingBottom,10)||0;return{left:n,right:r,top:a,bottom:i}},p=(e,t,n)=>{let r=t.target.parentNode;while(e>1){if(r=null==r?void 0:r.nextSibling,!r||"TR"!==r.nodeName)break;n(r,"hover-row hover-fixed-row"),e--}},f=(n,r,a)=>{var i,o,s;const l=t,c=ox(n),u=null==(i=null==l?void 0:l.vnode.el)?void 0:i.dataset.prefix;let d;if(c){d=ux({columns:e.store.states.columns.value},c,u),c.rowSpan>1&&p(c.rowSpan,n,b.iQ);const t=l.hoverState={cell:c,column:d,row:r};null==l||l.emit("cell-mouse-enter",t.row,t.column,t.cell,n)}if(!a)return;const f=n.target.querySelector(".cell");if(!(0,b.nB)(f,`${u}-tooltip`)||!f.childNodes.length)return;const m=document.createRange();m.setStart(f,0),m.setEnd(f,f.childNodes.length);const{width:g,height:v}=m.getBoundingClientRect(),{width:y,height:w}=f.getBoundingClientRect(),{top:x,left:k,right:_,bottom:C}=h(f),E=k+_,R=x+C;rk(g+E,y)||rk(v+R,w)||rk(f.scrollWidth,y)?kx(a,c.innerText||c.textContent,r,d,c,l):(null==(o=xx)?void 0:o.trigger)===c&&(null==(s=xx)||s())},m=e=>{const n=ox(e);if(!n)return;n.rowSpan>1&&p(n.rowSpan,e,b.vy);const r=null==t?void 0:t.hoverState;null==t||t.emit("cell-mouse-leave",null==r?void 0:r.row,null==r?void 0:r.column,null==r?void 0:r.cell,e)};return{handleDoubleClick:i,handleClick:o,handleContextMenu:c,handleMouseEnter:u,handleMouseLeave:d,handleCellMouseEnter:f,handleCellMouseLeave:m,tooltipContent:n,tooltipTrigger:r}}function ik(e){const t=(0,s.WQ)(Yx),n=(0,v.DU)("table"),r=(e,n)=>{const r=null==t?void 0:t.props.rowStyle;return(0,c.Tn)(r)?r.call(null,{row:e,rowIndex:n}):r||null},a=(r,a)=>{const i=[n.e("row")];(null==t?void 0:t.props.highlightCurrentRow)&&r===e.store.states.currentRow.value&&i.push("current-row"),e.stripe&&a%2===1&&i.push(n.em("row","striped"));const o=null==t?void 0:t.props.rowClassName;return(0,c.Kg)(o)?i.push(o):(0,c.Tn)(o)&&i.push(o.call(null,{row:r,rowIndex:a})),i},i=(n,r,a,i)=>{const o=null==t?void 0:t.props.cellStyle;let s=null!=o?o:{};(0,c.Tn)(o)&&(s=o.call(null,{rowIndex:n,columnIndex:r,row:a,column:i}));const l=Ax(r,null==e?void 0:e.fixed,e.store);return Tx(l,"left"),Tx(l,"right"),Object.assign({},s,l)},o=(r,a,i,o,s)=>{const l=Rx(n.b(),a,null==e?void 0:e.fixed,e.store,void 0,s),u=[o.id,o.align,o.className,...l],d=null==t?void 0:t.props.cellClassName;return(0,c.Kg)(d)?u.push(d):(0,c.Tn)(d)&&u.push(d.call(null,{rowIndex:r,columnIndex:a,row:i,column:o})),u.push(n.e("cell")),u.filter((e=>Boolean(e))).join(" ")},l=(e,n,r,a)=>{let i=1,o=1;const s=null==t?void 0:t.props.spanMethod;if((0,c.Tn)(s)){const t=s({row:e,column:n,rowIndex:r,columnIndex:a});(0,c.cy)(t)?(i=t[0],o=t[1]):(0,c.Gv)(t)&&(i=t.rowspan,o=t.colspan)}return{rowspan:i,colspan:o}},u=(e,t,n)=>{if(t<1)return e[n].realWidth;const r=e.map((({realWidth:e,width:t})=>e||t)).slice(n,n+t);return Number(r.reduce(((e,t)=>Number(e)+Number(t)),-1))};return{getRowStyle:r,getRowClass:a,getCellStyle:i,getCellClass:o,getSpan:l,getColspanRealWidth:u}}const ok=(0,s.pM)({name:"TableTdWrapper"}),sk=(0,s.pM)({...ok,props:{colspan:{type:Number,default:1},rowspan:{type:Number,default:1}},setup(e){return(t,n)=>((0,s.uX)(),(0,s.CE)("td",{colspan:e.colspan,rowspan:e.rowspan},[(0,s.RG)(t.$slots,"default")],8,["colspan","rowspan"]))}});var lk=(0,g.A)(sk,[["__file","td-wrapper.vue"]]);function ck(e){const t=(0,s.WQ)(Yx),n=(0,v.DU)("table"),{handleDoubleClick:r,handleClick:a,handleContextMenu:i,handleMouseEnter:o,handleMouseLeave:l,handleCellMouseEnter:c,handleCellMouseLeave:u,tooltipContent:d,tooltipTrigger:h}=ak(e),{getRowStyle:f,getRowClass:m,getCellStyle:g,getCellClass:y,getSpan:b,getColspanRealWidth:w}=ik(e),x=(0,s.EW)((()=>e.store.states.columns.value.findIndex((({type:e})=>"default"===e)))),k=(e,n)=>{const r=t.props.rowKey;return r?dx(e,r):n},_=(d,h,v,_=!1)=>{const{tooltipEffect:E,tooltipOptions:R,store:S}=e,{indent:A,columns:T}=S.states,M=m(d,h);let L=!0;v&&(M.push(n.em("row",`level-${v.level}`)),L=v.display);const O=L?null:{display:"none"};return(0,s.h)("tr",{style:[O,f(d,h)],class:M,key:k(d,h),onDblclick:e=>r(e,d),onClick:e=>a(e,d),onContextmenu:e=>i(e,d),onMouseenter:()=>o(h),onMouseleave:l},T.value.map(((n,r)=>{const{rowspan:a,colspan:i}=b(d,n,h,r);if(!a||!i)return null;const o=Object.assign({},n);o.realWidth=w(T.value,i,r);const l={store:e.store,_self:e.context||t,column:o,row:d,$index:h,cellIndex:r,expanded:_};r===x.value&&v&&(l.treeNode={indent:v.level*A.value,level:v.level},(0,p.Lm)(v.expanded)&&(l.treeNode.expanded=v.expanded,"loading"in v&&(l.treeNode.loading=v.loading),"noLazyChildren"in v&&(l.treeNode.noLazyChildren=v.noLazyChildren)));const f=`${k(d,h)},${r}`,m=o.columnKey||o.rawColumnKey||"",S=n.showOverflowTooltip&&(0,nx.A)({effect:E},R,n.showOverflowTooltip);return(0,s.h)(lk,{style:g(h,r,d,n),class:y(h,r,d,n,i-1),key:`${m}${f}`,rowspan:a,colspan:i,onMouseenter:e=>c(e,d,S),onMouseleave:u},{default:()=>C(r,n,l)})})))},C=(e,t,n)=>t.renderCell(n),E=(r,a)=>{const i=e.store,{isRowExpanded:o,assertRowKey:l}=i,{treeData:c,lazyTreeNodeMap:u,childrenColumnName:d,rowKey:h}=i.states,f=i.states.columns.value,m=f.some((({type:e})=>"expand"===e));if(m){const e=o(r),l=_(r,a,void 0,e),c=t.renderExpanded;return e?c?[[l,(0,s.h)("tr",{key:`expanded-row__${l.key}`},[(0,s.h)("td",{colspan:f.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[c({row:r,$index:a,store:i,expanded:e})])])]]:(console.error("[Element Error]renderExpanded is required."),l):[[l]]}if(Object.keys(c.value).length){l();const e=dx(r,h.value);let t=c.value[e],n=null;t&&(n={expanded:t.expanded,level:t.level,display:!0},(0,p.Lm)(t.lazy)&&((0,p.Lm)(t.loaded)&&t.loaded&&(n.noLazyChildren=!(t.children&&t.children.length)),n.loading=t.loading));const i=[_(r,a,n)];if(t){let n=0;const o=(e,r)=>{e&&e.length&&r&&e.forEach((e=>{const s={display:r.display&&r.expanded,level:r.level+1,expanded:!1,noLazyChildren:!1,loading:!1},l=dx(e,h.value);if((0,p.Xj)(l))throw new Error("For nested data item, row-key is required.");if(t={...c.value[l]},t&&(s.expanded=t.expanded,t.level=t.level||s.level,t.display=!(!t.expanded||!s.display),(0,p.Lm)(t.lazy)&&((0,p.Lm)(t.loaded)&&t.loaded&&(s.noLazyChildren=!(t.children&&t.children.length)),s.loading=t.loading)),n++,i.push(_(e,a+n,s)),t){const n=u.value[l]||e[d.value];o(n,t)}}))};t.display=!0;const s=u.value[e]||r[d.value];o(s,t)}return i}return _(r,a,void 0)};return{wrappedRowRender:E,tooltipContent:d,tooltipTrigger:h}}const uk={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,tooltipOptions:{type:Object},context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean};var dk=(0,s.pM)({name:"ElTableBody",props:uk,setup(e){const t=(0,s.nI)(),n=(0,s.WQ)(Yx),r=(0,v.DU)("table"),{wrappedRowRender:a,tooltipContent:i,tooltipTrigger:o}=ck(e),{onColumnsChange:l,onScrollableChange:c}=Xx(n),u=[];return(0,s.wB)(e.store.states.hoverRow,((n,a)=>{var i;const o=null==t?void 0:t.vnode.el,s=Array.from((null==o?void 0:o.children)||[]).filter((e=>null==e?void 0:e.classList.contains(`${r.e("row")}`)));let l=n;const c=null==(i=s[l])?void 0:i.childNodes;if(null==c?void 0:c.length){let e=0;const t=Array.from(c).reduce(((t,n,r)=>{var a,i;return(null==(a=c[r])?void 0:a.colSpan)>1&&(e=null==(i=c[r])?void 0:i.colSpan),"TD"!==n.nodeName&&0===e&&t.push(r),e>0&&e--,t}),[]);t.forEach((e=>{var t;l=n;while(l>0){const n=null==(t=s[l-1])?void 0:t.childNodes;if(n[e]&&"TD"===n[e].nodeName&&n[e].rowSpan>1){(0,b.iQ)(n[e],"hover-cell"),u.push(n[e]);break}l--}}))}else u.forEach((e=>(0,b.vy)(e,"hover-cell"))),u.length=0;e.store.states.isComplex.value&&Q.oc&&(0,Xy.m)((()=>{const e=s[a],t=s[n];e&&!e.classList.contains("hover-fixed-row")&&(0,b.vy)(e,"hover-row"),t&&(0,b.iQ)(t,"hover-row")}))})),(0,s.hi)((()=>{var e;null==(e=xx)||e()})),{ns:r,onColumnsChange:l,onScrollableChange:c,wrappedRowRender:a,tooltipContent:i,tooltipTrigger:o}},render(){const{wrappedRowRender:e,store:t}=this,n=t.states.data.value||[];return(0,s.h)("tbody",{tabIndex:-1},[n.reduce(((t,n)=>t.concat(e(n,t.length))),[])])}});function hk(){const e=(0,s.WQ)(Yx),t=null==e?void 0:e.store,n=(0,s.EW)((()=>t.states.fixedLeafColumnsLength.value)),r=(0,s.EW)((()=>t.states.rightFixedColumns.value.length)),a=(0,s.EW)((()=>t.states.columns.value.length)),i=(0,s.EW)((()=>t.states.fixedColumns.value.length)),o=(0,s.EW)((()=>t.states.rightFixedColumns.value.length));return{leftFixedLeafCount:n,rightFixedLeafCount:r,columnsCount:a,leftFixedCount:i,rightFixedCount:o,columns:t.states.columns}}function pk(e){const{columns:t}=hk(),n=(0,v.DU)("table"),r=(t,r)=>{const a=t[r],i=[n.e("cell"),a.id,a.align,a.labelClassName,...Rx(n.b(),r,a.fixed,e.store)];return a.className&&i.push(a.className),a.children||i.push(n.is("leaf")),i},a=(t,n)=>{const r=Ax(n,t.fixed,e.store);return Tx(r,"left"),Tx(r,"right"),r};return{getCellClasses:r,getCellStyles:a,columns:t}}var fk=(0,s.pM)({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const t=(0,s.WQ)(Yx),n=(0,v.DU)("table"),{getCellClasses:r,getCellStyles:a,columns:i}=pk(e),{onScrollableChange:o,onColumnsChange:l}=Xx(t);return{ns:n,onScrollableChange:o,onColumnsChange:l,getCellClasses:r,getCellStyles:a,columns:i}},render(){const{columns:e,getCellStyles:t,getCellClasses:n,summaryMethod:r,sumText:a}=this,i=this.store.states.data.value;let o=[];return r?o=r({columns:e,data:i}):e.forEach(((e,t)=>{if(0===t)return void(o[t]=a);const n=i.map((t=>Number(t[e.property]))),r=[];let s=!0;n.forEach((e=>{if(!Number.isNaN(+e)){s=!1;const t=`${e}`.split(".")[1];r.push(t?t.length:0)}}));const l=Math.max.apply(null,r);o[t]=s?"":n.reduce(((e,t)=>{const n=Number(t);return Number.isNaN(+n)?e:Number.parseFloat((e+t).toFixed(Math.min(l,20)))}),0)})),(0,s.h)((0,s.h)("tfoot",[(0,s.h)("tr",{},[...e.map(((r,a)=>(0,s.h)("td",{key:a,colspan:r.colSpan,rowspan:r.rowSpan,class:n(e,a),style:t(r,a)},[(0,s.h)("div",{class:["cell",r.labelClassName]},[o[a]])])))])]))}});function mk(e){const t=t=>{e.commit("setCurrentRow",t)},n=()=>e.getSelectionRows(),r=(t,n,r=!0)=>{e.toggleRowSelection(t,n,!1,r),e.updateAllSelected()},a=()=>{e.clearSelection()},i=t=>{e.clearFilter(t)},o=()=>{e.commit("toggleAllSelection")},s=(t,n)=>{e.toggleRowExpansionAdapter(t,n)},l=()=>{e.clearSort()},c=(t,n)=>{e.commit("sort",{prop:t,order:n})},u=(t,n)=>{e.updateKeyChildren(t,n)};return{setCurrentRow:t,getSelectionRows:n,toggleRowSelection:r,clearSelection:a,clearFilter:i,toggleAllSelection:o,toggleRowExpansion:s,clearSort:l,sort:c,updateKeyChildren:u}}function gk(e,t,n,r){const a=(0,l.KR)(!1),i=(0,l.KR)(null),o=(0,l.KR)(!1),c=e=>{o.value=e},d=(0,l.KR)({width:null,height:null,headerHeight:null}),h=(0,l.KR)(!1),p={display:"inline-block",verticalAlign:"middle"},f=(0,l.KR)(),m=(0,l.KR)(0),g=(0,l.KR)(0),v=(0,l.KR)(0),y=(0,l.KR)(0),b=(0,l.KR)(0);(0,s.nT)((()=>{t.setHeight(e.height)})),(0,s.nT)((()=>{t.setMaxHeight(e.maxHeight)})),(0,s.wB)((()=>[e.currentRowKey,n.states.rowKey]),(([e,t])=>{(0,l.R1)(t)&&(0,l.R1)(e)&&n.setCurrentRowKey(`${e}`)}),{immediate:!0}),(0,s.wB)((()=>e.data),(e=>{r.store.commit("setData",e)}),{immediate:!0,deep:!0}),(0,s.nT)((()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)}));const w=()=>{r.store.commit("setHoverRow",null),r.hoverState&&(r.hoverState=null)},x=(e,t)=>{const{pixelX:n,pixelY:a}=t;Math.abs(n)>=Math.abs(a)&&(r.refs.bodyWrapper.scrollLeft+=t.pixelX/5)},k=(0,s.EW)((()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0)),_=(0,s.EW)((()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""}))),C=()=>{k.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame(A)};(0,s.sV)((async()=>{await(0,s.dY)(),n.updateColumns(),T(),requestAnimationFrame(C);const t=r.vnode.el,a=r.refs.headerWrapper;e.flexible&&t&&t.parentElement&&(t.parentElement.style.minWidth="0"),d.value={width:f.value=t.offsetWidth,height:t.offsetHeight,headerHeight:e.showHeader&&a?a.offsetHeight:null},n.states.columns.value.forEach((e=>{e.filteredValue&&e.filteredValue.length&&r.store.commit("filterChange",{column:e,values:e.filteredValue,silent:!0})})),r.$ready=!0}));const E=(e,n)=>{if(!e)return;const r=Array.from(e.classList).filter((e=>!e.startsWith("is-scrolling-")));r.push(t.scrollX.value?n:"is-scrolling-none"),e.className=r.join(" ")},R=e=>{const{tableWrapper:t}=r.refs;E(t,e)},S=e=>{const{tableWrapper:t}=r.refs;return!(!t||!t.classList.contains(e))},A=function(){if(!r.refs.scrollBarRef)return;if(!t.scrollX.value){const e="is-scrolling-none";return void(S(e)||R(e))}const e=r.refs.scrollBarRef.wrapRef;if(!e)return;const{scrollLeft:n,offsetWidth:a,scrollWidth:i}=e,{headerWrapper:o,footerWrapper:s}=r.refs;o&&(o.scrollLeft=n),s&&(s.scrollLeft=n);const l=i-a-1;R(n>=l?"is-scrolling-right":0===n?"is-scrolling-left":"is-scrolling-middle")},T=()=>{r.refs.scrollBarRef&&(r.refs.scrollBarRef.wrapRef&&(0,u.MLh)(r.refs.scrollBarRef.wrapRef,"scroll",A,{passive:!0}),e.fit?(0,u.wYm)(r.vnode.el,M):(0,u.MLh)(window,"resize",M),(0,u.wYm)(r.refs.bodyWrapper,(()=>{var e,t;M(),null==(t=null==(e=r.refs)?void 0:e.scrollBarRef)||t.update()})))},M=()=>{var t,n,a,i;const o=r.vnode.el;if(!r.$ready||!o)return;let s=!1;const{width:l,height:c,headerHeight:u}=d.value,h=f.value=o.offsetWidth;l!==h&&(s=!0);const p=o.offsetHeight;(e.height||k.value)&&c!==p&&(s=!0);const w="fixed"===e.tableLayout?r.refs.headerWrapper:null==(t=r.refs.tableHeaderRef)?void 0:t.$el;e.showHeader&&(null==w?void 0:w.offsetHeight)!==u&&(s=!0),m.value=(null==(n=r.refs.tableWrapper)?void 0:n.scrollHeight)||0,v.value=(null==w?void 0:w.scrollHeight)||0,y.value=(null==(a=r.refs.footerWrapper)?void 0:a.offsetHeight)||0,b.value=(null==(i=r.refs.appendWrapper)?void 0:i.offsetHeight)||0,g.value=m.value-v.value-y.value-b.value,s&&(d.value={width:h,height:p,headerHeight:e.showHeader&&(null==w?void 0:w.offsetHeight)||0},C())},L=(0,ra.NV)(),O=(0,s.EW)((()=>{const{bodyWidth:e,scrollY:n,gutterWidth:r}=t;return e.value?e.value-(n.value?r:0)+"px":""})),I=(0,s.EW)((()=>e.maxHeight?"fixed":e.tableLayout)),N=(0,s.EW)((()=>{if(e.data&&e.data.length)return null;let t="100%";e.height&&g.value&&(t=`${g.value}px`);const n=f.value;return{width:n?`${n}px`:"",height:t}})),B=(0,s.EW)((()=>e.height?{height:"100%"}:e.maxHeight?Number.isNaN(Number(e.maxHeight))?{maxHeight:`calc(${e.maxHeight} - ${v.value+y.value}px)`}:{maxHeight:e.maxHeight-v.value-y.value+"px"}:{})),D=(e,t)=>{const n=r.refs.bodyWrapper;if(Math.abs(t.spinY)>0){const r=n.scrollTop;t.pixelY<0&&0!==r&&e.preventDefault(),t.pixelY>0&&n.scrollHeight-n.clientHeight>r&&e.preventDefault(),n.scrollTop+=Math.ceil(t.pixelY/5)}else n.scrollLeft+=Math.ceil(t.pixelX/5)};return{isHidden:a,renderExpanded:i,setDragVisible:c,isGroup:h,handleMouseLeave:w,handleHeaderFooterMousewheel:x,tableSize:L,emptyBlockStyle:N,handleFixedMousewheel:D,resizeProxyVisible:o,bodyWidth:O,resizeState:d,doLayout:C,tableBodyStyles:_,tableLayout:I,scrollbarViewStyle:p,scrollbarStyle:B}}function vk(e){const t=(0,l.KR)(),n=()=>{const n=e.vnode.el,r=n.querySelector(".hidden-columns"),a={childList:!0,subtree:!0},i=e.store.states.updateOrderFns;t.value=new MutationObserver((()=>{i.forEach((e=>e()))})),t.value.observe(r,a)};(0,s.sV)((()=>{n()})),(0,s.hi)((()=>{var e;null==(e=t.value)||e.disconnect()}))}var yk={data:{type:Array,default:()=>[]},size:ao.mU,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children",checkStrictly:!1})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:Boolean,flexible:Boolean,showOverflowTooltip:[Boolean,Object],tooltipFormatter:Function,appendFilterPanelTo:String,scrollbarTabindex:{type:[Number,String],default:void 0},allowDragLastColumn:{type:Boolean,default:!0}};function bk(e){const t="auto"===e.tableLayout;let n=e.columns||[];t&&n.every((({width:e})=>(0,p.b0)(e)))&&(n=[]);const r=n=>{const r={key:`${e.tableLayout}_${n.id}`,style:{},name:void 0};return t?r.style={width:`${n.width}px`}:r.name=n.id,r};return(0,s.h)("colgroup",{},n.map((e=>(0,s.h)("col",r(e)))))}bk.props=["columns","tableLayout"];const wk=()=>{const e=(0,l.KR)(),t=(t,n)=>{const r=e.value;r&&r.scrollTo(t,n)},n=(t,n)=>{const r=e.value;r&&(0,p.Et)(n)&&["Top","Left"].includes(t)&&r[`setScroll${t}`](n)},r=e=>n("Top",e),a=e=>n("Left",e);return{scrollBarRef:e,scrollTo:t,setScrollTop:r,setScrollLeft:a}};var xk,kk,_k,Ck,Ek,Rk,Sk,Ak,Tk,Mk,Lk,Ok,Ik,Nk,Bk,Dk=!1;function Fk(){if(!Dk){Dk=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),n=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(Ok=/\b(iPhone|iP[ao]d)/.exec(e),Ik=/\b(iP[ao]d)/.exec(e),Mk=/Android/i.exec(e),Nk=/FBAN\/\w+;/i.exec(e),Bk=/Mobile/i.exec(e),Lk=!!/Win64/.exec(e),t){xk=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,xk&&document&&document.documentMode&&(xk=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(e);Rk=r?parseFloat(r[1])+4:xk,kk=t[2]?parseFloat(t[2]):NaN,_k=t[3]?parseFloat(t[3]):NaN,Ck=t[4]?parseFloat(t[4]):NaN,Ck?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),Ek=t&&t[1]?parseFloat(t[1]):NaN):Ek=NaN}else xk=kk=_k=Ek=Ck=NaN;if(n){if(n[1]){var a=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);Sk=!a||parseFloat(a[1].replace("_","."))}else Sk=!1;Ak=!!n[2],Tk=!!n[3]}else Sk=Ak=Tk=!1}}var $k,Pk={ie:function(){return Fk()||xk},ieCompatibilityMode:function(){return Fk()||Rk>xk},ie64:function(){return Pk.ie()&&Lk},firefox:function(){return Fk()||kk},opera:function(){return Fk()||_k},webkit:function(){return Fk()||Ck},safari:function(){return Pk.webkit()},chrome:function(){return Fk()||Ek},windows:function(){return Fk()||Ak},osx:function(){return Fk()||Sk},linux:function(){return Fk()||Tk},iphone:function(){return Fk()||Ok},mobile:function(){return Fk()||Ok||Ik||Mk||Bk},nativeApp:function(){return Fk()||Nk},android:function(){return Fk()||Mk},ipad:function(){return Fk()||Ik}},zk=Pk,Wk=!!(typeof window<"u"&&window.document&&window.document.createElement),jk={canUseDOM:Wk,canUseWorkers:typeof Worker<"u",canUseEventListeners:Wk&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:Wk&&!!window.screen,isInWorker:!Wk},Vk=jk;function Uk(e,t){if(!Vk.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var a=document.createElement("div");a.setAttribute(n,"return;"),r="function"==typeof a[n]}return!r&&$k&&"wheel"===e&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}Vk.canUseDOM&&($k=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("",""));var Kk=Uk,Hk=10,qk=40,Gk=800;function Xk(e){var t=0,n=0,r=0,a=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=t*Hk,a=n*Hk,"deltaY"in e&&(a=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||a)&&e.deltaMode&&(1==e.deltaMode?(r*=qk,a*=qk):(r*=Gk,a*=Gk)),r&&!t&&(t=r<1?-1:1),a&&!n&&(n=a<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:a}}Xk.getEventType=function(){return zk.firefox()?"DOMMouseScroll":Kk("wheel")?"wheel":"mousewheel"};var Yk=Xk;
/**
* Checks if an event is supported in the current execution environment.
*
* NOTE: This will not work correctly for non-generic events such as `change`,
* `reset`, `load`, `error`, and `select`.
*
* Borrows from Modernizr.
*
* @param {string} eventNameSuffix Event name, e.g. "click".
* @param {?boolean} capture Check if the capture phase is supported.
* @return {boolean} True if the event is supported.
* @internal
* @license Modernizr 3.0.0pre (Custom Build) | MIT
*/const Qk=function(e,t){if(e&&e.addEventListener){const n=function(e){const n=Yk(e);t&&Reflect.apply(t,this,[e,n])};e.addEventListener("wheel",n,{passive:!0})}},Zk={beforeMount(e,t){Qk(e,t.value)}};let Jk=1;const e_=(0,s.pM)({name:"ElTable",directives:{Mousewheel:Zk},components:{TableHeader:nk,TableBody:dk,TableFooter:fk,ElScrollbar:pe,hColgroup:bk},props:yk,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change","scroll"],setup(e){const{t:t}=(0,La.Ym)(),n=(0,v.DU)("table"),r=(0,s.nI)();(0,s.Gt)(Yx,r);const a=zx(r,e);r.store=a;const i=new Ux({store:r.store,table:r,fit:e.fit,showHeader:e.showHeader});r.layout=i;const o=(0,s.EW)((()=>0===(a.states.data.value||[]).length)),{setCurrentRow:l,getSelectionRows:c,toggleRowSelection:u,clearSelection:d,clearFilter:h,toggleAllSelection:p,toggleRowExpansion:f,clearSort:m,sort:g,updateKeyChildren:y}=mk(a),{isHidden:b,renderExpanded:w,setDragVisible:x,isGroup:k,handleMouseLeave:_,handleHeaderFooterMousewheel:C,tableSize:E,emptyBlockStyle:R,handleFixedMousewheel:S,resizeProxyVisible:A,bodyWidth:T,resizeState:M,doLayout:L,tableBodyStyles:O,tableLayout:I,scrollbarViewStyle:N,scrollbarStyle:B}=gk(e,i,a,r),{scrollBarRef:D,scrollTo:F,setScrollLeft:$,setScrollTop:P}=wk(),z=K(L,50),W=`${n.namespace.value}-table_${Jk++}`;r.tableId=W,r.state={isGroup:k,resizeState:M,doLayout:L,debouncedUpdateLayout:z};const j=(0,s.EW)((()=>{var n;return null!=(n=e.sumText)?n:t("el.table.sumText")})),V=(0,s.EW)((()=>{var n;return null!=(n=e.emptyText)?n:t("el.table.emptyText")})),U=(0,s.EW)((()=>ek(a.states.originColumns.value)[0]));return vk(r),(0,s.xo)((()=>{z.cancel()})),{ns:n,layout:i,store:a,columns:U,handleHeaderFooterMousewheel:C,handleMouseLeave:_,tableId:W,tableSize:E,isHidden:b,isEmpty:o,renderExpanded:w,resizeProxyVisible:A,resizeState:M,isGroup:k,bodyWidth:T,tableBodyStyles:O,emptyBlockStyle:R,debouncedUpdateLayout:z,handleFixedMousewheel:S,setCurrentRow:l,getSelectionRows:c,toggleRowSelection:u,clearSelection:d,clearFilter:h,toggleAllSelection:p,toggleRowExpansion:f,clearSort:m,doLayout:L,sort:g,updateKeyChildren:y,t:t,setDragVisible:x,context:r,computedSumText:j,computedEmptyText:V,tableLayout:I,scrollbarViewStyle:N,scrollbarStyle:B,scrollBarRef:D,scrollTo:F,setScrollLeft:$,setScrollTop:P,allowDragLastColumn:e.allowDragLastColumn}}});function t_(e,t,n,r,a,i){const o=(0,s.g2)("hColgroup"),l=(0,s.g2)("table-header"),u=(0,s.g2)("table-body"),d=(0,s.g2)("table-footer"),h=(0,s.g2)("el-scrollbar"),p=(0,s.gN)("mousewheel");return(0,s.uX)(),(0,s.CE)("div",{ref:"tableWrapper",class:(0,c.C4)([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:0!==(e.store.states.data.value||[]).length&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:(0,c.Tr)(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:e.handleMouseLeave},[(0,s.Lk)("div",{class:(0,c.C4)(e.ns.e("inner-wrapper"))},[(0,s.Lk)("div",{ref:"hiddenColumns",class:"hidden-columns"},[(0,s.RG)(e.$slots,"default")],512),e.showHeader&&"fixed"===e.tableLayout?(0,s.bo)(((0,s.uX)(),(0,s.CE)("div",{key:0,ref:"headerWrapper",class:(0,c.C4)(e.ns.e("header-wrapper"))},[(0,s.Lk)("table",{ref:"tableHeader",class:(0,c.C4)(e.ns.e("header")),style:(0,c.Tr)(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[(0,s.bF)(o,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),(0,s.bF)(l,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,"allow-drag-last-column":e.allowDragLastColumn,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","append-filter-panel-to","allow-drag-last-column","onSetDragVisible"])],6)],2)),[[p,e.handleHeaderFooterMousewheel]]):(0,s.Q3)("v-if",!0),(0,s.Lk)("div",{ref:"bodyWrapper",class:(0,c.C4)(e.ns.e("body-wrapper"))},[(0,s.bF)(h,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn,tabindex:e.scrollbarTabindex,onScroll:t=>e.$emit("scroll",t)},{default:(0,s.k6)((()=>[(0,s.Lk)("table",{ref:"tableBody",class:(0,c.C4)(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:(0,c.Tr)({width:e.bodyWidth,tableLayout:e.tableLayout})},[(0,s.bF)(o,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&"auto"===e.tableLayout?((0,s.uX)(),(0,s.Wv)(l,{key:0,ref:"tableHeaderRef",class:(0,c.C4)(e.ns.e("body-header")),border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,onSetDragVisible:e.setDragVisible},null,8,["class","border","default-sort","store","append-filter-panel-to","onSetDragVisible"])):(0,s.Q3)("v-if",!0),(0,s.bF)(u,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.tooltipEffect,"tooltip-options":e.tooltipOptions,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"]),e.showSummary&&"auto"===e.tableLayout?((0,s.uX)(),(0,s.Wv)(d,{key:1,class:(0,c.C4)(e.ns.e("body-footer")),border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["class","border","default-sort","store","sum-text","summary-method"])):(0,s.Q3)("v-if",!0)],6),e.isEmpty?((0,s.uX)(),(0,s.CE)("div",{key:0,ref:"emptyBlock",style:(0,c.Tr)(e.emptyBlockStyle),class:(0,c.C4)(e.ns.e("empty-block"))},[(0,s.Lk)("span",{class:(0,c.C4)(e.ns.e("empty-text"))},[(0,s.RG)(e.$slots,"empty",{},(()=>[(0,s.eW)((0,c.v_)(e.computedEmptyText),1)]))],2)],6)):(0,s.Q3)("v-if",!0),e.$slots.append?((0,s.uX)(),(0,s.CE)("div",{key:1,ref:"appendWrapper",class:(0,c.C4)(e.ns.e("append-wrapper"))},[(0,s.RG)(e.$slots,"append")],2)):(0,s.Q3)("v-if",!0)])),_:3},8,["view-style","wrap-style","always","tabindex","onScroll"])],2),e.showSummary&&"fixed"===e.tableLayout?(0,s.bo)(((0,s.uX)(),(0,s.CE)("div",{key:1,ref:"footerWrapper",class:(0,c.C4)(e.ns.e("footer-wrapper"))},[(0,s.Lk)("table",{class:(0,c.C4)(e.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:(0,c.Tr)(e.tableBodyStyles)},[(0,s.bF)(o,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),(0,s.bF)(d,{border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","sum-text","summary-method"])],6)],2)),[[S.aG,!e.isEmpty],[p,e.handleHeaderFooterMousewheel]]):(0,s.Q3)("v-if",!0),e.border||e.isGroup?((0,s.uX)(),(0,s.CE)("div",{key:2,class:(0,c.C4)(e.ns.e("border-left-patch"))},null,2)):(0,s.Q3)("v-if",!0)],2),(0,s.bo)((0,s.Lk)("div",{ref:"resizeProxy",class:(0,c.C4)(e.ns.e("column-resize-proxy"))},null,2),[[S.aG,e.resizeProxyVisible]])],46,["data-prefix","onMouseleave"])}var n_=(0,g.A)(e_,[["render",t_],["__file","table.vue"]]);const r_={selection:"table-column--selection",expand:"table__expand-column"},a_={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},i_=e=>r_[e]||"",o_={selection:{renderHeader({store:e,column:t}){function n(){return e.states.data.value&&0===e.states.data.value.length}return(0,s.h)(Ao,{disabled:n(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":e.toggleAllSelection,modelValue:e.states.isAllSelected.value,ariaLabel:t.label})},renderCell({row:e,column:t,store:n,$index:r}){return(0,s.h)(Ao,{disabled:!!t.selectable&&!t.selectable.call(null,e,r),size:n.states.tableSize.value,onChange:()=>{n.commit("rowSelectedChanged",e)},onClick:e=>e.stopPropagation(),modelValue:n.isSelected(e),ariaLabel:t.label})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let n=t+1;const r=e.index;return(0,p.Et)(r)?n=t+r:(0,c.Tn)(r)&&(n=r(t)),(0,s.h)("div",{},[n])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({row:e,store:t,expanded:n}){const{ns:r}=t,a=[r.e("expand-icon")];n&&a.push(r.em("expand-icon","expanded"));const i=function(n){n.stopPropagation(),t.toggleRowExpansion(e)};return(0,s.h)("div",{class:a,onClick:i},{default:()=>[(0,s.h)(A.tk,null,{default:()=>[(0,s.h)(H.Qpb)]})]})},sortable:!1,resizable:!1}};function s_({row:e,column:t,$index:n}){var r;const a=t.property,i=a&&(0,M.GT)(e,a).value;return t&&t.formatter?t.formatter(e,t,i,n):(null==(r=null==i?void 0:i.toString)?void 0:r.call(i))||""}function l_({row:e,treeNode:t,store:n},r=!1){const{ns:a}=n;if(!t)return r?[(0,s.h)("span",{class:a.e("placeholder")})]:null;const i=[],o=function(r){r.stopPropagation(),t.loading||n.loadOrToggle(e)};if(t.indent&&i.push((0,s.h)("span",{class:a.e("indent"),style:{"padding-left":`${t.indent}px`}})),(0,p.Lm)(t.expanded)&&!t.noLazyChildren){const e=[a.e("expand-icon"),t.expanded?a.em("expand-icon","expanded"):""];let n=H.Qpb;t.loading&&(n=H.Rhj),i.push((0,s.h)("div",{class:e,onClick:o},{default:()=>[(0,s.h)(A.tk,{class:{[a.is("loading")]:t.loading}},{default:()=>[(0,s.h)(n)]})]}))}else i.push((0,s.h)("span",{class:a.e("placeholder")}));return i}function c_(e,t){return e.reduce(((e,t)=>(e[t]=t,e)),t)}function u_(e,t){const n=(0,s.nI)(),r=()=>{const r=["fixed"],a={realWidth:"width",realMinWidth:"minWidth"},i=c_(r,a);Object.keys(i).forEach((r=>{const i=a[r];(0,c.$3)(t,i)&&(0,s.wB)((()=>t[i]),(t=>{let a=t;"width"===i&&"realWidth"===r&&(a=fx(t)),"minWidth"===i&&"realMinWidth"===r&&(a=mx(t)),n.columnConfig.value[i]=a,n.columnConfig.value[r]=a;const o="fixed"===i;e.value.store.scheduleLayout(o)}))}))},a=()=>{const e=["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","filterClassName","showOverflowTooltip","tooltipFormatter"],r={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},a=c_(e,r);Object.keys(a).forEach((e=>{const a=r[e];(0,c.$3)(t,a)&&(0,s.wB)((()=>t[a]),(t=>{n.columnConfig.value[e]=t}))}))};return{registerComplexWatchers:r,registerNormalWatchers:a}}function d_(e,t,n){const r=(0,s.nI)(),a=(0,l.KR)(""),i=(0,l.KR)(!1),o=(0,l.KR)(),u=(0,l.KR)(),d=(0,v.DU)("table");(0,s.nT)((()=>{o.value=e.align?`is-${e.align}`:null,o.value})),(0,s.nT)((()=>{u.value=e.headerAlign?`is-${e.headerAlign}`:o.value,u.value}));const h=(0,s.EW)((()=>{let e=r.vnode.vParent||r.parent;while(e&&!e.tableId&&!e.columnId)e=e.vnode.vParent||e.parent;return e})),f=(0,s.EW)((()=>{const{store:e}=r.parent;if(!e)return!1;const{treeData:t}=e.states,n=t.value;return n&&Object.keys(n).length>0})),m=(0,l.KR)(fx(e.width)),g=(0,l.KR)(mx(e.minWidth)),y=e=>(m.value&&(e.width=m.value),g.value&&(e.minWidth=g.value),!m.value&&g.value&&(e.width=void 0),e.minWidth||(e.minWidth=80),e.realWidth=Number((0,p.b0)(e.width)?e.minWidth:e.width),e),b=e=>{const t=e.type,n=o_[t]||{};Object.keys(n).forEach((t=>{const r=n[t];"className"===t||(0,p.b0)(r)||(e[t]=r)}));const r=i_(t);if(r){const t=`${(0,l.R1)(d.namespace)}-${r}`;e.className=e.className?`${e.className} ${t}`:t}return e},x=e=>{function t(e){var t;"ElTableColumn"===(null==(t=null==e?void 0:e.type)?void 0:t.name)&&(e.vParent=r)}(0,c.cy)(e)?e.forEach((e=>t(e))):t(e)},k=a=>{e.renderHeader?(0,w.U)("TableColumn","Comparing to render-header, scoped-slot header is easier to use. We recommend users to use scoped-slot header."):"selection"!==a.type&&(a.renderHeader=e=>(r.columnConfig.value["label"],(0,s.RG)(t,"header",e,(()=>[a.label])))),t["filter-icon"]&&(a.renderFilterIcon=e=>(0,s.RG)(t,"filter-icon",e));let i=a.renderCell;return"expand"===a.type?(a.renderCell=e=>(0,s.h)("div",{class:"cell"},[i(e)]),n.value.renderExpanded=e=>t.default?t.default(e):t.default):(i=i||s_,a.renderCell=e=>{let r=null;if(t.default){const n=t.default(e);r=n.some((e=>e.type!==s.Mw))?n:i(e)}else r=i(e);const{columns:o}=n.value.store.states,c=o.value.findIndex((e=>"default"===e.type)),u=f.value&&e.cellIndex===c,h=l_(e,u),p={class:"cell",style:{}};return a.showOverflowTooltip&&(p.class=`${p.class} ${(0,l.R1)(d.namespace)}-tooltip`,p.style={width:(e.column.realWidth||Number(e.column.width))-1+"px"}),x(r),(0,s.h)("div",p,[h,r])}),a},_=(...t)=>t.reduce(((t,n)=>((0,c.cy)(n)&&n.forEach((n=>{t[n]=e[n]})),t)),{}),C=(e,t)=>Array.prototype.indexOf.call(e,t),E=()=>{n.value.store.commit("updateColumnOrder",r.columnConfig.value)};return{columnId:a,realAlign:o,isSubColumn:i,realHeaderAlign:u,columnOrTableParent:h,setColumnWidth:y,setColumnForcedProps:b,setColumnRenders:k,getPropsData:_,getColumnElIndex:C,updateColumnOrder:E}}var h_={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:{type:[Boolean,Object],default:void 0},tooltipFormatter:Function,fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},filterClassName:String,index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every((e=>["ascending","descending",null].includes(e)))}};let p_=1;var f_=(0,s.pM)({name:"ElTableColumn",components:{ElCheckbox:Ao},props:h_,setup(e,{slots:t}){const n=(0,s.nI)(),r=(0,l.KR)({}),a=(0,s.EW)((()=>{let e=n.parent;while(e&&!e.tableId)e=e.parent;return e})),{registerNormalWatchers:i,registerComplexWatchers:o}=u_(a,e),{columnId:c,isSubColumn:u,realHeaderAlign:d,columnOrTableParent:h,setColumnWidth:f,setColumnForcedProps:m,setColumnRenders:g,getPropsData:v,getColumnElIndex:y,realAlign:b,updateColumnOrder:w}=d_(e,t,a),x=h.value;c.value=`${x.tableId||x.columnId}_column_${p_++}`,(0,s.KC)((()=>{u.value=a.value!==x;const t=e.type||"default",s=""===e.sortable||e.sortable,l=(0,p.b0)(e.showOverflowTooltip)?x.props.showOverflowTooltip:e.showOverflowTooltip,h=(0,p.b0)(e.tooltipFormatter)?x.props.tooltipFormatter:e.tooltipFormatter,y={...a_[t],id:c.value,type:t,property:e.prop||e.property,align:b,headerAlign:d,showOverflowTooltip:l,tooltipFormatter:h,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",filterClassName:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:s,index:e.index,rawColumnKey:n.vnode.key},w=["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],k=["sortMethod","sortBy","sortOrders"],_=["selectable","reserveSelection"],C=["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement","filterClassName"];let E=v(w,k,_,C);E=px(y,E);const R=vx(g,f,m);E=R(E),r.value=E,i(),o()})),(0,s.sV)((()=>{var e;const t=h.value,i=u.value?t.vnode.el.children:null==(e=t.refs.hiddenColumns)?void 0:e.children,o=()=>y(i||[],n.vnode.el);r.value.getColumnIndex=o;const s=o();s>-1&&a.value.store.commit("insertColumn",r.value,u.value?t.columnConfig.value:null,w)})),(0,s.xo)((()=>{const e=r.value.getColumnIndex,t=e?e():-1;t>-1&&a.value.store.commit("removeColumn",r.value,u.value?x.columnConfig.value:null,w)})),n.columnId=c.value,n.columnConfig=r},render(){var e,t,n;try{const r=null==(t=(e=this.$slots).default)?void 0:t.call(e,{row:{},column:{},$index:-1}),a=[];if((0,c.cy)(r))for(const e of r)"ElTableColumn"===(null==(n=e.type)?void 0:n.name)||2&e.shapeFlag?a.push(e):e.type===s.FK&&(0,c.cy)(e.children)&&e.children.forEach((e=>{1024===(null==e?void 0:e.patchFlag)||(0,c.Kg)(null==e?void 0:e.children)||a.push(e)}));const i=(0,s.h)("div",a);return i}catch(r){return(0,s.h)("div",[])}}});const m_=(0,E.GU)(n_,{TableColumn:f_}),g_=(0,E.WM)(f_);var v_=(e=>(e["ASC"]="asc",e["DESC"]="desc",e))(v_||{}),y_=(e=>(e["CENTER"]="center",e["RIGHT"]="right",e))(y_||{}),b_=(e=>(e["LEFT"]="left",e["RIGHT"]="right",e))(b_||{});const w_={["asc"]:"desc",["desc"]:"asc"},x_=Symbol("placeholder"),k_=(e,t,n)=>{var r;const a={flexGrow:0,flexShrink:0,...n?{}:{flexGrow:e.flexGrow||0,flexShrink:e.flexShrink||1}};n||(a.flexShrink=1);const i={...null!=(r=e.style)?r:{},...a,flexBasis:"auto",width:e.width};return t||(e.maxWidth&&(i.maxWidth=e.maxWidth),e.minWidth&&(i.minWidth=e.minWidth)),i};function __(e,t,n){const r=(0,s.EW)((()=>(0,l.R1)(t).map(((e,t)=>{var n,r;return{...e,key:null!=(r=null!=(n=e.key)?n:e.dataKey)?r:t}})))),a=(0,s.EW)((()=>(0,l.R1)(r).filter((e=>!e.hidden)))),i=(0,s.EW)((()=>(0,l.R1)(a).filter((e=>"left"===e.fixed||!0===e.fixed)))),o=(0,s.EW)((()=>(0,l.R1)(a).filter((e=>"right"===e.fixed)))),u=(0,s.EW)((()=>(0,l.R1)(a).filter((e=>!e.fixed)))),d=(0,s.EW)((()=>{const e=[];return(0,l.R1)(i).forEach((t=>{e.push({...t,placeholderSign:x_})})),(0,l.R1)(u).forEach((t=>{e.push(t)})),(0,l.R1)(o).forEach((t=>{e.push({...t,placeholderSign:x_})})),e})),h=(0,s.EW)((()=>(0,l.R1)(i).length||(0,l.R1)(o).length)),p=(0,s.EW)((()=>(0,l.R1)(r).reduce(((t,r)=>(t[r.key]=k_(r,(0,l.R1)(n),e.fixed),t)),{}))),f=(0,s.EW)((()=>(0,l.R1)(a).reduce(((e,t)=>e+t.width),0))),m=e=>(0,l.R1)(r).find((t=>t.key===e)),g=e=>(0,l.R1)(p)[e],v=(e,t)=>{e.width=t};function y(t){var n;const{key:r}=t.currentTarget.dataset;if(!r)return;const{sortState:a,sortBy:i}=e;let o=v_.ASC;o=(0,c.Gv)(a)?w_[a[r]]:w_[i.order],null==(n=e.onColumnSort)||n.call(e,{column:m(r),key:r,order:o})}return{columns:r,columnsStyles:p,columnsTotalWidth:f,fixedColumnsOnLeft:i,fixedColumnsOnRight:o,hasFixedColumns:h,mainColumns:d,normalColumns:u,visibleColumns:a,getColumn:m,getColumnStyle:g,updateColumnWidth:v,onColumnSorted:y}}const C_=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,onMaybeEndReached:a})=>{const i=(0,l.KR)({scrollLeft:0,scrollTop:0});function o(e){var a,i,o;const{scrollTop:s}=e;null==(a=t.value)||a.scrollTo(e),null==(i=n.value)||i.scrollToTop(s),null==(o=r.value)||o.scrollToTop(s)}function c(e){i.value=e,o(e)}function u(e){i.value.scrollTop=e,o((0,l.R1)(i))}function d(e){var n,r;i.value.scrollLeft=e,null==(r=null==(n=t.value)?void 0:n.scrollTo)||r.call(n,(0,l.R1)(i))}function h(t){var n;c(t),null==(n=e.onScroll)||n.call(e,t)}function p({scrollTop:e}){const{scrollTop:t}=(0,l.R1)(i);e!==t&&u(e)}function f(e,n="auto"){var r;null==(r=t.value)||r.scrollToRow(e,n)}return(0,s.wB)((()=>(0,l.R1)(i).scrollTop),((e,t)=>{e>t&&a()})),{scrollPos:i,scrollTo:c,scrollToLeft:d,scrollToTop:u,scrollToRow:f,onScroll:h,onVerticalScroll:p}},E_=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,tableInstance:a,ns:i,isScrolling:o})=>{const c=(0,s.nI)(),{emit:u}=c,d=(0,l.IJ)(!1),h=(0,l.KR)(e.defaultExpandedRowKeys||[]),f=(0,l.KR)(-1),m=(0,l.IJ)(null),g=(0,l.KR)({}),v=(0,l.KR)({}),y=(0,l.IJ)({}),b=(0,l.IJ)({}),w=(0,l.IJ)({}),x=(0,s.EW)((()=>(0,p.Et)(e.estimatedRowHeight)));function k(t){var n;null==(n=e.onRowsRendered)||n.call(e,t),t.rowCacheEnd>(0,l.R1)(f)&&(f.value=t.rowCacheEnd)}function _({hovered:e,rowKey:t}){if(o.value)return;const n=a.vnode.el,r=n.querySelectorAll(`[rowkey="${String(t)}"]`);r.forEach((t=>{e?t.classList.add(i.is("hovered")):t.classList.remove(i.is("hovered"))}))}function C({expanded:t,rowData:n,rowIndex:r,rowKey:a}){var i,o;const s=[...(0,l.R1)(h)],c=s.indexOf(a);t?-1===c&&s.push(a):c>-1&&s.splice(c,1),h.value=s,u("update:expandedRowKeys",s),null==(i=e.onRowExpand)||i.call(e,{expanded:t,rowData:n,rowIndex:r,rowKey:a}),null==(o=e.onExpandedRowsChange)||o.call(e,s)}const E=K((()=>{var e,a,i,o;d.value=!0,g.value={...(0,l.R1)(g),...(0,l.R1)(v)},R((0,l.R1)(m),!1),v.value={},m.value=null,null==(e=t.value)||e.forceUpdate(),null==(a=n.value)||a.forceUpdate(),null==(i=r.value)||i.forceUpdate(),null==(o=c.proxy)||o.$forceUpdate(),d.value=!1}),0);function R(e,a=!1){(0,l.R1)(x)&&[t,n,r].forEach((t=>{const n=(0,l.R1)(t);n&&n.resetAfterRowIndex(e,a)}))}function S(e,t,n){const r=(0,l.R1)(m);(null===r||r>n)&&(m.value=n),v.value[e]=t}function A({rowKey:e,height:t,rowIndex:n},r){r?r===b_.RIGHT?w.value[e]=t:y.value[e]=t:b.value[e]=t;const a=Math.max(...[y,w,b].map((t=>t.value[e]||0)));(0,l.R1)(g)[e]!==a&&(S(e,a,n),E())}return{expandedRowKeys:h,lastRenderedRowIndex:f,isDynamic:x,isResetting:d,rowHeights:g,resetAfterIndex:R,onRowExpanded:C,onRowHovered:_,onRowsRendered:k,onRowHeightChange:A}},R_=(e,{expandedRowKeys:t,lastRenderedRowIndex:n,resetAfterIndex:r})=>{const a=(0,l.KR)({}),i=(0,s.EW)((()=>{const n={},{data:r,rowKey:i}=e,o=(0,l.R1)(t);if(!o||!o.length)return r;const s=[],u=new Set;o.forEach((e=>u.add(e)));let d=r.slice();d.forEach((e=>n[e[i]]=0));while(d.length>0){const e=d.shift();s.push(e),u.has(e[i])&&(0,c.cy)(e.children)&&e.children.length>0&&(d=[...e.children,...d],e.children.forEach((t=>n[t[i]]=n[e[i]]+1)))}return a.value=n,s})),o=(0,s.EW)((()=>{const{data:t,expandColumnKey:n}=e;return n?(0,l.R1)(i):t}));return(0,s.wB)(o,((e,t)=>{e!==t&&(n.value=-1,r(0,!0))})),{data:o,depthMap:a}},S_=(e,t)=>e+t,A_=e=>(0,c.cy)(e)?e.reduce(S_,0):e,T_=(e,t,n={})=>(0,c.Tn)(e)?e(t):null!=e?e:n,M_=e=>(["width","maxWidth","minWidth","height"].forEach((t=>{e[t]=(0,b._V)(e[t])})),e),L_=e=>(0,s.vv)(e)?t=>(0,s.h)(e,t):e,O_=(e,{columnsTotalWidth:t,rowsHeight:n,fixedColumnsOnLeft:r,fixedColumnsOnRight:a})=>{const i=(0,s.EW)((()=>{const{fixed:n,width:r,vScrollbarSize:a}=e,i=r-a;return n?Math.max(Math.round((0,l.R1)(t)),i):i})),o=(0,s.EW)((()=>(0,l.R1)(i)+e.vScrollbarSize)),c=(0,s.EW)((()=>{const{height:t=0,maxHeight:r=0,footerHeight:a,hScrollbarSize:i}=e;if(r>0){const e=(0,l.R1)(g),t=(0,l.R1)(n),o=(0,l.R1)(m),s=o+e+t+i;return Math.min(s,r-a)}return t-a})),u=(0,s.EW)((()=>{const{maxHeight:t}=e,r=(0,l.R1)(c);if((0,p.Et)(t)&&t>0)return r;const a=(0,l.R1)(n)+(0,l.R1)(m)+(0,l.R1)(g);return Math.min(r,a)})),d=e=>e.width,h=(0,s.EW)((()=>A_((0,l.R1)(r).map(d)))),f=(0,s.EW)((()=>A_((0,l.R1)(a).map(d)))),m=(0,s.EW)((()=>A_(e.headerHeight))),g=(0,s.EW)((()=>{var t;return((null==(t=e.fixedData)?void 0:t.length)||0)*e.rowHeight})),v=(0,s.EW)((()=>(0,l.R1)(c)-(0,l.R1)(m)-(0,l.R1)(g))),y=(0,s.EW)((()=>{const{style:t={},height:n,width:r}=e;return M_({...t,height:n,width:r})})),w=(0,s.EW)((()=>M_({height:e.footerHeight}))),x=(0,s.EW)((()=>({top:(0,b._V)((0,l.R1)(m)),bottom:(0,b._V)(e.footerHeight),width:(0,b._V)(e.width)})));return{bodyWidth:i,fixedTableHeight:u,mainTableHeight:c,leftTableWidth:h,rightTableWidth:f,headerWidth:o,windowHeight:v,footerHeight:w,emptyStyle:x,rootStyle:y,headerHeight:m}};function I_(e){const t=(0,l.KR)(),n=(0,l.KR)(),r=(0,l.KR)(),{columns:a,columnsStyles:i,columnsTotalWidth:o,fixedColumnsOnLeft:u,fixedColumnsOnRight:d,hasFixedColumns:h,mainColumns:f,onColumnSorted:m}=__(e,(0,l.lW)(e,"columns"),(0,l.lW)(e,"fixed")),{scrollTo:g,scrollToLeft:y,scrollToTop:b,scrollToRow:w,onScroll:x,onVerticalScroll:k,scrollPos:_}=C_(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,onMaybeEndReached:ee}),C=(0,v.DU)("table-v2"),E=(0,s.nI)(),R=(0,l.IJ)(!1),{expandedRowKeys:S,lastRenderedRowIndex:A,isDynamic:T,isResetting:M,rowHeights:L,resetAfterIndex:O,onRowExpanded:I,onRowHeightChange:N,onRowHovered:B,onRowsRendered:D}=E_(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,tableInstance:E,ns:C,isScrolling:R}),{data:F,depthMap:$}=R_(e,{expandedRowKeys:S,lastRenderedRowIndex:A,resetAfterIndex:O}),P=(0,s.EW)((()=>{const{estimatedRowHeight:t,rowHeight:n}=e,r=(0,l.R1)(F);return(0,p.Et)(t)?Object.values((0,l.R1)(L)).reduce(((e,t)=>e+t),0):r.length*n})),{bodyWidth:z,fixedTableHeight:W,mainTableHeight:j,leftTableWidth:V,rightTableWidth:U,headerWidth:K,windowHeight:H,footerHeight:q,emptyStyle:G,rootStyle:X,headerHeight:Y}=O_(e,{columnsTotalWidth:o,fixedColumnsOnLeft:u,fixedColumnsOnRight:d,rowsHeight:P}),Q=(0,l.KR)(),Z=(0,s.EW)((()=>{const t=0===(0,l.R1)(F).length;return(0,c.cy)(e.fixedData)?0===e.fixedData.length&&t:t}));function J(t){const{estimatedRowHeight:n,rowHeight:r,rowKey:a}=e;return n?(0,l.R1)(L)[(0,l.R1)(F)[t][a]]||n:r}function ee(){const{onEndReached:t}=e;if(!t)return;const{scrollTop:n}=(0,l.R1)(_),r=(0,l.R1)(P),a=(0,l.R1)(H),i=r-(n+a)+e.hScrollbarSize;(0,l.R1)(A)>=0&&r===n+(0,l.R1)(j)-(0,l.R1)(Y)&&t(i)}return(0,s.wB)((()=>e.expandedRowKeys),(e=>S.value=e),{deep:!0}),{columns:a,containerRef:Q,mainTableRef:t,leftTableRef:n,rightTableRef:r,isDynamic:T,isResetting:M,isScrolling:R,hasFixedColumns:h,columnsStyles:i,columnsTotalWidth:o,data:F,expandedRowKeys:S,depthMap:$,fixedColumnsOnLeft:u,fixedColumnsOnRight:d,mainColumns:f,bodyWidth:z,emptyStyle:G,rootStyle:X,headerWidth:K,footerHeight:q,mainTableHeight:j,fixedTableHeight:W,leftTableWidth:V,rightTableWidth:U,showEmpty:Z,getRowHeight:J,onColumnSorted:m,onRowHovered:B,onRowExpanded:I,onRowsRendered:D,onRowHeightChange:N,scrollTo:g,scrollToLeft:y,scrollToTop:b,scrollToRow:w,onScroll:x,onVerticalScroll:k}}const N_=Symbol("tableV2"),B_=String,D_={type:(0,h.jq)(Array),required:!0},F_=((0,h.jq)(Object),{type:(0,h.jq)(Array)}),$_={...F_,required:!0},P_=String,z_={type:(0,h.jq)(Array),default:()=>(0,Gs.f)([])},W_={type:Number,required:!0},j_={type:(0,h.jq)([String,Number,Symbol]),default:"id"},V_={type:(0,h.jq)(Object)},U_=(0,h.b_)({class:String,columns:D_,columnsStyles:{type:(0,h.jq)(Object),required:!0},depth:Number,expandColumnKey:P_,estimatedRowHeight:{...ub.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:(0,h.jq)(Function)},onRowHover:{type:(0,h.jq)(Function)},onRowHeightChange:{type:(0,h.jq)(Function)},rowData:{type:(0,h.jq)(Object),required:!0},rowEventHandlers:{type:(0,h.jq)(Object)},rowIndex:{type:Number,required:!0},rowKey:j_,style:{type:(0,h.jq)(Object)}}),K_={type:Number,required:!0},H_=(0,h.b_)({class:String,columns:D_,fixedHeaderData:{type:(0,h.jq)(Array)},headerData:{type:(0,h.jq)(Array),required:!0},headerHeight:{type:(0,h.jq)([Number,Array]),default:50},rowWidth:K_,rowHeight:{type:Number,default:50},height:K_,width:K_}),q_=(0,h.b_)({columns:D_,data:$_,fixedData:F_,estimatedRowHeight:U_.estimatedRowHeight,width:W_,height:W_,headerWidth:W_,headerHeight:H_.headerHeight,bodyWidth:W_,rowHeight:W_,cache:ob.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:ub.scrollbarAlwaysOn,scrollbarStartGap:ub.scrollbarStartGap,scrollbarEndGap:ub.scrollbarEndGap,class:B_,style:V_,containerStyle:V_,getRowHeight:{type:(0,h.jq)(Function),required:!0},rowKey:U_.rowKey,onRowsRendered:{type:(0,h.jq)(Function)},onScroll:{type:(0,h.jq)(Function)}}),G_=(0,h.b_)({cache:q_.cache,estimatedRowHeight:U_.estimatedRowHeight,rowKey:j_,headerClass:{type:(0,h.jq)([String,Function])},headerProps:{type:(0,h.jq)([Object,Function])},headerCellProps:{type:(0,h.jq)([Object,Function])},headerHeight:H_.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:(0,h.jq)([String,Function])},rowProps:{type:(0,h.jq)([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:(0,h.jq)([Object,Function])},columns:D_,data:$_,dataGetter:{type:(0,h.jq)(Function)},fixedData:F_,expandColumnKey:U_.expandColumnKey,expandedRowKeys:z_,defaultExpandedRowKeys:z_,class:B_,fixed:Boolean,style:{type:(0,h.jq)(Object)},width:W_,height:W_,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:ub.hScrollbarSize,vScrollbarSize:ub.vScrollbarSize,scrollbarAlwaysOn:db.alwaysOn,sortBy:{type:(0,h.jq)(Object),default:()=>({})},sortState:{type:(0,h.jq)(Object),default:void 0},onColumnSort:{type:(0,h.jq)(Function)},onExpandedRowsChange:{type:(0,h.jq)(Function)},onEndReached:{type:(0,h.jq)(Function)},onRowExpand:U_.onRowExpand,onScroll:q_.onScroll,onRowsRendered:q_.onRowsRendered,rowEventHandlers:U_.rowEventHandlers}),X_="ElTableV2Header",Y_=(0,s.pM)({name:X_,props:H_,setup(e,{slots:t,expose:n}){const r=(0,v.DU)("table-v2"),a=(0,s.WQ)("tableV2GridScrollLeft"),i=(0,l.KR)(),o=(0,s.EW)((()=>M_({width:e.width,height:e.height}))),c=(0,s.EW)((()=>M_({width:e.rowWidth,height:e.height}))),u=(0,s.EW)((()=>sl((0,l.R1)(e.headerHeight)))),d=e=>{const t=(0,l.R1)(i);(0,s.dY)((()=>{(null==t?void 0:t.scroll)&&t.scroll({left:e})}))},h=()=>{const n=r.e("fixed-header-row"),{columns:a,fixedHeaderData:i,rowHeight:o}=e;return null==i?void 0:i.map(((e,r)=>{var i;const s=M_({height:o,width:"100%"});return null==(i=t.fixed)?void 0:i.call(t,{class:n,columns:a,rowData:e,rowIndex:-(r+1),style:s})}))},p=()=>{const n=r.e("dynamic-header-row"),{columns:a}=e;return(0,l.R1)(u).map(((e,r)=>{var i;const o=M_({width:"100%",height:e});return null==(i=t.dynamic)?void 0:i.call(t,{class:n,columns:a,headerIndex:r,style:o})}))};return(0,s.$u)((()=>{(null==a?void 0:a.value)&&d(a.value)})),n({scrollToLeft:d}),()=>{if(!(e.height<=0))return(0,s.bF)("div",{ref:i,class:e.class,style:(0,l.R1)(o),role:"rowgroup"},[(0,s.bF)("div",{style:(0,l.R1)(c),class:r.e("header")},[p(),h()])])}}});var Q_=Y_;const Z_=({atXEndEdge:e,atXStartEdge:t,atYEndEdge:n,atYStartEdge:r},a)=>{let i=null,o=0,s=0;const l=(a,i)=>{const o=a<=0&&t.value||a>=0&&e.value,s=i<=0&&r.value||i>=0&&n.value;return o&&s},c=e=>{(0,Xy.V)(i);let t=e.deltaX,n=e.deltaY;Math.abs(t)>Math.abs(n)?n=0:t=0,e.shiftKey&&0!==n&&(t=n,n=0),l(o,s)&&l(o+t,s+n)||(o+=t,s+=n,e.preventDefault(),i=(0,Xy.m)((()=>{a(o,s),o=0,s=0})))};return{hasReachedEdge:l,onWheel:c}},J_=({name:e,clearCache:t,getColumnPosition:n,getColumnStartIndexForOffset:r,getColumnStopIndexForStartIndex:a,getEstimatedTotalHeight:i,getEstimatedTotalWidth:o,getColumnOffset:d,getRowOffset:h,getRowPosition:f,getRowStartIndexForOffset:m,getRowStopIndexForStartIndex:g,initCache:b,injectToInstance:w,validateProps:x})=>(0,s.pM)({name:null!=e?e:"ElVirtualList",props:ub,emits:[Ly,Oy],setup(e,{emit:k,expose:_,slots:C}){const E=(0,v.DU)("vl");x(e);const R=(0,s.nI)(),S=(0,l.KR)(b(e,R));null==w||w(R,S);const A=(0,l.KR)(),T=(0,l.KR)(),M=(0,l.KR)(),L=(0,l.KR)(null),O=(0,l.KR)({isScrolling:!1,scrollLeft:(0,p.Et)(e.initScrollLeft)?e.initScrollLeft:0,scrollTop:(0,p.Et)(e.initScrollTop)?e.initScrollTop:0,updateRequested:!1,xAxisScrollDir:Iy,yAxisScrollDir:Iy}),I=Ty(),N=(0,s.EW)((()=>Number.parseInt(`${e.height}`,10))),B=(0,s.EW)((()=>Number.parseInt(`${e.width}`,10))),D=(0,s.EW)((()=>{const{totalColumn:t,totalRow:n,columnCache:i}=e,{isScrolling:o,xAxisScrollDir:s,scrollLeft:c}=(0,l.R1)(O);if(0===t||0===n)return[0,0,0,0];const u=r(e,c,(0,l.R1)(S)),d=a(e,u,c,(0,l.R1)(S)),h=o&&s!==Ny?1:Math.max(1,i),p=o&&s!==Iy?1:Math.max(1,i);return[Math.max(0,u-h),Math.max(0,Math.min(t-1,d+p)),u,d]})),F=(0,s.EW)((()=>{const{totalColumn:t,totalRow:n,rowCache:r}=e,{isScrolling:a,yAxisScrollDir:i,scrollTop:o}=(0,l.R1)(O);if(0===t||0===n)return[0,0,0,0];const s=m(e,o,(0,l.R1)(S)),c=g(e,s,o,(0,l.R1)(S)),u=a&&i!==Ny?1:Math.max(1,r),d=a&&i!==Iy?1:Math.max(1,r);return[Math.max(0,s-u),Math.max(0,Math.min(n-1,c+d)),s,c]})),$=(0,s.EW)((()=>i(e,(0,l.R1)(S)))),P=(0,s.EW)((()=>o(e,(0,l.R1)(S)))),z=(0,s.EW)((()=>{var t;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:e.direction,height:(0,p.Et)(e.height)?`${e.height}px`:e.height,width:(0,p.Et)(e.width)?`${e.width}px`:e.width},null!=(t=e.style)?t:{}]})),W=(0,s.EW)((()=>{const e=`${(0,l.R1)(P)}px`,t=`${(0,l.R1)($)}px`;return{height:t,pointerEvents:(0,l.R1)(O).isScrolling?"none":void 0,width:e}})),j=()=>{const{totalColumn:t,totalRow:n}=e;if(t>0&&n>0){const[e,t,n,r]=(0,l.R1)(D),[a,i,o,s]=(0,l.R1)(F);k(Ly,{columnCacheStart:e,columnCacheEnd:t,rowCacheStart:a,rowCacheEnd:i,columnVisibleStart:n,columnVisibleEnd:r,rowVisibleStart:o,rowVisibleEnd:s})}const{scrollLeft:r,scrollTop:a,updateRequested:i,xAxisScrollDir:o,yAxisScrollDir:s}=(0,l.R1)(O);k(Oy,{xAxisScrollDir:o,scrollLeft:r,yAxisScrollDir:s,scrollTop:a,updateRequested:i})},V=t=>{const{clientHeight:n,clientWidth:r,scrollHeight:a,scrollLeft:i,scrollTop:o,scrollWidth:c}=t.currentTarget,u=(0,l.R1)(O);if(u.scrollTop===o&&u.scrollLeft===i)return;let d=i;if(fb(e.direction))switch(gb()){case Uy:d=-i;break;case Hy:d=c-r-i;break}O.value={...u,isScrolling:!0,scrollLeft:d,scrollTop:Math.max(0,Math.min(o,a-n)),updateRequested:!0,xAxisScrollDir:hb(u.scrollLeft,d),yAxisScrollDir:hb(u.scrollTop,o)},(0,s.dY)((()=>Y())),Z(),j()},U=(e,t)=>{const n=(0,l.R1)(N),r=($.value-n)/t*e;q({scrollTop:Math.min($.value-n,r)})},K=(e,t)=>{const n=(0,l.R1)(B),r=(P.value-n)/t*e;q({scrollLeft:Math.min(P.value-n,r)})},{onWheel:H}=Z_({atXStartEdge:(0,s.EW)((()=>O.value.scrollLeft<=0)),atXEndEdge:(0,s.EW)((()=>O.value.scrollLeft>=P.value-(0,l.R1)(B))),atYStartEdge:(0,s.EW)((()=>O.value.scrollTop<=0)),atYEndEdge:(0,s.EW)((()=>O.value.scrollTop>=$.value-(0,l.R1)(N)))},((e,t)=>{var n,r,a,i;null==(r=null==(n=T.value)?void 0:n.onMouseUp)||r.call(n),null==(i=null==(a=M.value)?void 0:a.onMouseUp)||i.call(a);const o=(0,l.R1)(B),s=(0,l.R1)(N);q({scrollLeft:Math.min(O.value.scrollLeft+e,P.value-o),scrollTop:Math.min(O.value.scrollTop+t,$.value-s)})}));(0,u.MLh)(A,"wheel",H,{passive:!1});const q=({scrollLeft:e=O.value.scrollLeft,scrollTop:t=O.value.scrollTop})=>{e=Math.max(e,0),t=Math.max(t,0);const n=(0,l.R1)(O);t===n.scrollTop&&e===n.scrollLeft||(O.value={...n,xAxisScrollDir:hb(n.scrollLeft,e),yAxisScrollDir:hb(n.scrollTop,t),scrollLeft:e,scrollTop:t,updateRequested:!0},(0,s.dY)((()=>Y())),Z(),j())},G=(t=0,n=0,r=By)=>{const a=(0,l.R1)(O);n=Math.max(0,Math.min(n,e.totalColumn-1)),t=Math.max(0,Math.min(t,e.totalRow-1));const s=(0,y.F_)(E.namespace.value),c=(0,l.R1)(S),u=i(e,c),p=o(e,c);q({scrollLeft:d(e,n,r,a.scrollLeft,c,p>e.width?s:0),scrollTop:h(e,t,r,a.scrollTop,c,u>e.height?s:0)})},X=(r,a)=>{const{columnWidth:i,direction:o,rowHeight:s}=e,u=I.value(t&&i,t&&s,t&&o),d=`${r},${a}`;if((0,c.$3)(u,d))return u[d];{const[,t]=n(e,a,(0,l.R1)(S)),i=(0,l.R1)(S),s=fb(o),[c,h]=f(e,r,i),[p]=n(e,a,i);return u[d]={position:"absolute",left:s?void 0:`${t}px`,right:s?`${t}px`:void 0,top:`${h}px`,height:`${c}px`,width:`${p}px`},u[d]}},Y=()=>{O.value.isScrolling=!1,(0,s.dY)((()=>{I.value(-1,null,null)}))};(0,s.sV)((()=>{if(!Q.oc)return;const{initScrollLeft:t,initScrollTop:n}=e,r=(0,l.R1)(A);r&&((0,p.Et)(t)&&(r.scrollLeft=t),(0,p.Et)(n)&&(r.scrollTop=n)),j()}));const Z=()=>{const{direction:t}=e,{scrollLeft:n,scrollTop:r,updateRequested:a}=(0,l.R1)(O),i=(0,l.R1)(A);if(a&&i){if(t===Vy)switch(gb()){case Uy:i.scrollLeft=-n;break;case Ky:i.scrollLeft=n;break;default:{const{clientWidth:e,scrollWidth:t}=i;i.scrollLeft=t-e-n;break}}else i.scrollLeft=Math.max(0,n);i.scrollTop=Math.max(0,r)}},{resetAfterColumnIndex:J,resetAfterRowIndex:ee,resetAfter:te}=R.proxy;_({windowRef:A,innerRef:L,getItemStyleCache:I,scrollTo:q,scrollToItem:G,states:O,resetAfterColumnIndex:J,resetAfterRowIndex:ee,resetAfter:te});const ne=()=>{const{scrollbarAlwaysOn:t,scrollbarStartGap:n,scrollbarEndGap:r,totalColumn:a,totalRow:i}=e,o=(0,l.R1)(B),c=(0,l.R1)(N),u=(0,l.R1)(P),d=(0,l.R1)($),{scrollLeft:h,scrollTop:p}=(0,l.R1)(O),f=(0,s.h)(yb,{ref:T,alwaysOn:t,startGap:n,endGap:r,class:E.e("horizontal"),clientSize:o,layout:"horizontal",onScroll:K,ratio:100*o/u,scrollFrom:h/(u-o),total:i,visible:!0}),m=(0,s.h)(yb,{ref:M,alwaysOn:t,startGap:n,endGap:r,class:E.e("vertical"),clientSize:c,layout:"vertical",onScroll:U,ratio:100*c/d,scrollFrom:p/(d-c),total:a,visible:!0});return{horizontalScrollbar:f,verticalScrollbar:m}},re=()=>{var t;const[n,r]=(0,l.R1)(D),[a,i]=(0,l.R1)(F),{data:o,totalColumn:c,totalRow:u,useIsScrolling:d,itemKey:h}=e,p=[];if(u>0&&c>0)for(let e=a;e<=i;e++)for(let a=n;a<=r;a++){const n=h({columnIndex:a,data:o,rowIndex:e});p.push((0,s.h)(s.FK,{key:n},null==(t=C.default)?void 0:t.call(C,{columnIndex:a,data:o,isScrolling:d?(0,l.R1)(O).isScrolling:void 0,style:X(e,a),rowIndex:e})))}return p},ae=()=>{const t=(0,s.$y)(e.innerElement),n=re();return[(0,s.h)(t,{style:(0,l.R1)(W),ref:L},(0,c.Kg)(t)?n:{default:()=>n})]},ie=()=>{const t=(0,s.$y)(e.containerElement),{horizontalScrollbar:n,verticalScrollbar:r}=ne(),a=ae();return(0,s.h)("div",{key:0,class:E.e("wrapper"),role:e.role},[(0,s.h)(t,{class:e.className,style:(0,l.R1)(z),onScroll:V,ref:A},(0,c.Kg)(t)?a:{default:()=>a}),n,r])};return ie}}),{max:eC,min:tC,floor:nC}=Math,rC={column:"columnWidth",row:"rowHeight"},aC={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},iC=(e,t,n,r)=>{const[a,i,o]=[n[r],e[rC[r]],n[aC[r]]];if(t>o){let e=0;if(o>=0){const t=a[o];e=t.offset+t.size}for(let n=o+1;n<=t;n++){const t=i(n);a[n]={offset:e,size:t},e+=t}n[aC[r]]=t}return a[t]},oC=(e,t,n,r,a,i)=>{while(n<=r){const o=n+nC((r-n)/2),s=iC(e,o,t,i).offset;if(s===a)return o;s<a?n=o+1:r=o-1}return eC(0,n-1)},sC=(e,t,n,r,a)=>{const i="column"===a?e.totalColumn:e.totalRow;let o=1;while(n<i&&iC(e,n,t,a).offset<r)n+=o,o*=2;return oC(e,t,nC(n/2),tC(n,i-1),r,a)},lC=(e,t,n,r)=>{const[a,i]=[t[r],t[aC[r]]],o=i>0?a[i].offset:0;return o>=n?oC(e,t,0,i,n,r):sC(e,t,eC(0,i),n,r)},cC=({totalRow:e},{estimatedRowHeight:t,lastVisitedRowIndex:n,row:r})=>{let a=0;if(n>=e&&(n=e-1),n>=0){const e=r[n];a=e.offset+e.size}const i=e-n-1,o=i*t;return a+o},uC=({totalColumn:e},{column:t,estimatedColumnWidth:n,lastVisitedColumnIndex:r})=>{let a=0;if(r>e&&(r=e-1),r>=0){const e=t[r];a=e.offset+e.size}const i=e-r-1,o=i*n;return a+o},dC={column:uC,row:cC},hC=(e,t,n,r,a,i,o)=>{const[s,l]=["row"===i?e.height:e.width,dC[i]],c=iC(e,t,a,i),u=l(e,a),d=eC(0,tC(u-s,c.offset)),h=eC(0,c.offset-s+o+c.size);switch(n===Dy&&(n=r>=h-s&&r<=d+s?By:$y),n){case Fy:return d;case Py:return h;case $y:return Math.round(h+(d-h)/2);case By:default:return r>=h&&r<=d?r:h>d||r<h?h:d}},pC=J_({name:"ElDynamicSizeGrid",getColumnPosition:(e,t,n)=>{const r=iC(e,t,n,"column");return[r.size,r.offset]},getRowPosition:(e,t,n)=>{const r=iC(e,t,n,"row");return[r.size,r.offset]},getColumnOffset:(e,t,n,r,a,i)=>hC(e,t,n,r,a,"column",i),getRowOffset:(e,t,n,r,a,i)=>hC(e,t,n,r,a,"row",i),getColumnStartIndexForOffset:(e,t,n)=>lC(e,n,t,"column"),getColumnStopIndexForStartIndex:(e,t,n,r)=>{const a=iC(e,t,r,"column"),i=n+e.width;let o=a.offset+a.size,s=t;while(s<e.totalColumn-1&&o<i)s++,o+=iC(e,t,r,"column").size;return s},getEstimatedTotalHeight:cC,getEstimatedTotalWidth:uC,getRowStartIndexForOffset:(e,t,n)=>lC(e,n,t,"row"),getRowStopIndexForStartIndex:(e,t,n,r)=>{const{totalRow:a,height:i}=e,o=iC(e,t,r,"row"),s=n+i;let l=o.size+o.offset,c=t;while(c<a-1&&l<s)c++,l+=iC(e,c,r,"row").size;return c},injectToInstance:(e,t)=>{const n=({columnIndex:n,rowIndex:r},a)=>{var i,o;a=!!(0,p.b0)(a)||a,(0,p.Et)(n)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,n-1)),(0,p.Et)(r)&&(t.value.lastVisitedRowIndex=Math.min(t.value.lastVisitedRowIndex,r-1)),null==(i=e.exposed)||i.getItemStyleCache.value(-1,null,null),a&&(null==(o=e.proxy)||o.$forceUpdate())},r=(e,t)=>{n({columnIndex:e},t)},a=(e,t)=>{n({rowIndex:e},t)};Object.assign(e.proxy,{resetAfterColumnIndex:r,resetAfterRowIndex:a,resetAfter:n})},initCache:({estimatedColumnWidth:e=My,estimatedRowHeight:t=My})=>{const n={column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}};return n},clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{0}}),fC=J_({name:"ElFixedSizeGrid",getColumnPosition:({columnWidth:e},t)=>[e,t*e],getRowPosition:({rowHeight:e},t)=>[e,t*e],getEstimatedTotalHeight:({totalRow:e,rowHeight:t})=>t*e,getEstimatedTotalWidth:({totalColumn:e,columnWidth:t})=>t*e,getColumnOffset:({totalColumn:e,columnWidth:t,width:n},r,a,i,o,s)=>{n=Number(n);const l=Math.max(0,e*t-n),c=Math.min(l,r*t),u=Math.max(0,r*t-n+s+t);switch("smart"===a&&(a=i>=u-n&&i<=c+n?By:$y),a){case Fy:return c;case Py:return u;case $y:{const e=Math.round(u+(c-u)/2);return e<Math.ceil(n/2)?0:e>l+Math.floor(n/2)?l:e}case By:default:return i>=u&&i<=c?i:u>c||i<u?u:c}},getRowOffset:({rowHeight:e,height:t,totalRow:n},r,a,i,o,s)=>{t=Number(t);const l=Math.max(0,n*e-t),c=Math.min(l,r*e),u=Math.max(0,r*e-t+s+e);switch(a===Dy&&(a=i>=u-t&&i<=c+t?By:$y),a){case Fy:return c;case Py:return u;case $y:{const e=Math.round(u+(c-u)/2);return e<Math.ceil(t/2)?0:e>l+Math.floor(t/2)?l:e}case By:default:return i>=u&&i<=c?i:u>c||i<u?u:c}},getColumnStartIndexForOffset:({columnWidth:e,totalColumn:t},n)=>Math.max(0,Math.min(t-1,Math.floor(n/e))),getColumnStopIndexForStartIndex:({columnWidth:e,totalColumn:t,width:n},r,a)=>{const i=r*e,o=Math.ceil((n+a-i)/e);return Math.max(0,Math.min(t-1,r+o-1))},getRowStartIndexForOffset:({rowHeight:e,totalRow:t},n)=>Math.max(0,Math.min(t-1,Math.floor(n/e))),getRowStopIndexForStartIndex:({rowHeight:e,totalRow:t,height:n},r,a)=>{const i=r*e,o=Math.ceil((n+a-i)/e);return Math.max(0,Math.min(t-1,r+o-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:e,rowHeight:t})=>{0}}),mC="ElTableV2Grid",gC=e=>{const t=(0,l.KR)(),n=(0,l.KR)(),r=(0,l.KR)(0),a=(0,s.EW)((()=>{const{data:t,rowHeight:n,estimatedRowHeight:r}=e;if(!r)return t.length*n})),i=(0,s.EW)((()=>{const{fixedData:t,rowHeight:n}=e;return((null==t?void 0:t.length)||0)*n})),o=(0,s.EW)((()=>A_(e.headerHeight))),u=(0,s.EW)((()=>{const{height:t}=e;return Math.max(0,t-(0,l.R1)(o)-(0,l.R1)(i))})),d=(0,s.EW)((()=>(0,l.R1)(o)+(0,l.R1)(i)>0)),h=({data:t,rowIndex:n})=>t[n][e.rowKey];function f({rowCacheStart:t,rowCacheEnd:n,rowVisibleStart:r,rowVisibleEnd:a}){var i;null==(i=e.onRowsRendered)||i.call(e,{rowCacheStart:t,rowCacheEnd:n,rowVisibleStart:r,rowVisibleEnd:a})}function m(e,t){var r;null==(r=n.value)||r.resetAfterRowIndex(e,t)}function g(e,a){const i=(0,l.R1)(t),o=(0,l.R1)(n);(0,c.Gv)(e)?(null==i||i.scrollToLeft(e.scrollLeft),r.value=e.scrollLeft,null==o||o.scrollTo(e)):(null==i||i.scrollToLeft(e),r.value=e,null==o||o.scrollTo({scrollLeft:e,scrollTop:a}))}function v(e){var t;null==(t=(0,l.R1)(n))||t.scrollTo({scrollTop:e})}function y(e,t){var r;null==(r=(0,l.R1)(n))||r.scrollToItem(e,1,t)}function b(){var e,r;null==(e=(0,l.R1)(n))||e.$forceUpdate(),null==(r=(0,l.R1)(t))||r.$forceUpdate()}return(0,s.wB)((()=>e.bodyWidth),(()=>{var t;(0,p.Et)(e.estimatedRowHeight)&&(null==(t=n.value)||t.resetAfter({columnIndex:0},!1))})),{bodyRef:n,forceUpdate:b,fixedRowHeight:i,gridHeight:u,hasHeader:d,headerHeight:o,headerRef:t,totalHeight:a,itemKey:h,onItemRendered:f,resetAfterRowIndex:m,scrollTo:g,scrollToTop:v,scrollToRow:y,scrollLeft:r}},vC=(0,s.pM)({name:mC,props:q_,setup(e,{slots:t,expose:n}){const{ns:r}=(0,s.WQ)(N_),{bodyRef:a,fixedRowHeight:i,gridHeight:o,hasHeader:c,headerRef:u,headerHeight:d,totalHeight:h,forceUpdate:f,itemKey:m,onItemRendered:g,resetAfterRowIndex:v,scrollTo:y,scrollToTop:b,scrollToRow:w,scrollLeft:x}=gC(e);(0,s.Gt)("tableV2GridScrollLeft",x),n({forceUpdate:f,totalHeight:h,scrollTo:y,scrollToTop:b,scrollToRow:w,resetAfterRowIndex:v});const k=()=>e.bodyWidth;return()=>{const{cache:n,columns:h,data:f,fixedData:v,useIsScrolling:y,scrollbarAlwaysOn:b,scrollbarEndGap:w,scrollbarStartGap:x,style:_,rowHeight:C,bodyWidth:E,estimatedRowHeight:R,headerWidth:S,height:A,width:T,getRowHeight:M,onScroll:L}=e,O=(0,p.Et)(R),I=O?pC:fC,N=(0,l.R1)(d);return(0,s.bF)("div",{role:"table",class:[r.e("table"),e.class],style:_},[(0,s.bF)(I,{ref:a,data:f,useIsScrolling:y,itemKey:m,columnCache:0,columnWidth:O?k:E,totalColumn:1,totalRow:f.length,rowCache:n,rowHeight:O?M:C,width:T,height:(0,l.R1)(o),class:r.e("body"),role:"rowgroup",scrollbarStartGap:x,scrollbarEndGap:w,scrollbarAlwaysOn:b,onScroll:L,onItemRendered:g,perfMode:!1},{default:e=>{var n;const r=f[e.rowIndex];return null==(n=t.row)?void 0:n.call(t,{...e,columns:h,rowData:r})}}),(0,l.R1)(c)&&(0,s.bF)(Q_,{ref:u,class:r.e("header-wrapper"),columns:h,headerData:f,headerHeight:e.headerHeight,fixedHeaderData:v,rowWidth:S,rowHeight:C,width:T,height:Math.min(N+(0,l.R1)(i),A)},{dynamic:t.header,fixed:t.row})])}}});var yC=vC;function bC(e){return"function"===typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!(0,s.vv)(e)}const wC=(e,{slots:t})=>{const{mainTableRef:n,...r}=e;return(0,s.bF)(yC,(0,s.v6)({ref:n},r),bC(t)?t:{default:()=>[t]})};var xC=wC;function kC(e){return"function"===typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!(0,s.vv)(e)}const _C=(e,{slots:t})=>{if(!e.columns.length)return;const{leftTableRef:n,...r}=e;return(0,s.bF)(yC,(0,s.v6)({ref:n},r),kC(t)?t:{default:()=>[t]})};var CC=_C;function EC(e){return"function"===typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!(0,s.vv)(e)}const RC=(e,{slots:t})=>{if(!e.columns.length)return;const{rightTableRef:n,...r}=e;return(0,s.bF)(yC,(0,s.v6)({ref:n},r),EC(t)?t:{default:()=>[t]})};var SC=RC;const AC=e=>{const{isScrolling:t}=(0,s.WQ)(N_),n=(0,l.KR)(!1),r=(0,l.KR)(),a=(0,s.EW)((()=>(0,p.Et)(e.estimatedRowHeight)&&e.rowIndex>=0)),i=(t=!1)=>{const a=(0,l.R1)(r);if(!a)return;const{columns:i,onRowHeightChange:o,rowKey:c,rowIndex:u,style:d}=e,{height:h}=a.getBoundingClientRect();n.value=!0,(0,s.dY)((()=>{if(t||h!==Number.parseInt(d.height)){const e=i[0],t=(null==e?void 0:e.placeholderSign)===x_;null==o||o({rowKey:c,height:h,rowIndex:u},e&&!t&&e.fixed)}}))},o=(0,s.EW)((()=>{const{rowData:t,rowIndex:n,rowKey:r,onRowHover:a}=e,i=e.rowEventHandlers||{},o={};return Object.entries(i).forEach((([e,a])=>{(0,c.Tn)(a)&&(o[e]=e=>{a({event:e,rowData:t,rowIndex:n,rowKey:r})})})),a&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach((({name:e,hovered:i})=>{const s=o[e];o[e]=e=>{a({event:e,hovered:i,rowData:t,rowIndex:n,rowKey:r}),null==s||s(e)}})),o})),u=t=>{const{onRowExpand:n,rowData:r,rowIndex:a,rowKey:i}=e;null==n||n({expanded:t,rowData:r,rowIndex:a,rowKey:i})};return(0,s.sV)((()=>{(0,l.R1)(a)&&i(!0)})),{isScrolling:t,measurable:a,measured:n,rowRef:r,eventHandlers:o,onExpand:u}},TC="ElTableV2TableRow",MC=(0,s.pM)({name:TC,props:U_,setup(e,{expose:t,slots:n,attrs:r}){const{eventHandlers:a,isScrolling:i,measurable:o,measured:u,rowRef:d,onExpand:h}=AC(e);return t({onExpand:h}),()=>{const{columns:t,columnsStyles:p,expandColumnKey:f,depth:m,rowData:g,rowIndex:v,style:y}=e;let b=t.map(((e,r)=>{const a=(0,c.cy)(g.children)&&g.children.length>0&&e.key===f;return n.cell({column:e,columns:t,columnIndex:r,depth:m,style:p[e.key],rowData:g,rowIndex:v,isScrolling:(0,l.R1)(i),expandIconProps:a?{rowData:g,rowIndex:v,onExpand:h}:void 0})}));if(n.row&&(b=n.row({cells:b.map((e=>(0,c.cy)(e)&&1===e.length?e[0]:e)),style:y,columns:t,depth:m,rowData:g,rowIndex:v,isScrolling:(0,l.R1)(i)})),(0,l.R1)(o)){const{height:t,...n}=y||{},i=(0,l.R1)(u);return(0,s.bF)("div",(0,s.v6)({ref:d,class:e.class,style:i?y:n,role:"row"},r,(0,l.R1)(a)),[b])}return(0,s.bF)("div",(0,s.v6)(r,{ref:d,class:e.class,style:y,role:"row"},(0,l.R1)(a)),[b])}}});var LC=MC;function OC(e){return"function"===typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!(0,s.vv)(e)}const IC=(e,{slots:t})=>{const{columns:n,columnsStyles:r,depthMap:a,expandColumnKey:i,expandedRowKeys:o,estimatedRowHeight:l,hasFixedColumns:c,rowData:u,rowIndex:d,style:h,isScrolling:p,rowProps:f,rowClass:m,rowKey:g,rowEventHandlers:v,ns:y,onRowHovered:b,onRowExpanded:w}=e,x=T_(m,{columns:n,rowData:u,rowIndex:d},""),k=T_(f,{columns:n,rowData:u,rowIndex:d}),_=u[g],C=a[_]||0,E=Boolean(i),R=d<0,S=[y.e("row"),x,{[y.e(`row-depth-${C}`)]:E&&d>=0,[y.is("expanded")]:E&&o.includes(_),[y.is("fixed")]:!C&&R,[y.is("customized")]:Boolean(t.row)}],A=c?b:void 0,T={...k,columns:n,columnsStyles:r,class:S,depth:C,expandColumnKey:i,estimatedRowHeight:R?void 0:l,isScrolling:p,rowIndex:d,rowData:u,rowKey:_,rowEventHandlers:v,style:h},M=e=>{null==A||A({hovered:!0,rowKey:_,event:e,rowData:u,rowIndex:d})},L=e=>{null==A||A({hovered:!1,rowKey:_,event:e,rowData:u,rowIndex:d})};return(0,s.bF)(LC,(0,s.v6)(T,{onRowExpand:w,onMouseenter:M,onMouseleave:L,rowkey:_}),OC(t)?t:{default:()=>[t]})};var NC=IC;const BC=(e,{slots:t})=>{var n;const{cellData:r,style:a}=e,i=(null==(n=null==r?void 0:r.toString)?void 0:n.call(r))||"",o=(0,s.RG)(t,"default",e,(()=>[i]));return(0,s.bF)("div",{class:e.class,title:i,style:a},[o])};BC.displayName="ElTableV2Cell",BC.inheritAttrs=!1;var DC=BC;const FC=e=>{const{expanded:t,expandable:n,onExpand:r,style:a,size:i}=e,o={onClick:n?()=>r(!t):void 0,class:e.class};return(0,s.bF)(A.tk,(0,s.v6)(o,{size:i,style:a}),{default:()=>[(0,s.bF)(H.Qpb,null,null)]})};var $C=FC;const PC=({columns:e,column:t,columnIndex:n,depth:r,expandIconProps:a,isScrolling:i,rowData:o,rowIndex:l,style:u,expandedRowKeys:d,ns:h,cellProps:p,expandColumnKey:f,indentSize:m,iconSize:g,rowKey:v},{slots:y})=>{const b=M_(u);if(t.placeholderSign===x_)return(0,s.bF)("div",{class:h.em("row-cell","placeholder"),style:b},null);const{cellRenderer:w,dataKey:x,dataGetter:k}=t,_=(0,c.Tn)(k)?k({columns:e,column:t,columnIndex:n,rowData:o,rowIndex:l}):(0,kg.A)(o,null!=x?x:""),C=T_(p,{cellData:_,columns:e,column:t,columnIndex:n,rowIndex:l,rowData:o}),E={class:h.e("cell-text"),columns:e,column:t,columnIndex:n,cellData:_,isScrolling:i,rowData:o,rowIndex:l},R=L_(w),S=R?R(E):(0,s.RG)(y,"default",E,(()=>[(0,s.bF)(DC,E,null)])),A=[h.e("row-cell"),t.class,t.align===y_.CENTER&&h.is("align-center"),t.align===y_.RIGHT&&h.is("align-right")],T=l>=0&&f&&t.key===f,M=l>=0&&d.includes(o[v]);let L;const O=`margin-inline-start: ${r*m}px;`;return T&&(L=(0,c.Gv)(a)?(0,s.bF)($C,(0,s.v6)(a,{class:[h.e("expand-icon"),h.is("expanded",M)],size:g,expanded:M,style:O,expandable:!0}),null):(0,s.bF)("div",{style:[O,`width: ${g}px; height: ${g}px;`].join(" ")},null)),(0,s.bF)("div",(0,s.v6)({class:A,style:b},C,{role:"cell"}),[L,S])};PC.inheritAttrs=!1;var zC=PC;const WC=(0,h.b_)({class:String,columns:D_,columnsStyles:{type:(0,h.jq)(Object),required:!0},headerIndex:Number,style:{type:(0,h.jq)(Object)}}),jC=(0,s.pM)({name:"ElTableV2HeaderRow",props:WC,setup(e,{slots:t}){return()=>{const{columns:n,columnsStyles:r,headerIndex:a,style:i}=e;let o=n.map(((e,i)=>t.cell({columns:n,column:e,columnIndex:i,headerIndex:a,style:r[e.key]})));return t.header&&(o=t.header({cells:o.map((e=>(0,c.cy)(e)&&1===e.length?e[0]:e)),columns:n,headerIndex:a})),(0,s.bF)("div",{class:e.class,style:i,role:"row"},[o])}}});var VC=jC;function UC(e){return"function"===typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!(0,s.vv)(e)}const KC=({columns:e,columnsStyles:t,headerIndex:n,style:r,headerClass:a,headerProps:i,ns:o},{slots:l})=>{const c={columns:e,headerIndex:n},u=[o.e("header-row"),T_(a,c,""),{[o.is("customized")]:Boolean(l.header)}],d={...T_(i,c),columnsStyles:t,class:u,columns:e,headerIndex:n,style:r};return(0,s.bF)(VC,d,UC(l)?l:{default:()=>[l]})};var HC=KC;const qC=(e,{slots:t})=>(0,s.RG)(t,"default",e,(()=>{var t,n;return[(0,s.bF)("div",{class:e.class,title:null==(t=e.column)?void 0:t.title},[null==(n=e.column)?void 0:n.title])]}));qC.displayName="ElTableV2HeaderCell",qC.inheritAttrs=!1;var GC=qC;const XC=e=>{const{sortOrder:t}=e;return(0,s.bF)(A.tk,{size:14,class:e.class},{default:()=>[t===v_.ASC?(0,s.bF)(H.MzZ,null,null):(0,s.bF)(H.L97,null,null)]})};var YC=XC;const QC=(e,{slots:t})=>{const{column:n,ns:r,style:a,onColumnSorted:i}=e,o=M_(a);if(n.placeholderSign===x_)return(0,s.bF)("div",{class:r.em("header-row-cell","placeholder"),style:o},null);const{headerCellRenderer:l,headerClass:c,sortable:u}=n,d={...e,class:r.e("header-cell-text")},h=L_(l),p=h?h(d):(0,s.RG)(t,"default",d,(()=>[(0,s.bF)(GC,d,null)])),{sortBy:f,sortState:m,headerCellProps:g}=e;let v,y;if(m){const e=m[n.key];v=Boolean(w_[e]),y=v?e:v_.ASC}else v=n.key===f.key,y=v?f.order:v_.ASC;const b=[r.e("header-cell"),T_(c,e,""),n.align===y_.CENTER&&r.is("align-center"),n.align===y_.RIGHT&&r.is("align-right"),u&&r.is("sortable")],w={...T_(g,e),onClick:n.sortable?i:void 0,class:b,style:o,["data-key"]:n.key};return(0,s.bF)("div",(0,s.v6)(w,{role:"columnheader"}),[p,u&&(0,s.bF)(YC,{class:[r.e("sort-icon"),v&&r.is("sorting")],sortOrder:y},null)])};var ZC=QC;const JC=(e,{slots:t})=>{var n;return(0,s.bF)("div",{class:e.class,style:e.style},[null==(n=t.default)?void 0:n.call(t)])};JC.displayName="ElTableV2Footer";var eE=JC;const tE=(e,{slots:t})=>{const n=(0,s.RG)(t,"default",{},(()=>[(0,s.bF)(_p,null,null)]));return(0,s.bF)("div",{class:e.class,style:e.style},[n])};tE.displayName="ElTableV2Empty";var nE=tE;const rE=(e,{slots:t})=>{var n;return(0,s.bF)("div",{class:e.class,style:e.style},[null==(n=t.default)?void 0:n.call(t)])};rE.displayName="ElTableV2Overlay";var aE=rE;function iE(e){return"function"===typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!(0,s.vv)(e)}const oE="ElTableV2",sE=(0,s.pM)({name:oE,props:G_,setup(e,{slots:t,expose:n}){const r=(0,v.DU)("table-v2"),{columnsStyles:a,fixedColumnsOnLeft:i,fixedColumnsOnRight:o,mainColumns:c,mainTableHeight:u,fixedTableHeight:d,leftTableWidth:h,rightTableWidth:p,data:f,depthMap:m,expandedRowKeys:g,hasFixedColumns:y,mainTableRef:b,leftTableRef:w,rightTableRef:x,isDynamic:k,isResetting:_,isScrolling:C,bodyWidth:E,emptyStyle:R,rootStyle:S,headerWidth:A,footerHeight:T,showEmpty:M,scrollTo:L,scrollToLeft:O,scrollToTop:I,scrollToRow:N,getRowHeight:B,onColumnSorted:D,onRowHeightChange:F,onRowHovered:$,onRowExpanded:P,onRowsRendered:z,onScroll:W,onVerticalScroll:j}=I_(e);return n({scrollTo:L,scrollToLeft:O,scrollToTop:I,scrollToRow:N}),(0,s.Gt)(N_,{ns:r,isResetting:_,isScrolling:C}),()=>{const{cache:n,cellProps:v,estimatedRowHeight:_,expandColumnKey:C,fixedData:L,headerHeight:O,headerClass:I,headerProps:N,headerCellProps:V,sortBy:U,sortState:K,rowHeight:H,rowClass:q,rowEventHandlers:G,rowKey:X,rowProps:Y,scrollbarAlwaysOn:Q,indentSize:Z,iconSize:J,useIsScrolling:ee,vScrollbarSize:te,width:ne}=e,re=(0,l.R1)(f),ae={cache:n,class:r.e("main"),columns:(0,l.R1)(c),data:re,fixedData:L,estimatedRowHeight:_,bodyWidth:(0,l.R1)(E)+te,headerHeight:O,headerWidth:(0,l.R1)(A),height:(0,l.R1)(u),mainTableRef:b,rowKey:X,rowHeight:H,scrollbarAlwaysOn:Q,scrollbarStartGap:2,scrollbarEndGap:te,useIsScrolling:ee,width:ne,getRowHeight:B,onRowsRendered:z,onScroll:W},ie=(0,l.R1)(h),oe=(0,l.R1)(d),se={cache:n,class:r.e("left"),columns:(0,l.R1)(i),data:re,fixedData:L,estimatedRowHeight:_,leftTableRef:w,rowHeight:H,bodyWidth:ie,headerWidth:ie,headerHeight:O,height:oe,rowKey:X,scrollbarAlwaysOn:Q,scrollbarStartGap:2,scrollbarEndGap:te,useIsScrolling:ee,width:ie,getRowHeight:B,onScroll:j},le=(0,l.R1)(p),ce=le+te,ue={cache:n,class:r.e("right"),columns:(0,l.R1)(o),data:re,fixedData:L,estimatedRowHeight:_,rightTableRef:x,rowHeight:H,bodyWidth:ce,headerWidth:ce,headerHeight:O,height:oe,rowKey:X,scrollbarAlwaysOn:Q,scrollbarStartGap:2,scrollbarEndGap:te,width:ce,style:`--${(0,l.R1)(r.namespace)}-table-scrollbar-size: ${te}px`,useIsScrolling:ee,getRowHeight:B,onScroll:j},de=(0,l.R1)(a),he={ns:r,depthMap:(0,l.R1)(m),columnsStyles:de,expandColumnKey:C,expandedRowKeys:(0,l.R1)(g),estimatedRowHeight:_,hasFixedColumns:(0,l.R1)(y),rowProps:Y,rowClass:q,rowKey:X,rowEventHandlers:G,onRowHovered:$,onRowExpanded:P,onRowHeightChange:F},pe={cellProps:v,expandColumnKey:C,indentSize:Z,iconSize:J,rowKey:X,expandedRowKeys:(0,l.R1)(g),ns:r},fe={ns:r,headerClass:I,headerProps:N,columnsStyles:de},me={ns:r,sortBy:U,sortState:K,headerCellProps:V,onColumnSorted:D},ge={row:e=>(0,s.bF)(NC,(0,s.v6)(e,he),{row:t.row,cell:e=>{let n;return t.cell?(0,s.bF)(zC,(0,s.v6)(e,pe,{style:de[e.column.key]}),iE(n=t.cell(e))?n:{default:()=>[n]}):(0,s.bF)(zC,(0,s.v6)(e,pe,{style:de[e.column.key]}),null)}}),header:e=>(0,s.bF)(HC,(0,s.v6)(e,fe),{header:t.header,cell:e=>{let n;return t["header-cell"]?(0,s.bF)(ZC,(0,s.v6)(e,me,{style:de[e.column.key]}),iE(n=t["header-cell"](e))?n:{default:()=>[n]}):(0,s.bF)(ZC,(0,s.v6)(e,me,{style:de[e.column.key]}),null)}})},ve=[e.class,r.b(),r.e("root"),{[r.is("dynamic")]:(0,l.R1)(k)}],ye={class:r.e("footer"),style:(0,l.R1)(T)};return(0,s.bF)("div",{class:ve,style:(0,l.R1)(S)},[(0,s.bF)(xC,ae,iE(ge)?ge:{default:()=>[ge]}),(0,s.bF)(CC,se,iE(ge)?ge:{default:()=>[ge]}),(0,s.bF)(SC,ue,iE(ge)?ge:{default:()=>[ge]}),t.footer&&(0,s.bF)(eE,ye,{default:t.footer}),(0,l.R1)(M)&&(0,s.bF)(nE,{class:r.e("empty"),style:(0,l.R1)(R)},{default:t.empty}),t.overlay&&(0,s.bF)(aE,{class:r.e("overlay")},{default:t.overlay})])}}});var lE=sE;const cE=(0,h.b_)({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:(0,h.jq)(Function)}}),uE=e=>{const t=(0,l.KR)(),n=(0,l.KR)(0),r=(0,l.KR)(0);let a;return(0,s.sV)((()=>{a=(0,u.wYm)(t,(([e])=>{const{width:t,height:a}=e.contentRect,{paddingLeft:i,paddingRight:o,paddingTop:s,paddingBottom:l}=getComputedStyle(e.target),c=Number.parseInt(i)||0,u=Number.parseInt(o)||0,d=Number.parseInt(s)||0,h=Number.parseInt(l)||0;n.value=t-c-u,r.value=a-d-h})).stop})),(0,s.xo)((()=>{null==a||a()})),(0,s.wB)([n,r],(([t,n])=>{var r;null==(r=e.onResize)||r.call(e,{width:t,height:n})})),{sizer:t,width:n,height:r}},dE=(0,s.pM)({name:"ElAutoResizer",props:cE,setup(e,{slots:t}){const n=(0,v.DU)("auto-resizer"),{height:r,width:a,sizer:i}=uE(e),o={width:"100%",height:"100%"};return()=>{var e;return(0,s.bF)("div",{ref:i,class:n.b(),style:o},[null==(e=t.default)?void 0:e.call(t,{height:r.value,width:a.value})])}}});var hE=dE;const pE=(0,E.GU)(lE),fE=(0,E.GU)(hE),mE=Symbol("tabsRootContextKey"),gE=(0,h.b_)({tabs:{type:(0,h.jq)(Array),default:()=>(0,Gs.f)([])}}),vE="ElTabBar",yE=(0,s.pM)({name:vE}),bE=(0,s.pM)({...yE,props:gE,setup(e,{expose:t}){const n=e,r=(0,s.nI)(),a=(0,s.WQ)(mE);a||(0,w.$)(vE,"<el-tabs><el-tab-bar /></el-tabs>");const i=(0,v.DU)("tabs"),o=(0,l.KR)(),d=(0,l.KR)(),h=()=>{let e=0,t=0;const i=["top","bottom"].includes(a.props.tabPosition)?"width":"height",o="width"===i?"x":"y",s="x"===o?"left":"top";return n.tabs.every((n=>{var a,o;const l=null==(o=null==(a=r.parent)?void 0:a.refs)?void 0:o[`tab-${n.uid}`];if(!l)return!1;if(!n.active)return!0;e=l[`offset${os(s)}`],t=l[`client${os(i)}`];const c=window.getComputedStyle(l);return"width"===i&&(t-=Number.parseFloat(c.paddingLeft)+Number.parseFloat(c.paddingRight),e+=Number.parseFloat(c.paddingLeft)),!1})),{[i]:`${t}px`,transform:`translate${os(o)}(${e}px)`}},p=()=>d.value=h(),f=[],m=()=>{var e;f.forEach((e=>e.stop())),f.length=0;const t=null==(e=r.parent)?void 0:e.refs;if(t)for(const n in t)if(n.startsWith("tab-")){const e=t[n];e&&f.push((0,u.wYm)(e,p))}};(0,s.wB)((()=>n.tabs),(async()=>{await(0,s.dY)(),p(),m()}),{immediate:!0});const g=(0,u.wYm)(o,(()=>p()));return(0,s.xo)((()=>{f.forEach((e=>e.stop())),f.length=0,g.stop()})),t({ref:o,update:p}),(e,t)=>((0,s.uX)(),(0,s.CE)("div",{ref_key:"barRef",ref:o,class:(0,c.C4)([(0,l.R1)(i).e("active-bar"),(0,l.R1)(i).is((0,l.R1)(a).props.tabPosition)]),style:(0,c.Tr)(d.value)},null,6))}});var wE=(0,g.A)(bE,[["__file","tab-bar.vue"]]);const xE=(0,h.b_)({panes:{type:(0,h.jq)(Array),default:()=>(0,Gs.f)([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),kE={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},_E="ElTabNav",CE=(0,s.pM)({name:_E,props:xE,emits:kE,setup(e,{expose:t,emit:n}){const r=(0,s.WQ)(mE);r||(0,w.$)(_E,"<el-tabs><tab-nav /></el-tabs>");const a=(0,v.DU)("tabs"),i=(0,u.fho)(),o=(0,u.esz)(),c=(0,l.KR)(),d=(0,l.KR)(),h=(0,l.KR)(),p=(0,l.KR)(),f=(0,l.KR)(!1),m=(0,l.KR)(0),g=(0,l.KR)(!1),y=(0,l.KR)(!0),b=(0,s.EW)((()=>["top","bottom"].includes(r.props.tabPosition)?"width":"height")),x=(0,s.EW)((()=>{const e="width"===b.value?"X":"Y";return{transform:`translate${e}(-${m.value}px)`}})),k=()=>{if(!c.value)return;const e=c.value[`offset${os(b.value)}`],t=m.value;if(!t)return;const n=t>e?t-e:0;m.value=n},_=()=>{if(!c.value||!d.value)return;const e=d.value[`offset${os(b.value)}`],t=c.value[`offset${os(b.value)}`],n=m.value;if(e-n<=t)return;const r=e-n>2*t?n+t:e-t;m.value=r},C=async()=>{const e=d.value;if(!f.value||!h.value||!c.value||!e)return;await(0,s.dY)();const t=h.value.querySelector(".is-active");if(!t)return;const n=c.value,a=["top","bottom"].includes(r.props.tabPosition),i=t.getBoundingClientRect(),o=n.getBoundingClientRect(),l=a?e.offsetWidth-o.width:e.offsetHeight-o.height,u=m.value;let p=u;a?(i.left<o.left&&(p=u-(o.left-i.left)),i.right>o.right&&(p=u+i.right-o.right)):(i.top<o.top&&(p=u-(o.top-i.top)),i.bottom>o.bottom&&(p=u+(i.bottom-o.bottom))),p=Math.max(p,0),m.value=Math.min(p,l)},E=()=>{var t;if(!d.value||!c.value)return;e.stretch&&(null==(t=p.value)||t.update());const n=d.value[`offset${os(b.value)}`],r=c.value[`offset${os(b.value)}`],a=m.value;r<n?(f.value=f.value||{},f.value.prev=a,f.value.next=a+r<n,n-a<r&&(m.value=n-r)):(f.value=!1,a>0&&(m.value=0))},R=e=>{let t=0;switch(e.code){case $n.R.left:case $n.R.up:t=-1;break;case $n.R.right:case $n.R.down:t=1;break;default:return}const n=Array.from(e.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),r=n.indexOf(e.target);let a=r+t;a<0?a=n.length-1:a>=n.length&&(a=0),n[a].focus({preventScroll:!0}),n[a].click(),S()},S=()=>{y.value&&(g.value=!0)},T=()=>g.value=!1;return(0,s.wB)(i,(e=>{"hidden"===e?y.value=!1:"visible"===e&&setTimeout((()=>y.value=!0),50)})),(0,s.wB)(o,(e=>{e?setTimeout((()=>y.value=!0),50):y.value=!1})),(0,u.wYm)(h,E),(0,s.sV)((()=>setTimeout((()=>C()),0))),(0,s.$u)((()=>E())),t({scrollToActiveTab:C,removeFocus:T}),()=>{const t=f.value?[(0,s.bF)("span",{class:[a.e("nav-prev"),a.is("disabled",!f.value.prev)],onClick:k},[(0,s.bF)(A.tk,null,{default:()=>[(0,s.bF)(H.nkM,null,null)]})]),(0,s.bF)("span",{class:[a.e("nav-next"),a.is("disabled",!f.value.next)],onClick:_},[(0,s.bF)(A.tk,null,{default:()=>[(0,s.bF)(H.Qpb,null,null)]})])]:null,i=e.panes.map(((t,i)=>{var o,l,c,u;const d=t.uid,h=t.props.disabled,p=null!=(l=null!=(o=t.props.name)?o:t.index)?l:`${i}`,f=!h&&(t.isClosable||e.editable);t.index=`${i}`;const m=f?(0,s.bF)(A.tk,{class:"is-icon-close",onClick:e=>n("tabRemove",t,e)},{default:()=>[(0,s.bF)(H.bm,null,null)]}):null,v=(null==(u=(c=t.slots).label)?void 0:u.call(c))||t.props.label,y=!h&&t.active?0:-1;return(0,s.bF)("div",{ref:`tab-${d}`,class:[a.e("item"),a.is(r.props.tabPosition),a.is("active",t.active),a.is("disabled",h),a.is("closable",f),a.is("focus",g.value)],id:`tab-${p}`,key:`tab-${d}`,"aria-controls":`pane-${p}`,role:"tab","aria-selected":t.active,tabindex:y,onFocus:()=>S(),onBlur:()=>T(),onClick:e=>{T(),n("tabClick",t,p,e)},onKeydown:e=>{!f||e.code!==$n.R.delete&&e.code!==$n.R.backspace||n("tabRemove",t,e)}},[v,m])}));return(0,s.bF)("div",{ref:h,class:[a.e("nav-wrap"),a.is("scrollable",!!f.value),a.is(r.props.tabPosition)]},[t,(0,s.bF)("div",{class:a.e("nav-scroll"),ref:c},[(0,s.bF)("div",{class:[a.e("nav"),a.is(r.props.tabPosition),a.is("stretch",e.stretch&&["top","bottom"].includes(r.props.tabPosition))],ref:d,style:x.value,role:"tablist",onKeydown:R},[e.type?null:(0,s.bF)(wE,{ref:p,tabs:[...e.panes]},null),i])])])}}}),EE=(0,h.b_)({type:{type:String,values:["card","border-card",""],default:""},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:(0,h.jq)(Function),default:()=>!0},stretch:Boolean}),RE=e=>(0,c.Kg)(e)||(0,p.Et)(e),SE={[d.l4]:e=>RE(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>RE(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>RE(e),tabAdd:()=>!0},AE=(0,s.pM)({name:"ElTabs",props:EE,emits:SE,setup(e,{emit:t,slots:n,expose:r}){var a;const i=(0,v.DU)("tabs"),o=(0,s.EW)((()=>["left","right"].includes(e.tabPosition))),{children:c,addChild:u,removeChild:h}=Di((0,s.nI)(),"ElTabPane"),f=(0,l.KR)(),m=(0,l.KR)(null!=(a=e.modelValue)?a:"0"),g=async(n,r=!1)=>{var a,i;if(m.value!==n&&!(0,p.b0)(n))try{let o;if(e.beforeLeave){const t=e.beforeLeave(n,m.value);o=t instanceof Promise?await t:t}else o=!0;!1!==o&&(m.value=n,r&&(t(d.l4,n),t("tabChange",n)),null==(i=null==(a=f.value)?void 0:a.removeFocus)||i.call(a))}catch(o){}},y=(e,n,r)=>{e.props.disabled||(g(n,!0),t("tabClick",e,r))},b=(e,n)=>{e.props.disabled||(0,p.b0)(e.props.name)||(n.stopPropagation(),t("edit",e.props.name,"remove"),t("tabRemove",e.props.name))},w=()=>{t("edit",void 0,"add"),t("tabAdd")};(0,s.wB)((()=>e.modelValue),(e=>g(e))),(0,s.wB)(m,(async()=>{var e;await(0,s.dY)(),null==(e=f.value)||e.scrollToActiveTab()})),(0,s.Gt)(mE,{props:e,currentName:m,registerPane:e=>{c.value.push(e)},sortPane:u,unregisterPane:h}),r({currentName:m});const x=({render:e})=>e();return()=>{const t=n["add-icon"],r=e.editable||e.addable?(0,s.bF)("div",{class:[i.e("new-tab"),o.value&&i.e("new-tab-vertical")],tabindex:"0",onClick:w,onKeydown:e=>{[$n.R.enter,$n.R.numpadEnter].includes(e.code)&&w()}},[t?(0,s.RG)(n,"add-icon"):(0,s.bF)(A.tk,{class:i.is("icon-plus")},{default:()=>[(0,s.bF)(H.FWt,null,null)]})]):null,a=(0,s.bF)("div",{class:[i.e("header"),o.value&&i.e("header-vertical"),i.is(e.tabPosition)]},[(0,s.bF)(x,{render:()=>{const t=c.value.some((e=>e.slots.label));return(0,s.bF)(CE,{ref:f,currentName:m.value,editable:e.editable,type:e.type,panes:c.value,stretch:e.stretch,onTabClick:y,onTabRemove:b},{$stable:!t})}},null),r]),l=(0,s.bF)("div",{class:i.e("content")},[(0,s.RG)(n,"default")]);return(0,s.bF)("div",{class:[i.b(),i.m(e.tabPosition),{[i.m("card")]:"card"===e.type,[i.m("border-card")]:"border-card"===e.type}]},[l,a])}}});var TE=AE;const ME=(0,h.b_)({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),LE="ElTabPane",OE=(0,s.pM)({name:LE}),IE=(0,s.pM)({...OE,props:ME,setup(e){const t=e,n=(0,s.nI)(),r=(0,s.Ht)(),a=(0,s.WQ)(mE);a||(0,w.$)(LE,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const i=(0,v.DU)("tab-pane"),o=(0,l.KR)(),u=(0,s.EW)((()=>t.closable||a.props.closable)),d=(0,Q.uA)((()=>{var e;return a.currentName.value===(null!=(e=t.name)?e:o.value)})),h=(0,l.KR)(d.value),p=(0,s.EW)((()=>{var e;return null!=(e=t.name)?e:o.value})),f=(0,Q.uA)((()=>!t.lazy||h.value||d.value));(0,s.wB)(d,(e=>{e&&(h.value=!0)}));const m=(0,l.Kh)({uid:n.uid,slots:r,props:t,paneName:p,active:d,index:o,isClosable:u});return a.registerPane(m),(0,s.sV)((()=>{a.sortPane(m)})),(0,s.hi)((()=>{a.unregisterPane(m.uid)})),(e,t)=>(0,l.R1)(f)?(0,s.bo)(((0,s.uX)(),(0,s.CE)("div",{key:0,id:`pane-${(0,l.R1)(p)}`,class:(0,c.C4)((0,l.R1)(i).b()),role:"tabpanel","aria-hidden":!(0,l.R1)(d),"aria-labelledby":`tab-${(0,l.R1)(p)}`},[(0,s.RG)(e.$slots,"default")],10,["id","aria-hidden","aria-labelledby"])),[[S.aG,(0,l.R1)(d)]]):(0,s.Q3)("v-if",!0)}});var NE=(0,g.A)(IE,[["__file","tab-pane.vue"]]);const BE=(0,E.GU)(TE,{TabPane:NE}),DE=(0,E.WM)(NE),FE=(0,h.b_)({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:ca.I,default:""},truncated:Boolean,lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}}),$E=(0,s.pM)({name:"ElText"}),PE=(0,s.pM)({...$E,props:FE,setup(e){const t=e,n=(0,l.KR)(),r=(0,ra.NV)(),a=(0,v.DU)("text"),i=(0,s.EW)((()=>[a.b(),a.m(t.type),a.m(r.value),a.is("truncated",t.truncated),a.is("line-clamp",!(0,p.b0)(t.lineClamp))])),o=(0,s.OA)().title,u=()=>{var e,r,a,i,s;if(o)return;let l=!1;const c=(null==(e=n.value)?void 0:e.textContent)||"";if(t.truncated){const e=null==(r=n.value)?void 0:r.offsetWidth,t=null==(a=n.value)?void 0:a.scrollWidth;e&&t&&t>e&&(l=!0)}else if(!(0,p.b0)(t.lineClamp)){const e=null==(i=n.value)?void 0:i.offsetHeight,t=null==(s=n.value)?void 0:s.scrollHeight;e&&t&&t>e&&(l=!0)}l?n.value.setAttribute("title",c):n.value.removeAttribute("title")};return(0,s.sV)(u),(0,s.$u)(u),(e,t)=>((0,s.uX)(),(0,s.Wv)((0,s.$y)(e.tag),{ref_key:"textRef",ref:n,class:(0,c.C4)((0,l.R1)(i)),style:(0,c.Tr)({"-webkit-line-clamp":e.lineClamp})},{default:(0,s.k6)((()=>[(0,s.RG)(e.$slots,"default")])),_:3},8,["class","style"]))}});var zE=(0,g.A)(PE,[["__file","text.vue"]]);const WE=(0,E.GU)(zE);var jE=n(58);const VE=(0,h.b_)({...qc,parsedValue:{type:(0,h.jq)(Array)}}),UE=(0,s.pM)({__name:"panel-time-range",props:VE,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,r=(e,t)=>{const n=[];for(let r=e;r<=t;r++)n.push(r);return n},{t:a,lang:i}=(0,La.Ym)(),o=(0,v.DU)("time"),u=(0,v.DU)("picker"),d=(0,s.WQ)("EP_PICKER_BASE"),{arrowControl:h,disabledHours:p,disabledMinutes:f,disabledSeconds:m,defaultValue:g}=d.props,y=(0,s.EW)((()=>[o.be("range-picker","body"),o.be("panel","content"),o.is("arrow",h),C.value?"has-seconds":""])),b=(0,s.EW)((()=>[o.be("range-picker","body"),o.be("panel","content"),o.is("arrow",h),C.value?"has-seconds":""])),w=(0,s.EW)((()=>n.parsedValue[0])),x=(0,s.EW)((()=>n.parsedValue[1])),k=Mu(n),_=()=>{t("pick",k.value,!1)},C=(0,s.EW)((()=>n.format.includes("ss"))),E=(0,s.EW)((()=>n.format.includes("A")?"A":n.format.includes("a")?"a":"")),R=(e=!1)=>{t("pick",[w.value,x.value],e)},S=e=>{M(e.millisecond(0),x.value)},A=e=>{M(w.value,e.millisecond(0))},T=e=>{const t=e.map((e=>ja(e).locale(i.value))),n=W(t);return t[0].isSame(n[0])&&t[1].isSame(n[1])},M=(e,r)=>{n.visible&&t("pick",[e,r],!0)},L=(0,s.EW)((()=>w.value>x.value)),O=(0,l.KR)([0,2]),I=(e,n)=>{t("select-range",e,n,"min"),O.value=[e,n]},N=(0,s.EW)((()=>C.value?11:8)),B=(e,n)=>{t("select-range",e,n,"max");const r=(0,l.R1)(N);O.value=[e+r,n+r]},D=e=>{const t=C.value?[0,3,6,11,14,17]:[0,3,8,11],n=["hours","minutes"].concat(C.value?["seconds"]:[]),r=t.indexOf(O.value[0]),a=(r+e+t.length)%t.length,i=t.length/2;a<i?K["start_emitSelectRange"](n[a]):K["end_emitSelectRange"](n[a-i])},F=e=>{const t=e.code,{left:n,right:r,up:a,down:i}=$n.R;if([n,r].includes(t)){const r=t===n?-1:1;return D(r),void e.preventDefault()}if([a,i].includes(t)){const n=t===a?-1:1,r=O.value[0]<N.value?"start":"end";return K[`${r}_scrollDown`](n),void e.preventDefault()}},$=(e,t)=>{const n=p?p(e):[],a="start"===e,i=t||(a?x.value:w.value),o=i.hour(),s=a?r(o+1,23):r(0,o-1);return(0,jE.A)(n,s)},P=(e,t,n)=>{const a=f?f(e,t):[],i="start"===t,o=n||(i?x.value:w.value),s=o.hour();if(e!==s)return a;const l=o.minute(),c=i?r(l+1,59):r(0,l-1);return(0,jE.A)(a,c)},z=(e,t,n,a)=>{const i=m?m(e,t,n):[],o="start"===n,s=a||(o?x.value:w.value),l=s.hour(),c=s.minute();if(e!==l||t!==c)return i;const u=s.second(),d=o?r(u+1,59):r(0,u-1);return(0,jE.A)(i,d)},W=([e,t])=>[H(e,"start",!0,t),H(t,"end",!1,e)],{getAvailableHours:j,getAvailableMinutes:V,getAvailableSeconds:U}=Tu($,P,z),{timePickerOptions:K,getAvailableTime:H,onSetOption:q}=Ru({getAvailableHours:j,getAvailableMinutes:V,getAvailableSeconds:U}),G=e=>e?(0,c.cy)(e)?e.map((e=>ja(e,n.format).locale(i.value))):ja(e,n.format).locale(i.value):null,X=e=>e?(0,c.cy)(e)?e.map((e=>e.format(n.format))):e.format(n.format):null,Y=()=>{if((0,c.cy)(g))return g.map((e=>ja(e).locale(i.value)));const e=ja(g).locale(i.value);return[e,e.add(60,"m")]};return t("set-picker-option",["formatToString",X]),t("set-picker-option",["parseUserInput",G]),t("set-picker-option",["isValidValue",T]),t("set-picker-option",["handleKeydownInput",F]),t("set-picker-option",["getDefaultValue",Y]),t("set-picker-option",["getRangeAvailableTime",W]),(e,t)=>e.actualVisible?((0,s.uX)(),(0,s.CE)("div",{key:0,class:(0,c.C4)([(0,l.R1)(o).b("range-picker"),(0,l.R1)(u).b("panel")])},[(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(o).be("range-picker","content"))},[(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(o).be("range-picker","cell"))},[(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(o).be("range-picker","header"))},(0,c.v_)((0,l.R1)(a)("el.datepicker.startTime")),3),(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(y))},[(0,s.bF)(zu,{ref:"minSpinner",role:"start","show-seconds":(0,l.R1)(C),"am-pm-mode":(0,l.R1)(E),"arrow-control":(0,l.R1)(h),"spinner-date":(0,l.R1)(w),"disabled-hours":$,"disabled-minutes":P,"disabled-seconds":z,onChange:S,onSetOption:(0,l.R1)(q),onSelectRange:I},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(o).be("range-picker","cell"))},[(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(o).be("range-picker","header"))},(0,c.v_)((0,l.R1)(a)("el.datepicker.endTime")),3),(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(b))},[(0,s.bF)(zu,{ref:"maxSpinner",role:"end","show-seconds":(0,l.R1)(C),"am-pm-mode":(0,l.R1)(E),"arrow-control":(0,l.R1)(h),"spinner-date":(0,l.R1)(x),"disabled-hours":$,"disabled-minutes":P,"disabled-seconds":z,onChange:A,onSetOption:(0,l.R1)(q),onSelectRange:B},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(o).be("panel","footer"))},[(0,s.Lk)("button",{type:"button",class:(0,c.C4)([(0,l.R1)(o).be("panel","btn"),"cancel"]),onClick:e=>_()},(0,c.v_)((0,l.R1)(a)("el.datepicker.cancel")),11,["onClick"]),(0,s.Lk)("button",{type:"button",class:(0,c.C4)([(0,l.R1)(o).be("panel","btn"),"confirm"]),disabled:(0,l.R1)(L),onClick:e=>R()},(0,c.v_)((0,l.R1)(a)("el.datepicker.confirm")),11,["disabled","onClick"])],2)],2)):(0,s.Q3)("v-if",!0)}});var KE=(0,g.A)(UE,[["__file","panel-time-range.vue"]]);ja.extend($c);var HE=(0,s.pM)({name:"ElTimePicker",install:null,props:{...Gc,isRange:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,t){const n=(0,l.KR)(),[r,a]=e.isRange?["timerange",KE]:["time",ju],i=e=>t.emit("update:modelValue",e);return(0,s.Gt)("ElPopperOptions",e.popperOptions),t.expose({focus:()=>{var e;null==(e=n.value)||e.focus()},blur:()=>{var e;null==(e=n.value)||e.blur()},handleOpen:()=>{var e;null==(e=n.value)||e.handleOpen()},handleClose:()=>{var e;null==(e=n.value)||e.handleClose()}}),()=>{var t;const o=null!=(t=e.format)?t:Ou;return(0,s.bF)(vd,(0,s.v6)(e,{ref:n,type:r,format:o,"onUpdate:modelValue":i}),{default:e=>(0,s.bF)(a,e,null)})}}});const qE=(0,E.GU)(HE),GE=(0,h.b_)({format:{type:String,default:"HH:mm"},modelValue:String,disabled:Boolean,editable:{type:Boolean,default:!0},effect:{type:(0,h.jq)(String),default:"light"},clearable:{type:Boolean,default:!0},size:ao.mU,placeholder:String,start:{type:String,default:"09:00"},end:{type:String,default:"18:00"},step:{type:String,default:"00:30"},minTime:String,maxTime:String,includeEndTime:{type:Boolean,default:!1},name:String,prefixIcon:{type:(0,h.jq)([String,Object]),default:()=>H.zD7},clearIcon:{type:(0,h.jq)([String,Object]),default:()=>H.R$5},...Ms.bs}),XE=e=>{const t=(e||"").split(":");if(t.length>=2){let n=Number.parseInt(t[0],10);const r=Number.parseInt(t[1],10),a=e.toUpperCase();return a.includes("AM")&&12===n?n=0:a.includes("PM")&&12!==n&&(n+=12),{hours:n,minutes:r}}return null},YE=(e,t)=>{const n=XE(e);if(!n)return-1;const r=XE(t);if(!r)return-1;const a=n.minutes+60*n.hours,i=r.minutes+60*r.hours;return a===i?0:a>i?1:-1},QE=e=>`${e}`.padStart(2,"0"),ZE=e=>`${QE(e.hours)}:${QE(e.minutes)}`,JE=(e,t)=>{const n=XE(e);if(!n)return"";const r=XE(t);if(!r)return"";const a={hours:n.hours,minutes:n.minutes};return a.minutes+=r.minutes,a.hours+=r.hours,a.hours+=Math.floor(a.minutes/60),a.minutes=a.minutes%60,ZE(a)},eR=(0,s.pM)({name:"ElTimeSelect"}),tR=(0,s.pM)({...eR,props:GE,emits:["change","blur","focus","clear","update:modelValue"],setup(e,{expose:t}){const n=e;ja.extend($c);const{Option:r}=Xg,a=(0,v.DU)("input"),i=(0,l.KR)(),o=(0,ra.CB)(),{lang:u}=(0,La.Ym)(),d=(0,s.EW)((()=>n.modelValue)),h=(0,s.EW)((()=>{const e=XE(n.start);return e?ZE(e):null})),p=(0,s.EW)((()=>{const e=XE(n.end);return e?ZE(e):null})),f=(0,s.EW)((()=>{const e=XE(n.step);return e?ZE(e):null})),m=(0,s.EW)((()=>{const e=XE(n.minTime||"");return e?ZE(e):null})),g=(0,s.EW)((()=>{const e=XE(n.maxTime||"");return e?ZE(e):null})),y=(0,s.EW)((()=>{var e;const t=[],r=(e,n)=>{t.push({value:e,disabled:YE(n,m.value||"-1:-1")<=0||YE(n,g.value||"100:100")>=0})};if(n.start&&n.end&&n.step){let a,i=h.value;while(i&&p.value&&YE(i,p.value)<=0)a=ja(i,"HH:mm").locale(u.value).format(n.format),r(a,i),i=JE(i,f.value);if(n.includeEndTime&&p.value&&(null==(e=t[t.length-1])?void 0:e.value)!==p.value){const e=ja(p.value,"HH:mm").locale(u.value).format(n.format);r(e,p.value)}}return t})),b=()=>{var e,t;null==(t=null==(e=i.value)?void 0:e.blur)||t.call(e)},w=()=>{var e,t;null==(t=null==(e=i.value)?void 0:e.focus)||t.call(e)};return t({blur:b,focus:w}),(e,t)=>((0,s.uX)(),(0,s.Wv)((0,l.R1)(Xg),{ref_key:"select",ref:i,"model-value":(0,l.R1)(d),disabled:(0,l.R1)(o),clearable:e.clearable,"clear-icon":e.clearIcon,size:e.size,effect:e.effect,placeholder:e.placeholder,"default-first-option":"",filterable:e.editable,"empty-values":e.emptyValues,"value-on-clear":e.valueOnClear,"onUpdate:modelValue":t=>e.$emit("update:modelValue",t),onChange:t=>e.$emit("change",t),onBlur:t=>e.$emit("blur",t),onFocus:t=>e.$emit("focus",t),onClear:()=>e.$emit("clear")},{prefix:(0,s.k6)((()=>[e.prefixIcon?((0,s.uX)(),(0,s.Wv)((0,l.R1)(A.tk),{key:0,class:(0,c.C4)((0,l.R1)(a).e("prefix-icon"))},{default:(0,s.k6)((()=>[((0,s.uX)(),(0,s.Wv)((0,s.$y)(e.prefixIcon)))])),_:1},8,["class"])):(0,s.Q3)("v-if",!0)])),default:(0,s.k6)((()=>[((0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)((0,l.R1)(y),(e=>((0,s.uX)(),(0,s.Wv)((0,l.R1)(r),{key:e.value,label:e.value,value:e.value,disabled:e.disabled},null,8,["label","value","disabled"])))),128))])),_:1},8,["model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable","empty-values","value-on-clear","onUpdate:modelValue","onChange","onBlur","onFocus","onClear"]))}});var nR=(0,g.A)(tR,[["__file","time-select.vue"]]);const rR=(0,E.GU)(nR),aR=(0,s.pM)({name:"ElTimeline",setup(e,{slots:t}){const n=(0,v.DU)("timeline");return(0,s.Gt)("timeline",t),()=>(0,s.h)("ul",{class:[n.b()]},[(0,s.RG)(t,"default")])}}),iR=(0,h.b_)({timestamp:{type:String,default:""},hideTimestamp:Boolean,center:Boolean,placement:{type:String,values:["top","bottom"],default:"bottom"},type:{type:String,values:["primary","success","warning","danger","info"],default:""},color:{type:String,default:""},size:{type:String,values:["normal","large"],default:"normal"},icon:{type:T.Ze},hollow:Boolean}),oR=(0,s.pM)({name:"ElTimelineItem"}),sR=(0,s.pM)({...oR,props:iR,setup(e){const t=e,n=(0,v.DU)("timeline-item"),r=(0,s.EW)((()=>[n.e("node"),n.em("node",t.size||""),n.em("node",t.type||""),n.is("hollow",t.hollow)]));return(e,t)=>((0,s.uX)(),(0,s.CE)("li",{class:(0,c.C4)([(0,l.R1)(n).b(),{[(0,l.R1)(n).e("center")]:e.center}])},[(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(n).e("tail"))},null,2),e.$slots.dot?(0,s.Q3)("v-if",!0):((0,s.uX)(),(0,s.CE)("div",{key:0,class:(0,c.C4)((0,l.R1)(r)),style:(0,c.Tr)({backgroundColor:e.color})},[e.icon?((0,s.uX)(),(0,s.Wv)((0,l.R1)(A.tk),{key:0,class:(0,c.C4)((0,l.R1)(n).e("icon"))},{default:(0,s.k6)((()=>[((0,s.uX)(),(0,s.Wv)((0,s.$y)(e.icon)))])),_:1},8,["class"])):(0,s.Q3)("v-if",!0)],6)),e.$slots.dot?((0,s.uX)(),(0,s.CE)("div",{key:1,class:(0,c.C4)((0,l.R1)(n).e("dot"))},[(0,s.RG)(e.$slots,"dot")],2)):(0,s.Q3)("v-if",!0),(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(n).e("wrapper"))},[e.hideTimestamp||"top"!==e.placement?(0,s.Q3)("v-if",!0):((0,s.uX)(),(0,s.CE)("div",{key:0,class:(0,c.C4)([(0,l.R1)(n).e("timestamp"),(0,l.R1)(n).is("top")])},(0,c.v_)(e.timestamp),3)),(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(n).e("content"))},[(0,s.RG)(e.$slots,"default")],2),e.hideTimestamp||"bottom"!==e.placement?(0,s.Q3)("v-if",!0):((0,s.uX)(),(0,s.CE)("div",{key:1,class:(0,c.C4)([(0,l.R1)(n).e("timestamp"),(0,l.R1)(n).is("bottom")])},(0,c.v_)(e.timestamp),3))],2)],2))}});var lR=(0,g.A)(sR,[["__file","timeline-item.vue"]]);const cR=(0,E.GU)(aR,{TimelineItem:lR}),uR=(0,E.WM)(lR),dR=(0,h.b_)({nowrap:Boolean});var hR=(e=>(e["top"]="top",e["bottom"]="bottom",e["left"]="left",e["right"]="right",e))(hR||{});const pR=Object.values(hR),fR=(0,h.b_)({width:{type:Number,default:10},height:{type:Number,default:10},style:{type:(0,h.jq)(Object),default:null}}),mR=(0,h.b_)({side:{type:(0,h.jq)(String),values:pR,required:!0}}),gR=["absolute","fixed"],vR=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],yR=(0,h.b_)({arrowPadding:{type:(0,h.jq)(Number),default:5},effect:{type:(0,h.jq)(String),default:"light"},contentClass:String,placement:{type:(0,h.jq)(String),values:vR,default:"bottom"},reference:{type:(0,h.jq)(Object),default:null},offset:{type:Number,default:8},strategy:{type:(0,h.jq)(String),values:gR,default:"absolute"},showArrow:Boolean,...(0,oe.l)(["ariaLabel"])}),bR=(0,h.b_)({delayDuration:{type:Number,default:300},defaultOpen:Boolean,open:{type:Boolean,default:void 0},onOpenChange:{type:(0,h.jq)(Function)},"onUpdate:open":{type:(0,h.jq)(Function)}}),wR={type:(0,h.jq)(Function)},xR=(0,h.b_)({onBlur:wR,onClick:wR,onFocus:wR,onMouseDown:wR,onMouseEnter:wR,onMouseLeave:wR}),kR=(0,h.b_)({...bR,...fR,...xR,...yR,alwaysOn:Boolean,fullTransition:Boolean,transitionProps:{type:(0,h.jq)(Object),default:null},teleported:Boolean,to:{type:(0,h.jq)(String),default:"body"}}),_R=Symbol("tooltipV2"),CR=Symbol("tooltipV2Content"),ER="tooltip_v2.open",RR=(0,s.pM)({name:"ElTooltipV2Root"}),SR=(0,s.pM)({...RR,props:bR,setup(e,{expose:t}){const n=e,r=(0,l.KR)(n.defaultOpen),a=(0,l.KR)(null),i=(0,s.EW)({get:()=>(0,p.Xj)(n.open)?r.value:n.open,set:e=>{var t;r.value=e,null==(t=n["onUpdate:open"])||t.call(n,e)}}),o=(0,s.EW)((()=>(0,p.Et)(n.delayDuration)&&n.delayDuration>0)),{start:c,stop:u}=(0,Q.TO)((()=>{i.value=!0}),(0,s.EW)((()=>n.delayDuration)),{immediate:!1}),d=(0,v.DU)("tooltip-v2"),h=(0,xr.Bi)(),f=()=>{u(),i.value=!0},m=()=>{(0,l.R1)(o)?c():f()},g=f,y=()=>{u(),i.value=!1},b=e=>{var t;e&&(document.dispatchEvent(new CustomEvent(ER)),g()),null==(t=n.onOpenChange)||t.call(n,e)};return(0,s.wB)(i,b),(0,s.sV)((()=>{document.addEventListener(ER,y)})),(0,s.xo)((()=>{u(),document.removeEventListener(ER,y)})),(0,s.Gt)(_R,{contentId:h,triggerRef:a,ns:d,onClose:y,onDelayOpen:m,onOpen:g}),t({onOpen:g,onClose:y}),(e,t)=>(0,s.RG)(e.$slots,"default",{open:(0,l.R1)(i)})}});var AR=(0,g.A)(SR,[["__file","root.vue"]]);const TR=(0,s.pM)({name:"ElTooltipV2Arrow"}),MR=(0,s.pM)({...TR,props:{...fR,...mR},setup(e){const t=e,{ns:n}=(0,s.WQ)(_R),{arrowRef:r}=(0,s.WQ)(CR),a=(0,s.EW)((()=>{const{style:e,width:r,height:a}=t,i=n.namespace.value;return{[`--${i}-tooltip-v2-arrow-width`]:`${r}px`,[`--${i}-tooltip-v2-arrow-height`]:`${a}px`,[`--${i}-tooltip-v2-arrow-border-width`]:r/2+"px",[`--${i}-tooltip-v2-arrow-cover-width`]:r/2-1,...e||{}}}));return(e,t)=>((0,s.uX)(),(0,s.CE)("span",{ref_key:"arrowRef",ref:r,style:(0,c.Tr)((0,l.R1)(a)),class:(0,c.C4)((0,l.R1)(n).e("arrow"))},null,6))}});var LR=(0,g.A)(MR,[["__file","arrow.vue"]]);const OR=Math.min,IR=Math.max,NR=Math.round,BR=Math.floor,DR=e=>({x:e,y:e}),FR={left:"right",right:"left",bottom:"top",top:"bottom"},$R={start:"end",end:"start"};function PR(e,t,n){return IR(e,OR(t,n))}function zR(e,t){return"function"===typeof e?e(t):e}function WR(e){return e.split("-")[0]}function jR(e){return e.split("-")[1]}function VR(e){return"x"===e?"y":"x"}function UR(e){return"y"===e?"height":"width"}function KR(e){return["top","bottom"].includes(WR(e))?"y":"x"}function HR(e){return VR(KR(e))}function qR(e,t,n){void 0===n&&(n=!1);const r=jR(e),a=HR(e),i=UR(a);let o="x"===a?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=ZR(o)),[o,ZR(o)]}function GR(e){const t=ZR(e);return[XR(e),t,XR(t)]}function XR(e){return e.replace(/start|end/g,(e=>$R[e]))}function YR(e,t,n){const r=["left","right"],a=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?a:r:t?r:a;case"left":case"right":return t?i:o;default:return[]}}function QR(e,t,n,r){const a=jR(e);let i=YR(WR(e),"start"===n,r);return a&&(i=i.map((e=>e+"-"+a)),t&&(i=i.concat(i.map(XR)))),i}function ZR(e){return e.replace(/left|right|bottom|top/g,(e=>FR[e]))}function JR(e){return{top:0,right:0,bottom:0,left:0,...e}}function eS(e){return"number"!==typeof e?JR(e):{top:e,right:e,bottom:e,left:e}}function tS(e){const{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}function nS(e,t,n){let{reference:r,floating:a}=e;const i=KR(t),o=HR(t),s=UR(o),l=WR(t),c="y"===i,u=r.x+r.width/2-a.width/2,d=r.y+r.height/2-a.height/2,h=r[s]/2-a[s]/2;let p;switch(l){case"top":p={x:u,y:r.y-a.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-a.width,y:d};break;default:p={x:r.x,y:r.y}}switch(jR(t)){case"start":p[o]-=h*(n&&c?-1:1);break;case"end":p[o]+=h*(n&&c?-1:1);break}return p}const rS=async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:i=[],platform:o}=n,s=i.filter(Boolean),l=await(null==o.isRTL?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:a}),{x:u,y:d}=nS(c,r,l),h=r,p={},f=0;for(let m=0;m<s.length;m++){const{name:n,fn:i}=s[m],{x:g,y:v,data:y,reset:b}=await i({x:u,y:d,initialPlacement:r,placement:h,strategy:a,middlewareData:p,rects:c,platform:o,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=v?v:d,p={...p,[n]:{...p[n],...y}},b&&f<=50&&(f++,"object"===typeof b&&(b.placement&&(h=b.placement),b.rects&&(c=!0===b.rects?await o.getElementRects({reference:e,floating:t,strategy:a}):b.rects),({x:u,y:d}=nS(c,h,l))),m=-1)}return{x:u,y:d,placement:h,strategy:a,middlewareData:p}};async function aS(e,t){var n;void 0===t&&(t={});const{x:r,y:a,platform:i,rects:o,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:p=0}=zR(t,e),f=eS(p),m="floating"===d?"reference":"floating",g=s[h?m:d],v=tS(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(g)))||n?g:g.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),y="floating"===d?{x:r,y:a,width:o.floating.width,height:o.floating.height}:o.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),w=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},x=tS(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:b,strategy:l}):y);return{top:(v.top-x.top+f.top)/w.y,bottom:(x.bottom-v.bottom+f.bottom)/w.y,left:(v.left-x.left+f.left)/w.x,right:(x.right-v.right+f.right)/w.x}}const iS=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:a,rects:i,platform:o,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=zR(e,t)||{};if(null==c)return{};const d=eS(u),h={x:n,y:r},p=HR(a),f=UR(p),m=await o.getDimensions(c),g="y"===p,v=g?"top":"left",y=g?"bottom":"right",b=g?"clientHeight":"clientWidth",w=i.reference[f]+i.reference[p]-h[p]-i.floating[f],x=h[p]-i.reference[p],k=await(null==o.getOffsetParent?void 0:o.getOffsetParent(c));let _=k?k[b]:0;_&&await(null==o.isElement?void 0:o.isElement(k))||(_=s.floating[b]||i.floating[f]);const C=w/2-x/2,E=_/2-m[f]/2-1,R=OR(d[v],E),S=OR(d[y],E),A=R,T=_-m[f]-S,M=_/2-m[f]/2+C,L=PR(A,M,T),O=!l.arrow&&null!=jR(a)&&M!==L&&i.reference[f]/2-(M<A?R:S)-m[f]/2<0,I=O?M<A?M-A:M-T:0;return{[p]:h[p]+I,data:{[p]:L,centerOffset:M-L-I,...O&&{alignmentOffset:I}},reset:O}}});const oS=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:i,rects:o,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:m=!0,...g}=zR(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=WR(a),y=KR(s),b=WR(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=h||(b||!m?[ZR(s)]:GR(s)),k="none"!==f;!h&&k&&x.push(...QR(s,m,f,w));const _=[s,...x],C=await aS(t,g),E=[];let R=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&E.push(C[v]),d){const e=qR(a,o,w);E.push(C[e[0]],C[e[1]])}if(R=[...R,{placement:a,overflows:E}],!E.every((e=>e<=0))){var S,A;const e=((null==(S=i.flip)?void 0:S.index)||0)+1,t=_[e];if(t)return{data:{index:e,overflows:R},reset:{placement:t}};let n=null==(A=R.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:A.placement;if(!n)switch(p){case"bestFit":{var T;const e=null==(T=R.filter((e=>{if(k){const t=KR(e.placement);return t===y||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:T[0];e&&(n=e);break}case"initialPlacement":n=s;break}if(a!==n)return{reset:{placement:n}}}return{}}}};async function sS(e,t){const{placement:n,platform:r,elements:a}=e,i=await(null==r.isRTL?void 0:r.isRTL(a.floating)),o=WR(n),s=jR(n),l="y"===KR(n),c=["left","top"].includes(o)?-1:1,u=i&&l?-1:1,d=zR(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:f}="number"===typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"===typeof f&&(p="end"===s?-1*f:f),l?{x:p*u,y:h*c}:{x:h*c,y:p*u}}const lS=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:a,y:i,placement:o,middlewareData:s}=t,l=await sS(t,e);return o===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:a+l.x,y:i+l.y,data:{...l,placement:o}}}}},cS=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a}=t,{mainAxis:i=!0,crossAxis:o=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=zR(e,t),c={x:n,y:r},u=await aS(t,l),d=KR(WR(a)),h=VR(d);let p=c[h],f=c[d];if(i){const e="y"===h?"top":"left",t="y"===h?"bottom":"right",n=p+u[e],r=p-u[t];p=PR(n,p,r)}if(o){const e="y"===d?"top":"left",t="y"===d?"bottom":"right",n=f+u[e],r=f-u[t];f=PR(n,f,r)}const m=s.fn({...t,[h]:p,[d]:f});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[h]:i,[d]:o}}}}}};function uS(){return"undefined"!==typeof window}function dS(e){return fS(e)?(e.nodeName||"").toLowerCase():"#document"}function hS(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function pS(e){var t;return null==(t=(fS(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function fS(e){return!!uS()&&(e instanceof Node||e instanceof hS(e).Node)}function mS(e){return!!uS()&&(e instanceof Element||e instanceof hS(e).Element)}function gS(e){return!!uS()&&(e instanceof HTMLElement||e instanceof hS(e).HTMLElement)}function vS(e){return!(!uS()||"undefined"===typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof hS(e).ShadowRoot)}function yS(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=ES(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(a)}function bS(e){return["table","td","th"].includes(dS(e))}function wS(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(n){return!1}}))}function xS(e){const t=_S(),n=mS(e)?ES(e):e;return["transform","translate","scale","rotate","perspective"].some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function kS(e){let t=SS(e);while(gS(t)&&!CS(t)){if(xS(t))return t;if(wS(t))return null;t=SS(t)}return null}function _S(){return!("undefined"===typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function CS(e){return["html","body","#document"].includes(dS(e))}function ES(e){return hS(e).getComputedStyle(e)}function RS(e){return mS(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function SS(e){if("html"===dS(e))return e;const t=e.assignedSlot||e.parentNode||vS(e)&&e.host||pS(e);return vS(t)?t.host:t}function AS(e){const t=SS(e);return CS(t)?e.ownerDocument?e.ownerDocument.body:e.body:gS(t)&&yS(t)?t:AS(t)}function TS(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const a=AS(e),i=a===(null==(r=e.ownerDocument)?void 0:r.body),o=hS(a);if(i){const e=MS(o);return t.concat(o,o.visualViewport||[],yS(a)?a:[],e&&n?TS(e):[])}return t.concat(a,TS(a,[],n))}function MS(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function LS(e){const t=ES(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=gS(e),i=a?e.offsetWidth:n,o=a?e.offsetHeight:r,s=NR(n)!==i||NR(r)!==o;return s&&(n=i,r=o),{width:n,height:r,$:s}}function OS(e){return mS(e)?e:e.contextElement}function IS(e){const t=OS(e);if(!gS(t))return DR(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:i}=LS(t);let o=(i?NR(n.width):n.width)/r,s=(i?NR(n.height):n.height)/a;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}const NS=DR(0);function BS(e){const t=hS(e);return _S()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:NS}function DS(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==hS(e))&&t}function FS(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect(),i=OS(e);let o=DR(1);t&&(r?mS(r)&&(o=IS(r)):o=IS(e));const s=DS(i,n,r)?BS(i):DR(0);let l=(a.left+s.x)/o.x,c=(a.top+s.y)/o.y,u=a.width/o.x,d=a.height/o.y;if(i){const e=hS(i),t=r&&mS(r)?hS(r):r;let n=e,a=MS(n);while(a&&r&&t!==n){const e=IS(a),t=a.getBoundingClientRect(),r=ES(a),i=t.left+(a.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(a.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=o,n=hS(a),a=MS(n)}}return tS({width:u,height:d,x:l,y:c})}function $S(e,t){const n=RS(e).scrollLeft;return t?t.left+n:FS(pS(e)).left+n}function PS(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect(),a=r.left+t.scrollLeft-(n?0:$S(e,r)),i=r.top+t.scrollTop;return{x:a,y:i}}function zS(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const i="fixed"===a,o=pS(r),s=!!t&&wS(t.floating);if(r===o||s&&i)return n;let l={scrollLeft:0,scrollTop:0},c=DR(1);const u=DR(0),d=gS(r);if((d||!d&&!i)&&(("body"!==dS(r)||yS(o))&&(l=RS(r)),gS(r))){const e=FS(r);c=IS(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const h=!o||d||i?DR(0):PS(o,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+h.x,y:n.y*c.y-l.scrollTop*c.y+u.y+h.y}}function WS(e){return Array.from(e.getClientRects())}function jS(e){const t=pS(e),n=RS(e),r=e.ownerDocument.body,a=IR(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=IR(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+$S(e);const s=-n.scrollTop;return"rtl"===ES(r).direction&&(o+=IR(t.clientWidth,r.clientWidth)-a),{width:a,height:i,x:o,y:s}}function VS(e,t){const n=hS(e),r=pS(e),a=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,s=0,l=0;if(a){i=a.width,o=a.height;const e=_S();(!e||e&&"fixed"===t)&&(s=a.offsetLeft,l=a.offsetTop)}return{width:i,height:o,x:s,y:l}}function US(e,t){const n=FS(e,!0,"fixed"===t),r=n.top+e.clientTop,a=n.left+e.clientLeft,i=gS(e)?IS(e):DR(1),o=e.clientWidth*i.x,s=e.clientHeight*i.y,l=a*i.x,c=r*i.y;return{width:o,height:s,x:l,y:c}}function KS(e,t,n){let r;if("viewport"===t)r=VS(e,n);else if("document"===t)r=jS(pS(e));else if(mS(t))r=US(t,n);else{const n=BS(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return tS(r)}function HS(e,t){const n=SS(e);return!(n===t||!mS(n)||CS(n))&&("fixed"===ES(n).position||HS(n,t))}function qS(e,t){const n=t.get(e);if(n)return n;let r=TS(e,[],!1).filter((e=>mS(e)&&"body"!==dS(e))),a=null;const i="fixed"===ES(e).position;let o=i?SS(e):e;while(mS(o)&&!CS(o)){const t=ES(o),n=xS(o);n||"fixed"!==t.position||(a=null);const s=i?!n&&!a:!n&&"static"===t.position&&!!a&&["absolute","fixed"].includes(a.position)||yS(o)&&!n&&HS(e,o);s?r=r.filter((e=>e!==o)):a=t,o=SS(o)}return t.set(e,r),r}function GS(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const i="clippingAncestors"===n?wS(t)?[]:qS(t,this._c):[].concat(n),o=[...i,r],s=o[0],l=o.reduce(((e,n)=>{const r=KS(t,n,a);return e.top=IR(r.top,e.top),e.right=OR(r.right,e.right),e.bottom=OR(r.bottom,e.bottom),e.left=IR(r.left,e.left),e}),KS(t,s,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function XS(e){const{width:t,height:n}=LS(e);return{width:t,height:n}}function YS(e,t,n){const r=gS(t),a=pS(t),i="fixed"===n,o=FS(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=DR(0);if(r||!r&&!i)if(("body"!==dS(t)||yS(a))&&(s=RS(t)),r){const e=FS(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else a&&(l.x=$S(a));const c=!a||r||i?DR(0):PS(a,s),u=o.left+s.scrollLeft-l.x-c.x,d=o.top+s.scrollTop-l.y-c.y;return{x:u,y:d,width:o.width,height:o.height}}function QS(e){return"static"===ES(e).position}function ZS(e,t){if(!gS(e)||"fixed"===ES(e).position)return null;if(t)return t(e);let n=e.offsetParent;return pS(e)===n&&(n=n.ownerDocument.body),n}function JS(e,t){const n=hS(e);if(wS(e))return n;if(!gS(e)){let t=SS(e);while(t&&!CS(t)){if(mS(t)&&!QS(t))return t;t=SS(t)}return n}let r=ZS(e,t);while(r&&bS(r)&&QS(r))r=ZS(r,t);return r&&CS(r)&&QS(r)&&!xS(r)?n:r||kS(e)||n}const eA=async function(e){const t=this.getOffsetParent||JS,n=this.getDimensions,r=await n(e.floating);return{reference:YS(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function tA(e){return"rtl"===ES(e).direction}const nA={convertOffsetParentRelativeRectToViewportRelativeRect:zS,getDocumentElement:pS,getClippingRect:GS,getOffsetParent:JS,getElementRects:eA,getClientRects:WS,getDimensions:XS,getScale:IS,isElement:mS,isRTL:tA};function rA(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function aA(e,t){let n,r=null;const a=pS(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}function o(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:h,height:p}=c;if(s||t(),!h||!p)return;const f=BR(d),m=BR(a.clientWidth-(u+h)),g=BR(a.clientHeight-(d+p)),v=BR(u),y=-f+"px "+-m+"px "+-g+"px "+-v+"px",b={rootMargin:y,threshold:IR(0,OR(1,l))||1};let w=!0;function x(t){const r=t[0].intersectionRatio;if(r!==l){if(!w)return o();r?o(!1,r):n=setTimeout((()=>{o(!1,1e-7)}),1e3)}1!==r||rA(c,e.getBoundingClientRect())||o(),w=!1}try{r=new IntersectionObserver(x,{...b,root:a.ownerDocument})}catch(k){r=new IntersectionObserver(x,b)}r.observe(e)}return o(!0),i}function iA(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:o="function"===typeof ResizeObserver,layoutShift:s="function"===typeof IntersectionObserver,animationFrame:l=!1}=r,c=OS(e),u=a||i?[...c?TS(c):[],...TS(t)]:[];u.forEach((e=>{a&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=c&&s?aA(c,n):null;let h,p=-1,f=null;o&&(f=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=f)||e.observe(t)}))),n()})),c&&!l&&f.observe(c),f.observe(t));let m=l?FS(e):null;function g(){const t=FS(e);m&&!rA(m,t)&&n(),m=t,h=requestAnimationFrame(g)}return l&&g(),n(),()=>{var e;u.forEach((e=>{a&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(h)}}const oA=aS,sA=lS,lA=cS,cA=oS,uA=iS,dA=(e,t,n)=>{const r=new Map,a={platform:nA,...n},i={...a.platform,_c:r};return rS(e,t,{...a,platform:i})},hA=(0,h.b_)({style:{type:(0,h.jq)([String,Object,Array]),default:()=>({})}}),pA=(0,s.pM)({name:"ElVisuallyHidden"}),fA=(0,s.pM)({...pA,props:hA,setup(e){const t=e,n=(0,s.EW)((()=>[t.style,{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}]));return(e,t)=>((0,s.uX)(),(0,s.CE)("span",(0,s.v6)(e.$attrs,{style:(0,l.R1)(n)}),[(0,s.RG)(e.$slots,"default")],16))}});var mA=(0,g.A)(fA,[["__file","visual-hidden.vue"]]);(0,h.b_)({});const gA=e=>{if(!Q.oc)return;if(!e)return e;const t=(0,u.F4c)(e);return t||((0,l.i9)(e)?t:e)},vA=({middleware:e,placement:t,strategy:n})=>{const r=(0,l.KR)(),a=(0,l.KR)(),i=(0,l.KR)(),o=(0,l.KR)(),c=(0,l.KR)({}),d={x:i,y:o,placement:t,strategy:n,middlewareData:c},h=async()=>{if(!Q.oc)return;const i=gA(r),o=(0,u.F4c)(a);if(!i||!o)return;const s=await dA(i,o,{placement:(0,l.R1)(t),strategy:(0,l.R1)(n),middleware:(0,l.R1)(e)});(0,M.YD)(d).forEach((e=>{d[e].value=s[e]}))};return(0,s.sV)((()=>{(0,s.nT)((()=>{h()}))})),{...d,update:h,referenceRef:r,contentRef:a}},yA=({arrowRef:e,padding:t})=>({name:"arrow",options:{element:e,padding:t},fn(n){const r=(0,l.R1)(e);return r?uA({element:r,padding:t}).fn(n):{}}}),bA=(0,s.pM)({name:"ElTooltipV2Content"}),wA=(0,s.pM)({...bA,props:{...yR,...dR},setup(e){const t=e,{triggerRef:n,contentId:r}=(0,s.WQ)(_R),a=(0,l.KR)(t.placement),i=(0,l.KR)(t.strategy),o=(0,l.KR)(null),{referenceRef:u,contentRef:d,middlewareData:h,x:p,y:f,update:m}=vA({placement:a,strategy:i,middleware:(0,s.EW)((()=>{const e=[sA(t.offset)];return t.showArrow&&e.push(yA({arrowRef:o})),e}))}),g=(0,Fr.YK)().nextZIndex(),y=(0,v.DU)("tooltip-v2"),b=(0,s.EW)((()=>a.value.split("-")[0])),w=(0,s.EW)((()=>({position:(0,l.R1)(i),top:`${(0,l.R1)(f)||0}px`,left:`${(0,l.R1)(p)||0}px`,zIndex:g}))),x=(0,s.EW)((()=>{if(!t.showArrow)return{};const{arrow:e}=(0,l.R1)(h);return{[`--${y.namespace.value}-tooltip-v2-arrow-x`]:`${null==e?void 0:e.x}px`||"",[`--${y.namespace.value}-tooltip-v2-arrow-y`]:`${null==e?void 0:e.y}px`||""}})),k=(0,s.EW)((()=>[y.e("content"),y.is("dark","dark"===t.effect),y.is((0,l.R1)(i)),t.contentClass]));return(0,s.wB)(o,(()=>m())),(0,s.wB)((()=>t.placement),(e=>a.value=e)),(0,s.sV)((()=>{(0,s.wB)((()=>t.reference||n.value),(e=>{u.value=e||void 0}),{immediate:!0})})),(0,s.Gt)(CR,{arrowRef:o}),(e,t)=>((0,s.uX)(),(0,s.CE)("div",{ref_key:"contentRef",ref:d,style:(0,c.Tr)((0,l.R1)(w)),"data-tooltip-v2-root":""},[e.nowrap?(0,s.Q3)("v-if",!0):((0,s.uX)(),(0,s.CE)("div",{key:0,"data-side":(0,l.R1)(b),class:(0,c.C4)((0,l.R1)(k))},[(0,s.RG)(e.$slots,"default",{contentStyle:(0,l.R1)(w),contentClass:(0,l.R1)(k)}),(0,s.bF)((0,l.R1)(mA),{id:(0,l.R1)(r),role:"tooltip"},{default:(0,s.k6)((()=>[e.ariaLabel?((0,s.uX)(),(0,s.CE)(s.FK,{key:0},[(0,s.eW)((0,c.v_)(e.ariaLabel),1)],64)):(0,s.RG)(e.$slots,"default",{key:1})])),_:3},8,["id"]),(0,s.RG)(e.$slots,"arrow",{style:(0,c.Tr)((0,l.R1)(x)),side:(0,l.R1)(b)})],10,["data-side"]))],4))}});var xA=(0,g.A)(wA,[["__file","content.vue"]]);const kA=(0,h.b_)({setRef:{type:(0,h.jq)(Function),required:!0},onlyChild:Boolean});var _A=(0,s.pM)({props:kA,setup(e,{slots:t}){const n=(0,l.KR)(),r=zd(n,(t=>{t?e.setRef(t.nextElementSibling):e.setRef(null)}));return()=>{var n;const[a]=(null==(n=t.default)?void 0:n.call(t))||[],i=e.onlyChild?(0,Ni.$P)(a.children):a.children;return(0,s.bF)(s.FK,{ref:r},[i])}}});const CA=(0,s.pM)({name:"ElTooltipV2Trigger"}),EA=(0,s.pM)({...CA,props:{...dR,...xR},setup(e){const t=e,{onClose:n,onOpen:r,onDelayOpen:a,triggerRef:i,contentId:o}=(0,s.WQ)(_R);let c=!1;const u=e=>{i.value=e},d=()=>{c=!1},h=hr(t.onMouseEnter,a),p=hr(t.onMouseLeave,n),f=hr(t.onMouseDown,(()=>{n(),c=!0,document.addEventListener("mouseup",d,{once:!0})})),m=hr(t.onFocus,(()=>{c||r()})),g=hr(t.onBlur,n),v=hr(t.onClick,(e=>{0===e.detail&&n()})),y={blur:g,click:v,focus:m,mousedown:f,mouseenter:h,mouseleave:p},b=(e,t,n)=>{e&&Object.entries(t).forEach((([t,r])=>{e[n](t,r)}))};return(0,s.wB)(i,((e,t)=>{b(e,y,"addEventListener"),b(t,y,"removeEventListener"),e&&e.setAttribute("aria-describedby",o.value)})),(0,s.xo)((()=>{b(i.value,y,"removeEventListener"),document.removeEventListener("mouseup",d)})),(e,t)=>e.nowrap?((0,s.uX)(),(0,s.Wv)((0,l.R1)(_A),{key:0,"set-ref":u,"only-child":""},{default:(0,s.k6)((()=>[(0,s.RG)(e.$slots,"default")])),_:3})):((0,s.uX)(),(0,s.CE)("button",(0,s.v6)({key:1,ref_key:"triggerRef",ref:i},e.$attrs),[(0,s.RG)(e.$slots,"default")],16))}});var RA=(0,g.A)(EA,[["__file","trigger.vue"]]);const SA=(0,s.pM)({name:"ElTooltipV2"}),AA=(0,s.pM)({...SA,props:kR,setup(e){const t=e,n=(0,l.QW)(t),r=(0,l.Kh)((0,ko.A)(n,Object.keys(fR))),a=(0,l.Kh)((0,ko.A)(n,Object.keys(yR))),i=(0,l.Kh)((0,ko.A)(n,Object.keys(bR))),o=(0,l.Kh)((0,ko.A)(n,Object.keys(xR)));return(e,t)=>((0,s.uX)(),(0,s.Wv)(AR,(0,c._B)((0,s.Ng)(i)),{default:(0,s.k6)((({open:t})=>[(0,s.bF)(RA,(0,s.v6)(o,{nowrap:""}),{default:(0,s.k6)((()=>[(0,s.RG)(e.$slots,"trigger")])),_:3},16),(0,s.bF)((0,l.R1)(wr),{to:e.to,disabled:!e.teleported},{default:(0,s.k6)((()=>[e.fullTransition?((0,s.uX)(),(0,s.Wv)(S.eB,(0,c._B)((0,s.v6)({key:0},e.transitionProps)),{default:(0,s.k6)((()=>[e.alwaysOn||t?((0,s.uX)(),(0,s.Wv)(xA,(0,c._B)((0,s.v6)({key:0},a)),{arrow:(0,s.k6)((({style:t,side:n})=>[e.showArrow?((0,s.uX)(),(0,s.Wv)(LR,(0,s.v6)({key:0},r,{style:t,side:n}),null,16,["style","side"])):(0,s.Q3)("v-if",!0)])),default:(0,s.k6)((()=>[(0,s.RG)(e.$slots,"default")])),_:3},16)):(0,s.Q3)("v-if",!0)])),_:2},1040)):((0,s.uX)(),(0,s.CE)(s.FK,{key:1},[e.alwaysOn||t?((0,s.uX)(),(0,s.Wv)(xA,(0,c._B)((0,s.v6)({key:0},a)),{arrow:(0,s.k6)((({style:t,side:n})=>[e.showArrow?((0,s.uX)(),(0,s.Wv)(LR,(0,s.v6)({key:0},r,{style:t,side:n}),null,16,["style","side"])):(0,s.Q3)("v-if",!0)])),default:(0,s.k6)((()=>[(0,s.RG)(e.$slots,"default")])),_:3},16)):(0,s.Q3)("v-if",!0)],64))])),_:2},1032,["to","disabled"])])),_:3},16))}});var TA=(0,g.A)(AA,[["__file","tooltip.vue"]]);const MA=(0,E.GU)(TA),LA="left-check-change",OA="right-check-change",IA=(0,h.b_)({data:{type:(0,h.jq)(Array),default:()=>[]},titles:{type:(0,h.jq)(Array),default:()=>[]},buttonTexts:{type:(0,h.jq)(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:(0,h.jq)(Function)},leftDefaultChecked:{type:(0,h.jq)(Array),default:()=>[]},rightDefaultChecked:{type:(0,h.jq)(Array),default:()=>[]},renderContent:{type:(0,h.jq)(Function)},modelValue:{type:(0,h.jq)(Array),default:()=>[]},format:{type:(0,h.jq)(Object),default:()=>({})},filterable:Boolean,props:{type:(0,h.jq)(Object),default:()=>(0,Gs.f)({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),NA=(e,t)=>[e,t].every(c.cy)||(0,c.cy)(e)&&(0,er.A)(t),BA={[d.YU]:(e,t,n)=>[e,n].every(c.cy)&&["left","right"].includes(t),[d.l4]:e=>(0,c.cy)(e),[LA]:NA,[OA]:NA},DA="checked-change",FA=(0,h.b_)({data:IA.data,optionRender:{type:(0,h.jq)(Function)},placeholder:String,title:String,filterable:Boolean,format:IA.format,filterMethod:IA.filterMethod,defaultChecked:IA.leftDefaultChecked,props:IA.props}),$A={[DA]:NA},PA=e=>{const t={label:"label",key:"key",disabled:"disabled"};return(0,s.EW)((()=>({...t,...e.props})))},zA=(e,t,n)=>{const r=PA(e),a=(0,s.EW)((()=>e.data.filter((n=>{if((0,c.Tn)(e.filterMethod))return e.filterMethod(t.query,n);{const e=String(n[r.value.label]||n[r.value.key]);return e.toLowerCase().includes(t.query.toLowerCase())}})))),i=(0,s.EW)((()=>a.value.filter((e=>!e[r.value.disabled])))),o=(0,s.EW)((()=>{const n=t.checked.length,r=e.data.length,{noChecked:a,hasChecked:i}=e.format;return a&&i?n>0?i.replace(/\${checked}/g,n.toString()).replace(/\${total}/g,r.toString()):a.replace(/\${total}/g,r.toString()):`${n}/${r}`})),l=(0,s.EW)((()=>{const e=t.checked.length;return e>0&&e<i.value.length})),u=()=>{const e=i.value.map((e=>e[r.value.key]));t.allChecked=e.length>0&&e.every((e=>t.checked.includes(e)))},d=e=>{t.checked=e?i.value.map((e=>e[r.value.key])):[]};return(0,s.wB)((()=>t.checked),((e,r)=>{if(u(),t.checkChangeByUser){const t=e.concat(r).filter((t=>!e.includes(t)||!r.includes(t)));n(DA,e,t)}else n(DA,e),t.checkChangeByUser=!0})),(0,s.wB)(i,(()=>{u()})),(0,s.wB)((()=>e.data),(()=>{const e=[],n=a.value.map((e=>e[r.value.key]));t.checked.forEach((t=>{n.includes(t)&&e.push(t)})),t.checkChangeByUser=!1,t.checked=e})),(0,s.wB)((()=>e.defaultChecked),((e,n)=>{if(n&&e.length===n.length&&e.every((e=>n.includes(e))))return;const a=[],o=i.value.map((e=>e[r.value.key]));e.forEach((e=>{o.includes(e)&&a.push(e)})),t.checkChangeByUser=!1,t.checked=a}),{immediate:!0}),{filteredData:a,checkableData:i,checkedSummary:o,isIndeterminate:l,updateAllChecked:u,handleAllCheckedChange:d}},WA=(0,s.pM)({name:"ElTransferPanel"}),jA=(0,s.pM)({...WA,props:FA,emits:$A,setup(e,{expose:t,emit:n}){const r=e,a=(0,s.Ht)(),i=({option:e})=>e,{t:o}=(0,La.Ym)(),u=(0,v.DU)("transfer"),d=(0,l.Kh)({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),h=PA(r),{filteredData:f,checkedSummary:m,isIndeterminate:g,handleAllCheckedChange:y}=zA(r,d,n),b=(0,s.EW)((()=>!(0,p.Im)(d.query)&&(0,p.Im)(f.value))),w=(0,s.EW)((()=>!(0,p.Im)(a.default()[0].children))),{checked:x,allChecked:k,query:_}=(0,l.QW)(d);return t({query:_}),(e,t)=>((0,s.uX)(),(0,s.CE)("div",{class:(0,c.C4)((0,l.R1)(u).b("panel"))},[(0,s.Lk)("p",{class:(0,c.C4)((0,l.R1)(u).be("panel","header"))},[(0,s.bF)((0,l.R1)(Ao),{modelValue:(0,l.R1)(k),"onUpdate:modelValue":e=>(0,l.i9)(k)?k.value=e:null,indeterminate:(0,l.R1)(g),"validate-event":!1,onChange:(0,l.R1)(y)},{default:(0,s.k6)((()=>[(0,s.eW)((0,c.v_)(e.title)+" ",1),(0,s.Lk)("span",null,(0,c.v_)((0,l.R1)(m)),1)])),_:1},8,["modelValue","onUpdate:modelValue","indeterminate","onChange"])],2),(0,s.Lk)("div",{class:(0,c.C4)([(0,l.R1)(u).be("panel","body"),(0,l.R1)(u).is("with-footer",(0,l.R1)(w))])},[e.filterable?((0,s.uX)(),(0,s.Wv)((0,l.R1)(q.WK),{key:0,modelValue:(0,l.R1)(_),"onUpdate:modelValue":e=>(0,l.i9)(_)?_.value=e:null,class:(0,c.C4)((0,l.R1)(u).be("panel","filter")),size:"default",placeholder:e.placeholder,"prefix-icon":(0,l.R1)(H.vji),clearable:"","validate-event":!1},null,8,["modelValue","onUpdate:modelValue","class","placeholder","prefix-icon"])):(0,s.Q3)("v-if",!0),(0,s.bo)((0,s.bF)((0,l.R1)(Mo),{modelValue:(0,l.R1)(x),"onUpdate:modelValue":e=>(0,l.i9)(x)?x.value=e:null,"validate-event":!1,class:(0,c.C4)([(0,l.R1)(u).is("filterable",e.filterable),(0,l.R1)(u).be("panel","list")])},{default:(0,s.k6)((()=>[((0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)((0,l.R1)(f),(t=>((0,s.uX)(),(0,s.Wv)((0,l.R1)(Ao),{key:t[(0,l.R1)(h).key],class:(0,c.C4)((0,l.R1)(u).be("panel","item")),value:t[(0,l.R1)(h).key],disabled:t[(0,l.R1)(h).disabled],"validate-event":!1},{default:(0,s.k6)((()=>{var n;return[(0,s.bF)(i,{option:null==(n=e.optionRender)?void 0:n.call(e,t)},null,8,["option"])]})),_:2},1032,["class","value","disabled"])))),128))])),_:1},8,["modelValue","onUpdate:modelValue","class"]),[[S.aG,!(0,l.R1)(b)&&!(0,l.R1)(p.Im)(e.data)]]),(0,s.bo)((0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(u).be("panel","empty"))},[(0,s.RG)(e.$slots,"empty",{},(()=>[(0,s.eW)((0,c.v_)((0,l.R1)(b)?(0,l.R1)(o)("el.transfer.noMatch"):(0,l.R1)(o)("el.transfer.noData")),1)]))],2),[[S.aG,(0,l.R1)(b)||(0,l.R1)(p.Im)(e.data)]])],2),(0,l.R1)(w)?((0,s.uX)(),(0,s.CE)("p",{key:0,class:(0,c.C4)((0,l.R1)(u).be("panel","footer"))},[(0,s.RG)(e.$slots,"default")],2)):(0,s.Q3)("v-if",!0)],2))}});var VA=(0,g.A)(jA,[["__file","transfer-panel.vue"]]);const UA=e=>{const t=PA(e),n=(0,s.EW)((()=>e.data.reduce(((e,n)=>(e[n[t.value.key]]=n)&&e),{}))),r=(0,s.EW)((()=>e.data.filter((n=>!e.modelValue.includes(n[t.value.key]))))),a=(0,s.EW)((()=>"original"===e.targetOrder?e.data.filter((n=>e.modelValue.includes(n[t.value.key]))):e.modelValue.reduce(((e,t)=>{const r=n.value[t];return r&&e.push(r),e}),[])));return{sourceData:r,targetData:a}},KA=(e,t,n)=>{const r=PA(e),a=(e,t,r)=>{n(d.l4,e),n(d.YU,e,t,r)},i=()=>{const n=e.modelValue.slice();t.rightChecked.forEach((e=>{const t=n.indexOf(e);t>-1&&n.splice(t,1)})),a(n,"left",t.rightChecked)},o=()=>{let n=e.modelValue.slice();const i=e.data.filter((n=>{const a=n[r.value.key];return t.leftChecked.includes(a)&&!e.modelValue.includes(a)})).map((e=>e[r.value.key]));n="unshift"===e.targetOrder?i.concat(n):n.concat(i),"original"===e.targetOrder&&(n=e.data.filter((e=>n.includes(e[r.value.key]))).map((e=>e[r.value.key]))),a(n,"right",t.leftChecked)};return{addToLeft:i,addToRight:o}},HA=(e,t)=>{const n=(n,r)=>{e.leftChecked=n,r&&t(LA,n,r)},r=(n,r)=>{e.rightChecked=n,r&&t(OA,n,r)};return{onSourceCheckedChange:n,onTargetCheckedChange:r}},qA=(0,s.pM)({name:"ElTransfer"}),GA=(0,s.pM)({...qA,props:IA,emits:BA,setup(e,{expose:t,emit:n}){const r=e,a=(0,s.Ht)(),{t:i}=(0,La.Ym)(),o=(0,v.DU)("transfer"),{formItem:u}=(0,co.j)(),d=(0,l.Kh)({leftChecked:[],rightChecked:[]}),h=PA(r),{sourceData:f,targetData:m}=UA(r),{onSourceCheckedChange:g,onTargetCheckedChange:y}=HA(d,n),{addToLeft:b,addToRight:x}=KA(r,d,n),k=(0,l.KR)(),_=(0,l.KR)(),C=e=>{switch(e){case"left":k.value.query="";break;case"right":_.value.query="";break}},E=(0,s.EW)((()=>2===r.buttonTexts.length)),R=(0,s.EW)((()=>r.titles[0]||i("el.transfer.titles.0"))),S=(0,s.EW)((()=>r.titles[1]||i("el.transfer.titles.1"))),T=(0,s.EW)((()=>r.filterPlaceholder||i("el.transfer.filterPlaceholder")));(0,s.wB)((()=>r.modelValue),(()=>{var e;r.validateEvent&&(null==(e=null==u?void 0:u.validate)||e.call(u,"change").catch((e=>(0,w.U)(e))))}));const M=(0,s.EW)((()=>e=>{var t;if(r.renderContent)return r.renderContent(s.h,e);const n=((null==(t=a.default)?void 0:t.call(a,{option:e}))||[]).filter((e=>e.type!==s.Mw));return n.length?n:(0,s.h)("span",e[h.value.label]||e[h.value.key])}));return t({clearQuery:C,leftPanel:k,rightPanel:_}),(e,t)=>((0,s.uX)(),(0,s.CE)("div",{class:(0,c.C4)((0,l.R1)(o).b())},[(0,s.bF)(VA,{ref_key:"leftPanel",ref:k,data:(0,l.R1)(f),"option-render":(0,l.R1)(M),placeholder:(0,l.R1)(T),title:(0,l.R1)(R),filterable:e.filterable,format:e.format,"filter-method":e.filterMethod,"default-checked":e.leftDefaultChecked,props:r.props,onCheckedChange:(0,l.R1)(g)},{empty:(0,s.k6)((()=>[(0,s.RG)(e.$slots,"left-empty")])),default:(0,s.k6)((()=>[(0,s.RG)(e.$slots,"left-footer")])),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(o).e("buttons"))},[(0,s.bF)((0,l.R1)(Wa.S2),{type:"primary",class:(0,c.C4)([(0,l.R1)(o).e("button"),(0,l.R1)(o).is("with-texts",(0,l.R1)(E))]),disabled:(0,l.R1)(p.Im)(d.rightChecked),onClick:(0,l.R1)(b)},{default:(0,s.k6)((()=>[(0,s.bF)((0,l.R1)(A.tk),null,{default:(0,s.k6)((()=>[(0,s.bF)((0,l.R1)(H.nkM))])),_:1}),(0,l.R1)(p.b0)(e.buttonTexts[0])?(0,s.Q3)("v-if",!0):((0,s.uX)(),(0,s.CE)("span",{key:0},(0,c.v_)(e.buttonTexts[0]),1))])),_:1},8,["class","disabled","onClick"]),(0,s.bF)((0,l.R1)(Wa.S2),{type:"primary",class:(0,c.C4)([(0,l.R1)(o).e("button"),(0,l.R1)(o).is("with-texts",(0,l.R1)(E))]),disabled:(0,l.R1)(p.Im)(d.leftChecked),onClick:(0,l.R1)(x)},{default:(0,s.k6)((()=>[(0,l.R1)(p.b0)(e.buttonTexts[1])?(0,s.Q3)("v-if",!0):((0,s.uX)(),(0,s.CE)("span",{key:0},(0,c.v_)(e.buttonTexts[1]),1)),(0,s.bF)((0,l.R1)(A.tk),null,{default:(0,s.k6)((()=>[(0,s.bF)((0,l.R1)(H.Qpb))])),_:1})])),_:1},8,["class","disabled","onClick"])],2),(0,s.bF)(VA,{ref_key:"rightPanel",ref:_,data:(0,l.R1)(m),"option-render":(0,l.R1)(M),placeholder:(0,l.R1)(T),filterable:e.filterable,format:e.format,"filter-method":e.filterMethod,title:(0,l.R1)(S),"default-checked":e.rightDefaultChecked,props:r.props,onCheckedChange:(0,l.R1)(y)},{empty:(0,s.k6)((()=>[(0,s.RG)(e.$slots,"right-empty")])),default:(0,s.k6)((()=>[(0,s.RG)(e.$slots,"right-footer")])),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}});var XA=(0,g.A)(GA,[["__file","transfer.vue"]]);const YA=(0,E.GU)(XA),QA="$treeNodeId",ZA=function(e,t){t&&!t[QA]&&Object.defineProperty(t,QA,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},JA=function(e,t){return e?t[e]:t[QA]},eT=(e,t,n)=>{const r=e.value.currentNode;n();const a=e.value.currentNode;r!==a&&t("current-change",a?a.data:null,a)},tT=e=>{let t=!0,n=!0,r=!0;for(let a=0,i=e.length;a<i;a++){const i=e[a];(!0!==i.checked||i.indeterminate)&&(t=!1,i.disabled||(r=!1)),(!1!==i.checked||i.indeterminate)&&(n=!1)}return{all:t,none:n,allWithoutDisable:r,half:!t&&!n}},nT=function(e){if(0===e.childNodes.length||e.loading)return;const{all:t,none:n,half:r}=tT(e.childNodes);t?(e.checked=!0,e.indeterminate=!1):r?(e.checked=!1,e.indeterminate=!0):n&&(e.checked=!1,e.indeterminate=!1);const a=e.parent;a&&0!==a.level&&(e.store.checkStrictly||nT(a))},rT=function(e,t){const n=e.store.props,r=e.data||{},a=n[t];if((0,c.Tn)(a))return a(r,e);if((0,c.Kg)(a))return r[a];if((0,p.b0)(a)){const e=r[t];return void 0===e?"":e}};let aT=0;class iT{constructor(e){this.id=aT++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,this.canFocus=!1;for(const t in e)(0,c.$3)(e,t)&&(this[t]=e[t]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){const e=this.store;if(!e)throw new Error("[Node]store is required!");e.registerNode(this);const t=e.props;if(t&&"undefined"!==typeof t.isLeaf){const e=rT(this,"isLeaf");(0,p.Lm)(e)&&(this.isLeafByUser=e)}if(!0!==e.lazy&&this.data?(this.setData(this.data),e.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&e.lazy&&e.defaultExpandAll&&!this.isLeafByUser&&this.expand(),(0,c.cy)(this.data)||ZA(this,this.data),!this.data)return;const n=e.defaultExpandedKeys,r=e.key;r&&n&&n.includes(this.key)&&this.expand(null,e.autoExpandParent),r&&void 0!==e.currentNodeKey&&this.key===e.currentNodeKey&&(e.currentNode=this,e.currentNode.isCurrent=!0),e.lazy&&e._initDefaultCheckedNode(this),this.updateLeafState(),!this.parent||1!==this.level&&!0!==this.parent.expanded||(this.canFocus=!0)}setData(e){let t;(0,c.cy)(e)||ZA(this,e),this.data=e,this.childNodes=[],t=0===this.level&&(0,c.cy)(this.data)?this.data:rT(this,"children")||[];for(let n=0,r=t.length;n<r;n++)this.insertChild({data:t[n]})}get label(){return rT(this,"label")}get key(){const e=this.store.key;return this.data?this.data[e]:null}get disabled(){return rT(this,"disabled")}get nextSibling(){const e=this.parent;if(e){const t=e.childNodes.indexOf(this);if(t>-1)return e.childNodes[t+1]}return null}get previousSibling(){const e=this.parent;if(e){const t=e.childNodes.indexOf(this);if(t>-1)return t>0?e.childNodes[t-1]:null}return null}contains(e,t=!0){return(this.childNodes||[]).some((n=>n===e||t&&n.contains(e)))}remove(){const e=this.parent;e&&e.removeChild(this)}insertChild(e,t,n){if(!e)throw new Error("InsertChild error: child is required.");if(!(e instanceof iT)){if(!n){const n=this.getChildren(!0);n.includes(e.data)||((0,p.b0)(t)||t<0?n.push(e.data):n.splice(t,0,e.data))}Object.assign(e,{parent:this,store:this.store}),e=(0,l.Kh)(new iT(e)),e instanceof iT&&e.initialize()}e.level=this.level+1,(0,p.b0)(t)||t<0?this.childNodes.push(e):this.childNodes.splice(t,0,e),this.updateLeafState()}insertBefore(e,t){let n;t&&(n=this.childNodes.indexOf(t)),this.insertChild(e,n)}insertAfter(e,t){let n;t&&(n=this.childNodes.indexOf(t),-1!==n&&(n+=1)),this.insertChild(e,n)}removeChild(e){const t=this.getChildren()||[],n=t.indexOf(e.data);n>-1&&t.splice(n,1);const r=this.childNodes.indexOf(e);r>-1&&(this.store&&this.store.deregisterNode(e),e.parent=null,this.childNodes.splice(r,1)),this.updateLeafState()}removeChildByData(e){let t=null;for(let n=0;n<this.childNodes.length;n++)if(this.childNodes[n].data===e){t=this.childNodes[n];break}t&&this.removeChild(t)}expand(e,t){const n=()=>{if(t){let e=this.parent;while(e.level>0)e.expanded=!0,e=e.parent}this.expanded=!0,e&&e(),this.childNodes.forEach((e=>{e.canFocus=!0}))};this.shouldLoadData()?this.loadData((e=>{(0,c.cy)(e)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||nT(this),n())})):n()}doCreateChildren(e,t={}){e.forEach((e=>{this.insertChild(Object.assign({data:e},t),void 0,!0)}))}collapse(){this.expanded=!1,this.childNodes.forEach((e=>{e.canFocus=!1}))}shouldLoadData(){return!0===this.store.lazy&&this.store.load&&!this.loaded}updateLeafState(){if(!0===this.store.lazy&&!0!==this.loaded&&"undefined"!==typeof this.isLeafByUser)return void(this.isLeaf=this.isLeafByUser);const e=this.childNodes;!this.store.lazy||!0===this.store.lazy&&!0===this.loaded?this.isLeaf=!e||0===e.length:this.isLeaf=!1}setChecked(e,t,n,r){if(this.indeterminate="half"===e,this.checked=!0===e,this.store.checkStrictly)return;if(!this.shouldLoadData()||this.store.checkDescendants){const{all:n,allWithoutDisable:a}=tT(this.childNodes);this.isLeaf||n||!a||(this.checked=!1,e=!1);const i=()=>{if(t){const n=this.childNodes;for(let o=0,s=n.length;o<s;o++){const a=n[o];r=r||!1!==e;const i=a.disabled?a.checked:r;a.setChecked(i,t,!0,r)}const{half:a,all:i}=tT(n);i||(this.checked=i,this.indeterminate=a)}};if(this.shouldLoadData())return void this.loadData((()=>{i(),nT(this)}),{checked:!1!==e});i()}const a=this.parent;a&&0!==a.level&&(n||nT(a))}getChildren(e=!1){if(0===this.level)return this.data;const t=this.data;if(!t)return null;const n=this.store.props;let r="children";return n&&(r=n.children||"children"),void 0===t[r]&&(t[r]=null),e&&!t[r]&&(t[r]=[]),t[r]}updateChildren(){const e=this.getChildren()||[],t=this.childNodes.map((e=>e.data)),n={},r=[];e.forEach(((e,a)=>{const i=e[QA],o=!!i&&t.findIndex((e=>e[QA]===i))>=0;o?n[i]={index:a,data:e}:r.push({index:a,data:e})})),this.store.lazy||t.forEach((e=>{n[e[QA]]||this.removeChildByData(e)})),r.forEach((({index:e,data:t})=>{this.insertChild({data:t},e)})),this.updateLeafState()}loadData(e,t={}){if(!0!==this.store.lazy||!this.store.load||this.loaded||this.loading&&!Object.keys(t).length)e&&e.call(this);else{this.loading=!0;const n=n=>{this.childNodes=[],this.doCreateChildren(n,t),this.loaded=!0,this.loading=!1,this.updateLeafState(),e&&e.call(this,n)},r=()=>{this.loading=!1};this.store.load(this,n,r)}}eachNode(e){const t=[this];while(t.length){const n=t.shift();t.unshift(...n.childNodes),e(n)}}reInitChecked(){this.store.checkStrictly||nT(this)}}class oT{constructor(e){this.currentNode=null,this.currentNodeKey=null;for(const t in e)(0,c.$3)(e,t)&&(this[t]=e[t]);this.nodesMap={}}initialize(){if(this.root=new iT({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const e=this.load;e(this.root,(e=>{this.root.doCreateChildren(e),this._initDefaultCheckedNodes()}))}else this._initDefaultCheckedNodes()}filter(e){const t=this.filterNodeMethod,n=this.lazy,r=function(a){const i=a.root?a.root.childNodes:a.childNodes;if(i.forEach((n=>{n.visible=t.call(n,e,n.data,n),r(n)})),!a.visible&&i.length){let e=!0;e=!i.some((e=>e.visible)),a.root?a.root.visible=!1===e:a.visible=!1===e}e&&a.visible&&!a.isLeaf&&(n&&!a.loaded||a.expand())};r(this)}setData(e){const t=e!==this.root.data;t?(this.nodesMap={},this.root.setData(e),this._initDefaultCheckedNodes(),this.setCurrentNodeKey(this.currentNodeKey)):this.root.updateChildren()}getNode(e){if(e instanceof iT)return e;const t=(0,c.Gv)(e)?JA(this.key,e):e;return this.nodesMap[t]||null}insertBefore(e,t){const n=this.getNode(t);n.parent.insertBefore({data:e},n)}insertAfter(e,t){const n=this.getNode(t);n.parent.insertAfter({data:e},n)}remove(e){const t=this.getNode(e);t&&t.parent&&(t===this.currentNode&&(this.currentNode=null),t.parent.removeChild(t))}append(e,t){const n=(0,p.Xj)(t)?this.root:this.getNode(t);n&&n.insertChild({data:e})}_initDefaultCheckedNodes(){const e=this.defaultCheckedKeys||[],t=this.nodesMap;e.forEach((e=>{const n=t[e];n&&n.setChecked(!0,!this.checkStrictly)}))}_initDefaultCheckedNode(e){const t=this.defaultCheckedKeys||[];t.includes(e.key)&&e.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(e){e!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=e,this._initDefaultCheckedNodes())}registerNode(e){const t=this.key;if(e&&e.data)if(t){const t=e.key;void 0!==t&&(this.nodesMap[e.key]=e)}else this.nodesMap[e.id]=e}deregisterNode(e){const t=this.key;t&&e&&e.data&&(e.childNodes.forEach((e=>{this.deregisterNode(e)})),delete this.nodesMap[e.key])}getCheckedNodes(e=!1,t=!1){const n=[],r=function(a){const i=a.root?a.root.childNodes:a.childNodes;i.forEach((a=>{(a.checked||t&&a.indeterminate)&&(!e||e&&a.isLeaf)&&n.push(a.data),r(a)}))};return r(this),n}getCheckedKeys(e=!1){return this.getCheckedNodes(e).map((e=>(e||{})[this.key]))}getHalfCheckedNodes(){const e=[],t=function(n){const r=n.root?n.root.childNodes:n.childNodes;r.forEach((n=>{n.indeterminate&&e.push(n.data),t(n)}))};return t(this),e}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map((e=>(e||{})[this.key]))}_getAllNodes(){const e=[],t=this.nodesMap;for(const n in t)(0,c.$3)(t,n)&&e.push(t[n]);return e}updateChildren(e,t){const n=this.nodesMap[e];if(!n)return;const r=n.childNodes;for(let a=r.length-1;a>=0;a--){const e=r[a];this.remove(e.data)}for(let a=0,i=t.length;a<i;a++){const e=t[a];this.append(e,n.data)}}_setCheckedKeys(e,t=!1,n){const r=this._getAllNodes().sort(((e,t)=>e.level-t.level)),a=Object.create(null),i=Object.keys(n);r.forEach((e=>e.setChecked(!1,!1)));const o=t=>{t.childNodes.forEach((t=>{var n;a[t.data[e]]=!0,(null==(n=t.childNodes)?void 0:n.length)&&o(t)}))};for(let s=0,l=r.length;s<l;s++){const n=r[s],l=n.data[e].toString(),c=i.includes(l);if(c){if(n.childNodes.length&&o(n),n.isLeaf||this.checkStrictly)n.setChecked(!0,!1);else if(n.setChecked(!0,!0),t){n.setChecked(!1,!1);const e=function(t){const n=t.childNodes;n.forEach((t=>{t.isLeaf||t.setChecked(!1,!1),e(t)}))};e(n)}}else n.checked&&!a[l]&&n.setChecked(!1,!1)}}setCheckedNodes(e,t=!1){const n=this.key,r={};e.forEach((e=>{r[(e||{})[n]]=!0})),this._setCheckedKeys(n,t,r)}setCheckedKeys(e,t=!1){this.defaultCheckedKeys=e;const n=this.key,r={};e.forEach((e=>{r[e]=!0})),this._setCheckedKeys(n,t,r)}setDefaultExpandedKeys(e){e=e||[],this.defaultExpandedKeys=e,e.forEach((e=>{const t=this.getNode(e);t&&t.expand(null,this.autoExpandParent)}))}setChecked(e,t,n){const r=this.getNode(e);r&&r.setChecked(!!t,n)}getCurrentNode(){return this.currentNode}setCurrentNode(e){const t=this.currentNode;t&&(t.isCurrent=!1),this.currentNode=e,this.currentNode.isCurrent=!0}setUserCurrentNode(e,t=!0){const n=e[this.key],r=this.nodesMap[n];this.setCurrentNode(r),t&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0)}setCurrentNodeKey(e,t=!0){if(this.currentNodeKey=e,null===e||void 0===e)return this.currentNode&&(this.currentNode.isCurrent=!1),void(this.currentNode=null);const n=this.getNode(e);n&&(this.setCurrentNode(n),t&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0))}}const sT=(0,s.pM)({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=(0,v.DU)("tree"),n=(0,s.WQ)("NodeInstance"),r=(0,s.WQ)("RootTree");return()=>{const a=e.node,{data:i,store:o}=a;return e.renderContent?e.renderContent(s.h,{_self:n,node:a,data:i,store:o}):(0,s.RG)(r.ctx.slots,"default",{node:a,data:i},(()=>[(0,s.h)("span",{class:t.be("node","label")},[a.label])]))}}});var lT=(0,g.A)(sT,[["__file","tree-node-content.vue"]]);function cT(e){const t=(0,s.WQ)("TreeNodeMap",null),n={treeNodeExpand:t=>{e.node!==t&&e.node.collapse()},children:[]};return t&&t.children.push(n),(0,s.Gt)("TreeNodeMap",n),{broadcastExpanded:t=>{if(e.accordion)for(const e of n.children)e.treeNodeExpand(t)}}}const uT=Symbol("dragEvents");function dT({props:e,ctx:t,el$:n,dropIndicator$:r,store:a}){const i=(0,v.DU)("tree"),o=(0,l.KR)({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null}),u=({event:n,treeNode:r})=>{if((0,c.Tn)(e.allowDrag)&&!e.allowDrag(r.node))return n.preventDefault(),!1;n.dataTransfer.effectAllowed="move";try{n.dataTransfer.setData("text/plain","")}catch(a){}o.value.draggingNode=r,t.emit("node-drag-start",r.node,n)},d=({event:a,treeNode:s})=>{const l=s,u=o.value.dropNode;u&&u.node.id!==l.node.id&&(0,b.vy)(u.$el,i.is("drop-inner"));const d=o.value.draggingNode;if(!d||!l)return;let h=!0,p=!0,f=!0,m=!0;(0,c.Tn)(e.allowDrop)&&(h=e.allowDrop(d.node,l.node,"prev"),m=p=e.allowDrop(d.node,l.node,"inner"),f=e.allowDrop(d.node,l.node,"next")),a.dataTransfer.dropEffect=p||h||f?"move":"none",(h||p||f)&&(null==u?void 0:u.node.id)!==l.node.id&&(u&&t.emit("node-drag-leave",d.node,u.node,a),t.emit("node-drag-enter",d.node,l.node,a)),o.value.dropNode=h||p||f?l:null,l.node.nextSibling===d.node&&(f=!1),l.node.previousSibling===d.node&&(h=!1),l.node.contains(d.node,!1)&&(p=!1),(d.node===l.node||d.node.contains(l.node))&&(h=!1,p=!1,f=!1);const g=l.$el.querySelector(`.${i.be("node","content")}`).getBoundingClientRect(),v=n.value.getBoundingClientRect();let y;const w=h?p?.25:f?.45:1:-1,x=f?p?.75:h?.55:0:1;let k=-9999;const _=a.clientY-g.top;y=_<g.height*w?"before":_>g.height*x?"after":p?"inner":"none";const C=l.$el.querySelector(`.${i.be("node","expand-icon")}`).getBoundingClientRect(),E=r.value;"before"===y?k=C.top-v.top:"after"===y&&(k=C.bottom-v.top),E.style.top=`${k}px`,E.style.left=C.right-v.left+"px","inner"===y?(0,b.iQ)(l.$el,i.is("drop-inner")):(0,b.vy)(l.$el,i.is("drop-inner")),o.value.showDropIndicator="before"===y||"after"===y,o.value.allowDrop=o.value.showDropIndicator||m,o.value.dropType=y,t.emit("node-drag-over",d.node,l.node,a)},h=e=>{const{draggingNode:n,dropType:r,dropNode:s}=o.value;if(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="move"),n&&s){const o={data:n.node.data};"none"!==r&&n.node.remove(),"before"===r?s.node.parent.insertBefore(o,s.node):"after"===r?s.node.parent.insertAfter(o,s.node):"inner"===r&&s.node.insertChild(o),"none"!==r&&(a.value.registerNode(o),a.value.key&&n.node.eachNode((e=>{var t;null==(t=a.value.nodesMap[e.data[a.value.key]])||t.setChecked(e.checked,!a.value.checkStrictly)}))),(0,b.vy)(s.$el,i.is("drop-inner")),t.emit("node-drag-end",n.node,s.node,r,e),"none"!==r&&t.emit("node-drop",n.node,s.node,r,e)}n&&!s&&t.emit("node-drag-end",n.node,null,r,e),o.value.showDropIndicator=!1,o.value.draggingNode=null,o.value.dropNode=null,o.value.allowDrop=!0};return(0,s.Gt)(uT,{treeNodeDragStart:u,treeNodeDragOver:d,treeNodeDragEnd:h}),{dragState:o}}const hT=(0,s.pM)({name:"ElTreeNode",components:{ElCollapseTransition:gl,ElCheckbox:Ao,NodeContent:lT,ElIcon:A.tk,Loading:H.Rhj},props:{node:{type:iT,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:{type:Boolean,default:!1}},emits:["node-expand"],setup(e,t){const n=(0,v.DU)("tree"),{broadcastExpanded:r}=cT(e),a=(0,s.WQ)("RootTree"),i=(0,l.KR)(!1),o=(0,l.KR)(!1),u=(0,l.KR)(null),d=(0,l.KR)(null),h=(0,l.KR)(null),p=(0,s.WQ)(uT),f=(0,s.nI)();(0,s.Gt)("NodeInstance",f),a||(0,w.U)("Tree","Can not find node's tree."),e.node.expanded&&(i.value=!0,o.value=!0);const m=a.props.props["children"]||"children";(0,s.wB)((()=>{const t=e.node.data[m];return t&&[...t]}),(()=>{e.node.updateChildren()})),(0,s.wB)((()=>e.node.indeterminate),(t=>{b(e.node.checked,t)})),(0,s.wB)((()=>e.node.checked),(t=>{b(t,e.node.indeterminate)})),(0,s.wB)((()=>e.node.childNodes.length),(()=>e.node.reInitChecked())),(0,s.wB)((()=>e.node.expanded),(e=>{(0,s.dY)((()=>i.value=e)),e&&(o.value=!0)}));const g=e=>JA(a.props.nodeKey,e.data),y=t=>{const n=e.props.class;if(!n)return{};let r;if((0,c.Tn)(n)){const{data:e}=t;r=n(e,t)}else r=n;return(0,c.Kg)(r)?{[r]:!0}:r},b=(t,n)=>{u.value===t&&d.value===n||a.ctx.emit("check-change",e.node.data,t,n),u.value=t,d.value=n},x=t=>{eT(a.store,a.ctx.emit,(()=>{var t;const n=null==(t=null==a?void 0:a.props)?void 0:t.nodeKey;if(n){const t=g(e.node);a.store.value.setCurrentNodeKey(t)}else a.store.value.setCurrentNode(e.node)})),a.currentNode.value=e.node,a.props.expandOnClickNode&&_(),a.props.checkOnClickNode&&!e.node.disabled&&C(!e.node.checked),a.ctx.emit("node-click",e.node.data,e.node,f,t)},k=t=>{a.instance.vnode.props["onNodeContextmenu"]&&(t.stopPropagation(),t.preventDefault()),a.ctx.emit("node-contextmenu",t,e.node.data,e.node,f)},_=()=>{e.node.isLeaf||(i.value?(a.ctx.emit("node-collapse",e.node.data,e.node,f),e.node.collapse()):e.node.expand((()=>{t.emit("node-expand",e.node.data,e.node,f)})))},C=t=>{e.node.setChecked(t,!(null==a?void 0:a.props.checkStrictly)),(0,s.dY)((()=>{const t=a.store.value;a.ctx.emit("check",e.node.data,{checkedNodes:t.getCheckedNodes(),checkedKeys:t.getCheckedKeys(),halfCheckedNodes:t.getHalfCheckedNodes(),halfCheckedKeys:t.getHalfCheckedKeys()})}))},E=(e,t,n)=>{r(t),a.ctx.emit("node-expand",e,t,n)},R=t=>{a.props.draggable&&p.treeNodeDragStart({event:t,treeNode:e})},S=t=>{t.preventDefault(),a.props.draggable&&p.treeNodeDragOver({event:t,treeNode:{$el:h.value,node:e.node}})},A=e=>{e.preventDefault()},T=e=>{a.props.draggable&&p.treeNodeDragEnd(e)};return{ns:n,node$:h,tree:a,expanded:i,childNodeRendered:o,oldChecked:u,oldIndeterminate:d,getNodeKey:g,getNodeClass:y,handleSelectChange:b,handleClick:x,handleContextMenu:k,handleExpandIconClick:_,handleCheckChange:C,handleChildNodeExpand:E,handleDragStart:R,handleDragOver:S,handleDrop:A,handleDragEnd:T,CaretRight:H.K3R}}});function pT(e,t,n,r,a,i){const o=(0,s.g2)("el-icon"),l=(0,s.g2)("el-checkbox"),u=(0,s.g2)("loading"),d=(0,s.g2)("node-content"),h=(0,s.g2)("el-tree-node"),p=(0,s.g2)("el-collapse-transition");return(0,s.bo)(((0,s.uX)(),(0,s.CE)("div",{ref:"node$",class:(0,c.C4)([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.node.isCurrent),e.ns.is("hidden",!e.node.visible),e.ns.is("focusable",!e.node.disabled),e.ns.is("checked",!e.node.disabled&&e.node.checked),e.getNodeClass(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.node.disabled,"aria-checked":e.node.checked,draggable:e.tree.props.draggable,"data-key":e.getNodeKey(e.node),onClick:(0,S.D$)(e.handleClick,["stop"]),onContextmenu:e.handleContextMenu,onDragstart:(0,S.D$)(e.handleDragStart,["stop"]),onDragover:(0,S.D$)(e.handleDragOver,["stop"]),onDragend:(0,S.D$)(e.handleDragEnd,["stop"]),onDrop:(0,S.D$)(e.handleDrop,["stop"])},[(0,s.Lk)("div",{class:(0,c.C4)(e.ns.be("node","content")),style:(0,c.Tr)({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?((0,s.uX)(),(0,s.Wv)(o,{key:0,class:(0,c.C4)([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:(0,S.D$)(e.handleExpandIconClick,["stop"])},{default:(0,s.k6)((()=>[((0,s.uX)(),(0,s.Wv)((0,s.$y)(e.tree.props.icon||e.CaretRight)))])),_:1},8,["class","onClick"])):(0,s.Q3)("v-if",!0),e.showCheckbox?((0,s.uX)(),(0,s.Wv)(l,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:(0,S.D$)((()=>{}),["stop"]),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onClick","onChange"])):(0,s.Q3)("v-if",!0),e.node.loading?((0,s.uX)(),(0,s.Wv)(o,{key:2,class:(0,c.C4)([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:(0,s.k6)((()=>[(0,s.bF)(u)])),_:1},8,["class"])):(0,s.Q3)("v-if",!0),(0,s.bF)(d,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),(0,s.bF)(p,null,{default:(0,s.k6)((()=>[!e.renderAfterExpand||e.childNodeRendered?(0,s.bo)(((0,s.uX)(),(0,s.CE)("div",{key:0,class:(0,c.C4)(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded},[((0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)(e.node.childNodes,(t=>((0,s.uX)(),(0,s.Wv)(h,{key:e.getNodeKey(t),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:t,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"])))),128))],10,["aria-expanded"])),[[S.aG,e.expanded]]):(0,s.Q3)("v-if",!0)])),_:1})],42,["aria-expanded","aria-disabled","aria-checked","draggable","data-key","onClick","onContextmenu","onDragstart","onDragover","onDragend","onDrop"])),[[S.aG,e.node.visible]])}var fT=(0,g.A)(hT,[["render",pT],["__file","tree-node.vue"]]);function mT({el$:e},t){const n=(0,v.DU)("tree"),r=(0,l.IJ)([]),a=(0,l.IJ)([]);(0,s.sV)((()=>{o()})),(0,s.$u)((()=>{r.value=Array.from(e.value.querySelectorAll("[role=treeitem]")),a.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"))})),(0,s.wB)(a,(e=>{e.forEach((e=>{e.setAttribute("tabindex","-1")}))}));const i=a=>{const i=a.target;if(!i.className.includes(n.b("node")))return;const o=a.code;r.value=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`));const s=r.value.indexOf(i);let l;if([$n.R.up,$n.R.down].includes(o)){if(a.preventDefault(),o===$n.R.up){l=-1===s?0:0!==s?s-1:r.value.length-1;const e=l;while(1){if(t.value.getNode(r.value[l].dataset.key).canFocus)break;if(l--,l===e){l=-1;break}l<0&&(l=r.value.length-1)}}else{l=-1===s?0:s<r.value.length-1?s+1:0;const e=l;while(1){if(t.value.getNode(r.value[l].dataset.key).canFocus)break;if(l++,l===e){l=-1;break}l>=r.value.length&&(l=0)}}-1!==l&&r.value[l].focus()}[$n.R.left,$n.R.right].includes(o)&&(a.preventDefault(),i.click());const c=i.querySelector('[type="checkbox"]');[$n.R.enter,$n.R.numpadEnter,$n.R.space].includes(o)&&c&&(a.preventDefault(),c.click())};(0,u.MLh)(e,"keydown",i);const o=()=>{var t;r.value=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)),a.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"));const i=e.value.querySelectorAll(`.${n.is("checked")}[role=treeitem]`);i.length?i[0].setAttribute("tabindex","0"):null==(t=r.value[0])||t.setAttribute("tabindex","0")}}const gT=(0,s.pM)({name:"ElTree",components:{ElTreeNode:fT},props:{data:{type:Array,default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},icon:{type:T.Ze}},emits:["check-change","current-change","node-click","node-contextmenu","node-collapse","node-expand","check","node-drag-start","node-drag-end","node-drop","node-drag-leave","node-drag-enter","node-drag-over"],setup(e,t){const{t:n}=(0,La.Ym)(),r=(0,v.DU)("tree"),a=(0,s.WQ)(Cg,null),i=(0,l.KR)(new oT({key:e.nodeKey,data:e.data,lazy:e.lazy,props:e.props,load:e.load,currentNodeKey:e.currentNodeKey,checkStrictly:e.checkStrictly,checkDescendants:e.checkDescendants,defaultCheckedKeys:e.defaultCheckedKeys,defaultExpandedKeys:e.defaultExpandedKeys,autoExpandParent:e.autoExpandParent,defaultExpandAll:e.defaultExpandAll,filterNodeMethod:e.filterNodeMethod}));i.value.initialize();const o=(0,l.KR)(i.value.root),c=(0,l.KR)(null),u=(0,l.KR)(null),d=(0,l.KR)(null),{broadcastExpanded:h}=cT(e),{dragState:p}=dT({props:e,ctx:t,el$:u,dropIndicator$:d,store:i});mT({el$:u},i);const f=(0,s.EW)((()=>{const{childNodes:e}=o.value,t=!!a&&0!==a.hasFilteredOptions;return(!e||0===e.length||e.every((({visible:e})=>!e)))&&!t}));(0,s.wB)((()=>e.currentNodeKey),(e=>{i.value.setCurrentNodeKey(e)})),(0,s.wB)((()=>e.defaultCheckedKeys),(e=>{i.value.setDefaultCheckedKey(e)})),(0,s.wB)((()=>e.defaultExpandedKeys),(e=>{i.value.setDefaultExpandedKeys(e)})),(0,s.wB)((()=>e.data),(e=>{i.value.setData(e)}),{deep:!0}),(0,s.wB)((()=>e.checkStrictly),(e=>{i.value.checkStrictly=e}));const m=t=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");i.value.filter(t)},g=t=>JA(e.nodeKey,t.data),y=t=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const n=i.value.getNode(t);if(!n)return[];const r=[n.data];let a=n.parent;while(a&&a!==o.value)r.push(a.data),a=a.parent;return r.reverse()},b=(e,t)=>i.value.getCheckedNodes(e,t),w=e=>i.value.getCheckedKeys(e),x=()=>{const e=i.value.getCurrentNode();return e?e.data:null},k=()=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const t=x();return t?t[e.nodeKey]:null},_=(t,n)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");i.value.setCheckedNodes(t,n)},C=(t,n)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");i.value.setCheckedKeys(t,n)},E=(e,t,n)=>{i.value.setChecked(e,t,n)},R=()=>i.value.getHalfCheckedNodes(),S=()=>i.value.getHalfCheckedKeys(),A=(n,r=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");eT(i,t.emit,(()=>{h(n),i.value.setUserCurrentNode(n,r)}))},T=(n,r=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");eT(i,t.emit,(()=>{h(),i.value.setCurrentNodeKey(n,r)}))},M=e=>i.value.getNode(e),L=e=>{i.value.remove(e)},O=(e,t)=>{i.value.append(e,t)},I=(e,t)=>{i.value.insertBefore(e,t)},N=(e,t)=>{i.value.insertAfter(e,t)},B=(e,n,r)=>{h(n),t.emit("node-expand",e,n,r)},D=(t,n)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");i.value.updateChildren(t,n)};return(0,s.Gt)("RootTree",{ctx:t,props:e,store:i,root:o,currentNode:c,instance:(0,s.nI)()}),(0,s.Gt)(Pr.w,void 0),{ns:r,store:i,root:o,currentNode:c,dragState:p,el$:u,dropIndicator$:d,isEmpty:f,filter:m,getNodeKey:g,getNodePath:y,getCheckedNodes:b,getCheckedKeys:w,getCurrentNode:x,getCurrentKey:k,setCheckedNodes:_,setCheckedKeys:C,setChecked:E,getHalfCheckedNodes:R,getHalfCheckedKeys:S,setCurrentNode:A,setCurrentKey:T,t:n,getNode:M,remove:L,append:O,insertBefore:I,insertAfter:N,handleNodeExpand:B,updateKeyChildren:D}}});function vT(e,t,n,r,a,i){const o=(0,s.g2)("el-tree-node");return(0,s.uX)(),(0,s.CE)("div",{ref:"el$",class:(0,c.C4)([e.ns.b(),e.ns.is("dragging",!!e.dragState.draggingNode),e.ns.is("drop-not-allow",!e.dragState.allowDrop),e.ns.is("drop-inner","inner"===e.dragState.dropType),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[((0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)(e.root.childNodes,(t=>((0,s.uX)(),(0,s.Wv)(o,{key:e.getNodeKey(t),node:t,props:e.props,accordion:e.accordion,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent,onNodeExpand:e.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"])))),128)),e.isEmpty?((0,s.uX)(),(0,s.CE)("div",{key:0,class:(0,c.C4)(e.ns.e("empty-block"))},[(0,s.RG)(e.$slots,"empty",{},(()=>{var t;return[(0,s.Lk)("span",{class:(0,c.C4)(e.ns.e("empty-text"))},(0,c.v_)(null!=(t=e.emptyText)?t:e.t("el.tree.emptyText")),3)]}))],2)):(0,s.Q3)("v-if",!0),(0,s.bo)((0,s.Lk)("div",{ref:"dropIndicator$",class:(0,c.C4)(e.ns.e("drop-indicator"))},null,2),[[S.aG,e.dragState.showDropIndicator]])],2)}var yT=(0,g.A)(gT,[["render",vT],["__file","tree.vue"]]);const bT=(0,E.GU)(yT),wT=(e,{attrs:t,emit:n},{select:r,tree:a,key:i})=>{const o=(0,v.DU)("tree-select");(0,s.wB)((()=>e.data),(()=>{e.filterable&&(0,s.dY)((()=>{var e,t;null==(t=a.value)||t.filter(null==(e=r.value)?void 0:e.states.inputValue)}))}),{flush:"post"});const c={...(0,ko.A)((0,l.QW)(e),Object.keys(Xg.props)),...t,"onUpdate:modelValue":e=>n(d.l4,e),valueKey:i,popperClass:(0,s.EW)((()=>{const t=[o.e("popper")];return e.popperClass&&t.push(e.popperClass),t.join(" ")})),filterMethod:(t="")=>{var n;e.filterMethod?e.filterMethod(t):e.remoteMethod?e.remoteMethod(t):null==(n=a.value)||n.filter(t)}};return c},xT=(0,s.pM)({extends:Yg,setup(e,t){const n=Yg.setup(e,t);delete n.selectOptionClick;const r=(0,s.nI)().proxy;return(0,s.dY)((()=>{n.select.states.cachedOptions.get(r.value)||n.select.onOptionCreate(r)})),(0,s.wB)((()=>t.attrs.visible),(e=>{n.states.visible=e}),{immediate:!0}),n},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function kT(e){return e||0===e}function _T(e){return(0,c.cy)(e)&&e.length}function CT(e){return(0,c.cy)(e)?e:kT(e)?[e]:[]}function ET(e,t,n,r,a){for(let i=0;i<e.length;i++){const o=e[i];if(t(o,i,e,a))return r?r(o,i,e,a):o;{const e=n(o);if(_T(e)){const a=ET(e,t,n,r,o);if(a)return a}}}}function RT(e,t,n,r){for(let a=0;a<e.length;a++){const i=e[a];t(i,a,e,r);const o=n(i);_T(o)&&RT(o,t,n,i)}}const ST=(e,{attrs:t,slots:n,emit:r},{select:a,tree:i,key:o})=>{(0,s.wB)((()=>e.modelValue),(()=>{e.showCheckbox&&(0,s.dY)((()=>{const t=i.value;t&&!Ji(t.getCheckedKeys(),CT(e.modelValue))&&t.setCheckedKeys(CT(e.modelValue))}))}),{immediate:!0,deep:!0});const u=(0,s.EW)((()=>({value:o.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...e.props}))),h=(e,t)=>{var n;const r=u.value[e];return(0,c.Tn)(r)?r(t,null==(n=i.value)?void 0:n.getNode(h("value",t))):t[r]},f=CT(e.modelValue).map((t=>ET(e.data||[],(e=>h("value",e)===t),(e=>h("children",e)),((e,t,n,r)=>r&&h("value",r))))).filter((e=>kT(e))),m=(0,s.EW)((()=>{if(!e.renderAfterExpand&&!e.lazy)return[];const t=[];return RT(e.data.concat(e.cacheData),(e=>{const n=h("value",e);t.push({value:n,currentLabel:h("label",e),isDisabled:h("disabled",e)})}),(e=>h("children",e))),t})),g=()=>{var e;return null==(e=i.value)?void 0:e.getCheckedKeys().filter((e=>{var t;const n=null==(t=i.value)?void 0:t.getNode(e);return!(0,er.A)(n)&&(0,p.Im)(n.childNodes)}))};return{...(0,ko.A)((0,l.QW)(e),Object.keys(bT.props)),...t,nodeKey:o,expandOnClickNode:(0,s.EW)((()=>!e.checkStrictly&&e.expandOnClickNode)),defaultExpandedKeys:(0,s.EW)((()=>e.defaultExpandedKeys?e.defaultExpandedKeys.concat(f):f)),renderContent:(t,{node:r,data:a,store:i})=>t(xT,{value:h("value",a),label:h("label",a),disabled:h("disabled",a),visible:r.visible},e.renderContent?()=>e.renderContent(t,{node:r,data:a,store:i}):n.default?()=>n.default({node:r,data:a,store:i}):void 0),filterNodeMethod:(t,n,r)=>{if(e.filterNodeMethod)return e.filterNodeMethod(t,n,r);if(!t)return!0;const a=new RegExp(is(t),"i");return a.test(h("label",n)||"")},onNodeClick:(n,r,i)=>{var o,s,l,c;if(null==(o=t.onNodeClick)||o.call(t,n,r,i),!e.showCheckbox||!e.checkOnClickNode){if(e.showCheckbox||!e.checkStrictly&&!r.isLeaf)e.expandOnClickNode&&i.proxy.handleExpandIconClick();else if(!h("disabled",n)){const e=null==(s=a.value)?void 0:s.states.options.get(h("value",n));null==(l=a.value)||l.handleOptionSelect(e)}null==(c=a.value)||c.focus()}},onCheck:(n,o)=>{var l;if(!e.showCheckbox)return;const c=h("value",n),u={};RT([i.value.store.root],(e=>u[e.key]=e),(e=>e.childNodes));const p=o.checkedKeys,f=e.multiple?CT(e.modelValue).filter((e=>!(e in u)&&!p.includes(e))):[],m=f.concat(p);if(e.checkStrictly)r(d.l4,e.multiple?m:m.includes(c)?c:void 0);else if(e.multiple){const e=g();r(d.l4,f.concat(e))}else{const t=ET([n],(e=>!_T(h("children",e))&&!h("disabled",e)),(e=>h("children",e))),a=t?h("value",t):void 0,i=kT(e.modelValue)&&!!ET([n],(t=>h("value",t)===e.modelValue),(e=>h("children",e)));r(d.l4,a===e.modelValue||i?void 0:a)}(0,s.dY)((()=>{var r;const a=CT(e.modelValue);i.value.setCheckedKeys(a),null==(r=t.onCheck)||r.call(t,n,{checkedKeys:i.value.getCheckedKeys(),checkedNodes:i.value.getCheckedNodes(),halfCheckedKeys:i.value.getHalfCheckedKeys(),halfCheckedNodes:i.value.getHalfCheckedNodes()})})),null==(l=a.value)||l.focus()},onNodeExpand:(n,a,o)=>{var l;null==(l=t.onNodeExpand)||l.call(t,n,a,o),(0,s.dY)((()=>{if(!e.checkStrictly&&e.lazy&&e.multiple&&a.checked){const t={},n=i.value.getCheckedKeys();RT([i.value.store.root],(e=>t[e.key]=e),(e=>e.childNodes));const a=CT(e.modelValue).filter((e=>!(e in t)&&!n.includes(e))),o=g();r(d.l4,a.concat(o))}}))},cacheOptions:m}};var AT=(0,s.pM)({props:{data:{type:Array,default:()=>[]}},setup(e){const t=(0,s.WQ)(Cg);return(0,s.wB)((()=>e.data),(()=>{var n;e.data.forEach((e=>{t.states.cachedOptions.has(e.value)||t.states.cachedOptions.set(e.value,e)}));const r=(null==(n=t.selectRef)?void 0:n.querySelectorAll("input"))||[];Q.oc&&!Array.from(r).includes(document.activeElement)&&t.setSelected()}),{flush:"post",immediate:!0}),()=>{}}});const TT=(0,s.pM)({name:"ElTreeSelect",inheritAttrs:!1,props:{...Xg.props,...bT.props,cacheData:{type:Array,default:()=>[]}},setup(e,t){const{slots:n,expose:r}=t,a=(0,l.KR)(),i=(0,l.KR)(),o=(0,s.EW)((()=>e.nodeKey||e.valueKey||"value")),c=wT(e,t,{select:a,tree:i,key:o}),{cacheOptions:u,...d}=ST(e,t,{select:a,tree:i,key:o}),h=(0,l.Kh)({});return r(h),(0,s.sV)((()=>{Object.assign(h,{...(0,ko.A)(i.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...(0,ko.A)(a.value,["focus","blur","selectedLabel"])})})),()=>(0,s.h)(Xg,(0,l.Kh)({...c,ref:e=>a.value=e}),{...n,default:()=>[(0,s.h)(AT,{data:u.value}),(0,s.h)(bT,(0,l.Kh)({...d,ref:e=>i.value=e}))]})}});var MT=(0,g.A)(TT,[["__file","tree-select.vue"]]);const LT=(0,E.GU)(MT),OT=Symbol(),IT={key:-1,level:-1,data:{}};var NT=(e=>(e["KEY"]="id",e["LABEL"]="label",e["CHILDREN"]="children",e["DISABLED"]="disabled",e["CLASS"]="",e))(NT||{}),BT=(e=>(e["ADD"]="add",e["DELETE"]="delete",e))(BT||{});const DT={type:Number,default:26},FT=(0,h.b_)({data:{type:(0,h.jq)(Array),default:()=>(0,Gs.f)([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:(0,h.jq)(Object),default:()=>(0,Gs.f)({children:"children",label:"label",disabled:"disabled",value:"id",class:""})},highlightCurrent:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},defaultCheckedKeys:{type:(0,h.jq)(Array),default:()=>(0,Gs.f)([])},checkStrictly:{type:Boolean,default:!1},defaultExpandedKeys:{type:(0,h.jq)(Array),default:()=>(0,Gs.f)([])},indent:{type:Number,default:16},itemSize:DT,icon:{type:T.Ze},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!1},currentNodeKey:{type:(0,h.jq)([String,Number])},accordion:{type:Boolean,default:!1},filterMethod:{type:(0,h.jq)(Function)},perfMode:{type:Boolean,default:!0}}),$T=(0,h.b_)({node:{type:(0,h.jq)(Object),default:()=>(0,Gs.f)(IT)},expanded:{type:Boolean,default:!1},checked:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},current:{type:Boolean,default:!1},hiddenExpandIcon:{type:Boolean,default:!1},itemSize:DT}),PT=(0,h.b_)({node:{type:(0,h.jq)(Object),required:!0}}),zT="node-click",WT="node-drop",jT="node-expand",VT="node-collapse",UT="current-change",KT="check",HT="check-change",qT="node-contextmenu",GT={[zT]:(e,t,n)=>e&&t&&n,[WT]:(e,t,n)=>e&&t&&n,[jT]:(e,t)=>e&&t,[VT]:(e,t)=>e&&t,[UT]:(e,t)=>e&&t,[KT]:(e,t)=>e&&t,[HT]:(e,t)=>e&&(0,p.Lm)(t),[qT]:(e,t,n)=>e&&t&&n},XT={click:(e,t)=>!(!e||!t),drop:(e,t)=>!(!e||!t),toggle:e=>!!e,check:(e,t)=>e&&(0,p.Lm)(t)};function YT(e,t){const n=(0,l.KR)(new Set),r=(0,l.KR)(new Set),{emit:a}=(0,s.nI)();(0,s.wB)([()=>t.value,()=>e.defaultCheckedKeys],(()=>(0,s.dY)((()=>{w(e.defaultCheckedKeys)}))),{immediate:!0});const i=()=>{if(!t.value||!e.showCheckbox||e.checkStrictly)return;const{levelTreeNodeMap:a,maxLevel:i}=t.value,o=n.value,s=new Set;for(let e=i-1;e>=1;--e){const t=a.get(e);t&&t.forEach((e=>{const t=e.children;if(t){let n=!0,r=!1;for(const e of t){const t=e.key;if(o.has(t))r=!0;else{if(s.has(t)){n=!1,r=!0;break}n=!1}}n?o.add(e.key):r?(s.add(e.key),o.delete(e.key)):(o.delete(e.key),s.delete(e.key))}}))}r.value=s},o=e=>n.value.has(e.key),c=e=>r.value.has(e.key),u=(t,r,a=!0,o=!0)=>{const s=n.value,l=(t,n)=>{s[n?BT.ADD:BT.DELETE](t.key);const r=t.children;!e.checkStrictly&&r&&r.forEach((e=>{e.disabled||l(e,n)}))};l(t,r),o&&i(),a&&d(t,r)},d=(e,t)=>{const{checkedNodes:n,checkedKeys:r}=g(),{halfCheckedNodes:i,halfCheckedKeys:o}=v();a(KT,e.data,{checkedKeys:r,checkedNodes:n,halfCheckedKeys:o,halfCheckedNodes:i}),a(HT,e.data,t)};function h(e=!1){return g(e).checkedKeys}function p(e=!1){return g(e).checkedNodes}function f(){return v().halfCheckedKeys}function m(){return v().halfCheckedNodes}function g(r=!1){const a=[],i=[];if((null==t?void 0:t.value)&&e.showCheckbox){const{treeNodeMap:e}=t.value;n.value.forEach((t=>{const n=e.get(t);n&&(!r||r&&n.isLeaf)&&(i.push(t),a.push(n.data))}))}return{checkedKeys:i,checkedNodes:a}}function v(){const n=[],a=[];if((null==t?void 0:t.value)&&e.showCheckbox){const{treeNodeMap:e}=t.value;r.value.forEach((t=>{const r=e.get(t);r&&(a.push(t),n.push(r.data))}))}return{halfCheckedNodes:n,halfCheckedKeys:a}}function y(e){n.value.clear(),r.value.clear(),(0,s.dY)((()=>{w(e)}))}function b(n,r){if((null==t?void 0:t.value)&&e.showCheckbox){const e=t.value.treeNodeMap.get(n);e&&u(e,r,!1)}}function w(n){if(null==t?void 0:t.value){const{treeNodeMap:r}=t.value;if(e.showCheckbox&&r&&(null==n?void 0:n.length)>0){for(const e of n){const t=r.get(e);t&&!o(t)&&u(t,!0,!1,!1)}i()}}}return{updateCheckedKeys:i,toggleCheckbox:u,isChecked:o,isIndeterminate:c,getCheckedKeys:h,getCheckedNodes:p,getHalfCheckedKeys:f,getHalfCheckedNodes:m,setChecked:b,setCheckedKeys:y}}function QT(e,t){const n=(0,l.KR)(new Set([])),r=(0,l.KR)(new Set([])),a=(0,s.EW)((()=>(0,c.Tn)(e.filterMethod)));function i(i){var o;if(!a.value)return;const s=new Set,l=r.value,c=n.value,u=[],d=(null==(o=t.value)?void 0:o.treeNodes)||[],h=e.filterMethod;function p(e){e.forEach((e=>{u.push(e),(null==h?void 0:h(i,e.data,e))?u.forEach((e=>{s.add(e.key)})):e.isLeaf&&c.add(e.key);const t=e.children;if(t&&p(t),!e.isLeaf)if(s.has(e.key)){if(t){let n=!0;for(const e of t)if(!c.has(e.key)){n=!1;break}n?l.add(e.key):l.delete(e.key)}}else c.add(e.key);u.pop()}))}return c.clear(),p(d),s}function o(e){return r.value.has(e.key)}return{hiddenExpandIconKeySet:r,hiddenNodeKeySet:n,doFilter:i,isForceHiddenExpandIcon:o}}function ZT(e,t){const n=(0,l.KR)(new Set(e.defaultExpandedKeys)),r=(0,l.KR)(),a=(0,l.IJ)(),i=(0,l.KR)();(0,s.wB)((()=>e.currentNodeKey),(e=>{r.value=e}),{immediate:!0}),(0,s.wB)((()=>e.data),(e=>{q(e)}),{immediate:!0});const{isIndeterminate:o,isChecked:u,toggleCheckbox:d,getCheckedKeys:h,getCheckedNodes:p,getHalfCheckedKeys:f,getHalfCheckedNodes:m,setChecked:g,setCheckedKeys:v}=YT(e,a),{doFilter:y,hiddenNodeKeySet:b,isForceHiddenExpandIcon:w}=QT(e,a),x=(0,s.EW)((()=>{var t;return(null==(t=e.props)?void 0:t.value)||NT.KEY})),k=(0,s.EW)((()=>{var t;return(null==(t=e.props)?void 0:t.children)||NT.CHILDREN})),_=(0,s.EW)((()=>{var t;return(null==(t=e.props)?void 0:t.disabled)||NT.DISABLED})),C=(0,s.EW)((()=>{var t;return(null==(t=e.props)?void 0:t.label)||NT.LABEL})),E=(0,s.EW)((()=>{var e;const t=n.value,r=b.value,i=[],o=(null==(e=a.value)?void 0:e.treeNodes)||[],s=[];for(let n=o.length-1;n>=0;--n)s.push(o[n]);while(s.length){const e=s.pop();if(!r.has(e.key)&&(i.push(e),e.children&&t.has(e.key)))for(let t=e.children.length-1;t>=0;--t)s.push(e.children[t])}return i})),R=(0,s.EW)((()=>E.value.length>0));function S(e){const t=new Map,n=new Map;let r=1;function a(e,i=1,o=void 0){var s;const l=[];for(const r of e){const e=M(r),c={level:i,key:e,data:r};c.label=O(r),c.parent=o;const u=T(r);c.disabled=L(r),c.isLeaf=!u||0===u.length,u&&u.length&&(c.children=a(u,i+1,c)),l.push(c),t.set(e,c),n.has(i)||n.set(i,[]),null==(s=n.get(i))||s.push(c)}return i>r&&(r=i),l}const i=a(e);return{treeNodeMap:t,levelTreeNodeMap:n,maxLevel:r,treeNodes:i}}function A(e){const t=y(e);t&&(n.value=t)}function T(e){return e[k.value]}function M(e){return e?e[x.value]:""}function L(e){return e[_.value]}function O(e){return e[C.value]}function I(e){const t=n.value;t.has(e.key)?z(e):P(e)}function N(e){const t=new Set,r=a.value.treeNodeMap;e.forEach((e=>{let n=r.get(e);while(n&&!t.has(n.key))t.add(n.key),n=n.parent})),n.value=t}function B(n,r){t(zT,n.data,n,r),F(n),e.expandOnClickNode&&I(n),e.showCheckbox&&e.checkOnClickNode&&!n.disabled&&d(n,!u(n),!0)}function D(e,n){t(WT,e.data,e,n)}function F(e){V(e)||(r.value=e.key,t(UT,e.data,e))}function $(e,t){d(e,t)}function P(r){const i=n.value;if(a.value&&e.accordion){const{treeNodeMap:e}=a.value;i.forEach((t=>{const n=e.get(t);r&&r.level===(null==n?void 0:n.level)&&i.delete(t)}))}i.add(r.key),t(jT,r.data,r)}function z(e){n.value.delete(e.key),t(VT,e.data,e)}function W(e){return n.value.has(e.key)}function j(e){return!!e.disabled}function V(e){const t=r.value;return void 0!==t&&t===e.key}function U(){var e,t;if(r.value)return null==(t=null==(e=a.value)?void 0:e.treeNodeMap.get(r.value))?void 0:t.data}function K(){return r.value}function H(e){r.value=e}function q(e){(0,s.dY)((()=>a.value=S(e)))}function G(e){var t;const n=(0,c.Gv)(e)?M(e):e;return null==(t=a.value)?void 0:t.treeNodeMap.get(n)}function X(e,t="auto"){const n=G(e);n&&i.value&&i.value.scrollToItem(E.value.indexOf(n),t)}function Y(e){var t;null==(t=i.value)||t.scrollTo(e)}return{tree:a,flattenTree:E,isNotEmpty:R,listRef:i,getKey:M,getChildren:T,toggleExpand:I,toggleCheckbox:d,isExpanded:W,isChecked:u,isIndeterminate:o,isDisabled:j,isCurrent:V,isForceHiddenExpandIcon:w,handleNodeClick:B,handleNodeDrop:D,handleNodeCheck:$,getCurrentNode:U,getCurrentKey:K,setCurrentKey:H,getCheckedKeys:h,getCheckedNodes:p,getHalfCheckedKeys:f,getHalfCheckedNodes:m,setChecked:g,setCheckedKeys:v,filter:A,setData:q,getNode:G,expandNode:P,collapseNode:z,setExpandedKeys:N,scrollToNode:X,scrollTo:Y}}var JT=(0,s.pM)({name:"ElTreeNodeContent",props:PT,setup(e){const t=(0,s.WQ)(OT),n=(0,v.DU)("tree");return()=>{const r=e.node,{data:a}=r;return(null==t?void 0:t.ctx.slots.default)?t.ctx.slots.default({node:r,data:a}):(0,s.h)("span",{class:n.be("node","label")},[null==r?void 0:r.label])}}});const eM=(0,s.pM)({name:"ElTreeNode"}),tM=(0,s.pM)({...eM,props:$T,emits:XT,setup(e,{emit:t}){const n=e,r=(0,s.WQ)(OT),a=(0,v.DU)("tree"),i=(0,s.EW)((()=>{var e;return null!=(e=null==r?void 0:r.props.indent)?e:16})),o=(0,s.EW)((()=>{var e;return null!=(e=null==r?void 0:r.props.icon)?e:H.K3R})),u=e=>{const t=null==r?void 0:r.props.props.class;if(!t)return{};let n;if((0,c.Tn)(t)){const{data:r}=e;n=t(r,e)}else n=t;return(0,c.Kg)(n)?{[n]:!0}:n},d=e=>{t("click",n.node,e)},h=e=>{t("drop",n.node,e)},p=()=>{t("toggle",n.node)},f=e=>{t("check",n.node,e)},m=e=>{var t,a,i,o;(null==(i=null==(a=null==(t=null==r?void 0:r.instance)?void 0:t.vnode)?void 0:a.props)?void 0:i["onNodeContextmenu"])&&(e.stopPropagation(),e.preventDefault()),null==r||r.ctx.emit(qT,e,null==(o=n.node)?void 0:o.data,n.node)};return(e,t)=>{var n,r,g;return(0,s.uX)(),(0,s.CE)("div",{ref:"node$",class:(0,c.C4)([(0,l.R1)(a).b("node"),(0,l.R1)(a).is("expanded",e.expanded),(0,l.R1)(a).is("current",e.current),(0,l.R1)(a).is("focusable",!e.disabled),(0,l.R1)(a).is("checked",!e.disabled&&e.checked),u(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.disabled,"aria-checked":e.checked,"data-key":null==(n=e.node)?void 0:n.key,onClick:(0,S.D$)(d,["stop"]),onContextmenu:m,onDragover:(0,S.D$)((()=>{}),["prevent"]),onDragenter:(0,S.D$)((()=>{}),["prevent"]),onDrop:(0,S.D$)(h,["stop"])},[(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(a).be("node","content")),style:(0,c.Tr)({paddingLeft:(e.node.level-1)*(0,l.R1)(i)+"px",height:e.itemSize+"px"})},[(0,l.R1)(o)?((0,s.uX)(),(0,s.Wv)((0,l.R1)(A.tk),{key:0,class:(0,c.C4)([(0,l.R1)(a).is("leaf",!!(null==(r=e.node)?void 0:r.isLeaf)),(0,l.R1)(a).is("hidden",e.hiddenExpandIcon),{expanded:!(null==(g=e.node)?void 0:g.isLeaf)&&e.expanded},(0,l.R1)(a).be("node","expand-icon")]),onClick:(0,S.D$)(p,["stop"])},{default:(0,s.k6)((()=>[((0,s.uX)(),(0,s.Wv)((0,s.$y)((0,l.R1)(o))))])),_:1},8,["class","onClick"])):(0,s.Q3)("v-if",!0),e.showCheckbox?((0,s.uX)(),(0,s.Wv)((0,l.R1)(Ao),{key:1,"model-value":e.checked,indeterminate:e.indeterminate,disabled:e.disabled,onChange:f,onClick:(0,S.D$)((()=>{}),["stop"])},null,8,["model-value","indeterminate","disabled","onClick"])):(0,s.Q3)("v-if",!0),(0,s.bF)((0,l.R1)(JT),{node:e.node},null,8,["node"])],6)],42,["aria-expanded","aria-disabled","aria-checked","data-key","onClick","onDragover","onDragenter","onDrop"])}}});var nM=(0,g.A)(tM,[["__file","tree-node.vue"]]);const rM=(0,s.pM)({name:"ElTreeV2"}),aM=(0,s.pM)({...rM,props:FT,emits:GT,setup(e,{expose:t,emit:n}){const r=e,a=(0,s.Ht)(),i=(0,s.EW)((()=>r.itemSize));(0,s.Gt)(OT,{ctx:{emit:n,slots:a},props:r,instance:(0,s.nI)()}),(0,s.Gt)(Pr.w,void 0);const{t:o}=(0,La.Ym)(),u=(0,v.DU)("tree"),{flattenTree:d,isNotEmpty:h,listRef:p,toggleExpand:f,isExpanded:m,isIndeterminate:g,isChecked:y,isDisabled:b,isCurrent:w,isForceHiddenExpandIcon:x,handleNodeClick:k,handleNodeDrop:_,handleNodeCheck:C,toggleCheckbox:E,getCurrentNode:R,getCurrentKey:S,setCurrentKey:A,getCheckedKeys:T,getCheckedNodes:M,getHalfCheckedKeys:L,getHalfCheckedNodes:O,setChecked:I,setCheckedKeys:N,filter:B,setData:D,getNode:F,expandNode:$,collapseNode:P,setExpandedKeys:z,scrollToNode:W,scrollTo:j}=ZT(r,n);return t({toggleCheckbox:E,getCurrentNode:R,getCurrentKey:S,setCurrentKey:A,getCheckedKeys:T,getCheckedNodes:M,getHalfCheckedKeys:L,getHalfCheckedNodes:O,setChecked:I,setCheckedKeys:N,filter:B,setData:D,getNode:F,expandNode:$,collapseNode:P,setExpandedKeys:z,scrollToNode:W,scrollTo:j}),(e,t)=>((0,s.uX)(),(0,s.CE)("div",{class:(0,c.C4)([(0,l.R1)(u).b(),{[(0,l.R1)(u).m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[(0,l.R1)(h)?((0,s.uX)(),(0,s.Wv)((0,l.R1)(wb),{key:0,ref_key:"listRef",ref:p,"class-name":(0,l.R1)(u).b("virtual-list"),data:(0,l.R1)(d),total:(0,l.R1)(d).length,height:e.height,"item-size":(0,l.R1)(i),"perf-mode":e.perfMode},{default:(0,s.k6)((({data:t,index:n,style:r})=>[((0,s.uX)(),(0,s.Wv)(nM,{key:t[n].key,style:(0,c.Tr)(r),node:t[n],expanded:(0,l.R1)(m)(t[n]),"show-checkbox":e.showCheckbox,checked:(0,l.R1)(y)(t[n]),indeterminate:(0,l.R1)(g)(t[n]),"item-size":(0,l.R1)(i),disabled:(0,l.R1)(b)(t[n]),current:(0,l.R1)(w)(t[n]),"hidden-expand-icon":(0,l.R1)(x)(t[n]),onClick:(0,l.R1)(k),onToggle:(0,l.R1)(f),onCheck:(0,l.R1)(C),onDrop:(0,l.R1)(_)},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","item-size","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck","onDrop"]))])),_:1},8,["class-name","data","total","height","item-size","perf-mode"])):((0,s.uX)(),(0,s.CE)("div",{key:1,class:(0,c.C4)((0,l.R1)(u).e("empty-block"))},[(0,s.RG)(e.$slots,"empty",{},(()=>{var t;return[(0,s.Lk)("span",{class:(0,c.C4)((0,l.R1)(u).e("empty-text"))},(0,c.v_)(null!=(t=e.emptyText)?t:(0,l.R1)(o)("el.tree.emptyText")),3)]}))],2))],2))}});var iM=(0,g.A)(aM,[["__file","tree.vue"]]);const oM=(0,E.GU)(iM),sM=Symbol("uploadContextKey"),lM="ElUpload";class cM extends Error{constructor(e,t,n,r){super(e),this.name="UploadAjaxError",this.status=t,this.method=n,this.url=r}}function uM(e,t,n){let r;return r=n.response?`${n.response.error||n.response}`:n.responseText?`${n.responseText}`:`fail to ${t.method} ${e} ${n.status}`,new cM(r,n.status,t.method,e)}function dM(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(n){return t}}const hM=e=>{"undefined"===typeof XMLHttpRequest&&(0,w.$)(lM,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",(t=>{const n=t;n.percent=t.total>0?t.loaded/t.total*100:0,e.onProgress(n)}));const r=new FormData;if(e.data)for(const[i,o]of Object.entries(e.data))(0,c.cy)(o)&&o.length?r.append(i,...o):r.append(i,o);r.append(e.filename,e.file,e.file.name),t.addEventListener("error",(()=>{e.onError(uM(n,e,t))})),t.addEventListener("load",(()=>{if(t.status<200||t.status>=300)return e.onError(uM(n,e,t));e.onSuccess(dM(t))})),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const a=e.headers||{};if(a instanceof Headers)a.forEach(((e,n)=>t.setRequestHeader(n,e)));else for(const[i,o]of Object.entries(a))(0,er.A)(o)||t.setRequestHeader(i,String(o));return t.send(r),t},pM=["text","picture","picture-card"];let fM=1;const mM=()=>Date.now()+fM++,gM=(0,h.b_)({action:{type:String,default:"#"},headers:{type:(0,h.jq)(Object)},method:{type:String,default:"post"},data:{type:(0,h.jq)([Object,Function,Promise]),default:()=>(0,Gs.f)({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:(0,h.jq)(Array),default:()=>(0,Gs.f)([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:pM,default:"text"},httpRequest:{type:(0,h.jq)(Function),default:hM},disabled:Boolean,limit:Number}),vM=(0,h.b_)({...gM,beforeUpload:{type:(0,h.jq)(Function),default:c.tE},beforeRemove:{type:(0,h.jq)(Function)},onRemove:{type:(0,h.jq)(Function),default:c.tE},onChange:{type:(0,h.jq)(Function),default:c.tE},onPreview:{type:(0,h.jq)(Function),default:c.tE},onSuccess:{type:(0,h.jq)(Function),default:c.tE},onProgress:{type:(0,h.jq)(Function),default:c.tE},onError:{type:(0,h.jq)(Function),default:c.tE},onExceed:{type:(0,h.jq)(Function),default:c.tE},crossorigin:{type:(0,h.jq)(String)}}),yM=(0,h.b_)({files:{type:(0,h.jq)(Array),default:()=>(0,Gs.f)([])},disabled:{type:Boolean,default:!1},handlePreview:{type:(0,h.jq)(Function),default:c.tE},listType:{type:String,values:pM,default:"text"},crossorigin:{type:(0,h.jq)(String)}}),bM={remove:e=>!!e},wM=(0,s.pM)({name:"ElUploadList"}),xM=(0,s.pM)({...wM,props:yM,emits:bM,setup(e,{emit:t}){const n=e,{t:r}=(0,La.Ym)(),a=(0,v.DU)("upload"),i=(0,v.DU)("icon"),o=(0,v.DU)("list"),u=(0,ra.CB)(),d=(0,l.KR)(!1),h=(0,s.EW)((()=>[a.b("list"),a.bm("list",n.listType),a.is("disabled",n.disabled)])),p=e=>{t("remove",e)};return(e,t)=>((0,s.uX)(),(0,s.Wv)(S.F,{tag:"ul",class:(0,c.C4)((0,l.R1)(h)),name:(0,l.R1)(o).b()},{default:(0,s.k6)((()=>[((0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)(e.files,((t,n)=>((0,s.uX)(),(0,s.CE)("li",{key:t.uid||t.name,class:(0,c.C4)([(0,l.R1)(a).be("list","item"),(0,l.R1)(a).is(t.status),{focusing:d.value}]),tabindex:"0",onKeydown:(0,S.jR)((e=>!(0,l.R1)(u)&&p(t)),["delete"]),onFocus:e=>d.value=!0,onBlur:e=>d.value=!1,onClick:e=>d.value=!1},[(0,s.RG)(e.$slots,"default",{file:t,index:n},(()=>["picture"===e.listType||"uploading"!==t.status&&"picture-card"===e.listType?((0,s.uX)(),(0,s.CE)("img",{key:0,class:(0,c.C4)((0,l.R1)(a).be("list","item-thumbnail")),src:t.url,crossorigin:e.crossorigin,alt:""},null,10,["src","crossorigin"])):(0,s.Q3)("v-if",!0),"uploading"===t.status||"picture-card"!==e.listType?((0,s.uX)(),(0,s.CE)("div",{key:1,class:(0,c.C4)((0,l.R1)(a).be("list","item-info"))},[(0,s.Lk)("a",{class:(0,c.C4)((0,l.R1)(a).be("list","item-name")),onClick:(0,S.D$)((n=>e.handlePreview(t)),["prevent"])},[(0,s.bF)((0,l.R1)(A.tk),{class:(0,c.C4)((0,l.R1)(i).m("document"))},{default:(0,s.k6)((()=>[(0,s.bF)((0,l.R1)(H.yoT))])),_:1},8,["class"]),(0,s.Lk)("span",{class:(0,c.C4)((0,l.R1)(a).be("list","item-file-name")),title:t.name},(0,c.v_)(t.name),11,["title"])],10,["onClick"]),"uploading"===t.status?((0,s.uX)(),(0,s.Wv)((0,l.R1)(Vv),{key:0,type:"picture-card"===e.listType?"circle":"line","stroke-width":"picture-card"===e.listType?6:2,percentage:Number(t.percentage),style:(0,c.Tr)("picture-card"===e.listType?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):(0,s.Q3)("v-if",!0)],2)):(0,s.Q3)("v-if",!0),(0,s.Lk)("label",{class:(0,c.C4)((0,l.R1)(a).be("list","item-status-label"))},["text"===e.listType?((0,s.uX)(),(0,s.Wv)((0,l.R1)(A.tk),{key:0,class:(0,c.C4)([(0,l.R1)(i).m("upload-success"),(0,l.R1)(i).m("circle-check")])},{default:(0,s.k6)((()=>[(0,s.bF)((0,l.R1)(H.rW7))])),_:1},8,["class"])):["picture-card","picture"].includes(e.listType)?((0,s.uX)(),(0,s.Wv)((0,l.R1)(A.tk),{key:1,class:(0,c.C4)([(0,l.R1)(i).m("upload-success"),(0,l.R1)(i).m("check")])},{default:(0,s.k6)((()=>[(0,s.bF)((0,l.R1)(H.Jlk))])),_:1},8,["class"])):(0,s.Q3)("v-if",!0)],2),(0,l.R1)(u)?(0,s.Q3)("v-if",!0):((0,s.uX)(),(0,s.Wv)((0,l.R1)(A.tk),{key:2,class:(0,c.C4)((0,l.R1)(i).m("close")),onClick:e=>p(t)},{default:(0,s.k6)((()=>[(0,s.bF)((0,l.R1)(H.bm))])),_:2},1032,["class","onClick"])),(0,s.Q3)(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),(0,s.Q3)(" This is a bug which needs to be fixed "),(0,s.Q3)(" TODO: Fix the incorrect navigation interaction "),(0,l.R1)(u)?(0,s.Q3)("v-if",!0):((0,s.uX)(),(0,s.CE)("i",{key:3,class:(0,c.C4)((0,l.R1)(i).m("close-tip"))},(0,c.v_)((0,l.R1)(r)("el.upload.deleteTip")),3)),"picture-card"===e.listType?((0,s.uX)(),(0,s.CE)("span",{key:4,class:(0,c.C4)((0,l.R1)(a).be("list","item-actions"))},[(0,s.Lk)("span",{class:(0,c.C4)((0,l.R1)(a).be("list","item-preview")),onClick:n=>e.handlePreview(t)},[(0,s.bF)((0,l.R1)(A.tk),{class:(0,c.C4)((0,l.R1)(i).m("zoom-in"))},{default:(0,s.k6)((()=>[(0,s.bF)((0,l.R1)(H.$Zd))])),_:1},8,["class"])],10,["onClick"]),(0,l.R1)(u)?(0,s.Q3)("v-if",!0):((0,s.uX)(),(0,s.CE)("span",{key:0,class:(0,c.C4)((0,l.R1)(a).be("list","item-delete")),onClick:e=>p(t)},[(0,s.bF)((0,l.R1)(A.tk),{class:(0,c.C4)((0,l.R1)(i).m("delete"))},{default:(0,s.k6)((()=>[(0,s.bF)((0,l.R1)(H.epd))])),_:1},8,["class"])],10,["onClick"]))],2)):(0,s.Q3)("v-if",!0)]))],42,["onKeydown","onFocus","onBlur","onClick"])))),128)),(0,s.RG)(e.$slots,"append")])),_:3},8,["class","name"]))}});var kM=(0,g.A)(xM,[["__file","upload-list.vue"]]);const _M=(0,h.b_)({disabled:{type:Boolean,default:!1}}),CM={file:e=>(0,c.cy)(e)},EM="ElUploadDrag",RM=(0,s.pM)({name:EM}),SM=(0,s.pM)({...RM,props:_M,emits:CM,setup(e,{emit:t}){const n=(0,s.WQ)(sM);n||(0,w.$)(EM,"usage: <el-upload><el-upload-dragger /></el-upload>");const r=(0,v.DU)("upload"),a=(0,l.KR)(!1),i=(0,ra.CB)(),o=e=>{if(i.value)return;a.value=!1,e.stopPropagation();const n=Array.from(e.dataTransfer.files);t("file",n)},u=()=>{i.value||(a.value=!0)};return(e,t)=>((0,s.uX)(),(0,s.CE)("div",{class:(0,c.C4)([(0,l.R1)(r).b("dragger"),(0,l.R1)(r).is("dragover",a.value)]),onDrop:(0,S.D$)(o,["prevent"]),onDragover:(0,S.D$)(u,["prevent"]),onDragleave:(0,S.D$)((e=>a.value=!1),["prevent"])},[(0,s.RG)(e.$slots,"default")],42,["onDrop","onDragover","onDragleave"]))}});var AM=(0,g.A)(SM,[["__file","upload-dragger.vue"]]);const TM=(0,h.b_)({...gM,beforeUpload:{type:(0,h.jq)(Function),default:c.tE},onRemove:{type:(0,h.jq)(Function),default:c.tE},onStart:{type:(0,h.jq)(Function),default:c.tE},onSuccess:{type:(0,h.jq)(Function),default:c.tE},onProgress:{type:(0,h.jq)(Function),default:c.tE},onError:{type:(0,h.jq)(Function),default:c.tE},onExceed:{type:(0,h.jq)(Function),default:c.tE}}),MM=(0,s.pM)({name:"ElUploadContent",inheritAttrs:!1}),LM=(0,s.pM)({...MM,props:TM,setup(e,{expose:t}){const n=e,r=(0,v.DU)("upload"),a=(0,ra.CB)(),i=(0,l.IJ)({}),o=(0,l.IJ)(),u=e=>{if(0===e.length)return;const{autoUpload:t,limit:r,fileList:a,multiple:i,onStart:o,onExceed:s}=n;if(r&&a.length+e.length>r)s(e,a);else{i||(e=e.slice(0,1));for(const n of e){const e=n;e.uid=mM(),o(e),t&&d(e)}}},d=async e=>{if(o.value.value="",!n.beforeUpload)return p(e);let t,r={};try{const a=n.data,i=n.beforeUpload(e);r=(0,c.Qd)(n.data)?(0,Yi.A)(n.data):n.data,t=await i,(0,c.Qd)(n.data)&&Ji(a,r)&&(r=(0,Yi.A)(n.data))}catch(i){t=!1}if(!1===t)return void n.onRemove(e);let a=e;t instanceof Blob&&(a=t instanceof File?t:new File([t],e.name,{type:e.type})),p(Object.assign(a,{uid:e.uid}),r)},h=async(e,t)=>(0,c.Tn)(e)?e(t):e,p=async(e,t)=>{const{headers:r,data:a,method:o,withCredentials:s,name:l,action:c,onProgress:u,onSuccess:d,onError:p,httpRequest:f}=n;try{t=await h(null!=t?t:a,e)}catch(y){return void n.onRemove(e)}const{uid:m}=e,g={headers:r||{},withCredentials:s,file:e,data:t,method:o,filename:l,action:c,onProgress:t=>{u(t,e)},onSuccess:t=>{d(t,e),delete i.value[m]},onError:t=>{p(t,e),delete i.value[m]}},v=f(g);i.value[m]=v,v instanceof Promise&&v.then(g.onSuccess,g.onError)},f=e=>{const t=e.target.files;t&&u(Array.from(t))},m=()=>{a.value||(o.value.value="",o.value.click())},g=()=>{m()},y=e=>{const t=(0,M.Mc)(i.value).filter(e?([t])=>String(e.uid)===t:()=>!0);t.forEach((([e,t])=>{t instanceof XMLHttpRequest&&t.abort(),delete i.value[e]}))};return t({abort:y,upload:d}),(e,t)=>((0,s.uX)(),(0,s.CE)("div",{class:(0,c.C4)([(0,l.R1)(r).b(),(0,l.R1)(r).m(e.listType),(0,l.R1)(r).is("drag",e.drag),(0,l.R1)(r).is("disabled",(0,l.R1)(a))]),tabindex:(0,l.R1)(a)?"-1":"0",onClick:m,onKeydown:(0,S.jR)((0,S.D$)(g,["self"]),["enter","space"])},[e.drag?((0,s.uX)(),(0,s.Wv)(AM,{key:0,disabled:(0,l.R1)(a),onFile:u},{default:(0,s.k6)((()=>[(0,s.RG)(e.$slots,"default")])),_:3},8,["disabled"])):(0,s.RG)(e.$slots,"default",{key:1}),(0,s.Lk)("input",{ref_key:"inputRef",ref:o,class:(0,c.C4)((0,l.R1)(r).e("input")),name:e.name,disabled:(0,l.R1)(a),multiple:e.multiple,accept:e.accept,type:"file",onChange:f,onClick:(0,S.D$)((()=>{}),["stop"])},null,42,["name","disabled","multiple","accept","onClick"])],42,["tabindex","onKeydown"]))}});var OM=(0,g.A)(LM,[["__file","upload-content.vue"]]);n(4603),n(7566),n(8721);const IM="ElUpload",NM=e=>{var t;(null==(t=e.url)?void 0:t.startsWith("blob:"))&&URL.revokeObjectURL(e.url)},BM=(e,t)=>{const n=(0,u.hRP)(e,"fileList",void 0,{passive:!0}),r=e=>n.value.find((t=>t.uid===e.uid));function a(e){var n;null==(n=t.value)||n.abort(e)}function i(e=["ready","uploading","success","fail"]){n.value=n.value.filter((t=>!e.includes(t.status)))}function o(e){n.value=n.value.filter((t=>t.uid!==e.uid))}const l=(t,a)=>{const i=r(a);i&&(console.error(t),i.status="fail",o(i),e.onError(t,i,n.value),e.onChange(i,n.value))},c=(t,a)=>{const i=r(a);i&&(e.onProgress(t,i,n.value),i.status="uploading",i.percentage=Math.round(t.percent))},d=(t,a)=>{const i=r(a);i&&(i.status="success",i.response=t,e.onSuccess(t,i,n.value),e.onChange(i,n.value))},h=t=>{(0,er.A)(t.uid)&&(t.uid=mM());const r={name:t.name,percentage:0,status:"ready",size:t.size,raw:t,uid:t.uid};if("picture-card"===e.listType||"picture"===e.listType)try{r.url=URL.createObjectURL(t)}catch(a){(0,w.U)(IM,a.message),e.onError(a,r,n.value)}n.value=[...n.value,r],e.onChange(r,n.value)},p=async t=>{const i=t instanceof File?r(t):t;i||(0,w.$)(IM,"file to be removed not found");const s=t=>{a(t),o(t),e.onRemove(t,n.value),NM(t)};if(e.beforeRemove){const t=await e.beforeRemove(i,n.value);!1!==t&&s(i)}else s(i)};function f(){n.value.filter((({status:e})=>"ready"===e)).forEach((({raw:e})=>{var n;return e&&(null==(n=t.value)?void 0:n.upload(e))}))}return(0,s.wB)((()=>e.listType),(t=>{"picture-card"!==t&&"picture"!==t||(n.value=n.value.map((t=>{const{raw:r,url:a}=t;if(!a&&r)try{t.url=URL.createObjectURL(r)}catch(i){e.onError(i,t,n.value)}return t})))})),(0,s.wB)(n,(e=>{for(const t of e)t.uid||(t.uid=mM()),t.status||(t.status="success")}),{immediate:!0,deep:!0}),{uploadFiles:n,abort:a,clearFiles:i,handleError:l,handleProgress:c,handleStart:h,handleSuccess:d,handleRemove:p,submit:f,revokeFileObjectURL:NM}},DM=(0,s.pM)({name:"ElUpload"}),FM=(0,s.pM)({...DM,props:vM,setup(e,{expose:t}){const n=e,r=(0,ra.CB)(),a=(0,l.IJ)(),{abort:i,submit:o,clearFiles:c,uploadFiles:u,handleStart:d,handleError:h,handleRemove:p,handleSuccess:f,handleProgress:m,revokeFileObjectURL:g}=BM(n,a),v=(0,s.EW)((()=>"picture-card"===n.listType)),y=(0,s.EW)((()=>({...n,fileList:u.value,onStart:d,onProgress:m,onSuccess:f,onError:h,onRemove:p})));return(0,s.xo)((()=>{u.value.forEach(g)})),(0,s.Gt)(sM,{accept:(0,l.lW)(n,"accept")}),t({abort:i,submit:o,clearFiles:c,handleStart:d,handleRemove:p}),(e,t)=>((0,s.uX)(),(0,s.CE)("div",null,[(0,l.R1)(v)&&e.showFileList?((0,s.uX)(),(0,s.Wv)(kM,{key:0,disabled:(0,l.R1)(r),"list-type":e.listType,files:(0,l.R1)(u),crossorigin:e.crossorigin,"handle-preview":e.onPreview,onRemove:(0,l.R1)(p)},(0,s.eX)({append:(0,s.k6)((()=>[(0,s.bF)(OM,(0,s.v6)({ref_key:"uploadRef",ref:a},(0,l.R1)(y)),{default:(0,s.k6)((()=>[e.$slots.trigger?(0,s.RG)(e.$slots,"trigger",{key:0}):(0,s.Q3)("v-if",!0),!e.$slots.trigger&&e.$slots.default?(0,s.RG)(e.$slots,"default",{key:1}):(0,s.Q3)("v-if",!0)])),_:3},16)])),_:2},[e.$slots.file?{name:"default",fn:(0,s.k6)((({file:t,index:n})=>[(0,s.RG)(e.$slots,"file",{file:t,index:n})]))}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):(0,s.Q3)("v-if",!0),!(0,l.R1)(v)||(0,l.R1)(v)&&!e.showFileList?((0,s.uX)(),(0,s.Wv)(OM,(0,s.v6)({key:1,ref_key:"uploadRef",ref:a},(0,l.R1)(y)),{default:(0,s.k6)((()=>[e.$slots.trigger?(0,s.RG)(e.$slots,"trigger",{key:0}):(0,s.Q3)("v-if",!0),!e.$slots.trigger&&e.$slots.default?(0,s.RG)(e.$slots,"default",{key:1}):(0,s.Q3)("v-if",!0)])),_:3},16)):(0,s.Q3)("v-if",!0),e.$slots.trigger?(0,s.RG)(e.$slots,"default",{key:2}):(0,s.Q3)("v-if",!0),(0,s.RG)(e.$slots,"tip"),!(0,l.R1)(v)&&e.showFileList?((0,s.uX)(),(0,s.Wv)(kM,{key:3,disabled:(0,l.R1)(r),"list-type":e.listType,files:(0,l.R1)(u),crossorigin:e.crossorigin,"handle-preview":e.onPreview,onRemove:(0,l.R1)(p)},(0,s.eX)({_:2},[e.$slots.file?{name:"default",fn:(0,s.k6)((({file:t,index:n})=>[(0,s.RG)(e.$slots,"file",{file:t,index:n})]))}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):(0,s.Q3)("v-if",!0)]))}});var $M=(0,g.A)(FM,[["__file","upload.vue"]]);const PM=(0,E.GU)($M),zM=(0,h.b_)({zIndex:{type:Number,default:9},rotate:{type:Number,default:-22},width:Number,height:Number,image:String,content:{type:(0,h.jq)([String,Array]),default:"Element Plus"},font:{type:(0,h.jq)(Object)},gap:{type:(0,h.jq)(Array),default:()=>[100,100]},offset:{type:(0,h.jq)(Array)}});function WM(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function jM(e){return Object.keys(e).map((t=>`${WM(t)}: ${e[t]};`)).join(" ")}function VM(){return window.devicePixelRatio||1}const UM=(e,t)=>{let n=!1;return e.removedNodes.length&&t&&(n=Array.from(e.removedNodes).includes(t)),"attributes"===e.type&&e.target===t&&(n=!0),n},KM=3;function HM(e,t,n=1){const r=document.createElement("canvas"),a=r.getContext("2d"),i=e*n,o=t*n;return r.setAttribute("width",`${i}px`),r.setAttribute("height",`${o}px`),a.save(),[a,r,i,o]}function qM(){function e(e,t,n,r,a,i,o,s){const[l,u,d,h]=HM(r,a,n);if(e instanceof HTMLImageElement)l.drawImage(e,0,0,d,h);else{const{color:t,fontSize:r,fontStyle:o,fontWeight:s,fontFamily:u,textAlign:h,textBaseline:p}=i,f=Number(r)*n;l.font=`${o} normal ${s} ${f}px/${a}px ${u}`,l.fillStyle=t,l.textAlign=h,l.textBaseline=p;const m=(0,c.cy)(e)?e:[e];null==m||m.forEach(((e,t)=>{l.fillText(null!=e?e:"",d/2,t*(f+KM*n))}))}const p=Math.PI/180*Number(t),f=Math.max(r,a),[m,g,v]=HM(f,f,n);function y(e,t){const n=e*Math.cos(p)-t*Math.sin(p),r=e*Math.sin(p)+t*Math.cos(p);return[n,r]}m.translate(v/2,v/2),m.rotate(p),d>0&&h>0&&m.drawImage(u,-d/2,-h/2);let b=0,w=0,x=0,k=0;const _=d/2,C=h/2,E=[[0-_,0-C],[0+_,0-C],[0+_,0+C],[0-_,0+C]];E.forEach((([e,t])=>{const[n,r]=y(e,t);b=Math.min(b,n),w=Math.max(w,n),x=Math.min(x,r),k=Math.max(k,r)}));const R=b+v/2,S=x+v/2,A=w-b,T=k-x,M=o*n,L=s*n,O=2*(A+M),I=T+L,[N,B]=HM(O,I);function D(e=0,t=0){N.drawImage(g,R,S,A,T,e,t,A,T)}return D(),D(A+M,-T/2-L/2),D(A+M,+T/2+L/2),[B.toDataURL(),O/n,I/n]}return e}const GM=(0,s.pM)({name:"ElWatermark"}),XM=(0,s.pM)({...GM,props:zM,setup(e){const t=e,n={position:"relative"},r=(0,s.EW)((()=>{var e,n;return null!=(n=null==(e=t.font)?void 0:e.color)?n:"rgba(0,0,0,.15)"})),a=(0,s.EW)((()=>{var e,n;return null!=(n=null==(e=t.font)?void 0:e.fontSize)?n:16})),i=(0,s.EW)((()=>{var e,n;return null!=(n=null==(e=t.font)?void 0:e.fontWeight)?n:"normal"})),o=(0,s.EW)((()=>{var e,n;return null!=(n=null==(e=t.font)?void 0:e.fontStyle)?n:"normal"})),d=(0,s.EW)((()=>{var e,n;return null!=(n=null==(e=t.font)?void 0:e.fontFamily)?n:"sans-serif"})),h=(0,s.EW)((()=>{var e,n;return null!=(n=null==(e=t.font)?void 0:e.textAlign)?n:"center"})),p=(0,s.EW)((()=>{var e,n;return null!=(n=null==(e=t.font)?void 0:e.textBaseline)?n:"hanging"})),f=(0,s.EW)((()=>t.gap[0])),m=(0,s.EW)((()=>t.gap[1])),g=(0,s.EW)((()=>f.value/2)),v=(0,s.EW)((()=>m.value/2)),y=(0,s.EW)((()=>{var e,n;return null!=(n=null==(e=t.offset)?void 0:e[0])?n:g.value})),b=(0,s.EW)((()=>{var e,n;return null!=(n=null==(e=t.offset)?void 0:e[1])?n:v.value})),w=()=>{const e={zIndex:t.zIndex,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let n=y.value-g.value,r=b.value-v.value;return n>0&&(e.left=`${n}px`,e.width=`calc(100% - ${n}px)`,n=0),r>0&&(e.top=`${r}px`,e.height=`calc(100% - ${r}px)`,r=0),e.backgroundPosition=`${n}px ${r}px`,e},x=(0,l.IJ)(null),k=(0,l.IJ)(),_=(0,l.KR)(!1),C=()=>{k.value&&(k.value.remove(),k.value=void 0)},E=(e,t)=>{var n;x.value&&k.value&&(_.value=!0,k.value.setAttribute("style",jM({...w(),backgroundImage:`url('${e}')`,backgroundSize:`${Math.floor(t)}px`})),null==(n=x.value)||n.append(k.value),setTimeout((()=>{_.value=!1})))},R=e=>{let n=120,r=64;const i=t.image,o=t.content,s=t.width,l=t.height;if(!i&&e.measureText){e.font=`${Number(a.value)}px ${d.value}`;const t=(0,c.cy)(o)?o:[o],i=t.map((t=>{const n=e.measureText(t);return[n.width,void 0!==n.fontBoundingBoxAscent?n.fontBoundingBoxAscent+n.fontBoundingBoxDescent:n.actualBoundingBoxAscent+n.actualBoundingBoxDescent]}));n=Math.ceil(Math.max(...i.map((e=>e[0])))),r=Math.ceil(Math.max(...i.map((e=>e[1]))))*t.length+(t.length-1)*KM}return[null!=s?s:n,null!=l?l:r]},S=qM(),A=()=>{const e=document.createElement("canvas"),n=e.getContext("2d"),s=t.image,l=t.content,c=t.rotate;if(n){k.value||(k.value=document.createElement("div"));const e=VM(),[t,u]=R(n),g=n=>{const[s,l]=S(n||"",c,e,t,u,{color:r.value,fontSize:a.value,fontStyle:o.value,fontWeight:i.value,fontFamily:d.value,textAlign:h.value,textBaseline:p.value},f.value,m.value);E(s,l)};if(s){const e=new Image;e.onload=()=>{g(e)},e.onerror=()=>{g(l)},e.crossOrigin="anonymous",e.referrerPolicy="no-referrer",e.src=s}else g(l)}};(0,s.sV)((()=>{A()})),(0,s.wB)((()=>t),(()=>{A()}),{deep:!0,flush:"post"}),(0,s.xo)((()=>{C()}));const T=e=>{_.value||e.forEach((e=>{UM(e,k.value)&&(C(),A())}))};return(0,u.P1n)(x,T,{attributes:!0,subtree:!0,childList:!0}),(e,t)=>((0,s.uX)(),(0,s.CE)("div",{ref_key:"containerRef",ref:x,style:(0,c.Tr)([n])},[(0,s.RG)(e.$slots,"default")],4))}});var YM=(0,g.A)(XM,[["__file","watermark.vue"]]);const QM=(0,E.GU)(YM),ZM=(0,h.b_)({zIndex:{type:Number,default:1001},visible:Boolean,fill:{type:String,default:"rgba(0,0,0,0.5)"},pos:{type:(0,h.jq)(Object)},targetAreaClickable:{type:Boolean,default:!0}}),JM=(e,t,n,r,a)=>{const i=(0,l.KR)(null),o=()=>{let t;return t=(0,c.Kg)(e.value)?document.querySelector(e.value):(0,c.Tn)(e.value)?e.value():e.value,t},u=()=>{const e=o();if(!e||!t.value)return void(i.value=null);tL(e)||e.scrollIntoView(a.value);const{left:n,top:r,width:s,height:l}=e.getBoundingClientRect();i.value={left:n,top:r,width:s,height:l,radius:0}};(0,s.sV)((()=>{(0,s.wB)([t,e],(()=>{u()}),{immediate:!0}),window.addEventListener("resize",u)})),(0,s.xo)((()=>{window.removeEventListener("resize",u)}));const d=e=>{var t;return null!=(t=(0,c.cy)(n.value.offset)?n.value.offset[e]:n.value.offset)?t:6},h=(0,s.EW)((()=>{var e;if(!i.value)return i.value;const t=d(0),r=d(1),a=(null==(e=n.value)?void 0:e.radius)||2;return{left:i.value.left-t,top:i.value.top-r,width:i.value.width+2*t,height:i.value.height+2*r,radius:a}})),p=(0,s.EW)((()=>{const e=o();return r.value&&e&&window.DOMRect?{getBoundingClientRect(){var e,t,n,r;return window.DOMRect.fromRect({width:(null==(e=h.value)?void 0:e.width)||0,height:(null==(t=h.value)?void 0:t.height)||0,x:(null==(n=h.value)?void 0:n.left)||0,y:(null==(r=h.value)?void 0:r.top)||0})}}:e||void 0}));return{mergedPosInfo:h,triggerTarget:p}},eL=Symbol("ElTour");function tL(e){const t=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,{top:r,right:a,bottom:i,left:o}=e.getBoundingClientRect();return r>=0&&o>=0&&a<=t&&i<=n}const nL=(e,t,n,r,a,i,o,c)=>{const u=(0,l.KR)(),d=(0,l.KR)(),h=(0,l.KR)({}),p={x:u,y:d,placement:r,strategy:a,middlewareData:h},f=(0,s.EW)((()=>{const e=[sA((0,l.R1)(i)),cA(),lA(),rL()];return(0,l.R1)(c)&&(0,l.R1)(n)&&e.push(uA({element:(0,l.R1)(n)})),e})),m=async()=>{if(!Q.oc)return;const n=(0,l.R1)(e),i=(0,l.R1)(t);if(!n||!i)return;const o=await dA(n,i,{placement:(0,l.R1)(r),strategy:(0,l.R1)(a),middleware:(0,l.R1)(f)});(0,M.YD)(p).forEach((e=>{p[e].value=o[e]}))},g=(0,s.EW)((()=>{if(!(0,l.R1)(e))return{position:"fixed",top:"50%",left:"50%",transform:"translate3d(-50%, -50%, 0)",maxWidth:"100vw",zIndex:(0,l.R1)(o)};const{overflow:t}=(0,l.R1)(h);return{position:(0,l.R1)(a),zIndex:(0,l.R1)(o),top:null!=(0,l.R1)(d)?`${(0,l.R1)(d)}px`:"",left:null!=(0,l.R1)(u)?`${(0,l.R1)(u)}px`:"",maxWidth:(null==t?void 0:t.maxWidth)?`${null==t?void 0:t.maxWidth}px`:""}})),v=(0,s.EW)((()=>{if(!(0,l.R1)(c))return{};const{arrow:e}=(0,l.R1)(h);return{left:null!=(null==e?void 0:e.x)?`${null==e?void 0:e.x}px`:"",top:null!=(null==e?void 0:e.y)?`${null==e?void 0:e.y}px`:""}}));let y;return(0,s.sV)((()=>{const n=(0,l.R1)(e),r=(0,l.R1)(t);n&&r&&(y=iA(n,r,m)),(0,s.nT)((()=>{m()}))})),(0,s.xo)((()=>{y&&y()})),{update:m,contentStyle:g,arrowStyle:v}},rL=()=>({name:"overflow",async fn(e){const t=await oA(e);let n=0;t.left>0&&(n=t.left),t.right>0&&(n=t.right);const r=e.rects.floating.width;return{data:{maxWidth:r-n}}}}),aL=(0,s.pM)({name:"ElTourMask",inheritAttrs:!1}),iL=(0,s.pM)({...aL,props:ZM,setup(e){const t=e,{ns:n}=(0,s.WQ)(eL),r=(0,s.EW)((()=>{var e,n;return null!=(n=null==(e=t.pos)?void 0:e.radius)?n:2})),a=(0,s.EW)((()=>{const e=r.value,t=`a${e},${e} 0 0 1`;return{topRight:`${t} ${e},${e}`,bottomRight:`${t} ${-e},${e}`,bottomLeft:`${t} ${-e},${-e}`,topLeft:`${t} ${e},${-e}`}})),i=(0,s.EW)((()=>{const e=window.innerWidth,n=window.innerHeight,i=a.value,o=`M${e},0 L0,0 L0,${n} L${e},${n} L${e},0 Z`,s=r.value;return t.pos?`${o} M${t.pos.left+s},${t.pos.top} h${t.pos.width-2*s} ${i.topRight} v${t.pos.height-2*s} ${i.bottomRight} h${-t.pos.width+2*s} ${i.bottomLeft} v${-t.pos.height+2*s} ${i.topLeft} z`:o})),o=(0,s.EW)((()=>({fill:t.fill,pointerEvents:"auto",cursor:"auto"})));return(0,Hd.t)((0,l.lW)(t,"visible"),{ns:n}),(e,t)=>e.visible?((0,s.uX)(),(0,s.CE)("div",(0,s.v6)({key:0,class:(0,l.R1)(n).e("mask"),style:{position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:e.zIndex,pointerEvents:e.pos&&e.targetAreaClickable?"none":"auto"}},e.$attrs),[((0,s.uX)(),(0,s.CE)("svg",{style:{width:"100%",height:"100%"}},[(0,s.Lk)("path",{class:(0,c.C4)((0,l.R1)(n).e("hollow")),style:(0,c.Tr)((0,l.R1)(o)),d:(0,l.R1)(i)},null,14,["d"])]))],16)):(0,s.Q3)("v-if",!0)}});var oL=(0,g.A)(iL,[["__file","mask.vue"]]);const sL=["absolute","fixed"],lL=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],cL=(0,h.b_)({placement:{type:(0,h.jq)(String),values:lL,default:"bottom"},reference:{type:(0,h.jq)(Object),default:null},strategy:{type:(0,h.jq)(String),values:sL,default:"absolute"},offset:{type:Number,default:10},showArrow:Boolean,zIndex:{type:Number,default:2001}}),uL={close:()=>!0},dL=(0,s.pM)({name:"ElTourContent"}),hL=(0,s.pM)({...dL,props:cL,emits:uL,setup(e,{emit:t}){const n=e,r=(0,l.KR)(n.placement),a=(0,l.KR)(n.strategy),i=(0,l.KR)(null),o=(0,l.KR)(null);(0,s.wB)((()=>n.placement),(()=>{r.value=n.placement}));const{contentStyle:u,arrowStyle:d}=nL((0,l.lW)(n,"reference"),i,o,r,a,(0,l.lW)(n,"offset"),(0,l.lW)(n,"zIndex"),(0,l.lW)(n,"showArrow")),h=(0,s.EW)((()=>r.value.split("-")[0])),{ns:p}=(0,s.WQ)(eL),f=()=>{t("close")},m=e=>{"pointer"===e.detail.focusReason&&e.preventDefault()};return(e,t)=>((0,s.uX)(),(0,s.CE)("div",{ref_key:"contentRef",ref:i,style:(0,c.Tr)((0,l.R1)(u)),class:(0,c.C4)((0,l.R1)(p).e("content")),"data-side":(0,l.R1)(h),tabindex:"-1"},[(0,s.bF)((0,l.R1)(Er.A),{loop:"",trapped:"","focus-start-el":"container","focus-trap-el":i.value||void 0,onReleaseRequested:f,onFocusoutPrevented:m},{default:(0,s.k6)((()=>[(0,s.RG)(e.$slots,"default")])),_:3},8,["focus-trap-el"]),e.showArrow?((0,s.uX)(),(0,s.CE)("span",{key:0,ref_key:"arrowRef",ref:o,style:(0,c.Tr)((0,l.R1)(d)),class:(0,c.C4)((0,l.R1)(p).e("arrow"))},null,6)):(0,s.Q3)("v-if",!0)],14,["data-side"]))}});var pL=(0,g.A)(hL,[["__file","content.vue"]]),fL=(0,s.pM)({name:"ElTourSteps",props:{current:{type:Number,default:0}},emits:["update-total"],setup(e,{slots:t,emit:n}){let r=0;return()=>{var a,i;const o=null==(a=t.default)?void 0:a.call(t),s=[];let l=0;function u(e){(0,c.cy)(e)&&e.forEach((e=>{var t;const n=null==(t=(null==e?void 0:e.type)||{})?void 0:t.name;"ElTourStep"===n&&(s.push(e),l+=1)}))}return o.length&&u((0,Ni.CW)(null==(i=o[0])?void 0:i.children)),r!==l&&(r=l,n("update-total",l)),s.length?s[e.current]:null}}});const mL=(0,h.b_)({modelValue:Boolean,current:{type:Number,default:0},showArrow:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeIcon:{type:T.Ze},placement:cL.placement,contentStyle:{type:(0,h.jq)([Object])},mask:{type:(0,h.jq)([Boolean,Object]),default:!0},gap:{type:(0,h.jq)(Object),default:()=>({offset:6,radius:2})},zIndex:{type:Number},scrollIntoViewOptions:{type:(0,h.jq)([Boolean,Object]),default:()=>({block:"center"})},type:{type:(0,h.jq)(String)},appendTo:{type:(0,h.jq)([String,Object]),default:"body"},closeOnPressEscape:{type:Boolean,default:!0},targetAreaClickable:{type:Boolean,default:!0}}),gL={[d.l4]:e=>(0,p.Lm)(e),["update:current"]:e=>(0,p.Et)(e),close:e=>(0,p.Et)(e),finish:()=>!0,change:e=>(0,p.Et)(e)},vL=(0,s.pM)({name:"ElTour"}),yL=(0,s.pM)({...vL,props:mL,emits:gL,setup(e,{emit:t}){const n=e,r=(0,v.DU)("tour"),a=(0,l.KR)(0),i=(0,l.KR)(),o=(0,u.hRP)(n,"current",t,{passive:!0}),d=(0,s.EW)((()=>{var e;return null==(e=i.value)?void 0:e.target})),h=(0,s.EW)((()=>[r.b(),"primary"===k.value?r.m("primary"):""])),f=(0,s.EW)((()=>{var e;return(null==(e=i.value)?void 0:e.placement)||n.placement})),m=(0,s.EW)((()=>{var e,t;return null!=(t=null==(e=i.value)?void 0:e.contentStyle)?t:n.contentStyle})),g=(0,s.EW)((()=>{var e,t;return null!=(t=null==(e=i.value)?void 0:e.mask)?t:n.mask})),y=(0,s.EW)((()=>!!g.value&&n.modelValue)),b=(0,s.EW)((()=>(0,p.Lm)(g.value)?void 0:g.value)),w=(0,s.EW)((()=>{var e,t;return!!d.value&&(null!=(t=null==(e=i.value)?void 0:e.showArrow)?t:n.showArrow)})),x=(0,s.EW)((()=>{var e,t;return null!=(t=null==(e=i.value)?void 0:e.scrollIntoViewOptions)?t:n.scrollIntoViewOptions})),k=(0,s.EW)((()=>{var e,t;return null!=(t=null==(e=i.value)?void 0:e.type)?t:n.type})),{nextZIndex:_}=(0,Fr.YK)(),C=_(),E=(0,s.EW)((()=>{var e;return null!=(e=n.zIndex)?e:C})),{mergedPosInfo:R,triggerTarget:S}=JM(d,(0,l.lW)(n,"modelValue"),(0,l.lW)(n,"gap"),g,x);(0,s.wB)((()=>n.modelValue),(e=>{e||(o.value=0)}));const A=()=>{n.closeOnPressEscape&&(t("update:modelValue",!1),t("close",o.value))},T=e=>{a.value=e},M=(0,s.Ht)();return(0,s.Gt)(eL,{currentStep:i,current:o,total:a,showClose:(0,l.lW)(n,"showClose"),closeIcon:(0,l.lW)(n,"closeIcon"),mergedType:k,ns:r,slots:M,updateModelValue(e){t("update:modelValue",e)},onClose(){t("close",o.value)},onFinish(){t("finish")},onChange(){t("change",o.value)}}),(e,t)=>((0,s.uX)(),(0,s.CE)(s.FK,null,[(0,s.bF)((0,l.R1)(wr),{to:e.appendTo},{default:(0,s.k6)((()=>{var t,n;return[(0,s.Lk)("div",(0,s.v6)({class:(0,l.R1)(h)},e.$attrs),[(0,s.bF)(oL,{visible:(0,l.R1)(y),fill:null==(t=(0,l.R1)(b))?void 0:t.color,style:(0,c.Tr)(null==(n=(0,l.R1)(b))?void 0:n.style),pos:(0,l.R1)(R),"z-index":(0,l.R1)(E),"target-area-clickable":e.targetAreaClickable},null,8,["visible","fill","style","pos","z-index","target-area-clickable"]),e.modelValue?((0,s.uX)(),(0,s.Wv)(pL,{key:(0,l.R1)(o),reference:(0,l.R1)(S),placement:(0,l.R1)(f),"show-arrow":(0,l.R1)(w),"z-index":(0,l.R1)(E),style:(0,c.Tr)((0,l.R1)(m)),onClose:A},{default:(0,s.k6)((()=>[(0,s.bF)((0,l.R1)(fL),{current:(0,l.R1)(o),onUpdateTotal:T},{default:(0,s.k6)((()=>[(0,s.RG)(e.$slots,"default")])),_:3},8,["current"])])),_:3},8,["reference","placement","show-arrow","z-index","style"])):(0,s.Q3)("v-if",!0)],16)]})),_:3},8,["to"]),(0,s.Q3)(" just for IDE "),(0,s.Q3)("v-if",!0)],64))}});var bL=(0,g.A)(yL,[["__file","tour.vue"]]),wL=n(5347),xL=n(176),kL=n(2212),_L=n(9019),CL=n(2623);function EL(e,t,n){var r=-1,a=e.length;t<0&&(t=-t>a?0:a+t),n=n>a?a:n,n<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;var i=Array(a);while(++r<a)i[r]=e[r+t];return i}var RL=EL;function SL(e,t){return t.length<2?e:(0,CL.A)(e,RL(t,0,-1))}var AL=SL,TL=n(3708);function ML(e,t){return t=(0,kL.A)(t,e),e=AL(e,t),null==e||delete e[(0,TL.A)((0,_L.A)(t))]}var LL=ML,OL=n(4268),IL=n(5644);function NL(e){return(0,IL.A)(e)?void 0:e}var BL=NL,DL=n(7211),FL=n(5454),$L=1,PL=2,zL=4,WL=(0,DL.A)((function(e,t){var n={};if(null==e)return n;var r=!1;t=(0,wL.A)(t,(function(t){return t=(0,kL.A)(t,e),r||(r=t.length>1),t})),(0,OL.A)(e,(0,FL.A)(e),n),r&&(n=(0,xL.A)(n,$L|PL|zL,BL));var a=t.length;while(a--)LL(n,t[a]);return n})),jL=WL;const VL=(0,h.b_)({target:{type:(0,h.jq)([String,Object,Function])},title:String,description:String,showClose:{type:Boolean,default:void 0},closeIcon:{type:T.Ze},showArrow:{type:Boolean,default:void 0},placement:cL.placement,mask:{type:(0,h.jq)([Boolean,Object]),default:void 0},contentStyle:{type:(0,h.jq)([Object])},prevButtonProps:{type:(0,h.jq)(Object)},nextButtonProps:{type:(0,h.jq)(Object)},scrollIntoViewOptions:{type:(0,h.jq)([Boolean,Object]),default:void 0},type:{type:(0,h.jq)(String)}}),UL={close:()=>!0},KL=(0,s.pM)({name:"ElTourStep"}),HL=(0,s.pM)({...KL,props:VL,emits:UL,setup(e,{emit:t}){const n=e,{Close:r}=T.H2,{t:a}=(0,La.Ym)(),{currentStep:i,current:o,total:u,showClose:d,closeIcon:h,mergedType:p,ns:f,slots:m,updateModelValue:g,onClose:v,onFinish:y,onChange:b}=(0,s.WQ)(eL);(0,s.wB)(n,(e=>{i.value=e}),{immediate:!0});const w=(0,s.EW)((()=>{var e;return null!=(e=n.showClose)?e:d.value})),x=(0,s.EW)((()=>{var e,t;return null!=(t=null!=(e=n.closeIcon)?e:h.value)?t:r})),k=e=>{if(e)return jL(e,["children","onClick"])},_=()=>{var e,t;o.value-=1,(null==(e=n.prevButtonProps)?void 0:e.onClick)&&(null==(t=n.prevButtonProps)||t.onClick()),b()},C=()=>{var e;o.value>=u.value-1?E():o.value+=1,(null==(e=n.nextButtonProps)?void 0:e.onClick)&&n.nextButtonProps.onClick(),b()},E=()=>{R(),y()},R=()=>{g(!1),v(),t("close")};return(e,t)=>((0,s.uX)(),(0,s.CE)(s.FK,null,[(0,l.R1)(w)?((0,s.uX)(),(0,s.CE)("button",{key:0,"aria-label":"Close",class:(0,c.C4)((0,l.R1)(f).e("closebtn")),type:"button",onClick:R},[(0,s.bF)((0,l.R1)(A.tk),{class:(0,c.C4)((0,l.R1)(f).e("close"))},{default:(0,s.k6)((()=>[((0,s.uX)(),(0,s.Wv)((0,s.$y)((0,l.R1)(x))))])),_:1},8,["class"])],2)):(0,s.Q3)("v-if",!0),(0,s.Lk)("header",{class:(0,c.C4)([(0,l.R1)(f).e("header"),{"show-close":(0,l.R1)(d)}])},[(0,s.RG)(e.$slots,"header",{},(()=>[(0,s.Lk)("span",{role:"heading",class:(0,c.C4)((0,l.R1)(f).e("title"))},(0,c.v_)(e.title),3)]))],2),(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(f).e("body"))},[(0,s.RG)(e.$slots,"default",{},(()=>[(0,s.Lk)("span",null,(0,c.v_)(e.description),1)]))],2),(0,s.Lk)("footer",{class:(0,c.C4)((0,l.R1)(f).e("footer"))},[(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(f).b("indicators"))},[(0,l.R1)(m).indicators?((0,s.uX)(),(0,s.Wv)((0,s.$y)((0,l.R1)(m).indicators),{key:0,current:(0,l.R1)(o),total:(0,l.R1)(u)},null,8,["current","total"])):((0,s.uX)(!0),(0,s.CE)(s.FK,{key:1},(0,s.pI)((0,l.R1)(u),((e,t)=>((0,s.uX)(),(0,s.CE)("span",{key:e,class:(0,c.C4)([(0,l.R1)(f).b("indicator"),t===(0,l.R1)(o)?"is-active":""])},null,2)))),128))],2),(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(f).b("buttons"))},[(0,l.R1)(o)>0?((0,s.uX)(),(0,s.Wv)((0,l.R1)(Wa.S2),(0,s.v6)({key:0,size:"small",type:(0,l.R1)(p)},k(e.prevButtonProps),{onClick:_}),{default:(0,s.k6)((()=>{var t,n;return[(0,s.eW)((0,c.v_)(null!=(n=null==(t=e.prevButtonProps)?void 0:t.children)?n:(0,l.R1)(a)("el.tour.previous")),1)]})),_:1},16,["type"])):(0,s.Q3)("v-if",!0),(0,l.R1)(o)<=(0,l.R1)(u)-1?((0,s.uX)(),(0,s.Wv)((0,l.R1)(Wa.S2),(0,s.v6)({key:1,size:"small",type:"primary"===(0,l.R1)(p)?"default":"primary"},k(e.nextButtonProps),{onClick:C}),{default:(0,s.k6)((()=>{var t,n;return[(0,s.eW)((0,c.v_)(null!=(n=null==(t=e.nextButtonProps)?void 0:t.children)?n:(0,l.R1)(o)===(0,l.R1)(u)-1?(0,l.R1)(a)("el.tour.finish"):(0,l.R1)(a)("el.tour.next")),1)]})),_:1},16,["type"])):(0,s.Q3)("v-if",!0)],2)],2)],64))}});var qL=(0,g.A)(HL,[["__file","step.vue"]]);const GL=(0,E.GU)(bL,{TourStep:qL}),XL=(0,E.WM)(qL),YL=(0,h.b_)({container:{type:(0,h.jq)([String,Object])},offset:{type:Number,default:0},bound:{type:Number,default:15},duration:{type:Number,default:300},marker:{type:Boolean,default:!0},type:{type:(0,h.jq)(String),default:"default"},direction:{type:(0,h.jq)(String),default:"vertical"},selectScrollTop:{type:Boolean,default:!1}}),QL={change:e=>(0,c.Kg)(e),click:(e,t)=>e instanceof MouseEvent&&((0,c.Kg)(t)||(0,p.b0)(t))},ZL=Symbol("anchor"),JL=e=>{if(!Q.oc||""===e)return null;if((0,c.Kg)(e))try{return document.querySelector(e)}catch(t){return null}return e};function eO(e){let t=0;const n=(...n)=>{t&&(0,Xy.V)(t),t=(0,Xy.m)((()=>{e(...n),t=0}))};return n.cancel=()=>{(0,Xy.V)(t),t=0},n}const tO=(0,s.pM)({name:"ElAnchor"}),nO=(0,s.pM)({...tO,props:YL,emits:QL,setup(e,{expose:t,emit:n}){const r=e,a=(0,l.KR)(""),i=(0,l.KR)(null),o=(0,l.KR)(null),d=(0,l.KR)(),h={};let f=!1,m=0;const g=(0,v.DU)("anchor"),b=(0,s.EW)((()=>[g.b(),"underline"===r.type?g.m("underline"):"",g.m(r.direction)])),w=e=>{h[e.href]=e.el},x=e=>{delete h[e]},k=e=>{const t=a.value;t!==e&&(a.value=e,n("change",e))};let _=null;const C=e=>{if(!d.value)return;const t=JL(e);if(!t)return;_&&_(),f=!0;const n=(0,y.aF)(t,d.value),a=Ml(t,n),i=n.scrollHeight-n.clientHeight,o=Math.min(a-r.offset,i);_=(0,y.mg)(d.value,m,o,r.duration,(()=>{setTimeout((()=>{f=!1}),20)}))},E=e=>{e&&(k(e),C(e))},R=(e,t)=>{n("click",e,t),E(t)},S=eO((()=>{d.value&&(m=(0,y.hY)(d.value));const e=A();f||(0,p.b0)(e)||k(e)})),A=()=>{if(!d.value)return;const e=(0,y.hY)(d.value),t=[];for(const n of Object.keys(h)){const e=JL(n);if(!e)continue;const a=(0,y.aF)(e,d.value),i=Ml(e,a);t.push({top:i-r.offset-r.bound,href:n})}t.sort(((e,t)=>e.top-t.top));for(let n=0;n<t.length;n++){const a=t[n],i=t[n+1];if(0===n&&0===e)return r.selectScrollTop?a.href:"";if(a.top<=e&&(!i||i.top>e))return a.href}},T=()=>{const e=JL(r.container);!e||(0,p.l6)(e)?d.value=window:d.value=e};(0,u.MLh)(d,"scroll",S);const M=(0,s.EW)((()=>{if(!i.value||!o.value||!a.value)return{};const e=h[a.value];if(!e)return{};const t=i.value.getBoundingClientRect(),n=o.value.getBoundingClientRect(),s=e.getBoundingClientRect();if("horizontal"===r.direction){const e=s.left-t.left;return{left:`${e}px`,width:`${s.width}px`,opacity:1}}{const e=s.top-t.top+(s.height-n.height)/2;return{top:`${e}px`,opacity:1}}}));return(0,s.sV)((()=>{T();const e=decodeURIComponent(window.location.hash),t=JL(e);t?E(e):S()})),(0,s.wB)((()=>r.container),(()=>{T()})),(0,s.Gt)(ZL,{ns:g,direction:r.direction,currentAnchor:a,addLink:w,removeLink:x,handleClick:R}),t({scrollTo:E}),(e,t)=>((0,s.uX)(),(0,s.CE)("div",{ref_key:"anchorRef",ref:i,class:(0,c.C4)((0,l.R1)(b))},[e.marker?((0,s.uX)(),(0,s.CE)("div",{key:0,ref_key:"markerRef",ref:o,class:(0,c.C4)((0,l.R1)(g).e("marker")),style:(0,c.Tr)((0,l.R1)(M))},null,6)):(0,s.Q3)("v-if",!0),(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(g).e("list"))},[(0,s.RG)(e.$slots,"default")],2)],2))}});var rO=(0,g.A)(nO,[["__file","anchor.vue"]]);const aO=(0,h.b_)({title:String,href:String}),iO=(0,s.pM)({name:"ElAnchorLink"}),oO=(0,s.pM)({...iO,props:aO,setup(e){const t=e,n=(0,l.KR)(null),{ns:r,direction:a,currentAnchor:i,addLink:o,removeLink:u,handleClick:d}=(0,s.WQ)(ZL),h=(0,s.EW)((()=>[r.e("link"),r.is("active",i.value===t.href)])),p=e=>{d(e,t.href)};return(0,s.wB)((()=>t.href),((e,t)=>{(0,s.dY)((()=>{t&&u(t),e&&o({href:e,el:n.value})}))})),(0,s.sV)((()=>{const{href:e}=t;e&&o({href:e,el:n.value})})),(0,s.xo)((()=>{const{href:e}=t;e&&u(e)})),(e,t)=>((0,s.uX)(),(0,s.CE)("div",{class:(0,c.C4)((0,l.R1)(r).e("item"))},[(0,s.Lk)("a",{ref_key:"linkRef",ref:n,class:(0,c.C4)((0,l.R1)(h)),href:e.href,onClick:p},[(0,s.RG)(e.$slots,"default",{},(()=>[(0,s.eW)((0,c.v_)(e.title),1)]))],10,["href"]),e.$slots["sub-link"]&&"vertical"===(0,l.R1)(a)?((0,s.uX)(),(0,s.CE)("div",{key:0,class:(0,c.C4)((0,l.R1)(r).e("list"))},[(0,s.RG)(e.$slots,"sub-link")],2)):(0,s.Q3)("v-if",!0)],2))}});var sO=(0,g.A)(oO,[["__file","anchor-link.vue"]]);const lO=(0,E.GU)(rO,{AnchorLink:sO}),cO=(0,E.WM)(sO),uO=(0,h.b_)({direction:{type:(0,h.jq)(String),default:"horizontal"},options:{type:(0,h.jq)(Array),default:()=>[]},modelValue:{type:[String,Number,Boolean],default:void 0},block:Boolean,size:ao.mU,disabled:Boolean,validateEvent:{type:Boolean,default:!0},id:String,name:String,...(0,oe.l)(["ariaLabel"])}),dO={[d.l4]:e=>(0,c.Kg)(e)||(0,p.Et)(e)||(0,p.Lm)(e),[d.YU]:e=>(0,c.Kg)(e)||(0,p.Et)(e)||(0,p.Lm)(e)},hO=(0,s.pM)({name:"ElSegmented"}),pO=(0,s.pM)({...hO,props:uO,emits:dO,setup(e,{emit:t}){const n=e,r=(0,v.DU)("segmented"),a=(0,xr.Bi)(),i=(0,ra.NV)(),o=(0,ra.CB)(),{formItem:h}=(0,co.j)(),{inputId:p,isLabeledByFormItem:f}=(0,co.W)(n,{formItemContext:h}),m=(0,l.KR)(null),g=(0,u.YC1)(),y=(0,l.Kh)({isInit:!1,width:0,height:0,translateX:0,translateY:0,focusVisible:!1}),b=e=>{const n=x(e);t(d.l4,n),t(d.YU,n)},x=e=>(0,c.Gv)(e)?e.value:e,k=e=>(0,c.Gv)(e)?e.label:e,_=e=>!!(o.value||(0,c.Gv)(e)&&e.disabled),C=e=>n.modelValue===x(e),E=e=>n.options.find((t=>x(t)===e)),R=e=>[r.e("item"),r.is("selected",C(e)),r.is("disabled",_(e))],S=()=>{if(!m.value)return;const e=m.value.querySelector(".is-selected"),t=m.value.querySelector(".is-selected input");if(!e||!t)return y.width=0,y.height=0,y.translateX=0,y.translateY=0,void(y.focusVisible=!1);const r=e.getBoundingClientRect();y.isInit=!0,"vertical"===n.direction?(y.height=r.height,y.translateY=e.offsetTop):(y.width=r.width,y.translateX=e.offsetLeft);try{y.focusVisible=t.matches(":focus-visible")}catch(a){}},A=(0,s.EW)((()=>[r.b(),r.m(i.value),r.is("block",n.block)])),T=(0,s.EW)((()=>({width:"vertical"===n.direction?"100%":`${y.width}px`,height:"vertical"===n.direction?`${y.height}px`:"100%",transform:"vertical"===n.direction?`translateY(${y.translateY}px)`:`translateX(${y.translateX}px)`,display:y.isInit?"block":"none"}))),M=(0,s.EW)((()=>[r.e("item-selected"),r.is("disabled",_(E(n.modelValue))),r.is("focus-visible",y.focusVisible)])),L=(0,s.EW)((()=>n.name||a.value));return(0,u.wYm)(m,S),(0,s.wB)(g,S),(0,s.wB)((()=>n.modelValue),(()=>{var e;S(),n.validateEvent&&(null==(e=null==h?void 0:h.validate)||e.call(h,"change").catch((e=>(0,w.U)(e))))}),{flush:"post"}),(e,t)=>e.options.length?((0,s.uX)(),(0,s.CE)("div",{key:0,id:(0,l.R1)(p),ref_key:"segmentedRef",ref:m,class:(0,c.C4)((0,l.R1)(A)),role:"radiogroup","aria-label":(0,l.R1)(f)?void 0:e.ariaLabel||"segmented","aria-labelledby":(0,l.R1)(f)?(0,l.R1)(h).labelId:void 0},[(0,s.Lk)("div",{class:(0,c.C4)([(0,l.R1)(r).e("group"),(0,l.R1)(r).m(n.direction)])},[(0,s.Lk)("div",{style:(0,c.Tr)((0,l.R1)(T)),class:(0,c.C4)((0,l.R1)(M))},null,6),((0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)(e.options,((t,n)=>((0,s.uX)(),(0,s.CE)("label",{key:n,class:(0,c.C4)(R(t))},[(0,s.Lk)("input",{class:(0,c.C4)((0,l.R1)(r).e("item-input")),type:"radio",name:(0,l.R1)(L),disabled:_(t),checked:C(t),onChange:e=>b(t)},null,42,["name","disabled","checked","onChange"]),(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(r).e("item-label"))},[(0,s.RG)(e.$slots,"default",{item:t},(()=>[(0,s.eW)((0,c.v_)(k(t)),1)]))],2)],2)))),128))],2)],10,["id","aria-label","aria-labelledby"])):(0,s.Q3)("v-if",!0)}});var fO=(0,g.A)(pO,[["__file","segmented.vue"]]);const mO=(0,E.GU)(fO),gO=(e,t)=>{const n=e.toLowerCase(),r=t.label||t.value;return r.toLowerCase().includes(n)},vO=(e,t,n)=>{const{selectionEnd:r}=e;if(null===r)return;const a=e.value,i=sl(t);let o,s=-1;for(let l=r-1;l>=0;--l){const e=a[l];if(e!==n&&"\n"!==e&&"\r"!==e){if(i.includes(e)){const t=-1===s?r:s,n=a.slice(l+1,t);o={pattern:n,start:l+1,end:t,prefix:e,prefixIndex:l,splitIndex:s,selectionEnd:r};break}}else s=l}return o},yO=(e,t={debug:!1,useSelectionEnd:!1})=>{const n=null!==e.selectionStart?e.selectionStart:0,r=null!==e.selectionEnd?e.selectionEnd:0,a=t.useSelectionEnd?r:n,i=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"];if(t.debug){const e=document.querySelector("#input-textarea-caret-position-mirror-div");(null==e?void 0:e.parentNode)&&e.parentNode.removeChild(e)}const o=document.createElement("div");o.id="input-textarea-caret-position-mirror-div",document.body.appendChild(o);const s=o.style,l=window.getComputedStyle(e),c="INPUT"===e.nodeName;s.whiteSpace=c?"nowrap":"pre-wrap",c||(s.wordWrap="break-word"),s.position="absolute",t.debug||(s.visibility="hidden"),i.forEach((e=>{if(c&&"lineHeight"===e)if("border-box"===l.boxSizing){const e=Number.parseInt(l.height),t=Number.parseInt(l.paddingTop)+Number.parseInt(l.paddingBottom)+Number.parseInt(l.borderTopWidth)+Number.parseInt(l.borderBottomWidth),n=t+Number.parseInt(l.lineHeight);s.lineHeight=e>n?e-t+"px":e===n?l.lineHeight:"0"}else s.lineHeight=l.height;else s[e]=l[e]})),(0,om.gm)()?e.scrollHeight>Number.parseInt(l.height)&&(s.overflowY="scroll"):s.overflow="hidden",o.textContent=e.value.slice(0,Math.max(0,a)),c&&o.textContent&&(o.textContent=o.textContent.replace(/\s/g," "));const u=document.createElement("span");u.textContent=e.value.slice(Math.max(0,a))||".",u.style.position="relative",u.style.left=-e.scrollLeft+"px",u.style.top=-e.scrollTop+"px",o.appendChild(u);const d={top:u.offsetTop+Number.parseInt(l.borderTopWidth),left:u.offsetLeft+Number.parseInt(l.borderLeftWidth),height:1.5*Number.parseInt(l.fontSize)};return t.debug?u.style.backgroundColor="#aaa":document.body.removeChild(o),d.left>=e.clientWidth&&(d.left=e.clientWidth),d};var bO=n(6149);const wO=(0,h.b_)({...bO.$,options:{type:(0,h.jq)(Array),default:()=>[]},prefix:{type:(0,h.jq)([String,Array]),default:"@",validator:e=>(0,c.Kg)(e)?1===e.length:e.every((e=>(0,c.Kg)(e)&&1===e.length))},split:{type:String,default:" ",validator:e=>1===e.length},filterOption:{type:(0,h.jq)([Boolean,Function]),default:()=>gO,validator:e=>!1===e||(0,c.Tn)(e)},placement:{type:(0,h.jq)(String),default:"bottom"},showArrow:Boolean,offset:{type:Number,default:0},whole:Boolean,checkIsWhole:{type:(0,h.jq)(Function)},modelValue:String,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:(0,h.jq)(Object),default:()=>({})}}),xO={[d.l4]:e=>(0,c.Kg)(e),search:(e,t)=>(0,c.Kg)(e)&&(0,c.Kg)(t),select:(e,t)=>(0,c.Kg)(e.value)&&(0,c.Kg)(t),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},kO=(0,h.b_)({options:{type:(0,h.jq)(Array),default:()=>[]},loading:Boolean,disabled:Boolean,contentId:String,ariaLabel:String}),_O={select:e=>(0,c.Kg)(e.value)},CO=(0,s.pM)({name:"ElMentionDropdown"}),EO=(0,s.pM)({...CO,props:kO,emits:_O,setup(e,{expose:t,emit:n}){const r=e,a=(0,v.DU)("mention"),{t:i}=(0,La.Ym)(),o=(0,l.KR)(-1),u=(0,l.KR)(),d=(0,l.KR)(),h=(0,l.KR)(),p=(e,t)=>[a.be("dropdown","item"),a.is("hovering",o.value===t),a.is("disabled",e.disabled||r.disabled)],f=e=>{e.disabled||r.disabled||n("select",e)},m=e=>{o.value=e},g=(0,s.EW)((()=>r.disabled||r.options.every((e=>e.disabled)))),b=(0,s.EW)((()=>r.options[o.value])),w=()=>{b.value&&n("select",b.value)},x=e=>{const{options:t}=r;if(0===t.length||g.value)return;"next"===e?(o.value++,o.value===t.length&&(o.value=0)):"prev"===e&&(o.value--,o.value<0&&(o.value=t.length-1));const n=t[o.value];n.disabled?x(e):(0,s.dY)((()=>k(n)))},k=e=>{var t,n,i,o;const{options:s}=r,l=s.findIndex((t=>t.value===e.value)),c=null==(t=d.value)?void 0:t[l];if(c){const e=null==(i=null==(n=h.value)?void 0:n.querySelector)?void 0:i.call(n,`.${a.be("dropdown","wrap")}`);e&&(0,y.Rt)(e,c)}null==(o=u.value)||o.handleScroll()},_=()=>{g.value||0===r.options.length?o.value=-1:o.value=0};return(0,s.wB)((()=>r.options),_,{immediate:!0}),t({hoveringIndex:o,navigateOptions:x,selectHoverOption:w,hoverOption:b}),(e,t)=>((0,s.uX)(),(0,s.CE)("div",{ref_key:"dropdownRef",ref:h,class:(0,c.C4)((0,l.R1)(a).b("dropdown"))},[e.$slots.header?((0,s.uX)(),(0,s.CE)("div",{key:0,class:(0,c.C4)((0,l.R1)(a).be("dropdown","header"))},[(0,s.RG)(e.$slots,"header")],2)):(0,s.Q3)("v-if",!0),(0,s.bo)((0,s.bF)((0,l.R1)(pe),{id:e.contentId,ref_key:"scrollbarRef",ref:u,tag:"ul","wrap-class":(0,l.R1)(a).be("dropdown","wrap"),"view-class":(0,l.R1)(a).be("dropdown","list"),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},{default:(0,s.k6)((()=>[((0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)(e.options,((t,n)=>((0,s.uX)(),(0,s.CE)("li",{id:`${e.contentId}-${n}`,ref_for:!0,ref_key:"optionRefs",ref:d,key:n,class:(0,c.C4)(p(t,n)),role:"option","aria-disabled":t.disabled||e.disabled||void 0,"aria-selected":o.value===n,onMousemove:e=>m(n),onClick:(0,S.D$)((e=>f(t)),["stop"])},[(0,s.RG)(e.$slots,"label",{item:t,index:n},(()=>{var e;return[(0,s.Lk)("span",null,(0,c.v_)(null!=(e=t.label)?e:t.value),1)]}))],42,["id","aria-disabled","aria-selected","onMousemove","onClick"])))),128))])),_:3},8,["id","wrap-class","view-class","aria-label"]),[[S.aG,e.options.length>0&&!e.loading]]),e.loading?((0,s.uX)(),(0,s.CE)("div",{key:1,class:(0,c.C4)((0,l.R1)(a).be("dropdown","loading"))},[(0,s.RG)(e.$slots,"loading",{},(()=>[(0,s.eW)((0,c.v_)((0,l.R1)(i)("el.mention.loading")),1)]))],2)):(0,s.Q3)("v-if",!0),e.$slots.footer?((0,s.uX)(),(0,s.CE)("div",{key:2,class:(0,c.C4)((0,l.R1)(a).be("dropdown","footer"))},[(0,s.RG)(e.$slots,"footer")],2)):(0,s.Q3)("v-if",!0)],2))}});var RO=(0,g.A)(EO,[["__file","mention-dropdown.vue"]]);const SO=(0,s.pM)({name:"ElMention",inheritAttrs:!1}),AO=(0,s.pM)({...SO,props:wO,emits:xO,setup(e,{expose:t,emit:n}){const r=e,a=(0,s.EW)((()=>(0,ko.A)(r,Object.keys(bO.$)))),i=(0,v.DU)("mention"),o=(0,ra.CB)(),u=(0,xr.Bi)(),h=(0,l.KR)(),p=(0,l.KR)(),f=(0,l.KR)(),m=(0,l.KR)(!1),g=(0,l.KR)(),y=(0,l.KR)(),b=(0,s.EW)((()=>r.showArrow?r.placement:`${r.placement}-start`)),w=(0,s.EW)((()=>r.showArrow?["bottom","top"]:["bottom-start","top-start"])),x=(0,s.EW)((()=>{const{filterOption:e,options:t}=r;return y.value&&e?t.filter((t=>e(y.value.pattern,t))):t})),k=(0,s.EW)((()=>m.value&&(!!x.value.length||r.loading))),_=(0,s.EW)((()=>{var e;return`${u.value}-${null==(e=f.value)?void 0:e.hoveringIndex}`})),C=e=>{n("update:modelValue",e),L()},E=e=>{var t,a,i,o;if("code"in e&&!(null==(t=h.value)?void 0:t.isComposing))switch(e.code){case $n.R.left:case $n.R.right:L();break;case $n.R.up:case $n.R.down:if(!m.value)return;e.preventDefault(),null==(a=f.value)||a.navigateOptions(e.code===$n.R.up?"prev":"next");break;case $n.R.enter:case $n.R.numpadEnter:if(!m.value)return;e.preventDefault(),(null==(i=f.value)?void 0:i.hoverOption)?null==(o=f.value)||o.selectHoverOption():m.value=!1;break;case $n.R.esc:if(!m.value)return;e.preventDefault(),m.value=!1;break;case $n.R.backspace:if(r.whole&&y.value){const{splitIndex:t,selectionEnd:a,pattern:i,prefixIndex:o,prefix:l}=y.value,u=M();if(!u)return;const h=u.value,p=r.options.find((e=>e.value===i)),f=(0,c.Tn)(r.checkIsWhole)?r.checkIsWhole(i,l):p;if(f&&-1!==t&&t+1===a){e.preventDefault();const r=h.slice(0,o)+h.slice(t+1);n(d.l4,r);const a=o;(0,s.dY)((()=>{u.selectionStart=a,u.selectionEnd=a,I()}))}}}},{wrapperRef:R}=(0,cc.K)(h,{beforeFocus(){return o.value},afterFocus(){L()},beforeBlur(e){var t;return null==(t=p.value)?void 0:t.isFocusInsideContent(e)},afterBlur(){m.value=!1}}),A=()=>{L()},T=e=>{if(!y.value)return;const t=M();if(!t)return;const a=t.value,{split:i}=r,o=a.slice(y.value.end),l=o.startsWith(i),c=`${e.value}${l?"":i}`,u=a.slice(0,y.value.start)+c+o;n(d.l4,u),n("select",e,y.value.prefix);const h=y.value.start+c.length+(l?1:0);(0,s.dY)((()=>{t.selectionStart=h,t.selectionEnd=h,t.focus(),I()}))},M=()=>{var e,t;return"textarea"===r.type?null==(e=h.value)?void 0:e.textarea:null==(t=h.value)?void 0:t.input},L=()=>{setTimeout((()=>{O(),I(),(0,s.dY)((()=>{var e;return null==(e=p.value)?void 0:e.updatePopper()}))}),0)},O=()=>{const e=M();if(!e)return;const t=yO(e),n=e.getBoundingClientRect(),r=h.value.$el.getBoundingClientRect();g.value={position:"absolute",width:0,height:`${t.height}px`,left:t.left+n.left-r.left+"px",top:t.top+n.top-r.top+"px"}},I=()=>{const e=M();if(document.activeElement!==e)return void(m.value=!1);const{prefix:t,split:a}=r;if(y.value=vO(e,t,a),y.value&&-1===y.value.splitIndex)return m.value=!0,void n("search",y.value.pattern,y.value.prefix);m.value=!1};return t({input:h,tooltip:p,dropdownVisible:k}),(e,t)=>((0,s.uX)(),(0,s.CE)("div",{ref_key:"wrapperRef",ref:R,class:(0,c.C4)([(0,l.R1)(i).b(),(0,l.R1)(i).is("disabled",(0,l.R1)(o))])},[(0,s.bF)((0,l.R1)(q.WK),(0,s.v6)((0,s.v6)((0,l.R1)(a),e.$attrs),{ref_key:"elInputRef",ref:h,"model-value":e.modelValue,disabled:(0,l.R1)(o),role:(0,l.R1)(k)?"combobox":void 0,"aria-activedescendant":(0,l.R1)(k)?(0,l.R1)(_)||"":void 0,"aria-controls":(0,l.R1)(k)?(0,l.R1)(u):void 0,"aria-expanded":(0,l.R1)(k)||void 0,"aria-label":e.ariaLabel,"aria-autocomplete":(0,l.R1)(k)?"none":void 0,"aria-haspopup":(0,l.R1)(k)?"listbox":void 0,onInput:C,onKeydown:E,onMousedown:A}),(0,s.eX)({_:2},[(0,s.pI)(e.$slots,((t,n)=>({name:n,fn:(0,s.k6)((t=>[(0,s.RG)(e.$slots,n,(0,c._B)((0,s.Ng)(t)))]))})))]),1040,["model-value","disabled","role","aria-activedescendant","aria-controls","aria-expanded","aria-label","aria-autocomplete","aria-haspopup"]),(0,s.bF)((0,l.R1)(Jr),{ref_key:"tooltipRef",ref:p,visible:(0,l.R1)(k),"popper-class":[(0,l.R1)(i).e("popper"),e.popperClass],"popper-options":e.popperOptions,placement:(0,l.R1)(b),"fallback-placements":(0,l.R1)(w),effect:"light",pure:"",offset:e.offset,"show-arrow":e.showArrow},{default:(0,s.k6)((()=>[(0,s.Lk)("div",{style:(0,c.Tr)(g.value)},null,4)])),content:(0,s.k6)((()=>{var t;return[(0,s.bF)(RO,{ref_key:"dropdownRef",ref:f,options:(0,l.R1)(x),disabled:(0,l.R1)(o),loading:e.loading,"content-id":(0,l.R1)(u),"aria-label":e.ariaLabel,onSelect:T,onClick:(0,S.D$)(null==(t=h.value)?void 0:t.focus,["stop"])},(0,s.eX)({_:2},[(0,s.pI)(e.$slots,((t,n)=>({name:n,fn:(0,s.k6)((t=>[(0,s.RG)(e.$slots,n,(0,c._B)((0,s.Ng)(t)))]))})))]),1032,["options","disabled","loading","content-id","aria-label","onClick"])]})),_:3},8,["visible","popper-class","popper-options","placement","fallback-placements","offset","show-arrow"])],2))}});var TO=(0,g.A)(AO,[["__file","mention.vue"]]);const MO=(0,E.GU)(TO);var LO=[R,F,la,fE,ma,_a,Aa,Pa,za,Wa.S2,Wa.fg,xi,Ri,Gi,Xi,Ws,_s,qs,Ao,To,Mo,el,_l,Cl,gl,pc,vc,Ic,Nc,Bc,Dc,Fc,bd,Od,Id,Zd,rh,ch,pp,fp,mp,_p,Uf,Kf,A.tk,rm,Qf,q.WK,um,xm,Sm,ng,rg,ag,ig,dg,wv,Sv,$v,xe,Vv,Go,Yo,Xo,Xv,ny,cy,pe,Xg,Yg,Qg,Nb,Ub,Kb,pw,ww,Ew,Nw,Uw,Kw,Jw,m_,g_,pE,BE,DE,Ts,WE,qE,rR,cR,uR,Jr,MA,YA,bT,LT,oM,PM,QM,GL,XL,lO,cO,mO,MO];const OO="ElInfiniteScroll",IO=50,NO=200,BO=0,DO={delay:{type:Number,default:NO},distance:{type:Number,default:BO},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},FO=(e,t)=>Object.entries(DO).reduce(((n,[r,a])=>{var i,o;const{type:s,default:l}=a,c=e.getAttribute(`infinite-scroll-${r}`);let u=null!=(o=null!=(i=t[c])?i:c)?o:l;return u="false"!==u&&u,u=s(u),n[r]=Number.isNaN(u)?l:u,n}),{}),$O=e=>{const{observer:t}=e[OO];t&&(t.disconnect(),delete e[OO].observer)},PO=(e,t)=>{const{container:n,containerEl:r,instance:a,observer:i,lastScrollTop:o}=e[OO],{disabled:s,distance:l}=FO(e,a),{clientHeight:c,scrollHeight:u,scrollTop:d}=r,h=d-o;if(e[OO].lastScrollTop=d,i||s||h<0)return;let p=!1;if(n===e)p=u-(c+d)<=l;else{const{clientTop:t,scrollHeight:n}=e,a=Ml(e,r);p=d+c>=a+t+n-l}p&&t.call(a)};function zO(e,t){const{containerEl:n,instance:r}=e[OO],{disabled:a}=FO(e,r);a||0===n.clientHeight||(n.scrollHeight<=n.clientHeight?t.call(r):$O(e))}const WO={async mounted(e,t){const{instance:n,value:r}=t;(0,c.Tn)(r)||(0,w.$)(OO,"'v-infinite-scroll' binding value must be a function"),await(0,s.dY)();const{delay:a,immediate:i}=FO(e,n),o=(0,y.Bo)(e,!0),l=o===window?document.documentElement:o,u=Li(PO.bind(null,e,r),a);if(o){if(e[OO]={instance:n,container:o,containerEl:l,delay:a,cb:r,onScroll:u,lastScrollTop:l.scrollTop},i){const t=new MutationObserver(Li(zO.bind(null,e,r),IO));e[OO].observer=t,t.observe(e,{childList:!0,subtree:!0}),zO(e,r)}o.addEventListener("scroll",u)}},unmounted(e){if(!e[OO])return;const{container:t,onScroll:n}=e[OO];null==t||t.removeEventListener("scroll",n),$O(e)},async updated(e){if(e[OO]){const{containerEl:t,cb:n,observer:r}=e[OO];t.clientHeight&&r&&zO(e,n)}else await(0,s.dY)()}},jO=WO;jO.install=e=>{e.directive("InfiniteScroll",jO)};const VO=jO;var UO=n(5320);const KO=["success","info","warning","error"],HO=(0,Gs.f)({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:Q.oc?document.body:void 0}),qO=(0,h.b_)({customClass:{type:String,default:HO.customClass},center:{type:Boolean,default:HO.center},dangerouslyUseHTMLString:{type:Boolean,default:HO.dangerouslyUseHTMLString},duration:{type:Number,default:HO.duration},icon:{type:T.Ze,default:HO.icon},id:{type:String,default:HO.id},message:{type:(0,h.jq)([String,Object,Function]),default:HO.message},onClose:{type:(0,h.jq)(Function),default:HO.onClose},showClose:{type:Boolean,default:HO.showClose},type:{type:String,values:KO,default:HO.type},plain:{type:Boolean,default:HO.plain},offset:{type:Number,default:HO.offset},zIndex:{type:Number,default:HO.zIndex},grouping:{type:Boolean,default:HO.grouping},repeatNum:{type:Number,default:HO.repeatNum}}),GO={destroy:()=>!0},XO=(0,l.Gc)([]),YO=e=>{const t=XO.findIndex((t=>t.id===e)),n=XO[t];let r;return t>0&&(r=XO[t-1]),{current:n,prev:r}},QO=e=>{const{prev:t}=YO(e);return t?t.vm.exposed.bottom.value:0},ZO=(e,t)=>{const n=XO.findIndex((t=>t.id===e));return n>0?16:t},JO=(0,s.pM)({name:"ElMessage"}),eI=(0,s.pM)({...JO,props:qO,emits:GO,setup(e,{expose:t}){const n=e,{Close:r}=T.Nk,{ns:a,zIndex:o}=(0,i.ht)("message"),{currentZIndex:d,nextZIndex:h}=o,p=(0,l.KR)(),f=(0,l.KR)(!1),m=(0,l.KR)(0);let g;const v=(0,s.EW)((()=>n.type?"error"===n.type?"danger":n.type:"info")),y=(0,s.EW)((()=>{const e=n.type;return{[a.bm("icon",e)]:e&&T.rz[e]}})),b=(0,s.EW)((()=>n.icon||T.rz[n.type]||"")),w=(0,s.EW)((()=>QO(n.id))),x=(0,s.EW)((()=>ZO(n.id,n.offset)+w.value)),k=(0,s.EW)((()=>m.value+x.value)),_=(0,s.EW)((()=>({top:`${x.value}px`,zIndex:d.value})));function C(){0!==n.duration&&({stop:g}=(0,Q.TO)((()=>{R()}),n.duration))}function E(){null==g||g()}function R(){f.value=!1}function M({code:e}){e===$n.R.esc&&R()}return(0,s.sV)((()=>{C(),h(),f.value=!0})),(0,s.wB)((()=>n.repeatNum),(()=>{E(),C()})),(0,u.MLh)(document,"keydown",M),(0,u.wYm)(p,(()=>{m.value=p.value.getBoundingClientRect().height})),t({visible:f,bottom:k,close:R}),(e,t)=>((0,s.uX)(),(0,s.Wv)(S.eB,{name:(0,l.R1)(a).b("fade"),onBeforeLeave:e.onClose,onAfterLeave:t=>e.$emit("destroy"),persisted:""},{default:(0,s.k6)((()=>[(0,s.bo)((0,s.Lk)("div",{id:e.id,ref_key:"messageRef",ref:p,class:(0,c.C4)([(0,l.R1)(a).b(),{[(0,l.R1)(a).m(e.type)]:e.type},(0,l.R1)(a).is("center",e.center),(0,l.R1)(a).is("closable",e.showClose),(0,l.R1)(a).is("plain",e.plain),e.customClass]),style:(0,c.Tr)((0,l.R1)(_)),role:"alert",onMouseenter:E,onMouseleave:C},[e.repeatNum>1?((0,s.uX)(),(0,s.Wv)((0,l.R1)(Aa),{key:0,value:e.repeatNum,type:(0,l.R1)(v),class:(0,c.C4)((0,l.R1)(a).e("badge"))},null,8,["value","type","class"])):(0,s.Q3)("v-if",!0),(0,l.R1)(b)?((0,s.uX)(),(0,s.Wv)((0,l.R1)(A.tk),{key:1,class:(0,c.C4)([(0,l.R1)(a).e("icon"),(0,l.R1)(y)])},{default:(0,s.k6)((()=>[((0,s.uX)(),(0,s.Wv)((0,s.$y)((0,l.R1)(b))))])),_:1},8,["class"])):(0,s.Q3)("v-if",!0),(0,s.RG)(e.$slots,"default",{},(()=>[e.dangerouslyUseHTMLString?((0,s.uX)(),(0,s.CE)(s.FK,{key:1},[(0,s.Q3)(" Caution here, message could've been compromised, never use user's input as message "),(0,s.Lk)("p",{class:(0,c.C4)((0,l.R1)(a).e("content")),innerHTML:e.message},null,10,["innerHTML"])],2112)):((0,s.uX)(),(0,s.CE)("p",{key:0,class:(0,c.C4)((0,l.R1)(a).e("content"))},(0,c.v_)(e.message),3))])),e.showClose?((0,s.uX)(),(0,s.Wv)((0,l.R1)(A.tk),{key:2,class:(0,c.C4)((0,l.R1)(a).e("closeBtn")),onClick:(0,S.D$)(R,["stop"])},{default:(0,s.k6)((()=>[(0,s.bF)((0,l.R1)(r))])),_:1},8,["class","onClick"])):(0,s.Q3)("v-if",!0)],46,["id"]),[[S.aG,f.value]])])),_:3},8,["name","onBeforeLeave","onAfterLeave"]))}});var tI=(0,g.A)(eI,[["__file","message.vue"]]);let nI=1;const rI=e=>{const t=!e||(0,c.Kg)(e)||(0,s.vv)(e)||(0,c.Tn)(e)?{message:e}:e,n={...HO,...t};if(n.appendTo){if((0,c.Kg)(n.appendTo)){let e=document.querySelector(n.appendTo);(0,p.vq)(e)||((0,w.U)("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),e=document.body),n.appendTo=e}}else n.appendTo=document.body;return(0,p.Lm)(mc.grouping)&&!n.grouping&&(n.grouping=mc.grouping),(0,p.Et)(mc.duration)&&3e3===n.duration&&(n.duration=mc.duration),(0,p.Et)(mc.offset)&&16===n.offset&&(n.offset=mc.offset),(0,p.Lm)(mc.showClose)&&!n.showClose&&(n.showClose=mc.showClose),n},aI=e=>{const t=XO.indexOf(e);if(-1===t)return;XO.splice(t,1);const{handler:n}=e;n.close()},iI=({appendTo:e,...t},n)=>{const r="message_"+nI++,a=t.onClose,i=document.createElement("div"),o={...t,id:r,onClose:()=>{null==a||a(),aI(h)},onDestroy:()=>{(0,S.XX)(null,i)}},l=(0,s.bF)(tI,o,(0,c.Tn)(o.message)||(0,s.vv)(o.message)?{default:(0,c.Tn)(o.message)?o.message:()=>o.message}:null);l.appContext=n||oI._context,(0,S.XX)(l,i),e.appendChild(i.firstElementChild);const u=l.component,d={close:()=>{u.exposed.visible.value=!1}},h={id:r,vnode:l,vm:u,handler:d,props:l.component.props};return h},oI=(e={},t)=>{if(!Q.oc)return{close:()=>{}};const n=rI(e);if(n.grouping&&XO.length){const e=XO.find((({vnode:e})=>{var t;return(null==(t=e.props)?void 0:t.message)===n.message}));if(e)return e.props.repeatNum+=1,e.props.type=n.type,e.handler}if((0,p.Et)(mc.max)&&XO.length>=mc.max)return{close:()=>{}};const r=iI(n,t);return XO.push(r),r.handler};function sI(e){for(const t of XO)e&&e!==t.props.type||t.handler.close()}KO.forEach((e=>{oI[e]=(t={},n)=>{const r=rI(t);return oI({...r,type:e},n)}})),oI.closeAll=sI,oI._context=null;const lI=(0,E._u)(oI,"$message");var cI=n(2933);const uI=["success","info","warning","error"],dI=(0,h.b_)({customClass:{type:String,default:""},dangerouslyUseHTMLString:Boolean,duration:{type:Number,default:4500},icon:{type:T.Ze},id:{type:String,default:""},message:{type:(0,h.jq)([String,Object,Function]),default:""},offset:{type:Number,default:0},onClick:{type:(0,h.jq)(Function),default:()=>{}},onClose:{type:(0,h.jq)(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...uI,""],default:""},zIndex:Number}),hI={destroy:()=>!0},pI=(0,s.pM)({name:"ElNotification"}),fI=(0,s.pM)({...pI,props:dI,emits:hI,setup(e,{expose:t}){const n=e,{ns:r,zIndex:a}=(0,i.ht)("notification"),{nextZIndex:o,currentZIndex:d}=a,{Close:h}=T.H2,p=(0,l.KR)(!1);let f;const m=(0,s.EW)((()=>{const e=n.type;return e&&T.rz[n.type]?r.m(e):""})),g=(0,s.EW)((()=>n.type&&T.rz[n.type]||n.icon)),v=(0,s.EW)((()=>n.position.endsWith("right")?"right":"left")),y=(0,s.EW)((()=>n.position.startsWith("top")?"top":"bottom")),b=(0,s.EW)((()=>{var e;return{[y.value]:`${n.offset}px`,zIndex:null!=(e=n.zIndex)?e:d.value}}));function w(){n.duration>0&&({stop:f}=(0,Q.TO)((()=>{p.value&&k()}),n.duration))}function x(){null==f||f()}function k(){p.value=!1}function _({code:e}){e===$n.R.delete||e===$n.R.backspace?x():e===$n.R.esc?p.value&&k():w()}return(0,s.sV)((()=>{w(),o(),p.value=!0})),(0,u.MLh)(document,"keydown",_),t({visible:p,close:k}),(e,t)=>((0,s.uX)(),(0,s.Wv)(S.eB,{name:(0,l.R1)(r).b("fade"),onBeforeLeave:e.onClose,onAfterLeave:t=>e.$emit("destroy"),persisted:""},{default:(0,s.k6)((()=>[(0,s.bo)((0,s.Lk)("div",{id:e.id,class:(0,c.C4)([(0,l.R1)(r).b(),e.customClass,(0,l.R1)(v)]),style:(0,c.Tr)((0,l.R1)(b)),role:"alert",onMouseenter:x,onMouseleave:w,onClick:e.onClick},[(0,l.R1)(g)?((0,s.uX)(),(0,s.Wv)((0,l.R1)(A.tk),{key:0,class:(0,c.C4)([(0,l.R1)(r).e("icon"),(0,l.R1)(m)])},{default:(0,s.k6)((()=>[((0,s.uX)(),(0,s.Wv)((0,s.$y)((0,l.R1)(g))))])),_:1},8,["class"])):(0,s.Q3)("v-if",!0),(0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(r).e("group"))},[(0,s.Lk)("h2",{class:(0,c.C4)((0,l.R1)(r).e("title")),textContent:(0,c.v_)(e.title)},null,10,["textContent"]),(0,s.bo)((0,s.Lk)("div",{class:(0,c.C4)((0,l.R1)(r).e("content")),style:(0,c.Tr)(e.title?void 0:{margin:0})},[(0,s.RG)(e.$slots,"default",{},(()=>[e.dangerouslyUseHTMLString?((0,s.uX)(),(0,s.CE)(s.FK,{key:1},[(0,s.Q3)(" Caution here, message could've been compromised, never use user's input as message "),(0,s.Lk)("p",{innerHTML:e.message},null,8,["innerHTML"])],2112)):((0,s.uX)(),(0,s.CE)("p",{key:0},(0,c.v_)(e.message),1))]))],6),[[S.aG,e.message]]),e.showClose?((0,s.uX)(),(0,s.Wv)((0,l.R1)(A.tk),{key:0,class:(0,c.C4)((0,l.R1)(r).e("closeBtn")),onClick:(0,S.D$)(k,["stop"])},{default:(0,s.k6)((()=>[(0,s.bF)((0,l.R1)(h))])),_:1},8,["class","onClick"])):(0,s.Q3)("v-if",!0)],2)],46,["id","onClick"]),[[S.aG,p.value]])])),_:3},8,["name","onBeforeLeave","onAfterLeave"]))}});var mI=(0,g.A)(fI,[["__file","notification.vue"]]);const gI={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},vI=16;let yI=1;const bI=function(e={},t){if(!Q.oc)return{close:()=>{}};((0,c.Kg)(e)||(0,s.vv)(e))&&(e={message:e});const n=e.position||"top-right";let r=e.offset||0;gI[n].forEach((({vm:e})=>{var t;r+=((null==(t=e.el)?void 0:t.offsetHeight)||0)+vI})),r+=vI;const a="notification_"+yI++,i=e.onClose,o={...e,offset:r,id:a,onClose:()=>{wI(a,n,i)}};let l=document.body;(0,p.vq)(e.appendTo)?l=e.appendTo:(0,c.Kg)(e.appendTo)&&(l=document.querySelector(e.appendTo)),(0,p.vq)(l)||((0,w.U)("ElNotification","the appendTo option is not an HTMLElement. Falling back to document.body."),l=document.body);const u=document.createElement("div"),d=(0,s.bF)(mI,o,(0,c.Tn)(o.message)?o.message:(0,s.vv)(o.message)?()=>o.message:null);return d.appContext=(0,p.b0)(t)?bI._context:t,d.props.onDestroy=()=>{(0,S.XX)(null,u)},(0,S.XX)(d,u),gI[n].push({vm:d}),l.appendChild(u.firstElementChild),{close:()=>{d.component.exposed.visible.value=!1}}};function wI(e,t,n){const r=gI[t],a=r.findIndex((({vm:t})=>{var n;return(null==(n=t.component)?void 0:n.props.id)===e}));if(-1===a)return;const{vm:i}=r[a];if(!i)return;null==n||n(i);const o=i.el.offsetHeight,s=t.split("-")[0];r.splice(a,1);const l=r.length;if(!(l<1))for(let c=a;c<l;c++){const{el:e,component:t}=r[c].vm,n=Number.parseInt(e.style[s],10)-o-vI;t.props.offset=n}}function xI(){for(const e of Object.values(gI))e.forEach((({vm:e})=>{e.component.exposed.visible.value=!1}))}uI.forEach((e=>{bI[e]=(t={},n)=>(((0,c.Kg)(t)||(0,s.vv)(t))&&(t={message:t}),bI({...t,type:e},n))})),bI.closeAll=xI,bI._context=null;const kI=(0,E._u)(bI,"$notify");var _I=[VO,UO.Ks,lI,cI.s,kI,Fv],CI=o([...LO,..._I])},8501:function(e,t,n){"use strict";n.d(t,{l:function(){return o}});var r=n(1996),a=n(7378);const i=(0,a.b_)({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),o=e=>(0,r.A)(i,e)},3716:function(e,t,n){"use strict";n.d(t,{O:function(){return l}});n(8992),n(4520);var r=n(6768),a=n(1154),i=n(6894);const o=["class","style"],s=/^on[A-Z]/,l=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,l=(0,r.EW)((()=>((null==n?void 0:n.value)||[]).concat(o))),c=(0,r.nI)();return c?(0,r.EW)((()=>{var e;return(0,a.A)(Object.entries(null==(e=c.proxy)?void 0:e.$attrs).filter((([e])=>!l.value.includes(e)&&!(t&&s.test(e)))))})):((0,i.U)("use-attrs","getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"),(0,r.EW)((()=>({}))))}},5488:function(e,t,n){"use strict";n.d(t,{o:function(){return o}});var r=n(144),a=n(6768);const i=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e);function o({afterComposition:e,emit:t}){const n=(0,r.KR)(!1),o=e=>{null==t||t("compositionstart",e),n.value=!0},s=e=>{var r;null==t||t("compositionupdate",e);const a=null==(r=e.target)?void 0:r.value,o=a[a.length-1]||"";n.value=!i(o)},l=r=>{null==t||t("compositionend",r),n.value&&(n.value=!1,(0,a.dY)((()=>e(r))))},c=e=>{"compositionend"===e.type?l(e):s(e)};return{isComposing:n,handleComposition:c,handleCompositionStart:o,handleCompositionUpdate:s,handleCompositionEnd:l}}},261:function(e,t,n){"use strict";n.d(t,{b:function(){return o}});var r=n(6768),a=n(144),i=n(6894);const o=({from:e,replacement:t,scope:n,version:o,ref:s,type:l="API"},c)=>{(0,r.wB)((()=>(0,a.R1)(c)),(r=>{r&&(0,i.U)(n,`[${l}] ${e} is about to be deprecated in version ${o}, please use ${t} instead.\nFor more detail, please visit: ${s}\n`)}),{immediate:!0})}},7833:function(e,t,n){"use strict";n.d(t,{P:function(){return i}});var r=n(6768),a=n(3558);const i=(e,t,n,i)=>{let o={offsetX:0,offsetY:0};const s=t=>{const n=t.clientX,r=t.clientY,{offsetX:s,offsetY:l}=o,c=e.value.getBoundingClientRect(),u=c.left,d=c.top,h=c.width,p=c.height,f=document.documentElement.clientWidth,m=document.documentElement.clientHeight,g=-u+s,v=-d+l,y=f-u-h+s,b=m-d-p+l,w=t=>{let c=s+t.clientX-n,u=l+t.clientY-r;(null==i?void 0:i.value)||(c=Math.min(Math.max(c,g),y),u=Math.min(Math.max(u,v),b)),o={offsetX:c,offsetY:u},e.value&&(e.value.style.transform=`translate(${(0,a._V)(c)}, ${(0,a._V)(u)})`)},x=()=>{document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",x)};document.addEventListener("mousemove",w),document.addEventListener("mouseup",x)},l=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",s)},c=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",s)},u=()=>{o={offsetX:0,offsetY:0},e.value&&(e.value.style.transform="none")};return(0,r.sV)((()=>{(0,r.nT)((()=>{n.value?l():c()}))})),(0,r.xo)((()=>{c()})),{resetPosition:u}}},9180:function(e,t,n){"use strict";n.d(t,{bs:function(){return h},fQ:function(){return p},mf:function(){return l}});var r=n(6768),a=n(144),i=n(7378),o=n(4232),s=n(6894);const l=Symbol("emptyValuesContextKey"),c="use-empty-values",u=["",void 0,null],d=void 0,h=(0,i.b_)({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:e=>(0,o.Tn)(e)?!e():!e}}),p=(e,t)=>{const n=(0,r.nI)()?(0,r.WQ)(l,(0,a.KR)({})):(0,a.KR)({}),i=(0,r.EW)((()=>e.emptyValues||n.value.emptyValues||u)),h=(0,r.EW)((()=>(0,o.Tn)(e.valueOnClear)?e.valueOnClear():void 0!==e.valueOnClear?e.valueOnClear:(0,o.Tn)(n.value.valueOnClear)?n.value.valueOnClear():void 0!==n.value.valueOnClear?n.value.valueOnClear:void 0!==t?t:d)),p=e=>i.value.includes(e);return i.value.includes(h.value)||(0,s.U)(c,"value-on-clear should be a value of empty-values"),{emptyValues:i,valueOnClear:h,isEmptyValue:p}}},1939:function(e,t,n){"use strict";n.d(t,{K:function(){return s}});var r=n(6768),a=n(144),i=n(7383),o=n(4232);function s(e,{beforeFocus:t,afterFocus:n,beforeBlur:s,afterBlur:l}={}){const c=(0,r.nI)(),{emit:u}=c,d=(0,a.IJ)(),h=(0,a.KR)(!1),p=e=>{const r=!!(0,o.Tn)(t)&&t(e);r||h.value||(h.value=!0,u("focus",e),null==n||n())},f=e=>{var t;const n=!!(0,o.Tn)(s)&&s(e);n||e.relatedTarget&&(null==(t=d.value)?void 0:t.contains(e.relatedTarget))||(h.value=!1,u("blur",e),null==l||l())},m=()=>{var t,n;(null==(t=d.value)?void 0:t.contains(document.activeElement))&&d.value!==document.activeElement||null==(n=e.value)||n.focus()};return(0,r.wB)(d,(e=>{e&&e.setAttribute("tabindex","-1")})),(0,i.MLh)(d,"focus",p,!0),(0,i.MLh)(d,"blur",f,!0),(0,i.MLh)(d,"click",m,!0),{isFocused:h,wrapperRef:d,handleFocus:p,handleBlur:f}}},1305:function(e,t,n){"use strict";n.d(t,{Bi:function(){return d},Sj:function(){return u}});var r=n(6768),a=n(144),i=n(153),o=n(3513),s=n(6894);const l={prefix:Math.floor(1e4*Math.random()),current:0},c=Symbol("elIdInjection"),u=()=>(0,r.nI)()?(0,r.WQ)(c,l):l,d=e=>{const t=u();i.oc||t!==l||(0,s.U)("IdInjection","Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed\nusage: app.provide(ID_INJECTION_KEY, {\n prefix: number,\n current: number,\n})");const n=(0,o.E9)(),r=(0,i.AI)((()=>(0,a.R1)(e)||`${n.value}-id-${t.prefix}-${t.current++}`));return r}},6268:function(e,t,n){"use strict";n.d(t,{vx:function(){return u},Ym:function(){return d}});var r=n(144),a=n(6768),i=n(9615),o={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const s=e=>(t,n)=>l(t,n,(0,r.R1)(e)),l=(e,t,n)=>(0,i.A)(n,e,e).replace(/\{(\w+)\}/g,((e,n)=>{var r;return`${null!=(r=null==t?void 0:t[n])?r:`{${n}}`}`})),c=e=>{const t=(0,a.EW)((()=>(0,r.R1)(e).name)),n=(0,r.i9)(e)?e:(0,r.KR)(e);return{lang:t,locale:n,t:s(e)}},u=Symbol("localeContextKey"),d=e=>{const t=e||(0,a.WQ)(u,(0,r.KR)());return c((0,a.EW)((()=>t.value||o)))}},2667:function(e,t,n){"use strict";n.d(t,{t:function(){return u}});var r=n(144),a=n(6768),i=n(3513),o=n(6894),s=n(153),l=n(3558),c=n(8587);const u=(e,t={})=>{(0,r.i9)(e)||(0,o.$)("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||(0,i.DU)("popup"),u=(0,a.EW)((()=>n.bm("parent","hidden")));if(!s.oc||(0,l.nB)(document.body,u.value))return;let d=0,h=!1,p="0";const f=()=>{setTimeout((()=>{"undefined"!==typeof document&&h&&document&&(document.body.style.width=p,(0,l.vy)(document.body,u.value))}),200)};(0,a.wB)(e,(e=>{if(!e)return void f();h=!(0,l.nB)(document.body,u.value),h&&(p=document.body.style.width,(0,l.iQ)(document.body,u.value)),d=(0,c.F_)(n.namespace.value);const t=document.documentElement.clientHeight<document.body.scrollHeight,r=(0,l.gd)(document.body,"overflowY");d>0&&(t||"scroll"===r)&&h&&(document.body.style.width=`calc(100% - ${d}px)`)})),(0,r.jr)((()=>f()))}},3513:function(e,t,n){"use strict";n.d(t,{DU:function(){return u},E9:function(){return c},Lt:function(){return i},O5:function(){return l}});var r=n(6768),a=n(144);const i="el",o="is-",s=(e,t,n,r,a)=>{let i=`${e}-${t}`;return n&&(i+=`-${n}`),r&&(i+=`__${r}`),a&&(i+=`--${a}`),i},l=Symbol("namespaceContextKey"),c=e=>{const t=e||((0,r.nI)()?(0,r.WQ)(l,(0,a.KR)(i)):(0,a.KR)(i)),n=(0,r.EW)((()=>(0,a.R1)(t)||i));return n},u=(e,t)=>{const n=c(t),r=(t="")=>s(n.value,e,t,"",""),a=t=>t?s(n.value,e,"",t,""):"",i=t=>t?s(n.value,e,"","",t):"",l=(t,r)=>t&&r?s(n.value,e,t,r,""):"",u=(t,r)=>t&&r?s(n.value,e,"",t,r):"",d=(t,r)=>t&&r?s(n.value,e,t,"",r):"",h=(t,r,a)=>t&&r&&a?s(n.value,e,t,r,a):"",p=(e,...t)=>{const n=!(t.length>=1)||t[0];return e&&n?`${o}${e}`:""},f=e=>{const t={};for(const r in e)e[r]&&(t[`--${n.value}-${r}`]=e[r]);return t},m=t=>{const r={};for(const a in t)t[a]&&(r[`--${n.value}-${e}-${a}`]=t[a]);return r},g=e=>`--${n.value}-${e}`,v=t=>`--${n.value}-${e}-${t}`;return{namespace:n,b:r,e:a,m:i,be:l,em:u,bm:d,bem:h,is:p,cssVar:f,cssVarName:g,cssVarBlock:m,cssVarBlockName:v}}},1968:function(e,t,n){"use strict";n.d(t,{r:function(){return a}});var r=n(4232);const a=e=>{if(!e)return{onClick:r.tE,onMousedown:r.tE,onMouseup:r.tE};let t=!1,n=!1;const a=r=>{t&&n&&e(r),t=n=!1},i=e=>{t=e.target===e.currentTarget},o=e=>{n=e.target===e.currentTarget};return{onClick:a,onMousedown:i,onMouseup:o}}},3845:function(e,t,n){"use strict";n.d(t,{SN:function(){return l},mU:function(){return s},wC:function(){return c}});var r=n(6768),a=n(144),i=n(7378),o=n(1211);const s=(0,i.Y8)({type:String,values:o.I,required:!1}),l=Symbol("size"),c=()=>{const e=(0,r.WQ)(l,{});return(0,r.EW)((()=>(0,a.R1)(e.size)||""))}},2401:function(e,t,n){"use strict";n.d(t,{YK:function(){return p},_:function(){return u},d4:function(){return h}});var r=n(144),a=n(6768),i=n(2235),o=n(153),s=n(6894);const l={current:0},c=(0,r.KR)(0),u=2e3,d=Symbol("elZIndexContextKey"),h=Symbol("zIndexContextKey"),p=e=>{const t=(0,a.nI)()?(0,a.WQ)(d,l):l,n=e||((0,a.nI)()?(0,a.WQ)(h,void 0):void 0),p=(0,a.EW)((()=>{const e=(0,r.R1)(n);return(0,i.Et)(e)?e:u})),f=(0,a.EW)((()=>p.value+c.value)),m=()=>(t.current++,c.value=t.current,f.value);return o.oc||(0,a.WQ)(d)||(0,s.U)("ZIndexInjection","Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed\nusage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })"),{initialZIndex:p,currentZIndex:f,nextZIndex:m}}},2808:function(e,t,n){"use strict";n.d(t,{gm:function(){return a}});var r=n(153);const a=()=>r.oc&&/firefox/i.test(window.navigator.userAgent)},6340:function(e,t,n){"use strict";n.d(t,{Hl:function(){return s},Lw:function(){return u},rQ:function(){return c},tp:function(){return o},uG:function(){return i},xe:function(){return l}});n(8992),n(4520);const r='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',a=e=>{const t=getComputedStyle(e);return"fixed"!==t.position&&null!==e.offsetParent},i=e=>Array.from(e.querySelectorAll(r)).filter((e=>o(e)&&a(e))),o=e=>{if(e.tabIndex>0||0===e.tabIndex&&null!==e.getAttribute("tabIndex"))return!0;if(e.tabIndex<0||e.hasAttribute("disabled")||"true"===e.getAttribute("aria-disabled"))return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!==e.rel;case"INPUT":return!("hidden"===e.type||"file"===e.type);case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},s=function(e,t,...n){let r;r=t.includes("mouse")||t.includes("click")?"MouseEvents":t.includes("key")?"KeyboardEvent":"HTMLEvents";const a=document.createEvent(r);return a.initEvent(t,...n),e.dispatchEvent(a),e},l=e=>!e.getAttribute("aria-owns"),c=(e,t,n)=>{const{parentNode:r}=e;if(!r)return null;const a=r.querySelectorAll(n),i=Array.prototype.indexOf.call(a,e);return a[i+t]||null},u=e=>{e&&(e.focus(),!l(e)&&e.click())}},8587:function(e,t,n){"use strict";n.d(t,{mg:function(){return f},F_:function(){return h},Bo:function(){return u},aF:function(){return m},hY:function(){return g},Rt:function(){return p}});n(4114);var r=n(153);function a(e,t,n,r){const a=n-t;return e/=r/2,e<1?a/2*e*e*e+t:a/2*((e-=2)*e*e+2)+t}var i=n(2235),o=n(5431),s=n(3558),l=n(4232);const c=(e,t)=>{if(!r.oc)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],a=(0,s.gd)(e,n);return["scroll","auto","overlay"].some((e=>a.includes(e)))},u=(e,t)=>{if(!r.oc)return;let n=e;while(n){if([window,document,document.documentElement].includes(n))return window;if(c(n,t))return n;n=n.parentNode}return n};let d;const h=e=>{var t;if(!r.oc)return 0;if(void 0!==d)return d;const n=document.createElement("div");n.className=`${e}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const a=n.offsetWidth;n.style.overflow="scroll";const i=document.createElement("div");i.style.width="100%",n.appendChild(i);const o=i.offsetWidth;return null==(t=n.parentNode)||t.removeChild(n),d=a-o,d};function p(e,t){if(!r.oc)return;if(!t)return void(e.scrollTop=0);const n=[];let a=t.offsetParent;while(null!==a&&e!==a&&e.contains(a))n.push(a),a=a.offsetParent;const i=t.offsetTop+n.reduce(((e,t)=>e+t.offsetTop),0),o=i+t.offsetHeight,s=e.scrollTop,l=s+e.clientHeight;i<s?e.scrollTop=i:o>l&&(e.scrollTop=o-e.clientHeight)}function f(e,t,n,r,s){const c=Date.now();let u;const d=()=>{const h=Date.now(),p=h-c,f=a(p>r?r:p,t,n,r);(0,i.l6)(e)?e.scrollTo(window.pageXOffset,f):e.scrollTop=f,p<r?u=(0,o.m)(d):(0,l.Tn)(s)&&s()};return d(),()=>{u&&(0,o.V)(u)}}const m=(e,t)=>(0,i.l6)(t)?e.ownerDocument.documentElement:t,g=e=>(0,i.l6)(e)?window.scrollY:e.scrollTop},3558:function(e,t,n){"use strict";n.d(t,{_V:function(){return m},eC:function(){return f},gd:function(){return p},iQ:function(){return d},nB:function(){return u},vy:function(){return h}});n(8992),n(4520),n(3949);var r=n(2235),a=n(153),i=n(4340),o=n(6894),s=n(4232);const l="utils/dom/style",c=(e="")=>e.split(" ").filter((e=>!!e.trim())),u=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},d=(e,t)=>{e&&t.trim()&&e.classList.add(...c(t))},h=(e,t)=>{e&&t.trim()&&e.classList.remove(...c(t))},p=(e,t)=>{var n;if(!a.oc||!e||!t)return"";let r=(0,s.PT)(t);"float"===r&&(r="cssFloat");try{const t=e.style[r];if(t)return t;const a=null==(n=document.defaultView)?void 0:n.getComputedStyle(e,"");return a?a[r]:""}catch(i){return e.style[r]}},f=(e,t,n)=>{if(e&&t)if((0,s.Gv)(t))(0,i.Mc)(t).forEach((([t,n])=>f(e,t,n)));else{const r=(0,s.PT)(t);e.style[r]=n}};function m(e,t="px"){return e?(0,r.Et)(e)||(0,r.Hp)(e)?`${e}${t}`:(0,s.Kg)(e)?e:void(0,o.U)(l,"binding value must be a string or number"):""}},6894:function(e,t,n){"use strict";n.d(t,{$:function(){return a},U:function(){return i}});class r extends Error{constructor(e){super(e),this.name="ElementPlusError"}}function a(e,t){throw new r(`[${e}] ${t}`)}function i(e,t){0}},4340:function(e,t,n){"use strict";n.d(t,{Mc:function(){return l},GT:function(){return c},YD:function(){return s}});var r=n(9615),a=n(203);function i(e,t,n){return null==e?e:(0,a.A)(e,t,n)}var o=i;const s=e=>Object.keys(e),l=e=>Object.entries(e),c=(e,t,n)=>({get value(){return(0,r.A)(e,t,n)},set value(n){o(e,t,n)}})},5431:function(e,t,n){"use strict";n.d(t,{V:function(){return i},m:function(){return a}});var r=n(153);const a=e=>r.oc?window.requestAnimationFrame(e):setTimeout(e,16),i=e=>r.oc?window.cancelAnimationFrame(e):clearTimeout(e)},2235:function(e,t,n){"use strict";n.d(t,{Et:function(){return s},Hp:function(){return d},Im:function(){return l},Lm:function(){return o},Xj:function(){return u},b0:function(){return i},l6:function(){return h},vq:function(){return c}});var r=n(4232),a=n(6032);const i=e=>void 0===e,o=e=>"boolean"===typeof e,s=e=>"number"===typeof e,l=e=>!e&&0!==e||(0,r.cy)(e)&&0===e.length||(0,r.Gv)(e)&&!Object.keys(e).length,c=e=>"undefined"!==typeof Element&&e instanceof Element,u=e=>(0,a.A)(e),d=e=>!!(0,r.Kg)(e)&&!Number.isNaN(Number(e)),h=e=>e===window},6769:function(e,t,n){"use strict";n.d(t,{f:function(){return r}});const r=e=>e},464:function(e,t,n){"use strict";n.d(t,{H2:function(){return o},Nk:function(){return s},Ze:function(){return i},rz:function(){return l},vK:function(){return c}});var r=n(7477),a=n(7378);const i=(0,a.jq)([String,Object,Function]),o={Close:r.bm},s={Close:r.bm,SuccessFilled:r.m6F,InfoFilled:r.N_H,WarningFilled:r.BFW,CircleCloseFilled:r.BZj},l={success:r.m6F,warning:r.BFW,error:r.BZj,info:r.N_H},c={validating:r.Rhj,success:r.rW7,error:r.R$5}},5376:function(e,t,n){"use strict";n.d(t,{GU:function(){return a},PZ:function(){return o},WM:function(){return s},_u:function(){return i}});var r=n(4232);const a=(e,t)=>{if(e.install=n=>{for(const r of[e,...Object.values(null!=t?t:{})])n.component(r.name,r)},t)for(const[n,r]of Object.entries(t))e[n]=r;return e},i=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),o=(e,t)=>(e.install=n=>{n.directive(t,e)},e),s=e=>(e.install=r.tE,e)},7378:function(e,t,n){"use strict";n.d(t,{Y8:function(){return c},b_:function(){return u},jq:function(){return s}});n(4114),n(7642),n(8004),n(3853),n(5876),n(2475),n(5024),n(1698),n(1454);var r=n(6768),a=n(1154),i=n(4232);const o="__epPropKey",s=e=>e,l=e=>(0,i.Gv)(e)&&!!e[o],c=(e,t)=>{if(!(0,i.Gv)(e)||l(e))return e;const{values:n,required:a,default:s,type:c,validator:u}=e,d=n||u?a=>{let o=!1,l=[];if(n&&(l=Array.from(n),(0,i.$3)(e,"default")&&l.push(s),o||(o=l.includes(a))),u&&(o||(o=u(a))),!o&&l.length>0){const e=[...new Set(l)].map((e=>JSON.stringify(e))).join(", ");(0,r.R8)(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${e}], got value ${JSON.stringify(a)}.`)}return o}:void 0,h={type:c,required:!!a,validator:d,[o]:!0};return(0,i.$3)(e,"default")&&(h.default=s),h},u=e=>(0,a.A)(Object.entries(e).map((([e,t])=>[e,c(t,e)])))},3027:function(e,t,n){"use strict";n.d(t,{x:function(){return a}});var r=n(1211);const a=e=>["",...r.I].includes(e)},6139:function(e,t,n){"use strict";n.d(t,{$P:function(){return h},CW:function(){return p},Yn:function(){return s},jO:function(){return u},oh:function(){return d},zv:function(){return l}});n(4114),n(8992),n(3949);var r=n(6768),a=n(6894),i=n(4232);const o="utils/vue/vnode";var s=(e=>(e[e["TEXT"]=1]="TEXT",e[e["CLASS"]=2]="CLASS",e[e["STYLE"]=4]="STYLE",e[e["PROPS"]=8]="PROPS",e[e["FULL_PROPS"]=16]="FULL_PROPS",e[e["HYDRATE_EVENTS"]=32]="HYDRATE_EVENTS",e[e["STABLE_FRAGMENT"]=64]="STABLE_FRAGMENT",e[e["KEYED_FRAGMENT"]=128]="KEYED_FRAGMENT",e[e["UNKEYED_FRAGMENT"]=256]="UNKEYED_FRAGMENT",e[e["NEED_PATCH"]=512]="NEED_PATCH",e[e["DYNAMIC_SLOTS"]=1024]="DYNAMIC_SLOTS",e[e["HOISTED"]=-1]="HOISTED",e[e["BAIL"]=-2]="BAIL",e))(s||{});function l(e){return(0,r.vv)(e)&&e.type===r.FK}function c(e){return(0,r.vv)(e)&&e.type===r.Mw}function u(e){return(0,r.vv)(e)&&!l(e)&&!c(e)}const d=e=>{if(!(0,r.vv)(e))return(0,a.U)(o,"[getNormalizedProps] must be a VNode"),{};const t=e.props||{},n=((0,r.vv)(e.type)?e.type.props:void 0)||{},s={};return Object.keys(n).forEach((e=>{(0,i.$3)(n[e],"default")&&(s[e]=n[e].default)})),Object.keys(t).forEach((e=>{s[(0,i.PT)(e)]=t[e]})),s},h=e=>{if(!(0,i.cy)(e)||e.length>1)throw new Error("expect to receive a single Vue element child");return e[0]},p=e=>{const t=(0,i.cy)(e)?e:[e],n=[];return t.forEach((e=>{var t;(0,i.cy)(e)?n.push(...p(e)):(0,r.vv)(e)&&(null==(t=e.component)?void 0:t.subTree)?n.push(e,...p(e.component.subTree)):(0,r.vv)(e)&&(0,i.cy)(e.children)?n.push(...p(e.children)):n.push(e)})),n}},437:function(e,t,n){"use strict";n.d(t,{Ay:function(){return gi}});n(4114),n(8992),n(4520),n(3949),n(1454),n(7550);class r{constructor(e,t,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=n}static range(e,t){return t?e&&e.loc&&t.loc&&e.loc.lexer===t.loc.lexer?new r(e.loc.lexer,e.loc.start,t.loc.end):null:e&&e.loc}}class a{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(e,t){return new a(t,r.range(this,e))}}class i{constructor(e,t){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var n,r,a="KaTeX parse error: "+e,o=t&&t.loc;if(o&&o.start<=o.end){var s=o.lexer.input;n=o.start,r=o.end,n===s.length?a+=" at end of input: ":a+=" at position "+(n+1)+": ";var l,c,u=s.slice(n,r).replace(/[^]/g,"$&̲");l=n>15?"…"+s.slice(n-15,n):s.slice(0,n),c=r+15<s.length?s.slice(r,r+15)+"…":s.slice(r),a+=l+u+c}var d=new Error(a);return d.name="ParseError",d.__proto__=i.prototype,d.position=n,null!=n&&null!=r&&(d.length=r-n),d.rawMessage=e,d}}i.prototype.__proto__=Error.prototype;var o=function(e,t){return-1!==e.indexOf(t)},s=function(e,t){return void 0===e?t:e},l=/([A-Z])/g,c=function(e){return e.replace(l,"-$1").toLowerCase()},u={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},d=/[&><"']/g;function h(e){return String(e).replace(d,(e=>u[e]))}var p=function e(t){return"ordgroup"===t.type||"color"===t.type?1===t.body.length?e(t.body[0]):t:"font"===t.type?e(t.body):t},f=function(e){var t=p(e);return"mathord"===t.type||"textord"===t.type||"atom"===t.type},m=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e},g=function(e){var t=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(e);return t?":"!==t[2]?null:/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?t[1].toLowerCase():null:"_relative"},v={contains:o,deflt:s,escape:h,hyphenate:c,getBaseElem:p,isCharacterBox:f,protocolFromUrl:g},y={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>"Infinity"===e?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function b(e){if(e.default)return e.default;var t=e.type,n=Array.isArray(t)?t[0]:t;if("string"!==typeof n)return n.enum[0];switch(n){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class w{constructor(e){for(var t in this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{},y)if(y.hasOwnProperty(t)){var n=y[t];this[t]=void 0!==e[t]?n.processor?n.processor(e[t]):e[t]:b(n)}}reportNonstrict(e,t,n){var r=this.strict;if("function"===typeof r&&(r=r(e,t,n)),r&&"ignore"!==r){if(!0===r||"error"===r)throw new i("LaTeX-incompatible input and strict mode is set to 'error': "+t+" ["+e+"]",n);"warn"===r?"undefined"!==typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"):"undefined"!==typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+r+"': "+t+" ["+e+"]")}}useStrictBehavior(e,t,n){var r=this.strict;if("function"===typeof r)try{r=r(e,t,n)}catch(a){r="error"}return!(!r||"ignore"===r)&&(!0===r||"error"===r||("warn"===r?("undefined"!==typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"),!1):("undefined"!==typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+r+"': "+t+" ["+e+"]"),!1)))}isTrusted(e){if(e.url&&!e.protocol){var t=v.protocolFromUrl(e.url);if(null==t)return!1;e.protocol=t}var n="function"===typeof this.trust?this.trust(e):this.trust;return Boolean(n)}}class x{constructor(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}sup(){return M[L[this.id]]}sub(){return M[O[this.id]]}fracNum(){return M[I[this.id]]}fracDen(){return M[N[this.id]]}cramp(){return M[B[this.id]]}text(){return M[D[this.id]]}isTight(){return this.size>=2}}var k=0,_=1,C=2,E=3,R=4,S=5,A=6,T=7,M=[new x(k,0,!1),new x(_,0,!0),new x(C,1,!1),new x(E,1,!0),new x(R,2,!1),new x(S,2,!0),new x(A,3,!1),new x(T,3,!0)],L=[R,S,R,S,A,T,A,T],O=[S,S,S,S,T,T,T,T],I=[C,E,R,S,A,T,A,T],N=[E,E,S,S,T,T,T,T],B=[_,_,E,E,S,S,T,T],D=[k,_,C,E,C,E,C,E],F={DISPLAY:M[k],TEXT:M[C],SCRIPT:M[R],SCRIPTSCRIPT:M[A]},$=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function P(e){for(var t=0;t<$.length;t++)for(var n=$[t],r=0;r<n.blocks.length;r++){var a=n.blocks[r];if(e>=a[0]&&e<=a[1])return n.name}return null}var z=[];function W(e){for(var t=0;t<z.length;t+=2)if(e>=z[t]&&e<=z[t+1])return!0;return!1}$.forEach((e=>e.blocks.forEach((e=>z.push(...e)))));var j=80,V=function(e,t){return"M95,"+(622+e+t)+"\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl"+e/2.075+" -"+e+"\nc5.3,-9.3,12,-14,20,-14\nH400000v"+(40+e)+"H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM"+(834+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},U=function(e,t){return"M263,"+(601+e+t)+"c0.7,0,18,39.7,52,119\nc34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120\nc340,-704.7,510.7,-1060.3,512,-1067\nl"+e/2.084+" -"+e+"\nc4.7,-7.3,11,-11,19,-11\nH40000v"+(40+e)+"H1012.3\ns-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232\nc-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1\ns-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26\nc-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z\nM"+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},K=function(e,t){return"M983 "+(10+e+t)+"\nl"+e/3.13+" -"+e+"\nc4,-6.7,10,-10,18,-10 H400000v"+(40+e)+"\nH1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7\ns-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744\nc-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30\nc26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722\nc56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5\nc53.7,-170.3,84.5,-266.8,92.5,-289.5z\nM"+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},H=function(e,t){return"M424,"+(2398+e+t)+"\nc-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514\nc0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20\ns-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121\ns209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081\nl"+e/4.223+" -"+e+"c4,-6.7,10,-10,18,-10 H400000\nv"+(40+e)+"H1014.6\ns-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185\nc-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2z M"+(1001+e)+" "+t+"\nh400000v"+(40+e)+"h-400000z"},q=function(e,t){return"M473,"+(2713+e+t)+"\nc339.3,-1799.3,509.3,-2700,510,-2702 l"+e/5.298+" -"+e+"\nc3.3,-7.3,9.3,-11,18,-11 H400000v"+(40+e)+"H1017.7\ns-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200\nc0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26\ns76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,\n606zM"+(1001+e)+" "+t+"h400000v"+(40+e)+"H1017.7z"},G=function(e){var t=e/2;return"M400000 "+e+" H0 L"+t+" 0 l65 45 L145 "+(e-80)+" H400000z"},X=function(e,t,n){var r=n-54-t-e;return"M702 "+(e+t)+"H400000"+(40+e)+"\nH742v"+r+"l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1\nh-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170\nc-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667\n219 661 l218 661zM702 "+t+"H400000v"+(40+e)+"H742z"},Y=function(e,t,n){t*=1e3;var r="";switch(e){case"sqrtMain":r=V(t,j);break;case"sqrtSize1":r=U(t,j);break;case"sqrtSize2":r=K(t,j);break;case"sqrtSize3":r=H(t,j);break;case"sqrtSize4":r=q(t,j);break;case"sqrtTall":r=X(t,j,n)}return r},Q=function(e,t){switch(e){case"⎜":return"M291 0 H417 V"+t+" H291z M291 0 H417 V"+t+" H291z";case"":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z";case"∥":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145zM367 0 H410 V"+t+" H367z M367 0 H410 V"+t+" H367z";case"⎟":return"M457 0 H583 V"+t+" H457z M457 0 H583 V"+t+" H457z";case"⎢":return"M319 0 H403 V"+t+" H319z M319 0 H403 V"+t+" H319z";case"⎥":return"M263 0 H347 V"+t+" H263z M263 0 H347 V"+t+" H263z";case"⎪":return"M384 0 H504 V"+t+" H384z M384 0 H504 V"+t+" H384z";case"⏐":return"M312 0 H355 V"+t+" H312z M312 0 H355 V"+t+" H312z";case"‖":return"M257 0 H300 V"+t+" H257z M257 0 H300 V"+t+" H257zM478 0 H521 V"+t+" H478z M478 0 H521 V"+t+" H478z";default:return""}},Z={doubleleftarrow:"M262 157\nl10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3\n 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28\n 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5\nc2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5\n 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5\n 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88\n-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68\n-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8\n-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247\nc-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208\n 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3\n 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 5-6 9-10 13-.7 1-7.3 1-20 1H6z",leftbraceunder:"M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13\n 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5\n-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7\n-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z",leftharpoonplus:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5\n 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3\n-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667\n-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z",leftharpoondownplus:"M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12\n 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3\n-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:"M40 281 V428 H0 V94 H40 V241 H400000 v40z\nM40 281 V428 H0 V94 H40 V241 H400000 v40z",leftmapsto:"M40 281 V448H0V74H40V241H400000v40z\nM40 281 V448H0V74H40V241H400000v40z",leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:"M0 50 h400000 v40H0z m0 194h40000v40H0z\nM0 50 h400000 v40H0z m0 194h40000v40H0z",midbrace:"M200428 334\nc-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0\n-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z",oiintSize1:"M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8\n60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z",oiintSize2:"M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 110 84 276 504 276s502.4-166 502.4-276z",oiiintSize1:"M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z",oiiintSize2:"M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z",rightarrow:"M0 241v40h399891c-47.3 35.3-84 78-110 128\n-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20\n 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7\n 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85\n-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z",rightbraceunder:"M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z",rightgroup:"M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0\n 3-1 3-3v-38c-76-158-257-219-435-219H0z",rightgroupunder:"M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18\n 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z",rightharpoon:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3\n-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2\n-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58\n 69.2 92 94.5zm0 0v40h399900v-40z",rightharpoonplus:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11\n-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7\n 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z\nm0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z",rightharpoondown:"M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8\n 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5\n-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95\n-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z",rightharpoondownplus:"M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8\n 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3\n 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-194v40h400000v-40zm0 0v40h400000v-40z",righthook:"M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3\n 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0\n-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21\n 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z",rightlinesegment:"M399960 241 V94 h40 V428 h-40 V281 H0 v-40z\nM399960 241 V94 h40 V428 h-40 V281 H0 v-40z",rightToFrom:"M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z",twoheadrightarrow:"M400000 167\nc-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3\n 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",tilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0\n 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",tilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",tilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",tilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -175.236-744-175.236z",vec:"M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z",widehat2:"M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat3:"M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat4:"M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widecheck1:"M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,\n-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z",widecheck2:"M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck3:"M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck4:"M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",baraboveleftarrow:"M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130\ns-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47\n121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6\ns2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0\n13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39\n-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5\n-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z",shortbaraboveleftharpoon:"M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,\n1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z",shortrightharpoonabovebar:"M53,241l0,40c398570,0,399437,0,399437,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"},J=function(e,t){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v1759 h347 v-84\nH403z M403 1759 V0 H319 V1759 v"+t+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v1759 H0 v84 H347z\nM347 1759 V0 H263 V1759 v"+t+" v1759 h84z";case"vert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z";case"doublevert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z\nM367 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M410 15 H367 v585 v"+t+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+t+" v1715 h263 v84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+t+" v1799 H0 v-84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v602 h84z\nM403 1759 V0 H319 V1759 v"+t+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v602 h84z\nM347 1759 V0 h-84 V1759 v"+t+" v602 h84z";case"lparen":return"M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1\nc-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,\n-36,557 l0,"+(t+84)+"c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,\n949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9\nc0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,\n-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189\nl0,-"+(t+92)+"c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,\n-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z";case"rparen":return"M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,\n63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5\nc11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,"+(t+9)+"\nc-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664\nc-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11\nc0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17\nc242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558\nl0,-"+(t+144)+"c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,\n-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z";default:throw new Error("Unknown stretchy delimiter.")}};class ee{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return v.contains(this.classes,e)}toNode(){for(var e=document.createDocumentFragment(),t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e}toMarkup(){for(var e="",t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e}toText(){var e=e=>e.toText();return this.children.map(e).join("")}}var te={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},ne={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},re={"Å":"A","Ð":"D","Þ":"o","å":"a","ð":"d","þ":"o","А":"A","Б":"B","В":"B","Г":"F","Д":"A","Е":"E","Ж":"K","З":"3","И":"N","Й":"N","К":"K","Л":"N","М":"M","Н":"H","О":"O","П":"N","Р":"P","С":"C","Т":"T","У":"y","Ф":"O","Х":"X","Ц":"U","Ч":"h","Ш":"W","Щ":"W","Ъ":"B","Ы":"X","Ь":"B","Э":"3","Ю":"X","Я":"R","а":"a","б":"b","в":"a","г":"r","д":"y","е":"e","ж":"m","з":"e","и":"n","й":"n","к":"n","л":"n","м":"m","н":"n","о":"o","п":"n","р":"p","с":"c","т":"o","у":"y","ф":"b","х":"x","ц":"n","ч":"n","ш":"w","щ":"w","ъ":"a","ы":"m","ь":"a","э":"e","ю":"m","я":"r"};function ae(e,t){te[e]=t}function ie(e,t,n){if(!te[t])throw new Error("Font metrics not found for font: "+t+".");var r=e.charCodeAt(0),a=te[t][r];if(!a&&e[0]in re&&(r=re[e[0]].charCodeAt(0),a=te[t][r]),a||"text"!==n||W(r)&&(a=te[t][77]),a)return{depth:a[0],height:a[1],italic:a[2],skew:a[3],width:a[4]}}var oe={};function se(e){var t;if(t=e>=5?0:e>=3?1:2,!oe[t]){var n=oe[t]={cssEmPerMu:ne.quad[t]/18};for(var r in ne)ne.hasOwnProperty(r)&&(n[r]=ne[r][t])}return oe[t]}var le=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],ce=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],ue=function(e,t){return t.size<2?e:le[e-1][t.size-1]};class de{constructor(e){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=e.style,this.color=e.color,this.size=e.size||de.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=ce[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var t={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return new de(t)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:ue(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:ce[e-1]})}havingBaseStyle(e){e=e||this.style.text();var t=ue(de.BASESIZE,e);return this.size===t&&this.textSize===de.BASESIZE&&this.style===e?this:this.extend({style:e,size:t})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==de.BASESIZE?["sizing","reset-size"+this.size,"size"+de.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=se(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}de.BASESIZE=6;var he={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:1.00375,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:1.00375},pe={ex:!0,em:!0,mu:!0},fe=function(e){return"string"!==typeof e&&(e=e.unit),e in he||e in pe||"ex"===e},me=function(e,t){var n;if(e.unit in he)n=he[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if("mu"===e.unit)n=t.fontMetrics().cssEmPerMu;else{var r;if(r=t.style.isTight()?t.havingStyle(t.style.text()):t,"ex"===e.unit)n=r.fontMetrics().xHeight;else{if("em"!==e.unit)throw new i("Invalid unit: '"+e.unit+"'");n=r.fontMetrics().quad}r!==t&&(n*=r.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)},ge=function(e){return+e.toFixed(4)+"em"},ve=function(e){return e.filter((e=>e)).join(" ")},ye=function(e,t,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},t){t.style.isTight()&&this.classes.push("mtight");var r=t.getColor();r&&(this.style.color=r)}},be=function(e){var t=document.createElement(e);for(var n in t.className=ve(this.classes),this.style)this.style.hasOwnProperty(n)&&(t.style[n]=this.style[n]);for(var r in this.attributes)this.attributes.hasOwnProperty(r)&&t.setAttribute(r,this.attributes[r]);for(var a=0;a<this.children.length;a++)t.appendChild(this.children[a].toNode());return t},we=/[\s"'>/=\x00-\x1f]/,xe=function(e){var t="<"+e;this.classes.length&&(t+=' class="'+v.escape(ve(this.classes))+'"');var n="";for(var r in this.style)this.style.hasOwnProperty(r)&&(n+=v.hyphenate(r)+":"+this.style[r]+";");for(var a in n&&(t+=' style="'+v.escape(n)+'"'),this.attributes)if(this.attributes.hasOwnProperty(a)){if(we.test(a))throw new i("Invalid attribute name '"+a+"'");t+=" "+a+'="'+v.escape(this.attributes[a])+'"'}t+=">";for(var o=0;o<this.children.length;o++)t+=this.children[o].toMarkup();return t+="</"+e+">",t};class ke{constructor(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,ye.call(this,e,n,r),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return v.contains(this.classes,e)}toNode(){return be.call(this,"span")}toMarkup(){return xe.call(this,"span")}}class _e{constructor(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,ye.call(this,t,r),this.children=n||[],this.setAttribute("href",e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return v.contains(this.classes,e)}toNode(){return be.call(this,"a")}toMarkup(){return xe.call(this,"a")}}class Ce{constructor(e,t,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.style=n}hasClass(e){return v.contains(this.classes,e)}toNode(){var e=document.createElement("img");for(var t in e.src=this.src,e.alt=this.alt,e.className="mord",this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e}toMarkup(){var e='<img src="'+v.escape(this.src)+'" alt="'+v.escape(this.alt)+'"',t="";for(var n in this.style)this.style.hasOwnProperty(n)&&(t+=v.hyphenate(n)+":"+this.style[n]+";");return t&&(e+=' style="'+v.escape(t)+'"'),e+="'/>",e}}var Ee={"î":"ı̂","ï":"ı̈","í":"ı́","ì":"ı̀"};class Re{constructor(e,t,n,r,a,i,o,s){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=n||0,this.italic=r||0,this.skew=a||0,this.width=i||0,this.classes=o||[],this.style=s||{},this.maxFontSize=0;var l=P(this.text.charCodeAt(0));l&&this.classes.push(l+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=Ee[this.text])}hasClass(e){return v.contains(this.classes,e)}toNode(){var e=document.createTextNode(this.text),t=null;for(var n in this.italic>0&&(t=document.createElement("span"),t.style.marginRight=ge(this.italic)),this.classes.length>0&&(t=t||document.createElement("span"),t.className=ve(this.classes)),this.style)this.style.hasOwnProperty(n)&&(t=t||document.createElement("span"),t.style[n]=this.style[n]);return t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t="<span";this.classes.length&&(e=!0,t+=' class="',t+=v.escape(ve(this.classes)),t+='"');var n="";for(var r in this.italic>0&&(n+="margin-right:"+this.italic+"em;"),this.style)this.style.hasOwnProperty(r)&&(n+=v.hyphenate(r)+":"+this.style[r]+";");n&&(e=!0,t+=' style="'+v.escape(n)+'"');var a=v.escape(this.text);return e?(t+=">",t+=a,t+="</span>",t):a}}class Se{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"svg");for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&t.setAttribute(n,this.attributes[n]);for(var r=0;r<this.children.length;r++)t.appendChild(this.children[r].toNode());return t}toMarkup(){var e='<svg xmlns="http://www.w3.org/2000/svg"';for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="'+v.escape(this.attributes[t])+'"');e+=">";for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+="</svg>",e}}class Ae{constructor(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}toNode(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"path");return this.alternate?t.setAttribute("d",this.alternate):t.setAttribute("d",Z[this.pathName]),t}toMarkup(){return this.alternate?'<path d="'+v.escape(this.alternate)+'"/>':'<path d="'+v.escape(Z[this.pathName])+'"/>'}}class Te{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"line");for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&t.setAttribute(n,this.attributes[n]);return t}toMarkup(){var e="<line";for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="'+v.escape(this.attributes[t])+'"');return e+="/>",e}}function Me(e){if(e instanceof Re)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function Le(e){if(e instanceof ke)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var Oe={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Ie={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Ne={math:{},text:{}};function Be(e,t,n,r,a,i){Ne[e][a]={font:t,group:n,replace:r},i&&r&&(Ne[e][r]=Ne[e][a])}var De="math",Fe="text",$e="main",Pe="ams",ze="accent-token",We="bin",je="close",Ve="inner",Ue="mathord",Ke="op-token",He="open",qe="punct",Ge="rel",Xe="spacing",Ye="textord";Be(De,$e,Ge,"≡","\\equiv",!0),Be(De,$e,Ge,"≺","\\prec",!0),Be(De,$e,Ge,"≻","\\succ",!0),Be(De,$e,Ge,"","\\sim",!0),Be(De,$e,Ge,"⊥","\\perp"),Be(De,$e,Ge,"⪯","\\preceq",!0),Be(De,$e,Ge,"⪰","\\succeq",!0),Be(De,$e,Ge,"≃","\\simeq",!0),Be(De,$e,Ge,"","\\mid",!0),Be(De,$e,Ge,"≪","\\ll",!0),Be(De,$e,Ge,"≫","\\gg",!0),Be(De,$e,Ge,"≍","\\asymp",!0),Be(De,$e,Ge,"∥","\\parallel"),Be(De,$e,Ge,"⋈","\\bowtie",!0),Be(De,$e,Ge,"⌣","\\smile",!0),Be(De,$e,Ge,"⊑","\\sqsubseteq",!0),Be(De,$e,Ge,"⊒","\\sqsupseteq",!0),Be(De,$e,Ge,"≐","\\doteq",!0),Be(De,$e,Ge,"⌢","\\frown",!0),Be(De,$e,Ge,"∋","\\ni",!0),Be(De,$e,Ge,"∝","\\propto",!0),Be(De,$e,Ge,"⊢","\\vdash",!0),Be(De,$e,Ge,"⊣","\\dashv",!0),Be(De,$e,Ge,"∋","\\owns"),Be(De,$e,qe,".","\\ldotp"),Be(De,$e,qe,"⋅","\\cdotp"),Be(De,$e,Ye,"#","\\#"),Be(Fe,$e,Ye,"#","\\#"),Be(De,$e,Ye,"&","\\&"),Be(Fe,$e,Ye,"&","\\&"),Be(De,$e,Ye,"ℵ","\\aleph",!0),Be(De,$e,Ye,"∀","\\forall",!0),Be(De,$e,Ye,"ℏ","\\hbar",!0),Be(De,$e,Ye,"∃","\\exists",!0),Be(De,$e,Ye,"∇","\\nabla",!0),Be(De,$e,Ye,"♭","\\flat",!0),Be(De,$e,Ye,"","\\ell",!0),Be(De,$e,Ye,"♮","\\natural",!0),Be(De,$e,Ye,"♣","\\clubsuit",!0),Be(De,$e,Ye,"℘","\\wp",!0),Be(De,$e,Ye,"♯","\\sharp",!0),Be(De,$e,Ye,"♢","\\diamondsuit",!0),Be(De,$e,Ye,"","\\Re",!0),Be(De,$e,Ye,"♡","\\heartsuit",!0),Be(De,$e,Ye,"","\\Im",!0),Be(De,$e,Ye,"♠","\\spadesuit",!0),Be(De,$e,Ye,"§","\\S",!0),Be(Fe,$e,Ye,"§","\\S"),Be(De,$e,Ye,"¶","\\P",!0),Be(Fe,$e,Ye,"¶","\\P"),Be(De,$e,Ye,"†","\\dag"),Be(Fe,$e,Ye,"†","\\dag"),Be(Fe,$e,Ye,"†","\\textdagger"),Be(De,$e,Ye,"‡","\\ddag"),Be(Fe,$e,Ye,"‡","\\ddag"),Be(Fe,$e,Ye,"‡","\\textdaggerdbl"),Be(De,$e,je,"⎱","\\rmoustache",!0),Be(De,$e,He,"⎰","\\lmoustache",!0),Be(De,$e,je,"⟯","\\rgroup",!0),Be(De,$e,He,"⟮","\\lgroup",!0),Be(De,$e,We,"∓","\\mp",!0),Be(De,$e,We,"⊖","\\ominus",!0),Be(De,$e,We,"⊎","\\uplus",!0),Be(De,$e,We,"⊓","\\sqcap",!0),Be(De,$e,We,"","\\ast"),Be(De,$e,We,"⊔","\\sqcup",!0),Be(De,$e,We,"◯","\\bigcirc",!0),Be(De,$e,We,"∙","\\bullet",!0),Be(De,$e,We,"‡","\\ddagger"),Be(De,$e,We,"≀","\\wr",!0),Be(De,$e,We,"⨿","\\amalg"),Be(De,$e,We,"&","\\And"),Be(De,$e,Ge,"⟵","\\longleftarrow",!0),Be(De,$e,Ge,"⇐","\\Leftarrow",!0),Be(De,$e,Ge,"⟸","\\Longleftarrow",!0),Be(De,$e,Ge,"⟶","\\longrightarrow",!0),Be(De,$e,Ge,"⇒","\\Rightarrow",!0),Be(De,$e,Ge,"⟹","\\Longrightarrow",!0),Be(De,$e,Ge,"↔","\\leftrightarrow",!0),Be(De,$e,Ge,"⟷","\\longleftrightarrow",!0),Be(De,$e,Ge,"⇔","\\Leftrightarrow",!0),Be(De,$e,Ge,"⟺","\\Longleftrightarrow",!0),Be(De,$e,Ge,"↦","\\mapsto",!0),Be(De,$e,Ge,"⟼","\\longmapsto",!0),Be(De,$e,Ge,"↗","\\nearrow",!0),Be(De,$e,Ge,"↩","\\hookleftarrow",!0),Be(De,$e,Ge,"↪","\\hookrightarrow",!0),Be(De,$e,Ge,"↘","\\searrow",!0),Be(De,$e,Ge,"↼","\\leftharpoonup",!0),Be(De,$e,Ge,"⇀","\\rightharpoonup",!0),Be(De,$e,Ge,"↙","\\swarrow",!0),Be(De,$e,Ge,"↽","\\leftharpoondown",!0),Be(De,$e,Ge,"⇁","\\rightharpoondown",!0),Be(De,$e,Ge,"↖","\\nwarrow",!0),Be(De,$e,Ge,"⇌","\\rightleftharpoons",!0),Be(De,Pe,Ge,"≮","\\nless",!0),Be(De,Pe,Ge,"","\\@nleqslant"),Be(De,Pe,Ge,"","\\@nleqq"),Be(De,Pe,Ge,"⪇","\\lneq",!0),Be(De,Pe,Ge,"≨","\\lneqq",!0),Be(De,Pe,Ge,"","\\@lvertneqq"),Be(De,Pe,Ge,"⋦","\\lnsim",!0),Be(De,Pe,Ge,"⪉","\\lnapprox",!0),Be(De,Pe,Ge,"⊀","\\nprec",!0),Be(De,Pe,Ge,"⋠","\\npreceq",!0),Be(De,Pe,Ge,"⋨","\\precnsim",!0),Be(De,Pe,Ge,"⪹","\\precnapprox",!0),Be(De,Pe,Ge,"≁","\\nsim",!0),Be(De,Pe,Ge,"","\\@nshortmid"),Be(De,Pe,Ge,"∤","\\nmid",!0),Be(De,Pe,Ge,"⊬","\\nvdash",!0),Be(De,Pe,Ge,"⊭","\\nvDash",!0),Be(De,Pe,Ge,"⋪","\\ntriangleleft"),Be(De,Pe,Ge,"⋬","\\ntrianglelefteq",!0),Be(De,Pe,Ge,"⊊","\\subsetneq",!0),Be(De,Pe,Ge,"","\\@varsubsetneq"),Be(De,Pe,Ge,"⫋","\\subsetneqq",!0),Be(De,Pe,Ge,"","\\@varsubsetneqq"),Be(De,Pe,Ge,"≯","\\ngtr",!0),Be(De,Pe,Ge,"","\\@ngeqslant"),Be(De,Pe,Ge,"","\\@ngeqq"),Be(De,Pe,Ge,"⪈","\\gneq",!0),Be(De,Pe,Ge,"≩","\\gneqq",!0),Be(De,Pe,Ge,"","\\@gvertneqq"),Be(De,Pe,Ge,"⋧","\\gnsim",!0),Be(De,Pe,Ge,"⪊","\\gnapprox",!0),Be(De,Pe,Ge,"⊁","\\nsucc",!0),Be(De,Pe,Ge,"⋡","\\nsucceq",!0),Be(De,Pe,Ge,"⋩","\\succnsim",!0),Be(De,Pe,Ge,"⪺","\\succnapprox",!0),Be(De,Pe,Ge,"≆","\\ncong",!0),Be(De,Pe,Ge,"","\\@nshortparallel"),Be(De,Pe,Ge,"∦","\\nparallel",!0),Be(De,Pe,Ge,"⊯","\\nVDash",!0),Be(De,Pe,Ge,"⋫","\\ntriangleright"),Be(De,Pe,Ge,"⋭","\\ntrianglerighteq",!0),Be(De,Pe,Ge,"","\\@nsupseteqq"),Be(De,Pe,Ge,"⊋","\\supsetneq",!0),Be(De,Pe,Ge,"","\\@varsupsetneq"),Be(De,Pe,Ge,"⫌","\\supsetneqq",!0),Be(De,Pe,Ge,"","\\@varsupsetneqq"),Be(De,Pe,Ge,"⊮","\\nVdash",!0),Be(De,Pe,Ge,"⪵","\\precneqq",!0),Be(De,Pe,Ge,"⪶","\\succneqq",!0),Be(De,Pe,Ge,"","\\@nsubseteqq"),Be(De,Pe,We,"⊴","\\unlhd"),Be(De,Pe,We,"⊵","\\unrhd"),Be(De,Pe,Ge,"↚","\\nleftarrow",!0),Be(De,Pe,Ge,"↛","\\nrightarrow",!0),Be(De,Pe,Ge,"⇍","\\nLeftarrow",!0),Be(De,Pe,Ge,"⇏","\\nRightarrow",!0),Be(De,Pe,Ge,"↮","\\nleftrightarrow",!0),Be(De,Pe,Ge,"⇎","\\nLeftrightarrow",!0),Be(De,Pe,Ge,"△","\\vartriangle"),Be(De,Pe,Ye,"ℏ","\\hslash"),Be(De,Pe,Ye,"▽","\\triangledown"),Be(De,Pe,Ye,"◊","\\lozenge"),Be(De,Pe,Ye,"Ⓢ","\\circledS"),Be(De,Pe,Ye,"®","\\circledR"),Be(Fe,Pe,Ye,"®","\\circledR"),Be(De,Pe,Ye,"∡","\\measuredangle",!0),Be(De,Pe,Ye,"∄","\\nexists"),Be(De,Pe,Ye,"℧","\\mho"),Be(De,Pe,Ye,"Ⅎ","\\Finv",!0),Be(De,Pe,Ye,"⅁","\\Game",!0),Be(De,Pe,Ye,"","\\backprime"),Be(De,Pe,Ye,"▲","\\blacktriangle"),Be(De,Pe,Ye,"▼","\\blacktriangledown"),Be(De,Pe,Ye,"■","\\blacksquare"),Be(De,Pe,Ye,"⧫","\\blacklozenge"),Be(De,Pe,Ye,"★","\\bigstar"),Be(De,Pe,Ye,"∢","\\sphericalangle",!0),Be(De,Pe,Ye,"∁","\\complement",!0),Be(De,Pe,Ye,"ð","\\eth",!0),Be(Fe,$e,Ye,"ð","ð"),Be(De,Pe,Ye,"","\\diagup"),Be(De,Pe,Ye,"╲","\\diagdown"),Be(De,Pe,Ye,"□","\\square"),Be(De,Pe,Ye,"□","\\Box"),Be(De,Pe,Ye,"◊","\\Diamond"),Be(De,Pe,Ye,"¥","\\yen",!0),Be(Fe,Pe,Ye,"¥","\\yen",!0),Be(De,Pe,Ye,"✓","\\checkmark",!0),Be(Fe,Pe,Ye,"✓","\\checkmark"),Be(De,Pe,Ye,"ℶ","\\beth",!0),Be(De,Pe,Ye,"ℸ","\\daleth",!0),Be(De,Pe,Ye,"ℷ","\\gimel",!0),Be(De,Pe,Ye,"ϝ","\\digamma",!0),Be(De,Pe,Ye,"ϰ","\\varkappa"),Be(De,Pe,He,"┌","\\@ulcorner",!0),Be(De,Pe,je,"┐","\\@urcorner",!0),Be(De,Pe,He,"└","\\@llcorner",!0),Be(De,Pe,je,"┘","\\@lrcorner",!0),Be(De,Pe,Ge,"≦","\\leqq",!0),Be(De,Pe,Ge,"⩽","\\leqslant",!0),Be(De,Pe,Ge,"⪕","\\eqslantless",!0),Be(De,Pe,Ge,"≲","\\lesssim",!0),Be(De,Pe,Ge,"⪅","\\lessapprox",!0),Be(De,Pe,Ge,"≊","\\approxeq",!0),Be(De,Pe,We,"⋖","\\lessdot"),Be(De,Pe,Ge,"⋘","\\lll",!0),Be(De,Pe,Ge,"≶","\\lessgtr",!0),Be(De,Pe,Ge,"⋚","\\lesseqgtr",!0),Be(De,Pe,Ge,"⪋","\\lesseqqgtr",!0),Be(De,Pe,Ge,"≑","\\doteqdot"),Be(De,Pe,Ge,"≓","\\risingdotseq",!0),Be(De,Pe,Ge,"≒","\\fallingdotseq",!0),Be(De,Pe,Ge,"∽","\\backsim",!0),Be(De,Pe,Ge,"⋍","\\backsimeq",!0),Be(De,Pe,Ge,"⫅","\\subseteqq",!0),Be(De,Pe,Ge,"⋐","\\Subset",!0),Be(De,Pe,Ge,"⊏","\\sqsubset",!0),Be(De,Pe,Ge,"≼","\\preccurlyeq",!0),Be(De,Pe,Ge,"⋞","\\curlyeqprec",!0),Be(De,Pe,Ge,"≾","\\precsim",!0),Be(De,Pe,Ge,"⪷","\\precapprox",!0),Be(De,Pe,Ge,"⊲","\\vartriangleleft"),Be(De,Pe,Ge,"⊴","\\trianglelefteq"),Be(De,Pe,Ge,"⊨","\\vDash",!0),Be(De,Pe,Ge,"⊪","\\Vvdash",!0),Be(De,Pe,Ge,"⌣","\\smallsmile"),Be(De,Pe,Ge,"⌢","\\smallfrown"),Be(De,Pe,Ge,"≏","\\bumpeq",!0),Be(De,Pe,Ge,"≎","\\Bumpeq",!0),Be(De,Pe,Ge,"≧","\\geqq",!0),Be(De,Pe,Ge,"⩾","\\geqslant",!0),Be(De,Pe,Ge,"⪖","\\eqslantgtr",!0),Be(De,Pe,Ge,"≳","\\gtrsim",!0),Be(De,Pe,Ge,"⪆","\\gtrapprox",!0),Be(De,Pe,We,"⋗","\\gtrdot"),Be(De,Pe,Ge,"⋙","\\ggg",!0),Be(De,Pe,Ge,"≷","\\gtrless",!0),Be(De,Pe,Ge,"⋛","\\gtreqless",!0),Be(De,Pe,Ge,"⪌","\\gtreqqless",!0),Be(De,Pe,Ge,"≖","\\eqcirc",!0),Be(De,Pe,Ge,"≗","\\circeq",!0),Be(De,Pe,Ge,"≜","\\triangleq",!0),Be(De,Pe,Ge,"","\\thicksim"),Be(De,Pe,Ge,"≈","\\thickapprox"),Be(De,Pe,Ge,"⫆","\\supseteqq",!0),Be(De,Pe,Ge,"⋑","\\Supset",!0),Be(De,Pe,Ge,"⊐","\\sqsupset",!0),Be(De,Pe,Ge,"≽","\\succcurlyeq",!0),Be(De,Pe,Ge,"⋟","\\curlyeqsucc",!0),Be(De,Pe,Ge,"≿","\\succsim",!0),Be(De,Pe,Ge,"⪸","\\succapprox",!0),Be(De,Pe,Ge,"⊳","\\vartriangleright"),Be(De,Pe,Ge,"⊵","\\trianglerighteq"),Be(De,Pe,Ge,"⊩","\\Vdash",!0),Be(De,Pe,Ge,"","\\shortmid"),Be(De,Pe,Ge,"∥","\\shortparallel"),Be(De,Pe,Ge,"≬","\\between",!0),Be(De,Pe,Ge,"⋔","\\pitchfork",!0),Be(De,Pe,Ge,"∝","\\varpropto"),Be(De,Pe,Ge,"◀","\\blacktriangleleft"),Be(De,Pe,Ge,"∴","\\therefore",!0),Be(De,Pe,Ge,"∍","\\backepsilon"),Be(De,Pe,Ge,"▶","\\blacktriangleright"),Be(De,Pe,Ge,"∵","\\because",!0),Be(De,Pe,Ge,"⋘","\\llless"),Be(De,Pe,Ge,"⋙","\\gggtr"),Be(De,Pe,We,"⊲","\\lhd"),Be(De,Pe,We,"⊳","\\rhd"),Be(De,Pe,Ge,"≂","\\eqsim",!0),Be(De,$e,Ge,"⋈","\\Join"),Be(De,Pe,Ge,"≑","\\Doteq",!0),Be(De,Pe,We,"∔","\\dotplus",!0),Be(De,Pe,We,"","\\smallsetminus"),Be(De,Pe,We,"⋒","\\Cap",!0),Be(De,Pe,We,"⋓","\\Cup",!0),Be(De,Pe,We,"⩞","\\doublebarwedge",!0),Be(De,Pe,We,"⊟","\\boxminus",!0),Be(De,Pe,We,"⊞","\\boxplus",!0),Be(De,Pe,We,"⋇","\\divideontimes",!0),Be(De,Pe,We,"⋉","\\ltimes",!0),Be(De,Pe,We,"⋊","\\rtimes",!0),Be(De,Pe,We,"⋋","\\leftthreetimes",!0),Be(De,Pe,We,"⋌","\\rightthreetimes",!0),Be(De,Pe,We,"⋏","\\curlywedge",!0),Be(De,Pe,We,"⋎","\\curlyvee",!0),Be(De,Pe,We,"⊝","\\circleddash",!0),Be(De,Pe,We,"⊛","\\circledast",!0),Be(De,Pe,We,"⋅","\\centerdot"),Be(De,Pe,We,"⊺","\\intercal",!0),Be(De,Pe,We,"⋒","\\doublecap"),Be(De,Pe,We,"⋓","\\doublecup"),Be(De,Pe,We,"⊠","\\boxtimes",!0),Be(De,Pe,Ge,"⇢","\\dashrightarrow",!0),Be(De,Pe,Ge,"⇠","\\dashleftarrow",!0),Be(De,Pe,Ge,"⇇","\\leftleftarrows",!0),Be(De,Pe,Ge,"⇆","\\leftrightarrows",!0),Be(De,Pe,Ge,"⇚","\\Lleftarrow",!0),Be(De,Pe,Ge,"↞","\\twoheadleftarrow",!0),Be(De,Pe,Ge,"↢","\\leftarrowtail",!0),Be(De,Pe,Ge,"↫","\\looparrowleft",!0),Be(De,Pe,Ge,"⇋","\\leftrightharpoons",!0),Be(De,Pe,Ge,"↶","\\curvearrowleft",!0),Be(De,Pe,Ge,"↺","\\circlearrowleft",!0),Be(De,Pe,Ge,"↰","\\Lsh",!0),Be(De,Pe,Ge,"⇈","\\upuparrows",!0),Be(De,Pe,Ge,"↿","\\upharpoonleft",!0),Be(De,Pe,Ge,"⇃","\\downharpoonleft",!0),Be(De,$e,Ge,"⊶","\\origof",!0),Be(De,$e,Ge,"⊷","\\imageof",!0),Be(De,Pe,Ge,"⊸","\\multimap",!0),Be(De,Pe,Ge,"↭","\\leftrightsquigarrow",!0),Be(De,Pe,Ge,"⇉","\\rightrightarrows",!0),Be(De,Pe,Ge,"⇄","\\rightleftarrows",!0),Be(De,Pe,Ge,"↠","\\twoheadrightarrow",!0),Be(De,Pe,Ge,"↣","\\rightarrowtail",!0),Be(De,Pe,Ge,"↬","\\looparrowright",!0),Be(De,Pe,Ge,"↷","\\curvearrowright",!0),Be(De,Pe,Ge,"↻","\\circlearrowright",!0),Be(De,Pe,Ge,"↱","\\Rsh",!0),Be(De,Pe,Ge,"⇊","\\downdownarrows",!0),Be(De,Pe,Ge,"↾","\\upharpoonright",!0),Be(De,Pe,Ge,"⇂","\\downharpoonright",!0),Be(De,Pe,Ge,"⇝","\\rightsquigarrow",!0),Be(De,Pe,Ge,"⇝","\\leadsto"),Be(De,Pe,Ge,"⇛","\\Rrightarrow",!0),Be(De,Pe,Ge,"↾","\\restriction"),Be(De,$e,Ye,"","`"),Be(De,$e,Ye,"$","\\$"),Be(Fe,$e,Ye,"$","\\$"),Be(Fe,$e,Ye,"$","\\textdollar"),Be(De,$e,Ye,"%","\\%"),Be(Fe,$e,Ye,"%","\\%"),Be(De,$e,Ye,"_","\\_"),Be(Fe,$e,Ye,"_","\\_"),Be(Fe,$e,Ye,"_","\\textunderscore"),Be(De,$e,Ye,"∠","\\angle",!0),Be(De,$e,Ye,"∞","\\infty",!0),Be(De,$e,Ye,"","\\prime"),Be(De,$e,Ye,"△","\\triangle"),Be(De,$e,Ye,"Γ","\\Gamma",!0),Be(De,$e,Ye,"Δ","\\Delta",!0),Be(De,$e,Ye,"Θ","\\Theta",!0),Be(De,$e,Ye,"Λ","\\Lambda",!0),Be(De,$e,Ye,"Ξ","\\Xi",!0),Be(De,$e,Ye,"Π","\\Pi",!0),Be(De,$e,Ye,"Σ","\\Sigma",!0),Be(De,$e,Ye,"Υ","\\Upsilon",!0),Be(De,$e,Ye,"Φ","\\Phi",!0),Be(De,$e,Ye,"Ψ","\\Psi",!0),Be(De,$e,Ye,"Ω","\\Omega",!0),Be(De,$e,Ye,"A","Α"),Be(De,$e,Ye,"B","Β"),Be(De,$e,Ye,"E","Ε"),Be(De,$e,Ye,"Z","Ζ"),Be(De,$e,Ye,"H","Η"),Be(De,$e,Ye,"I","Ι"),Be(De,$e,Ye,"K","Κ"),Be(De,$e,Ye,"M","Μ"),Be(De,$e,Ye,"N","Ν"),Be(De,$e,Ye,"O","Ο"),Be(De,$e,Ye,"P","Ρ"),Be(De,$e,Ye,"T","Τ"),Be(De,$e,Ye,"X","Χ"),Be(De,$e,Ye,"¬","\\neg",!0),Be(De,$e,Ye,"¬","\\lnot"),Be(De,$e,Ye,"","\\top"),Be(De,$e,Ye,"⊥","\\bot"),Be(De,$e,Ye,"∅","\\emptyset"),Be(De,Pe,Ye,"∅","\\varnothing"),Be(De,$e,Ue,"α","\\alpha",!0),Be(De,$e,Ue,"β","\\beta",!0),Be(De,$e,Ue,"γ","\\gamma",!0),Be(De,$e,Ue,"δ","\\delta",!0),Be(De,$e,Ue,"ϵ","\\epsilon",!0),Be(De,$e,Ue,"ζ","\\zeta",!0),Be(De,$e,Ue,"η","\\eta",!0),Be(De,$e,Ue,"θ","\\theta",!0),Be(De,$e,Ue,"ι","\\iota",!0),Be(De,$e,Ue,"κ","\\kappa",!0),Be(De,$e,Ue,"λ","\\lambda",!0),Be(De,$e,Ue,"μ","\\mu",!0),Be(De,$e,Ue,"ν","\\nu",!0),Be(De,$e,Ue,"ξ","\\xi",!0),Be(De,$e,Ue,"ο","\\omicron",!0),Be(De,$e,Ue,"π","\\pi",!0),Be(De,$e,Ue,"ρ","\\rho",!0),Be(De,$e,Ue,"σ","\\sigma",!0),Be(De,$e,Ue,"τ","\\tau",!0),Be(De,$e,Ue,"υ","\\upsilon",!0),Be(De,$e,Ue,"ϕ","\\phi",!0),Be(De,$e,Ue,"χ","\\chi",!0),Be(De,$e,Ue,"ψ","\\psi",!0),Be(De,$e,Ue,"ω","\\omega",!0),Be(De,$e,Ue,"ε","\\varepsilon",!0),Be(De,$e,Ue,"ϑ","\\vartheta",!0),Be(De,$e,Ue,"ϖ","\\varpi",!0),Be(De,$e,Ue,"ϱ","\\varrho",!0),Be(De,$e,Ue,"ς","\\varsigma",!0),Be(De,$e,Ue,"φ","\\varphi",!0),Be(De,$e,We,"","*",!0),Be(De,$e,We,"+","+"),Be(De,$e,We,"","-",!0),Be(De,$e,We,"⋅","\\cdot",!0),Be(De,$e,We,"∘","\\circ",!0),Be(De,$e,We,"÷","\\div",!0),Be(De,$e,We,"±","\\pm",!0),Be(De,$e,We,"×","\\times",!0),Be(De,$e,We,"∩","\\cap",!0),Be(De,$e,We,"","\\cup",!0),Be(De,$e,We,"","\\setminus",!0),Be(De,$e,We,"∧","\\land"),Be(De,$e,We,"","\\lor"),Be(De,$e,We,"∧","\\wedge",!0),Be(De,$e,We,"","\\vee",!0),Be(De,$e,Ye,"√","\\surd"),Be(De,$e,He,"⟨","\\langle",!0),Be(De,$e,He,"","\\lvert"),Be(De,$e,He,"∥","\\lVert"),Be(De,$e,je,"?","?"),Be(De,$e,je,"!","!"),Be(De,$e,je,"⟩","\\rangle",!0),Be(De,$e,je,"","\\rvert"),Be(De,$e,je,"∥","\\rVert"),Be(De,$e,Ge,"=","="),Be(De,$e,Ge,":",":"),Be(De,$e,Ge,"≈","\\approx",!0),Be(De,$e,Ge,"≅","\\cong",!0),Be(De,$e,Ge,"≥","\\ge"),Be(De,$e,Ge,"≥","\\geq",!0),Be(De,$e,Ge,"←","\\gets"),Be(De,$e,Ge,">","\\gt",!0),Be(De,$e,Ge,"∈","\\in",!0),Be(De,$e,Ge,"","\\@not"),Be(De,$e,Ge,"⊂","\\subset",!0),Be(De,$e,Ge,"⊃","\\supset",!0),Be(De,$e,Ge,"⊆","\\subseteq",!0),Be(De,$e,Ge,"⊇","\\supseteq",!0),Be(De,Pe,Ge,"⊈","\\nsubseteq",!0),Be(De,Pe,Ge,"⊉","\\nsupseteq",!0),Be(De,$e,Ge,"⊨","\\models"),Be(De,$e,Ge,"←","\\leftarrow",!0),Be(De,$e,Ge,"≤","\\le"),Be(De,$e,Ge,"≤","\\leq",!0),Be(De,$e,Ge,"<","\\lt",!0),Be(De,$e,Ge,"→","\\rightarrow",!0),Be(De,$e,Ge,"→","\\to"),Be(De,Pe,Ge,"≱","\\ngeq",!0),Be(De,Pe,Ge,"≰","\\nleq",!0),Be(De,$e,Xe," ","\\ "),Be(De,$e,Xe," ","\\space"),Be(De,$e,Xe," ","\\nobreakspace"),Be(Fe,$e,Xe," ","\\ "),Be(Fe,$e,Xe," "," "),Be(Fe,$e,Xe," ","\\space"),Be(Fe,$e,Xe," ","\\nobreakspace"),Be(De,$e,Xe,null,"\\nobreak"),Be(De,$e,Xe,null,"\\allowbreak"),Be(De,$e,qe,",",","),Be(De,$e,qe,";",";"),Be(De,Pe,We,"⊼","\\barwedge",!0),Be(De,Pe,We,"⊻","\\veebar",!0),Be(De,$e,We,"⊙","\\odot",!0),Be(De,$e,We,"⊕","\\oplus",!0),Be(De,$e,We,"⊗","\\otimes",!0),Be(De,$e,Ye,"∂","\\partial",!0),Be(De,$e,We,"⊘","\\oslash",!0),Be(De,Pe,We,"⊚","\\circledcirc",!0),Be(De,Pe,We,"⊡","\\boxdot",!0),Be(De,$e,We,"△","\\bigtriangleup"),Be(De,$e,We,"▽","\\bigtriangledown"),Be(De,$e,We,"†","\\dagger"),Be(De,$e,We,"⋄","\\diamond"),Be(De,$e,We,"⋆","\\star"),Be(De,$e,We,"◃","\\triangleleft"),Be(De,$e,We,"▹","\\triangleright"),Be(De,$e,He,"{","\\{"),Be(Fe,$e,Ye,"{","\\{"),Be(Fe,$e,Ye,"{","\\textbraceleft"),Be(De,$e,je,"}","\\}"),Be(Fe,$e,Ye,"}","\\}"),Be(Fe,$e,Ye,"}","\\textbraceright"),Be(De,$e,He,"{","\\lbrace"),Be(De,$e,je,"}","\\rbrace"),Be(De,$e,He,"[","\\lbrack",!0),Be(Fe,$e,Ye,"[","\\lbrack",!0),Be(De,$e,je,"]","\\rbrack",!0),Be(Fe,$e,Ye,"]","\\rbrack",!0),Be(De,$e,He,"(","\\lparen",!0),Be(De,$e,je,")","\\rparen",!0),Be(Fe,$e,Ye,"<","\\textless",!0),Be(Fe,$e,Ye,">","\\textgreater",!0),Be(De,$e,He,"⌊","\\lfloor",!0),Be(De,$e,je,"⌋","\\rfloor",!0),Be(De,$e,He,"⌈","\\lceil",!0),Be(De,$e,je,"⌉","\\rceil",!0),Be(De,$e,Ye,"\\","\\backslash"),Be(De,$e,Ye,"","|"),Be(De,$e,Ye,"","\\vert"),Be(Fe,$e,Ye,"|","\\textbar",!0),Be(De,$e,Ye,"∥","\\|"),Be(De,$e,Ye,"∥","\\Vert"),Be(Fe,$e,Ye,"∥","\\textbardbl"),Be(Fe,$e,Ye,"~","\\textasciitilde"),Be(Fe,$e,Ye,"\\","\\textbackslash"),Be(Fe,$e,Ye,"^","\\textasciicircum"),Be(De,$e,Ge,"↑","\\uparrow",!0),Be(De,$e,Ge,"⇑","\\Uparrow",!0),Be(De,$e,Ge,"↓","\\downarrow",!0),Be(De,$e,Ge,"⇓","\\Downarrow",!0),Be(De,$e,Ge,"↕","\\updownarrow",!0),Be(De,$e,Ge,"⇕","\\Updownarrow",!0),Be(De,$e,Ke,"∐","\\coprod"),Be(De,$e,Ke,"","\\bigvee"),Be(De,$e,Ke,"⋀","\\bigwedge"),Be(De,$e,Ke,"⨄","\\biguplus"),Be(De,$e,Ke,"⋂","\\bigcap"),Be(De,$e,Ke,"","\\bigcup"),Be(De,$e,Ke,"∫","\\int"),Be(De,$e,Ke,"∫","\\intop"),Be(De,$e,Ke,"∬","\\iint"),Be(De,$e,Ke,"∭","\\iiint"),Be(De,$e,Ke,"∏","\\prod"),Be(De,$e,Ke,"∑","\\sum"),Be(De,$e,Ke,"⨂","\\bigotimes"),Be(De,$e,Ke,"⨁","\\bigoplus"),Be(De,$e,Ke,"⨀","\\bigodot"),Be(De,$e,Ke,"∮","\\oint"),Be(De,$e,Ke,"∯","\\oiint"),Be(De,$e,Ke,"∰","\\oiiint"),Be(De,$e,Ke,"⨆","\\bigsqcup"),Be(De,$e,Ke,"∫","\\smallint"),Be(Fe,$e,Ve,"…","\\textellipsis"),Be(De,$e,Ve,"…","\\mathellipsis"),Be(Fe,$e,Ve,"…","\\ldots",!0),Be(De,$e,Ve,"…","\\ldots",!0),Be(De,$e,Ve,"⋯","\\@cdots",!0),Be(De,$e,Ve,"⋱","\\ddots",!0),Be(De,$e,Ye,"⋮","\\varvdots"),Be(Fe,$e,Ye,"⋮","\\varvdots"),Be(De,$e,ze,"ˊ","\\acute"),Be(De,$e,ze,"ˋ","\\grave"),Be(De,$e,ze,"¨","\\ddot"),Be(De,$e,ze,"~","\\tilde"),Be(De,$e,ze,"ˉ","\\bar"),Be(De,$e,ze,"˘","\\breve"),Be(De,$e,ze,"ˇ","\\check"),Be(De,$e,ze,"^","\\hat"),Be(De,$e,ze,"⃗","\\vec"),Be(De,$e,ze,"˙","\\dot"),Be(De,$e,ze,"˚","\\mathring"),Be(De,$e,Ue,"","\\@imath"),Be(De,$e,Ue,"","\\@jmath"),Be(De,$e,Ye,"ı","ı"),Be(De,$e,Ye,"ȷ","ȷ"),Be(Fe,$e,Ye,"ı","\\i",!0),Be(Fe,$e,Ye,"ȷ","\\j",!0),Be(Fe,$e,Ye,"ß","\\ss",!0),Be(Fe,$e,Ye,"æ","\\ae",!0),Be(Fe,$e,Ye,"œ","\\oe",!0),Be(Fe,$e,Ye,"ø","\\o",!0),Be(Fe,$e,Ye,"Æ","\\AE",!0),Be(Fe,$e,Ye,"Œ","\\OE",!0),Be(Fe,$e,Ye,"Ø","\\O",!0),Be(Fe,$e,ze,"ˊ","\\'"),Be(Fe,$e,ze,"ˋ","\\`"),Be(Fe,$e,ze,"ˆ","\\^"),Be(Fe,$e,ze,"˜","\\~"),Be(Fe,$e,ze,"ˉ","\\="),Be(Fe,$e,ze,"˘","\\u"),Be(Fe,$e,ze,"˙","\\."),Be(Fe,$e,ze,"¸","\\c"),Be(Fe,$e,ze,"˚","\\r"),Be(Fe,$e,ze,"ˇ","\\v"),Be(Fe,$e,ze,"¨",'\\"'),Be(Fe,$e,ze,"˝","\\H"),Be(Fe,$e,ze,"◯","\\textcircled");var Qe={"--":!0,"---":!0,"``":!0,"''":!0};Be(Fe,$e,Ye,"","--",!0),Be(Fe,$e,Ye,"","\\textendash"),Be(Fe,$e,Ye,"—","---",!0),Be(Fe,$e,Ye,"—","\\textemdash"),Be(Fe,$e,Ye,"","`",!0),Be(Fe,$e,Ye,"","\\textquoteleft"),Be(Fe,$e,Ye,"","'",!0),Be(Fe,$e,Ye,"","\\textquoteright"),Be(Fe,$e,Ye,"“","``",!0),Be(Fe,$e,Ye,"“","\\textquotedblleft"),Be(Fe,$e,Ye,"”","''",!0),Be(Fe,$e,Ye,"”","\\textquotedblright"),Be(De,$e,Ye,"°","\\degree",!0),Be(Fe,$e,Ye,"°","\\degree"),Be(Fe,$e,Ye,"°","\\textdegree",!0),Be(De,$e,Ye,"£","\\pounds"),Be(De,$e,Ye,"£","\\mathsterling",!0),Be(Fe,$e,Ye,"£","\\pounds"),Be(Fe,$e,Ye,"£","\\textsterling",!0),Be(De,Pe,Ye,"✠","\\maltese"),Be(Fe,Pe,Ye,"✠","\\maltese");for(var Ze='0123456789/@."',Je=0;Je<Ze.length;Je++){var et=Ze.charAt(Je);Be(De,$e,Ye,et,et)}for(var tt='0123456789!@*()-=+";:?/.,',nt=0;nt<tt.length;nt++){var rt=tt.charAt(nt);Be(Fe,$e,Ye,rt,rt)}for(var at="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",it=0;it<at.length;it++){var ot=at.charAt(it);Be(De,$e,Ue,ot,ot),Be(Fe,$e,Ye,ot,ot)}Be(De,Pe,Ye,"C",""),Be(Fe,Pe,Ye,"C",""),Be(De,Pe,Ye,"H",""),Be(Fe,Pe,Ye,"H",""),Be(De,Pe,Ye,"N",""),Be(Fe,Pe,Ye,"N",""),Be(De,Pe,Ye,"P",""),Be(Fe,Pe,Ye,"P",""),Be(De,Pe,Ye,"Q",""),Be(Fe,Pe,Ye,"Q",""),Be(De,Pe,Ye,"R",""),Be(Fe,Pe,Ye,"R",""),Be(De,Pe,Ye,"Z",""),Be(Fe,Pe,Ye,"Z",""),Be(De,$e,Ue,"h",""),Be(Fe,$e,Ue,"h","");for(var st="",lt=0;lt<at.length;lt++){var ct=at.charAt(lt);st=String.fromCharCode(55349,56320+lt),Be(De,$e,Ue,ct,st),Be(Fe,$e,Ye,ct,st),st=String.fromCharCode(55349,56372+lt),Be(De,$e,Ue,ct,st),Be(Fe,$e,Ye,ct,st),st=String.fromCharCode(55349,56424+lt),Be(De,$e,Ue,ct,st),Be(Fe,$e,Ye,ct,st),st=String.fromCharCode(55349,56580+lt),Be(De,$e,Ue,ct,st),Be(Fe,$e,Ye,ct,st),st=String.fromCharCode(55349,56684+lt),Be(De,$e,Ue,ct,st),Be(Fe,$e,Ye,ct,st),st=String.fromCharCode(55349,56736+lt),Be(De,$e,Ue,ct,st),Be(Fe,$e,Ye,ct,st),st=String.fromCharCode(55349,56788+lt),Be(De,$e,Ue,ct,st),Be(Fe,$e,Ye,ct,st),st=String.fromCharCode(55349,56840+lt),Be(De,$e,Ue,ct,st),Be(Fe,$e,Ye,ct,st),st=String.fromCharCode(55349,56944+lt),Be(De,$e,Ue,ct,st),Be(Fe,$e,Ye,ct,st),lt<26&&(st=String.fromCharCode(55349,56632+lt),Be(De,$e,Ue,ct,st),Be(Fe,$e,Ye,ct,st),st=String.fromCharCode(55349,56476+lt),Be(De,$e,Ue,ct,st),Be(Fe,$e,Ye,ct,st))}st=String.fromCharCode(55349,56668),Be(De,$e,Ue,"k",st),Be(Fe,$e,Ye,"k",st);for(var ut=0;ut<10;ut++){var dt=ut.toString();st=String.fromCharCode(55349,57294+ut),Be(De,$e,Ue,dt,st),Be(Fe,$e,Ye,dt,st),st=String.fromCharCode(55349,57314+ut),Be(De,$e,Ue,dt,st),Be(Fe,$e,Ye,dt,st),st=String.fromCharCode(55349,57324+ut),Be(De,$e,Ue,dt,st),Be(Fe,$e,Ye,dt,st),st=String.fromCharCode(55349,57334+ut),Be(De,$e,Ue,dt,st),Be(Fe,$e,Ye,dt,st)}for(var ht="ÐÞþ",pt=0;pt<ht.length;pt++){var ft=ht.charAt(pt);Be(De,$e,Ue,ft,ft),Be(Fe,$e,Ye,ft,ft)}var mt=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],gt=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],vt=function(e,t){var n=e.charCodeAt(0),r=e.charCodeAt(1),a=1024*(n-55296)+(r-56320)+65536,o="math"===t?0:1;if(119808<=a&&a<120484){var s=Math.floor((a-119808)/26);return[mt[s][2],mt[s][o]]}if(120782<=a&&a<=120831){var l=Math.floor((a-120782)/10);return[gt[l][2],gt[l][o]]}if(120485===a||120486===a)return[mt[0][2],mt[0][o]];if(120486<a&&a<120782)return["",""];throw new i("Unsupported character: "+e)},yt=function(e,t,n){return Ne[n][e]&&Ne[n][e].replace&&(e=Ne[n][e].replace),{value:e,metrics:ie(e,t,n)}},bt=function(e,t,n,r,a){var i,o=yt(e,t,n),s=o.metrics;if(e=o.value,s){var l=s.italic;("text"===n||r&&"mathit"===r.font)&&(l=0),i=new Re(e,s.height,s.depth,l,s.skew,s.width,a)}else"undefined"!==typeof console&&console.warn("No character metrics for '"+e+"' in style '"+t+"' and mode '"+n+"'"),i=new Re(e,0,0,0,0,0,a);if(r){i.maxFontSize=r.sizeMultiplier,r.style.isTight()&&i.classes.push("mtight");var c=r.getColor();c&&(i.style.color=c)}return i},wt=function(e,t,n,r){return void 0===r&&(r=[]),"boldsymbol"===n.font&&yt(e,"Main-Bold",t).metrics?bt(e,"Main-Bold",t,n,r.concat(["mathbf"])):"\\"===e||"main"===Ne[t][e].font?bt(e,"Main-Regular",t,n,r):bt(e,"AMS-Regular",t,n,r.concat(["amsrm"]))},xt=function(e,t,n,r,a){return"textord"!==a&&yt(e,"Math-BoldItalic",t).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},kt=function(e,t,n){var r=e.mode,a=e.text,i=["mord"],o="math"===r||"text"===r&&t.font,s=o?t.font:t.fontFamily,l="",c="";if(55349===a.charCodeAt(0)&&([l,c]=vt(a,r)),l.length>0)return bt(a,l,r,t,i.concat(c));if(s){var u,d;if("boldsymbol"===s){var h=xt(a,r,t,i,n);u=h.fontName,d=[h.fontClass]}else o?(u=Dt[s].fontName,d=[s]):(u=Bt(s,t.fontWeight,t.fontShape),d=[s,t.fontWeight,t.fontShape]);if(yt(a,u,r).metrics)return bt(a,u,r,t,i.concat(d));if(Qe.hasOwnProperty(a)&&"Typewriter"===u.slice(0,10)){for(var p=[],f=0;f<a.length;f++)p.push(bt(a[f],u,r,t,i.concat(d)));return Mt(p)}}if("mathord"===n)return bt(a,"Math-Italic",r,t,i.concat(["mathnormal"]));if("textord"===n){var m=Ne[r][a]&&Ne[r][a].font;if("ams"===m){var g=Bt("amsrm",t.fontWeight,t.fontShape);return bt(a,g,r,t,i.concat("amsrm",t.fontWeight,t.fontShape))}if("main"!==m&&m){var v=Bt(m,t.fontWeight,t.fontShape);return bt(a,v,r,t,i.concat(v,t.fontWeight,t.fontShape))}var y=Bt("textrm",t.fontWeight,t.fontShape);return bt(a,y,r,t,i.concat(t.fontWeight,t.fontShape))}throw new Error("unexpected type: "+n+" in makeOrd")},_t=(e,t)=>{if(ve(e.classes)!==ve(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(1===e.classes.length){var n=e.classes[0];if("mbin"===n||"mord"===n)return!1}for(var r in e.style)if(e.style.hasOwnProperty(r)&&e.style[r]!==t.style[r])return!1;for(var a in t.style)if(t.style.hasOwnProperty(a)&&e.style[a]!==t.style[a])return!1;return!0},Ct=e=>{for(var t=0;t<e.length-1;t++){var n=e[t],r=e[t+1];n instanceof Re&&r instanceof Re&&_t(n,r)&&(n.text+=r.text,n.height=Math.max(n.height,r.height),n.depth=Math.max(n.depth,r.depth),n.italic=r.italic,e.splice(t+1,1),t--)}return e},Et=function(e){for(var t=0,n=0,r=0,a=0;a<e.children.length;a++){var i=e.children[a];i.height>t&&(t=i.height),i.depth>n&&(n=i.depth),i.maxFontSize>r&&(r=i.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=r},Rt=function(e,t,n,r){var a=new ke(e,t,n,r);return Et(a),a},St=(e,t,n,r)=>new ke(e,t,n,r),At=function(e,t,n){var r=Rt([e],[],t);return r.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),r.style.borderBottomWidth=ge(r.height),r.maxFontSize=1,r},Tt=function(e,t,n,r){var a=new _e(e,t,n,r);return Et(a),a},Mt=function(e){var t=new ee(e);return Et(t),t},Lt=function(e,t){return e instanceof ee?Rt([],[e],t):e},Ot=function(e){if("individualShift"===e.positionType){for(var t=e.children,n=[t[0]],r=-t[0].shift-t[0].elem.depth,a=r,i=1;i<t.length;i++){var o=-t[i].shift-a-t[i].elem.depth,s=o-(t[i-1].elem.height+t[i-1].elem.depth);a+=o,n.push({type:"kern",size:s}),n.push(t[i])}return{children:n,depth:r}}var l;if("top"===e.positionType){for(var c=e.positionData,u=0;u<e.children.length;u++){var d=e.children[u];c-="kern"===d.type?d.size:d.elem.height+d.elem.depth}l=c}else if("bottom"===e.positionType)l=-e.positionData;else{var h=e.children[0];if("elem"!==h.type)throw new Error('First child must have type "elem".');if("shift"===e.positionType)l=-h.elem.depth-e.positionData;else{if("firstBaseline"!==e.positionType)throw new Error("Invalid positionType "+e.positionType+".");l=-h.elem.depth}}return{children:e.children,depth:l}},It=function(e,t){for(var{children:n,depth:r}=Ot(e),a=0,i=0;i<n.length;i++){var o=n[i];if("elem"===o.type){var s=o.elem;a=Math.max(a,s.maxFontSize,s.height)}}a+=2;var l=Rt(["pstrut"],[]);l.style.height=ge(a);for(var c=[],u=r,d=r,h=r,p=0;p<n.length;p++){var f=n[p];if("kern"===f.type)h+=f.size;else{var m=f.elem,g=f.wrapperClasses||[],v=f.wrapperStyle||{},y=Rt(g,[l,m],void 0,v);y.style.top=ge(-a-h-m.depth),f.marginLeft&&(y.style.marginLeft=f.marginLeft),f.marginRight&&(y.style.marginRight=f.marginRight),c.push(y),h+=m.height+m.depth}u=Math.min(u,h),d=Math.max(d,h)}var b,w=Rt(["vlist"],c);if(w.style.height=ge(d),u<0){var x=Rt([],[]),k=Rt(["vlist"],[x]);k.style.height=ge(-u);var _=Rt(["vlist-s"],[new Re("")]);b=[Rt(["vlist-r"],[w,_]),Rt(["vlist-r"],[k])]}else b=[Rt(["vlist-r"],[w])];var C=Rt(["vlist-t"],b);return 2===b.length&&C.classes.push("vlist-t2"),C.height=d,C.depth=-u,C},Nt=(e,t)=>{var n=Rt(["mspace"],[],t),r=me(e,t);return n.style.marginRight=ge(r),n},Bt=function(e,t,n){var r,a="";switch(e){case"amsrm":a="AMS";break;case"textrm":a="Main";break;case"textsf":a="SansSerif";break;case"texttt":a="Typewriter";break;default:a=e}return r="textbf"===t&&"textit"===n?"BoldItalic":"textbf"===t?"Bold":"textit"===t?"Italic":"Regular",a+"-"+r},Dt={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},Ft={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},$t=function(e,t){var[n,r,a]=Ft[e],i=new Ae(n),o=new Se([i],{width:ge(r),height:ge(a),style:"width:"+ge(r),viewBox:"0 0 "+1e3*r+" "+1e3*a,preserveAspectRatio:"xMinYMin"}),s=St(["overlay"],[o],t);return s.height=a,s.style.height=ge(a),s.style.width=ge(r),s},Pt={fontMap:Dt,makeSymbol:bt,mathsym:wt,makeSpan:Rt,makeSvgSpan:St,makeLineSpan:At,makeAnchor:Tt,makeFragment:Mt,wrapFragment:Lt,makeVList:It,makeOrd:kt,makeGlue:Nt,staticSvg:$t,svgData:Ft,tryCombineChars:Ct},zt={number:3,unit:"mu"},Wt={number:4,unit:"mu"},jt={number:5,unit:"mu"},Vt={mord:{mop:zt,mbin:Wt,mrel:jt,minner:zt},mop:{mord:zt,mop:zt,mrel:jt,minner:zt},mbin:{mord:Wt,mop:Wt,mopen:Wt,minner:Wt},mrel:{mord:jt,mop:jt,mopen:jt,minner:jt},mopen:{},mclose:{mop:zt,mbin:Wt,mrel:jt,minner:zt},mpunct:{mord:zt,mop:zt,mrel:jt,mopen:zt,mclose:zt,mpunct:zt,minner:zt},minner:{mord:zt,mop:zt,mbin:Wt,mrel:jt,mopen:zt,mpunct:zt,minner:zt}},Ut={mord:{mop:zt},mop:{mord:zt,mop:zt},mbin:{},mrel:{},mopen:{},mclose:{mop:zt},mpunct:{},minner:{mop:zt}},Kt={},Ht={},qt={};function Gt(e){for(var{type:t,names:n,props:r,handler:a,htmlBuilder:i,mathmlBuilder:o}=e,s={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:void 0===r.allowedInMath||r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:a},l=0;l<n.length;++l)Kt[n[l]]=s;t&&(i&&(Ht[t]=i),o&&(qt[t]=o))}function Xt(e){var{type:t,htmlBuilder:n,mathmlBuilder:r}=e;Gt({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:n,mathmlBuilder:r})}var Yt=function(e){return"ordgroup"===e.type&&1===e.body.length?e.body[0]:e},Qt=function(e){return"ordgroup"===e.type?e.body:[e]},Zt=Pt.makeSpan,Jt=["leftmost","mbin","mopen","mrel","mop","mpunct"],en=["rightmost","mrel","mclose","mpunct"],tn={display:F.DISPLAY,text:F.TEXT,script:F.SCRIPT,scriptscript:F.SCRIPTSCRIPT},nn={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},rn=function(e,t,n,r){void 0===r&&(r=[null,null]);for(var a=[],i=0;i<e.length;i++){var o=un(e[i],t);if(o instanceof ee){var s=o.children;a.push(...s)}else a.push(o)}if(Pt.tryCombineChars(a),!n)return a;var l=t;if(1===e.length){var c=e[0];"sizing"===c.type?l=t.havingSize(c.size):"styling"===c.type&&(l=t.havingStyle(tn[c.style]))}var u=Zt([r[0]||"leftmost"],[],t),d=Zt([r[1]||"rightmost"],[],t),h="root"===n;return an(a,((e,t)=>{var n=t.classes[0],r=e.classes[0];"mbin"===n&&v.contains(en,r)?t.classes[0]="mord":"mbin"===r&&v.contains(Jt,n)&&(e.classes[0]="mord")}),{node:u},d,h),an(a,((e,t)=>{var n=ln(t),r=ln(e),a=n&&r?e.hasClass("mtight")?Ut[n][r]:Vt[n][r]:null;if(a)return Pt.makeGlue(a,l)}),{node:u},d,h),a},an=function e(t,n,r,a,i){a&&t.push(a);for(var o=0;o<t.length;o++){var s=t[o],l=on(s);if(l)e(l.children,n,r,null,i);else{var c=!s.hasClass("mspace");if(c){var u=n(s,r.node);u&&(r.insertAfter?r.insertAfter(u):(t.unshift(u),o++))}c?r.node=s:i&&s.hasClass("newline")&&(r.node=Zt(["leftmost"])),r.insertAfter=(e=>n=>{t.splice(e+1,0,n),o++})(o)}}a&&t.pop()},on=function(e){return e instanceof ee||e instanceof _e||e instanceof ke&&e.hasClass("enclosing")?e:null},sn=function e(t,n){var r=on(t);if(r){var a=r.children;if(a.length){if("right"===n)return e(a[a.length-1],"right");if("left"===n)return e(a[0],"left")}}return t},ln=function(e,t){return e?(t&&(e=sn(e,t)),nn[e.classes[0]]||null):null},cn=function(e,t){var n=["nulldelimiter"].concat(e.baseSizingClasses());return Zt(t.concat(n))},un=function(e,t,n){if(!e)return Zt();if(Ht[e.type]){var r=Ht[e.type](e,t);if(n&&t.size!==n.size){r=Zt(t.sizingClasses(n),[r],t);var a=t.sizeMultiplier/n.sizeMultiplier;r.height*=a,r.depth*=a}return r}throw new i("Got group of unknown type: '"+e.type+"'")};function dn(e,t){var n=Zt(["base"],e,t),r=Zt(["strut"]);return r.style.height=ge(n.height+n.depth),n.depth&&(r.style.verticalAlign=ge(-n.depth)),n.children.unshift(r),n}function hn(e,t){var n=null;1===e.length&&"tag"===e[0].type&&(n=e[0].tag,e=e[0].body);var r,a=rn(e,t,"root");2===a.length&&a[1].hasClass("tag")&&(r=a.pop());for(var i,o=[],s=[],l=0;l<a.length;l++)if(s.push(a[l]),a[l].hasClass("mbin")||a[l].hasClass("mrel")||a[l].hasClass("allowbreak")){var c=!1;while(l<a.length-1&&a[l+1].hasClass("mspace")&&!a[l+1].hasClass("newline"))l++,s.push(a[l]),a[l].hasClass("nobreak")&&(c=!0);c||(o.push(dn(s,t)),s=[])}else a[l].hasClass("newline")&&(s.pop(),s.length>0&&(o.push(dn(s,t)),s=[]),o.push(a[l]));s.length>0&&o.push(dn(s,t)),n?(i=dn(rn(n,t,!0)),i.classes=["tag"],o.push(i)):r&&o.push(r);var u=Zt(["katex-html"],o);if(u.setAttribute("aria-hidden","true"),i){var d=i.children[0];d.style.height=ge(u.height+u.depth),u.depth&&(d.style.verticalAlign=ge(-u.depth))}return u}function pn(e){return new ee(e)}class fn{constructor(e,t,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=n||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=ve(this.classes));for(var n=0;n<this.children.length;n++)if(this.children[n]instanceof mn&&this.children[n+1]instanceof mn){var r=this.children[n].toText()+this.children[++n].toText();while(this.children[n+1]instanceof mn)r+=this.children[++n].toText();e.appendChild(new mn(r).toNode())}else e.appendChild(this.children[n].toNode());return e}toMarkup(){var e="<"+this.type;for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="',e+=v.escape(this.attributes[t]),e+='"');this.classes.length>0&&(e+=' class ="'+v.escape(ve(this.classes))+'"'),e+=">";for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+="</"+this.type+">",e}toText(){return this.children.map((e=>e.toText())).join("")}}class mn{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return v.escape(this.toText())}toText(){return this.text}}class gn{constructor(e){this.width=void 0,this.character=void 0,this.width=e,this.character=e>=.05555&&e<=.05556?"":e>=.1666&&e<=.1667?"":e>=.2222&&e<=.2223?"":e>=.2777&&e<=.2778?"":e>=-.05556&&e<=-.05555?"":e>=-.1667&&e<=-.1666?"":e>=-.2223&&e<=-.2222?"":e>=-.2778&&e<=-.2777?"":null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",ge(this.width)),e}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+ge(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var vn={MathNode:fn,TextNode:mn,SpaceNode:gn,newDocumentFragment:pn},yn=function(e,t,n){return!Ne[t][e]||!Ne[t][e].replace||55349===e.charCodeAt(0)||Qe.hasOwnProperty(e)&&n&&(n.fontFamily&&"tt"===n.fontFamily.slice(4,6)||n.font&&"tt"===n.font.slice(4,6))||(e=Ne[t][e].replace),new vn.TextNode(e)},bn=function(e){return 1===e.length?e[0]:new vn.MathNode("mrow",e)},wn=function(e,t){if("texttt"===t.fontFamily)return"monospace";if("textsf"===t.fontFamily)return"textit"===t.fontShape&&"textbf"===t.fontWeight?"sans-serif-bold-italic":"textit"===t.fontShape?"sans-serif-italic":"textbf"===t.fontWeight?"bold-sans-serif":"sans-serif";if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"bold-italic";if("textit"===t.fontShape)return"italic";if("textbf"===t.fontWeight)return"bold";var n=t.font;if(!n||"mathnormal"===n)return null;var r=e.mode;if("mathit"===n)return"italic";if("boldsymbol"===n)return"textord"===e.type?"bold":"bold-italic";if("mathbf"===n)return"bold";if("mathbb"===n)return"double-struck";if("mathsfit"===n)return"sans-serif-italic";if("mathfrak"===n)return"fraktur";if("mathscr"===n||"mathcal"===n)return"script";if("mathsf"===n)return"sans-serif";if("mathtt"===n)return"monospace";var a=e.text;if(v.contains(["\\imath","\\jmath"],a))return null;Ne[r][a]&&Ne[r][a].replace&&(a=Ne[r][a].replace);var i=Pt.fontMap[n].fontName;return ie(a,i,r)?Pt.fontMap[n].variant:null};function xn(e){if(!e)return!1;if("mi"===e.type&&1===e.children.length){var t=e.children[0];return t instanceof mn&&"."===t.text}if("mo"===e.type&&1===e.children.length&&"true"===e.getAttribute("separator")&&"0em"===e.getAttribute("lspace")&&"0em"===e.getAttribute("rspace")){var n=e.children[0];return n instanceof mn&&","===n.text}return!1}var kn=function(e,t,n){if(1===e.length){var r=Cn(e[0],t);return n&&r instanceof fn&&"mo"===r.type&&(r.setAttribute("lspace","0em"),r.setAttribute("rspace","0em")),[r]}for(var a,i=[],o=0;o<e.length;o++){var s=Cn(e[o],t);if(s instanceof fn&&a instanceof fn){if("mtext"===s.type&&"mtext"===a.type&&s.getAttribute("mathvariant")===a.getAttribute("mathvariant")){a.children.push(...s.children);continue}if("mn"===s.type&&"mn"===a.type){a.children.push(...s.children);continue}if(xn(s)&&"mn"===a.type){a.children.push(...s.children);continue}if("mn"===s.type&&xn(a))s.children=[...a.children,...s.children],i.pop();else if(("msup"===s.type||"msub"===s.type)&&s.children.length>=1&&("mn"===a.type||xn(a))){var l=s.children[0];l instanceof fn&&"mn"===l.type&&(l.children=[...a.children,...l.children],i.pop())}else if("mi"===a.type&&1===a.children.length){var c=a.children[0];if(c instanceof mn&&"̸"===c.text&&("mo"===s.type||"mi"===s.type||"mn"===s.type)){var u=s.children[0];u instanceof mn&&u.text.length>0&&(u.text=u.text.slice(0,1)+"̸"+u.text.slice(1),i.pop())}}}i.push(s),a=s}return i},_n=function(e,t,n){return bn(kn(e,t,n))},Cn=function(e,t){if(!e)return new vn.MathNode("mrow");if(qt[e.type]){var n=qt[e.type](e,t);return n}throw new i("Got group of unknown type: '"+e.type+"'")};function En(e,t,n,r,a){var i,o=kn(e,n);i=1===o.length&&o[0]instanceof fn&&v.contains(["mrow","mtable"],o[0].type)?o[0]:new vn.MathNode("mrow",o);var s=new vn.MathNode("annotation",[new vn.TextNode(t)]);s.setAttribute("encoding","application/x-tex");var l=new vn.MathNode("semantics",[i,s]),c=new vn.MathNode("math",[l]);c.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&c.setAttribute("display","block");var u=a?"katex":"katex-mathml";return Pt.makeSpan([u],[c])}var Rn=function(e){return new de({style:e.displayMode?F.DISPLAY:F.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},Sn=function(e,t){if(t.displayMode){var n=["katex-display"];t.leqno&&n.push("leqno"),t.fleqn&&n.push("fleqn"),e=Pt.makeSpan(n,[e])}return e},An=function(e,t,n){var r,a=Rn(n);if("mathml"===n.output)return En(e,t,a,n.displayMode,!0);if("html"===n.output){var i=hn(e,a);r=Pt.makeSpan(["katex"],[i])}else{var o=En(e,t,a,n.displayMode,!1),s=hn(e,a);r=Pt.makeSpan(["katex"],[o,s])}return Sn(r,n)},Tn=function(e,t,n){var r=Rn(n),a=hn(e,r),i=Pt.makeSpan(["katex"],[a]);return Sn(i,n)},Mn={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},Ln=function(e){var t=new vn.MathNode("mo",[new vn.TextNode(Mn[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},On={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},In=function(e){return"ordgroup"===e.type?e.body.length:1},Nn=function(e,t){function n(){var n=4e5,r=e.label.slice(1);if(v.contains(["widehat","widecheck","widetilde","utilde"],r)){var a,i,o,s=e,l=In(s.base);if(l>5)"widehat"===r||"widecheck"===r?(a=420,n=2364,o=.42,i=r+"4"):(a=312,n=2340,o=.34,i="tilde4");else{var c=[1,1,2,2,3,3][l];"widehat"===r||"widecheck"===r?(n=[0,1062,2364,2364,2364][c],a=[0,239,300,360,420][c],o=[0,.24,.3,.3,.36,.42][c],i=r+c):(n=[0,600,1033,2339,2340][c],a=[0,260,286,306,312][c],o=[0,.26,.286,.3,.306,.34][c],i="tilde"+c)}var u=new Ae(i),d=new Se([u],{width:"100%",height:ge(o),viewBox:"0 0 "+n+" "+a,preserveAspectRatio:"none"});return{span:Pt.makeSvgSpan([],[d],t),minWidth:0,height:o}}var h,p,f=[],m=On[r],[g,y,b]=m,w=b/1e3,x=g.length;if(1===x){var k=m[3];h=["hide-tail"],p=[k]}else if(2===x)h=["halfarrow-left","halfarrow-right"],p=["xMinYMin","xMaxYMin"];else{if(3!==x)throw new Error("Correct katexImagesData or update code here to support\n "+x+" children.");h=["brace-left","brace-center","brace-right"],p=["xMinYMin","xMidYMin","xMaxYMin"]}for(var _=0;_<x;_++){var C=new Ae(g[_]),E=new Se([C],{width:"400em",height:ge(w),viewBox:"0 0 "+n+" "+b,preserveAspectRatio:p[_]+" slice"}),R=Pt.makeSvgSpan([h[_]],[E],t);if(1===x)return{span:R,minWidth:y,height:w};R.style.height=ge(w),f.push(R)}return{span:Pt.makeSpan(["stretchy"],f,t),minWidth:y,height:w}}var{span:r,minWidth:a,height:i}=n();return r.height=i,r.style.height=ge(i),a>0&&(r.style.minWidth=ge(a)),r},Bn=function(e,t,n,r,a){var i,o=e.height+e.depth+n+r;if(/fbox|color|angl/.test(t)){if(i=Pt.makeSpan(["stretchy",t],[],a),"fbox"===t){var s=a.color&&a.getColor();s&&(i.style.borderColor=s)}}else{var l=[];/^[bx]cancel$/.test(t)&&l.push(new Te({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&l.push(new Te({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var c=new Se(l,{width:"100%",height:ge(o)});i=Pt.makeSvgSpan([],[c],a)}return i.height=o,i.style.height=ge(o),i},Dn={encloseSpan:Bn,mathMLnode:Ln,svgSpan:Nn};function Fn(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function $n(e){var t=Pn(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function Pn(e){return e&&("atom"===e.type||Ie.hasOwnProperty(e.type))?e:null}var zn=(e,t)=>{var n,r,a;e&&"supsub"===e.type?(r=Fn(e.base,"accent"),n=r.base,e.base=n,a=Le(un(e,t)),e.base=r):(r=Fn(e,"accent"),n=r.base);var i=un(n,t.havingCrampedStyle()),o=r.isShifty&&v.isCharacterBox(n),s=0;if(o){var l=v.getBaseElem(n),c=un(l,t.havingCrampedStyle());s=Me(c).skew}var u,d="\\c"===r.label,h=d?i.height+i.depth:Math.min(i.height,t.fontMetrics().xHeight);if(r.isStretchy)u=Dn.svgSpan(r,t),u=Pt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"elem",elem:u,wrapperClasses:["svg-align"],wrapperStyle:s>0?{width:"calc(100% - "+ge(2*s)+")",marginLeft:ge(2*s)}:void 0}]},t);else{var p,f;"\\vec"===r.label?(p=Pt.staticSvg("vec",t),f=Pt.svgData.vec[1]):(p=Pt.makeOrd({mode:r.mode,text:r.label},t,"textord"),p=Me(p),p.italic=0,f=p.width,d&&(h+=p.depth)),u=Pt.makeSpan(["accent-body"],[p]);var m="\\textcircled"===r.label;m&&(u.classes.push("accent-full"),h=i.height);var g=s;m||(g-=f/2),u.style.left=ge(g),"\\textcircled"===r.label&&(u.style.top=".2em"),u=Pt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:-h},{type:"elem",elem:u}]},t)}var y=Pt.makeSpan(["mord","accent"],[u],t);return a?(a.children[0]=y,a.height=Math.max(y.height,a.height),a.classes[0]="mord",a):y},Wn=(e,t)=>{var n=e.isStretchy?Dn.mathMLnode(e.label):new vn.MathNode("mo",[yn(e.label,e.mode)]),r=new vn.MathNode("mover",[Cn(e.base,t),n]);return r.setAttribute("accent","true"),r},jn=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map((e=>"\\"+e)).join("|"));Gt({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var n=Yt(t[0]),r=!jn.test(e.funcName),a=!r||"\\widehat"===e.funcName||"\\widetilde"===e.funcName||"\\widecheck"===e.funcName;return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:a,base:n}},htmlBuilder:zn,mathmlBuilder:Wn}),Gt({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var n=t[0],r=e.parser.mode;return"math"===r&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:zn,mathmlBuilder:Wn}),Gt({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=t[0];return{type:"accentUnder",mode:n.mode,label:r,base:a}},htmlBuilder:(e,t)=>{var n=un(e.base,t),r=Dn.svgSpan(e,t),a="\\utilde"===e.label?.12:0,i=Pt.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:a},{type:"elem",elem:n}]},t);return Pt.makeSpan(["mord","accentunder"],[i],t)},mathmlBuilder:(e,t)=>{var n=Dn.mathMLnode(e.label),r=new vn.MathNode("munder",[Cn(e.base,t),n]);return r.setAttribute("accentunder","true"),r}});var Vn=e=>{var t=new vn.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};Gt({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r,funcName:a}=e;return{type:"xArrow",mode:r.mode,label:a,body:t[0],below:n[0]}},htmlBuilder(e,t){var n,r=t.style,a=t.havingStyle(r.sup()),i=Pt.wrapFragment(un(e.body,a,t),t),o="\\x"===e.label.slice(0,2)?"x":"cd";i.classes.push(o+"-arrow-pad"),e.below&&(a=t.havingStyle(r.sub()),n=Pt.wrapFragment(un(e.below,a,t),t),n.classes.push(o+"-arrow-pad"));var s,l=Dn.svgSpan(e,t),c=-t.fontMetrics().axisHeight+.5*l.height,u=-t.fontMetrics().axisHeight-.5*l.height-.111;if((i.depth>.25||"\\xleftequilibrium"===e.label)&&(u-=i.depth),n){var d=-t.fontMetrics().axisHeight+n.height+.5*l.height+.111;s=Pt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:u},{type:"elem",elem:l,shift:c},{type:"elem",elem:n,shift:d}]},t)}else s=Pt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:u},{type:"elem",elem:l,shift:c}]},t);return s.children[0].children[0].children[1].classes.push("svg-align"),Pt.makeSpan(["mrel","x-arrow"],[s],t)},mathmlBuilder(e,t){var n,r=Dn.mathMLnode(e.label);if(r.setAttribute("minsize","x"===e.label.charAt(0)?"1.75em":"3.0em"),e.body){var a=Vn(Cn(e.body,t));if(e.below){var i=Vn(Cn(e.below,t));n=new vn.MathNode("munderover",[r,i,a])}else n=new vn.MathNode("mover",[r,a])}else if(e.below){var o=Vn(Cn(e.below,t));n=new vn.MathNode("munder",[r,o])}else n=Vn(),n=new vn.MathNode("mover",[r,n]);return n}});var Un=Pt.makeSpan;function Kn(e,t){var n=rn(e.body,t,!0);return Un([e.mclass],n,t)}function Hn(e,t){var n,r=kn(e.body,t);return"minner"===e.mclass?n=new vn.MathNode("mpadded",r):"mord"===e.mclass?e.isCharacterBox?(n=r[0],n.type="mi"):n=new vn.MathNode("mi",r):(e.isCharacterBox?(n=r[0],n.type="mo"):n=new vn.MathNode("mo",r),"mbin"===e.mclass?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):"mpunct"===e.mclass?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):"mopen"===e.mclass||"mclose"===e.mclass?(n.attributes.lspace="0em",n.attributes.rspace="0em"):"minner"===e.mclass&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}Gt({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,a=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+r.slice(5),body:Qt(a),isCharacterBox:v.isCharacterBox(a)}},htmlBuilder:Kn,mathmlBuilder:Hn});var qn=e=>{var t="ordgroup"===e.type&&e.body.length?e.body[0]:e;return"atom"!==t.type||"bin"!==t.family&&"rel"!==t.family?"mord":"m"+t.family};Gt({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:qn(t[0]),body:Qt(t[1]),isCharacterBox:v.isCharacterBox(t[1])}}}),Gt({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var n,{parser:r,funcName:a}=e,i=t[1],o=t[0];n="\\stackrel"!==a?qn(i):"mrel";var s={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:"\\stackrel"!==a,body:Qt(i)},l={type:"supsub",mode:o.mode,base:s,sup:"\\underset"===a?null:o,sub:"\\underset"===a?o:null};return{type:"mclass",mode:r.mode,mclass:n,body:[l],isCharacterBox:v.isCharacterBox(l)}},htmlBuilder:Kn,mathmlBuilder:Hn}),Gt({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:qn(t[0]),body:Qt(t[0])}},htmlBuilder(e,t){var n=rn(e.body,t,!0),r=Pt.makeSpan([e.mclass],n,t);return r.style.textShadow="0.02em 0.01em 0.04px",r},mathmlBuilder(e,t){var n=kn(e.body,t),r=new vn.MathNode("mstyle",n);return r.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),r}});var Gn={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Xn=()=>({type:"styling",body:[],mode:"math",style:"display"}),Yn=e=>"textord"===e.type&&"@"===e.text,Qn=(e,t)=>("mathord"===e.type||"atom"===e.type)&&e.text===t;function Zn(e,t,n){var r=Gn[e];switch(r){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(r,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":var a=n.callFunction("\\\\cdleft",[t[0]],[]),i={type:"atom",text:r,mode:"math",family:"rel"},o=n.callFunction("\\Big",[i],[]),s=n.callFunction("\\\\cdright",[t[1]],[]),l={type:"ordgroup",mode:"math",body:[a,o,s]};return n.callFunction("\\\\cdparent",[l],[]);case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":var c={type:"textord",text:"\\Vert",mode:"math"};return n.callFunction("\\Big",[c],[]);default:return{type:"textord",text:" ",mode:"math"}}}function Jn(e){var t=[];e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();while(1){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if("&"!==n&&"\\\\"!==n){if("\\end"===n){0===t[t.length-1].length&&t.pop();break}throw new i("Expected \\\\ or \\cr or \\end",e.nextToken)}e.consume()}for(var r=[],a=[r],o=0;o<t.length;o++){for(var s=t[o],l=Xn(),c=0;c<s.length;c++)if(Yn(s[c])){r.push(l),c+=1;var u=$n(s[c]).text,d=new Array(2);if(d[0]={type:"ordgroup",mode:"math",body:[]},d[1]={type:"ordgroup",mode:"math",body:[]},"=|.".indexOf(u)>-1);else{if(!("<>AV".indexOf(u)>-1))throw new i('Expected one of "<>AV=|." after @',s[c]);for(var h=0;h<2;h++){for(var p=!0,f=c+1;f<s.length;f++){if(Qn(s[f],u)){p=!1,c=f;break}if(Yn(s[f]))throw new i("Missing a "+u+" character to complete a CD arrow.",s[f]);d[h].body.push(s[f])}if(p)throw new i("Missing a "+u+" character to complete a CD arrow.",s[c])}}var m=Zn(u,d,e),g={type:"styling",body:[m],mode:"math",style:"display"};r.push(g),l=Xn()}else l.body.push(s[c]);o%2===0?r.push(l):r.shift(),r=[],a.push(r)}e.gullet.endGroup(),e.gullet.endGroup();var v=new Array(a[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:a,arraystretch:1,addJot:!0,rowGaps:[null],cols:v,colSeparationType:"CD",hLinesBeforeRow:new Array(a.length+1).fill([])}}Gt({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"cdlabel",mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=Pt.wrapFragment(un(e.label,n,t),t);return r.classes.push("cd-label-"+e.side),r.style.bottom=ge(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new vn.MathNode("mrow",[Cn(e.label,t)]);return n=new vn.MathNode("mpadded",[n]),n.setAttribute("width","0"),"left"===e.side&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),n=new vn.MathNode("mstyle",[n]),n.setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}}),Gt({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:"cdlabelparent",mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=Pt.wrapFragment(un(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder(e,t){return new vn.MathNode("mrow",[Cn(e.fragment,t)])}}),Gt({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=Fn(t[0],"ordgroup"),a=r.body,o="",s=0;s<a.length;s++){var l=Fn(a[s],"textord");o+=l.text}var c,u=parseInt(o);if(isNaN(u))throw new i("\\@char has non-numeric argument "+o);if(u<0||u>=1114111)throw new i("\\@char with invalid code point "+o);return u<=65535?c=String.fromCharCode(u):(u-=65536,c=String.fromCharCode(55296+(u>>10),56320+(1023&u))),{type:"textord",mode:n.mode,text:c}}});var er=(e,t)=>{var n=rn(e.body,t.withColor(e.color),!1);return Pt.makeFragment(n)},tr=(e,t)=>{var n=kn(e.body,t.withColor(e.color)),r=new vn.MathNode("mstyle",n);return r.setAttribute("mathcolor",e.color),r};Gt({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:n}=e,r=Fn(t[0],"color-token").color,a=t[1];return{type:"color",mode:n.mode,color:r,body:Qt(a)}},htmlBuilder:er,mathmlBuilder:tr}),Gt({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,a=Fn(t[0],"color-token").color;n.gullet.macros.set("\\current@color",a);var i=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:a,body:i}},htmlBuilder:er,mathmlBuilder:tr}),Gt({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,a="["===r.gullet.future().text?r.parseSizeGroup(!0):null,i=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:r.mode,newLine:i,size:a&&Fn(a,"size").value}},htmlBuilder(e,t){var n=Pt.makeSpan(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=ge(me(e.size,t)))),n},mathmlBuilder(e,t){var n=new vn.MathNode("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",ge(me(e.size,t)))),n}});var nr={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},rr=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new i("Expected a control sequence",e);return t},ar=e=>{var t=e.gullet.popToken();return"="===t.text&&(t=e.gullet.popToken()," "===t.text&&(t=e.gullet.popToken())),t},ir=(e,t,n,r)=>{var a=e.gullet.macros.get(n.text);null==a&&(n.noexpand=!0,a={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,a,r)};Gt({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var r=t.fetch();if(nr[r.text])return"\\global"!==n&&"\\\\globallong"!==n||(r.text=nr[r.text]),Fn(t.parseFunction(),"internal");throw new i("Invalid token after macro prefix",r)}}),Gt({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=t.gullet.popToken(),a=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(a))throw new i("Expected a control sequence",r);var o,s=0,l=[[]];while("{"!==t.gullet.future().text)if(r=t.gullet.popToken(),"#"===r.text){if("{"===t.gullet.future().text){o=t.gullet.future(),l[s].push("{");break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new i('Invalid argument number "'+r.text+'"');if(parseInt(r.text)!==s+1)throw new i('Argument number "'+r.text+'" out of order');s++,l.push([])}else{if("EOF"===r.text)throw new i("Expected a macro definition");l[s].push(r.text)}var{tokens:c}=t.gullet.consumeArg();return o&&c.unshift(o),"\\edef"!==n&&"\\xdef"!==n||(c=t.gullet.expandTokens(c),c.reverse()),t.gullet.macros.set(a,{tokens:c,numArgs:s,delimiters:l},n===nr[n]),{type:"internal",mode:t.mode}}}),Gt({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=rr(t.gullet.popToken());t.gullet.consumeSpaces();var a=ar(t);return ir(t,r,a,"\\\\globallet"===n),{type:"internal",mode:t.mode}}}),Gt({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=rr(t.gullet.popToken()),a=t.gullet.popToken(),i=t.gullet.popToken();return ir(t,r,i,"\\\\globalfuture"===n),t.gullet.pushToken(i),t.gullet.pushToken(a),{type:"internal",mode:t.mode}}});var or=function(e,t,n){var r=Ne.math[e]&&Ne.math[e].replace,a=ie(r||e,t,n);if(!a)throw new Error("Unsupported symbol "+e+" and font size "+t+".");return a},sr=function(e,t,n,r){var a=n.havingBaseStyle(t),i=Pt.makeSpan(r.concat(a.sizingClasses(n)),[e],n),o=a.sizeMultiplier/n.sizeMultiplier;return i.height*=o,i.depth*=o,i.maxFontSize=a.sizeMultiplier,i},lr=function(e,t,n){var r=t.havingBaseStyle(n),a=(1-t.sizeMultiplier/r.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=ge(a),e.height-=a,e.depth+=a},cr=function(e,t,n,r,a,i){var o=Pt.makeSymbol(e,"Main-Regular",a,r),s=sr(o,t,r,i);return n&&lr(s,r,t),s},ur=function(e,t,n,r){return Pt.makeSymbol(e,"Size"+t+"-Regular",n,r)},dr=function(e,t,n,r,a,i){var o=ur(e,t,a,r),s=sr(Pt.makeSpan(["delimsizing","size"+t],[o],r),F.TEXT,r,i);return n&&lr(s,r,F.TEXT),s},hr=function(e,t,n){var r;r="Size1-Regular"===t?"delim-size1":"delim-size4";var a=Pt.makeSpan(["delimsizinginner",r],[Pt.makeSpan([],[Pt.makeSymbol(e,t,n)])]);return{type:"elem",elem:a}},pr=function(e,t,n){var r=te["Size4-Regular"][e.charCodeAt(0)]?te["Size4-Regular"][e.charCodeAt(0)][4]:te["Size1-Regular"][e.charCodeAt(0)][4],a=new Ae("inner",Q(e,Math.round(1e3*t))),i=new Se([a],{width:ge(r),height:ge(t),style:"width:"+ge(r),viewBox:"0 0 "+1e3*r+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"}),o=Pt.makeSvgSpan([],[i],n);return o.height=t,o.style.height=ge(t),o.style.width=ge(r),{type:"elem",elem:o}},fr=.008,mr={type:"kern",size:-1*fr},gr=["|","\\lvert","\\rvert","\\vert"],vr=["\\|","\\lVert","\\rVert","\\Vert"],yr=function(e,t,n,r,a,i){var o,s,l,c,u="",d=0;o=l=c=e,s=null;var h="Size1-Regular";"\\uparrow"===e?l=c="⏐":"\\Uparrow"===e?l=c="‖":"\\downarrow"===e?o=l="⏐":"\\Downarrow"===e?o=l="‖":"\\updownarrow"===e?(o="\\uparrow",l="⏐",c="\\downarrow"):"\\Updownarrow"===e?(o="\\Uparrow",l="‖",c="\\Downarrow"):v.contains(gr,e)?(l="",u="vert",d=333):v.contains(vr,e)?(l="∥",u="doublevert",d=556):"["===e||"\\lbrack"===e?(o="⎡",l="⎢",c="⎣",h="Size4-Regular",u="lbrack",d=667):"]"===e||"\\rbrack"===e?(o="⎤",l="⎥",c="⎦",h="Size4-Regular",u="rbrack",d=667):"\\lfloor"===e||"⌊"===e?(l=o="⎢",c="⎣",h="Size4-Regular",u="lfloor",d=667):"\\lceil"===e||"⌈"===e?(o="⎡",l=c="⎢",h="Size4-Regular",u="lceil",d=667):"\\rfloor"===e||"⌋"===e?(l=o="⎥",c="⎦",h="Size4-Regular",u="rfloor",d=667):"\\rceil"===e||"⌉"===e?(o="⎤",l=c="⎥",h="Size4-Regular",u="rceil",d=667):"("===e||"\\lparen"===e?(o="⎛",l="⎜",c="⎝",h="Size4-Regular",u="lparen",d=875):")"===e||"\\rparen"===e?(o="⎞",l="⎟",c="⎠",h="Size4-Regular",u="rparen",d=875):"\\{"===e||"\\lbrace"===e?(o="⎧",s="⎨",c="⎩",l="⎪",h="Size4-Regular"):"\\}"===e||"\\rbrace"===e?(o="⎫",s="⎬",c="⎭",l="⎪",h="Size4-Regular"):"\\lgroup"===e||"⟮"===e?(o="⎧",c="⎩",l="⎪",h="Size4-Regular"):"\\rgroup"===e||"⟯"===e?(o="⎫",c="⎭",l="⎪",h="Size4-Regular"):"\\lmoustache"===e||"⎰"===e?(o="⎧",c="⎭",l="⎪",h="Size4-Regular"):"\\rmoustache"!==e&&"⎱"!==e||(o="⎫",c="⎩",l="⎪",h="Size4-Regular");var p=or(o,h,a),f=p.height+p.depth,m=or(l,h,a),g=m.height+m.depth,y=or(c,h,a),b=y.height+y.depth,w=0,x=1;if(null!==s){var k=or(s,h,a);w=k.height+k.depth,x=2}var _=f+b+w,C=Math.max(0,Math.ceil((t-_)/(x*g))),E=_+C*x*g,R=r.fontMetrics().axisHeight;n&&(R*=r.sizeMultiplier);var S=E/2-R,A=[];if(u.length>0){var T=E-f-b,M=Math.round(1e3*E),L=J(u,Math.round(1e3*T)),O=new Ae(u,L),I=(d/1e3).toFixed(3)+"em",N=(M/1e3).toFixed(3)+"em",B=new Se([O],{width:I,height:N,viewBox:"0 0 "+d+" "+M}),D=Pt.makeSvgSpan([],[B],r);D.height=M/1e3,D.style.width=I,D.style.height=N,A.push({type:"elem",elem:D})}else{if(A.push(hr(c,h,a)),A.push(mr),null===s){var $=E-f-b+2*fr;A.push(pr(l,$,r))}else{var P=(E-f-b-w)/2+2*fr;A.push(pr(l,P,r)),A.push(mr),A.push(hr(s,h,a)),A.push(mr),A.push(pr(l,P,r))}A.push(mr),A.push(hr(o,h,a))}var z=r.havingBaseStyle(F.TEXT),W=Pt.makeVList({positionType:"bottom",positionData:S,children:A},z);return sr(Pt.makeSpan(["delimsizing","mult"],[W],z),F.TEXT,r,i)},br=80,wr=.08,xr=function(e,t,n,r,a){var i=Y(e,r,n),o=new Ae(e,i),s=new Se([o],{width:"400em",height:ge(t),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return Pt.makeSvgSpan(["hide-tail"],[s],a)},kr=function(e,t){var n,r,a=t.havingBaseSizing(),i=Or("\\surd",e*a.sizeMultiplier,Mr,a),o=a.sizeMultiplier,s=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),l=0,c=0,u=0;return"small"===i.type?(u=1e3+1e3*s+br,e<1?o=1:e<1.4&&(o=.7),l=(1+s+wr)/o,c=(1+s)/o,n=xr("sqrtMain",l,u,s,t),n.style.minWidth="0.853em",r=.833/o):"large"===i.type?(u=(1e3+br)*Rr[i.size],c=(Rr[i.size]+s)/o,l=(Rr[i.size]+s+wr)/o,n=xr("sqrtSize"+i.size,l,u,s,t),n.style.minWidth="1.02em",r=1/o):(l=e+s+wr,c=e+s,u=Math.floor(1e3*e+s)+br,n=xr("sqrtTall",l,u,s,t),n.style.minWidth="0.742em",r=1.056),n.height=c,n.style.height=ge(l),{span:n,advanceWidth:r,ruleWidth:(t.fontMetrics().sqrtRuleThickness+s)*o}},_r=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],Cr=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],Er=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Rr=[0,1.2,1.8,2.4,3],Sr=function(e,t,n,r,a){if("<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),v.contains(_r,e)||v.contains(Er,e))return dr(e,t,!1,n,r,a);if(v.contains(Cr,e))return yr(e,Rr[t],!1,n,r,a);throw new i("Illegal delimiter: '"+e+"'")},Ar=[{type:"small",style:F.SCRIPTSCRIPT},{type:"small",style:F.SCRIPT},{type:"small",style:F.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Tr=[{type:"small",style:F.SCRIPTSCRIPT},{type:"small",style:F.SCRIPT},{type:"small",style:F.TEXT},{type:"stack"}],Mr=[{type:"small",style:F.SCRIPTSCRIPT},{type:"small",style:F.SCRIPT},{type:"small",style:F.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Lr=function(e){if("small"===e.type)return"Main-Regular";if("large"===e.type)return"Size"+e.size+"-Regular";if("stack"===e.type)return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")},Or=function(e,t,n,r){for(var a=Math.min(2,3-r.style.size),i=a;i<n.length;i++){if("stack"===n[i].type)break;var o=or(e,Lr(n[i]),"math"),s=o.height+o.depth;if("small"===n[i].type){var l=r.havingBaseStyle(n[i].style);s*=l.sizeMultiplier}if(s>t)return n[i]}return n[n.length-1]},Ir=function(e,t,n,r,a,i){var o;"<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),o=v.contains(Er,e)?Ar:v.contains(_r,e)?Mr:Tr;var s=Or(e,t,o,r);return"small"===s.type?cr(e,s.style,n,r,a,i):"large"===s.type?dr(e,s.size,n,r,a,i):yr(e,t,n,r,a,i)},Nr=function(e,t,n,r,a,i){var o=r.fontMetrics().axisHeight*r.sizeMultiplier,s=901,l=5/r.fontMetrics().ptPerEm,c=Math.max(t-o,n+o),u=Math.max(c/500*s,2*c-l);return Ir(e,u,!0,r,a,i)},Br={sqrtImage:kr,sizedDelim:Sr,sizeToMaxHeight:Rr,customSizedDelim:Ir,leftRightDelim:Nr},Dr={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},Fr=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function $r(e,t){var n=Pn(e);if(n&&v.contains(Fr,n.text))return n;throw new i(n?"Invalid delimiter '"+n.text+"' after '"+t.funcName+"'":"Invalid delimiter type '"+e.type+"'",e)}function Pr(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Gt({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var n=$r(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:Dr[e.funcName].size,mclass:Dr[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>"."===e.delim?Pt.makeSpan([e.mclass]):Br.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];"."!==e.delim&&t.push(yn(e.delim,e.mode));var n=new vn.MathNode("mo",t);"mopen"===e.mclass||"mclose"===e.mclass?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var r=ge(Br.sizeToMaxHeight[e.size]);return n.setAttribute("minsize",r),n.setAttribute("maxsize",r),n}}),Gt({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get("\\current@color");if(n&&"string"!==typeof n)throw new i("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:$r(t[0],e).text,color:n}}}),Gt({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=$r(t[0],e),r=e.parser;++r.leftrightDepth;var a=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var i=Fn(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:a,left:n.text,right:i.delim,rightColor:i.color}},htmlBuilder:(e,t)=>{Pr(e);for(var n,r,a=rn(e.body,t,!0,["mopen","mclose"]),i=0,o=0,s=!1,l=0;l<a.length;l++)a[l].isMiddle?s=!0:(i=Math.max(a[l].height,i),o=Math.max(a[l].depth,o));if(i*=t.sizeMultiplier,o*=t.sizeMultiplier,n="."===e.left?cn(t,["mopen"]):Br.leftRightDelim(e.left,i,o,t,e.mode,["mopen"]),a.unshift(n),s)for(var c=1;c<a.length;c++){var u=a[c],d=u.isMiddle;d&&(a[c]=Br.leftRightDelim(d.delim,i,o,d.options,e.mode,[]))}if("."===e.right)r=cn(t,["mclose"]);else{var h=e.rightColor?t.withColor(e.rightColor):t;r=Br.leftRightDelim(e.right,i,o,h,e.mode,["mclose"])}return a.push(r),Pt.makeSpan(["minner"],a,t)},mathmlBuilder:(e,t)=>{Pr(e);var n=kn(e.body,t);if("."!==e.left){var r=new vn.MathNode("mo",[yn(e.left,e.mode)]);r.setAttribute("fence","true"),n.unshift(r)}if("."!==e.right){var a=new vn.MathNode("mo",[yn(e.right,e.mode)]);a.setAttribute("fence","true"),e.rightColor&&a.setAttribute("mathcolor",e.rightColor),n.push(a)}return bn(n)}}),Gt({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=$r(t[0],e);if(!e.parser.leftrightDepth)throw new i("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;if("."===e.delim)n=cn(t,[]);else{n=Br.sizedDelim(e.delim,1,t,e.mode,[]);var r={delim:e.delim,options:t};n.isMiddle=r}return n},mathmlBuilder:(e,t)=>{var n="\\vert"===e.delim||"|"===e.delim?yn("|","text"):yn(e.delim,e.mode),r=new vn.MathNode("mo",[n]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var zr=(e,t)=>{var n,r,a=Pt.wrapFragment(un(e.body,t),t),i=e.label.slice(1),o=t.sizeMultiplier,s=0,l=v.isCharacterBox(e.body);if("sout"===i)n=Pt.makeSpan(["stretchy","sout"]),n.height=t.fontMetrics().defaultRuleThickness/o,s=-.5*t.fontMetrics().xHeight;else if("phase"===i){var c=me({number:.6,unit:"pt"},t),u=me({number:.35,unit:"ex"},t),d=t.havingBaseSizing();o/=d.sizeMultiplier;var h=a.height+a.depth+c+u;a.style.paddingLeft=ge(h/2+c);var p=Math.floor(1e3*h*o),f=G(p),m=new Se([new Ae("phase",f)],{width:"400em",height:ge(p/1e3),viewBox:"0 0 400000 "+p,preserveAspectRatio:"xMinYMin slice"});n=Pt.makeSvgSpan(["hide-tail"],[m],t),n.style.height=ge(h),s=a.depth+c+u}else{/cancel/.test(i)?l||a.classes.push("cancel-pad"):"angl"===i?a.classes.push("anglpad"):a.classes.push("boxpad");var g=0,y=0,b=0;/box/.test(i)?(b=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),g=t.fontMetrics().fboxsep+("colorbox"===i?0:b),y=g):"angl"===i?(b=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),g=4*b,y=Math.max(0,.25-a.depth)):(g=l?.2:0,y=g),n=Dn.encloseSpan(a,i,g,y,t),/fbox|boxed|fcolorbox/.test(i)?(n.style.borderStyle="solid",n.style.borderWidth=ge(b)):"angl"===i&&.049!==b&&(n.style.borderTopWidth=ge(b),n.style.borderRightWidth=ge(b)),s=a.depth+y,e.backgroundColor&&(n.style.backgroundColor=e.backgroundColor,e.borderColor&&(n.style.borderColor=e.borderColor))}if(e.backgroundColor)r=Pt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:s},{type:"elem",elem:a,shift:0}]},t);else{var w=/cancel|phase/.test(i)?["svg-align"]:[];r=Pt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:0},{type:"elem",elem:n,shift:s,wrapperClasses:w}]},t)}return/cancel/.test(i)&&(r.height=a.height,r.depth=a.depth),/cancel/.test(i)&&!l?Pt.makeSpan(["mord","cancel-lap"],[r],t):Pt.makeSpan(["mord"],[r],t)},Wr=(e,t)=>{var n=0,r=new vn.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Cn(e.body,t)]);switch(e.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\phase":r.setAttribute("notation","phasorangle");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\angl":r.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*n+"pt"),r.setAttribute("height","+"+2*n+"pt"),r.setAttribute("lspace",n+"pt"),r.setAttribute("voffset",n+"pt"),"\\fcolorbox"===e.label){var a=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute("style","border: "+a+"em solid "+String(e.borderColor))}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};Gt({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,n){var{parser:r,funcName:a}=e,i=Fn(t[0],"color-token").color,o=t[1];return{type:"enclose",mode:r.mode,label:a,backgroundColor:i,body:o}},htmlBuilder:zr,mathmlBuilder:Wr}),Gt({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,n){var{parser:r,funcName:a}=e,i=Fn(t[0],"color-token").color,o=Fn(t[1],"color-token").color,s=t[2];return{type:"enclose",mode:r.mode,label:a,backgroundColor:o,borderColor:i,body:s}},htmlBuilder:zr,mathmlBuilder:Wr}),Gt({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\fbox",body:t[0]}}}),Gt({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,a=t[0];return{type:"enclose",mode:n.mode,label:r,body:a}},htmlBuilder:zr,mathmlBuilder:Wr}),Gt({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\angl",body:t[0]}}});var jr={};function Vr(e){for(var{type:t,names:n,props:r,handler:a,htmlBuilder:i,mathmlBuilder:o}=e,s={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:a},l=0;l<n.length;++l)jr[n[l]]=s;i&&(Ht[t]=i),o&&(qt[t]=o)}var Ur={};function Kr(e,t){Ur[e]=t}function Hr(e){var t=[];e.consumeSpaces();var n=e.fetch().text;"\\relax"===n&&(e.consume(),e.consumeSpaces(),n=e.fetch().text);while("\\hline"===n||"\\hdashline"===n)e.consume(),t.push("\\hdashline"===n),e.consumeSpaces(),n=e.fetch().text;return t}var qr=e=>{var t=e.parser.settings;if(!t.displayMode)throw new i("{"+e.envName+"} can be used only in display mode.")};function Gr(e){if(-1===e.indexOf("ed"))return-1===e.indexOf("*")}function Xr(e,t,n){var{hskipBeforeAndAfter:r,addJot:o,cols:s,arraystretch:l,colSeparationType:c,autoTag:u,singleRow:d,emptySingleRow:h,maxNumCols:p,leqno:f}=t;if(e.gullet.beginGroup(),d||e.gullet.macros.set("\\cr","\\\\\\relax"),!l){var m=e.gullet.expandMacroAsText("\\arraystretch");if(null==m)l=1;else if(l=parseFloat(m),!l||l<0)throw new i("Invalid \\arraystretch: "+m)}e.gullet.beginGroup();var g=[],v=[g],y=[],b=[],w=null!=u?[]:void 0;function x(){u&&e.gullet.macros.set("\\@eqnsw","1",!0)}function k(){w&&(e.gullet.macros.get("\\df@tag")?(w.push(e.subparse([new a("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):w.push(Boolean(u)&&"1"===e.gullet.macros.get("\\@eqnsw")))}x(),b.push(Hr(e));while(1){var _=e.parseExpression(!1,d?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),_={type:"ordgroup",mode:e.mode,body:_},n&&(_={type:"styling",mode:e.mode,style:n,body:[_]}),g.push(_);var C=e.fetch().text;if("&"===C){if(p&&g.length===p){if(d||c)throw new i("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else{if("\\end"===C){k(),1===g.length&&"styling"===_.type&&0===_.body[0].body.length&&(v.length>1||!h)&&v.pop(),b.length<v.length+1&&b.push([]);break}if("\\\\"!==C)throw new i("Expected & or \\\\ or \\cr or \\end",e.nextToken);e.consume();var E=void 0;" "!==e.gullet.future().text&&(E=e.parseSizeGroup(!0)),y.push(E?E.value:null),k(),b.push(Hr(e)),g=[],v.push(g),x()}}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:o,arraystretch:l,body:v,cols:s,rowGaps:y,hskipBeforeAndAfter:r,hLinesBeforeRow:b,colSeparationType:c,tags:w,leqno:f}}function Yr(e){return"d"===e.slice(0,1)?"display":"text"}var Qr=function(e,t){var n,r,a=e.body.length,o=e.hLinesBeforeRow,s=0,l=new Array(a),c=[],u=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),d=1/t.fontMetrics().ptPerEm,h=5*d;if(e.colSeparationType&&"small"===e.colSeparationType){var p=t.havingStyle(F.SCRIPT).sizeMultiplier;h=p/t.sizeMultiplier*.2778}var f="CD"===e.colSeparationType?me({number:3,unit:"ex"},t):12*d,m=3*d,g=e.arraystretch*f,y=.7*g,b=.3*g,w=0;function x(e){for(var t=0;t<e.length;++t)t>0&&(w+=.25),c.push({pos:w,isDashed:e[t]})}for(x(o[0]),n=0;n<e.body.length;++n){var k=e.body[n],_=y,C=b;s<k.length&&(s=k.length);var E=new Array(k.length);for(r=0;r<k.length;++r){var R=un(k[r],t);C<R.depth&&(C=R.depth),_<R.height&&(_=R.height),E[r]=R}var S=e.rowGaps[n],A=0;S&&(A=me(S,t),A>0&&(A+=b,C<A&&(C=A),A=0)),e.addJot&&(C+=m),E.height=_,E.depth=C,w+=_,E.pos=w,w+=C+A,l[n]=E,x(o[n+1])}var T,M,L=w/2+t.fontMetrics().axisHeight,O=e.cols||[],I=[],N=[];if(e.tags&&e.tags.some((e=>e)))for(n=0;n<a;++n){var B=l[n],D=B.pos-L,$=e.tags[n],P=void 0;P=!0===$?Pt.makeSpan(["eqn-num"],[],t):!1===$?Pt.makeSpan([],[],t):Pt.makeSpan([],rn($,t,!0),t),P.depth=B.depth,P.height=B.height,N.push({type:"elem",elem:P,shift:D})}for(r=0,M=0;r<s||M<O.length;++r,++M){var z=O[M]||{},W=!0;while("separator"===z.type){if(W||(T=Pt.makeSpan(["arraycolsep"],[]),T.style.width=ge(t.fontMetrics().doubleRuleSep),I.push(T)),"|"!==z.separator&&":"!==z.separator)throw new i("Invalid separator type: "+z.separator);var j="|"===z.separator?"solid":"dashed",V=Pt.makeSpan(["vertical-separator"],[],t);V.style.height=ge(w),V.style.borderRightWidth=ge(u),V.style.borderRightStyle=j,V.style.margin="0 "+ge(-u/2);var U=w-L;U&&(V.style.verticalAlign=ge(-U)),I.push(V),M++,z=O[M]||{},W=!1}if(!(r>=s)){var K=void 0;(r>0||e.hskipBeforeAndAfter)&&(K=v.deflt(z.pregap,h),0!==K&&(T=Pt.makeSpan(["arraycolsep"],[]),T.style.width=ge(K),I.push(T)));var H=[];for(n=0;n<a;++n){var q=l[n],G=q[r];if(G){var X=q.pos-L;G.depth=q.depth,G.height=q.height,H.push({type:"elem",elem:G,shift:X})}}H=Pt.makeVList({positionType:"individualShift",children:H},t),H=Pt.makeSpan(["col-align-"+(z.align||"c")],[H]),I.push(H),(r<s-1||e.hskipBeforeAndAfter)&&(K=v.deflt(z.postgap,h),0!==K&&(T=Pt.makeSpan(["arraycolsep"],[]),T.style.width=ge(K),I.push(T)))}}if(l=Pt.makeSpan(["mtable"],I),c.length>0){var Y=Pt.makeLineSpan("hline",t,u),Q=Pt.makeLineSpan("hdashline",t,u),Z=[{type:"elem",elem:l,shift:0}];while(c.length>0){var J=c.pop(),ee=J.pos-L;J.isDashed?Z.push({type:"elem",elem:Q,shift:ee}):Z.push({type:"elem",elem:Y,shift:ee})}l=Pt.makeVList({positionType:"individualShift",children:Z},t)}if(0===N.length)return Pt.makeSpan(["mord"],[l],t);var te=Pt.makeVList({positionType:"individualShift",children:N},t);return te=Pt.makeSpan(["tag"],[te],t),Pt.makeFragment([l,te])},Zr={c:"center ",l:"left ",r:"right "},Jr=function(e,t){for(var n=[],r=new vn.MathNode("mtd",[],["mtr-glue"]),a=new vn.MathNode("mtd",[],["mml-eqn-num"]),i=0;i<e.body.length;i++){for(var o=e.body[i],s=[],l=0;l<o.length;l++)s.push(new vn.MathNode("mtd",[Cn(o[l],t)]));e.tags&&e.tags[i]&&(s.unshift(r),s.push(r),e.leqno?s.unshift(a):s.push(a)),n.push(new vn.MathNode("mtr",s))}var c=new vn.MathNode("mtable",n),u=.5===e.arraystretch?.1:.16+e.arraystretch-1+(e.addJot?.09:0);c.setAttribute("rowspacing",ge(u));var d="",h="";if(e.cols&&e.cols.length>0){var p=e.cols,f="",m=!1,g=0,v=p.length;"separator"===p[0].type&&(d+="top ",g=1),"separator"===p[p.length-1].type&&(d+="bottom ",v-=1);for(var y=g;y<v;y++)"align"===p[y].type?(h+=Zr[p[y].align],m&&(f+="none "),m=!0):"separator"===p[y].type&&m&&(f+="|"===p[y].separator?"solid ":"dashed ",m=!1);c.setAttribute("columnalign",h.trim()),/[sd]/.test(f)&&c.setAttribute("columnlines",f.trim())}if("align"===e.colSeparationType){for(var b=e.cols||[],w="",x=1;x<b.length;x++)w+=x%2?"0em ":"1em ";c.setAttribute("columnspacing",w.trim())}else"alignat"===e.colSeparationType||"gather"===e.colSeparationType?c.setAttribute("columnspacing","0em"):"small"===e.colSeparationType?c.setAttribute("columnspacing","0.2778em"):"CD"===e.colSeparationType?c.setAttribute("columnspacing","0.5em"):c.setAttribute("columnspacing","1em");var k="",_=e.hLinesBeforeRow;d+=_[0].length>0?"left ":"",d+=_[_.length-1].length>0?"right ":"";for(var C=1;C<_.length-1;C++)k+=0===_[C].length?"none ":_[C][0]?"dashed ":"solid ";return/[sd]/.test(k)&&c.setAttribute("rowlines",k.trim()),""!==d&&(c=new vn.MathNode("menclose",[c]),c.setAttribute("notation",d.trim())),e.arraystretch&&e.arraystretch<1&&(c=new vn.MathNode("mstyle",[c]),c.setAttribute("scriptlevel","1")),c},ea=function(e,t){-1===e.envName.indexOf("ed")&&qr(e);var n,r=[],a=e.envName.indexOf("at")>-1?"alignat":"align",o="split"===e.envName,s=Xr(e.parser,{cols:r,addJot:!0,autoTag:o?void 0:Gr(e.envName),emptySingleRow:!0,colSeparationType:a,maxNumCols:o?2:void 0,leqno:e.parser.settings.leqno},"display"),l=0,c={type:"ordgroup",mode:e.mode,body:[]};if(t[0]&&"ordgroup"===t[0].type){for(var u="",d=0;d<t[0].body.length;d++){var h=Fn(t[0].body[d],"textord");u+=h.text}n=Number(u),l=2*n}var p=!l;s.body.forEach((function(e){for(var t=1;t<e.length;t+=2){var r=Fn(e[t],"styling"),a=Fn(r.body[0],"ordgroup");a.body.unshift(c)}if(p)l<e.length&&(l=e.length);else{var o=e.length/2;if(n<o)throw new i("Too many math in a row: expected "+n+", but got "+o,e[0])}}));for(var f=0;f<l;++f){var m="r",g=0;f%2===1?m="l":f>0&&p&&(g=1),r[f]={type:"align",align:m,pregap:g,postgap:0}}return s.colSeparationType=p?"align":"alignat",s};Vr({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var n=Pn(t[0]),r=n?[t[0]]:Fn(t[0],"ordgroup").body,a=r.map((function(e){var t=$n(e),n=t.text;if(-1!=="lcr".indexOf(n))return{type:"align",align:n};if("|"===n)return{type:"separator",separator:"|"};if(":"===n)return{type:"separator",separator:":"};throw new i("Unknown column alignment: "+n,e)})),o={cols:a,hskipBeforeAndAfter:!0,maxNumCols:a.length};return Xr(e.parser,o,Yr(e.envName))},htmlBuilder:Qr,mathmlBuilder:Jr}),Vr({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],n="c",r={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if("*"===e.envName.charAt(e.envName.length-1)){var a=e.parser;if(a.consumeSpaces(),"["===a.fetch().text){if(a.consume(),a.consumeSpaces(),n=a.fetch().text,-1==="lcr".indexOf(n))throw new i("Expected l or c or r",a.nextToken);a.consume(),a.consumeSpaces(),a.expect("]"),a.consume(),r.cols=[{type:"align",align:n}]}}var o=Xr(e.parser,r,Yr(e.envName)),s=Math.max(0,...o.body.map((e=>e.length)));return o.cols=new Array(s).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[o],left:t[0],right:t[1],rightColor:void 0}:o},htmlBuilder:Qr,mathmlBuilder:Jr}),Vr({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},n=Xr(e.parser,t,"script");return n.colSeparationType="small",n},htmlBuilder:Qr,mathmlBuilder:Jr}),Vr({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var n=Pn(t[0]),r=n?[t[0]]:Fn(t[0],"ordgroup").body,a=r.map((function(e){var t=$n(e),n=t.text;if(-1!=="lc".indexOf(n))return{type:"align",align:n};throw new i("Unknown column alignment: "+n,e)}));if(a.length>1)throw new i("{subarray} can contain only one column");var o={cols:a,hskipBeforeAndAfter:!1,arraystretch:.5};if(o=Xr(e.parser,o,"script"),o.body.length>0&&o.body[0].length>1)throw new i("{subarray} can contain only one column");return o},htmlBuilder:Qr,mathmlBuilder:Jr}),Vr({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},n=Xr(e.parser,t,Yr(e.envName));return{type:"leftright",mode:e.mode,body:[n],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:Qr,mathmlBuilder:Jr}),Vr({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:ea,htmlBuilder:Qr,mathmlBuilder:Jr}),Vr({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){v.contains(["gather","gather*"],e.envName)&&qr(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:Gr(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Xr(e.parser,t,"display")},htmlBuilder:Qr,mathmlBuilder:Jr}),Vr({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:ea,htmlBuilder:Qr,mathmlBuilder:Jr}),Vr({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){qr(e);var t={autoTag:Gr(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Xr(e.parser,t,"display")},htmlBuilder:Qr,mathmlBuilder:Jr}),Vr({type:"array",names:["CD"],props:{numArgs:0},handler(e){return qr(e),Jn(e.parser)},htmlBuilder:Qr,mathmlBuilder:Jr}),Kr("\\nonumber","\\gdef\\@eqnsw{0}"),Kr("\\notag","\\nonumber"),Gt({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new i(e.funcName+" valid only within array environment")}});var ta=jr;Gt({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:n,funcName:r}=e,a=t[0];if("ordgroup"!==a.type)throw new i("Invalid environment name",a);for(var o="",s=0;s<a.body.length;++s)o+=Fn(a.body[s],"textord").text;if("\\begin"===r){if(!ta.hasOwnProperty(o))throw new i("No such environment: "+o,a);var l=ta[o],{args:c,optArgs:u}=n.parseArguments("\\begin{"+o+"}",l),d={mode:n.mode,envName:o,parser:n},h=l.handler(d,c,u);n.expect("\\end",!1);var p=n.nextToken,f=Fn(n.parseFunction(),"environment");if(f.name!==o)throw new i("Mismatch: \\begin{"+o+"} matched by \\end{"+f.name+"}",p);return h}return{type:"environment",mode:n.mode,name:o,nameGroup:a}}});var na=(e,t)=>{var n=e.font,r=t.withFont(n);return un(e.body,r)},ra=(e,t)=>{var n=e.font,r=t.withFont(n);return Cn(e.body,r)},aa={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};Gt({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=Yt(t[0]),i=r;return i in aa&&(i=aa[i]),{type:"font",mode:n.mode,font:i.slice(1),body:a}},htmlBuilder:na,mathmlBuilder:ra}),Gt({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0],a=v.isCharacterBox(r);return{type:"mclass",mode:n.mode,mclass:qn(r),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:r}],isCharacterBox:a}}}),Gt({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:a}=e,{mode:i}=n,o=n.parseExpression(!0,a),s="math"+r.slice(1);return{type:"font",mode:i,font:s,body:{type:"ordgroup",mode:n.mode,body:o}}},htmlBuilder:na,mathmlBuilder:ra});var ia=(e,t)=>{var n=t;return"display"===e?n=n.id>=F.SCRIPT.id?n.text():F.DISPLAY:"text"===e&&n.size===F.DISPLAY.size?n=F.TEXT:"script"===e?n=F.SCRIPT:"scriptscript"===e&&(n=F.SCRIPTSCRIPT),n},oa=(e,t)=>{var n,r=ia(e.size,t.style),a=r.fracNum(),i=r.fracDen();n=t.havingStyle(a);var o=un(e.numer,n,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;o.height=o.height<s?s:o.height,o.depth=o.depth<l?l:o.depth}n=t.havingStyle(i);var c,u,d,h,p,f,m,g,v,y,b=un(e.denom,n,t);if(e.hasBarLine?(e.barSize?(u=me(e.barSize,t),c=Pt.makeLineSpan("frac-line",t,u)):c=Pt.makeLineSpan("frac-line",t),u=c.height,d=c.height):(c=null,u=0,d=t.fontMetrics().defaultRuleThickness),r.size===F.DISPLAY.size||"display"===e.size?(h=t.fontMetrics().num1,p=u>0?3*d:7*d,f=t.fontMetrics().denom1):(u>0?(h=t.fontMetrics().num2,p=d):(h=t.fontMetrics().num3,p=3*d),f=t.fontMetrics().denom2),c){var w=t.fontMetrics().axisHeight;h-o.depth-(w+.5*u)<p&&(h+=p-(h-o.depth-(w+.5*u))),w-.5*u-(b.height-f)<p&&(f+=p-(w-.5*u-(b.height-f)));var x=-(w-.5*u);m=Pt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:b,shift:f},{type:"elem",elem:c,shift:x},{type:"elem",elem:o,shift:-h}]},t)}else{var k=h-o.depth-(b.height-f);k<p&&(h+=.5*(p-k),f+=.5*(p-k)),m=Pt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:b,shift:f},{type:"elem",elem:o,shift:-h}]},t)}return n=t.havingStyle(r),m.height*=n.sizeMultiplier/t.sizeMultiplier,m.depth*=n.sizeMultiplier/t.sizeMultiplier,g=r.size===F.DISPLAY.size?t.fontMetrics().delim1:r.size===F.SCRIPTSCRIPT.size?t.havingStyle(F.SCRIPT).fontMetrics().delim2:t.fontMetrics().delim2,v=null==e.leftDelim?cn(t,["mopen"]):Br.customSizedDelim(e.leftDelim,g,!0,t.havingStyle(r),e.mode,["mopen"]),y=e.continued?Pt.makeSpan([]):null==e.rightDelim?cn(t,["mclose"]):Br.customSizedDelim(e.rightDelim,g,!0,t.havingStyle(r),e.mode,["mclose"]),Pt.makeSpan(["mord"].concat(n.sizingClasses(t)),[v,Pt.makeSpan(["mfrac"],[m]),y],t)},sa=(e,t)=>{var n=new vn.MathNode("mfrac",[Cn(e.numer,t),Cn(e.denom,t)]);if(e.hasBarLine){if(e.barSize){var r=me(e.barSize,t);n.setAttribute("linethickness",ge(r))}}else n.setAttribute("linethickness","0px");var a=ia(e.size,t.style);if(a.size!==t.style.size){n=new vn.MathNode("mstyle",[n]);var i=a.size===F.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",i),n.setAttribute("scriptlevel","0")}if(null!=e.leftDelim||null!=e.rightDelim){var o=[];if(null!=e.leftDelim){var s=new vn.MathNode("mo",[new vn.TextNode(e.leftDelim.replace("\\",""))]);s.setAttribute("fence","true"),o.push(s)}if(o.push(n),null!=e.rightDelim){var l=new vn.MathNode("mo",[new vn.TextNode(e.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),o.push(l)}return bn(o)}return n};Gt({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var n,{parser:r,funcName:a}=e,i=t[0],o=t[1],s=null,l=null,c="auto";switch(a){case"\\dfrac":case"\\frac":case"\\tfrac":n=!0;break;case"\\\\atopfrac":n=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":n=!1,s="(",l=")";break;case"\\\\bracefrac":n=!1,s="\\{",l="\\}";break;case"\\\\brackfrac":n=!1,s="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}switch(a){case"\\dfrac":case"\\dbinom":c="display";break;case"\\tfrac":case"\\tbinom":c="text";break}return{type:"genfrac",mode:r.mode,continued:!1,numer:i,denom:o,hasBarLine:n,leftDelim:s,rightDelim:l,size:c,barSize:null}},htmlBuilder:oa,mathmlBuilder:sa}),Gt({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=t[0],i=t[1];return{type:"genfrac",mode:n.mode,continued:!0,numer:a,denom:i,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}}),Gt({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var t,{parser:n,funcName:r,token:a}=e;switch(r){case"\\over":t="\\frac";break;case"\\choose":t="\\binom";break;case"\\atop":t="\\\\atopfrac";break;case"\\brace":t="\\\\bracefrac";break;case"\\brack":t="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:n.mode,replaceWith:t,token:a}}});var la=["display","text","script","scriptscript"],ca=function(e){var t=null;return e.length>0&&(t=e,t="."===t?null:t),t};Gt({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var n,{parser:r}=e,a=t[4],i=t[5],o=Yt(t[0]),s="atom"===o.type&&"open"===o.family?ca(o.text):null,l=Yt(t[1]),c="atom"===l.type&&"close"===l.family?ca(l.text):null,u=Fn(t[2],"size"),d=null;u.isBlank?n=!0:(d=u.value,n=d.number>0);var h="auto",p=t[3];if("ordgroup"===p.type){if(p.body.length>0){var f=Fn(p.body[0],"textord");h=la[Number(f.text)]}}else p=Fn(p,"textord"),h=la[Number(p.text)];return{type:"genfrac",mode:r.mode,numer:a,denom:i,continued:!1,hasBarLine:n,barSize:d,leftDelim:s,rightDelim:c,size:h}},htmlBuilder:oa,mathmlBuilder:sa}),Gt({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:n,funcName:r,token:a}=e;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:Fn(t[0],"size").value,token:a}}}),Gt({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=t[0],i=m(Fn(t[1],"infix").size),o=t[2],s=i.number>0;return{type:"genfrac",mode:n.mode,numer:a,denom:o,continued:!1,hasBarLine:s,barSize:i,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:oa,mathmlBuilder:sa});var ua=(e,t)=>{var n,r,a=t.style;"supsub"===e.type?(n=e.sup?un(e.sup,t.havingStyle(a.sup()),t):un(e.sub,t.havingStyle(a.sub()),t),r=Fn(e.base,"horizBrace")):r=Fn(e,"horizBrace");var i,o=un(r.base,t.havingBaseStyle(F.DISPLAY)),s=Dn.svgSpan(r,t);if(r.isOver?(i=Pt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:s}]},t),i.children[0].children[0].children[1].classes.push("svg-align")):(i=Pt.makeVList({positionType:"bottom",positionData:o.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:o}]},t),i.children[0].children[0].children[0].classes.push("svg-align")),n){var l=Pt.makeSpan(["mord",r.isOver?"mover":"munder"],[i],t);i=r.isOver?Pt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:n}]},t):Pt.makeVList({positionType:"bottom",positionData:l.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:l}]},t)}return Pt.makeSpan(["mord",r.isOver?"mover":"munder"],[i],t)},da=(e,t)=>{var n=Dn.mathMLnode(e.label);return new vn.MathNode(e.isOver?"mover":"munder",[Cn(e.base,t),n])};Gt({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"horizBrace",mode:n.mode,label:r,isOver:/^\\over/.test(r),base:t[0]}},htmlBuilder:ua,mathmlBuilder:da}),Gt({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],a=Fn(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:a})?{type:"href",mode:n.mode,href:a,body:Qt(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var n=rn(e.body,t,!1);return Pt.makeAnchor(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=_n(e.body,t);return n instanceof fn||(n=new fn("mrow",[n])),n.setAttribute("href",e.href),n}}),Gt({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=Fn(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var a=[],i=0;i<r.length;i++){var o=r[i];"~"===o&&(o="\\textasciitilde"),a.push({type:"textord",mode:"text",text:o})}var s={type:"text",mode:n.mode,font:"\\texttt",body:a};return{type:"href",mode:n.mode,href:r,body:Qt(s)}}}),Gt({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){var{parser:n}=e;return{type:"hbox",mode:n.mode,body:Qt(t[0])}},htmlBuilder(e,t){var n=rn(e.body,t,!1);return Pt.makeFragment(n)},mathmlBuilder(e,t){return new vn.MathNode("mrow",kn(e.body,t))}}),Gt({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var n,{parser:r,funcName:a,token:o}=e,s=Fn(t[0],"raw").string,l=t[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var c={};switch(a){case"\\htmlClass":c.class=s,n={command:"\\htmlClass",class:s};break;case"\\htmlId":c.id=s,n={command:"\\htmlId",id:s};break;case"\\htmlStyle":c.style=s,n={command:"\\htmlStyle",style:s};break;case"\\htmlData":for(var u=s.split(","),d=0;d<u.length;d++){var h=u[d].split("=");if(2!==h.length)throw new i("Error parsing key-value for \\htmlData");c["data-"+h[0].trim()]=h[1].trim()}n={command:"\\htmlData",attributes:c};break;default:throw new Error("Unrecognized html command")}return r.settings.isTrusted(n)?{type:"html",mode:r.mode,attributes:c,body:Qt(l)}:r.formatUnsupportedCmd(a)},htmlBuilder:(e,t)=>{var n=rn(e.body,t,!1),r=["enclosing"];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var a=Pt.makeSpan(r,n,t);for(var i in e.attributes)"class"!==i&&e.attributes.hasOwnProperty(i)&&a.setAttribute(i,e.attributes[i]);return a},mathmlBuilder:(e,t)=>_n(e.body,t)}),Gt({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"htmlmathml",mode:n.mode,html:Qt(t[0]),mathml:Qt(t[1])}},htmlBuilder:(e,t)=>{var n=rn(e.html,t,!1);return Pt.makeFragment(n)},mathmlBuilder:(e,t)=>_n(e.mathml,t)});var ha=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new i("Invalid size: '"+e+"' in \\includegraphics");var n={number:+(t[1]+t[2]),unit:t[3]};if(!fe(n))throw new i("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};Gt({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,a={number:0,unit:"em"},o={number:.9,unit:"em"},s={number:0,unit:"em"},l="";if(n[0])for(var c=Fn(n[0],"raw").string,u=c.split(","),d=0;d<u.length;d++){var h=u[d].split("=");if(2===h.length){var p=h[1].trim();switch(h[0].trim()){case"alt":l=p;break;case"width":a=ha(p);break;case"height":o=ha(p);break;case"totalheight":s=ha(p);break;default:throw new i("Invalid key: '"+h[0]+"' in \\includegraphics.")}}}var f=Fn(t[0],"url").url;return""===l&&(l=f,l=l.replace(/^.*[\\/]/,""),l=l.substring(0,l.lastIndexOf("."))),r.settings.isTrusted({command:"\\includegraphics",url:f})?{type:"includegraphics",mode:r.mode,alt:l,width:a,height:o,totalheight:s,src:f}:r.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var n=me(e.height,t),r=0;e.totalheight.number>0&&(r=me(e.totalheight,t)-n);var a=0;e.width.number>0&&(a=me(e.width,t));var i={height:ge(n+r)};a>0&&(i.width=ge(a)),r>0&&(i.verticalAlign=ge(-r));var o=new Ce(e.src,e.alt,i);return o.height=n,o.depth=r,o},mathmlBuilder:(e,t)=>{var n=new vn.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);var r=me(e.height,t),a=0;if(e.totalheight.number>0&&(a=me(e.totalheight,t)-r,n.setAttribute("valign",ge(-a))),n.setAttribute("height",ge(r+a)),e.width.number>0){var i=me(e.width,t);n.setAttribute("width",ge(i))}return n.setAttribute("src",e.src),n}}),Gt({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,a=Fn(t[0],"size");if(n.settings.strict){var i="m"===r[1],o="mu"===a.value.unit;i?(o||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, not "+a.value.unit+" units"),"math"!==n.mode&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):o&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:a.value}},htmlBuilder(e,t){return Pt.makeGlue(e.dimension,t)},mathmlBuilder(e,t){var n=me(e.dimension,t);return new vn.SpaceNode(n)}}),Gt({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=t[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:a}},htmlBuilder:(e,t)=>{var n;"clap"===e.alignment?(n=Pt.makeSpan([],[un(e.body,t)]),n=Pt.makeSpan(["inner"],[n],t)):n=Pt.makeSpan(["inner"],[un(e.body,t)]);var r=Pt.makeSpan(["fix"],[]),a=Pt.makeSpan([e.alignment],[n,r],t),i=Pt.makeSpan(["strut"]);return i.style.height=ge(a.height+a.depth),a.depth&&(i.style.verticalAlign=ge(-a.depth)),a.children.unshift(i),a=Pt.makeSpan(["thinbox"],[a],t),Pt.makeSpan(["mord","vbox"],[a],t)},mathmlBuilder:(e,t)=>{var n=new vn.MathNode("mpadded",[Cn(e.body,t)]);if("rlap"!==e.alignment){var r="llap"===e.alignment?"-1":"-0.5";n.setAttribute("lspace",r+"width")}return n.setAttribute("width","0px"),n}}),Gt({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,a=r.mode;r.switchMode("math");var i="\\("===n?"\\)":"$",o=r.parseExpression(!1,i);return r.expect(i),r.switchMode(a),{type:"styling",mode:r.mode,style:"text",body:o}}}),Gt({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new i("Mismatched "+e.funcName)}});var pa=(e,t)=>{switch(t.style.size){case F.DISPLAY.size:return e.display;case F.TEXT.size:return e.text;case F.SCRIPT.size:return e.script;case F.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};Gt({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:Qt(t[0]),text:Qt(t[1]),script:Qt(t[2]),scriptscript:Qt(t[3])}},htmlBuilder:(e,t)=>{var n=pa(e,t),r=rn(n,t,!1);return Pt.makeFragment(r)},mathmlBuilder:(e,t)=>{var n=pa(e,t);return _n(n,t)}});var fa=(e,t,n,r,a,i,o)=>{e=Pt.makeSpan([],[e]);var s,l,c,u=n&&v.isCharacterBox(n);if(t){var d=un(t,r.havingStyle(a.sup()),r);l={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-d.depth)}}if(n){var h=un(n,r.havingStyle(a.sub()),r);s={elem:h,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-h.height)}}if(l&&s){var p=r.fontMetrics().bigOpSpacing5+s.elem.height+s.elem.depth+s.kern+e.depth+o;c=Pt.makeVList({positionType:"bottom",positionData:p,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:ge(-i)},{type:"kern",size:s.kern},{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:ge(i)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(s){var f=e.height-o;c=Pt.makeVList({positionType:"top",positionData:f,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:ge(-i)},{type:"kern",size:s.kern},{type:"elem",elem:e}]},r)}else{if(!l)return e;var m=e.depth+o;c=Pt.makeVList({positionType:"bottom",positionData:m,children:[{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:ge(i)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}var g=[c];if(s&&0!==i&&!u){var y=Pt.makeSpan(["mspace"],[],r);y.style.marginRight=ge(i),g.unshift(y)}return Pt.makeSpan(["mop","op-limits"],g,r)},ma=["\\smallint"],ga=(e,t)=>{var n,r,a,i=!1;"supsub"===e.type?(n=e.sup,r=e.sub,a=Fn(e.base,"op"),i=!0):a=Fn(e,"op");var o,s=t.style,l=!1;if(s.size===F.DISPLAY.size&&a.symbol&&!v.contains(ma,a.name)&&(l=!0),a.symbol){var c=l?"Size2-Regular":"Size1-Regular",u="";if("\\oiint"!==a.name&&"\\oiiint"!==a.name||(u=a.name.slice(1),a.name="oiint"===u?"\\iint":"\\iiint"),o=Pt.makeSymbol(a.name,c,"math",t,["mop","op-symbol",l?"large-op":"small-op"]),u.length>0){var d=o.italic,h=Pt.staticSvg(u+"Size"+(l?"2":"1"),t);o=Pt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:0},{type:"elem",elem:h,shift:l?.08:0}]},t),a.name="\\"+u,o.classes.unshift("mop"),o.italic=d}}else if(a.body){var p=rn(a.body,t,!0);1===p.length&&p[0]instanceof Re?(o=p[0],o.classes[0]="mop"):o=Pt.makeSpan(["mop"],p,t)}else{for(var f=[],m=1;m<a.name.length;m++)f.push(Pt.mathsym(a.name[m],a.mode,t));o=Pt.makeSpan(["mop"],f,t)}var g=0,y=0;return(o instanceof Re||"\\oiint"===a.name||"\\oiiint"===a.name)&&!a.suppressBaseShift&&(g=(o.height-o.depth)/2-t.fontMetrics().axisHeight,y=o.italic),i?fa(o,n,r,t,s,y,g):(g&&(o.style.position="relative",o.style.top=ge(g)),o)},va=(e,t)=>{var n;if(e.symbol)n=new fn("mo",[yn(e.name,e.mode)]),v.contains(ma,e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new fn("mo",kn(e.body,t));else{n=new fn("mi",[new mn(e.name.slice(1))]);var r=new fn("mo",[yn("","text")]);n=e.parentIsSupSub?new fn("mrow",[n,r]):pn([n,r])}return n},ya={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","":"\\bigvee","⋂":"\\bigcap","":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};Gt({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","","⋂","","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=r;return 1===a.length&&(a=ya[a]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:ga,mathmlBuilder:va}),Gt({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Qt(r)}},htmlBuilder:ga,mathmlBuilder:va});var ba={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};Gt({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:ga,mathmlBuilder:va}),Gt({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:ga,mathmlBuilder:va}),Gt({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e,r=n;return 1===r.length&&(r=ba[r]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:ga,mathmlBuilder:va});var wa=(e,t)=>{var n,r,a,i,o=!1;if("supsub"===e.type?(n=e.sup,r=e.sub,a=Fn(e.base,"operatorname"),o=!0):a=Fn(e,"operatorname"),a.body.length>0){for(var s=a.body.map((e=>{var t=e.text;return"string"===typeof t?{type:"textord",mode:e.mode,text:t}:e})),l=rn(s,t.withFont("mathrm"),!0),c=0;c<l.length;c++){var u=l[c];u instanceof Re&&(u.text=u.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}i=Pt.makeSpan(["mop"],l,t)}else i=Pt.makeSpan(["mop"],[],t);return o?fa(i,n,r,t,t.style,0,0):i},xa=(e,t)=>{for(var n=kn(e.body,t.withFont("mathrm")),r=!0,a=0;a<n.length;a++){var i=n[a];if(i instanceof vn.SpaceNode);else if(i instanceof vn.MathNode)switch(i.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":var o=i.children[0];1===i.children.length&&o instanceof vn.TextNode?o.text=o.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):r=!1;break;default:r=!1}else r=!1}if(r){var s=n.map((e=>e.toText())).join("");n=[new vn.TextNode(s)]}var l=new vn.MathNode("mi",n);l.setAttribute("mathvariant","normal");var c=new vn.MathNode("mo",[yn("","text")]);return e.parentIsSupSub?new vn.MathNode("mrow",[l,c]):vn.newDocumentFragment([l,c])};function ka(e,t,n){for(var r=rn(e,t,!1),a=t.sizeMultiplier/n.sizeMultiplier,i=0;i<r.length;i++){var o=r[i].classes.indexOf("sizing");o<0?Array.prototype.push.apply(r[i].classes,t.sizingClasses(n)):r[i].classes[o+1]==="reset-size"+t.size&&(r[i].classes[o+1]="reset-size"+n.size),r[i].height*=a,r[i].depth*=a}return Pt.makeFragment(r)}Gt({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,a=t[0];return{type:"operatorname",mode:n.mode,body:Qt(a),alwaysHandleSupSub:"\\operatornamewithlimits"===r,limits:!1,parentIsSupSub:!1}},htmlBuilder:wa,mathmlBuilder:xa}),Kr("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),Xt({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?Pt.makeFragment(rn(e.body,t,!1)):Pt.makeSpan(["mord"],rn(e.body,t,!0),t)},mathmlBuilder(e,t){return _n(e.body,t,!0)}}),Gt({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:n}=e,r=t[0];return{type:"overline",mode:n.mode,body:r}},htmlBuilder(e,t){var n=un(e.body,t.havingCrampedStyle()),r=Pt.makeLineSpan("overline-line",t),a=t.fontMetrics().defaultRuleThickness,i=Pt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*a},{type:"elem",elem:r},{type:"kern",size:a}]},t);return Pt.makeSpan(["mord","overline"],[i],t)},mathmlBuilder(e,t){var n=new vn.MathNode("mo",[new vn.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new vn.MathNode("mover",[Cn(e.body,t),n]);return r.setAttribute("accent","true"),r}}),Gt({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"phantom",mode:n.mode,body:Qt(r)}},htmlBuilder:(e,t)=>{var n=rn(e.body,t.withPhantom(),!1);return Pt.makeFragment(n)},mathmlBuilder:(e,t)=>{var n=kn(e.body,t);return new vn.MathNode("mphantom",n)}}),Gt({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"hphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=Pt.makeSpan([],[un(e.body,t.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var r=0;r<n.children.length;r++)n.children[r].height=0,n.children[r].depth=0;return n=Pt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},t),Pt.makeSpan(["mord"],[n],t)},mathmlBuilder:(e,t)=>{var n=kn(Qt(e.body),t),r=new vn.MathNode("mphantom",n),a=new vn.MathNode("mpadded",[r]);return a.setAttribute("height","0px"),a.setAttribute("depth","0px"),a}}),Gt({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"vphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=Pt.makeSpan(["inner"],[un(e.body,t.withPhantom())]),r=Pt.makeSpan(["fix"],[]);return Pt.makeSpan(["mord","rlap"],[n,r],t)},mathmlBuilder:(e,t)=>{var n=kn(Qt(e.body),t),r=new vn.MathNode("mphantom",n),a=new vn.MathNode("mpadded",[r]);return a.setAttribute("width","0px"),a}}),Gt({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e,r=Fn(t[0],"size").value,a=t[1];return{type:"raisebox",mode:n.mode,dy:r,body:a}},htmlBuilder(e,t){var n=un(e.body,t),r=me(e.dy,t);return Pt.makeVList({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){var n=new vn.MathNode("mpadded",[Cn(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute("voffset",r),n}}),Gt({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}}),Gt({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,n){var{parser:r}=e,a=n[0],i=Fn(t[0],"size"),o=Fn(t[1],"size");return{type:"rule",mode:r.mode,shift:a&&Fn(a,"size").value,width:i.value,height:o.value}},htmlBuilder(e,t){var n=Pt.makeSpan(["mord","rule"],[],t),r=me(e.width,t),a=me(e.height,t),i=e.shift?me(e.shift,t):0;return n.style.borderRightWidth=ge(r),n.style.borderTopWidth=ge(a),n.style.bottom=ge(i),n.width=r,n.height=a+i,n.depth=-i,n.maxFontSize=1.125*a*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=me(e.width,t),r=me(e.height,t),a=e.shift?me(e.shift,t):0,i=t.color&&t.getColor()||"black",o=new vn.MathNode("mspace");o.setAttribute("mathbackground",i),o.setAttribute("width",ge(n)),o.setAttribute("height",ge(r));var s=new vn.MathNode("mpadded",[o]);return a>=0?s.setAttribute("height",ge(a)):(s.setAttribute("height",ge(a)),s.setAttribute("depth",ge(-a))),s.setAttribute("voffset",ge(a)),s}});var _a=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],Ca=(e,t)=>{var n=t.havingSize(e.size);return ka(e.body,n,t)};Gt({type:"sizing",names:_a,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:a}=e,i=a.parseExpression(!1,n);return{type:"sizing",mode:a.mode,size:_a.indexOf(r)+1,body:i}},htmlBuilder:Ca,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=kn(e.body,n),a=new vn.MathNode("mstyle",r);return a.setAttribute("mathsize",ge(n.sizeMultiplier)),a}}),Gt({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,a=!1,i=!1,o=n[0]&&Fn(n[0],"ordgroup");if(o)for(var s="",l=0;l<o.body.length;++l){var c=o.body[l];if(s=c.text,"t"===s)a=!0;else{if("b"!==s){a=!1,i=!1;break}i=!0}}else a=!0,i=!0;var u=t[0];return{type:"smash",mode:r.mode,body:u,smashHeight:a,smashDepth:i}},htmlBuilder:(e,t)=>{var n=Pt.makeSpan([],[un(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0,n.children))for(var r=0;r<n.children.length;r++)n.children[r].height=0;if(e.smashDepth&&(n.depth=0,n.children))for(var a=0;a<n.children.length;a++)n.children[a].depth=0;var i=Pt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},t);return Pt.makeSpan(["mord"],[i],t)},mathmlBuilder:(e,t)=>{var n=new vn.MathNode("mpadded",[Cn(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}}),Gt({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,a=n[0],i=t[0];return{type:"sqrt",mode:r.mode,body:i,index:a}},htmlBuilder(e,t){var n=un(e.body,t.havingCrampedStyle());0===n.height&&(n.height=t.fontMetrics().xHeight),n=Pt.wrapFragment(n,t);var r=t.fontMetrics(),a=r.defaultRuleThickness,i=a;t.style.id<F.TEXT.id&&(i=t.fontMetrics().xHeight);var o=a+i/4,s=n.height+n.depth+o+a,{span:l,ruleWidth:c,advanceWidth:u}=Br.sqrtImage(s,t),d=l.height-c;d>n.height+n.depth+o&&(o=(o+d-n.height-n.depth)/2);var h=l.height-n.height-o-c;n.style.paddingLeft=ge(u);var p=Pt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+h)},{type:"elem",elem:l},{type:"kern",size:c}]},t);if(e.index){var f=t.havingStyle(F.SCRIPTSCRIPT),m=un(e.index,f,t),g=.6*(p.height-p.depth),v=Pt.makeVList({positionType:"shift",positionData:-g,children:[{type:"elem",elem:m}]},t),y=Pt.makeSpan(["root"],[v]);return Pt.makeSpan(["mord","sqrt"],[y,p],t)}return Pt.makeSpan(["mord","sqrt"],[p],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new vn.MathNode("mroot",[Cn(n,t),Cn(r,t)]):new vn.MathNode("msqrt",[Cn(n,t)])}});var Ea={display:F.DISPLAY,text:F.TEXT,script:F.SCRIPT,scriptscript:F.SCRIPTSCRIPT};Gt({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:a}=e,i=a.parseExpression(!0,n),o=r.slice(1,r.length-5);return{type:"styling",mode:a.mode,style:o,body:i}},htmlBuilder(e,t){var n=Ea[e.style],r=t.havingStyle(n).withFont("");return ka(e.body,r,t)},mathmlBuilder(e,t){var n=Ea[e.style],r=t.havingStyle(n),a=kn(e.body,r),i=new vn.MathNode("mstyle",a),o={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},s=o[e.style];return i.setAttribute("scriptlevel",s[0]),i.setAttribute("displaystyle",s[1]),i}});var Ra=function(e,t){var n=e.base;if(n){if("op"===n.type){var r=n.limits&&(t.style.size===F.DISPLAY.size||n.alwaysHandleSupSub);return r?ga:null}if("operatorname"===n.type){var a=n.alwaysHandleSupSub&&(t.style.size===F.DISPLAY.size||n.limits);return a?wa:null}if("accent"===n.type)return v.isCharacterBox(n.base)?zn:null;if("horizBrace"===n.type){var i=!e.sub;return i===n.isOver?ua:null}return null}return null};Xt({type:"supsub",htmlBuilder(e,t){var n=Ra(e,t);if(n)return n(e,t);var r,a,i,{base:o,sup:s,sub:l}=e,c=un(o,t),u=t.fontMetrics(),d=0,h=0,p=o&&v.isCharacterBox(o);if(s){var f=t.havingStyle(t.style.sup());r=un(s,f,t),p||(d=c.height-f.fontMetrics().supDrop*f.sizeMultiplier/t.sizeMultiplier)}if(l){var m=t.havingStyle(t.style.sub());a=un(l,m,t),p||(h=c.depth+m.fontMetrics().subDrop*m.sizeMultiplier/t.sizeMultiplier)}i=t.style===F.DISPLAY?u.sup1:t.style.cramped?u.sup3:u.sup2;var g,y=t.sizeMultiplier,b=ge(.5/u.ptPerEm/y),w=null;if(a){var x=e.base&&"op"===e.base.type&&e.base.name&&("\\oiint"===e.base.name||"\\oiiint"===e.base.name);(c instanceof Re||x)&&(w=ge(-c.italic))}if(r&&a){d=Math.max(d,i,r.depth+.25*u.xHeight),h=Math.max(h,u.sub2);var k=u.defaultRuleThickness,_=4*k;if(d-r.depth-(a.height-h)<_){h=_-(d-r.depth)+a.height;var C=.8*u.xHeight-(d-r.depth);C>0&&(d+=C,h-=C)}var E=[{type:"elem",elem:a,shift:h,marginRight:b,marginLeft:w},{type:"elem",elem:r,shift:-d,marginRight:b}];g=Pt.makeVList({positionType:"individualShift",children:E},t)}else if(a){h=Math.max(h,u.sub1,a.height-.8*u.xHeight);var R=[{type:"elem",elem:a,marginLeft:w,marginRight:b}];g=Pt.makeVList({positionType:"shift",positionData:h,children:R},t)}else{if(!r)throw new Error("supsub must have either sup or sub.");d=Math.max(d,i,r.depth+.25*u.xHeight),g=Pt.makeVList({positionType:"shift",positionData:-d,children:[{type:"elem",elem:r,marginRight:b}]},t)}var S=ln(c,"right")||"mord";return Pt.makeSpan([S],[c,Pt.makeSpan(["msupsub"],[g])],t)},mathmlBuilder(e,t){var n,r,a=!1;e.base&&"horizBrace"===e.base.type&&(r=!!e.sup,r===e.base.isOver&&(a=!0,n=e.base.isOver)),!e.base||"op"!==e.base.type&&"operatorname"!==e.base.type||(e.base.parentIsSupSub=!0);var i,o=[Cn(e.base,t)];if(e.sub&&o.push(Cn(e.sub,t)),e.sup&&o.push(Cn(e.sup,t)),a)i=n?"mover":"munder";else if(e.sub)if(e.sup){var s=e.base;i=s&&"op"===s.type&&s.limits&&t.style===F.DISPLAY||s&&"operatorname"===s.type&&s.alwaysHandleSupSub&&(t.style===F.DISPLAY||s.limits)?"munderover":"msubsup"}else{var l=e.base;i=l&&"op"===l.type&&l.limits&&(t.style===F.DISPLAY||l.alwaysHandleSupSub)||l&&"operatorname"===l.type&&l.alwaysHandleSupSub&&(l.limits||t.style===F.DISPLAY)?"munder":"msub"}else{var c=e.base;i=c&&"op"===c.type&&c.limits&&(t.style===F.DISPLAY||c.alwaysHandleSupSub)||c&&"operatorname"===c.type&&c.alwaysHandleSupSub&&(c.limits||t.style===F.DISPLAY)?"mover":"msup"}return new vn.MathNode(i,o)}}),Xt({type:"atom",htmlBuilder(e,t){return Pt.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var n=new vn.MathNode("mo",[yn(e.text,e.mode)]);if("bin"===e.family){var r=wn(e,t);"bold-italic"===r&&n.setAttribute("mathvariant",r)}else"punct"===e.family?n.setAttribute("separator","true"):"open"!==e.family&&"close"!==e.family||n.setAttribute("stretchy","false");return n}});var Sa={mi:"italic",mn:"normal",mtext:"normal"};Xt({type:"mathord",htmlBuilder(e,t){return Pt.makeOrd(e,t,"mathord")},mathmlBuilder(e,t){var n=new vn.MathNode("mi",[yn(e.text,e.mode,t)]),r=wn(e,t)||"italic";return r!==Sa[n.type]&&n.setAttribute("mathvariant",r),n}}),Xt({type:"textord",htmlBuilder(e,t){return Pt.makeOrd(e,t,"textord")},mathmlBuilder(e,t){var n,r=yn(e.text,e.mode,t),a=wn(e,t)||"normal";return n="text"===e.mode?new vn.MathNode("mtext",[r]):/[0-9]/.test(e.text)?new vn.MathNode("mn",[r]):"\\prime"===e.text?new vn.MathNode("mo",[r]):new vn.MathNode("mi",[r]),a!==Sa[n.type]&&n.setAttribute("mathvariant",a),n}});var Aa={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Ta={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Xt({type:"spacing",htmlBuilder(e,t){if(Ta.hasOwnProperty(e.text)){var n=Ta[e.text].className||"";if("text"===e.mode){var r=Pt.makeOrd(e,t,"textord");return r.classes.push(n),r}return Pt.makeSpan(["mspace",n],[Pt.mathsym(e.text,e.mode,t)],t)}if(Aa.hasOwnProperty(e.text))return Pt.makeSpan(["mspace",Aa[e.text]],[],t);throw new i('Unknown type of space "'+e.text+'"')},mathmlBuilder(e,t){var n;if(!Ta.hasOwnProperty(e.text)){if(Aa.hasOwnProperty(e.text))return new vn.MathNode("mspace");throw new i('Unknown type of space "'+e.text+'"')}return n=new vn.MathNode("mtext",[new vn.TextNode(" ")]),n}});var Ma=()=>{var e=new vn.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};Xt({type:"tag",mathmlBuilder(e,t){var n=new vn.MathNode("mtable",[new vn.MathNode("mtr",[Ma(),new vn.MathNode("mtd",[_n(e.body,t)]),Ma(),new vn.MathNode("mtd",[_n(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var La={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Oa={"\\textbf":"textbf","\\textmd":"textmd"},Ia={"\\textit":"textit","\\textup":"textup"},Na=(e,t)=>{var n=e.font;return n?La[n]?t.withTextFontFamily(La[n]):Oa[n]?t.withTextFontWeight(Oa[n]):"\\emph"===n?"textit"===t.fontShape?t.withTextFontShape("textup"):t.withTextFontShape("textit"):t.withTextFontShape(Ia[n]):t};Gt({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,a=t[0];return{type:"text",mode:n.mode,body:Qt(a),font:r}},htmlBuilder(e,t){var n=Na(e,t),r=rn(e.body,n,!0);return Pt.makeSpan(["mord","text"],r,n)},mathmlBuilder(e,t){var n=Na(e,t);return _n(e.body,n)}}),Gt({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"underline",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=un(e.body,t),r=Pt.makeLineSpan("underline-line",t),a=t.fontMetrics().defaultRuleThickness,i=Pt.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:a},{type:"elem",elem:r},{type:"kern",size:3*a},{type:"elem",elem:n}]},t);return Pt.makeSpan(["mord","underline"],[i],t)},mathmlBuilder(e,t){var n=new vn.MathNode("mo",[new vn.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new vn.MathNode("munder",[Cn(e.body,t),n]);return r.setAttribute("accentunder","true"),r}}),Gt({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"vcenter",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=un(e.body,t),r=t.fontMetrics().axisHeight,a=.5*(n.height-r-(n.depth+r));return Pt.makeVList({positionType:"shift",positionData:a,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){return new vn.MathNode("mpadded",[Cn(e.body,t)],["vcenter"])}}),Gt({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new i("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var n=Ba(e),r=[],a=t.havingStyle(t.style.text()),i=0;i<n.length;i++){var o=n[i];"~"===o&&(o="\\textasciitilde"),r.push(Pt.makeSymbol(o,"Typewriter-Regular",e.mode,a,["mord","texttt"]))}return Pt.makeSpan(["mord","text"].concat(a.sizingClasses(t)),Pt.tryCombineChars(r),a)},mathmlBuilder(e,t){var n=new vn.TextNode(Ba(e)),r=new vn.MathNode("mtext",[n]);return r.setAttribute("mathvariant","monospace"),r}});var Ba=e=>e.body.replace(/ /g,e.star?"␣":" "),Da=Kt,Fa="[ \r\n\t]",$a="\\\\[a-zA-Z@]+",Pa="\\\\[^\ud800-\udfff]",za="("+$a+")"+Fa+"*",Wa="\\\\(\n|[ \r\t]+\n?)[ \r\t]*",ja="[̀-ͯ]",Va=new RegExp(ja+"+$"),Ua="("+Fa+"+)|"+Wa+"|([!-\\[\\]-‧‪-퟿豈-￿]"+ja+"*|[\ud800-\udbff][\udc00-\udfff]"+ja+"*|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5|"+za+"|"+Pa+")";class Ka{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp(Ua,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new a("EOF",new r(this,t,t));var n=this.tokenRegex.exec(e);if(null===n||n.index!==t)throw new i("Unexpected character: '"+e[t]+"'",new a(e[t],new r(this,t,t+1)));var o=n[6]||n[3]||(n[2]?"\\ ":" ");if(14===this.catcodes[o]){var s=e.indexOf("\n",this.tokenRegex.lastIndex);return-1===s?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=s+1,this.lex()}return new a(o,new r(this,t,this.tokenRegex.lastIndex))}}class Ha{constructor(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(0===this.undefStack.length)throw new i("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(null==e[t]?delete this.current[t]:this.current[t]=e[t])}endGroups(){while(this.undefStack.length>0)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,t,n){if(void 0===n&&(n=!1),n){for(var r=0;r<this.undefStack.length;r++)delete this.undefStack[r][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var a=this.undefStack[this.undefStack.length-1];a&&!a.hasOwnProperty(e)&&(a[e]=this.current[e])}null==t?delete this.current[e]:this.current[e]=t}}var qa=Ur;Kr("\\noexpand",(function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}})),Kr("\\expandafter",(function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}})),Kr("\\@firstoftwo",(function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}})),Kr("\\@secondoftwo",(function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}})),Kr("\\@ifnextchar",(function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return 1===t[0].length&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}})),Kr("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),Kr("\\TextOrMath",(function(e){var t=e.consumeArgs(2);return"text"===e.mode?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}}));var Ga={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};Kr("\\char",(function(e){var t,n=e.popToken(),r="";if("'"===n.text)t=8,n=e.popToken();else if('"'===n.text)t=16,n=e.popToken();else if("`"===n.text)if(n=e.popToken(),"\\"===n.text[0])r=n.text.charCodeAt(1);else{if("EOF"===n.text)throw new i("\\char` missing argument");r=n.text.charCodeAt(0)}else t=10;if(t){if(r=Ga[n.text],null==r||r>=t)throw new i("Invalid base-"+t+" digit "+n.text);var a;while(null!=(a=Ga[e.future().text])&&a<t)r*=t,r+=a,e.popToken()}return"\\@char{"+r+"}"}));var Xa=(e,t,n,r)=>{var a=e.consumeArg().tokens;if(1!==a.length)throw new i("\\newcommand's first argument must be a macro name");var o=a[0].text,s=e.isDefined(o);if(s&&!t)throw new i("\\newcommand{"+o+"} attempting to redefine "+o+"; use \\renewcommand");if(!s&&!n)throw new i("\\renewcommand{"+o+"} when command "+o+" does not yet exist; use \\newcommand");var l=0;if(a=e.consumeArg().tokens,1===a.length&&"["===a[0].text){var c="",u=e.expandNextToken();while("]"!==u.text&&"EOF"!==u.text)c+=u.text,u=e.expandNextToken();if(!c.match(/^\s*[0-9]+\s*$/))throw new i("Invalid number of arguments: "+c);l=parseInt(c),a=e.consumeArg().tokens}return s&&r||e.macros.set(o,{tokens:a,numArgs:l}),""};Kr("\\newcommand",(e=>Xa(e,!1,!0,!1))),Kr("\\renewcommand",(e=>Xa(e,!0,!1,!1))),Kr("\\providecommand",(e=>Xa(e,!0,!0,!0))),Kr("\\message",(e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map((e=>e.text)).join("")),""})),Kr("\\errmessage",(e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map((e=>e.text)).join("")),""})),Kr("\\show",(e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),Da[n],Ne.math[n],Ne.text[n]),""})),Kr("\\bgroup","{"),Kr("\\egroup","}"),Kr("~","\\nobreakspace"),Kr("\\lq","`"),Kr("\\rq","'"),Kr("\\aa","\\r a"),Kr("\\AA","\\r A"),Kr("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),Kr("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),Kr("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),Kr("","\\mathscr{B}"),Kr("","\\mathscr{E}"),Kr("","\\mathscr{F}"),Kr("","\\mathscr{H}"),Kr("","\\mathscr{I}"),Kr("","\\mathscr{L}"),Kr("","\\mathscr{M}"),Kr("","\\mathscr{R}"),Kr("","\\mathfrak{C}"),Kr("","\\mathfrak{H}"),Kr("","\\mathfrak{Z}"),Kr("\\Bbbk","\\Bbb{k}"),Kr("·","\\cdotp"),Kr("\\llap","\\mathllap{\\textrm{#1}}"),Kr("\\rlap","\\mathrlap{\\textrm{#1}}"),Kr("\\clap","\\mathclap{\\textrm{#1}}"),Kr("\\mathstrut","\\vphantom{(}"),Kr("\\underbar","\\underline{\\text{#1}}"),Kr("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),Kr("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),Kr("\\ne","\\neq"),Kr("≠","\\neq"),Kr("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),Kr("∉","\\notin"),Kr("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),Kr("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),Kr("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),Kr("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),Kr("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),Kr("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),Kr("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),Kr("⟂","\\perp"),Kr("‼","\\mathclose{!\\mkern-0.8mu!}"),Kr("∌","\\notni"),Kr("⌜","\\ulcorner"),Kr("⌝","\\urcorner"),Kr("⌞","\\llcorner"),Kr("⌟","\\lrcorner"),Kr("©","\\copyright"),Kr("®","\\textregistered"),Kr("","\\textregistered"),Kr("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),Kr("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),Kr("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),Kr("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),Kr("\\vdots","{\\varvdots\\rule{0pt}{15pt}}"),Kr("⋮","\\vdots"),Kr("\\varGamma","\\mathit{\\Gamma}"),Kr("\\varDelta","\\mathit{\\Delta}"),Kr("\\varTheta","\\mathit{\\Theta}"),Kr("\\varLambda","\\mathit{\\Lambda}"),Kr("\\varXi","\\mathit{\\Xi}"),Kr("\\varPi","\\mathit{\\Pi}"),Kr("\\varSigma","\\mathit{\\Sigma}"),Kr("\\varUpsilon","\\mathit{\\Upsilon}"),Kr("\\varPhi","\\mathit{\\Phi}"),Kr("\\varPsi","\\mathit{\\Psi}"),Kr("\\varOmega","\\mathit{\\Omega}"),Kr("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),Kr("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),Kr("\\boxed","\\fbox{$\\displaystyle{#1}$}"),Kr("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),Kr("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),Kr("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;"),Kr("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}"),Kr("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var Ya={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};Kr("\\dots",(function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in Ya?t=Ya[n]:("\\not"===n.slice(0,4)||n in Ne.math&&v.contains(["bin","rel"],Ne.math[n].group))&&(t="\\dotsb"),t}));var Qa={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};Kr("\\dotso",(function(e){var t=e.future().text;return t in Qa?"\\ldots\\,":"\\ldots"})),Kr("\\dotsc",(function(e){var t=e.future().text;return t in Qa&&","!==t?"\\ldots\\,":"\\ldots"})),Kr("\\cdots",(function(e){var t=e.future().text;return t in Qa?"\\@cdots\\,":"\\@cdots"})),Kr("\\dotsb","\\cdots"),Kr("\\dotsm","\\cdots"),Kr("\\dotsi","\\!\\cdots"),Kr("\\dotsx","\\ldots\\,"),Kr("\\DOTSI","\\relax"),Kr("\\DOTSB","\\relax"),Kr("\\DOTSX","\\relax"),Kr("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),Kr("\\,","\\tmspace+{3mu}{.1667em}"),Kr("\\thinspace","\\,"),Kr("\\>","\\mskip{4mu}"),Kr("\\:","\\tmspace+{4mu}{.2222em}"),Kr("\\medspace","\\:"),Kr("\\;","\\tmspace+{5mu}{.2777em}"),Kr("\\thickspace","\\;"),Kr("\\!","\\tmspace-{3mu}{.1667em}"),Kr("\\negthinspace","\\!"),Kr("\\negmedspace","\\tmspace-{4mu}{.2222em}"),Kr("\\negthickspace","\\tmspace-{5mu}{.277em}"),Kr("\\enspace","\\kern.5em "),Kr("\\enskip","\\hskip.5em\\relax"),Kr("\\quad","\\hskip1em\\relax"),Kr("\\qquad","\\hskip2em\\relax"),Kr("\\tag","\\@ifstar\\tag@literal\\tag@paren"),Kr("\\tag@paren","\\tag@literal{({#1})}"),Kr("\\tag@literal",(e=>{if(e.macros.get("\\df@tag"))throw new i("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"})),Kr("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),Kr("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),Kr("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),Kr("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),Kr("\\newline","\\\\\\relax"),Kr("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Za=ge(te["Main-Regular"]["T".charCodeAt(0)][1]-.7*te["Main-Regular"]["A".charCodeAt(0)][1]);Kr("\\LaTeX","\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+Za+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}"),Kr("\\KaTeX","\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+Za+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}"),Kr("\\hspace","\\@ifstar\\@hspacer\\@hspace"),Kr("\\@hspace","\\hskip #1\\relax"),Kr("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),Kr("\\ordinarycolon",":"),Kr("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),Kr("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),Kr("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),Kr("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),Kr("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),Kr("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),Kr("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),Kr("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),Kr("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),Kr("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),Kr("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),Kr("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),Kr("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),Kr("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),Kr("∷","\\dblcolon"),Kr("∹","\\eqcolon"),Kr("≔","\\coloneqq"),Kr("≕","\\eqqcolon"),Kr("⩴","\\Coloneqq"),Kr("\\ratio","\\vcentcolon"),Kr("\\coloncolon","\\dblcolon"),Kr("\\colonequals","\\coloneqq"),Kr("\\coloncolonequals","\\Coloneqq"),Kr("\\equalscolon","\\eqqcolon"),Kr("\\equalscoloncolon","\\Eqqcolon"),Kr("\\colonminus","\\coloneq"),Kr("\\coloncolonminus","\\Coloneq"),Kr("\\minuscolon","\\eqcolon"),Kr("\\minuscoloncolon","\\Eqcolon"),Kr("\\coloncolonapprox","\\Colonapprox"),Kr("\\coloncolonsim","\\Colonsim"),Kr("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Kr("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Kr("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Kr("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Kr("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),Kr("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),Kr("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),Kr("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),Kr("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),Kr("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),Kr("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),Kr("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),Kr("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),Kr("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),Kr("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),Kr("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),Kr("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),Kr("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),Kr("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),Kr("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),Kr("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),Kr("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),Kr("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),Kr("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),Kr("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),Kr("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),Kr("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),Kr("\\imath","\\html@mathml{\\@imath}{ı}"),Kr("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),Kr("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),Kr("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),Kr("⟦","\\llbracket"),Kr("⟧","\\rrbracket"),Kr("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),Kr("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),Kr("⦃","\\lBrace"),Kr("⦄","\\rBrace"),Kr("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),Kr("⦵","\\minuso"),Kr("\\darr","\\downarrow"),Kr("\\dArr","\\Downarrow"),Kr("\\Darr","\\Downarrow"),Kr("\\lang","\\langle"),Kr("\\rang","\\rangle"),Kr("\\uarr","\\uparrow"),Kr("\\uArr","\\Uparrow"),Kr("\\Uarr","\\Uparrow"),Kr("\\N","\\mathbb{N}"),Kr("\\R","\\mathbb{R}"),Kr("\\Z","\\mathbb{Z}"),Kr("\\alef","\\aleph"),Kr("\\alefsym","\\aleph"),Kr("\\Alpha","\\mathrm{A}"),Kr("\\Beta","\\mathrm{B}"),Kr("\\bull","\\bullet"),Kr("\\Chi","\\mathrm{X}"),Kr("\\clubs","\\clubsuit"),Kr("\\cnums","\\mathbb{C}"),Kr("\\Complex","\\mathbb{C}"),Kr("\\Dagger","\\ddagger"),Kr("\\diamonds","\\diamondsuit"),Kr("\\empty","\\emptyset"),Kr("\\Epsilon","\\mathrm{E}"),Kr("\\Eta","\\mathrm{H}"),Kr("\\exist","\\exists"),Kr("\\harr","\\leftrightarrow"),Kr("\\hArr","\\Leftrightarrow"),Kr("\\Harr","\\Leftrightarrow"),Kr("\\hearts","\\heartsuit"),Kr("\\image","\\Im"),Kr("\\infin","\\infty"),Kr("\\Iota","\\mathrm{I}"),Kr("\\isin","\\in"),Kr("\\Kappa","\\mathrm{K}"),Kr("\\larr","\\leftarrow"),Kr("\\lArr","\\Leftarrow"),Kr("\\Larr","\\Leftarrow"),Kr("\\lrarr","\\leftrightarrow"),Kr("\\lrArr","\\Leftrightarrow"),Kr("\\Lrarr","\\Leftrightarrow"),Kr("\\Mu","\\mathrm{M}"),Kr("\\natnums","\\mathbb{N}"),Kr("\\Nu","\\mathrm{N}"),Kr("\\Omicron","\\mathrm{O}"),Kr("\\plusmn","\\pm"),Kr("\\rarr","\\rightarrow"),Kr("\\rArr","\\Rightarrow"),Kr("\\Rarr","\\Rightarrow"),Kr("\\real","\\Re"),Kr("\\reals","\\mathbb{R}"),Kr("\\Reals","\\mathbb{R}"),Kr("\\Rho","\\mathrm{P}"),Kr("\\sdot","\\cdot"),Kr("\\sect","\\S"),Kr("\\spades","\\spadesuit"),Kr("\\sub","\\subset"),Kr("\\sube","\\subseteq"),Kr("\\supe","\\supseteq"),Kr("\\Tau","\\mathrm{T}"),Kr("\\thetasym","\\vartheta"),Kr("\\weierp","\\wp"),Kr("\\Zeta","\\mathrm{Z}"),Kr("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),Kr("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),Kr("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),Kr("\\bra","\\mathinner{\\langle{#1}|}"),Kr("\\ket","\\mathinner{|{#1}\\rangle}"),Kr("\\braket","\\mathinner{\\langle{#1}\\rangle}"),Kr("\\Bra","\\left\\langle#1\\right|"),Kr("\\Ket","\\left|#1\\right\\rangle");var Ja=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,a=t.consumeArg().tokens,i=t.consumeArg().tokens,o=t.macros.get("|"),s=t.macros.get("\\|");t.macros.beginGroup();var l=t=>n=>{e&&(n.macros.set("|",o),a.length&&n.macros.set("\\|",s));var i=t;if(!t&&a.length){var l=n.future();"|"===l.text&&(n.popToken(),i=!0)}return{tokens:i?a:r,numArgs:0}};t.macros.set("|",l(!1)),a.length&&t.macros.set("\\|",l(!0));var c=t.consumeArg().tokens,u=t.expandTokens([...i,...c,...n]);return t.macros.endGroup(),{tokens:u.reverse(),numArgs:0}};Kr("\\bra@ket",Ja(!1)),Kr("\\bra@set",Ja(!0)),Kr("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),Kr("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),Kr("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),Kr("\\angln","{\\angl n}"),Kr("\\blue","\\textcolor{##6495ed}{#1}"),Kr("\\orange","\\textcolor{##ffa500}{#1}"),Kr("\\pink","\\textcolor{##ff00af}{#1}"),Kr("\\red","\\textcolor{##df0030}{#1}"),Kr("\\green","\\textcolor{##28ae7b}{#1}"),Kr("\\gray","\\textcolor{gray}{#1}"),Kr("\\purple","\\textcolor{##9d38bd}{#1}"),Kr("\\blueA","\\textcolor{##ccfaff}{#1}"),Kr("\\blueB","\\textcolor{##80f6ff}{#1}"),Kr("\\blueC","\\textcolor{##63d9ea}{#1}"),Kr("\\blueD","\\textcolor{##11accd}{#1}"),Kr("\\blueE","\\textcolor{##0c7f99}{#1}"),Kr("\\tealA","\\textcolor{##94fff5}{#1}"),Kr("\\tealB","\\textcolor{##26edd5}{#1}"),Kr("\\tealC","\\textcolor{##01d1c1}{#1}"),Kr("\\tealD","\\textcolor{##01a995}{#1}"),Kr("\\tealE","\\textcolor{##208170}{#1}"),Kr("\\greenA","\\textcolor{##b6ffb0}{#1}"),Kr("\\greenB","\\textcolor{##8af281}{#1}"),Kr("\\greenC","\\textcolor{##74cf70}{#1}"),Kr("\\greenD","\\textcolor{##1fab54}{#1}"),Kr("\\greenE","\\textcolor{##0d923f}{#1}"),Kr("\\goldA","\\textcolor{##ffd0a9}{#1}"),Kr("\\goldB","\\textcolor{##ffbb71}{#1}"),Kr("\\goldC","\\textcolor{##ff9c39}{#1}"),Kr("\\goldD","\\textcolor{##e07d10}{#1}"),Kr("\\goldE","\\textcolor{##a75a05}{#1}"),Kr("\\redA","\\textcolor{##fca9a9}{#1}"),Kr("\\redB","\\textcolor{##ff8482}{#1}"),Kr("\\redC","\\textcolor{##f9685d}{#1}"),Kr("\\redD","\\textcolor{##e84d39}{#1}"),Kr("\\redE","\\textcolor{##bc2612}{#1}"),Kr("\\maroonA","\\textcolor{##ffbde0}{#1}"),Kr("\\maroonB","\\textcolor{##ff92c6}{#1}"),Kr("\\maroonC","\\textcolor{##ed5fa6}{#1}"),Kr("\\maroonD","\\textcolor{##ca337c}{#1}"),Kr("\\maroonE","\\textcolor{##9e034e}{#1}"),Kr("\\purpleA","\\textcolor{##ddd7ff}{#1}"),Kr("\\purpleB","\\textcolor{##c6b9fc}{#1}"),Kr("\\purpleC","\\textcolor{##aa87ff}{#1}"),Kr("\\purpleD","\\textcolor{##7854ab}{#1}"),Kr("\\purpleE","\\textcolor{##543b78}{#1}"),Kr("\\mintA","\\textcolor{##f5f9e8}{#1}"),Kr("\\mintB","\\textcolor{##edf2df}{#1}"),Kr("\\mintC","\\textcolor{##e0e5cc}{#1}"),Kr("\\grayA","\\textcolor{##f6f7f7}{#1}"),Kr("\\grayB","\\textcolor{##f0f1f2}{#1}"),Kr("\\grayC","\\textcolor{##e3e5e6}{#1}"),Kr("\\grayD","\\textcolor{##d6d8da}{#1}"),Kr("\\grayE","\\textcolor{##babec2}{#1}"),Kr("\\grayF","\\textcolor{##888d93}{#1}"),Kr("\\grayG","\\textcolor{##626569}{#1}"),Kr("\\grayH","\\textcolor{##3b3e40}{#1}"),Kr("\\grayI","\\textcolor{##21242c}{#1}"),Kr("\\kaBlue","\\textcolor{##314453}{#1}"),Kr("\\kaGreen","\\textcolor{##71B307}{#1}");var ei={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class ti{constructor(e,t,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new Ha(qa,t.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new Ka(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,n,r;if(e){if(this.consumeSpaces(),"["!==this.future().text)return null;t=this.popToken(),({tokens:r,end:n}=this.consumeArg(["]"]))}else({tokens:r,start:t,end:n}=this.consumeArg());return this.pushToken(new a("EOF",n.loc)),this.pushTokens(r),t.range(n,"")}consumeSpaces(){for(;;){var e=this.future();if(" "!==e.text)break;this.stack.pop()}}consumeArg(e){var t=[],n=e&&e.length>0;n||this.consumeSpaces();var r,a=this.future(),o=0,s=0;do{if(r=this.popToken(),t.push(r),"{"===r.text)++o;else if("}"===r.text){if(--o,-1===o)throw new i("Extra }",r)}else if("EOF"===r.text)throw new i("Unexpected end of input in a macro argument, expected '"+(e&&n?e[s]:"}")+"'",r);if(e&&n)if((0===o||1===o&&"{"===e[s])&&r.text===e[s]){if(++s,s===e.length){t.splice(-s,s);break}}else s=0}while(0!==o||n);return"{"===a.text&&"}"===t[t.length-1].text&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:a,end:r}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new i("The length of delimiters doesn't match the number of args!");for(var n=t[0],r=0;r<n.length;r++){var a=this.popToken();if(n[r]!==a.text)throw new i("Use of the macro doesn't match its definition",a)}}for(var o=[],s=0;s<e;s++)o.push(this.consumeArg(t&&t[s+1]).tokens);return o}countExpansion(e){if(this.expansionCount+=e,this.expansionCount>this.settings.maxExpand)throw new i("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var t=this.popToken(),n=t.text,r=t.noexpand?null:this._getExpansion(n);if(null==r||e&&r.unexpandable){if(e&&null==r&&"\\"===n[0]&&!this.isDefined(n))throw new i("Undefined control sequence: "+n);return this.pushToken(t),!1}this.countExpansion(1);var a=r.tokens,o=this.consumeArgs(r.numArgs,r.delimiters);if(r.numArgs){a=a.slice();for(var s=a.length-1;s>=0;--s){var l=a[s];if("#"===l.text){if(0===s)throw new i("Incomplete placeholder at end of macro body",l);if(l=a[--s],"#"===l.text)a.splice(s+1,1);else{if(!/^[1-9]$/.test(l.text))throw new i("Not a valid argument number",l);a.splice(s,2,...o[+l.text-1])}}}}return this.pushTokens(a),a.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(!1===this.expandOnce()){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}throw new Error}expandMacro(e){return this.macros.has(e)?this.expandTokens([new a(e)]):void 0}expandTokens(e){var t=[],n=this.stack.length;this.pushTokens(e);while(this.stack.length>n)if(!1===this.expandOnce(!0)){var r=this.stack.pop();r.treatAsRelax&&(r.noexpand=!1,r.treatAsRelax=!1),t.push(r)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t?t.map((e=>e.text)).join(""):t}_getExpansion(e){var t=this.macros.get(e);if(null==t)return t;if(1===e.length){var n=this.lexer.catcodes[e];if(null!=n&&13!==n)return}var r="function"===typeof t?t(this):t;if("string"===typeof r){var a=0;if(-1!==r.indexOf("#")){var i=r.replace(/##/g,"");while(-1!==i.indexOf("#"+(a+1)))++a}var o=new Ka(r,this.settings),s=[],l=o.lex();while("EOF"!==l.text)s.push(l),l=o.lex();s.reverse();var c={tokens:s,numArgs:a};return c}return r}isDefined(e){return this.macros.has(e)||Da.hasOwnProperty(e)||Ne.math.hasOwnProperty(e)||Ne.text.hasOwnProperty(e)||ei.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return null!=t?"string"===typeof t||"function"===typeof t||!t.unexpandable:Da.hasOwnProperty(e)&&!Da[e].primitive}}var ni=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,ri=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g","ʰ":"h","ⁱ":"i","ʲ":"j","ᵏ":"k","ˡ":"l","ᵐ":"m","ⁿ":"n","ᵒ":"o","ᵖ":"p","ʳ":"r","ˢ":"s","ᵗ":"t","ᵘ":"u","ᵛ":"v","ʷ":"w","ˣ":"x","ʸ":"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),ai={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},ii={"á":"á","à":"à","ä":"ä","ǟ":"ǟ","ã":"ã","ā":"ā","ă":"ă","ắ":"ắ","ằ":"ằ","ẵ":"ẵ","ǎ":"ǎ","â":"â","ấ":"ấ","ầ":"ầ","ẫ":"ẫ","ȧ":"ȧ","ǡ":"ǡ","å":"å","ǻ":"ǻ","ḃ":"ḃ","ć":"ć","ḉ":"ḉ","č":"č","ĉ":"ĉ","ċ":"ċ","ç":"ç","ď":"ď","ḋ":"ḋ","ḑ":"ḑ","é":"é","è":"è","ë":"ë","ẽ":"ẽ","ē":"ē","ḗ":"ḗ","ḕ":"ḕ","ĕ":"ĕ","ḝ":"ḝ","ě":"ě","ê":"ê","ế":"ế","ề":"ề","ễ":"ễ","ė":"ė","ȩ":"ȩ","ḟ":"ḟ","ǵ":"ǵ","ḡ":"ḡ","ğ":"ğ","ǧ":"ǧ","ĝ":"ĝ","ġ":"ġ","ģ":"ģ","ḧ":"ḧ","ȟ":"ȟ","ĥ":"ĥ","ḣ":"ḣ","ḩ":"ḩ","í":"í","ì":"ì","ï":"ï","ḯ":"ḯ","ĩ":"ĩ","ī":"ī","ĭ":"ĭ","ǐ":"ǐ","î":"î","ǰ":"ǰ","ĵ":"ĵ","ḱ":"ḱ","ǩ":"ǩ","ķ":"ķ","ĺ":"ĺ","ľ":"ľ","ļ":"ļ","ḿ":"ḿ","ṁ":"ṁ","ń":"ń","ǹ":"ǹ","ñ":"ñ","ň":"ň","ṅ":"ṅ","ņ":"ņ","ó":"ó","ò":"ò","ö":"ö","ȫ":"ȫ","õ":"õ","ṍ":"ṍ","ṏ":"ṏ","ȭ":"ȭ","ō":"ō","ṓ":"ṓ","ṑ":"ṑ","ŏ":"ŏ","ǒ":"ǒ","ô":"ô","ố":"ố","ồ":"ồ","ỗ":"ỗ","ȯ":"ȯ","ȱ":"ȱ","ő":"ő","ṕ":"ṕ","ṗ":"ṗ","ŕ":"ŕ","ř":"ř","ṙ":"ṙ","ŗ":"ŗ","ś":"ś","ṥ":"ṥ","š":"š","ṧ":"ṧ","ŝ":"ŝ","ṡ":"ṡ","ş":"ş","ẗ":"ẗ","ť":"ť","ṫ":"ṫ","ţ":"ţ","ú":"ú","ù":"ù","ü":"ü","ǘ":"ǘ","ǜ":"ǜ","ǖ":"ǖ","ǚ":"ǚ","ũ":"ũ","ṹ":"ṹ","ū":"ū","ṻ":"ṻ","ŭ":"ŭ","ǔ":"ǔ","û":"û","ů":"ů","ű":"ű","ṽ":"ṽ","ẃ":"ẃ","ẁ":"ẁ","ẅ":"ẅ","ŵ":"ŵ","ẇ":"ẇ","ẘ":"ẘ","ẍ":"ẍ","ẋ":"ẋ","ý":"ý","ỳ":"ỳ","ÿ":"ÿ","ỹ":"ỹ","ȳ":"ȳ","ŷ":"ŷ","ẏ":"ẏ","ẙ":"ẙ","ź":"ź","ž":"ž","ẑ":"ẑ","ż":"ż","Á":"Á","À":"À","Ä":"Ä","Ǟ":"Ǟ","Ã":"Ã","Ā":"Ā","Ă":"Ă","Ắ":"Ắ","Ằ":"Ằ","Ẵ":"Ẵ","Ǎ":"Ǎ","Â":"Â","Ấ":"Ấ","Ầ":"Ầ","Ẫ":"Ẫ","Ȧ":"Ȧ","Ǡ":"Ǡ","Å":"Å","Ǻ":"Ǻ","Ḃ":"Ḃ","Ć":"Ć","Ḉ":"Ḉ","Č":"Č","Ĉ":"Ĉ","Ċ":"Ċ","Ç":"Ç","Ď":"Ď","Ḋ":"Ḋ","Ḑ":"Ḑ","É":"É","È":"È","Ë":"Ë","Ẽ":"Ẽ","Ē":"Ē","Ḗ":"Ḗ","Ḕ":"Ḕ","Ĕ":"Ĕ","Ḝ":"Ḝ","Ě":"Ě","Ê":"Ê","Ế":"Ế","Ề":"Ề","Ễ":"Ễ","Ė":"Ė","Ȩ":"Ȩ","Ḟ":"Ḟ","Ǵ":"Ǵ","Ḡ":"Ḡ","Ğ":"Ğ","Ǧ":"Ǧ","Ĝ":"Ĝ","Ġ":"Ġ","Ģ":"Ģ","Ḧ":"Ḧ","Ȟ":"Ȟ","Ĥ":"Ĥ","Ḣ":"Ḣ","Ḩ":"Ḩ","Í":"Í","Ì":"Ì","Ï":"Ï","Ḯ":"Ḯ","Ĩ":"Ĩ","Ī":"Ī","Ĭ":"Ĭ","Ǐ":"Ǐ","Î":"Î","İ":"İ","Ĵ":"Ĵ","Ḱ":"Ḱ","Ǩ":"Ǩ","Ķ":"Ķ","Ĺ":"Ĺ","Ľ":"Ľ","Ļ":"Ļ","Ḿ":"Ḿ","Ṁ":"Ṁ","Ń":"Ń","Ǹ":"Ǹ","Ñ":"Ñ","Ň":"Ň","Ṅ":"Ṅ","Ņ":"Ņ","Ó":"Ó","Ò":"Ò","Ö":"Ö","Ȫ":"Ȫ","Õ":"Õ","Ṍ":"Ṍ","Ṏ":"Ṏ","Ȭ":"Ȭ","Ō":"Ō","Ṓ":"Ṓ","Ṑ":"Ṑ","Ŏ":"Ŏ","Ǒ":"Ǒ","Ô":"Ô","Ố":"Ố","Ồ":"Ồ","Ỗ":"Ỗ","Ȯ":"Ȯ","Ȱ":"Ȱ","Ő":"Ő","Ṕ":"Ṕ","Ṗ":"Ṗ","Ŕ":"Ŕ","Ř":"Ř","Ṙ":"Ṙ","Ŗ":"Ŗ","Ś":"Ś","Ṥ":"Ṥ","Š":"Š","Ṧ":"Ṧ","Ŝ":"Ŝ","Ṡ":"Ṡ","Ş":"Ş","Ť":"Ť","Ṫ":"Ṫ","Ţ":"Ţ","Ú":"Ú","Ù":"Ù","Ü":"Ü","Ǘ":"Ǘ","Ǜ":"Ǜ","Ǖ":"Ǖ","Ǚ":"Ǚ","Ũ":"Ũ","Ṹ":"Ṹ","Ū":"Ū","Ṻ":"Ṻ","Ŭ":"Ŭ","Ǔ":"Ǔ","Û":"Û","Ů":"Ů","Ű":"Ű","Ṽ":"Ṽ","Ẃ":"Ẃ","Ẁ":"Ẁ","Ẅ":"Ẅ","Ŵ":"Ŵ","Ẇ":"Ẇ","Ẍ":"Ẍ","Ẋ":"Ẋ","Ý":"Ý","Ỳ":"Ỳ","Ÿ":"Ÿ","Ỹ":"Ỹ","Ȳ":"Ȳ","Ŷ":"Ŷ","Ẏ":"Ẏ","Ź":"Ź","Ž":"Ž","Ẑ":"Ẑ","Ż":"Ż","ά":"ά","ὰ":"ὰ","ᾱ":"ᾱ","ᾰ":"ᾰ","έ":"έ","ὲ":"ὲ","ή":"ή","ὴ":"ὴ","ί":"ί","ὶ":"ὶ","ϊ":"ϊ","ΐ":"ΐ","ῒ":"ῒ","ῑ":"ῑ","ῐ":"ῐ","ό":"ό","ὸ":"ὸ","ύ":"ύ","ὺ":"ὺ","ϋ":"ϋ","ΰ":"ΰ","ῢ":"ῢ","ῡ":"ῡ","ῠ":"ῠ","ώ":"ώ","ὼ":"ὼ","Ύ":"Ύ","Ὺ":"Ὺ","Ϋ":"Ϋ","Ῡ":"Ῡ","Ῠ":"Ῠ","Ώ":"Ώ","Ὼ":"Ὼ"};class oi{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new ti(e,t,this.mode),this.settings=t,this.leftrightDepth=0}expect(e,t){if(void 0===t&&(t=!0),this.fetch().text!==e)throw new i("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new a("}")),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect("}"),this.nextToken=t,n}parseExpression(e,t){var n=[];while(1){"math"===this.mode&&this.consumeSpaces();var r=this.fetch();if(-1!==oi.endOfExpression.indexOf(r.text))break;if(t&&r.text===t)break;if(e&&Da[r.text]&&Da[r.text].infix)break;var a=this.parseAtom(t);if(!a)break;"internal"!==a.type&&n.push(a)}return"text"===this.mode&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(e){for(var t,n=-1,r=0;r<e.length;r++)if("infix"===e[r].type){if(-1!==n)throw new i("only one infix operator per group",e[r].token);n=r,t=e[r].replaceWith}if(-1!==n&&t){var a,o,s,l=e.slice(0,n),c=e.slice(n+1);return a=1===l.length&&"ordgroup"===l[0].type?l[0]:{type:"ordgroup",mode:this.mode,body:l},o=1===c.length&&"ordgroup"===c[0].type?c[0]:{type:"ordgroup",mode:this.mode,body:c},s="\\\\abovefrac"===t?this.callFunction(t,[a,e[n],o],[]):this.callFunction(t,[a,o],[]),[s]}return e}handleSupSubscript(e){var t=this.fetch(),n=t.text;this.consume(),this.consumeSpaces();var r=this.parseGroup(e);if(!r)throw new i("Expected group after '"+n+"'",t);return r}formatUnsupportedCmd(e){for(var t=[],n=0;n<e.length;n++)t.push({type:"textord",mode:"text",text:e[n]});var r={type:"text",mode:this.mode,body:t},a={type:"color",mode:this.mode,color:this.settings.errorColor,body:[r]};return a}parseAtom(e){var t,n,r=this.parseGroup("atom",e);if("text"===this.mode)return r;while(1){this.consumeSpaces();var o=this.fetch();if("\\limits"===o.text||"\\nolimits"===o.text){if(r&&"op"===r.type){var s="\\limits"===o.text;r.limits=s,r.alwaysHandleSupSub=!0}else{if(!r||"operatorname"!==r.type)throw new i("Limit controls must follow a math operator",o);r.alwaysHandleSupSub&&(r.limits="\\limits"===o.text)}this.consume()}else if("^"===o.text){if(t)throw new i("Double superscript",o);t=this.handleSupSubscript("superscript")}else if("_"===o.text){if(n)throw new i("Double subscript",o);n=this.handleSupSubscript("subscript")}else if("'"===o.text){if(t)throw new i("Double superscript",o);var l={type:"textord",mode:this.mode,text:"\\prime"},c=[l];this.consume();while("'"===this.fetch().text)c.push(l),this.consume();"^"===this.fetch().text&&c.push(this.handleSupSubscript("superscript")),t={type:"ordgroup",mode:this.mode,body:c}}else{if(!ri[o.text])break;var u=ni.test(o.text),d=[];d.push(new a(ri[o.text])),this.consume();while(1){var h=this.fetch().text;if(!ri[h])break;if(ni.test(h)!==u)break;d.unshift(new a(ri[h])),this.consume()}var p=this.subparse(d);u?n={type:"ordgroup",mode:"math",body:p}:t={type:"ordgroup",mode:"math",body:p}}}return t||n?{type:"supsub",mode:this.mode,base:r,sup:t,sub:n}:r}parseFunction(e,t){var n=this.fetch(),r=n.text,a=Da[r];if(!a)return null;if(this.consume(),t&&"atom"!==t&&!a.allowedInArgument)throw new i("Got function '"+r+"' with no arguments"+(t?" as "+t:""),n);if("text"===this.mode&&!a.allowedInText)throw new i("Can't use function '"+r+"' in text mode",n);if("math"===this.mode&&!1===a.allowedInMath)throw new i("Can't use function '"+r+"' in math mode",n);var{args:o,optArgs:s}=this.parseArguments(r,a);return this.callFunction(r,o,s,n,e)}callFunction(e,t,n,r,a){var o={funcName:e,parser:this,token:r,breakOnTokenText:a},s=Da[e];if(s&&s.handler)return s.handler(o,t,n);throw new i("No function handler for "+e)}parseArguments(e,t){var n=t.numArgs+t.numOptionalArgs;if(0===n)return{args:[],optArgs:[]};for(var r=[],a=[],o=0;o<n;o++){var s=t.argTypes&&t.argTypes[o],l=o<t.numOptionalArgs;(t.primitive&&null==s||"sqrt"===t.type&&1===o&&null==a[0])&&(s="primitive");var c=this.parseGroupOfType("argument to '"+e+"'",s,l);if(l)a.push(c);else{if(null==c)throw new i("Null argument, please report this as a bug");r.push(c)}}return{args:r,optArgs:a}}parseGroupOfType(e,t,n){switch(t){case"color":return this.parseColorGroup(n);case"size":return this.parseSizeGroup(n);case"url":return this.parseUrlGroup(n);case"math":case"text":return this.parseArgumentGroup(n,t);case"hbox":var r=this.parseArgumentGroup(n,"text");return null!=r?{type:"styling",mode:r.mode,body:[r],style:"text"}:null;case"raw":var a=this.parseStringGroup("raw",n);return null!=a?{type:"raw",mode:"text",string:a.text}:null;case"primitive":if(n)throw new i("A primitive argument cannot be optional");var o=this.parseGroup(e);if(null==o)throw new i("Expected group as "+e,this.fetch());return o;case"original":case null:case void 0:return this.parseArgumentGroup(n);default:throw new i("Unknown group type as "+e,this.fetch())}}consumeSpaces(){while(" "===this.fetch().text)this.consume()}parseStringGroup(e,t){var n=this.gullet.scanArgument(t);if(null==n)return null;var r,a="";while("EOF"!==(r=this.fetch()).text)a+=r.text,this.consume();return this.consume(),n.text=a,n}parseRegexGroup(e,t){var n,r=this.fetch(),a=r,o="";while("EOF"!==(n=this.fetch()).text&&e.test(o+n.text))a=n,o+=a.text,this.consume();if(""===o)throw new i("Invalid "+t+": '"+r.text+"'",r);return r.range(a,o)}parseColorGroup(e){var t=this.parseStringGroup("color",e);if(null==t)return null;var n=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!n)throw new i("Invalid color: '"+t.text+"'",t);var r=n[0];return/^[0-9a-f]{6}$/i.test(r)&&(r="#"+r),{type:"color-token",mode:this.mode,color:r}}parseSizeGroup(e){var t,n=!1;if(this.gullet.consumeSpaces(),t=e||"{"===this.gullet.future().text?this.parseStringGroup("size",e):this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"),!t)return null;e||0!==t.text.length||(t.text="0pt",n=!0);var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!r)throw new i("Invalid size: '"+t.text+"'",t);var a={number:+(r[1]+r[2]),unit:r[3]};if(!fe(a))throw new i("Invalid unit: '"+a.unit+"'",t);return{type:"size",mode:this.mode,value:a,isBlank:n}}parseUrlGroup(e){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var t=this.parseStringGroup("url",e);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),null==t)return null;var n=t.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:n}}parseArgumentGroup(e,t){var n=this.gullet.scanArgument(e);if(null==n)return null;var r=this.mode;t&&this.switchMode(t),this.gullet.beginGroup();var a=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var i={type:"ordgroup",mode:this.mode,loc:n.loc,body:a};return t&&this.switchMode(r),i}parseGroup(e,t){var n,a=this.fetch(),o=a.text;if("{"===o||"\\begingroup"===o){this.consume();var s="{"===o?"}":"\\endgroup";this.gullet.beginGroup();var l=this.parseExpression(!1,s),c=this.fetch();this.expect(s),this.gullet.endGroup(),n={type:"ordgroup",mode:this.mode,loc:r.range(a,c),body:l,semisimple:"\\begingroup"===o||void 0}}else if(n=this.parseFunction(t,e)||this.parseSymbol(),null==n&&"\\"===o[0]&&!ei.hasOwnProperty(o)){if(this.settings.throwOnError)throw new i("Undefined control sequence: "+o,a);n=this.formatUnsupportedCmd(o),this.consume()}return n}formLigatures(e){for(var t=e.length-1,n=0;n<t;++n){var a=e[n],i=a.text;"-"===i&&"-"===e[n+1].text&&(n+1<t&&"-"===e[n+2].text?(e.splice(n,3,{type:"textord",mode:"text",loc:r.range(a,e[n+2]),text:"---"}),t-=2):(e.splice(n,2,{type:"textord",mode:"text",loc:r.range(a,e[n+1]),text:"--"}),t-=1)),"'"!==i&&"`"!==i||e[n+1].text!==i||(e.splice(n,2,{type:"textord",mode:"text",loc:r.range(a,e[n+1]),text:i+i}),t-=1)}}parseSymbol(){var e=this.fetch(),t=e.text;if(/^\\verb[^a-zA-Z]/.test(t)){this.consume();var n=t.slice(5),a="*"===n.charAt(0);if(a&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new i("\\verb assertion failed --\n please report what input caused this bug");return n=n.slice(1,-1),{type:"verb",mode:"text",body:n,star:a}}ii.hasOwnProperty(t[0])&&!Ne[this.mode][t[0]]&&(this.settings.strict&&"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+t[0]+'" used in math mode',e),t=ii[t[0]]+t.slice(1));var o,s=Va.exec(t);if(s&&(t=t.substring(0,s.index),"i"===t?t="ı":"j"===t&&(t="ȷ")),Ne[this.mode][t]){this.settings.strict&&"math"===this.mode&&ht.indexOf(t)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var l,c=Ne[this.mode][t].group,u=r.range(e);if(Oe.hasOwnProperty(c)){var d=c;l={type:"atom",mode:this.mode,family:d,loc:u,text:t}}else l={type:c,mode:this.mode,loc:u,text:t};o=l}else{if(!(t.charCodeAt(0)>=128))return null;this.settings.strict&&(W(t.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'" ('+t.charCodeAt(0)+")",e)),o={type:"textord",mode:"text",loc:r.range(e),text:t}}if(this.consume(),s)for(var h=0;h<s[0].length;h++){var p=s[0][h];if(!ai[p])throw new i("Unknown accent ' "+p+"'",e);var f=ai[p][this.mode]||ai[p].text;if(!f)throw new i("Accent "+p+" unsupported in "+this.mode+" mode",e);o={type:"accent",mode:this.mode,loc:r.range(e),label:f,isStretchy:!1,isShifty:!0,base:o}}return o}}oi.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var si=function(e,t){if(!("string"===typeof e||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new oi(e,t);delete n.gullet.macros.current["\\df@tag"];var r=n.parse();if(delete n.gullet.macros.current["\\current@color"],delete n.gullet.macros.current["\\color"],n.gullet.macros.get("\\df@tag")){if(!t.displayMode)throw new i("\\tag works only in display equations");r=[{type:"tag",mode:"text",body:r,tag:n.subparse([new a("\\df@tag")])}]}return r},li=function(e,t,n){t.textContent="";var r=hi(e,n).toNode();t.appendChild(r)};"undefined"!==typeof document&&"CSS1Compat"!==document.compatMode&&("undefined"!==typeof console&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),li=function(){throw new i("KaTeX doesn't work in quirks mode.")});var ci=function(e,t){var n=hi(e,t).toMarkup();return n},ui=function(e,t){var n=new w(t);return si(e,n)},di=function(e,t,n){if(n.throwOnError||!(e instanceof i))throw e;var r=Pt.makeSpan(["katex-error"],[new Re(t)]);return r.setAttribute("title",e.toString()),r.setAttribute("style","color:"+n.errorColor),r},hi=function(e,t){var n=new w(t);try{var r=si(e,n);return An(r,e,n)}catch(a){return di(a,e,n)}},pi=function(e,t){var n=new w(t);try{var r=si(e,n);return Tn(r,e,n)}catch(a){return di(a,e,n)}},fi="0.16.21",mi={Span:ke,Anchor:_e,SymbolNode:Re,SvgNode:Se,PathNode:Ae,LineNode:Te},gi={version:fi,render:li,renderToString:ci,ParseError:i,SETTINGS_SCHEMA:y,__parse:ui,__renderToDomTree:hi,__renderToHTMLTree:pi,__setFontMetrics:ae,__defineSymbol:Be,__defineFunction:Gt,__defineMacro:Kr,__domTree:mi}},1485:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});var r=n(1258),a=n(3969);class i{constructor(){this.type=a.Z.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=a.Z.ALL}is(e){return this.type===e}}var o=i;class s{constructor(e,t){this.color=t,this.changed=!1,this.data=e,this.type=new o}set(e,t){return this.color=t,this.changed=!1,this.data=e,this.type.type=a.Z.ALL,this}_ensureHSL(){const e=this.data,{h:t,s:n,l:a}=e;void 0===t&&(e.h=r.A.channel.rgb2hsl(e,"h")),void 0===n&&(e.s=r.A.channel.rgb2hsl(e,"s")),void 0===a&&(e.l=r.A.channel.rgb2hsl(e,"l"))}_ensureRGB(){const e=this.data,{r:t,g:n,b:a}=e;void 0===t&&(e.r=r.A.channel.hsl2rgb(e,"r")),void 0===n&&(e.g=r.A.channel.hsl2rgb(e,"g")),void 0===a&&(e.b=r.A.channel.hsl2rgb(e,"b"))}get r(){const e=this.data,t=e.r;return this.type.is(a.Z.HSL)||void 0===t?(this._ensureHSL(),r.A.channel.hsl2rgb(e,"r")):t}get g(){const e=this.data,t=e.g;return this.type.is(a.Z.HSL)||void 0===t?(this._ensureHSL(),r.A.channel.hsl2rgb(e,"g")):t}get b(){const e=this.data,t=e.b;return this.type.is(a.Z.HSL)||void 0===t?(this._ensureHSL(),r.A.channel.hsl2rgb(e,"b")):t}get h(){const e=this.data,t=e.h;return this.type.is(a.Z.RGB)||void 0===t?(this._ensureRGB(),r.A.channel.rgb2hsl(e,"h")):t}get s(){const e=this.data,t=e.s;return this.type.is(a.Z.RGB)||void 0===t?(this._ensureRGB(),r.A.channel.rgb2hsl(e,"s")):t}get l(){const e=this.data,t=e.l;return this.type.is(a.Z.RGB)||void 0===t?(this._ensureRGB(),r.A.channel.rgb2hsl(e,"l")):t}get a(){return this.data.a}set r(e){this.type.set(a.Z.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(a.Z.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(a.Z.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(a.Z.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(a.Z.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(a.Z.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}var l=s;const c=new l({r:0,g:0,b:0,a:0},"transparent");var u=c},5888:function(e,t,n){"use strict";n.d(t,{A:function(){return m}});var r=n(1485),a=n(3969);const i={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(35!==e.charCodeAt(0))return;const t=e.match(i.re);if(!t)return;const n=t[1],a=parseInt(n,16),o=n.length,s=o%4===0,l=o>4,c=l?1:17,u=l?8:4,d=s?0:-1,h=l?255:15;return r.A.set({r:(a>>u*(d+3)&h)*c,g:(a>>u*(d+2)&h)*c,b:(a>>u*(d+1)&h)*c,a:s?(a&h)*c/255:1},e)},stringify:e=>{const{r:t,g:n,b:r,a:i}=e;return i<1?`#${a.Y[Math.round(t)]}${a.Y[Math.round(n)]}${a.Y[Math.round(r)]}${a.Y[Math.round(255*i)]}`:`#${a.Y[Math.round(t)]}${a.Y[Math.round(n)]}${a.Y[Math.round(r)]}`}};var o=i,s=n(1258);const l={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:e=>{const t=e.match(l.hueRe);if(t){const[,e,n]=t;switch(n){case"grad":return s.A.channel.clamp.h(.9*parseFloat(e));case"rad":return s.A.channel.clamp.h(180*parseFloat(e)/Math.PI);case"turn":return s.A.channel.clamp.h(360*parseFloat(e))}}return s.A.channel.clamp.h(parseFloat(e))},parse:e=>{const t=e.charCodeAt(0);if(104!==t&&72!==t)return;const n=e.match(l.re);if(!n)return;const[,a,i,o,c,u]=n;return r.A.set({h:l._hue2deg(a),s:s.A.channel.clamp.s(parseFloat(i)),l:s.A.channel.clamp.l(parseFloat(o)),a:c?s.A.channel.clamp.a(u?parseFloat(c)/100:parseFloat(c)):1},e)},stringify:e=>{const{h:t,s:n,l:r,a:a}=e;return a<1?`hsla(${s.A.lang.round(t)}, ${s.A.lang.round(n)}%, ${s.A.lang.round(r)}%, ${a})`:`hsl(${s.A.lang.round(t)}, ${s.A.lang.round(n)}%, ${s.A.lang.round(r)}%)`}};var c=l;const u={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:e=>{e=e.toLowerCase();const t=u.colors[e];if(t)return o.parse(t)},stringify:e=>{const t=o.stringify(e);for(const n in u.colors)if(u.colors[n]===t)return n}};var d=u;const h={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:e=>{const t=e.charCodeAt(0);if(114!==t&&82!==t)return;const n=e.match(h.re);if(!n)return;const[,a,i,o,l,c,u,d,p]=n;return r.A.set({r:s.A.channel.clamp.r(i?2.55*parseFloat(a):parseFloat(a)),g:s.A.channel.clamp.g(l?2.55*parseFloat(o):parseFloat(o)),b:s.A.channel.clamp.b(u?2.55*parseFloat(c):parseFloat(c)),a:d?s.A.channel.clamp.a(p?parseFloat(d)/100:parseFloat(d)):1},e)},stringify:e=>{const{r:t,g:n,b:r,a:a}=e;return a<1?`rgba(${s.A.lang.round(t)}, ${s.A.lang.round(n)}, ${s.A.lang.round(r)}, ${s.A.lang.round(a)})`:`rgb(${s.A.lang.round(t)}, ${s.A.lang.round(n)}, ${s.A.lang.round(r)})`}};var p=h;const f={format:{keyword:d,hex:o,rgb:p,rgba:p,hsl:c,hsla:c},parse:e=>{if("string"!==typeof e)return e;const t=o.parse(e)||p.parse(e)||c.parse(e)||d.parse(e);if(t)return t;throw new Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(a.Z.HSL)||void 0===e.data.r?c.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?p.stringify(e):o.stringify(e)};var m=f},3969:function(e,t,n){"use strict";n.d(t,{Y:function(){return a},Z:function(){return i}});var r=n(1258);const a={};for(let o=0;o<=255;o++)a[o]=r.A.unit.dec2hex(o);const i={ALL:0,RGB:1,HSL:2}},5834:function(e,t,n){"use strict";var r=n(1258),a=n(5888);const i=(e,t,n)=>{const i=a.A.parse(e),o=i[t],s=r.A.channel.clamp[t](o+n);return o!==s&&(i[t]=s),a.A.stringify(i)};t.A=i},8602:function(e,t,n){"use strict";var r=n(5834);const a=(e,t)=>(0,r.A)(e,"l",-t);t.A=a},9090:function(e,t,n){"use strict";var r=n(5834);const a=(e,t)=>(0,r.A)(e,"l",t);t.A=a},1258:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});const r={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{const t=e/255;return e>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92},hue2rgb:(e,t,n)=>(n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e),hsl2rgb:({h:e,s:t,l:n},a)=>{if(!t)return 2.55*n;e/=360,t/=100,n/=100;const i=n<.5?n*(1+t):n+t-n*t,o=2*n-i;switch(a){case"r":return 255*r.hue2rgb(o,i,e+1/3);case"g":return 255*r.hue2rgb(o,i,e);case"b":return 255*r.hue2rgb(o,i,e-1/3)}},rgb2hsl:({r:e,g:t,b:n},r)=>{e/=255,t/=255,n/=255;const a=Math.max(e,t,n),i=Math.min(e,t,n),o=(a+i)/2;if("l"===r)return 100*o;if(a===i)return 0;const s=a-i,l=o>.5?s/(2-a-i):s/(a+i);if("s"===r)return 100*l;switch(a){case e:return 60*((t-n)/s+(t<n?6:0));case t:return 60*((n-e)/s+2);case n:return 60*((e-t)/s+4);default:return-1}}};var a=r;const i={clamp:(e,t,n)=>t>n?Math.min(t,Math.max(n,e)):Math.min(n,Math.max(t,e)),round:e=>Math.round(1e10*e)/1e10};var o=i;const s={dec2hex:e=>{const t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}};var l=s;const c={channel:a,lang:o,unit:l};var u=c},7433:function(e,t,n){"use strict";function r(){this.__data__=[],this.size=0}n.d(t,{A:function(){return b}});var a=r,i=n(6841);function o(e,t){var n=e.length;while(n--)if((0,i.A)(e[n][0],t))return n;return-1}var s=o,l=Array.prototype,c=l.splice;function u(e){var t=this.__data__,n=s(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():c.call(t,n,1),--this.size,!0}var d=u;function h(e){var t=this.__data__,n=s(t,e);return n<0?void 0:t[n][1]}var p=h;function f(e){return s(this.__data__,e)>-1}var m=f;n(4114);function g(e,t){var n=this.__data__,r=s(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var v=g;function y(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}y.prototype.clear=a,y.prototype["delete"]=d,y.prototype.get=p,y.prototype.has=m,y.prototype.set=v;var b=y},6062:function(e,t,n){"use strict";var r=n(7162),a=n(9578),i=(0,r.A)(a.A,"Map");t.A=i},7788:function(e,t,n){"use strict";n.d(t,{A:function(){return W}});var r=n(7162),a=(0,r.A)(Object,"create"),i=a;function o(){this.__data__=i?i(null):{},this.size=0}var s=o;function l(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var c=l,u="__lodash_hash_undefined__",d=Object.prototype,h=d.hasOwnProperty;function p(e){var t=this.__data__;if(i){var n=t[e];return n===u?void 0:n}return h.call(t,e)?t[e]:void 0}var f=p,m=Object.prototype,g=m.hasOwnProperty;function v(e){var t=this.__data__;return i?void 0!==t[e]:g.call(t,e)}var y=v,b="__lodash_hash_undefined__";function w(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=i&&void 0===t?b:t,this}var x=w;function k(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}k.prototype.clear=s,k.prototype["delete"]=c,k.prototype.get=f,k.prototype.has=y,k.prototype.set=x;var _=k,C=n(7433),E=n(6062);function R(){this.size=0,this.__data__={hash:new _,map:new(E.A||C.A),string:new _}}var S=R;n(1454);function A(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}var T=A;function M(e,t){var n=e.__data__;return T(t)?n["string"==typeof t?"string":"hash"]:n.map}var L=M;function O(e){var t=L(this,e)["delete"](e);return this.size-=t?1:0,t}var I=O;function N(e){return L(this,e).get(e)}var B=N;function D(e){return L(this,e).has(e)}var F=D;function $(e,t){var n=L(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var P=$;function z(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}z.prototype.clear=S,z.prototype["delete"]=I,z.prototype.get=B,z.prototype.has=F,z.prototype.set=P;var W=z},3452:function(e,t,n){"use strict";var r=n(7162),a=n(9578),i=(0,r.A)(a.A,"Set");t.A=i},5070:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(4114);var r=n(7788),a="__lodash_hash_undefined__";function i(e){return this.__data__.set(e,a),this}var o=i;function s(e){return this.__data__.has(e)}var l=s;function c(e){var t=-1,n=null==e?0:e.length;this.__data__=new r.A;while(++t<n)this.add(e[t])}c.prototype.add=c.prototype.push=o,c.prototype.has=l;var u=c},2739:function(e,t,n){"use strict";n.d(t,{A:function(){return y}});var r=n(7433);function a(){this.__data__=new r.A,this.size=0}var i=a;function o(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n}var s=o;function l(e){return this.__data__.get(e)}var c=l;function u(e){return this.__data__.has(e)}var d=u,h=(n(4114),n(6062)),p=n(7788),f=200;function m(e,t){var n=this.__data__;if(n instanceof r.A){var a=n.__data__;if(!h.A||a.length<f-1)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new p.A(a)}return n.set(e,t),this.size=n.size,this}var g=m;function v(e){var t=this.__data__=new r.A(e);this.size=t.size}v.prototype.clear=i,v.prototype["delete"]=s,v.prototype.get=c,v.prototype.has=d,v.prototype.set=g;var y=v},2990:function(e,t,n){"use strict";var r=n(9578),a=r.A.Symbol;t.A=a},3939:function(e,t,n){"use strict";var r=n(9578),a=r.A.Uint8Array;t.A=a},6308:function(e,t){"use strict";function n(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(!1===t(e[n],n,e))break;return e}t.A=n},8211:function(e,t){"use strict";function n(e,t){var n=-1,r=null==e?0:e.length,a=0,i=[];while(++n<r){var o=e[n];t(o,n,e)&&(i[a++]=o)}return i}t.A=n},5318:function(e,t,n){"use strict";n.d(t,{A:function(){return p}});n(4114);function r(e,t){var n=-1,r=Array(e);while(++n<e)r[n]=t(n);return r}var a=r,i=n(6162),o=n(1125),s=n(1120),l=n(2676),c=n(4381),u=Object.prototype,d=u.hasOwnProperty;function h(e,t){var n=(0,o.A)(e),r=!n&&(0,i.A)(e),u=!n&&!r&&(0,s.A)(e),h=!n&&!r&&!u&&(0,c.A)(e),p=n||r||u||h,f=p?a(e.length,String):[],m=f.length;for(var g in e)!t&&!d.call(e,g)||p&&("length"==g||u&&("offset"==g||"parent"==g)||h&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||(0,l.A)(g,m))||f.push(g);return f}var p=h},5347:function(e,t){"use strict";function n(e,t){var n=-1,r=null==e?0:e.length,a=Array(r);while(++n<r)a[n]=t(e[n],n,e);return a}t.A=n},1821:function(e,t){"use strict";function n(e,t){var n=-1,r=t.length,a=e.length;while(++n<r)e[a+n]=t[n];return e}t.A=n},1018:function(e,t,n){"use strict";var r=n(5061),a=n(6841),i=Object.prototype,o=i.hasOwnProperty;function s(e,t,n){var i=e[t];o.call(e,t)&&(0,a.A)(i,n)&&(void 0!==n||t in e)||(0,r.A)(e,t,n)}t.A=s},5061:function(e,t,n){"use strict";var r=n(7256);function a(e,t,n){"__proto__"==t&&r.A?(0,r.A)(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}t.A=a},176:function(e,t,n){"use strict";n.d(t,{A:function(){return rt}});n(8992),n(3949);var r=n(2739),a=n(6308),i=n(1018),o=n(4268),s=n(7351);function l(e,t){return e&&(0,o.A)(t,(0,s.A)(t),e)}var c=l,u=n(6636);function d(e,t){return e&&(0,o.A)(t,(0,u.A)(t),e)}var h=d,p=n(8311),f=n(9606),m=n(4271);function g(e,t){return(0,o.A)(e,(0,m.A)(e),t)}var v=g,y=n(2132);function b(e,t){return(0,o.A)(e,(0,y.A)(e),t)}var w=b,x=n(7661),k=n(5454),_=n(6200),C=Object.prototype,E=C.hasOwnProperty;function R(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&E.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var S=R,A=n(9078);function T(e,t){var n=t?(0,A.A)(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var M=T,L=/\w*$/;function O(e){var t=new e.constructor(e.source,L.exec(e));return t.lastIndex=e.lastIndex,t}var I=O,N=n(2990),B=N.A?N.A.prototype:void 0,D=B?B.valueOf:void 0;function F(e){return D?Object(D.call(e)):{}}var $=F,P=n(3516),z="[object Boolean]",W="[object Date]",j="[object Map]",V="[object Number]",U="[object RegExp]",K="[object Set]",H="[object String]",q="[object Symbol]",G="[object ArrayBuffer]",X="[object DataView]",Y="[object Float32Array]",Q="[object Float64Array]",Z="[object Int8Array]",J="[object Int16Array]",ee="[object Int32Array]",te="[object Uint8Array]",ne="[object Uint8ClampedArray]",re="[object Uint16Array]",ae="[object Uint32Array]";function ie(e,t,n){var r=e.constructor;switch(t){case G:return(0,A.A)(e);case z:case W:return new r(+e);case X:return M(e,n);case Y:case Q:case Z:case J:case ee:case te:case ne:case re:case ae:return(0,P.A)(e,n);case j:return new r;case V:case H:return new r(e);case U:return I(e);case K:return new r;case q:return $(e)}}var oe=ie,se=n(1254),le=n(1125),ce=n(1120),ue=n(2799),de="[object Map]";function he(e){return(0,ue.A)(e)&&(0,_.A)(e)==de}var pe=he,fe=n(7528),me=n(9646),ge=me.A&&me.A.isMap,ve=ge?(0,fe.A)(ge):pe,ye=ve,be=n(168),we="[object Set]";function xe(e){return(0,ue.A)(e)&&(0,_.A)(e)==we}var ke=xe,_e=me.A&&me.A.isSet,Ce=_e?(0,fe.A)(_e):ke,Ee=Ce,Re=1,Se=2,Ae=4,Te="[object Arguments]",Me="[object Array]",Le="[object Boolean]",Oe="[object Date]",Ie="[object Error]",Ne="[object Function]",Be="[object GeneratorFunction]",De="[object Map]",Fe="[object Number]",$e="[object Object]",Pe="[object RegExp]",ze="[object Set]",We="[object String]",je="[object Symbol]",Ve="[object WeakMap]",Ue="[object ArrayBuffer]",Ke="[object DataView]",He="[object Float32Array]",qe="[object Float64Array]",Ge="[object Int8Array]",Xe="[object Int16Array]",Ye="[object Int32Array]",Qe="[object Uint8Array]",Ze="[object Uint8ClampedArray]",Je="[object Uint16Array]",et="[object Uint32Array]",tt={};function nt(e,t,n,o,l,d){var m,g=t&Re,y=t&Se,b=t&Ae;if(n&&(m=l?n(e,o,l,d):n(e)),void 0!==m)return m;if(!(0,be.A)(e))return e;var C=(0,le.A)(e);if(C){if(m=S(e),!g)return(0,f.A)(e,m)}else{var E=(0,_.A)(e),R=E==Ne||E==Be;if((0,ce.A)(e))return(0,p.A)(e,g);if(E==$e||E==Te||R&&!l){if(m=y||R?{}:(0,se.A)(e),!g)return y?w(e,h(m,e)):v(e,c(m,e))}else{if(!tt[E])return l?e:{};m=oe(e,E,g)}}d||(d=new r.A);var A=d.get(e);if(A)return A;d.set(e,m),Ee(e)?e.forEach((function(r){m.add(nt(r,t,n,r,e,d))})):ye(e)&&e.forEach((function(r,a){m.set(a,nt(r,t,n,a,e,d))}));var T=b?y?k.A:x.A:y?u.A:s.A,M=C?void 0:T(e);return(0,a.A)(M||e,(function(r,a){M&&(a=r,r=e[a]),(0,i.A)(m,a,nt(r,t,n,a,e,d))})),m}tt[Te]=tt[Me]=tt[Ue]=tt[Ke]=tt[Le]=tt[Oe]=tt[He]=tt[qe]=tt[Ge]=tt[Xe]=tt[Ye]=tt[De]=tt[Fe]=tt[$e]=tt[Pe]=tt[ze]=tt[We]=tt[je]=tt[Qe]=tt[Ze]=tt[Je]=tt[et]=!0,tt[Ie]=tt[Ne]=tt[Ve]=!1;var rt=nt},7247:function(e,t,n){"use strict";n.d(t,{A:function(){return l}});var r=n(6438),a=n(1805);function i(e,t){return function(n,r){if(null==n)return n;if(!(0,a.A)(n))return e(n,r);var i=n.length,o=t?i:-1,s=Object(n);while(t?o--:++o<i)if(!1===r(s[o],o,s))break;return n}}var o=i,s=o(r.A),l=s},1158:function(e,t){"use strict";function n(e,t,n,r){var a=e.length,i=n+(r?1:-1);while(r?i--:++i<a)if(t(e[i],i,e))return i;return-1}t.A=n},2308:function(e,t,n){"use strict";n.d(t,{A:function(){return d}});var r=n(1821),a=n(2990),i=n(6162),o=n(1125),s=a.A?a.A.isConcatSpreadable:void 0;function l(e){return(0,o.A)(e)||(0,i.A)(e)||!!(s&&e&&e[s])}var c=l;function u(e,t,n,a,i){var o=-1,s=e.length;n||(n=c),i||(i=[]);while(++o<s){var l=e[o];t>0&&n(l)?t>1?u(l,t-1,n,a,i):(0,r.A)(i,l):a||(i[i.length]=l)}return i}var d=u},664:function(e,t,n){"use strict";function r(e){return function(t,n,r){var a=-1,i=Object(t),o=r(t),s=o.length;while(s--){var l=o[e?s:++a];if(!1===n(i[l],l,i))break}return t}}n.d(t,{A:function(){return o}});var a=r,i=a(),o=i},6438:function(e,t,n){"use strict";var r=n(664),a=n(7351);function i(e,t){return e&&(0,r.A)(e,t,a.A)}t.A=i},2623:function(e,t,n){"use strict";var r=n(2212),a=n(3708);function i(e,t){t=(0,r.A)(t,e);var n=0,i=t.length;while(null!=e&&n<i)e=e[(0,a.A)(t[n++])];return n&&n==i?e:void 0}t.A=i},4672:function(e,t,n){"use strict";var r=n(1821),a=n(1125);function i(e,t,n){var i=t(e);return(0,a.A)(e)?i:(0,r.A)(i,n(e))}t.A=i},1591:function(e,t,n){"use strict";n.d(t,{A:function(){return y}});var r=n(2990),a=Object.prototype,i=a.hasOwnProperty,o=a.toString,s=r.A?r.A.toStringTag:void 0;function l(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(l){}var a=o.call(e);return r&&(t?e[s]=n:delete e[s]),a}var c=l,u=Object.prototype,d=u.toString;function h(e){return d.call(e)}var p=h,f="[object Null]",m="[object Undefined]",g=r.A?r.A.toStringTag:void 0;function v(e){return null==e?void 0===e?m:f:g&&g in Object(e)?c(e):p(e)}var y=v},7179:function(e,t,n){"use strict";n.d(t,{A:function(){return te}});var r=n(2739),a=(n(4114),n(5070));function i(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(t(e[n],n,e))return!0;return!1}var o=i,s=n(9759),l=1,c=2;function u(e,t,n,r,i,u){var d=n&l,h=e.length,p=t.length;if(h!=p&&!(d&&p>h))return!1;var f=u.get(e),m=u.get(t);if(f&&m)return f==t&&m==e;var g=-1,v=!0,y=n&c?new a.A:void 0;u.set(e,t),u.set(t,e);while(++g<h){var b=e[g],w=t[g];if(r)var x=d?r(w,b,g,t,e,u):r(b,w,g,e,t,u);if(void 0!==x){if(x)continue;v=!1;break}if(y){if(!o(t,(function(e,t){if(!(0,s.A)(y,t)&&(b===e||i(b,e,n,r,u)))return y.push(t)}))){v=!1;break}}else if(b!==w&&!i(b,w,n,r,u)){v=!1;break}}return u["delete"](e),u["delete"](t),v}var d=u,h=n(2990),p=n(3939),f=n(6841);n(8992),n(3949);function m(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}var g=m,v=n(5704),y=1,b=2,w="[object Boolean]",x="[object Date]",k="[object Error]",_="[object Map]",C="[object Number]",E="[object RegExp]",R="[object Set]",S="[object String]",A="[object Symbol]",T="[object ArrayBuffer]",M="[object DataView]",L=h.A?h.A.prototype:void 0,O=L?L.valueOf:void 0;function I(e,t,n,r,a,i,o){switch(n){case M:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case T:return!(e.byteLength!=t.byteLength||!i(new p.A(e),new p.A(t)));case w:case x:case C:return(0,f.A)(+e,+t);case k:return e.name==t.name&&e.message==t.message;case E:case S:return e==t+"";case _:var s=g;case R:var l=r&y;if(s||(s=v.A),e.size!=t.size&&!l)return!1;var c=o.get(e);if(c)return c==t;r|=b,o.set(e,t);var u=d(s(e),s(t),r,a,i,o);return o["delete"](e),u;case A:if(O)return O.call(e)==O.call(t)}return!1}var N=I,B=n(7661),D=1,F=Object.prototype,$=F.hasOwnProperty;function P(e,t,n,r,a,i){var o=n&D,s=(0,B.A)(e),l=s.length,c=(0,B.A)(t),u=c.length;if(l!=u&&!o)return!1;var d=l;while(d--){var h=s[d];if(!(o?h in t:$.call(t,h)))return!1}var p=i.get(e),f=i.get(t);if(p&&f)return p==t&&f==e;var m=!0;i.set(e,t),i.set(t,e);var g=o;while(++d<l){h=s[d];var v=e[h],y=t[h];if(r)var b=o?r(y,v,h,t,e,i):r(v,y,h,e,t,i);if(!(void 0===b?v===y||a(v,y,n,r,i):b)){m=!1;break}g||(g="constructor"==h)}if(m&&!g){var w=e.constructor,x=t.constructor;w==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x||(m=!1)}return i["delete"](e),i["delete"](t),m}var z=P,W=n(6200),j=n(1125),V=n(1120),U=n(4381),K=1,H="[object Arguments]",q="[object Array]",G="[object Object]",X=Object.prototype,Y=X.hasOwnProperty;function Q(e,t,n,a,i,o){var s=(0,j.A)(e),l=(0,j.A)(t),c=s?q:(0,W.A)(e),u=l?q:(0,W.A)(t);c=c==H?G:c,u=u==H?G:u;var h=c==G,p=u==G,f=c==u;if(f&&(0,V.A)(e)){if(!(0,V.A)(t))return!1;s=!0,h=!1}if(f&&!h)return o||(o=new r.A),s||(0,U.A)(e)?d(e,t,n,a,i,o):N(e,t,c,n,a,i,o);if(!(n&K)){var m=h&&Y.call(e,"__wrapped__"),g=p&&Y.call(t,"__wrapped__");if(m||g){var v=m?e.value():e,y=g?t.value():t;return o||(o=new r.A),i(v,y,n,a,o)}}return!!f&&(o||(o=new r.A),z(e,t,n,a,i,o))}var Z=Q,J=n(2799);function ee(e,t,n,r,a){return e===t||(null==e||null==t||!(0,J.A)(e)&&!(0,J.A)(t)?e!==e&&t!==t:Z(e,t,n,r,ee,a))}var te=ee},2444:function(e,t,n){"use strict";n.d(t,{A:function(){return D}});var r=n(2739),a=n(7179),i=1,o=2;function s(e,t,n,s){var l=n.length,c=l,u=!s;if(null==e)return!c;e=Object(e);while(l--){var d=n[l];if(u&&d[2]?d[1]!==e[d[0]]:!(d[0]in e))return!1}while(++l<c){d=n[l];var h=d[0],p=e[h],f=d[1];if(u&&d[2]){if(void 0===p&&!(h in e))return!1}else{var m=new r.A;if(s)var g=s(p,f,h,e,t,m);if(!(void 0===g?(0,a.A)(f,p,i|o,s,m):g))return!1}}return!0}var l=s,c=n(168);function u(e){return e===e&&!(0,c.A)(e)}var d=u,h=n(7351);function p(e){var t=(0,h.A)(e),n=t.length;while(n--){var r=t[n],a=e[r];t[n]=[r,a,d(a)]}return t}var f=p;function m(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}var g=m;function v(e){var t=f(e);return 1==t.length&&t[0][2]?g(t[0][0],t[0][1]):function(n){return n===e||l(n,e,t)}}var y=v,b=n(9615),w=n(5147),x=n(1191),k=n(3708),_=1,C=2;function E(e,t){return(0,x.A)(e)&&d(t)?g((0,k.A)(e),t):function(n){var r=(0,b.A)(n,e);return void 0===r&&r===t?(0,w.A)(n,e):(0,a.A)(t,r,_|C)}}var R=E,S=n(9937),A=n(1125),T=n(6382),M=n(2623);function L(e){return function(t){return(0,M.A)(t,e)}}var O=L;function I(e){return(0,x.A)(e)?(0,T.A)((0,k.A)(e)):O(e)}var N=I;function B(e){return"function"==typeof e?e:null==e?S.A:"object"==typeof e?(0,A.A)(e)?R(e[0],e[1]):y(e):N(e)}var D=B},1647:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(4114);var r=n(3110),a=n(9314),i=(0,a.A)(Object.keys,Object),o=i,s=Object.prototype,l=s.hasOwnProperty;function c(e){if(!(0,r.A)(e))return o(e);var t=[];for(var n in Object(e))l.call(e,n)&&"constructor"!=n&&t.push(n);return t}var u=c},5501:function(e,t,n){"use strict";var r=n(7247),a=n(1805);function i(e,t){var n=-1,i=(0,a.A)(e)?Array(e.length):[];return(0,r.A)(e,(function(e,r,a){i[++n]=t(e,r,a)})),i}t.A=i},6382:function(e,t){"use strict";function n(e){return function(t){return null==t?void 0:t[e]}}t.A=n},37:function(e,t,n){"use strict";var r=n(9937),a=n(5867),i=n(5743);function o(e,t){return(0,i.A)((0,a.A)(e,t,r.A),e+"")}t.A=o},203:function(e,t,n){"use strict";var r=n(1018),a=n(2212),i=n(2676),o=n(168),s=n(3708);function l(e,t,n,l){if(!(0,o.A)(e))return e;t=(0,a.A)(t,e);var c=-1,u=t.length,d=u-1,h=e;while(null!=h&&++c<u){var p=(0,s.A)(t[c]),f=n;if("__proto__"===p||"constructor"===p||"prototype"===p)return e;if(c!=d){var m=h[p];f=l?l(m,p,h):void 0,void 0===f&&(f=(0,o.A)(m)?m:(0,i.A)(t[c+1])?[]:{})}(0,r.A)(h,p,f),h=h[p]}return e}t.A=l},7528:function(e,t){"use strict";function n(e){return function(t){return e(t)}}t.A=n},9759:function(e,t){"use strict";function n(e,t){return e.has(t)}t.A=n},1929:function(e,t,n){"use strict";var r=n(9937);function a(e){return"function"==typeof e?e:r.A}t.A=a},2212:function(e,t,n){"use strict";n.d(t,{A:function(){return m}});var r=n(1125),a=n(1191),i=(n(4114),n(8500)),o=500;function s(e){var t=(0,i.A)(e,(function(e){return n.size===o&&n.clear(),e})),n=t.cache;return t}var l=s,c=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,u=/\\(\\)?/g,d=l((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(c,(function(e,n,r,a){t.push(r?a.replace(u,"$1"):n||e)})),t})),h=d,p=n(49);function f(e,t){return(0,r.A)(e)?e:(0,a.A)(e,t)?[e]:h((0,p.A)(e))}var m=f},9078:function(e,t,n){"use strict";var r=n(3939);function a(e){var t=new e.constructor(e.byteLength);return new r.A(t).set(new r.A(e)),t}t.A=a},8311:function(e,t,n){"use strict";var r=n(9578),a="object"==typeof exports&&exports&&!exports.nodeType&&exports,i=a&&"object"==typeof module&&module&&!module.nodeType&&module,o=i&&i.exports===a,s=o?r.A.Buffer:void 0,l=s?s.allocUnsafe:void 0;function c(e,t){if(t)return e.slice();var n=e.length,r=l?l(n):new e.constructor(n);return e.copy(r),r}t.A=c},3516:function(e,t,n){"use strict";var r=n(9078);function a(e,t){var n=t?(0,r.A)(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}t.A=a},9606:function(e,t){"use strict";function n(e,t){var n=-1,r=e.length;t||(t=Array(r));while(++n<r)t[n]=e[n];return t}t.A=n},4268:function(e,t,n){"use strict";var r=n(1018),a=n(5061);function i(e,t,n,i){var o=!n;n||(n={});var s=-1,l=t.length;while(++s<l){var c=t[s],u=i?i(n[c],e[c],c,n,e):void 0;void 0===u&&(u=e[c]),o?(0,a.A)(n,c,u):(0,r.A)(n,c,u)}return n}t.A=i},7256:function(e,t,n){"use strict";var r=n(7162),a=function(){try{var e=(0,r.A)(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();t.A=a},7211:function(e,t,n){"use strict";var r=n(5101),a=n(5867),i=n(5743);function o(e){return(0,i.A)((0,a.A)(e,void 0,r.A),e+"")}t.A=o},339:function(e,t){"use strict";var n="object"==typeof global&&global&&global.Object===Object&&global;t.A=n},7661:function(e,t,n){"use strict";var r=n(4672),a=n(4271),i=n(7351);function o(e){return(0,r.A)(e,i.A,a.A)}t.A=o},5454:function(e,t,n){"use strict";var r=n(4672),a=n(2132),i=n(6636);function o(e){return(0,r.A)(e,i.A,a.A)}t.A=o},7162:function(e,t,n){"use strict";n.d(t,{A:function(){return C}});var r=n(7083),a=n(9578),i=a.A["__core-js_shared__"],o=i,s=function(){var e=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function l(e){return!!s&&s in e}var c=l,u=n(168),d=n(3534),h=/[\\^$.*+?()[\]{}|]/g,p=/^\[object .+?Constructor\]$/,f=Function.prototype,m=Object.prototype,g=f.toString,v=m.hasOwnProperty,y=RegExp("^"+g.call(v).replace(h,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function b(e){if(!(0,u.A)(e)||c(e))return!1;var t=(0,r.A)(e)?y:p;return t.test((0,d.A)(e))}var w=b;function x(e,t){return null==e?void 0:e[t]}var k=x;function _(e,t){var n=k(e,t);return w(n)?n:void 0}var C=_},9092:function(e,t,n){"use strict";var r=n(9314),a=(0,r.A)(Object.getPrototypeOf,Object);t.A=a},4271:function(e,t,n){"use strict";var r=n(8211),a=n(6054),i=Object.prototype,o=i.propertyIsEnumerable,s=Object.getOwnPropertySymbols,l=s?function(e){return null==e?[]:(e=Object(e),(0,r.A)(s(e),(function(t){return o.call(e,t)})))}:a.A;t.A=l},2132:function(e,t,n){"use strict";var r=n(1821),a=n(9092),i=n(4271),o=n(6054),s=Object.getOwnPropertySymbols,l=s?function(e){var t=[];while(e)(0,r.A)(t,(0,i.A)(e)),e=(0,a.A)(e);return t}:o.A;t.A=l},6200:function(e,t,n){"use strict";n.d(t,{A:function(){return S}});n(6573),n(8100),n(7936);var r=n(7162),a=n(9578),i=(0,r.A)(a.A,"DataView"),o=i,s=n(6062),l=(0,r.A)(a.A,"Promise"),c=l,u=n(3452),d=(0,r.A)(a.A,"WeakMap"),h=d,p=n(1591),f=n(3534),m="[object Map]",g="[object Object]",v="[object Promise]",y="[object Set]",b="[object WeakMap]",w="[object DataView]",x=(0,f.A)(o),k=(0,f.A)(s.A),_=(0,f.A)(c),C=(0,f.A)(u.A),E=(0,f.A)(h),R=p.A;(o&&R(new o(new ArrayBuffer(1)))!=w||s.A&&R(new s.A)!=m||c&&R(c.resolve())!=v||u.A&&R(new u.A)!=y||h&&R(new h)!=b)&&(R=function(e){var t=(0,p.A)(e),n=t==g?e.constructor:void 0,r=n?(0,f.A)(n):"";if(r)switch(r){case x:return w;case k:return m;case _:return v;case C:return y;case E:return b}return t});var S=R},6783:function(e,t,n){"use strict";var r=n(2212),a=n(6162),i=n(1125),o=n(2676),s=n(5351),l=n(3708);function c(e,t,n){t=(0,r.A)(t,e);var c=-1,u=t.length,d=!1;while(++c<u){var h=(0,l.A)(t[c]);if(!(d=null!=e&&n(e,h)))break;e=e[h]}return d||++c!=u?d:(u=null==e?0:e.length,!!u&&(0,s.A)(u)&&(0,o.A)(h,u)&&((0,i.A)(e)||(0,a.A)(e)))}t.A=c},1254:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});var r=n(168),a=Object.create,i=function(){function e(){}return function(t){if(!(0,r.A)(t))return{};if(a)return a(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),o=i,s=n(9092),l=n(3110);function c(e){return"function"!=typeof e.constructor||(0,l.A)(e)?{}:o((0,s.A)(e))}var u=c},2676:function(e,t){"use strict";var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function a(e,t){var a=typeof e;return t=null==t?n:t,!!t&&("number"==a||"symbol"!=a&&r.test(e))&&e>-1&&e%1==0&&e<t}t.A=a},7571:function(e,t,n){"use strict";var r=n(6841),a=n(1805),i=n(2676),o=n(168);function s(e,t,n){if(!(0,o.A)(n))return!1;var s=typeof t;return!!("number"==s?(0,a.A)(n)&&(0,i.A)(t,n.length):"string"==s&&t in n)&&(0,r.A)(n[t],e)}t.A=s},1191:function(e,t,n){"use strict";var r=n(1125),a=n(8095),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;function s(e,t){if((0,r.A)(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!(0,a.A)(e))||(o.test(e)||!i.test(e)||null!=t&&e in Object(t))}t.A=s},3110:function(e,t){"use strict";var n=Object.prototype;function r(e){var t=e&&e.constructor,r="function"==typeof t&&t.prototype||n;return e===r}t.A=r},9646:function(e,t,n){"use strict";var r=n(339),a="object"==typeof exports&&exports&&!exports.nodeType&&exports,i=a&&"object"==typeof module&&module&&!module.nodeType&&module,o=i&&i.exports===a,s=o&&r.A.process,l=function(){try{var e=i&&i.require&&i.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(t){}}();t.A=l},9314:function(e,t){"use strict";function n(e,t){return function(n){return e(t(n))}}t.A=n},5867:function(e,t,n){"use strict";function r(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}n.d(t,{A:function(){return s}});var a=r,i=Math.max;function o(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){var r=arguments,o=-1,s=i(r.length-t,0),l=Array(s);while(++o<s)l[o]=r[t+o];o=-1;var c=Array(t+1);while(++o<t)c[o]=r[o];return c[t]=n(l),a(e,this,c)}}var s=o},9578:function(e,t,n){"use strict";var r=n(339),a="object"==typeof self&&self&&self.Object===Object&&self,i=r.A||a||Function("return this")();t.A=i},5704:function(e,t,n){"use strict";n(8992),n(3949);function r(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}t.A=r},5743:function(e,t,n){"use strict";n.d(t,{A:function(){return f}});var r=n(9063),a=n(7256),i=n(9937),o=a.A?function(e,t){return(0,a.A)(e,"toString",{configurable:!0,enumerable:!1,value:(0,r.A)(t),writable:!0})}:i.A,s=o,l=800,c=16,u=Date.now;function d(e){var t=0,n=0;return function(){var r=u(),a=c-(r-n);if(n=r,a>0){if(++t>=l)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var h=d,p=h(s),f=p},3708:function(e,t,n){"use strict";var r=n(8095),a=1/0;function i(e){if("string"==typeof e||(0,r.A)(e))return e;var t=e+"";return"0"==t&&1/e==-a?"-0":t}t.A=i},3534:function(e,t){"use strict";var n=Function.prototype,r=n.toString;function a(e){if(null!=e){try{return r.call(e)}catch(t){}try{return e+""}catch(t){}}return""}t.A=a},4266:function(e,t,n){"use strict";var r=n(176),a=4;function i(e){return(0,r.A)(e,a)}t.A=i},5856:function(e,t,n){"use strict";var r=n(176),a=1,i=4;function o(e){return(0,r.A)(e,a|i)}t.A=o},9063:function(e,t){"use strict";function n(e){return function(){return e}}t.A=n},6649:function(e,t,n){"use strict";var r=n(37),a=n(6841),i=n(7571),o=n(6636),s=Object.prototype,l=s.hasOwnProperty,c=(0,r.A)((function(e,t){e=Object(e);var n=-1,r=t.length,c=r>2?t[2]:void 0;c&&(0,i.A)(t[0],t[1],c)&&(r=1);while(++n<r){var u=t[n],d=(0,o.A)(u),h=-1,p=d.length;while(++h<p){var f=d[h],m=e[f];(void 0===m||(0,a.A)(m,s[f])&&!l.call(e,f))&&(e[f]=u[f])}}return e}));t.A=c},6841:function(e,t){"use strict";function n(e,t){return e===t||e!==e&&t!==t}t.A=n},3811:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});var r=n(8211),a=(n(4114),n(7247));function i(e,t){var n=[];return(0,a.A)(e,(function(e,r,a){t(e,r,a)&&n.push(e)})),n}var o=i,s=n(2444),l=n(1125);function c(e,t){var n=(0,l.A)(e)?r.A:o;return n(e,(0,s.A)(t,3))}var u=c},5101:function(e,t,n){"use strict";var r=n(2308);function a(e){var t=null==e?0:e.length;return t?(0,r.A)(e,1):[]}t.A=a},8749:function(e,t,n){"use strict";var r=n(6308),a=n(7247),i=n(1929),o=n(1125);function s(e,t){var n=(0,o.A)(e)?r.A:a.A;return n(e,(0,i.A)(t))}t.A=s},1154:function(e,t){"use strict";function n(e){var t=-1,n=null==e?0:e.length,r={};while(++t<n){var a=e[t];r[a[0]]=a[1]}return r}t.A=n},9615:function(e,t,n){"use strict";var r=n(2623);function a(e,t,n){var a=null==e?void 0:(0,r.A)(e,t);return void 0===a?n:a}t.A=a},1731:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var r=Object.prototype,a=r.hasOwnProperty;function i(e,t){return null!=e&&a.call(e,t)}var o=i,s=n(6783);function l(e,t){return null!=e&&(0,s.A)(e,t,o)}var c=l},5147:function(e,t,n){"use strict";function r(e,t){return null!=e&&t in Object(e)}n.d(t,{A:function(){return s}});var a=r,i=n(6783);function o(e,t){return null!=e&&(0,i.A)(e,t,a)}var s=o},9937:function(e,t){"use strict";function n(e){return e}t.A=n},6162:function(e,t,n){"use strict";n.d(t,{A:function(){return h}});var r=n(1591),a=n(2799),i="[object Arguments]";function o(e){return(0,a.A)(e)&&(0,r.A)(e)==i}var s=o,l=Object.prototype,c=l.hasOwnProperty,u=l.propertyIsEnumerable,d=s(function(){return arguments}())?s:function(e){return(0,a.A)(e)&&c.call(e,"callee")&&!u.call(e,"callee")},h=d},1125:function(e,t){"use strict";var n=Array.isArray;t.A=n},1805:function(e,t,n){"use strict";var r=n(7083),a=n(5351);function i(e){return null!=e&&(0,a.A)(e.length)&&!(0,r.A)(e)}t.A=i},6690:function(e,t,n){"use strict";var r=n(1805),a=n(2799);function i(e){return(0,a.A)(e)&&(0,r.A)(e)}t.A=i},1120:function(e,t,n){"use strict";n.d(t,{A:function(){return h}});var r=n(9578);function a(){return!1}var i=a,o="object"==typeof exports&&exports&&!exports.nodeType&&exports,s=o&&"object"==typeof module&&module&&!module.nodeType&&module,l=s&&s.exports===o,c=l?r.A.Buffer:void 0,u=c?c.isBuffer:void 0,d=u||i,h=d},7297:function(e,t,n){"use strict";var r=n(1647),a=n(6200),i=n(6162),o=n(1125),s=n(1805),l=n(1120),c=n(3110),u=n(4381),d="[object Map]",h="[object Set]",p=Object.prototype,f=p.hasOwnProperty;function m(e){if(null==e)return!0;if((0,s.A)(e)&&((0,o.A)(e)||"string"==typeof e||"function"==typeof e.splice||(0,l.A)(e)||(0,u.A)(e)||(0,i.A)(e)))return!e.length;var t=(0,a.A)(e);if(t==d||t==h)return!e.size;if((0,c.A)(e))return!(0,r.A)(e).length;for(var n in e)if(f.call(e,n))return!1;return!0}t.A=m},7083:function(e,t,n){"use strict";var r=n(1591),a=n(168),i="[object AsyncFunction]",o="[object Function]",s="[object GeneratorFunction]",l="[object Proxy]";function c(e){if(!(0,a.A)(e))return!1;var t=(0,r.A)(e);return t==o||t==s||t==i||t==l}t.A=c},5351:function(e,t){"use strict";var n=9007199254740991;function r(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}t.A=r},6032:function(e,t){"use strict";function n(e){return null==e}t.A=n},168:function(e,t){"use strict";function n(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}t.A=n},2799:function(e,t){"use strict";function n(e){return null!=e&&"object"==typeof e}t.A=n},5644:function(e,t,n){"use strict";var r=n(1591),a=n(9092),i=n(2799),o="[object Object]",s=Function.prototype,l=Object.prototype,c=s.toString,u=l.hasOwnProperty,d=c.call(Object);function h(e){if(!(0,i.A)(e)||(0,r.A)(e)!=o)return!1;var t=(0,a.A)(e);if(null===t)return!0;var n=u.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==d}t.A=h},8095:function(e,t,n){"use strict";var r=n(1591),a=n(2799),i="[object Symbol]";function o(e){return"symbol"==typeof e||(0,a.A)(e)&&(0,r.A)(e)==i}t.A=o},4381:function(e,t,n){"use strict";n.d(t,{A:function(){return F}});var r=n(1591),a=n(5351),i=n(2799),o="[object Arguments]",s="[object Array]",l="[object Boolean]",c="[object Date]",u="[object Error]",d="[object Function]",h="[object Map]",p="[object Number]",f="[object Object]",m="[object RegExp]",g="[object Set]",v="[object String]",y="[object WeakMap]",b="[object ArrayBuffer]",w="[object DataView]",x="[object Float32Array]",k="[object Float64Array]",_="[object Int8Array]",C="[object Int16Array]",E="[object Int32Array]",R="[object Uint8Array]",S="[object Uint8ClampedArray]",A="[object Uint16Array]",T="[object Uint32Array]",M={};function L(e){return(0,i.A)(e)&&(0,a.A)(e.length)&&!!M[(0,r.A)(e)]}M[x]=M[k]=M[_]=M[C]=M[E]=M[R]=M[S]=M[A]=M[T]=!0,M[o]=M[s]=M[b]=M[l]=M[w]=M[c]=M[u]=M[d]=M[h]=M[p]=M[f]=M[m]=M[g]=M[v]=M[y]=!1;var O=L,I=n(7528),N=n(9646),B=N.A&&N.A.isTypedArray,D=B?(0,I.A)(B):O,F=D},1631:function(e,t){"use strict";function n(e){return void 0===e}t.A=n},7351:function(e,t,n){"use strict";var r=n(5318),a=n(1647),i=n(1805);function o(e){return(0,i.A)(e)?(0,r.A)(e):(0,a.A)(e)}t.A=o},6636:function(e,t,n){"use strict";n.d(t,{A:function(){return f}});var r=n(5318),a=(n(4114),n(168)),i=n(3110);function o(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}var s=o,l=Object.prototype,c=l.hasOwnProperty;function u(e){if(!(0,a.A)(e))return s(e);var t=(0,i.A)(e),n=[];for(var r in e)("constructor"!=r||!t&&c.call(e,r))&&n.push(r);return n}var d=u,h=n(1805);function p(e){return(0,h.A)(e)?(0,r.A)(e,!0):d(e)}var f=p},9019:function(e,t){"use strict";function n(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}t.A=n},3357:function(e,t,n){"use strict";var r=n(5347),a=n(2444),i=n(5501),o=n(1125);function s(e,t){var n=(0,o.A)(e)?r.A:i.A;return n(e,(0,a.A)(t,3))}t.A=s},8500:function(e,t,n){"use strict";var r=n(7788),a="Expected a function";function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(a);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var o=e.apply(this,r);return n.cache=i.set(a,o)||i,o};return n.cache=new(i.Cache||r.A),n}i.Cache=r.A,t.A=i},229:function(e,t,n){"use strict";n.d(t,{A:function(){return D}});var r=n(2739),a=n(5061),i=n(6841);function o(e,t,n){(void 0!==n&&!(0,i.A)(e[t],n)||void 0===n&&!(t in e))&&(0,a.A)(e,t,n)}var s=o,l=n(664),c=n(8311),u=n(3516),d=n(9606),h=n(1254),p=n(6162),f=n(1125),m=n(6690),g=n(1120),v=n(7083),y=n(168),b=n(5644),w=n(4381);function x(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var k=x,_=n(4268),C=n(6636);function E(e){return(0,_.A)(e,(0,C.A)(e))}var R=E;function S(e,t,n,r,a,i,o){var l=k(e,n),x=k(t,n),_=o.get(x);if(_)s(e,n,_);else{var C=i?i(l,x,n+"",e,t,o):void 0,E=void 0===C;if(E){var S=(0,f.A)(x),A=!S&&(0,g.A)(x),T=!S&&!A&&(0,w.A)(x);C=x,S||A||T?(0,f.A)(l)?C=l:(0,m.A)(l)?C=(0,d.A)(l):A?(E=!1,C=(0,c.A)(x,!0)):T?(E=!1,C=(0,u.A)(x,!0)):C=[]:(0,b.A)(x)||(0,p.A)(x)?(C=l,(0,p.A)(l)?C=R(l):(0,y.A)(l)&&!(0,v.A)(l)||(C=(0,h.A)(x))):E=!1}E&&(o.set(x,C),a(C,x,r,i,o),o["delete"](x)),s(e,n,C)}}var A=S;function T(e,t,n,a,i){e!==t&&(0,l.A)(t,(function(o,l){if(i||(i=new r.A),(0,y.A)(o))A(e,t,l,n,T,a,i);else{var c=a?a(k(e,l),o,l+"",e,t,i):void 0;void 0===c&&(c=o),s(e,l,c)}}),C.A)}var M=T,L=n(37),O=n(7571);function I(e){return(0,L.A)((function(t,n){var r=-1,a=n.length,i=a>1?n[a-1]:void 0,o=a>2?n[2]:void 0;i=e.length>3&&"function"==typeof i?(a--,i):void 0,o&&(0,O.A)(n[0],n[1],o)&&(i=a<3?void 0:i,a=1),t=Object(t);while(++r<a){var s=n[r];s&&e(t,s,r,i)}return t}))}var N=I,B=N((function(e,t,n){M(e,t,n)})),D=B},2563:function(e,t,n){"use strict";var r=n(9578),a=function(){return r.A.Date.now()};t.A=a},1996:function(e,t,n){"use strict";n.d(t,{A:function(){return p}});var r=n(2623),a=n(203),i=n(2212);function o(e,t,n){var o=-1,s=t.length,l={};while(++o<s){var c=t[o],u=(0,r.A)(e,c);n(u,c)&&(0,a.A)(l,(0,i.A)(c,e),u)}return l}var s=o,l=n(5147);function c(e,t){return s(e,t,(function(t,n){return(0,l.A)(e,n)}))}var u=c,d=n(7211),h=(0,d.A)((function(e,t){return null==e?{}:u(e,t)})),p=h},6077:function(e,t,n){"use strict";n.d(t,{A:function(){return h}});var r=Math.ceil,a=Math.max;function i(e,t,n,i){var o=-1,s=a(r((t-e)/(n||1)),0),l=Array(s);while(s--)l[i?s:++o]=e,e+=n;return l}var o=i,s=n(7571),l=n(9033);function c(e){return function(t,n,r){return r&&"number"!=typeof r&&(0,s.A)(t,n,r)&&(n=r=void 0),t=(0,l.A)(t),void 0===n?(n=t,t=0):n=(0,l.A)(n),r=void 0===r?t<n?1:-1:(0,l.A)(r),o(t,n,r,e)}}var u=c,d=u(),h=d},9195:function(e,t,n){"use strict";function r(e,t,n,r){var a=-1,i=null==e?0:e.length;r&&i&&(n=e[++a]);while(++a<i)n=t(n,e[a],a,e);return n}n.d(t,{A:function(){return d}});var a=r,i=n(7247),o=n(2444);function s(e,t,n,r,a){return a(e,(function(e,a,i){n=r?(r=!1,e):t(n,e,a,i)})),n}var l=s,c=n(1125);function u(e,t,n){var r=(0,c.A)(e)?a:l,s=arguments.length<3;return r(e,(0,o.A)(t,4),n,s,i.A)}var d=u},6054:function(e,t){"use strict";function n(){return[]}t.A=n},9033:function(e,t,n){"use strict";var r=n(754),a=1/0,i=17976931348623157e292;function o(e){if(!e)return 0===e?e:0;if(e=(0,r.A)(e),e===a||e===-a){var t=e<0?-1:1;return t*i}return e===e?e:0}t.A=o},478:function(e,t,n){"use strict";var r=n(9033);function a(e){var t=(0,r.A)(e),n=t%1;return t===t?n?t-n:t:0}t.A=a},754:function(e,t,n){"use strict";n.d(t,{A:function(){return v}});var r=/\s/;function a(e){var t=e.length;while(t--&&r.test(e.charAt(t)));return t}var i=a,o=/^\s+/;function s(e){return e?e.slice(0,i(e)+1).replace(o,""):e}var l=s,c=n(168),u=n(8095),d=NaN,h=/^[-+]0x[0-9a-f]+$/i,p=/^0b[01]+$/i,f=/^0o[0-7]+$/i,m=parseInt;function g(e){if("number"==typeof e)return e;if((0,u.A)(e))return d;if((0,c.A)(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=(0,c.A)(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=l(e);var n=p.test(e);return n||f.test(e)?m(e.slice(2),n?2:8):h.test(e)?d:+e}var v=g},49:function(e,t,n){"use strict";n.d(t,{A:function(){return p}});var r=n(2990),a=n(5347),i=n(1125),o=n(8095),s=1/0,l=r.A?r.A.prototype:void 0,c=l?l.toString:void 0;function u(e){if("string"==typeof e)return e;if((0,i.A)(e))return(0,a.A)(e,u)+"";if((0,o.A)(e))return c?c.call(e):"";var t=e+"";return"0"==t&&1/e==-s?"-0":t}var d=u;function h(e){return null==e?"":d(e)}var p=h},58:function(e,t,n){"use strict";n.d(t,{A:function(){return M}});var r=n(2308),a=n(37),i=(n(4114),n(5070)),o=n(1158);function s(e){return e!==e}var l=s;function c(e,t,n){var r=n-1,a=e.length;while(++r<a)if(e[r]===t)return r;return-1}var u=c;function d(e,t,n){return t===t?u(e,t,n):(0,o.A)(e,l,n)}var h=d;function p(e,t){var n=null==e?0:e.length;return!!n&&h(e,t,0)>-1}var f=p;function m(e,t,n){var r=-1,a=null==e?0:e.length;while(++r<a)if(n(t,e[r]))return!0;return!1}var g=m,v=n(9759),y=n(3452);function b(){}var w=b,x=n(5704),k=1/0,_=y.A&&1/(0,x.A)(new y.A([,-0]))[1]==k?function(e){return new y.A(e)}:w,C=_,E=200;function R(e,t,n){var r=-1,a=f,o=e.length,s=!0,l=[],c=l;if(n)s=!1,a=g;else if(o>=E){var u=t?null:C(e);if(u)return(0,x.A)(u);s=!1,a=v.A,c=new i.A}else c=t?[]:l;e:while(++r<o){var d=e[r],h=t?t(d):d;if(d=n||0!==d?d:0,s&&h===h){var p=c.length;while(p--)if(c[p]===h)continue e;t&&c.push(h),l.push(d)}else a(c,h,n)||(c!==l&&c.push(h),l.push(d))}return l}var S=R,A=n(6690),T=(0,a.A)((function(e){return S((0,r.A)(e,1,A.A,!0))})),M=T},1529:function(e,t,n){"use strict";var r=n(49),a=0;function i(e){var t=++a;return(0,r.A)(e)+t}t.A=i},8364:function(e,t,n){"use strict";n.d(t,{A:function(){return l}});var r=n(5347);function a(e,t){return(0,r.A)(t,(function(t){return e[t]}))}var i=a,o=n(7351);function s(e){return null==e?[]:i(e,(0,o.A)(e))}var l=s},2188:function(e,t,n){"use strict";n.d(t,{ZI:function(){return ai}});n(4114),n(6573),n(8100),n(7936),n(9479),n(7467),n(4732),n(9577);
/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */
const r=4,a=0,i=1,o=2;function s(e){let t=e.length;while(--t>=0)e[t]=0}const l=0,c=1,u=2,d=3,h=258,p=29,f=256,m=f+1+p,g=30,v=19,y=2*m+1,b=15,w=16,x=7,k=256,_=16,C=17,E=18,R=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),S=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),A=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),T=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),M=512,L=new Array(2*(m+2));s(L);const O=new Array(2*g);s(O);const I=new Array(M);s(I);const N=new Array(h-d+1);s(N);const B=new Array(p);s(B);const D=new Array(g);function F(e,t,n,r,a){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=a,this.has_stree=e&&e.length}let $,P,z;function W(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}s(D);const j=e=>e<256?I[e]:I[256+(e>>>7)],V=(e,t)=>{e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255},U=(e,t,n)=>{e.bi_valid>w-n?(e.bi_buf|=t<<e.bi_valid&65535,V(e,e.bi_buf),e.bi_buf=t>>w-e.bi_valid,e.bi_valid+=n-w):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)},K=(e,t,n)=>{U(e,n[2*t],n[2*t+1])},H=(e,t)=>{let n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1},q=e=>{16===e.bi_valid?(V(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)},G=(e,t)=>{const n=t.dyn_tree,r=t.max_code,a=t.stat_desc.static_tree,i=t.stat_desc.has_stree,o=t.stat_desc.extra_bits,s=t.stat_desc.extra_base,l=t.stat_desc.max_length;let c,u,d,h,p,f,m=0;for(h=0;h<=b;h++)e.bl_count[h]=0;for(n[2*e.heap[e.heap_max]+1]=0,c=e.heap_max+1;c<y;c++)u=e.heap[c],h=n[2*n[2*u+1]+1]+1,h>l&&(h=l,m++),n[2*u+1]=h,u>r||(e.bl_count[h]++,p=0,u>=s&&(p=o[u-s]),f=n[2*u],e.opt_len+=f*(h+p),i&&(e.static_len+=f*(a[2*u+1]+p)));if(0!==m){do{h=l-1;while(0===e.bl_count[h])h--;e.bl_count[h]--,e.bl_count[h+1]+=2,e.bl_count[l]--,m-=2}while(m>0);for(h=l;0!==h;h--){u=e.bl_count[h];while(0!==u)d=e.heap[--c],d>r||(n[2*d+1]!==h&&(e.opt_len+=(h-n[2*d+1])*n[2*d],n[2*d+1]=h),u--)}}},X=(e,t,n)=>{const r=new Array(b+1);let a,i,o=0;for(a=1;a<=b;a++)o=o+n[a-1]<<1,r[a]=o;for(i=0;i<=t;i++){let t=e[2*i+1];0!==t&&(e[2*i]=H(r[t]++,t))}},Y=()=>{let e,t,n,r,a;const i=new Array(b+1);for(n=0,r=0;r<p-1;r++)for(B[r]=n,e=0;e<1<<R[r];e++)N[n++]=r;for(N[n-1]=r,a=0,r=0;r<16;r++)for(D[r]=a,e=0;e<1<<S[r];e++)I[a++]=r;for(a>>=7;r<g;r++)for(D[r]=a<<7,e=0;e<1<<S[r]-7;e++)I[256+a++]=r;for(t=0;t<=b;t++)i[t]=0;e=0;while(e<=143)L[2*e+1]=8,e++,i[8]++;while(e<=255)L[2*e+1]=9,e++,i[9]++;while(e<=279)L[2*e+1]=7,e++,i[7]++;while(e<=287)L[2*e+1]=8,e++,i[8]++;for(X(L,m+1,i),e=0;e<g;e++)O[2*e+1]=5,O[2*e]=H(e,5);$=new F(L,R,f+1,m,b),P=new F(O,S,0,g,b),z=new F(new Array(0),A,0,v,x)},Q=e=>{let t;for(t=0;t<m;t++)e.dyn_ltree[2*t]=0;for(t=0;t<g;t++)e.dyn_dtree[2*t]=0;for(t=0;t<v;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*k]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},Z=e=>{e.bi_valid>8?V(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},J=(e,t,n,r)=>{const a=2*t,i=2*n;return e[a]<e[i]||e[a]===e[i]&&r[t]<=r[n]},ee=(e,t,n)=>{const r=e.heap[n];let a=n<<1;while(a<=e.heap_len){if(a<e.heap_len&&J(t,e.heap[a+1],e.heap[a],e.depth)&&a++,J(t,r,e.heap[a],e.depth))break;e.heap[n]=e.heap[a],n=a,a<<=1}e.heap[n]=r},te=(e,t,n)=>{let r,a,i,o,s=0;if(0!==e.sym_next)do{r=255&e.pending_buf[e.sym_buf+s++],r+=(255&e.pending_buf[e.sym_buf+s++])<<8,a=e.pending_buf[e.sym_buf+s++],0===r?K(e,a,t):(i=N[a],K(e,i+f+1,t),o=R[i],0!==o&&(a-=B[i],U(e,a,o)),r--,i=j(r),K(e,i,n),o=S[i],0!==o&&(r-=D[i],U(e,r,o)))}while(s<e.sym_next);K(e,k,t)},ne=(e,t)=>{const n=t.dyn_tree,r=t.stat_desc.static_tree,a=t.stat_desc.has_stree,i=t.stat_desc.elems;let o,s,l,c=-1;for(e.heap_len=0,e.heap_max=y,o=0;o<i;o++)0!==n[2*o]?(e.heap[++e.heap_len]=c=o,e.depth[o]=0):n[2*o+1]=0;while(e.heap_len<2)l=e.heap[++e.heap_len]=c<2?++c:0,n[2*l]=1,e.depth[l]=0,e.opt_len--,a&&(e.static_len-=r[2*l+1]);for(t.max_code=c,o=e.heap_len>>1;o>=1;o--)ee(e,n,o);l=i;do{o=e.heap[1],e.heap[1]=e.heap[e.heap_len--],ee(e,n,1),s=e.heap[1],e.heap[--e.heap_max]=o,e.heap[--e.heap_max]=s,n[2*l]=n[2*o]+n[2*s],e.depth[l]=(e.depth[o]>=e.depth[s]?e.depth[o]:e.depth[s])+1,n[2*o+1]=n[2*s+1]=l,e.heap[1]=l++,ee(e,n,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],G(e,t),X(n,c,e.bl_count)},re=(e,t,n)=>{let r,a,i=-1,o=t[1],s=0,l=7,c=4;for(0===o&&(l=138,c=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)a=o,o=t[2*(r+1)+1],++s<l&&a===o||(s<c?e.bl_tree[2*a]+=s:0!==a?(a!==i&&e.bl_tree[2*a]++,e.bl_tree[2*_]++):s<=10?e.bl_tree[2*C]++:e.bl_tree[2*E]++,s=0,i=a,0===o?(l=138,c=3):a===o?(l=6,c=3):(l=7,c=4))},ae=(e,t,n)=>{let r,a,i=-1,o=t[1],s=0,l=7,c=4;for(0===o&&(l=138,c=3),r=0;r<=n;r++)if(a=o,o=t[2*(r+1)+1],!(++s<l&&a===o)){if(s<c)do{K(e,a,e.bl_tree)}while(0!==--s);else 0!==a?(a!==i&&(K(e,a,e.bl_tree),s--),K(e,_,e.bl_tree),U(e,s-3,2)):s<=10?(K(e,C,e.bl_tree),U(e,s-3,3)):(K(e,E,e.bl_tree),U(e,s-11,7));s=0,i=a,0===o?(l=138,c=3):a===o?(l=6,c=3):(l=7,c=4)}},ie=e=>{let t;for(re(e,e.dyn_ltree,e.l_desc.max_code),re(e,e.dyn_dtree,e.d_desc.max_code),ne(e,e.bl_desc),t=v-1;t>=3;t--)if(0!==e.bl_tree[2*T[t]+1])break;return e.opt_len+=3*(t+1)+5+5+4,t},oe=(e,t,n,r)=>{let a;for(U(e,t-257,5),U(e,n-1,5),U(e,r-4,4),a=0;a<r;a++)U(e,e.bl_tree[2*T[a]+1],3);ae(e,e.dyn_ltree,t-1),ae(e,e.dyn_dtree,n-1)},se=e=>{let t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return a;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return i;for(t=32;t<f;t++)if(0!==e.dyn_ltree[2*t])return i;return a};let le=!1;const ce=e=>{le||(Y(),le=!0),e.l_desc=new W(e.dyn_ltree,$),e.d_desc=new W(e.dyn_dtree,P),e.bl_desc=new W(e.bl_tree,z),e.bi_buf=0,e.bi_valid=0,Q(e)},ue=(e,t,n,r)=>{U(e,(l<<1)+(r?1:0),3),Z(e),V(e,n),V(e,~n),n&&e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n},de=e=>{U(e,c<<1,3),K(e,k,L),q(e)},he=(e,t,n,a)=>{let i,s,l=0;e.level>0?(e.strm.data_type===o&&(e.strm.data_type=se(e)),ne(e,e.l_desc),ne(e,e.d_desc),l=ie(e),i=e.opt_len+3+7>>>3,s=e.static_len+3+7>>>3,s<=i&&(i=s)):i=s=n+5,n+4<=i&&-1!==t?ue(e,t,n,a):e.strategy===r||s===i?(U(e,(c<<1)+(a?1:0),3),te(e,L,O)):(U(e,(u<<1)+(a?1:0),3),oe(e,e.l_desc.max_code+1,e.d_desc.max_code+1,l+1),te(e,e.dyn_ltree,e.dyn_dtree)),Q(e),a&&Z(e)},pe=(e,t,n)=>(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=n,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(N[n]+f+1)]++,e.dyn_dtree[2*j(t)]++),e.sym_next===e.sym_end);var fe=ce,me=ue,ge=he,ve=pe,ye=de,be={_tr_init:fe,_tr_stored_block:me,_tr_flush_block:ge,_tr_tally:ve,_tr_align:ye};const we=(e,t,n,r)=>{let a=65535&e,i=e>>>16&65535,o=0;while(0!==n){o=n>2e3?2e3:n,n-=o;do{a=a+t[r++]|0,i=i+a|0}while(--o);a%=65521,i%=65521}return a|i<<16};var xe=we;const ke=()=>{let e,t=[];for(var n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t},_e=new Uint32Array(ke()),Ce=(e,t,n,r)=>{const a=_e,i=r+n;e^=-1;for(let o=r;o<i;o++)e=e>>>8^a[255&(e^t[o])];return~e};var Ee=Ce,Re={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},Se={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:Ae,_tr_stored_block:Te,_tr_flush_block:Me,_tr_tally:Le,_tr_align:Oe}=be,{Z_NO_FLUSH:Ie,Z_PARTIAL_FLUSH:Ne,Z_FULL_FLUSH:Be,Z_FINISH:De,Z_BLOCK:Fe,Z_OK:$e,Z_STREAM_END:Pe,Z_STREAM_ERROR:ze,Z_DATA_ERROR:We,Z_BUF_ERROR:je,Z_DEFAULT_COMPRESSION:Ve,Z_FILTERED:Ue,Z_HUFFMAN_ONLY:Ke,Z_RLE:He,Z_FIXED:qe,Z_DEFAULT_STRATEGY:Ge,Z_UNKNOWN:Xe,Z_DEFLATED:Ye}=Se,Qe=9,Ze=15,Je=8,et=29,tt=256,nt=tt+1+et,rt=30,at=19,it=2*nt+1,ot=15,st=3,lt=258,ct=lt+st+1,ut=32,dt=42,ht=57,pt=69,ft=73,mt=91,gt=103,vt=113,yt=666,bt=1,wt=2,xt=3,kt=4,_t=3,Ct=(e,t)=>(e.msg=Re[t],t),Et=e=>2*e-(e>4?9:0),Rt=e=>{let t=e.length;while(--t>=0)e[t]=0},St=e=>{let t,n,r,a=e.w_size;t=e.hash_size,r=t;do{n=e.head[--r],e.head[r]=n>=a?n-a:0}while(--t);t=a,r=t;do{n=e.prev[--r],e.prev[r]=n>=a?n-a:0}while(--t)};let At=(e,t,n)=>(t<<e.hash_shift^n)&e.hash_mask,Tt=At;const Mt=e=>{const t=e.state;let n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))},Lt=(e,t)=>{Me(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Mt(e.strm)},Ot=(e,t)=>{e.pending_buf[e.pending++]=t},It=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t},Nt=(e,t,n,r)=>{let a=e.avail_in;return a>r&&(a=r),0===a?0:(e.avail_in-=a,t.set(e.input.subarray(e.next_in,e.next_in+a),n),1===e.state.wrap?e.adler=xe(e.adler,t,a,n):2===e.state.wrap&&(e.adler=Ee(e.adler,t,a,n)),e.next_in+=a,e.total_in+=a,a)},Bt=(e,t)=>{let n,r,a=e.max_chain_length,i=e.strstart,o=e.prev_length,s=e.nice_match;const l=e.strstart>e.w_size-ct?e.strstart-(e.w_size-ct):0,c=e.window,u=e.w_mask,d=e.prev,h=e.strstart+lt;let p=c[i+o-1],f=c[i+o];e.prev_length>=e.good_match&&(a>>=2),s>e.lookahead&&(s=e.lookahead);do{if(n=t,c[n+o]===f&&c[n+o-1]===p&&c[n]===c[i]&&c[++n]===c[i+1]){i+=2,n++;do{}while(c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&i<h);if(r=lt-(h-i),i=h-lt,r>o){if(e.match_start=t,o=r,r>=s)break;p=c[i+o-1],f=c[i+o]}}}while((t=d[t&u])>l&&0!==--a);return o<=e.lookahead?o:e.lookahead},Dt=e=>{const t=e.w_size;let n,r,a;do{if(r=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-ct)&&(e.window.set(e.window.subarray(t,t+t-r),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),St(e),r+=t),0===e.strm.avail_in)break;if(n=Nt(e.strm,e.window,e.strstart+e.lookahead,r),e.lookahead+=n,e.lookahead+e.insert>=st){a=e.strstart-e.insert,e.ins_h=e.window[a],e.ins_h=Tt(e,e.ins_h,e.window[a+1]);while(e.insert)if(e.ins_h=Tt(e,e.ins_h,e.window[a+st-1]),e.prev[a&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=a,a++,e.insert--,e.lookahead+e.insert<st)break}}while(e.lookahead<ct&&0!==e.strm.avail_in)},Ft=(e,t)=>{let n,r,a,i=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,o=0,s=e.strm.avail_in;do{if(n=65535,a=e.bi_valid+42>>3,e.strm.avail_out<a)break;if(a=e.strm.avail_out-a,r=e.strstart-e.block_start,n>r+e.strm.avail_in&&(n=r+e.strm.avail_in),n>a&&(n=a),n<i&&(0===n&&t!==De||t===Ie||n!==r+e.strm.avail_in))break;o=t===De&&n===r+e.strm.avail_in?1:0,Te(e,0,0,o),e.pending_buf[e.pending-4]=n,e.pending_buf[e.pending-3]=n>>8,e.pending_buf[e.pending-2]=~n,e.pending_buf[e.pending-1]=~n>>8,Mt(e.strm),r&&(r>n&&(r=n),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+r),e.strm.next_out),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r,e.block_start+=r,n-=r),n&&(Nt(e.strm,e.strm.output,e.strm.next_out,n),e.strm.next_out+=n,e.strm.avail_out-=n,e.strm.total_out+=n)}while(0===o);return s-=e.strm.avail_in,s&&(s>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=s&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-s,e.strm.next_in),e.strstart),e.strstart+=s,e.insert+=s>e.w_size-e.insert?e.w_size-e.insert:s),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),o?kt:t!==Ie&&t!==De&&0===e.strm.avail_in&&e.strstart===e.block_start?wt:(a=e.window_size-e.strstart,e.strm.avail_in>a&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,a+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),a>e.strm.avail_in&&(a=e.strm.avail_in),a&&(Nt(e.strm,e.window,e.strstart,a),e.strstart+=a,e.insert+=a>e.w_size-e.insert?e.w_size-e.insert:a),e.high_water<e.strstart&&(e.high_water=e.strstart),a=e.bi_valid+42>>3,a=e.pending_buf_size-a>65535?65535:e.pending_buf_size-a,i=a>e.w_size?e.w_size:a,r=e.strstart-e.block_start,(r>=i||(r||t===De)&&t!==Ie&&0===e.strm.avail_in&&r<=a)&&(n=r>a?a:r,o=t===De&&0===e.strm.avail_in&&n===r?1:0,Te(e,e.block_start,n,o),e.block_start+=n,Mt(e.strm)),o?xt:bt)},$t=(e,t)=>{let n,r;for(;;){if(e.lookahead<ct){if(Dt(e),e.lookahead<ct&&t===Ie)return bt;if(0===e.lookahead)break}if(n=0,e.lookahead>=st&&(e.ins_h=Tt(e,e.ins_h,e.window[e.strstart+st-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-ct&&(e.match_length=Bt(e,n)),e.match_length>=st)if(r=Le(e,e.strstart-e.match_start,e.match_length-st),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=st){e.match_length--;do{e.strstart++,e.ins_h=Tt(e,e.ins_h,e.window[e.strstart+st-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!==--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=Tt(e,e.ins_h,e.window[e.strstart+1]);else r=Le(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(Lt(e,!1),0===e.strm.avail_out))return bt}return e.insert=e.strstart<st-1?e.strstart:st-1,t===De?(Lt(e,!0),0===e.strm.avail_out?xt:kt):e.sym_next&&(Lt(e,!1),0===e.strm.avail_out)?bt:wt},Pt=(e,t)=>{let n,r,a;for(;;){if(e.lookahead<ct){if(Dt(e),e.lookahead<ct&&t===Ie)return bt;if(0===e.lookahead)break}if(n=0,e.lookahead>=st&&(e.ins_h=Tt(e,e.ins_h,e.window[e.strstart+st-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=st-1,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-ct&&(e.match_length=Bt(e,n),e.match_length<=5&&(e.strategy===Ue||e.match_length===st&&e.strstart-e.match_start>4096)&&(e.match_length=st-1)),e.prev_length>=st&&e.match_length<=e.prev_length){a=e.strstart+e.lookahead-st,r=Le(e,e.strstart-1-e.prev_match,e.prev_length-st),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=a&&(e.ins_h=Tt(e,e.ins_h,e.window[e.strstart+st-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!==--e.prev_length);if(e.match_available=0,e.match_length=st-1,e.strstart++,r&&(Lt(e,!1),0===e.strm.avail_out))return bt}else if(e.match_available){if(r=Le(e,0,e.window[e.strstart-1]),r&&Lt(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return bt}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=Le(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<st-1?e.strstart:st-1,t===De?(Lt(e,!0),0===e.strm.avail_out?xt:kt):e.sym_next&&(Lt(e,!1),0===e.strm.avail_out)?bt:wt},zt=(e,t)=>{let n,r,a,i;const o=e.window;for(;;){if(e.lookahead<=lt){if(Dt(e),e.lookahead<=lt&&t===Ie)return bt;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=st&&e.strstart>0&&(a=e.strstart-1,r=o[a],r===o[++a]&&r===o[++a]&&r===o[++a])){i=e.strstart+lt;do{}while(r===o[++a]&&r===o[++a]&&r===o[++a]&&r===o[++a]&&r===o[++a]&&r===o[++a]&&r===o[++a]&&r===o[++a]&&a<i);e.match_length=lt-(i-a),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=st?(n=Le(e,1,e.match_length-st),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=Le(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(Lt(e,!1),0===e.strm.avail_out))return bt}return e.insert=0,t===De?(Lt(e,!0),0===e.strm.avail_out?xt:kt):e.sym_next&&(Lt(e,!1),0===e.strm.avail_out)?bt:wt},Wt=(e,t)=>{let n;for(;;){if(0===e.lookahead&&(Dt(e),0===e.lookahead)){if(t===Ie)return bt;break}if(e.match_length=0,n=Le(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(Lt(e,!1),0===e.strm.avail_out))return bt}return e.insert=0,t===De?(Lt(e,!0),0===e.strm.avail_out?xt:kt):e.sym_next&&(Lt(e,!1),0===e.strm.avail_out)?bt:wt};function jt(e,t,n,r,a){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=a}const Vt=[new jt(0,0,0,0,Ft),new jt(4,4,8,4,$t),new jt(4,5,16,8,$t),new jt(4,6,32,32,$t),new jt(4,4,16,16,Pt),new jt(8,16,32,32,Pt),new jt(8,16,128,128,Pt),new jt(8,32,128,256,Pt),new jt(32,128,258,1024,Pt),new jt(32,258,258,4096,Pt)],Ut=e=>{e.window_size=2*e.w_size,Rt(e.head),e.max_lazy_match=Vt[e.level].max_lazy,e.good_match=Vt[e.level].good_length,e.nice_match=Vt[e.level].nice_length,e.max_chain_length=Vt[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=st-1,e.match_available=0,e.ins_h=0};function Kt(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Ye,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(2*it),this.dyn_dtree=new Uint16Array(2*(2*rt+1)),this.bl_tree=new Uint16Array(2*(2*at+1)),Rt(this.dyn_ltree),Rt(this.dyn_dtree),Rt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(ot+1),this.heap=new Uint16Array(2*nt+1),Rt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*nt+1),Rt(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Ht=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.status!==dt&&t.status!==ht&&t.status!==pt&&t.status!==ft&&t.status!==mt&&t.status!==gt&&t.status!==vt&&t.status!==yt?1:0},qt=e=>{if(Ht(e))return Ct(e,ze);e.total_in=e.total_out=0,e.data_type=Xe;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=2===t.wrap?ht:t.wrap?dt:vt,e.adler=2===t.wrap?0:1,t.last_flush=-2,Ae(t),$e},Gt=e=>{const t=qt(e);return t===$e&&Ut(e.state),t},Xt=(e,t)=>Ht(e)||2!==e.state.wrap?ze:(e.state.gzhead=t,$e),Yt=(e,t,n,r,a,i)=>{if(!e)return ze;let o=1;if(t===Ve&&(t=6),r<0?(o=0,r=-r):r>15&&(o=2,r-=16),a<1||a>Qe||n!==Ye||r<8||r>15||t<0||t>9||i<0||i>qe||8===r&&1!==o)return Ct(e,ze);8===r&&(r=9);const s=new Kt;return e.state=s,s.strm=e,s.status=dt,s.wrap=o,s.gzhead=null,s.w_bits=r,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=a+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+st-1)/st),s.window=new Uint8Array(2*s.w_size),s.head=new Uint16Array(s.hash_size),s.prev=new Uint16Array(s.w_size),s.lit_bufsize=1<<a+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new Uint8Array(s.pending_buf_size),s.sym_buf=s.lit_bufsize,s.sym_end=3*(s.lit_bufsize-1),s.level=t,s.strategy=i,s.method=n,Gt(e)},Qt=(e,t)=>Yt(e,t,Ye,Ze,Je,Ge),Zt=(e,t)=>{if(Ht(e)||t>Fe||t<0)return e?Ct(e,ze):ze;const n=e.state;if(!e.output||0!==e.avail_in&&!e.input||n.status===yt&&t!==De)return Ct(e,0===e.avail_out?je:ze);const r=n.last_flush;if(n.last_flush=t,0!==n.pending){if(Mt(e),0===e.avail_out)return n.last_flush=-1,$e}else if(0===e.avail_in&&Et(t)<=Et(r)&&t!==De)return Ct(e,je);if(n.status===yt&&0!==e.avail_in)return Ct(e,je);if(n.status===dt&&0===n.wrap&&(n.status=vt),n.status===dt){let t=Ye+(n.w_bits-8<<4)<<8,r=-1;if(r=n.strategy>=Ke||n.level<2?0:n.level<6?1:6===n.level?2:3,t|=r<<6,0!==n.strstart&&(t|=ut),t+=31-t%31,It(n,t),0!==n.strstart&&(It(n,e.adler>>>16),It(n,65535&e.adler)),e.adler=1,n.status=vt,Mt(e),0!==n.pending)return n.last_flush=-1,$e}if(n.status===ht)if(e.adler=0,Ot(n,31),Ot(n,139),Ot(n,8),n.gzhead)Ot(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),Ot(n,255&n.gzhead.time),Ot(n,n.gzhead.time>>8&255),Ot(n,n.gzhead.time>>16&255),Ot(n,n.gzhead.time>>24&255),Ot(n,9===n.level?2:n.strategy>=Ke||n.level<2?4:0),Ot(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(Ot(n,255&n.gzhead.extra.length),Ot(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=Ee(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=pt;else if(Ot(n,0),Ot(n,0),Ot(n,0),Ot(n,0),Ot(n,0),Ot(n,9===n.level?2:n.strategy>=Ke||n.level<2?4:0),Ot(n,_t),n.status=vt,Mt(e),0!==n.pending)return n.last_flush=-1,$e;if(n.status===pt){if(n.gzhead.extra){let t=n.pending,r=(65535&n.gzhead.extra.length)-n.gzindex;while(n.pending+r>n.pending_buf_size){let a=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+a),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>t&&(e.adler=Ee(e.adler,n.pending_buf,n.pending-t,t)),n.gzindex+=a,Mt(e),0!==n.pending)return n.last_flush=-1,$e;t=0,r-=a}let a=new Uint8Array(n.gzhead.extra);n.pending_buf.set(a.subarray(n.gzindex,n.gzindex+r),n.pending),n.pending+=r,n.gzhead.hcrc&&n.pending>t&&(e.adler=Ee(e.adler,n.pending_buf,n.pending-t,t)),n.gzindex=0}n.status=ft}if(n.status===ft){if(n.gzhead.name){let t,r=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>r&&(e.adler=Ee(e.adler,n.pending_buf,n.pending-r,r)),Mt(e),0!==n.pending)return n.last_flush=-1,$e;r=0}t=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,Ot(n,t)}while(0!==t);n.gzhead.hcrc&&n.pending>r&&(e.adler=Ee(e.adler,n.pending_buf,n.pending-r,r)),n.gzindex=0}n.status=mt}if(n.status===mt){if(n.gzhead.comment){let t,r=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>r&&(e.adler=Ee(e.adler,n.pending_buf,n.pending-r,r)),Mt(e),0!==n.pending)return n.last_flush=-1,$e;r=0}t=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,Ot(n,t)}while(0!==t);n.gzhead.hcrc&&n.pending>r&&(e.adler=Ee(e.adler,n.pending_buf,n.pending-r,r))}n.status=gt}if(n.status===gt){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(Mt(e),0!==n.pending))return n.last_flush=-1,$e;Ot(n,255&e.adler),Ot(n,e.adler>>8&255),e.adler=0}if(n.status=vt,Mt(e),0!==n.pending)return n.last_flush=-1,$e}if(0!==e.avail_in||0!==n.lookahead||t!==Ie&&n.status!==yt){let r=0===n.level?Ft(n,t):n.strategy===Ke?Wt(n,t):n.strategy===He?zt(n,t):Vt[n.level].func(n,t);if(r!==xt&&r!==kt||(n.status=yt),r===bt||r===xt)return 0===e.avail_out&&(n.last_flush=-1),$e;if(r===wt&&(t===Ne?Oe(n):t!==Fe&&(Te(n,0,0,!1),t===Be&&(Rt(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),Mt(e),0===e.avail_out))return n.last_flush=-1,$e}return t!==De?$e:n.wrap<=0?Pe:(2===n.wrap?(Ot(n,255&e.adler),Ot(n,e.adler>>8&255),Ot(n,e.adler>>16&255),Ot(n,e.adler>>24&255),Ot(n,255&e.total_in),Ot(n,e.total_in>>8&255),Ot(n,e.total_in>>16&255),Ot(n,e.total_in>>24&255)):(It(n,e.adler>>>16),It(n,65535&e.adler)),Mt(e),n.wrap>0&&(n.wrap=-n.wrap),0!==n.pending?$e:Pe)},Jt=e=>{if(Ht(e))return ze;const t=e.state.status;return e.state=null,t===vt?Ct(e,We):$e},en=(e,t)=>{let n=t.length;if(Ht(e))return ze;const r=e.state,a=r.wrap;if(2===a||1===a&&r.status!==dt||r.lookahead)return ze;if(1===a&&(e.adler=xe(e.adler,t,n,0)),r.wrap=0,n>=r.w_size){0===a&&(Rt(r.head),r.strstart=0,r.block_start=0,r.insert=0);let e=new Uint8Array(r.w_size);e.set(t.subarray(n-r.w_size,n),0),t=e,n=r.w_size}const i=e.avail_in,o=e.next_in,s=e.input;e.avail_in=n,e.next_in=0,e.input=t,Dt(r);while(r.lookahead>=st){let e=r.strstart,t=r.lookahead-(st-1);do{r.ins_h=Tt(r,r.ins_h,r.window[e+st-1]),r.prev[e&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=e,e++}while(--t);r.strstart=e,r.lookahead=st-1,Dt(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=st-1,r.match_available=0,e.next_in=o,e.input=s,e.avail_in=i,r.wrap=a,$e};var tn=Qt,nn=Yt,rn=Gt,an=qt,on=Xt,sn=Zt,ln=Jt,cn=en,un="pako deflate (from Nodeca project)",dn={deflateInit:tn,deflateInit2:nn,deflateReset:rn,deflateResetKeep:an,deflateSetHeader:on,deflate:sn,deflateEnd:ln,deflateSetDictionary:cn,deflateInfo:un};const hn=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var pn=function(e){const t=Array.prototype.slice.call(arguments,1);while(t.length){const n=t.shift();if(n){if("object"!==typeof n)throw new TypeError(n+"must be non-object");for(const t in n)hn(n,t)&&(e[t]=n[t])}}return e},fn=e=>{let t=0;for(let r=0,a=e.length;r<a;r++)t+=e[r].length;const n=new Uint8Array(t);for(let r=0,a=0,i=e.length;r<i;r++){let t=e[r];n.set(t,a),a+=t.length}return n},mn={assign:pn,flattenChunks:fn};let gn=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(ii){gn=!1}const vn=new Uint8Array(256);for(let oi=0;oi<256;oi++)vn[oi]=oi>=252?6:oi>=248?5:oi>=240?4:oi>=224?3:oi>=192?2:1;vn[254]=vn[254]=1;var yn=e=>{if("function"===typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(e);let t,n,r,a,i,o=e.length,s=0;for(a=0;a<o;a++)n=e.charCodeAt(a),55296===(64512&n)&&a+1<o&&(r=e.charCodeAt(a+1),56320===(64512&r)&&(n=65536+(n-55296<<10)+(r-56320),a++)),s+=n<128?1:n<2048?2:n<65536?3:4;for(t=new Uint8Array(s),i=0,a=0;i<s;a++)n=e.charCodeAt(a),55296===(64512&n)&&a+1<o&&(r=e.charCodeAt(a+1),56320===(64512&r)&&(n=65536+(n-55296<<10)+(r-56320),a++)),n<128?t[i++]=n:n<2048?(t[i++]=192|n>>>6,t[i++]=128|63&n):n<65536?(t[i++]=224|n>>>12,t[i++]=128|n>>>6&63,t[i++]=128|63&n):(t[i++]=240|n>>>18,t[i++]=128|n>>>12&63,t[i++]=128|n>>>6&63,t[i++]=128|63&n);return t};const bn=(e,t)=>{if(t<65534&&e.subarray&&gn)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let n="";for(let r=0;r<t;r++)n+=String.fromCharCode(e[r]);return n};var wn=(e,t)=>{const n=t||e.length;if("function"===typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(e.subarray(0,t));let r,a;const i=new Array(2*n);for(a=0,r=0;r<n;){let t=e[r++];if(t<128){i[a++]=t;continue}let o=vn[t];if(o>4)i[a++]=65533,r+=o-1;else{t&=2===o?31:3===o?15:7;while(o>1&&r<n)t=t<<6|63&e[r++],o--;o>1?i[a++]=65533:t<65536?i[a++]=t:(t-=65536,i[a++]=55296|t>>10&1023,i[a++]=56320|1023&t)}}return bn(i,a)},xn=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let n=t-1;while(n>=0&&128===(192&e[n]))n--;return n<0||0===n?t:n+vn[e[n]]>t?n:t},kn={string2buf:yn,buf2string:wn,utf8border:xn};function _n(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var Cn=_n;const En=Object.prototype.toString,{Z_NO_FLUSH:Rn,Z_SYNC_FLUSH:Sn,Z_FULL_FLUSH:An,Z_FINISH:Tn,Z_OK:Mn,Z_STREAM_END:Ln,Z_DEFAULT_COMPRESSION:On,Z_DEFAULT_STRATEGY:In,Z_DEFLATED:Nn}=Se;function Bn(e){this.options=mn.assign({level:On,method:Nn,chunkSize:16384,windowBits:15,memLevel:8,strategy:In},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Cn,this.strm.avail_out=0;let n=dn.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==Mn)throw new Error(Re[n]);if(t.header&&dn.deflateSetHeader(this.strm,t.header),t.dictionary){let e;if(e="string"===typeof t.dictionary?kn.string2buf(t.dictionary):"[object ArrayBuffer]"===En.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,n=dn.deflateSetDictionary(this.strm,e),n!==Mn)throw new Error(Re[n]);this._dict_set=!0}}function Dn(e,t){const n=new Bn(t);if(n.push(e,!0),n.err)throw n.msg||Re[n.err];return n.result}function Fn(e,t){return t=t||{},t.raw=!0,Dn(e,t)}function $n(e,t){return t=t||{},t.gzip=!0,Dn(e,t)}Bn.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize;let a,i;if(this.ended)return!1;for(i=t===~~t?t:!0===t?Tn:Rn,"string"===typeof e?n.input=kn.string2buf(e):"[object ArrayBuffer]"===En.call(e)?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;)if(0===n.avail_out&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),(i===Sn||i===An)&&n.avail_out<=6)this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;else{if(a=dn.deflate(n,i),a===Ln)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),a=dn.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===Mn;if(0!==n.avail_out){if(i>0&&n.next_out>0)this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;else if(0===n.avail_in)break}else this.onData(n.output)}return!0},Bn.prototype.onData=function(e){this.chunks.push(e)},Bn.prototype.onEnd=function(e){e===Mn&&(this.result=mn.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var Pn=Bn,zn=Dn,Wn=Fn,jn=$n,Vn=Se,Un={Deflate:Pn,deflate:zn,deflateRaw:Wn,gzip:jn,constants:Vn};const Kn=16209,Hn=16191;var qn=function(e,t){let n,r,a,i,o,s,l,c,u,d,h,p,f,m,g,v,y,b,w,x,k,_,C,E;const R=e.state;n=e.next_in,C=e.input,r=n+(e.avail_in-5),a=e.next_out,E=e.output,i=a-(t-e.avail_out),o=a+(e.avail_out-257),s=R.dmax,l=R.wsize,c=R.whave,u=R.wnext,d=R.window,h=R.hold,p=R.bits,f=R.lencode,m=R.distcode,g=(1<<R.lenbits)-1,v=(1<<R.distbits)-1;e:do{p<15&&(h+=C[n++]<<p,p+=8,h+=C[n++]<<p,p+=8),y=f[h&g];t:for(;;){if(b=y>>>24,h>>>=b,p-=b,b=y>>>16&255,0===b)E[a++]=65535&y;else{if(!(16&b)){if(0===(64&b)){y=f[(65535&y)+(h&(1<<b)-1)];continue t}if(32&b){R.mode=Hn;break e}e.msg="invalid literal/length code",R.mode=Kn;break e}w=65535&y,b&=15,b&&(p<b&&(h+=C[n++]<<p,p+=8),w+=h&(1<<b)-1,h>>>=b,p-=b),p<15&&(h+=C[n++]<<p,p+=8,h+=C[n++]<<p,p+=8),y=m[h&v];n:for(;;){if(b=y>>>24,h>>>=b,p-=b,b=y>>>16&255,!(16&b)){if(0===(64&b)){y=m[(65535&y)+(h&(1<<b)-1)];continue n}e.msg="invalid distance code",R.mode=Kn;break e}if(x=65535&y,b&=15,p<b&&(h+=C[n++]<<p,p+=8,p<b&&(h+=C[n++]<<p,p+=8)),x+=h&(1<<b)-1,x>s){e.msg="invalid distance too far back",R.mode=Kn;break e}if(h>>>=b,p-=b,b=a-i,x>b){if(b=x-b,b>c&&R.sane){e.msg="invalid distance too far back",R.mode=Kn;break e}if(k=0,_=d,0===u){if(k+=l-b,b<w){w-=b;do{E[a++]=d[k++]}while(--b);k=a-x,_=E}}else if(u<b){if(k+=l+u-b,b-=u,b<w){w-=b;do{E[a++]=d[k++]}while(--b);if(k=0,u<w){b=u,w-=b;do{E[a++]=d[k++]}while(--b);k=a-x,_=E}}}else if(k+=u-b,b<w){w-=b;do{E[a++]=d[k++]}while(--b);k=a-x,_=E}while(w>2)E[a++]=_[k++],E[a++]=_[k++],E[a++]=_[k++],w-=3;w&&(E[a++]=_[k++],w>1&&(E[a++]=_[k++]))}else{k=a-x;do{E[a++]=E[k++],E[a++]=E[k++],E[a++]=E[k++],w-=3}while(w>2);w&&(E[a++]=E[k++],w>1&&(E[a++]=E[k++]))}break}}break}}while(n<r&&a<o);w=p>>3,n-=w,p-=w<<3,h&=(1<<p)-1,e.next_in=n,e.next_out=a,e.avail_in=n<r?r-n+5:5-(n-r),e.avail_out=a<o?o-a+257:257-(a-o),R.hold=h,R.bits=p};const Gn=15,Xn=852,Yn=592,Qn=0,Zn=1,Jn=2,er=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),tr=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),nr=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),rr=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),ar=(e,t,n,r,a,i,o,s)=>{const l=s.bits;let c,u,d,h,p,f,m=0,g=0,v=0,y=0,b=0,w=0,x=0,k=0,_=0,C=0,E=null;const R=new Uint16Array(Gn+1),S=new Uint16Array(Gn+1);let A,T,M,L=null;for(m=0;m<=Gn;m++)R[m]=0;for(g=0;g<r;g++)R[t[n+g]]++;for(b=l,y=Gn;y>=1;y--)if(0!==R[y])break;if(b>y&&(b=y),0===y)return a[i++]=20971520,a[i++]=20971520,s.bits=1,0;for(v=1;v<y;v++)if(0!==R[v])break;for(b<v&&(b=v),k=1,m=1;m<=Gn;m++)if(k<<=1,k-=R[m],k<0)return-1;if(k>0&&(e===Qn||1!==y))return-1;for(S[1]=0,m=1;m<Gn;m++)S[m+1]=S[m]+R[m];for(g=0;g<r;g++)0!==t[n+g]&&(o[S[t[n+g]]++]=g);if(e===Qn?(E=L=o,f=20):e===Zn?(E=er,L=tr,f=257):(E=nr,L=rr,f=0),C=0,g=0,m=v,p=i,w=b,x=0,d=-1,_=1<<b,h=_-1,e===Zn&&_>Xn||e===Jn&&_>Yn)return 1;for(;;){A=m-x,o[g]+1<f?(T=0,M=o[g]):o[g]>=f?(T=L[o[g]-f],M=E[o[g]-f]):(T=96,M=0),c=1<<m-x,u=1<<w,v=u;do{u-=c,a[p+(C>>x)+u]=A<<24|T<<16|M}while(0!==u);c=1<<m-1;while(C&c)c>>=1;if(0!==c?(C&=c-1,C+=c):C=0,g++,0===--R[m]){if(m===y)break;m=t[n+o[g]]}if(m>b&&(C&h)!==d){0===x&&(x=b),p+=v,w=m-x,k=1<<w;while(w+x<y){if(k-=R[w+x],k<=0)break;w++,k<<=1}if(_+=1<<w,e===Zn&&_>Xn||e===Jn&&_>Yn)return 1;d=C&h,a[d]=b<<24|w<<16|p-i}}return 0!==C&&(a[p+C]=m-x<<24|64<<16),s.bits=b,0};var ir=ar;const or=0,sr=1,lr=2,{Z_FINISH:cr,Z_BLOCK:ur,Z_TREES:dr,Z_OK:hr,Z_STREAM_END:pr,Z_NEED_DICT:fr,Z_STREAM_ERROR:mr,Z_DATA_ERROR:gr,Z_MEM_ERROR:vr,Z_BUF_ERROR:yr,Z_DEFLATED:br}=Se,wr=16180,xr=16181,kr=16182,_r=16183,Cr=16184,Er=16185,Rr=16186,Sr=16187,Ar=16188,Tr=16189,Mr=16190,Lr=16191,Or=16192,Ir=16193,Nr=16194,Br=16195,Dr=16196,Fr=16197,$r=16198,Pr=16199,zr=16200,Wr=16201,jr=16202,Vr=16203,Ur=16204,Kr=16205,Hr=16206,qr=16207,Gr=16208,Xr=16209,Yr=16210,Qr=16211,Zr=852,Jr=592,ea=15,ta=ea,na=e=>(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24);function ra(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const aa=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.mode<wr||t.mode>Qr?1:0},ia=e=>{if(aa(e))return mr;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=wr,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(Zr),t.distcode=t.distdyn=new Int32Array(Jr),t.sane=1,t.back=-1,hr},oa=e=>{if(aa(e))return mr;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,ia(e)},sa=(e,t)=>{let n;if(aa(e))return mr;const r=e.state;return t<0?(n=0,t=-t):(n=5+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?mr:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,oa(e))},la=(e,t)=>{if(!e)return mr;const n=new ra;e.state=n,n.strm=e,n.window=null,n.mode=wr;const r=sa(e,t);return r!==hr&&(e.state=null),r},ca=e=>la(e,ta);let ua,da,ha=!0;const pa=e=>{if(ha){ua=new Int32Array(512),da=new Int32Array(32);let t=0;while(t<144)e.lens[t++]=8;while(t<256)e.lens[t++]=9;while(t<280)e.lens[t++]=7;while(t<288)e.lens[t++]=8;ir(sr,e.lens,0,288,ua,0,e.work,{bits:9}),t=0;while(t<32)e.lens[t++]=5;ir(lr,e.lens,0,32,da,0,e.work,{bits:5}),ha=!1}e.lencode=ua,e.lenbits=9,e.distcode=da,e.distbits=5},fa=(e,t,n,r)=>{let a;const i=e.state;return null===i.window&&(i.wsize=1<<i.wbits,i.wnext=0,i.whave=0,i.window=new Uint8Array(i.wsize)),r>=i.wsize?(i.window.set(t.subarray(n-i.wsize,n),0),i.wnext=0,i.whave=i.wsize):(a=i.wsize-i.wnext,a>r&&(a=r),i.window.set(t.subarray(n-r,n-r+a),i.wnext),r-=a,r?(i.window.set(t.subarray(n-r,n),0),i.wnext=r,i.whave=i.wsize):(i.wnext+=a,i.wnext===i.wsize&&(i.wnext=0),i.whave<i.wsize&&(i.whave+=a))),0},ma=(e,t)=>{let n,r,a,i,o,s,l,c,u,d,h,p,f,m,g,v,y,b,w,x,k,_,C=0;const E=new Uint8Array(4);let R,S;const A=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(aa(e)||!e.output||!e.input&&0!==e.avail_in)return mr;n=e.state,n.mode===Lr&&(n.mode=Or),o=e.next_out,a=e.output,l=e.avail_out,i=e.next_in,r=e.input,s=e.avail_in,c=n.hold,u=n.bits,d=s,h=l,_=hr;e:for(;;)switch(n.mode){case wr:if(0===n.wrap){n.mode=Or;break}while(u<16){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}if(2&n.wrap&&35615===c){0===n.wbits&&(n.wbits=15),n.check=0,E[0]=255&c,E[1]=c>>>8&255,n.check=Ee(n.check,E,2,0),c=0,u=0,n.mode=xr;break}if(n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&c)<<8)+(c>>8))%31){e.msg="incorrect header check",n.mode=Xr;break}if((15&c)!==br){e.msg="unknown compression method",n.mode=Xr;break}if(c>>>=4,u-=4,k=8+(15&c),0===n.wbits&&(n.wbits=k),k>15||k>n.wbits){e.msg="invalid window size",n.mode=Xr;break}n.dmax=1<<n.wbits,n.flags=0,e.adler=n.check=1,n.mode=512&c?Tr:Lr,c=0,u=0;break;case xr:while(u<16){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}if(n.flags=c,(255&n.flags)!==br){e.msg="unknown compression method",n.mode=Xr;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=Xr;break}n.head&&(n.head.text=c>>8&1),512&n.flags&&4&n.wrap&&(E[0]=255&c,E[1]=c>>>8&255,n.check=Ee(n.check,E,2,0)),c=0,u=0,n.mode=kr;case kr:while(u<32){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}n.head&&(n.head.time=c),512&n.flags&&4&n.wrap&&(E[0]=255&c,E[1]=c>>>8&255,E[2]=c>>>16&255,E[3]=c>>>24&255,n.check=Ee(n.check,E,4,0)),c=0,u=0,n.mode=_r;case _r:while(u<16){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}n.head&&(n.head.xflags=255&c,n.head.os=c>>8),512&n.flags&&4&n.wrap&&(E[0]=255&c,E[1]=c>>>8&255,n.check=Ee(n.check,E,2,0)),c=0,u=0,n.mode=Cr;case Cr:if(1024&n.flags){while(u<16){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}n.length=c,n.head&&(n.head.extra_len=c),512&n.flags&&4&n.wrap&&(E[0]=255&c,E[1]=c>>>8&255,n.check=Ee(n.check,E,2,0)),c=0,u=0}else n.head&&(n.head.extra=null);n.mode=Er;case Er:if(1024&n.flags&&(p=n.length,p>s&&(p=s),p&&(n.head&&(k=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(i,i+p),k)),512&n.flags&&4&n.wrap&&(n.check=Ee(n.check,r,p,i)),s-=p,i+=p,n.length-=p),n.length))break e;n.length=0,n.mode=Rr;case Rr:if(2048&n.flags){if(0===s)break e;p=0;do{k=r[i+p++],n.head&&k&&n.length<65536&&(n.head.name+=String.fromCharCode(k))}while(k&&p<s);if(512&n.flags&&4&n.wrap&&(n.check=Ee(n.check,r,p,i)),s-=p,i+=p,k)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=Sr;case Sr:if(4096&n.flags){if(0===s)break e;p=0;do{k=r[i+p++],n.head&&k&&n.length<65536&&(n.head.comment+=String.fromCharCode(k))}while(k&&p<s);if(512&n.flags&&4&n.wrap&&(n.check=Ee(n.check,r,p,i)),s-=p,i+=p,k)break e}else n.head&&(n.head.comment=null);n.mode=Ar;case Ar:if(512&n.flags){while(u<16){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}if(4&n.wrap&&c!==(65535&n.check)){e.msg="header crc mismatch",n.mode=Xr;break}c=0,u=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=Lr;break;case Tr:while(u<32){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}e.adler=n.check=na(c),c=0,u=0,n.mode=Mr;case Mr:if(0===n.havedict)return e.next_out=o,e.avail_out=l,e.next_in=i,e.avail_in=s,n.hold=c,n.bits=u,fr;e.adler=n.check=1,n.mode=Lr;case Lr:if(t===ur||t===dr)break e;case Or:if(n.last){c>>>=7&u,u-=7&u,n.mode=Hr;break}while(u<3){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}switch(n.last=1&c,c>>>=1,u-=1,3&c){case 0:n.mode=Ir;break;case 1:if(pa(n),n.mode=Pr,t===dr){c>>>=2,u-=2;break e}break;case 2:n.mode=Dr;break;case 3:e.msg="invalid block type",n.mode=Xr}c>>>=2,u-=2;break;case Ir:c>>>=7&u,u-=7&u;while(u<32){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}if((65535&c)!==(c>>>16^65535)){e.msg="invalid stored block lengths",n.mode=Xr;break}if(n.length=65535&c,c=0,u=0,n.mode=Nr,t===dr)break e;case Nr:n.mode=Br;case Br:if(p=n.length,p){if(p>s&&(p=s),p>l&&(p=l),0===p)break e;a.set(r.subarray(i,i+p),o),s-=p,i+=p,l-=p,o+=p,n.length-=p;break}n.mode=Lr;break;case Dr:while(u<14){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}if(n.nlen=257+(31&c),c>>>=5,u-=5,n.ndist=1+(31&c),c>>>=5,u-=5,n.ncode=4+(15&c),c>>>=4,u-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=Xr;break}n.have=0,n.mode=Fr;case Fr:while(n.have<n.ncode){while(u<3){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}n.lens[A[n.have++]]=7&c,c>>>=3,u-=3}while(n.have<19)n.lens[A[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,R={bits:n.lenbits},_=ir(or,n.lens,0,19,n.lencode,0,n.work,R),n.lenbits=R.bits,_){e.msg="invalid code lengths set",n.mode=Xr;break}n.have=0,n.mode=$r;case $r:while(n.have<n.nlen+n.ndist){for(;;){if(C=n.lencode[c&(1<<n.lenbits)-1],g=C>>>24,v=C>>>16&255,y=65535&C,g<=u)break;if(0===s)break e;s--,c+=r[i++]<<u,u+=8}if(y<16)c>>>=g,u-=g,n.lens[n.have++]=y;else{if(16===y){S=g+2;while(u<S){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}if(c>>>=g,u-=g,0===n.have){e.msg="invalid bit length repeat",n.mode=Xr;break}k=n.lens[n.have-1],p=3+(3&c),c>>>=2,u-=2}else if(17===y){S=g+3;while(u<S){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}c>>>=g,u-=g,k=0,p=3+(7&c),c>>>=3,u-=3}else{S=g+7;while(u<S){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}c>>>=g,u-=g,k=0,p=11+(127&c),c>>>=7,u-=7}if(n.have+p>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=Xr;break}while(p--)n.lens[n.have++]=k}}if(n.mode===Xr)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=Xr;break}if(n.lenbits=9,R={bits:n.lenbits},_=ir(sr,n.lens,0,n.nlen,n.lencode,0,n.work,R),n.lenbits=R.bits,_){e.msg="invalid literal/lengths set",n.mode=Xr;break}if(n.distbits=6,n.distcode=n.distdyn,R={bits:n.distbits},_=ir(lr,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,R),n.distbits=R.bits,_){e.msg="invalid distances set",n.mode=Xr;break}if(n.mode=Pr,t===dr)break e;case Pr:n.mode=zr;case zr:if(s>=6&&l>=258){e.next_out=o,e.avail_out=l,e.next_in=i,e.avail_in=s,n.hold=c,n.bits=u,qn(e,h),o=e.next_out,a=e.output,l=e.avail_out,i=e.next_in,r=e.input,s=e.avail_in,c=n.hold,u=n.bits,n.mode===Lr&&(n.back=-1);break}for(n.back=0;;){if(C=n.lencode[c&(1<<n.lenbits)-1],g=C>>>24,v=C>>>16&255,y=65535&C,g<=u)break;if(0===s)break e;s--,c+=r[i++]<<u,u+=8}if(v&&0===(240&v)){for(b=g,w=v,x=y;;){if(C=n.lencode[x+((c&(1<<b+w)-1)>>b)],g=C>>>24,v=C>>>16&255,y=65535&C,b+g<=u)break;if(0===s)break e;s--,c+=r[i++]<<u,u+=8}c>>>=b,u-=b,n.back+=b}if(c>>>=g,u-=g,n.back+=g,n.length=y,0===v){n.mode=Kr;break}if(32&v){n.back=-1,n.mode=Lr;break}if(64&v){e.msg="invalid literal/length code",n.mode=Xr;break}n.extra=15&v,n.mode=Wr;case Wr:if(n.extra){S=n.extra;while(u<S){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}n.length+=c&(1<<n.extra)-1,c>>>=n.extra,u-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=jr;case jr:for(;;){if(C=n.distcode[c&(1<<n.distbits)-1],g=C>>>24,v=C>>>16&255,y=65535&C,g<=u)break;if(0===s)break e;s--,c+=r[i++]<<u,u+=8}if(0===(240&v)){for(b=g,w=v,x=y;;){if(C=n.distcode[x+((c&(1<<b+w)-1)>>b)],g=C>>>24,v=C>>>16&255,y=65535&C,b+g<=u)break;if(0===s)break e;s--,c+=r[i++]<<u,u+=8}c>>>=b,u-=b,n.back+=b}if(c>>>=g,u-=g,n.back+=g,64&v){e.msg="invalid distance code",n.mode=Xr;break}n.offset=y,n.extra=15&v,n.mode=Vr;case Vr:if(n.extra){S=n.extra;while(u<S){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}n.offset+=c&(1<<n.extra)-1,c>>>=n.extra,u-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=Xr;break}n.mode=Ur;case Ur:if(0===l)break e;if(p=h-l,n.offset>p){if(p=n.offset-p,p>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=Xr;break}p>n.wnext?(p-=n.wnext,f=n.wsize-p):f=n.wnext-p,p>n.length&&(p=n.length),m=n.window}else m=a,f=o-n.offset,p=n.length;p>l&&(p=l),l-=p,n.length-=p;do{a[o++]=m[f++]}while(--p);0===n.length&&(n.mode=zr);break;case Kr:if(0===l)break e;a[o++]=n.length,l--,n.mode=zr;break;case Hr:if(n.wrap){while(u<32){if(0===s)break e;s--,c|=r[i++]<<u,u+=8}if(h-=l,e.total_out+=h,n.total+=h,4&n.wrap&&h&&(e.adler=n.check=n.flags?Ee(n.check,a,h,o-h):xe(n.check,a,h,o-h)),h=l,4&n.wrap&&(n.flags?c:na(c))!==n.check){e.msg="incorrect data check",n.mode=Xr;break}c=0,u=0}n.mode=qr;case qr:if(n.wrap&&n.flags){while(u<32){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}if(4&n.wrap&&c!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=Xr;break}c=0,u=0}n.mode=Gr;case Gr:_=pr;break e;case Xr:_=gr;break e;case Yr:return vr;case Qr:default:return mr}return e.next_out=o,e.avail_out=l,e.next_in=i,e.avail_in=s,n.hold=c,n.bits=u,(n.wsize||h!==e.avail_out&&n.mode<Xr&&(n.mode<Hr||t!==cr))&&fa(e,e.output,e.next_out,h-e.avail_out),d-=e.avail_in,h-=e.avail_out,e.total_in+=d,e.total_out+=h,n.total+=h,4&n.wrap&&h&&(e.adler=n.check=n.flags?Ee(n.check,a,h,e.next_out-h):xe(n.check,a,h,e.next_out-h)),e.data_type=n.bits+(n.last?64:0)+(n.mode===Lr?128:0)+(n.mode===Pr||n.mode===Nr?256:0),(0===d&&0===h||t===cr)&&_===hr&&(_=yr),_},ga=e=>{if(aa(e))return mr;let t=e.state;return t.window&&(t.window=null),e.state=null,hr},va=(e,t)=>{if(aa(e))return mr;const n=e.state;return 0===(2&n.wrap)?mr:(n.head=t,t.done=!1,hr)},ya=(e,t)=>{const n=t.length;let r,a,i;return aa(e)?mr:(r=e.state,0!==r.wrap&&r.mode!==Mr?mr:r.mode===Mr&&(a=1,a=xe(a,t,n,0),a!==r.check)?gr:(i=fa(e,t,n,n),i?(r.mode=Yr,vr):(r.havedict=1,hr)))};var ba=oa,wa=sa,xa=ia,ka=ca,_a=la,Ca=ma,Ea=ga,Ra=va,Sa=ya,Aa="pako inflate (from Nodeca project)",Ta={inflateReset:ba,inflateReset2:wa,inflateResetKeep:xa,inflateInit:ka,inflateInit2:_a,inflate:Ca,inflateEnd:Ea,inflateGetHeader:Ra,inflateSetDictionary:Sa,inflateInfo:Aa};function Ma(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var La=Ma;const Oa=Object.prototype.toString,{Z_NO_FLUSH:Ia,Z_FINISH:Na,Z_OK:Ba,Z_STREAM_END:Da,Z_NEED_DICT:Fa,Z_STREAM_ERROR:$a,Z_DATA_ERROR:Pa,Z_MEM_ERROR:za}=Se;function Wa(e){this.options=mn.assign({chunkSize:65536,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0===(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Cn,this.strm.avail_out=0;let n=Ta.inflateInit2(this.strm,t.windowBits);if(n!==Ba)throw new Error(Re[n]);if(this.header=new La,Ta.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"===typeof t.dictionary?t.dictionary=kn.string2buf(t.dictionary):"[object ArrayBuffer]"===Oa.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=Ta.inflateSetDictionary(this.strm,t.dictionary),n!==Ba)))throw new Error(Re[n])}function ja(e,t){const n=new Wa(t);if(n.push(e),n.err)throw n.msg||Re[n.err];return n.result}function Va(e,t){return t=t||{},t.raw=!0,ja(e,t)}Wa.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize,a=this.options.dictionary;let i,o,s;if(this.ended)return!1;for(o=t===~~t?t:!0===t?Na:Ia,"[object ArrayBuffer]"===Oa.call(e)?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){0===n.avail_out&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),i=Ta.inflate(n,o),i===Fa&&a&&(i=Ta.inflateSetDictionary(n,a),i===Ba?i=Ta.inflate(n,o):i===Pa&&(i=Fa));while(n.avail_in>0&&i===Da&&n.state.wrap>0&&0!==e[n.next_in])Ta.inflateReset(n),i=Ta.inflate(n,o);switch(i){case $a:case Pa:case Fa:case za:return this.onEnd(i),this.ended=!0,!1}if(s=n.avail_out,n.next_out&&(0===n.avail_out||i===Da))if("string"===this.options.to){let e=kn.utf8border(n.output,n.next_out),t=n.next_out-e,a=kn.buf2string(n.output,e);n.next_out=t,n.avail_out=r-t,t&&n.output.set(n.output.subarray(e,e+t),0),this.onData(a)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(i!==Ba||0!==s){if(i===Da)return i=Ta.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,!0;if(0===n.avail_in)break}}return!0},Wa.prototype.onData=function(e){this.chunks.push(e)},Wa.prototype.onEnd=function(e){e===Ba&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=mn.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var Ua=Wa,Ka=ja,Ha=Va,qa=ja,Ga=Se,Xa={Inflate:Ua,inflate:Ka,inflateRaw:Ha,ungzip:qa,constants:Ga};const{Deflate:Ya,deflate:Qa,deflateRaw:Za,gzip:Ja}=Un,{Inflate:ei,inflate:ti,inflateRaw:ni,ungzip:ri}=Xa;var ai=Ja},5931:function(e,t,n){"use strict";n.d(t,{hU:function(){return sr},s9:function(){return lr}});n(4114),n(8992),n(4520),n(2577),n(3949),n(1454),n(8872),n(7642),n(8004),n(3853),n(5876),n(2475),n(5024),n(1698);
/*!
* shared v11.1.0
* (c) 2025 kazuya kawaguchi
* Released under the MIT License.
*/
const r="undefined"!==typeof window;const a=(e,t=!1)=>t?Symbol.for(e):Symbol(e),i=(e,t,n)=>o({l:e,k:t,s:n}),o=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),s=e=>"number"===typeof e&&isFinite(e),l=e=>"[object Date]"===R(e),c=e=>"[object RegExp]"===R(e),u=e=>S(e)&&0===Object.keys(e).length,d=Object.assign,h=Object.create,p=(e=null)=>h(e);let f;const m=()=>f||(f="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof global?global:p());function g(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const v=Object.prototype.hasOwnProperty;function y(e,t){return v.call(e,t)}const b=Array.isArray,w=e=>"function"===typeof e,x=e=>"string"===typeof e,k=e=>"boolean"===typeof e,_=e=>null!==e&&"object"===typeof e,C=e=>_(e)&&w(e.then)&&w(e.catch),E=Object.prototype.toString,R=e=>E.call(e),S=e=>"[object Object]"===R(e),A=e=>null==e?"":b(e)||S(e)&&e.toString===E?JSON.stringify(e,null,2):String(e);function T(e,t=""){return e.reduce(((e,n,r)=>0===r?e+n:e+t+n),"")}function M(e,t){"undefined"!==typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const L=e=>!_(e)||b(e);function O(e,t){if(L(e)||L(t))throw new Error("Invalid value");const n=[{src:e,des:t}];while(n.length){const{src:e,des:t}=n.pop();Object.keys(e).forEach((r=>{"__proto__"!==r&&(_(e[r])&&!_(t[r])&&(t[r]=Array.isArray(e[r])?[]:p()),L(t[r])||L(e[r])?t[r]=e[r]:n.push({src:e[r],des:t[r]}))}))}}function I(e,t,n){return{line:e,column:t,offset:n}}function N(e,t,n){const r={start:e,end:t};return null!=n&&(r.source=n),r}const B={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16},D=17;B.EXPECTED_TOKEN,B.INVALID_TOKEN_IN_PLACEHOLDER,B.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,B.UNKNOWN_ESCAPE_SEQUENCE,B.INVALID_UNICODE_ESCAPE_SEQUENCE,B.UNBALANCED_CLOSING_BRACE,B.UNTERMINATED_CLOSING_BRACE,B.EMPTY_PLACEHOLDER,B.NOT_ALLOW_NEST_PLACEHOLDER,B.INVALID_LINKED_FORMAT,B.MUST_HAVE_MESSAGES_IN_PLURAL,B.UNEXPECTED_EMPTY_LINKED_MODIFIER,B.UNEXPECTED_EMPTY_LINKED_KEY,B.UNEXPECTED_LEXICAL_ANALYSIS,B.UNHANDLED_CODEGEN_NODE_TYPE,B.UNHANDLED_MINIFIER_NODE_TYPE;function F(e,t,n={}){const{domain:r,messages:a,args:i}=n,o=e,s=new SyntaxError(String(o));return s.code=e,t&&(s.location=t),s.domain=r,s}function $(e){throw e}const P=" ",z="\r",W="\n",j=String.fromCharCode(8232),V=String.fromCharCode(8233);function U(e){const t=e;let n=0,r=1,a=1,i=0;const o=e=>t[e]===z&&t[e+1]===W,s=e=>t[e]===W,l=e=>t[e]===V,c=e=>t[e]===j,u=e=>o(e)||s(e)||l(e)||c(e),d=()=>n,h=()=>r,p=()=>a,f=()=>i,m=e=>o(e)||l(e)||c(e)?W:t[e],g=()=>m(n),v=()=>m(n+i);function y(){return i=0,u(n)&&(r++,a=0),o(n)&&n++,n++,a++,t[n]}function b(){return o(n+i)&&i++,i++,t[n+i]}function w(){n=0,r=1,a=1,i=0}function x(e=0){i=e}function k(){const e=n+i;while(e!==n)y();i=0}return{index:d,line:h,column:p,peekOffset:f,charAt:m,currentChar:g,currentPeek:v,next:y,peek:b,reset:w,resetPeek:x,skipToPeek:k}}const K=void 0,H="'",q="tokenizer";function G(e,t={}){const n=!1!==t.location,r=U(e),a=()=>r.index(),i=()=>I(r.line(),r.column(),r.index()),o=i(),s=a(),l={currentType:13,offset:s,startLoc:o,endLoc:o,lastType:13,lastOffset:s,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},c=()=>l,{onError:u}=t;function d(e,t,r,...a){const i=c();if(t.column+=r,t.offset+=r,u){const r=n?N(i.startLoc,t):null,o=F(e,r,{domain:q,args:a});u(o)}}function h(e,t,r){e.endLoc=i(),e.currentType=t;const a={type:t};return n&&(a.loc=N(e.startLoc,e.endLoc)),null!=r&&(a.value=r),a}const p=e=>h(e,13);function f(e,t){return e.currentChar()===t?(e.next(),t):(d(B.EXPECTED_TOKEN,i(),0,t),"")}function m(e){let t="";while(e.currentPeek()===P||e.currentPeek()===W)t+=e.currentPeek(),e.peek();return t}function g(e){const t=m(e);return e.skipToPeek(),t}function v(e){if(e===K)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function y(e){if(e===K)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}function b(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const r=v(e.currentPeek());return e.resetPeek(),r}function w(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const r="-"===e.currentPeek()?e.peek():e.currentPeek(),a=y(r);return e.resetPeek(),a}function x(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const r=e.currentPeek()===H;return e.resetPeek(),r}function k(e,t){const{currentType:n}=t;if(7!==n)return!1;m(e);const r="."===e.currentPeek();return e.resetPeek(),r}function _(e,t){const{currentType:n}=t;if(8!==n)return!1;m(e);const r=v(e.currentPeek());return e.resetPeek(),r}function C(e,t){const{currentType:n}=t;if(7!==n&&11!==n)return!1;m(e);const r=":"===e.currentPeek();return e.resetPeek(),r}function E(e,t){const{currentType:n}=t;if(9!==n)return!1;const r=()=>{const t=e.currentPeek();return"{"===t?v(e.peek()):!("@"===t||"|"===t||":"===t||"."===t||t===P||!t)&&(t===W?(e.peek(),r()):S(e,!1))},a=r();return e.resetPeek(),a}function R(e){m(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function S(e,t=!0){const n=(t=!1,r="")=>{const a=e.currentPeek();return"{"===a?t:"@"!==a&&a?"|"===a?!(r===P||r===W):a===P?(e.peek(),n(!0,P)):a!==W||(e.peek(),n(!0,W)):t},r=n();return t&&e.resetPeek(),r}function A(e,t){const n=e.currentChar();return n===K?K:t(n)?(e.next(),n):null}function T(e){const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t}function M(e){return A(e,T)}function L(e){const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t||45===t}function O(e){return A(e,L)}function D(e){const t=e.charCodeAt(0);return t>=48&&t<=57}function $(e){return A(e,D)}function z(e){const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function j(e){return A(e,z)}function V(e){let t="",n="";while(t=$(e))n+=t;return n}function G(e){let t="";while(1){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if(n===P||n===W)if(S(e))t+=n,e.next();else{if(R(e))break;t+=n,e.next()}else t+=n,e.next()}return t}function X(e){g(e);let t="",n="";while(t=O(e))n+=t;return e.currentChar()===K&&d(B.UNTERMINATED_CLOSING_BRACE,i(),0),n}function Y(e){g(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${V(e)}`):t+=V(e),e.currentChar()===K&&d(B.UNTERMINATED_CLOSING_BRACE,i(),0),t}function Q(e){return e!==H&&e!==W}function Z(e){g(e),f(e,"'");let t="",n="";while(t=A(e,Q))n+="\\"===t?J(e):t;const r=e.currentChar();return r===W||r===K?(d(B.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),r===W&&(e.next(),f(e,"'")),n):(f(e,"'"),n)}function J(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return ee(e,t,4);case"U":return ee(e,t,6);default:return d(B.UNKNOWN_ESCAPE_SEQUENCE,i(),0,t),""}}function ee(e,t,n){f(e,t);let r="";for(let a=0;a<n;a++){const n=j(e);if(!n){d(B.INVALID_UNICODE_ESCAPE_SEQUENCE,i(),0,`\\${t}${r}${e.currentChar()}`);break}r+=n}return`\\${t}${r}`}function te(e){return"{"!==e&&"}"!==e&&e!==P&&e!==W}function ne(e){g(e);let t="",n="";while(t=A(e,te))n+=t;return n}function re(e){let t="",n="";while(t=M(e))n+=t;return n}function ae(e){const t=n=>{const r=e.currentChar();return"{"!==r&&"@"!==r&&"|"!==r&&"("!==r&&")"!==r&&r?r===P?n:(n+=r,e.next(),t(n)):n};return t("")}function ie(e){g(e);const t=f(e,"|");return g(e),t}function oe(e,t){let n=null;const r=e.currentChar();switch(r){case"{":return t.braceNest>=1&&d(B.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),e.next(),n=h(t,2,"{"),g(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&d(B.EMPTY_PLACEHOLDER,i(),0),e.next(),n=h(t,3,"}"),t.braceNest--,t.braceNest>0&&g(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&d(B.UNTERMINATED_CLOSING_BRACE,i(),0),n=se(e,t)||p(t),t.braceNest=0,n;default:{let r=!0,a=!0,o=!0;if(R(e))return t.braceNest>0&&d(B.UNTERMINATED_CLOSING_BRACE,i(),0),n=h(t,1,ie(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(4===t.currentType||5===t.currentType||6===t.currentType))return d(B.UNTERMINATED_CLOSING_BRACE,i(),0),t.braceNest=0,le(e,t);if(r=b(e,t))return n=h(t,4,X(e)),g(e),n;if(a=w(e,t))return n=h(t,5,Y(e)),g(e),n;if(o=x(e,t))return n=h(t,6,Z(e)),g(e),n;if(!r&&!a&&!o)return n=h(t,12,ne(e)),d(B.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,n.value),g(e),n;break}}return n}function se(e,t){const{currentType:n}=t;let r=null;const a=e.currentChar();switch(7!==n&&8!==n&&11!==n&&9!==n||a!==W&&a!==P||d(B.INVALID_LINKED_FORMAT,i(),0),a){case"@":return e.next(),r=h(t,7,"@"),t.inLinked=!0,r;case".":return g(e),e.next(),h(t,8,".");case":":return g(e),e.next(),h(t,9,":");default:return R(e)?(r=h(t,1,ie(e)),t.braceNest=0,t.inLinked=!1,r):k(e,t)||C(e,t)?(g(e),se(e,t)):_(e,t)?(g(e),h(t,11,re(e))):E(e,t)?(g(e),"{"===a?oe(e,t)||r:h(t,10,ae(e))):(7===n&&d(B.INVALID_LINKED_FORMAT,i(),0),t.braceNest=0,t.inLinked=!1,le(e,t))}}function le(e,t){let n={type:13};if(t.braceNest>0)return oe(e,t)||p(t);if(t.inLinked)return se(e,t)||p(t);const r=e.currentChar();switch(r){case"{":return oe(e,t)||p(t);case"}":return d(B.UNBALANCED_CLOSING_BRACE,i(),0),e.next(),h(t,3,"}");case"@":return se(e,t)||p(t);default:if(R(e))return n=h(t,1,ie(e)),t.braceNest=0,t.inLinked=!1,n;if(S(e))return h(t,0,G(e));break}return n}function ce(){const{currentType:e,offset:t,startLoc:n,endLoc:o}=l;return l.lastType=e,l.lastOffset=t,l.lastStartLoc=n,l.lastEndLoc=o,l.offset=a(),l.startLoc=i(),r.currentChar()===K?h(l,13):le(r,l)}return{nextToken:ce,currentOffset:a,currentPosition:i,context:c}}const X="parser",Y=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Q(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):"<22>"}}}function Z(e={}){const t=!1!==e.location,{onError:n}=e;function r(e,r,a,i,...o){const s=e.currentPosition();if(s.offset+=i,s.column+=i,n){const e=t?N(a,s):null,i=F(r,e,{domain:X,args:o});n(i)}}function a(e,n,r){const a={type:e};return t&&(a.start=n,a.end=n,a.loc={start:r,end:r}),a}function i(e,n,r,a){t&&(e.end=n,e.loc&&(e.loc.end=r))}function o(e,t){const n=e.context(),r=a(3,n.offset,n.startLoc);return r.value=t,i(r,e.currentOffset(),e.currentPosition()),r}function s(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:o}=n,s=a(5,r,o);return s.index=parseInt(t,10),e.nextToken(),i(s,e.currentOffset(),e.currentPosition()),s}function l(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:o}=n,s=a(4,r,o);return s.key=t,e.nextToken(),i(s,e.currentOffset(),e.currentPosition()),s}function c(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:o}=n,s=a(9,r,o);return s.value=t.replace(Y,Q),e.nextToken(),i(s,e.currentOffset(),e.currentPosition()),s}function u(e){const t=e.nextToken(),n=e.context(),{lastOffset:o,lastStartLoc:s}=n,l=a(8,o,s);return 11!==t.type?(r(e,B.UNEXPECTED_EMPTY_LINKED_MODIFIER,n.lastStartLoc,0),l.value="",i(l,o,s),{nextConsumeToken:t,node:l}):(null==t.value&&r(e,B.UNEXPECTED_LEXICAL_ANALYSIS,n.lastStartLoc,0,J(t)),l.value=t.value||"",i(l,e.currentOffset(),e.currentPosition()),{node:l})}function h(e,t){const n=e.context(),r=a(7,n.offset,n.startLoc);return r.value=t,i(r,e.currentOffset(),e.currentPosition()),r}function p(e){const t=e.context(),n=a(6,t.offset,t.startLoc);let o=e.nextToken();if(8===o.type){const t=u(e);n.modifier=t.node,o=t.nextConsumeToken||e.nextToken()}switch(9!==o.type&&r(e,B.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,J(o)),o=e.nextToken(),2===o.type&&(o=e.nextToken()),o.type){case 10:null==o.value&&r(e,B.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,J(o)),n.key=h(e,o.value||"");break;case 4:null==o.value&&r(e,B.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,J(o)),n.key=l(e,o.value||"");break;case 5:null==o.value&&r(e,B.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,J(o)),n.key=s(e,o.value||"");break;case 6:null==o.value&&r(e,B.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,J(o)),n.key=c(e,o.value||"");break;default:{r(e,B.UNEXPECTED_EMPTY_LINKED_KEY,t.lastStartLoc,0);const s=e.context(),l=a(7,s.offset,s.startLoc);return l.value="",i(l,s.offset,s.startLoc),n.key=l,i(n,s.offset,s.startLoc),{nextConsumeToken:o,node:n}}}return i(n,e.currentOffset(),e.currentPosition()),{node:n}}function f(e){const t=e.context(),n=1===t.currentType?e.currentOffset():t.offset,u=1===t.currentType?t.endLoc:t.startLoc,d=a(2,n,u);d.items=[];let h=null;do{const n=h||e.nextToken();switch(h=null,n.type){case 0:null==n.value&&r(e,B.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,J(n)),d.items.push(o(e,n.value||""));break;case 5:null==n.value&&r(e,B.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,J(n)),d.items.push(s(e,n.value||""));break;case 4:null==n.value&&r(e,B.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,J(n)),d.items.push(l(e,n.value||""));break;case 6:null==n.value&&r(e,B.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,J(n)),d.items.push(c(e,n.value||""));break;case 7:{const t=p(e);d.items.push(t.node),h=t.nextConsumeToken||null;break}}}while(13!==t.currentType&&1!==t.currentType);const f=1===t.currentType?t.lastOffset:e.currentOffset(),m=1===t.currentType?t.lastEndLoc:e.currentPosition();return i(d,f,m),d}function m(e,t,n,o){const s=e.context();let l=0===o.items.length;const c=a(1,t,n);c.cases=[],c.cases.push(o);do{const t=f(e);l||(l=0===t.items.length),c.cases.push(t)}while(13!==s.currentType);return l&&r(e,B.MUST_HAVE_MESSAGES_IN_PLURAL,n,0),i(c,e.currentOffset(),e.currentPosition()),c}function g(e){const t=e.context(),{offset:n,startLoc:r}=t,a=f(e);return 13===t.currentType?a:m(e,n,r,a)}function v(n){const o=G(n,d({},e)),s=o.context(),l=a(0,s.offset,s.startLoc);return t&&l.loc&&(l.loc.source=n),l.body=g(o),e.onCacheKey&&(l.cacheKey=e.onCacheKey(n)),13!==s.currentType&&r(o,B.UNEXPECTED_LEXICAL_ANALYSIS,s.lastStartLoc,0,n[s.offset]||""),i(l,o.currentOffset(),o.currentPosition()),l}return{parse:v}}function J(e){if(13===e.type)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function ee(e,t={}){const n={ast:e,helpers:new Set},r=()=>n,a=e=>(n.helpers.add(e),e);return{context:r,helper:a}}function te(e,t){for(let n=0;n<e.length;n++)ne(e[n],t)}function ne(e,t){switch(e.type){case 1:te(e.cases,t),t.helper("plural");break;case 2:te(e.items,t);break;case 6:{const n=e;ne(n.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function re(e,t={}){const n=ee(e);n.helper("normalize"),e.body&&ne(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function ae(e){const t=e.body;return 2===t.type?ie(t):t.cases.forEach((e=>ie(e))),e}function ie(e){if(1===e.items.length){const t=e.items[0];3!==t.type&&9!==t.type||(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const r=e.items[n];if(3!==r.type&&9!==r.type)break;if(null==r.value)break;t.push(r.value)}if(t.length===e.items.length){e.static=T(t);for(let t=0;t<e.items.length;t++){const n=e.items[t];3!==n.type&&9!==n.type||delete n.value}}}}function oe(e){switch(e.t=e.type,e.type){case 0:{const t=e;oe(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let e=0;e<n.length;e++)oe(n[e]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let e=0;e<n.length;e++)oe(n[e]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;oe(t.key),t.k=t.key,delete t.key,t.modifier&&(oe(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}default:0}delete e.type}function se(e,t){const{sourceMap:n,filename:r,breakLineCode:a,needIndent:i}=t,o=!1!==t.location,s={filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:a,needIndent:i,indentLevel:0};o&&e.loc&&(s.source=e.loc.source);const l=()=>s;function c(e,t){s.code+=e}function u(e,t=!0){const n=t?a:"";c(i?n+" ".repeat(e):n)}function d(e=!0){const t=++s.indentLevel;e&&u(t)}function h(e=!0){const t=--s.indentLevel;e&&u(t)}function p(){u(s.indentLevel)}const f=e=>`_${e}`,m=()=>s.needIndent;return{context:l,push:c,indent:d,deindent:h,newline:p,helper:f,needIndent:m}}function le(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),he(e,t.key),t.modifier?(e.push(", "),he(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function ce(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const a=t.items.length;for(let i=0;i<a;i++){if(he(e,t.items[i]),i===a-1)break;e.push(", ")}e.deindent(r()),e.push("])")}function ue(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const a=t.cases.length;for(let n=0;n<a;n++){if(he(e,t.cases[n]),n===a-1)break;e.push(", ")}e.deindent(r()),e.push("])")}}function de(e,t){t.body?he(e,t.body):e.push("null")}function he(e,t){const{helper:n}=e;switch(t.type){case 0:de(e,t);break;case 1:ue(e,t);break;case 2:ce(e,t);break;case 6:le(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:0}}const pe=(e,t={})=>{const n=x(t.mode)?t.mode:"normal",r=x(t.filename)?t.filename:"message.intl",a=!!t.sourceMap,i=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",o=t.needIndent?t.needIndent:"arrow"!==n,s=e.helpers||[],l=se(e,{mode:n,filename:r,sourceMap:a,breakLineCode:i,needIndent:o});l.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(o),s.length>0&&(l.push(`const { ${T(s.map((e=>`${e}: _${e}`)),", ")} } = ctx`),l.newline()),l.push("return "),he(l,e),l.deindent(o),l.push("}"),delete e.helpers;const{code:c,map:u}=l.context();return{ast:e,code:c,map:u?u.toJSON():void 0}};function fe(e,t={}){const n=d({},t),r=!!n.jit,a=!!n.minify,i=null==n.optimize||n.optimize,o=Z(n),s=o.parse(e);return r?(i&&ae(s),a&&oe(s),{ast:s,code:""}):(re(s,n),pe(s,n))}
/*!
* core-base v11.1.0
* (c) 2025 kazuya kawaguchi
* Released under the MIT License.
*/
function me(){"boolean"!==typeof __INTLIFY_PROD_DEVTOOLS__&&(m().__INTLIFY_PROD_DEVTOOLS__=!1),"boolean"!==typeof __INTLIFY_DROP_MESSAGE_COMPILER__&&(m().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function ge(e){const t=t=>ve(t,e);return t}function ve(e,t){const n=be(t);if(null==n)throw Fe(0);const r=Te(n);if(1===r){const t=n,r=xe(t);return e.plural(r.reduce(((t,n)=>[...t,ke(e,n)]),[]))}return ke(e,n)}const ye=["b","body"];function be(e){return De(e,ye)}const we=["c","cases"];function xe(e){return De(e,we,[])}function ke(e,t){const n=Ce(t);if(null!=n)return"text"===e.type?n:e.normalize([n]);{const n=Re(t).reduce(((t,n)=>[...t,Se(e,n)]),[]);return e.normalize(n)}}const _e=["s","static"];function Ce(e){return De(e,_e)}const Ee=["i","items"];function Re(e){return De(e,Ee,[])}function Se(e,t){const n=Te(t);switch(n){case 3:return Le(t,n);case 9:return Le(t,n);case 4:{const r=t;if(y(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(y(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw Fe(n)}case 5:{const r=t;if(y(r,"i")&&s(r.i))return e.interpolate(e.list(r.i));if(y(r,"index")&&s(r.index))return e.interpolate(e.list(r.index));throw Fe(n)}case 6:{const n=t,r=Ie(n),a=Be(n);return e.linked(Se(e,a),r?Se(e,r):void 0,e.type)}case 7:return Le(t,n);case 8:return Le(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const Ae=["t","type"];function Te(e){return De(e,Ae)}const Me=["v","value"];function Le(e,t){const n=De(e,Me);if(n)return n;throw Fe(t)}const Oe=["m","modifier"];function Ie(e){return De(e,Oe)}const Ne=["k","key"];function Be(e){const t=De(e,Ne);if(t)return t;throw Fe(6)}function De(e,t,n){for(let r=0;r<t.length;r++){const n=t[r];if(y(e,n)&&null!=e[n])return e[n]}return n}function Fe(e){return new Error(`unhandled node type: ${e}`)}const $e=e=>e;let Pe=p();function ze(e){return _(e)&&0===Te(e)&&(y(e,"b")||y(e,"body"))}function We(e,t={}){let n=!1;const r=t.onError||$;return t.onError=e=>{n=!0,r(e)},{...fe(e,t),detectError:n}}function je(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&x(e)){!k(t.warnHtmlMessage)||t.warnHtmlMessage;const n=t.onCacheKey||$e,r=n(e),a=Pe[r];if(a)return a;const{ast:i,detectError:o}=We(e,{...t,location:!1,jit:!0}),s=ge(i);return o?s:Pe[r]=s}{0;const t=e.cacheKey;if(t){const n=Pe[t];return n||(Pe[t]=ge(e))}return ge(e)}}let Ve=null;function Ue(e){Ve=e}function Ke(e,t,n){Ve&&Ve.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const He=qe("function:translate");function qe(e){return t=>Ve&&Ve.emit(e,t)}const Ge={INVALID_ARGUMENT:D,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},Xe=24;function Ye(e){return F(e,null,void 0)}Ge.INVALID_ARGUMENT,Ge.INVALID_DATE_ARGUMENT,Ge.INVALID_ISO_DATE_ARGUMENT,Ge.NOT_SUPPORT_NON_STRING_MESSAGE,Ge.NOT_SUPPORT_LOCALE_PROMISE_VALUE,Ge.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION,Ge.NOT_SUPPORT_LOCALE_TYPE;function Qe(e,t){return null!=t.locale?Je(t.locale):Je(e.locale)}let Ze;function Je(e){if(x(e))return e;if(w(e)){if(e.resolvedOnce&&null!=Ze)return Ze;if("Function"===e.constructor.name){const t=e();if(C(t))throw Ye(Ge.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Ze=t}throw Ye(Ge.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}throw Ye(Ge.NOT_SUPPORT_LOCALE_TYPE)}function et(e,t,n){return[...new Set([n,...b(t)?t:_(t)?Object.keys(t):x(t)?[t]:[n]])]}function tt(e,t,n){const r=x(n)?n:bt,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let i=a.__localeChainCache.get(r);if(!i){i=[];let e=[n];while(b(e))e=nt(i,e,t);const o=b(t)||!S(t)?t:t["default"]?t["default"]:null;e=x(o)?[o]:o,b(e)&&nt(i,e,!1),a.__localeChainCache.set(r,i)}return i}function nt(e,t,n){let r=!0;for(let a=0;a<t.length&&k(r);a++){const i=t[a];x(i)&&(r=rt(e,t[a],n))}return r}function rt(e,t,n){let r;const a=t.split("-");do{const t=a.join("-");r=at(e,t,n),a.splice(-1,1)}while(a.length&&!0===r);return r}function at(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r="!"!==t[t.length-1];const a=t.replace(/!/g,"");e.push(a),(b(n)||S(n))&&n[a]&&(r=n[a])}return r}const it=[];it[0]={["w"]:[0],["i"]:[3,0],["["]:[4],["o"]:[7]},it[1]={["w"]:[1],["."]:[2],["["]:[4],["o"]:[7]},it[2]={["w"]:[2],["i"]:[3,0],["0"]:[3,0]},it[3]={["i"]:[3,0],["0"]:[3,0],["w"]:[1,1],["."]:[2,1],["["]:[4,1],["o"]:[7,1]},it[4]={["'"]:[5,0],['"']:[6,0],["["]:[4,2],["]"]:[1,3],["o"]:8,["l"]:[4,0]},it[5]={["'"]:[4,0],["o"]:8,["l"]:[5,0]},it[6]={['"']:[4,0],["o"]:8,["l"]:[6,0]};const ot=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function st(e){return ot.test(e)}function lt(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t!==n||34!==t&&39!==t?e:e.slice(1,-1)}function ct(e){if(void 0===e||null===e)return"o";const t=e.charCodeAt(0);switch(t){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function ut(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(st(t)?lt(t):"*"+t)}function dt(e){const t=[];let n,r,a,i,o,s,l,c=-1,u=0,d=0;const h=[];function p(){const t=e[c+1];if(5===u&&"'"===t||6===u&&'"'===t)return c++,a="\\"+t,h[0](),!0}h[0]=()=>{void 0===r?r=a:r+=a},h[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},h[2]=()=>{h[0](),d++},h[3]=()=>{if(d>0)d--,u=4,h[0]();else{if(d=0,void 0===r)return!1;if(r=ut(r),!1===r)return!1;h[1]()}};while(null!==u)if(c++,n=e[c],"\\"!==n||!p()){if(i=ct(n),l=it[u],o=l[i]||l["l"]||8,8===o)return;if(u=o[0],void 0!==o[1]&&(s=h[o[1]],s&&(a=n,!1===s())))return;if(7===u)return t}}const ht=new Map;function pt(e,t){return _(e)?e[t]:null}function ft(e,t){if(!_(e))return null;let n=ht.get(t);if(n||(n=dt(t),n&&ht.set(t,n)),!n)return null;const r=n.length;let a=e,i=0;while(i<r){const e=a[n[i]];if(void 0===e)return null;if(w(a))return null;a=e,i++}return a}const mt={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7},gt=8;mt.NOT_FOUND_KEY,mt.FALLBACK_TO_TRANSLATE,mt.CANNOT_FORMAT_NUMBER,mt.FALLBACK_TO_NUMBER_FORMAT,mt.CANNOT_FORMAT_DATE,mt.FALLBACK_TO_DATE_FORMAT,mt.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER;const vt="11.1.0",yt=-1,bt="en-US",wt="",xt=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function kt(){return{upper:(e,t)=>"text"===t&&x(e)?e.toUpperCase():"vnode"===t&&_(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&x(e)?e.toLowerCase():"vnode"===t&&_(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&x(e)?xt(e):"vnode"===t&&_(e)&&"__v_isVNode"in e?xt(e.children):e}}let _t,Ct,Et;function Rt(e){_t=e}function St(e){Ct=e}function At(e){Et=e}let Tt=null;const Mt=e=>{Tt=e},Lt=()=>Tt;let Ot=null;const It=e=>{Ot=e},Nt=()=>Ot;let Bt=0;function Dt(e={}){const t=w(e.onWarn)?e.onWarn:M,n=x(e.version)?e.version:vt,r=x(e.locale)||w(e.locale)?e.locale:bt,a=w(r)?bt:r,i=b(e.fallbackLocale)||S(e.fallbackLocale)||x(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:a,o=S(e.messages)?e.messages:Ft(a),s=S(e.datetimeFormats)?e.datetimeFormats:Ft(a),l=S(e.numberFormats)?e.numberFormats:Ft(a),u=d(p(),e.modifiers,kt()),h=e.pluralRules||p(),f=w(e.missing)?e.missing:null,m=!k(e.missingWarn)&&!c(e.missingWarn)||e.missingWarn,g=!k(e.fallbackWarn)&&!c(e.fallbackWarn)||e.fallbackWarn,v=!!e.fallbackFormat,y=!!e.unresolving,C=w(e.postTranslation)?e.postTranslation:null,E=S(e.processor)?e.processor:null,R=!k(e.warnHtmlMessage)||e.warnHtmlMessage,A=!!e.escapeParameter,T=w(e.messageCompiler)?e.messageCompiler:_t;const L=w(e.messageResolver)?e.messageResolver:Ct||pt,O=w(e.localeFallbacker)?e.localeFallbacker:Et||et,I=_(e.fallbackContext)?e.fallbackContext:void 0,N=e,B=_(N.__datetimeFormatters)?N.__datetimeFormatters:new Map,D=_(N.__numberFormatters)?N.__numberFormatters:new Map,F=_(N.__meta)?N.__meta:{};Bt++;const $={version:n,cid:Bt,locale:r,fallbackLocale:i,messages:o,modifiers:u,pluralRules:h,missing:f,missingWarn:m,fallbackWarn:g,fallbackFormat:v,unresolving:y,postTranslation:C,processor:E,warnHtmlMessage:R,escapeParameter:A,messageCompiler:T,messageResolver:L,localeFallbacker:O,fallbackContext:I,onWarn:t,__meta:F};return $.datetimeFormats=s,$.numberFormats=l,$.__datetimeFormatters=B,$.__numberFormatters=D,__INTLIFY_PROD_DEVTOOLS__&&Ke($,n,F),$}const Ft=e=>({[e]:p()});function $t(e,t,n,r,a){const{missing:i,onWarn:o}=e;if(null!==i){const r=i(e,n,t,a);return x(r)?r:t}return t}function Pt(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function zt(e,t){return e!==t&&e.split("-")[0]===t.split("-")[0]}function Wt(e,t){const n=t.indexOf(e);if(-1===n)return!1;for(let r=n+1;r<t.length;r++)if(zt(e,t[r]))return!0;return!1}const jt="undefined"!==typeof Intl;jt&&Intl.DateTimeFormat,jt&&Intl.NumberFormat;function Vt(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:a,onWarn:i,localeFallbacker:o}=e,{__datetimeFormatters:s}=e;const[l,c,h,p]=Kt(...t),f=k(h.missingWarn)?h.missingWarn:e.missingWarn,m=(k(h.fallbackWarn)?h.fallbackWarn:e.fallbackWarn,!!h.part),g=Qe(e,h),v=o(e,a,g);if(!x(l)||""===l)return new Intl.DateTimeFormat(g,p).format(c);let y,b={},w=null,_=g,C=null;const E="datetime format";for(let u=0;u<v.length;u++){if(y=C=v[u],b=n[y]||{},w=b[l],S(w))break;$t(e,l,y,f,E),_=C}if(!S(w)||!x(y))return r?yt:l;let R=`${y}__${l}`;u(p)||(R=`${R}__${JSON.stringify(p)}`);let A=s.get(R);return A||(A=new Intl.DateTimeFormat(y,d({},w,p)),s.set(R,A)),m?A.formatToParts(c):A.format(c)}const Ut=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Kt(...e){const[t,n,r,a]=e,i=p();let o,c=p();if(x(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Ye(Ge.INVALID_ISO_DATE_ARGUMENT);const n=e[3]?e[3].trim().startsWith("T")?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();o=new Date(n);try{o.toISOString()}catch{throw Ye(Ge.INVALID_ISO_DATE_ARGUMENT)}}else if(l(t)){if(isNaN(t.getTime()))throw Ye(Ge.INVALID_DATE_ARGUMENT);o=t}else{if(!s(t))throw Ye(Ge.INVALID_ARGUMENT);o=t}return x(n)?i.key=n:S(n)&&Object.keys(n).forEach((e=>{Ut.includes(e)?c[e]=n[e]:i[e]=n[e]})),x(r)?i.locale=r:S(r)&&(c=r),S(a)&&(c=a),[i.key||"",o,i,c]}function Ht(e,t,n){const r=e;for(const a in n){const e=`${t}__${a}`;r.__datetimeFormatters.has(e)&&r.__datetimeFormatters.delete(e)}}function qt(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:a,onWarn:i,localeFallbacker:o}=e,{__numberFormatters:s}=e;const[l,c,h,p]=Xt(...t),f=k(h.missingWarn)?h.missingWarn:e.missingWarn,m=(k(h.fallbackWarn)?h.fallbackWarn:e.fallbackWarn,!!h.part),g=Qe(e,h),v=o(e,a,g);if(!x(l)||""===l)return new Intl.NumberFormat(g,p).format(c);let y,b={},w=null,_=g,C=null;const E="number format";for(let u=0;u<v.length;u++){if(y=C=v[u],b=n[y]||{},w=b[l],S(w))break;$t(e,l,y,f,E),_=C}if(!S(w)||!x(y))return r?yt:l;let R=`${y}__${l}`;u(p)||(R=`${R}__${JSON.stringify(p)}`);let A=s.get(R);return A||(A=new Intl.NumberFormat(y,d({},w,p)),s.set(R,A)),m?A.formatToParts(c):A.format(c)}const Gt=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Xt(...e){const[t,n,r,a]=e,i=p();let o=p();if(!s(t))throw Ye(Ge.INVALID_ARGUMENT);const l=t;return x(n)?i.key=n:S(n)&&Object.keys(n).forEach((e=>{Gt.includes(e)?o[e]=n[e]:i[e]=n[e]})),x(r)?i.locale=r:S(r)&&(o=r),S(a)&&(o=a),[i.key||"",l,i,o]}function Yt(e,t,n){const r=e;for(const a in n){const e=`${t}__${a}`;r.__numberFormatters.has(e)&&r.__numberFormatters.delete(e)}}const Qt=e=>e,Zt=e=>"",Jt="text",en=e=>0===e.length?"":T(e),tn=A;function nn(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function rn(e){const t=s(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(s(e.named.count)||s(e.named.n))?s(e.named.count)?e.named.count:s(e.named.n)?e.named.n:t:t}function an(e,t){t.count||(t.count=e),t.n||(t.n=e)}function on(e={}){const t=e.locale,n=rn(e),r=_(e.pluralRules)&&x(t)&&w(e.pluralRules[t])?e.pluralRules[t]:nn,a=_(e.pluralRules)&&x(t)&&w(e.pluralRules[t])?nn:void 0,i=e=>e[r(n,e.length,a)],o=e.list||[],l=e=>o[e],c=e.named||p();s(e.pluralIndex)&&an(n,c);const u=e=>c[e];function h(t,n){const r=w(e.messages)?e.messages(t,!!n):!!_(e.messages)&&e.messages[t];return r||(e.parent?e.parent.message(t):Zt)}const f=t=>e.modifiers?e.modifiers[t]:Qt,m=S(e.processor)&&w(e.processor.normalize)?e.processor.normalize:en,g=S(e.processor)&&w(e.processor.interpolate)?e.processor.interpolate:tn,v=S(e.processor)&&x(e.processor.type)?e.processor.type:Jt,y=(e,...t)=>{const[n,r]=t;let a="text",i="";1===t.length?_(n)?(i=n.modifier||i,a=n.type||a):x(n)&&(i=n||i):2===t.length&&(x(n)&&(i=n||i),x(r)&&(a=r||a));const o=h(e,!0)(k),s="vnode"===a&&b(o)&&i?o[0]:o;return i?f(i)(s,a):s},k={["list"]:l,["named"]:u,["plural"]:i,["linked"]:y,["message"]:h,["type"]:v,["interpolate"]:g,["normalize"]:m,["values"]:d(p(),o,c)};return k}const sn=()=>"",ln=e=>w(e);function cn(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:i,fallbackLocale:o,messages:s}=e,[l,c]=fn(...t),u=k(c.missingWarn)?c.missingWarn:e.missingWarn,h=k(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,f=k(c.escapeParameter)?c.escapeParameter:e.escapeParameter,m=!!c.resolvedMessage,g=x(c.default)||k(c.default)?k(c.default)?i?l:()=>l:c.default:n?i?l:()=>l:null,v=n||null!=g&&(x(g)||w(g)),y=Qe(e,c);f&&un(c);let[b,_,C]=m?[l,y,s[y]||p()]:dn(e,l,y,o,h,u),E=b,R=l;if(m||x(E)||ze(E)||ln(E)||v&&(E=g,R=E),!m&&(!(x(E)||ze(E)||ln(E))||!x(_)))return a?yt:l;let S=!1;const A=()=>{S=!0},T=ln(E)?E:hn(e,l,_,E,R,A);if(S)return E;const M=gn(e,_,C,c),L=on(M),O=pn(e,T,L),I=r?r(O,l):O;if(__INTLIFY_PROD_DEVTOOLS__){const t={timestamp:Date.now(),key:x(l)?l:ln(E)?E.key:"",locale:_||(ln(E)?E.locale:""),format:x(E)?E:ln(E)?E.source:"",message:I};t.meta=d({},e.__meta,Lt()||{}),He(t)}return I}function un(e){b(e.list)?e.list=e.list.map((e=>x(e)?g(e):e)):_(e.named)&&Object.keys(e.named).forEach((t=>{x(e.named[t])&&(e.named[t]=g(e.named[t]))}))}function dn(e,t,n,r,a,i){const{messages:o,onWarn:s,messageResolver:l,localeFallbacker:c}=e,u=c(e,r,n);let d,h=p(),f=null,m=n,g=null;const v="translate";for(let y=0;y<u.length;y++){d=g=u[y],h=o[d]||p();if(null===(f=l(h,t))&&(f=h[t]),x(f)||ze(f)||ln(f))break;if(!Wt(d,u)){const n=$t(e,t,d,i,v);n!==t&&(f=n)}m=g}return[f,d,h]}function hn(e,t,n,r,a,i){const{messageCompiler:o,warnHtmlMessage:s}=e;if(ln(r)){const e=r;return e.locale=e.locale||n,e.key=e.key||t,e}if(null==o){const e=()=>r;return e.locale=n,e.key=t,e}const l=o(r,mn(e,n,a,r,s,i));return l.locale=n,l.key=t,l.source=r,l}function pn(e,t,n){const r=t(n);return r}function fn(...e){const[t,n,r]=e,a=p();if(!x(t)&&!s(t)&&!ln(t)&&!ze(t))throw Ye(Ge.INVALID_ARGUMENT);const i=s(t)?String(t):(ln(t),t);return s(n)?a.plural=n:x(n)?a.default=n:S(n)&&!u(n)?a.named=n:b(n)&&(a.list=n),s(r)?a.plural=r:x(r)?a.default=r:S(r)&&d(a,r),[i,a]}function mn(e,t,n,r,a,o){return{locale:t,key:n,warnHtmlMessage:a,onError:e=>{throw o&&o(e),e},onCacheKey:e=>i(t,n,e)}}function gn(e,t,n,r){const{modifiers:a,pluralRules:i,messageResolver:o,fallbackLocale:l,fallbackWarn:c,missingWarn:u,fallbackContext:d}=e,h=(r,a)=>{let i=o(n,r);if(null==i&&(d||a)){const[,,n]=dn(d||e,r,t,l,c,u);i=o(n,r)}if(x(i)||ze(i)){let n=!1;const a=()=>{n=!0},o=hn(e,r,t,i,r,a);return n?sn:o}return ln(i)?i:sn},p={locale:t,modifiers:a,pluralRules:i,messages:h};return e.processor&&(p.processor=e.processor),r.list&&(p.list=r.list),r.named&&(p.named=r.named),s(r.plural)&&(p.pluralIndex=r.plural),p}me();var vn=n(6768),yn=n(144);
/*!
* vue-i18n v11.1.0
* (c) 2025 kazuya kawaguchi
* Released under the MIT License.
*/
const bn="11.1.0";function wn(){"boolean"!==typeof __VUE_I18N_FULL_INSTALL__&&(m().__VUE_I18N_FULL_INSTALL__=!0),"boolean"!==typeof __VUE_I18N_LEGACY_API__&&(m().__VUE_I18N_LEGACY_API__=!0),"boolean"!==typeof __INTLIFY_DROP_MESSAGE_COMPILER__&&(m().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),"boolean"!==typeof __INTLIFY_PROD_DEVTOOLS__&&(m().__INTLIFY_PROD_DEVTOOLS__=!1)}const xn={UNEXPECTED_RETURN_TYPE:Xe,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function kn(e,...t){return F(e,null,void 0)}xn.UNEXPECTED_RETURN_TYPE,xn.INVALID_ARGUMENT,xn.MUST_BE_CALL_SETUP_TOP,xn.NOT_INSTALLED,xn.UNEXPECTED_ERROR,xn.REQUIRED_VALUE,xn.INVALID_VALUE,xn.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN,xn.NOT_INSTALLED_WITH_PROVIDE,xn.NOT_COMPATIBLE_LEGACY_VUE_I18N,xn.NOT_AVAILABLE_COMPOSITION_IN_LEGACY;const _n=a("__translateVNode"),Cn=a("__datetimeParts"),En=a("__numberParts"),Rn=a("__setPluralRules");a("__intlifyMeta");const Sn=a("__injectWithOption"),An=a("__dispose"),Tn={FALLBACK_TO_ROOT:gt,NOT_FOUND_PARENT_SCOPE:9,IGNORE_OBJ_FLATTEN:10,DEPRECATE_LEGACY_MODE:11,DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:12};Tn.FALLBACK_TO_ROOT,Tn.NOT_FOUND_PARENT_SCOPE,Tn.IGNORE_OBJ_FLATTEN,Tn.DEPRECATE_LEGACY_MODE,Tn.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE;function Mn(e){if(!_(e))return e;for(const t in e)if(y(e,t))if(t.includes(".")){const n=t.split("."),r=n.length-1;let a=e,i=!1;for(let e=0;e<r;e++){if(n[e]in a||(a[n[e]]=p()),!_(a[n[e]])){i=!0;break}a=a[n[e]]}i||(a[n[r]]=e[t],delete e[t]),_(a[n[r]])&&Mn(a[n[r]])}else _(e[t])&&Mn(e[t]);return e}function Ln(e,t){const{messages:n,__i18n:r,messageResolver:a,flatJson:i}=t,o=S(n)?n:b(r)?p():{[e]:p()};if(b(r)&&r.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;t?(o[t]=o[t]||p(),O(n,o[t])):O(n,o)}else x(e)&&O(JSON.parse(e),o)})),null==a&&i)for(const s in o)y(o,s)&&Mn(o[s]);return o}function On(e){return e.type}function In(e,t,n){let r=_(t.messages)?t.messages:p();"__i18nGlobal"in n&&(r=Ln(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const a=Object.keys(r);if(a.length&&a.forEach((t=>{e.mergeLocaleMessage(t,r[t])})),_(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach((n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])}))}if(_(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach((n=>{e.mergeNumberFormat(n,t.numberFormats[n])}))}}function Nn(e){return(0,vn.bF)(vn.EY,null,e,0)}const Bn="__INTLIFY_META__",Dn=()=>[],Fn=()=>!1;let $n=0;function Pn(e){return(t,n,r,a)=>e(n,r,(0,vn.nI)()||void 0,a)}const zn=()=>{const e=(0,vn.nI)();let t=null;return e&&(t=On(e)[Bn])?{[Bn]:t}:null};function Wn(e={}){const{__root:t,__injectWithOption:n}=e,a=void 0===t,i=e.flatJson,o=r?yn.KR:yn.IJ;let l=!k(e.inheritLocale)||e.inheritLocale;const u=o(t&&l?t.locale.value:x(e.locale)?e.locale:bt),h=o(t&&l?t.fallbackLocale.value:x(e.fallbackLocale)||b(e.fallbackLocale)||S(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:u.value),p=o(Ln(u.value,e)),f=o(S(e.datetimeFormats)?e.datetimeFormats:{[u.value]:{}}),m=o(S(e.numberFormats)?e.numberFormats:{[u.value]:{}});let g=t?t.missingWarn:!k(e.missingWarn)&&!c(e.missingWarn)||e.missingWarn,v=t?t.fallbackWarn:!k(e.fallbackWarn)&&!c(e.fallbackWarn)||e.fallbackWarn,C=t?t.fallbackRoot:!k(e.fallbackRoot)||e.fallbackRoot,E=!!e.fallbackFormat,R=w(e.missing)?e.missing:null,A=w(e.missing)?Pn(e.missing):null,T=w(e.postTranslation)?e.postTranslation:null,M=t?t.warnHtmlMessage:!k(e.warnHtmlMessage)||e.warnHtmlMessage,L=!!e.escapeParameter;const I=t?t.modifiers:S(e.modifiers)?e.modifiers:{};let N,B=e.pluralRules||t&&t.pluralRules;const D=()=>{a&&It(null);const t={version:bn,locale:u.value,fallbackLocale:h.value,messages:p.value,modifiers:I,pluralRules:B,missing:null===A?void 0:A,missingWarn:g,fallbackWarn:v,fallbackFormat:E,unresolving:!0,postTranslation:null===T?void 0:T,warnHtmlMessage:M,escapeParameter:L,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};t.datetimeFormats=f.value,t.numberFormats=m.value,t.__datetimeFormatters=S(N)?N.__datetimeFormatters:void 0,t.__numberFormatters=S(N)?N.__numberFormatters:void 0;const n=Dt(t);return a&&It(n),n};function F(){return[u.value,h.value,p.value,f.value,m.value]}N=D(),Pt(N,u.value,h.value);const $=(0,vn.EW)({get:()=>u.value,set:e=>{u.value=e,N.locale=u.value}}),P=(0,vn.EW)({get:()=>h.value,set:e=>{h.value=e,N.fallbackLocale=h.value,Pt(N,u.value,e)}}),z=(0,vn.EW)((()=>p.value)),W=(0,vn.EW)((()=>f.value)),j=(0,vn.EW)((()=>m.value));function V(){return w(T)?T:null}function U(e){T=e,N.postTranslation=e}function K(){return R}function H(e){null!==e&&(A=Pn(e)),R=e,N.missing=A}const q=(e,n,r,i,o,l)=>{let c;F();try{__INTLIFY_PROD_DEVTOOLS__&&Mt(zn()),a||(N.fallbackContext=t?Nt():void 0),c=e(N)}finally{__INTLIFY_PROD_DEVTOOLS__&&Mt(null),a||(N.fallbackContext=void 0)}if("translate exists"!==r&&s(c)&&c===yt||"translate exists"===r&&!c){const[e,r]=n();return t&&C?i(t):o(e)}if(l(c))return c;throw kn(xn.UNEXPECTED_RETURN_TYPE)};function G(...e){return q((t=>Reflect.apply(cn,null,[t,...e])),(()=>fn(...e)),"translate",(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>x(e)))}function X(...e){const[t,n,r]=e;if(r&&!_(r))throw kn(xn.INVALID_ARGUMENT);return G(t,n,d({resolvedMessage:!0},r||{}))}function Y(...e){return q((t=>Reflect.apply(Vt,null,[t,...e])),(()=>Kt(...e)),"datetime format",(t=>Reflect.apply(t.d,t,[...e])),(()=>wt),(e=>x(e)))}function Q(...e){return q((t=>Reflect.apply(qt,null,[t,...e])),(()=>Xt(...e)),"number format",(t=>Reflect.apply(t.n,t,[...e])),(()=>wt),(e=>x(e)))}function Z(e){return e.map((e=>x(e)||s(e)||k(e)?Nn(String(e)):e))}const J=e=>e,ee={normalize:Z,interpolate:J,type:"vnode"};function te(...e){return q((t=>{let n;const r=t;try{r.processor=ee,n=Reflect.apply(cn,null,[r,...e])}finally{r.processor=null}return n}),(()=>fn(...e)),"translate",(t=>t[_n](...e)),(e=>[Nn(e)]),(e=>b(e)))}function ne(...e){return q((t=>Reflect.apply(qt,null,[t,...e])),(()=>Xt(...e)),"number format",(t=>t[En](...e)),Dn,(e=>x(e)||b(e)))}function re(...e){return q((t=>Reflect.apply(Vt,null,[t,...e])),(()=>Kt(...e)),"datetime format",(t=>t[Cn](...e)),Dn,(e=>x(e)||b(e)))}function ae(e){B=e,N.pluralRules=B}function ie(e,t){return q((()=>{if(!e)return!1;const n=x(t)?t:u.value,r=le(n),a=N.messageResolver(r,e);return ze(a)||ln(a)||x(a)}),(()=>[e]),"translate exists",(n=>Reflect.apply(n.te,n,[e,t])),Fn,(e=>k(e)))}function oe(e){let t=null;const n=tt(N,h.value,u.value);for(let r=0;r<n.length;r++){const a=p.value[n[r]]||{},i=N.messageResolver(a,e);if(null!=i){t=i;break}}return t}function se(e){const n=oe(e);return null!=n?n:t&&t.tm(e)||{}}function le(e){return p.value[e]||{}}function ce(e,t){if(i){const n={[e]:t};for(const e in n)y(n,e)&&Mn(n[e]);t=n[e]}p.value[e]=t,N.messages=p.value}function ue(e,t){p.value[e]=p.value[e]||{};const n={[e]:t};if(i)for(const r in n)y(n,r)&&Mn(n[r]);t=n[e],O(t,p.value[e]),N.messages=p.value}function de(e){return f.value[e]||{}}function he(e,t){f.value[e]=t,N.datetimeFormats=f.value,Ht(N,e,t)}function pe(e,t){f.value[e]=d(f.value[e]||{},t),N.datetimeFormats=f.value,Ht(N,e,t)}function fe(e){return m.value[e]||{}}function me(e,t){m.value[e]=t,N.numberFormats=m.value,Yt(N,e,t)}function ge(e,t){m.value[e]=d(m.value[e]||{},t),N.numberFormats=m.value,Yt(N,e,t)}$n++,t&&r&&((0,vn.wB)(t.locale,(e=>{l&&(u.value=e,N.locale=e,Pt(N,u.value,h.value))})),(0,vn.wB)(t.fallbackLocale,(e=>{l&&(h.value=e,N.fallbackLocale=e,Pt(N,u.value,h.value))})));const ve={id:$n,locale:$,fallbackLocale:P,get inheritLocale(){return l},set inheritLocale(e){l=e,e&&t&&(u.value=t.locale.value,h.value=t.fallbackLocale.value,Pt(N,u.value,h.value))},get availableLocales(){return Object.keys(p.value).sort()},messages:z,get modifiers(){return I},get pluralRules(){return B||{}},get isGlobal(){return a},get missingWarn(){return g},set missingWarn(e){g=e,N.missingWarn=g},get fallbackWarn(){return v},set fallbackWarn(e){v=e,N.fallbackWarn=v},get fallbackRoot(){return C},set fallbackRoot(e){C=e},get fallbackFormat(){return E},set fallbackFormat(e){E=e,N.fallbackFormat=E},get warnHtmlMessage(){return M},set warnHtmlMessage(e){M=e,N.warnHtmlMessage=e},get escapeParameter(){return L},set escapeParameter(e){L=e,N.escapeParameter=e},t:G,getLocaleMessage:le,setLocaleMessage:ce,mergeLocaleMessage:ue,getPostTranslationHandler:V,setPostTranslationHandler:U,getMissingHandler:K,setMissingHandler:H,[Rn]:ae};return ve.datetimeFormats=W,ve.numberFormats=j,ve.rt=X,ve.te=ie,ve.tm=se,ve.d=Y,ve.n=Q,ve.getDateTimeFormat=de,ve.setDateTimeFormat=he,ve.mergeDateTimeFormat=pe,ve.getNumberFormat=fe,ve.setNumberFormat=me,ve.mergeNumberFormat=ge,ve[Sn]=n,ve[_n]=te,ve[Cn]=re,ve[En]=ne,ve}function jn(e){const t=x(e.locale)?e.locale:bt,n=x(e.fallbackLocale)||b(e.fallbackLocale)||S(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,r=w(e.missing)?e.missing:void 0,a=!k(e.silentTranslationWarn)&&!c(e.silentTranslationWarn)||!e.silentTranslationWarn,i=!k(e.silentFallbackWarn)&&!c(e.silentFallbackWarn)||!e.silentFallbackWarn,o=!k(e.fallbackRoot)||e.fallbackRoot,s=!!e.formatFallbackMessages,l=S(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,h=w(e.postTranslation)?e.postTranslation:void 0,p=!x(e.warnHtmlInMessage)||"off"!==e.warnHtmlInMessage,f=!!e.escapeParameterHtml,m=!k(e.sync)||e.sync;let g=e.messages;if(S(e.sharedMessages)){const t=e.sharedMessages,n=Object.keys(t);g=n.reduce(((e,n)=>{const r=e[n]||(e[n]={});return d(r,t[n]),e}),g||{})}const{__i18n:v,__root:y,__injectWithOption:_}=e,C=e.datetimeFormats,E=e.numberFormats,R=e.flatJson;return{locale:t,fallbackLocale:n,messages:g,flatJson:R,datetimeFormats:C,numberFormats:E,missing:r,missingWarn:a,fallbackWarn:i,fallbackRoot:o,fallbackFormat:s,modifiers:l,pluralRules:u,postTranslation:h,warnHtmlMessage:p,escapeParameter:f,messageResolver:e.messageResolver,inheritLocale:m,__i18n:v,__root:y,__injectWithOption:_}}function Vn(e={}){const t=Wn(jn(e)),{__extender:n}=e,r={id:t.id,get locale(){return t.locale.value},set locale(e){t.locale.value=e},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(e){t.fallbackLocale.value=e},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(e){t.setMissingHandler(e)},get silentTranslationWarn(){return k(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=k(e)?!e:e},get silentFallbackWarn(){return k(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=k(e)?!e:e},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(e){t.fallbackFormat=e},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(e){t.setPostTranslationHandler(e)},get sync(){return t.inheritLocale},set sync(e){t.inheritLocale=e},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(e){t.warnHtmlMessage="off"!==e},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(e){t.escapeParameter=e},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...e){return Reflect.apply(t.t,t,[...e])},rt(...e){return Reflect.apply(t.rt,t,[...e])},te(e,n){return t.te(e,n)},tm(e){return t.tm(e)},getLocaleMessage(e){return t.getLocaleMessage(e)},setLocaleMessage(e,n){t.setLocaleMessage(e,n)},mergeLocaleMessage(e,n){t.mergeLocaleMessage(e,n)},d(...e){return Reflect.apply(t.d,t,[...e])},getDateTimeFormat(e){return t.getDateTimeFormat(e)},setDateTimeFormat(e,n){t.setDateTimeFormat(e,n)},mergeDateTimeFormat(e,n){t.mergeDateTimeFormat(e,n)},n(...e){return Reflect.apply(t.n,t,[...e])},getNumberFormat(e){return t.getNumberFormat(e)},setNumberFormat(e,n){t.setNumberFormat(e,n)},mergeNumberFormat(e,n){t.mergeNumberFormat(e,n)}};return r.__extender=n,r}function Un(e,t,n){return{beforeCreate(){const r=(0,vn.nI)();if(!r)throw kn(xn.UNEXPECTED_ERROR);const a=this.$options;if(a.i18n){const r=a.i18n;if(a.__i18n&&(r.__i18n=a.__i18n),r.__root=t,this===this.$root)this.$i18n=Kn(e,r);else{r.__injectWithOption=!0,r.__extender=n.__vueI18nExtend,this.$i18n=Vn(r);const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}}else if(a.__i18n)if(this===this.$root)this.$i18n=Kn(e,a);else{this.$i18n=Vn({__i18n:a.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}else this.$i18n=e;a.__i18nGlobal&&In(t,a,a),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$te=(e,t)=>this.$i18n.te(e,t),this.$d=(...e)=>this.$i18n.d(...e),this.$n=(...e)=>this.$i18n.n(...e),this.$tm=e=>this.$i18n.tm(e),n.__setInstance(r,this.$i18n)},mounted(){0},unmounted(){const e=(0,vn.nI)();if(!e)throw kn(xn.UNEXPECTED_ERROR);const t=this.$i18n;delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,t.__disposer&&(t.__disposer(),delete t.__disposer,delete t.__extender),n.__deleteInstance(e),delete this.$i18n}}}function Kn(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[Rn](t.pluralizationRules||e.pluralizationRules);const n=Ln(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach((t=>e.mergeLocaleMessage(t,n[t]))),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach((n=>e.mergeDateTimeFormat(n,t.datetimeFormats[n]))),t.numberFormats&&Object.keys(t.numberFormats).forEach((n=>e.mergeNumberFormat(n,t.numberFormats[n]))),e}const Hn={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};function qn({slots:e},t){if(1===t.length&&"default"===t[0]){const t=e.default?e.default():[];return t.reduce(((e,t)=>[...e,...t.type===vn.FK?t.children:[t]]),[])}return t.reduce(((t,n)=>{const r=e[n];return r&&(t[n]=r()),t}),p())}function Gn(){return vn.FK}const Xn=(0,vn.pM)({name:"i18n-t",props:d({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>s(e)||!isNaN(e)}},Hn),setup(e,t){const{slots:n,attrs:r}=t,a=e.i18n||lr({useScope:e.scope,__useComponent:!0});return()=>{const i=Object.keys(n).filter((e=>"_"!==e)),o=p();e.locale&&(o.locale=e.locale),void 0!==e.plural&&(o.plural=x(e.plural)?+e.plural:e.plural);const s=qn(t,i),l=a[_n](e.keypath,s,o),c=d(p(),r),u=x(e.tag)||_(e.tag)?e.tag:Gn();return(0,vn.h)(u,c,l)}}}),Yn=Xn;function Qn(e){return b(e)&&!x(e[0])}function Zn(e,t,n,r){const{slots:a,attrs:i}=t;return()=>{const t={part:!0};let o=p();e.locale&&(t.locale=e.locale),x(e.format)?t.key=e.format:_(e.format)&&(x(e.format.key)&&(t.key=e.format.key),o=Object.keys(e.format).reduce(((t,r)=>n.includes(r)?d(p(),t,{[r]:e.format[r]}):t),p()));const s=r(e.value,t,o);let l=[t.key];b(s)?l=s.map(((e,t)=>{const n=a[e.type],r=n?n({[e.type]:e.value,index:t,parts:s}):[e.value];return Qn(r)&&(r[0].key=`${e.type}-${t}`),r})):x(s)&&(l=[s]);const c=d(p(),i),u=x(e.tag)||_(e.tag)?e.tag:Gn();return(0,vn.h)(u,c,l)}}const Jn=(0,vn.pM)({name:"i18n-n",props:d({value:{type:Number,required:!0},format:{type:[String,Object]}},Hn),setup(e,t){const n=e.i18n||lr({useScope:e.scope,__useComponent:!0});return Zn(e,t,Gt,((...e)=>n[En](...e)))}}),er=Jn;function tr(e,t){const n=e;if("composition"===e.mode)return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return null!=r?r.__composer:e.global.__composer}}function nr(e){const t=t=>{const{instance:n,value:r}=t;if(!n||!n.$)throw kn(xn.UNEXPECTED_ERROR);const a=tr(e,n.$),i=rr(r);return[Reflect.apply(a.t,a,[...ar(i)]),a]},n=(n,a)=>{const[i,o]=t(a);r&&e.global===o&&(n.__i18nWatcher=(0,vn.wB)(o.locale,(()=>{a.instance&&a.instance.$forceUpdate()}))),n.__composer=o,n.textContent=i},a=e=>{r&&e.__i18nWatcher&&(e.__i18nWatcher(),e.__i18nWatcher=void 0,delete e.__i18nWatcher),e.__composer&&(e.__composer=void 0,delete e.__composer)},i=(e,{value:t})=>{if(e.__composer){const n=e.__composer,r=rr(t);e.textContent=Reflect.apply(n.t,n,[...ar(r)])}},o=e=>{const[n]=t(e);return{textContent:n}};return{created:n,unmounted:a,beforeUpdate:i,getSSRProps:o}}function rr(e){if(x(e))return{path:e};if(S(e)){if(!("path"in e))throw kn(xn.REQUIRED_VALUE,"path");return e}throw kn(xn.INVALID_VALUE)}function ar(e){const{path:t,locale:n,args:r,choice:a,plural:i}=e,o={},l=r||{};return x(n)&&(o.locale=n),s(a)&&(o.plural=a),s(i)&&(o.plural=i),[t,l,o]}function ir(e,t,...n){const r=S(n[0])?n[0]:{},a=!k(r.globalInstall)||r.globalInstall;a&&([Yn.name,"I18nT"].forEach((t=>e.component(t,Yn))),[er.name,"I18nN"].forEach((t=>e.component(t,er))),[wr.name,"I18nD"].forEach((t=>e.component(t,wr)))),e.directive("t",nr(t))}const or=a("global-vue-i18n");function sr(e={}){const t=__VUE_I18N_LEGACY_API__&&k(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__;const n=!k(e.globalInjection)||e.globalInjection,r=new Map,[i,o]=cr(e,t),s=a("");function l(e){return r.get(e)||null}function c(e,t){r.set(e,t)}function u(e){r.delete(e)}const d={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(e,...r){if(e.__VUE_I18N_SYMBOL__=s,e.provide(e.__VUE_I18N_SYMBOL__,d),S(r[0])){const e=r[0];d.__composerExtend=e.__composerExtend,d.__vueI18nExtend=e.__vueI18nExtend}let a=null;!t&&n&&(a=yr(e,d.global)),__VUE_I18N_FULL_INSTALL__&&ir(e,d,...r),__VUE_I18N_LEGACY_API__&&t&&e.mixin(Un(o,o.__composer,d));const i=e.unmount;e.unmount=()=>{a&&a(),d.dispose(),i()}},get global(){return o},dispose(){i.stop()},__instances:r,__getInstance:l,__setInstance:c,__deleteInstance:u};return d}function lr(e={}){const t=(0,vn.nI)();if(null==t)throw kn(xn.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&null!=t.appContext.app&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw kn(xn.NOT_INSTALLED);const n=ur(t),r=hr(n),a=On(t),i=dr(e,a);if("global"===i)return In(r,e,a),r;if("parent"===i){let a=pr(n,t,e.__useComponent);return null==a&&(a=r),a}const o=n;let s=o.__getInstance(t);if(null==s){const n=d({},e);"__i18n"in a&&(n.__i18n=a.__i18n),r&&(n.__root=r),s=Wn(n),o.__composerExtend&&(s[An]=o.__composerExtend(s)),mr(o,t,s),o.__setInstance(t,s)}return s}function cr(e,t){const n=(0,yn.uY)(),r=__VUE_I18N_LEGACY_API__&&t?n.run((()=>Vn(e))):n.run((()=>Wn(e)));if(null==r)throw kn(xn.UNEXPECTED_ERROR);return[n,r]}function ur(e){const t=(0,vn.WQ)(e.isCE?or:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw kn(e.isCE?xn.NOT_INSTALLED_WITH_PROVIDE:xn.UNEXPECTED_ERROR);return t}function dr(e,t){return u(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function hr(e){return"composition"===e.mode?e.global:e.global.__composer}function pr(e,t,n=!1){let r=null;const a=t.root;let i=fr(t,n);while(null!=i){const t=e;if("composition"===e.mode)r=t.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const e=t.__getInstance(i);null!=e&&(r=e.__composer,n&&r&&!r[Sn]&&(r=null))}if(null!=r)break;if(a===i)break;i=i.parent}return r}function fr(e,t=!1){return null==e?null:t&&e.vnode.ctx||e.parent}function mr(e,t,n){(0,vn.sV)((()=>{0}),t),(0,vn.hi)((()=>{const r=n;e.__deleteInstance(t);const a=r[An];a&&(a(),delete r[An])}),t)}const gr=["locale","fallbackLocale","availableLocales"],vr=["t","rt","d","n","tm","te"];function yr(e,t){const n=Object.create(null);gr.forEach((e=>{const r=Object.getOwnPropertyDescriptor(t,e);if(!r)throw kn(xn.UNEXPECTED_ERROR);const a=(0,yn.i9)(r.value)?{get(){return r.value.value},set(e){r.value.value=e}}:{get(){return r.get&&r.get()}};Object.defineProperty(n,e,a)})),e.config.globalProperties.$i18n=n,vr.forEach((n=>{const r=Object.getOwnPropertyDescriptor(t,n);if(!r||!r.value)throw kn(xn.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${n}`,r)}));const r=()=>{delete e.config.globalProperties.$i18n,vr.forEach((t=>{delete e.config.globalProperties[`$${t}`]}))};return r}const br=(0,vn.pM)({name:"i18n-d",props:d({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Hn),setup(e,t){const n=e.i18n||lr({useScope:e.scope,__useComponent:!0});return Zn(e,t,Ut,((...e)=>n[Cn](...e)))}}),wr=br;if(wn(),Rt(je),St(ft),At(tt),__INTLIFY_PROD_DEVTOOLS__){const e=m();e.__INTLIFY__=!0,Ue(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}},3290:function(e){"use strict";e.exports=JSON.parse('{"chars":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,34,47,74,74,118,89,25,44,44,52,78,37,44,37,37,74,74,74,74,74,74,74,74,74,74,37,37,78,78,78,74,135,89,89,96,96,89,81,103,96,37,67,89,74,109,96,103,89,103,96,89,81,96,89,127,89,87,81,37,37,37,61,74,44,74,74,67,74,74,37,74,74,30,30,67,30,112,74,74,74,74,44,67,37,74,67,95,66,65,67,44,34,44,78,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,43,74,74,74,74,34,74,44,98,49,74,78,0,98,73,53,73,44,44,44,77,71,37,44,44,49,74,111,111,111,81,89,89,89,89,89,89,133,96,89,89,89,89,37,37,37,37,96,96,103,103,103,103,103,78,103,96,96,96,96,87,89,81,74,74,74,74,74,74,118,67,74,74,74,74,36,36,36,36,74,74,74,74,74,74,74,73,81,74,74,74,74,65,74,65,89,74,89,74,89,74,96,67,96,67,96,67,96,67,96,82,96,74,89,74,89,74,89,74,89,74,89,74,103,74,103,74,103,74,103,74,96,74,96,74,37,36,37,36,37,36,37,30,37,36,98,59,67,30,89,67,67,74,30,74,30,74,39,74,44,74,30,96,74,96,74,96,74,80,96,74,103,74,103,74,103,74,133,126,96,44,96,44,96,44,89,67,89,67,89,67,89,67,81,38,81,50,81,37,96,74,96,74,96,74,96,74,96,74,96,74,127,95,87,65,87,81,67,81,67,81,67,30,84,97,91,84,91,84,94,92,73,104,109,91,84,81,84,100,82,76,74,103,91,131,47,40,99,77,37,79,130,100,84,104,114,87,126,101,87,84,93,84,69,84,46,52,82,52,82,114,89,102,96,100,98,91,70,88,88,77,70,85,89,77,67,84,39,65,61,39,189,173,153,111,105,61,123,123,106,89,74,37,30,103,74,96,74,96,74,96,74,96,74,96,74,81,91,81,91,81,130,131,102,84,103,84,87,78,104,81,104,81,88,76,37,189,173,153,103,84,148,90,100,84,89,74,133,118,103,81],"other":114}')}}]);