/*! For license information please see main.92cf3903.js.LICENSE.txt */ !function(){var e={680:function(e,t,n){"use strict";var r=n(476),i=n(962),o=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"===typeof n&&o(e,".prototype.")>-1?i(n):n}},962:function(e,t,n){"use strict";var r=n(199),i=n(476),o=n(267),a=i("%TypeError%"),u=i("%Function.prototype.apply%"),l=i("%Function.prototype.call%"),c=i("%Reflect.apply%",!0)||r.call(l,u),s=i("%Object.defineProperty%",!0),f=i("%Math.max%");if(s)try{s({},"a",{value:1})}catch(d){s=null}e.exports=function(e){if("function"!==typeof e)throw new a("a function is required");var t=c(r,l,arguments);return o(t,1+f(0,e.length-(arguments.length-1)),!0)};var h=function(){return c(r,u,arguments)};s?s(e.exports,"apply",{value:h}):e.exports.apply=h},123:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t=t?e:""+Array(t+1-r.length).join(n)+e},y={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+g(r,2,"0")+":"+g(i,2,"0")},m:function e(t,n){if(t.date()1)return e(a[0])}else{var u=t.name;b[u]=t,i=u}return!r&&i&&(_=i),i||!r&&_},A=function(e,t){if(w(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new E(n)},x=y;x.l=k,x.i=w,x.w=function(e,t){return A(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function m(e){this.$L=k(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[D]=!0}var g=m.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(x.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(p);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.init()},g.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()},g.$utils=function(){return x},g.isValid=function(){return!(this.$d.toString()===d)},g.isSame=function(e,t){var n=A(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return A(e)=0&&(o[f]=parseInt(s,10))}var h=o[3],d=24===h?0:h,p=o[0]+"-"+o[1]+"-"+o[2]+" "+d+":"+o[4]+":"+o[5]+":000",v=+t;return(i.utc(p).valueOf()-(v-=v%1e3))/6e4},l=r.prototype;l.tz=function(e,t){void 0===e&&(e=o);var n=this.utcOffset(),r=this.toDate(),a=r.toLocaleString("en-US",{timeZone:e}),u=Math.round((r-new Date(a))/1e3/60),l=i(a,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(15*-Math.round(r.getTimezoneOffset()/15)-u,!0);if(t){var c=l.utcOffset();l=l.add(n-c,"minute")}return l.$x.$timezone=e,l},l.offsetName=function(e){var t=this.$x.$timezone||i.tz.guess(),n=a(this.valueOf(),t,{timeZoneName:e}).find((function(e){return"timezonename"===e.type.toLowerCase()}));return n&&n.value};var c=l.startOf;l.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return c.call(this,e,t);var n=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return c.call(n,e,t).tz(this.$x.$timezone,!0)},i.tz=function(e,t,n){var r=n&&t,a=n||t||o,l=u(+i(),a);if("string"!=typeof e)return i(e).tz(a);var c=function(e,t,n){var r=e-60*t*1e3,i=u(r,n);if(t===i)return[r,t];var o=u(r-=60*(i-t)*1e3,n);return i===o?[r,i]:[e-60*Math.min(i,o)*1e3,Math.max(i,o)]}(i.utc(e,r).valueOf(),l,a),s=c[0],f=c[1],h=i(s).utcOffset(f);return h.$x.$timezone=a,h},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(e){o=e}}}()},635:function(e){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,i,o){var a=i.prototype;o.utc=function(e){return new i({date:e,utc:!0,args:arguments})},a.utc=function(t){var n=o(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},a.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var u=a.parse;a.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),u.call(this,e)};var l=a.init;a.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else l.call(this)};var c=a.utcOffset;a.utcOffset=function(r,i){var o=this.$utils().u;if(o(r))return this.$u?0:o(this.$offset)?c.call(this):this.$offset;if("string"==typeof r&&(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var i=(""+r[0]).match(n)||["-",0,0],o=i[0],a=60*+i[1]+ +i[2];return 0===a?0:"+"===o?a:-a}(r),null===r))return this;var a=Math.abs(r)<=16?60*r:r,u=this;if(i)return u.$offset=a,u.$u=0===r,u;if(0!==r){var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(u=this.local().add(a+l,e)).$offset=a,u.$x.$localOffset=l}else u=this.utc();return u};var s=a.format;a.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return s.call(this,t)},a.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var f=a.toDate;a.toDate=function(e){return"s"===e&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():f.call(this)};var h=a.diff;a.diff=function(e,t,n){if(e&&this.$u===e.$u)return h.call(this,e,t,n);var r=this.local(),i=o(e).local();return h.call(r,i,t,n)}}}()},150:function(e,t,n){"use strict";var r=n(926)(),i=n(476),o=r&&i("%Object.defineProperty%",!0);if(o)try{o({},"a",{value:1})}catch(c){o=!1}var a=i("%SyntaxError%"),u=i("%TypeError%"),l=n(103);e.exports=function(e,t,n){if(!e||"object"!==typeof e&&"function"!==typeof e)throw new u("`obj` must be an object or a function`");if("string"!==typeof t&&"symbol"!==typeof t)throw new u("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!==typeof arguments[3]&&null!==arguments[3])throw new u("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!==typeof arguments[4]&&null!==arguments[4])throw new u("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!==typeof arguments[5]&&null!==arguments[5])throw new u("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!==typeof arguments[6])throw new u("`loose`, if provided, must be a boolean");var r=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,s=arguments.length>6&&arguments[6],f=!!l&&l(e,t);if(o)o(e,t,{configurable:null===c&&f?f.configurable:!c,enumerable:null===r&&f?f.enumerable:!r,value:n,writable:null===i&&f?f.writable:!i});else{if(!s&&(r||i||c))throw new a("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},781:function(e){"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r1&&"boolean"!==typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===E(/^%?[^%]*%?$/,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=x(e,0,1),n=x(e,-1);if("%"===t&&"%"!==n)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var r=[];return A(e,C,(function(e,t,n,i){r[r.length]=n?A(i,S,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",o=F("%"+r+"%",t),u=o.name,c=o.value,s=!1,f=o.alias;f&&(r=f[0],k(n,w([0,1],f)));for(var h=1,d=!0;h=n.length){var y=l(c,p);c=(d=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:c[p]}else d=D(c,p),c=c[p];d&&!s&&(m[u]=c)}}return c}},103:function(e,t,n){"use strict";var r=n(476)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(i){r=null}e.exports=r},926:function(e,t,n){"use strict";var r=n(476)("%Object.defineProperty%",!0),i=function(){if(r)try{return r({},"a",{value:1}),!0}catch(e){return!1}return!1};i.hasArrayLengthDefineBug=function(){if(!i())return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},593:function(e){"use strict";var t={foo:{}},n=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof n)}},520:function(e,t,n){"use strict";var r="undefined"!==typeof Symbol&&Symbol,i=n(541);e.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&i())))}},541:function(e){"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},834:function(e,t,n){"use strict";var r=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=n(199);e.exports=o.call(r,i)},936:function(e,t,n){var r=NaN,i="[object Symbol]",o=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt,s="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,f="object"==typeof self&&self&&self.Object===Object&&self,h=s||f||Function("return this")(),d=Object.prototype.toString,p=Math.max,v=Math.min,m=function(){return h.Date.now()};function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function y(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&d.call(e)==i}(e))return r;if(g(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=g(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=u.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):a.test(e)?r:+e}e.exports=function(e,t,n){var r,i,o,a,u,l,c=0,s=!1,f=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function d(t){var n=r,o=i;return r=i=void 0,c=t,a=e.apply(o,n)}function _(e){var n=e-l;return void 0===l||n>=t||n<0||f&&e-c>=o}function b(){var e=m();if(_(e))return D(e);u=setTimeout(b,function(e){var n=t-(e-l);return f?v(n,o-(e-c)):n}(e))}function D(e){return u=void 0,h&&r?d(e):(r=i=void 0,a)}function w(){var e=m(),n=_(e);if(r=arguments,i=this,l=e,n){if(void 0===u)return function(e){return c=e,u=setTimeout(b,t),s?d(e):a}(l);if(f)return u=setTimeout(b,t),d(l)}return void 0===u&&(u=setTimeout(b,t)),a}return t=y(t)||0,g(n)&&(s=!!n.leading,o=(f="maxWait"in n)?p(y(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h),w.cancel=function(){void 0!==u&&clearTimeout(u),c=0,r=l=i=u=void 0},w.flush=function(){return void 0===u?a:D(m())},w}},7:function(e,t,n){var r="__lodash_hash_undefined__",i=1/0,o="[object Function]",a="[object GeneratorFunction]",u="[object Symbol]",l=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/,s=/^\./,f=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,h=/\\(\\)?/g,d=/^\[object .+?Constructor\]$/,p="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,v="object"==typeof self&&self&&self.Object===Object&&self,m=p||v||Function("return this")();var g=Array.prototype,y=Function.prototype,_=Object.prototype,b=m["__core-js_shared__"],D=function(){var e=/[^.]+$/.exec(b&&b.keys&&b.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),w=y.toString,k=_.hasOwnProperty,A=_.toString,x=RegExp("^"+w.call(k).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),E=m.Symbol,C=g.splice,S=R(m,"Map"),F=R(Object,"create"),T=E?E.prototype:void 0,M=T?T.toString:void 0;function O(e){var t=-1,n=e?e.length:0;for(this.clear();++t-1},N.prototype.set=function(e,t){var n=this.__data__,r=P(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},B.prototype.clear=function(){this.__data__={hash:new O,map:new(S||N),string:new O}},B.prototype.delete=function(e){return $(this,e).delete(e)},B.prototype.get=function(e){return $(this,e).get(e)},B.prototype.has=function(e){return $(this,e).has(e)},B.prototype.set=function(e,t){return $(this,e).set(e,t),this};var I=H((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(W(e))return M?M.call(e):"";var t=e+"";return"0"==t&&1/e==-i?"-0":t}(t);var n=[];return s.test(e)&&n.push(""),e.replace(f,(function(e,t,r,i){n.push(r?i.replace(h,"$1"):t||e)})),n}));function j(e){if("string"==typeof e||W(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}function H(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function n(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a),a};return n.cache=new(H.Cache||B),n}H.Cache=B;var U=Array.isArray;function V(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function W(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&A.call(e)==u}e.exports=function(e,t,n){var r=null==e?void 0:L(e,t);return void 0===r?n:r}},154:function(e,t,n){var r="function"===typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&i&&"function"===typeof i.get?i.get:null,a=r&&Map.prototype.forEach,u="function"===typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&u?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=u&&l&&"function"===typeof l.get?l.get:null,s=u&&Set.prototype.forEach,f="function"===typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,h="function"===typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,d="function"===typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,v=Object.prototype.toString,m=Function.prototype.toString,g=String.prototype.match,y=String.prototype.slice,_=String.prototype.replace,b=String.prototype.toUpperCase,D=String.prototype.toLowerCase,w=RegExp.prototype.test,k=Array.prototype.concat,A=Array.prototype.join,x=Array.prototype.slice,E=Math.floor,C="function"===typeof BigInt?BigInt.prototype.valueOf:null,S=Object.getOwnPropertySymbols,F="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol.prototype.toString:null,T="function"===typeof Symbol&&"object"===typeof Symbol.iterator,M="function"===typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===T||"symbol")?Symbol.toStringTag:null,O=Object.prototype.propertyIsEnumerable,N=("function"===typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function B(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||w.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof e){var r=e<0?-E(-e):E(e);if(r!==e){var i=String(r),o=y.call(t,i.length+1);return _.call(i,n,"$&_")+"."+_.call(_.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return _.call(t,n,"$&_")}var P=n(654),L=P.custom,z=H(L)?L:null;function $(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function R(e){return _.call(String(e),/"/g,""")}function I(e){return"[object Array]"===W(e)&&(!M||!("object"===typeof e&&M in e))}function j(e){return"[object RegExp]"===W(e)&&(!M||!("object"===typeof e&&M in e))}function H(e){if(T)return e&&"object"===typeof e&&e instanceof Symbol;if("symbol"===typeof e)return!0;if(!e||"object"!==typeof e||!F)return!1;try{return F.call(e),!0}catch(t){}return!1}e.exports=function e(t,r,i,u){var l=r||{};if(V(l,"quoteStyle")&&"single"!==l.quoteStyle&&"double"!==l.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(V(l,"maxStringLength")&&("number"===typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var v=!V(l,"customInspect")||l.customInspect;if("boolean"!==typeof v&&"symbol"!==v)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(V(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(V(l,"numericSeparator")&&"boolean"!==typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var b=l.numericSeparator;if("undefined"===typeof t)return"undefined";if(null===t)return"null";if("boolean"===typeof t)return t?"true":"false";if("string"===typeof t)return Y(t,l);if("number"===typeof t){if(0===t)return 1/0/t>0?"0":"-0";var w=String(t);return b?B(t,w):w}if("bigint"===typeof t){var E=String(t)+"n";return b?B(t,E):E}var S="undefined"===typeof l.depth?5:l.depth;if("undefined"===typeof i&&(i=0),i>=S&&S>0&&"object"===typeof t)return I(t)?"[Array]":"[Object]";var L=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"===typeof e.indent&&e.indent>0))return null;n=A.call(Array(e.indent+1)," ")}return{base:n,prev:A.call(Array(t+1),n)}}(l,i);if("undefined"===typeof u)u=[];else if(Z(u,t)>=0)return"[Circular]";function U(t,n,r){if(n&&(u=x.call(u)).push(n),r){var o={depth:l.depth};return V(l,"quoteStyle")&&(o.quoteStyle=l.quoteStyle),e(t,o,i+1,u)}return e(t,l,i+1,u)}if("function"===typeof t&&!j(t)){var q=function(e){if(e.name)return e.name;var t=g.call(m.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),ee=X(t,U);return"[Function"+(q?": "+q:" (anonymous)")+"]"+(ee.length>0?" { "+A.call(ee,", ")+" }":"")}if(H(t)){var te=T?_.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):F.call(t);return"object"!==typeof t||T?te:G(te)}if(function(e){if(!e||"object"!==typeof e)return!1;if("undefined"!==typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"===typeof e.nodeName&&"function"===typeof e.getAttribute}(t)){for(var ne="<"+D.call(String(t.nodeName)),re=t.attributes||[],ie=0;ie"}if(I(t)){if(0===t.length)return"[]";var oe=X(t,U);return L&&!function(e){for(var t=0;t=0)return!1;return!0}(oe)?"["+K(oe,L)+"]":"[ "+A.call(oe,", ")+" ]"}if(function(e){return"[object Error]"===W(e)&&(!M||!("object"===typeof e&&M in e))}(t)){var ae=X(t,U);return"cause"in Error.prototype||!("cause"in t)||O.call(t,"cause")?0===ae.length?"["+String(t)+"]":"{ ["+String(t)+"] "+A.call(ae,", ")+" }":"{ ["+String(t)+"] "+A.call(k.call("[cause]: "+U(t.cause),ae),", ")+" }"}if("object"===typeof t&&v){if(z&&"function"===typeof t[z]&&P)return P(t,{depth:S-i});if("symbol"!==v&&"function"===typeof t.inspect)return t.inspect()}if(function(e){if(!o||!e||"object"!==typeof e)return!1;try{o.call(e);try{c.call(e)}catch(ne){return!0}return e instanceof Map}catch(t){}return!1}(t)){var ue=[];return a&&a.call(t,(function(e,n){ue.push(U(n,t,!0)+" => "+U(e,t))})),J("Map",o.call(t),ue,L)}if(function(e){if(!c||!e||"object"!==typeof e)return!1;try{c.call(e);try{o.call(e)}catch(t){return!0}return e instanceof Set}catch(n){}return!1}(t)){var le=[];return s&&s.call(t,(function(e){le.push(U(e,t))})),J("Set",c.call(t),le,L)}if(function(e){if(!f||!e||"object"!==typeof e)return!1;try{f.call(e,f);try{h.call(e,h)}catch(ne){return!0}return e instanceof WeakMap}catch(t){}return!1}(t))return Q("WeakMap");if(function(e){if(!h||!e||"object"!==typeof e)return!1;try{h.call(e,h);try{f.call(e,f)}catch(ne){return!0}return e instanceof WeakSet}catch(t){}return!1}(t))return Q("WeakSet");if(function(e){if(!d||!e||"object"!==typeof e)return!1;try{return d.call(e),!0}catch(t){}return!1}(t))return Q("WeakRef");if(function(e){return"[object Number]"===W(e)&&(!M||!("object"===typeof e&&M in e))}(t))return G(U(Number(t)));if(function(e){if(!e||"object"!==typeof e||!C)return!1;try{return C.call(e),!0}catch(t){}return!1}(t))return G(U(C.call(t)));if(function(e){return"[object Boolean]"===W(e)&&(!M||!("object"===typeof e&&M in e))}(t))return G(p.call(t));if(function(e){return"[object String]"===W(e)&&(!M||!("object"===typeof e&&M in e))}(t))return G(U(String(t)));if("undefined"!==typeof window&&t===window)return"{ [object Window] }";if(t===n.g)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===W(e)&&(!M||!("object"===typeof e&&M in e))}(t)&&!j(t)){var ce=X(t,U),se=N?N(t)===Object.prototype:t instanceof Object||t.constructor===Object,fe=t instanceof Object?"":"null prototype",he=!se&&M&&Object(t)===t&&M in t?y.call(W(t),8,-1):fe?"Object":"",de=(se||"function"!==typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(he||fe?"["+A.call(k.call([],he||[],fe||[]),": ")+"] ":"");return 0===ce.length?de+"{}":L?de+"{"+K(ce,L)+"}":de+"{ "+A.call(ce,", ")+" }"}return String(t)};var U=Object.prototype.hasOwnProperty||function(e){return e in this};function V(e,t){return U.call(e,t)}function W(e){return v.call(e)}function Z(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;nt.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return Y(y.call(e,0,t.maxStringLength),t)+r}return $(_.call(_.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,q),"single",t)}function q(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+b.call(t.toString(16))}function G(e){return"Object("+e+")"}function Q(e){return e+" { ? }"}function J(e,t,n,r){return e+" ("+t+") {"+(r?K(n,r):A.call(n,", "))+"}"}function K(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+A.call(e,","+n)+"\n"+t.prev}function X(e,t){var n=I(e),r=[];if(n){r.length=e.length;for(var i=0;i-1?e.split(","):e},c=function(e,t,n,r){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,u=n.depth>0&&/(\[[^[\]]*])/.exec(o),c=u?o.slice(0,u.index):o,s=[];if(c){if(!n.plainObjects&&i.call(Object.prototype,c)&&!n.allowPrototypes)return;s.push(c)}for(var f=0;n.depth>0&&null!==(u=a.exec(o))&&f=0;--o){var a,u=e[o];if("[]"===u&&n.parseArrays)a=[].concat(i);else{a=n.plainObjects?Object.create(null):{};var c="["===u.charAt(0)&&"]"===u.charAt(u.length-1)?u.slice(1,-1):u,s=parseInt(c,10);n.parseArrays||""!==c?!isNaN(s)&&u!==c&&String(s)===c&&s>=0&&n.parseArrays&&s<=n.arrayLimit?(a=[])[s]=i:"__proto__"!==c&&(a[c]=i):a={0:i}}i=a}return i}(s,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!==typeof e.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t="undefined"===typeof e.charset?a.charset:e.charset;return{allowDots:"undefined"===typeof e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"===typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"===typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"===typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"===typeof e.comma?e.comma:a.comma,decoder:"function"===typeof e.decoder?e.decoder:a.decoder,delimiter:"string"===typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"===typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"===typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"===typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null===e||"undefined"===typeof e)return n.plainObjects?Object.create(null):{};for(var s="string"===typeof e?function(e,t){var n,c={__proto__:null},s=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,f=t.parameterLimit===1/0?void 0:t.parameterLimit,h=s.split(t.delimiter,f),d=-1,p=t.charset;if(t.charsetSentinel)for(n=0;n-1&&(m=o(m)?[m]:m),i.call(c,v)?c[v]=r.combine(c[v],m):c[v]=m}return c}(e,n):e,f=n.plainObjects?Object.create(null):{},h=Object.keys(s),d=0;d0?A.join(",")||null:void 0}];else if(l(h))F=h;else{var M=Object.keys(A);F=v?M.sort(v):M}for(var O=a&&l(A)&&1===A.length?n+"[]":n,N=0;N0?D+b:""}},837:function(e,t,n){"use strict";var r=n(609),i=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),u=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||o===r.RFC1738&&(40===s||41===s)?l+=u.charAt(c):s<128?l+=a[s]:s<2048?l+=a[192|s>>6]+a[128|63&s]:s<55296||s>=57344?l+=a[224|s>>12]+a[128|s>>6&63]+a[128|63&s]:(c+=1,s=65536+((1023&s)<<10|1023&u.charCodeAt(c)),l+=a[240|s>>18]+a[128|s>>12&63]+a[128|s>>6&63]+a[128|63&s])}return l},isBuffer:function(e){return!(!e||"object"!==typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var n=[],r=0;r4294967295||l(t)!==t)throw new u("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,c=!0;if("length"in e&&a){var s=a(e,"length");s&&!s.configurable&&(r=!1),s&&!s.writable&&(c=!1)}return(r||c||!n)&&(o?i(e,"length",t,!0,!0):i(e,"length",t)),e}},170:function(e,t,n){"use strict";var r=n(476),i=n(680),o=n(154),a=r("%TypeError%"),u=r("%WeakMap%",!0),l=r("%Map%",!0),c=i("WeakMap.prototype.get",!0),s=i("WeakMap.prototype.set",!0),f=i("WeakMap.prototype.has",!0),h=i("Map.prototype.get",!0),d=i("Map.prototype.set",!0),p=i("Map.prototype.has",!0),v=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n};e.exports=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new a("Side channel does not contain "+o(e))},get:function(r){if(u&&r&&("object"===typeof r||"function"===typeof r)){if(e)return c(e,r)}else if(l){if(t)return h(t,r)}else if(n)return function(e,t){var n=v(e,t);return n&&n.value}(n,r)},has:function(r){if(u&&r&&("object"===typeof r||"function"===typeof r)){if(e)return f(e,r)}else if(l){if(t)return p(t,r)}else if(n)return function(e,t){return!!v(e,t)}(n,r);return!1},set:function(r,i){u&&r&&("object"===typeof r||"function"===typeof r)?(e||(e=new u),s(e,r,i)):l?(t||(t=new l),d(t,r,i)):(n||(n={key:{},next:null}),function(e,t,n){var r=v(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(n,r,i))}};return r}},654:function(){}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.m=e,n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=function(e){return Promise.all(Object.keys(n.f).reduce((function(t,r){return n.f[r](e,t),t}),[]))},n.u=function(e){return"static/js/"+e+".da77e7b3.chunk.js"},n.miniCssF=function(e){},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={},t="vmui:";n.l=function(r,i,o,a){if(e[r])e[r].push(i);else{var u,l;if(void 0!==o)for(var c=document.getElementsByTagName("script"),s=0;s2&&(u.children=arguments.length>3?t.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===u[a]&&(u[a]=e.defaultProps[a]);return g(e,u,i,o,null)}function g(e,t,n,o,a){var u={type:e,props:t,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++i:a};return null==a&&null!=r.vnode&&r.vnode(u),u}function y(){return{current:null}}function _(e){return e.children}function b(e,t){this.props=e,this.context=t}function D(e,t){if(null==t)return e.__?D(e.__,e.__.__k.indexOf(e)+1):null;for(var n;tt&&o.sort(l));A.__r=0}function x(e,t,n,r,i,o,a,u,l,c,h){var p,v,m,y,b,w,k,A,x,C=0,T=r&&r.__k||f,M=T.length,O=M,N=t.length;for(n.__k=[],p=0;p0?g(y.type,y.props,y.key,y.ref?y.ref:null,y.__v):y)?(y.__=n,y.__b=n.__b+1,-1===(A=F(y,T,k=p+C,O))?m=s:(m=T[A]||s,T[A]=void 0,O--),B(e,y,m,i,o,a,u,l,c,h),b=y.__e,(v=y.ref)&&m.ref!=v&&(m.ref&&z(m.ref,null,y),h.push(v,y.__c||b,y)),null!=b&&(null==w&&(w=b),(x=m===s||null===m.__v)?-1==A&&C--:A!==k&&(A===k+1?C++:A>k?O>N-k?C+=A-k:C--:C=A(null!=l?1:0))for(;a>=0||u=0){if((l=t[a])&&i==l.key&&o===l.type)return a;a--}if(u2&&(l.children=arguments.length>3?t.call(arguments,2):r),g(e.type,l,i||e.key,o||e.ref,null)}function U(e,t){var n={__c:t="__cC"+c++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,k(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}t=f.slice,r={__e:function(e,t,n,r){for(var i,o,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(e)),a=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,r||{}),a=i.__d),a)return i.__E=i}catch(t){e=t}throw e}},i=0,b.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=p({},this.state),"function"==typeof e&&(e=e(p({},n),this.props)),e&&p(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),k(this))},b.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),k(this))},b.prototype.render=_,o=[],u="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,l=function(e,t){return e.__v.__b-t.__v.__b},A.__r=0,c=0;var V,W,Z,Y,q=0,G=[],Q=[],J=r.__b,K=r.__r,X=r.diffed,ee=r.__c,te=r.unmount;function ne(e,t){r.__h&&r.__h(W,e,q||t),q=0;var n=W.__H||(W.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:Q}),n.__[e]}function re(e){return q=1,ie(De,e)}function ie(e,t,n){var r=ne(V++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):De(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=W,!W.u)){var i=function(e,t,n){if(!r.__c.__H)return!0;var i=r.__c.__H.__.filter((function(e){return e.__c}));if(i.every((function(e){return!e.__N})))return!o||o.call(this,e,t,n);var a=!1;return i.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}})),!(!a&&r.__c.props===e)&&(!o||o.call(this,e,t,n))};W.u=!0;var o=W.shouldComponentUpdate,a=W.componentWillUpdate;W.componentWillUpdate=function(e,t,n){if(this.__e){var r=o;o=void 0,i(e,t,n),o=r}a&&a.call(this,e,t,n)},W.shouldComponentUpdate=i}return r.__N||r.__}function oe(e,t){var n=ne(V++,3);!r.__s&&be(n.__H,t)&&(n.__=e,n.i=t,W.__H.__h.push(n))}function ae(e,t){var n=ne(V++,4);!r.__s&&be(n.__H,t)&&(n.__=e,n.i=t,W.__h.push(n))}function ue(e){return q=5,ce((function(){return{current:e}}),[])}function le(e,t,n){q=6,ae((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}function ce(e,t){var n=ne(V++,7);return be(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function se(e,t){return q=8,ce((function(){return e}),t)}function fe(e){var t=W.context[e.__c],n=ne(V++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(W)),t.props.value):e.__}function he(e,t){r.useDebugValue&&r.useDebugValue(t?t(e):e)}function de(e){var t=ne(V++,10),n=re();return t.__=e,W.componentDidCatch||(W.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]}function pe(){var e=ne(V++,11);if(!e.__){for(var t=W.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function ve(){for(var e;e=G.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ye),e.__H.__h.forEach(_e),e.__H.__h=[]}catch(u){e.__H.__h=[],r.__e(u,e.__v)}}r.__b=function(e){W=null,J&&J(e)},r.__r=function(e){K&&K(e),V=0;var t=(W=e.__c).__H;t&&(Z===W?(t.__h=[],W.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=Q,e.__N=e.i=void 0}))):(t.__h.forEach(ye),t.__h.forEach(_e),t.__h=[],V=0)),Z=W},r.diffed=function(e){X&&X(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==G.push(t)&&Y===r.requestAnimationFrame||((Y=r.requestAnimationFrame)||ge)(ve)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==Q&&(e.__=e.__V),e.i=void 0,e.__V=Q}))),Z=W=null},r.__c=function(e,t){t.some((function(e){try{e.__h.forEach(ye),e.__h=e.__h.filter((function(e){return!e.__||_e(e)}))}catch(i){t.some((function(e){e.__h&&(e.__h=[])})),t=[],r.__e(i,e.__v)}})),ee&&ee(e,t)},r.unmount=function(e){te&&te(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{ye(e)}catch(e){t=e}})),n.__H=void 0,t&&r.__e(t,n.__v))};var me="function"==typeof requestAnimationFrame;function ge(e){var t,n=function(){clearTimeout(r),me&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);me&&(t=requestAnimationFrame(n))}function ye(e){var t=W,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),W=t}function _e(e){var t=W;e.__c=e.__(),W=t}function be(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function De(e,t){return"function"==typeof t?t(e):t}function we(e,t){for(var n in t)e[n]=t[n];return e}function ke(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function Ae(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}function xe(e){this.props=e}function Ee(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:ke(this.props,e)}function r(t){return this.shouldComponentUpdate=n,m(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(xe.prototype=new b).isPureReactComponent=!0,xe.prototype.shouldComponentUpdate=function(e,t){return ke(this.props,e)||ke(this.state,t)};var Ce=r.__b;r.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ce&&Ce(e)};var Se="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Fe(e){function t(t){var n=we({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=Se,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Te=function(e,t){return null==e?null:C(C(e).map(t))},Me={map:Te,forEach:Te,count:function(e){return e?C(e).length:0},only:function(e){var t=C(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:C},Oe=r.__e;r.__e=function(e,t,n,r){if(e.then)for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t);Oe(e,t,n,r)};var Ne=r.unmount;function Be(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=we({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return Be(e,t,n)}))),e}function Pe(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return Pe(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function Le(){this.__u=0,this.t=null,this.__b=null}function ze(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function $e(e){var t,n,r;function i(i){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return m(n,i)}return i.displayName="Lazy",i.__f=!0,i}function Re(){this.u=null,this.o=null}r.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),Ne&&Ne(e)},(Le.prototype=new b).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var i=ze(r.__v),o=!1,a=function(){o||(o=!0,n.__R=null,i?i(u):u())};n.__R=a;var u=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=Pe(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}},l=!0===t.__h;r.__u++||l||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},Le.prototype.componentWillUnmount=function(){this.t=[]},Le.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Be(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&m(_,null,e.fallback);return i&&(i.__h=null),[m(_,null,t.__a?null:e.children),i]};var Ie=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]>>1,1),t.i.removeChild(e)}}),I(m(je,{context:t.context},e.__v),t.l)}function Ue(e,t){var n=m(He,{__v:e,i:t});return n.containerInfo=t,n}(Re.prototype=new b).__a=function(e){var t=this,n=ze(t.__v),r=t.o.get(e);return r[0]++,function(i){var o=function(){t.props.revealOrder?(r.push(i),Ie(t,e,r)):i()};n?n(o):o()}},Re.prototype.render=function(e){this.u=null,this.o=new Map;var t=C(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Re.prototype.componentDidUpdate=Re.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){Ie(e,n,t)}))};var Ve="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,We=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Ze=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Ye=/[A-Z0-9]/g,qe="undefined"!=typeof document,Ge=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function Qe(e,t,n){return null==t.__k&&(t.textContent=""),I(e,t),"function"==typeof n&&n(),e?e.__c:null}function Je(e,t,n){return j(e,t),"function"==typeof n&&n(),e?e.__c:null}b.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(b.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Ke=r.event;function Xe(){}function et(){return this.cancelBubble}function tt(){return this.defaultPrevented}r.event=function(e){return Ke&&(e=Ke(e)),e.persist=Xe,e.isPropagationStopped=et,e.isDefaultPrevented=tt,e.nativeEvent=e};var nt,rt={enumerable:!1,configurable:!0,get:function(){return this.class}},it=r.vnode;r.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,r={};for(var i in t){var o=t[i];if(!("value"===i&&"defaultValue"in t&&null==o||qe&&"children"===i&&"noscript"===n||"class"===i||"className"===i)){var a=i.toLowerCase();"defaultValue"===i&&"value"in t&&null==t.value?i="value":"download"===i&&!0===o?o="":"ondoubleclick"===a?i="ondblclick":"onchange"!==a||"input"!==n&&"textarea"!==n||Ge(t.type)?"onfocus"===a?i="onfocusin":"onblur"===a?i="onfocusout":Ze.test(i)?i=a:-1===n.indexOf("-")&&We.test(i)?i=i.replace(Ye,"-$&").toLowerCase():null===o&&(o=void 0):a=i="oninput","oninput"===a&&r[i=a]&&(i="oninputCapture"),r[i]=o}}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=C(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=C(t.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",rt)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=Ve,it&&it(e)};var ot=r.__r;r.__r=function(e){ot&&ot(e),nt=e.__c};var at=r.diffed;r.diffed=function(e){at&&at(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value),nt=null};var ut={ReactCurrentDispatcher:{current:{readContext:function(e){return nt.__n[e.__c].props.value}}}},lt="17.0.2";function ct(e){return m.bind(null,e)}function st(e){return!!e&&e.$$typeof===Ve}function ft(e){return st(e)&&e.type===_}function ht(e){return st(e)?H.apply(null,arguments):e}function dt(e){return!!e.__k&&(I(null,e),!0)}function pt(e){return e&&(e.base||1===e.nodeType&&e)||null}var vt=function(e,t){return e(t)},mt=function(e,t){return e(t)},gt=_;function yt(e){e()}function _t(e){return e}function bt(){return[!1,yt]}var Dt=ae,wt=st;function kt(e,t){var n=t(),r=re({h:{__:n,v:t}}),i=r[0].h,o=r[1];return ae((function(){i.__=n,i.v=t,Ae(i.__,t())||o({h:i})}),[e,n,t]),oe((function(){return Ae(i.__,i.v())||o({h:i}),e((function(){Ae(i.__,i.v())||o({h:i})}))}),[e]),n}var At,xt={useState:re,useId:pe,useReducer:ie,useEffect:oe,useLayoutEffect:ae,useInsertionEffect:Dt,useTransition:bt,useDeferredValue:_t,useSyncExternalStore:kt,startTransition:yt,useRef:ue,useImperativeHandle:le,useMemo:ce,useCallback:se,useContext:fe,useDebugValue:he,version:"17.0.2",Children:Me,render:Qe,hydrate:Je,unmountComponentAtNode:dt,createPortal:Ue,createElement:m,createContext:U,createFactory:ct,cloneElement:ht,createRef:y,Fragment:_,isValidElement:st,isElement:wt,isFragment:ft,findDOMNode:pt,Component:b,PureComponent:xe,memo:Ee,forwardRef:Fe,flushSync:mt,unstable_batchedUpdates:vt,StrictMode:gt,Suspense:Le,SuspenseList:Re,lazy:$e,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ut},Et=n(658),Ct=n.n(Et),St=n(443),Ft=n.n(St),Tt=n(446),Mt=n.n(Tt),Ot=n(635),Nt=n.n(Ot);function Bt(e){if(Array.isArray(e))return e}function Pt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function tn(){return tn=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function fn(e,t,n,r){void 0===r&&(r={});var i=r,o=i.window,a=void 0===o?document.defaultView:o,u=i.v5Compat,l=void 0!==u&&u,c=a.history,s=At.Pop,f=null,h=d();function d(){return(c.state||{idx:null}).idx}function p(){s=At.Pop;var e=d(),t=null==e?null:e-h;h=e,f&&f({action:s,location:m.location,delta:t})}function v(e){var t="null"!==a.location.origin?a.location.origin:a.location.href,n="string"===typeof e?e:cn(e);return on(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==h&&(h=0,c.replaceState(tn({},c.state,{idx:h}),""));var m={get action(){return s},get location(){return e(a,c)},listen:function(e){if(f)throw new Error("A history only accepts one active listener");return a.addEventListener(rn,p),f=e,function(){a.removeEventListener(rn,p),f=null}},createHref:function(e){return t(a,e)},createURL:v,encodeLocation:function(e){var t=v(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){s=At.Push;var r=ln(m.location,e,t);n&&n(r,e);var i=un(r,h=d()+1),o=m.createHref(r);try{c.pushState(i,"",o)}catch(u){if(u instanceof DOMException&&"DataCloneError"===u.name)throw u;a.location.assign(o)}l&&f&&f({action:s,location:m.location,delta:1})},replace:function(e,t){s=At.Replace;var r=ln(m.location,e,t);n&&n(r,e);var i=un(r,h=d()),o=m.createHref(r);c.replaceState(i,"",o),l&&f&&f({action:s,location:m.location,delta:0})},go:function(e){return c.go(e)}};return m}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(nn||(nn={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function hn(e,t,n){void 0===n&&(n="/");var r=En(("string"===typeof t?sn(t):t).pathname||"/",n);if(null==r)return null;var i=dn(e);!function(e){e.sort((function(e,t){return e.score!==t.score?t.score-e.score:function(e,t){var n=e.length===t.length&&e.slice(0,-1).every((function(e,n){return e===t[n]}));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((function(e){return e.childrenIndex})),t.routesMeta.map((function(e){return e.childrenIndex})))}))}(i);for(var o=null,a=0;null==o&&a0&&(on(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+u+'".'),dn(e.children,t,l,u)),(null!=e.path||e.index)&&t.push({path:u,score:wn(u,e.index),routesMeta:l})};return e.forEach((function(e,t){var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?")){var r,o=en(pn(e.path));try{for(o.s();!(r=o.n()).done;){var a=r.value;i(e,t,a)}}catch(u){o.e(u)}finally{o.f()}}else i(e,t)})),t}function pn(e){var t=e.split("/");if(0===t.length)return[];var n,r=Bt(n=t)||Rt(n)||Lt(n)||zt(),i=r[0],o=r.slice(1),a=i.endsWith("?"),u=i.replace(/\?$/,"");if(0===o.length)return a?[u,""]:[u];var l=pn(o.join("/")),c=[];return c.push.apply(c,It(l.map((function(e){return""===e?u:[u,e].join("/")})))),a&&c.push.apply(c,It(l)),c.map((function(t){return e.startsWith("/")&&""===t?"/":t}))}var vn=/^:\w+$/,mn=3,gn=2,yn=1,_n=10,bn=-2,Dn=function(e){return"*"===e};function wn(e,t){var n=e.split("/"),r=n.length;return n.some(Dn)&&(r+=bn),t&&(r+=gn),n.filter((function(e){return!Dn(e)})).reduce((function(e,t){return e+(vn.test(t)?mn:""===t?yn:_n)}),r)}function kn(e,t){for(var n=e.routesMeta,r={},i="/",o=[],a=0;a and the router will parse it for you.'}function Sn(e){return e.filter((function(e,t){return 0===t||e.route.path&&e.route.path.length>0}))}function Fn(e,t,n,r){var i;void 0===r&&(r=!1),"string"===typeof e?i=sn(e):(on(!(i=tn({},e)).pathname||!i.pathname.includes("?"),Cn("?","pathname","search",i)),on(!i.pathname||!i.pathname.includes("#"),Cn("#","pathname","hash",i)),on(!i.search||!i.search.includes("#"),Cn("#","search","hash",i)));var o,a=""===e||""===i.pathname,u=a?"/":i.pathname;if(r||null==u)o=n;else{var l=t.length-1;if(u.startsWith("..")){for(var c=u.split("/");".."===c[0];)c.shift(),l-=1;i.pathname=c.join("/")}o=l>=0?t[l]:"/"}var s=function(e,t){void 0===t&&(t="/");var n="string"===typeof e?sn(e):e,r=n.pathname,i=n.search,o=void 0===i?"":i,a=n.hash,u=void 0===a?"":a,l=r?r.startsWith("/")?r:function(e,t){var n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((function(e){".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(r,t):t;return{pathname:l,search:On(o),hash:Nn(u)}}(i,o),f=u&&"/"!==u&&u.endsWith("/"),h=(a||"."===u)&&n.endsWith("/");return s.pathname.endsWith("/")||!f&&!h||(s.pathname+="/"),s}var Tn=function(e){return e.join("/").replace(/\/\/+/g,"/")},Mn=function(e){return e.replace(/\/+$/,"").replace(/^\/*/,"/")},On=function(e){return e&&"?"!==e?e.startsWith("?")?e:"?"+e:""},Nn=function(e){return e&&"#"!==e?e.startsWith("#")?e:"#"+e:""};Error;function Bn(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}var Pn=["post","put","patch","delete"],Ln=(new Set(Pn),["get"].concat(Pn));new Set(Ln),new Set([301,302,303,307,308]),new Set([307,308]);Symbol("deferred");function zn(){return zn=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||on(!1),o=o.slice(0,Math.min(o.length,u+1))}return o.reduceRight((function(e,r,i){var u=r.route.id?null==a?void 0:a[r.route.id]:null,l=null;n&&(l=r.route.errorElement||Kn);var c=t.concat(o.slice(0,i+1)),s=function(){var t;return t=u?l:r.route.Component?m(r.route.Component,null):r.route.element?r.route.element:e,m(er,{match:r,routeContext:{outlet:e,matches:c,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===i)?m(Xn,{location:n.location,revalidation:n.revalidation,component:l,error:u,children:s(),routeContext:{outlet:null,matches:c,isDataRoute:!0}}):s()}),null)}var nr=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(nr||{}),rr=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(rr||{});function ir(e){var t=fe($n);return t||on(!1),t}function or(e){var t=fe(Rn);return t||on(!1),t}function ar(e){var t=function(e){var t=fe(Hn);return t||on(!1),t}(),n=t.matches[t.matches.length-1];return n.route.id||on(!1),n.route.id}function ur(e){return function(e){var t=fe(Hn).outlet;return t?m(qn.Provider,{value:e},t):t}(e.context)}function lr(e){on(!1)}function cr(e){var t=e.basename,n=void 0===t?"/":t,r=e.children,i=void 0===r?null:r,o=e.location,a=e.navigationType,u=void 0===a?At.Pop:a,l=e.navigator,c=e.static,s=void 0!==c&&c;Vn()&&on(!1);var f=n.replace(/^\/*/,"/"),h=ce((function(){return{basename:f,navigator:l,static:s}}),[f,l,s]);"string"===typeof o&&(o=sn(o));var d=o,p=d.pathname,v=void 0===p?"/":p,g=d.search,y=void 0===g?"":g,_=d.hash,b=void 0===_?"":_,D=d.state,w=void 0===D?null:D,k=d.key,A=void 0===k?"default":k,x=ce((function(){var e=En(v,f);return null==e?null:{location:{pathname:e,search:y,hash:b,state:w,key:A},navigationType:u}}),[f,v,y,b,w,A,u]);return null==x?null:m(In.Provider,{value:h},m(jn.Provider,{children:i,value:x}))}function sr(e){var t=e.children,n=e.location;return Qn(fr(t),n)}new Promise((function(){}));function fr(e,t){void 0===t&&(t=[]);var n=[];return Me.forEach(e,(function(e,r){if(st(e)){var i=[].concat(It(t),[r]);if(e.type!==_){e.type!==lr&&on(!1),e.props.index&&e.props.children&&on(!1);var o={id:e.props.id||i.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(o.children=fr(e.props.children,i)),n.push(o)}else n.push.apply(n,fr(e.props.children,i))}})),n}function hr(){return hr=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function pr(e){return void 0===e&&(e=""),new URLSearchParams("string"===typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((function(t,n){var r=e[n];return t.concat(Array.isArray(r)?r.map((function(e){return[n,e]})):[[n,r]])}),[]))}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);var vr=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],mr=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"];var gr=U({isTransitioning:!1});var yr=e.startTransition;function _r(e){var t=e.basename,n=e.children,r=e.future,i=e.window,o=ue();null==o.current&&(o.current=function(e){return void 0===e&&(e={}),fn((function(e,t){var n=sn(e.location.hash.substr(1)),r=n.pathname,i=void 0===r?"/":r,o=n.search,a=void 0===o?"":o,u=n.hash,l=void 0===u?"":u;return i.startsWith("/")||i.startsWith(".")||(i="/"+i),ln("",{pathname:i,search:a,hash:l},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){var n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){var i=e.location.href,o=i.indexOf("#");r=-1===o?i:i.slice(0,o)}return r+"#"+("string"===typeof t?t:cn(t))}),(function(e,t){an("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),e)}({window:i,v5Compat:!0}));var a=o.current,u=$t(re({action:a.action,location:a.location}),2),l=u[0],c=u[1],s=(r||{}).v7_startTransition,f=se((function(e){s&&yr?yr((function(){return c(e)})):c(e)}),[c,s]);return ae((function(){return a.listen(f)}),[a,f]),m(cr,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:a})}var br="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement,Dr=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,wr=Fe((function(e,t){var n,r=e.onClick,i=e.relative,o=e.reloadDocument,a=e.replace,u=e.state,l=e.target,s=e.to,f=e.preventScrollReset,h=e.unstable_viewTransition,d=dr(e,vr),p=fe(In).basename,v=!1;if("string"===typeof s&&Dr.test(s)&&(n=s,br))try{var g=new URL(window.location.href),y=s.startsWith("//")?new URL(g.protocol+s):new URL(s),_=En(y.pathname,p);y.origin===g.origin&&null!=_?s=_+y.search+y.hash:v=!0}catch(c){}var b=function(e,t){var n=(void 0===t?{}:t).relative;Vn()||on(!1);var r=fe(In),i=r.basename,o=r.navigator,a=Gn(e,{relative:n}),u=a.hash,l=a.pathname,c=a.search,s=l;return"/"!==i&&(s="/"===l?i:Tn([i,l])),o.createHref({pathname:s,search:c,hash:u})}(s,{relative:i}),D=function(e,t){var n=void 0===t?{}:t,r=n.target,i=n.replace,o=n.state,a=n.preventScrollReset,u=n.relative,l=n.unstable_viewTransition,c=Yn(),s=Wn(),f=Gn(e,{relative:u});return se((function(t){if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(t,r)){t.preventDefault();var n=void 0!==i?i:cn(s)===cn(f);c(e,{replace:n,state:o,preventScrollReset:a,relative:u,unstable_viewTransition:l})}}),[s,c,f,i,o,r,e,a,u,l])}(s,{replace:a,state:u,target:l,preventScrollReset:f,relative:i,unstable_viewTransition:h});return m("a",hr({},d,{href:n||b,onClick:v||o?r:function(e){r&&r(e),e.defaultPrevented||D(e)},ref:t,target:l}))}));var kr=Fe((function(e,t){var n=e["aria-current"],r=void 0===n?"page":n,i=e.caseSensitive,o=void 0!==i&&i,a=e.className,u=void 0===a?"":a,l=e.end,c=void 0!==l&&l,s=e.style,f=e.to,h=e.unstable_viewTransition,d=e.children,p=dr(e,mr),v=Gn(f,{relative:p.relative}),g=Wn(),y=fe(Rn),_=fe(In).navigator,b=null!=y&&function(e,t){void 0===t&&(t={});var n=fe(gr);null==n&&on(!1);var r=Er(Ar.useViewTransitionState).basename,i=Gn(e,{relative:t.relative});if(!n.isTransitioning)return!1;var o=En(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=En(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=An(i.pathname,a)||null!=An(i.pathname,o)}(v)&&!0===h,D=_.encodeLocation?_.encodeLocation(v).pathname:v.pathname,w=g.pathname,k=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;o||(w=w.toLowerCase(),k=k?k.toLowerCase():null,D=D.toLowerCase());var A,x=w===D||!c&&w.startsWith(D)&&"/"===w.charAt(D.length),E=null!=k&&(k===D||!c&&k.startsWith(D)&&"/"===k.charAt(D.length)),C={isActive:x,isPending:E,isTransitioning:b},S=x?r:void 0;A="function"===typeof u?u(C):[u,x?"active":null,E?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");var F="function"===typeof s?s(C):s;return m(wr,hr({},p,{"aria-current":S,className:A,ref:t,style:F,to:f,unstable_viewTransition:h}),"function"===typeof d?d(C):d)}));var Ar,xr;function Er(e){var t=fe($n);return t||on(!1),t}function Cr(e){var t=ue(pr(e)),n=ue(!1),r=Wn(),i=ce((function(){return function(e,t){var n=pr(e);return t&&t.forEach((function(e,r){n.has(r)||t.getAll(r).forEach((function(e){n.append(r,e)}))})),n}(r.search,n.current?null:t.current)}),[r.search]),o=Yn(),a=se((function(e,t){var r=pr("function"===typeof e?e(i):e);n.current=!0,o("?"+r,t)}),[o,i]);return[i,a]}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Ar||(Ar={})),function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(xr||(xr={}));function Sr(e,t,n){return(t=Ut(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Tr(e){for(var t=1;t=100&&(n=r-r%10),e<100&&e>=10&&(n=r-r%5),e<10&&e>=1&&(n=r),e<1&&e>.01&&(n=Math.round(40*e)/40);var i=function(e){return Di(Ct().duration(e,"seconds").asMilliseconds())}(n||.001);return i.replace(/\s/g,"")},gi=function(e){var t=e.match(/\d+/g),n=e.match(/[a-zA-Z]+/g);if(n&&t&&vi.includes(n[0]))return Sr({},n[0],t[0])},yi=function(e,t){return mi(e/(t?fi:si))},_i=function(e,t){var n=(t||Ct()().toDate()).valueOf()/1e3,r=function(e){var t=pi.map((function(e){return e.short})).join("|"),n=new RegExp("\\d+[".concat(t,"]+"),"g"),r=(e.match(n)||[]).reduce((function(e,t){var n=gi(t);return n?Tr(Tr({},e),n):Tr({},e)}),{});return Ct().duration(r).asSeconds()}(e);return{start:n-r,end:n,step:yi(r),date:bi(t||Ct()().toDate())}},bi=function(e){return Ct().tz(e).utc().format(ci)},Di=function(e){var t=Math.floor(e%1e3),n=Math.floor(e/1e3%60),r=Math.floor(e/1e3/60%60),i=Math.floor(e/1e3/3600%24),o=Math.floor(e/864e5),a=["d","h","m","s","ms"],u=[o,i,r,n,t].map((function(e,t){return e?"".concat(e).concat(a[t]):""}));return u.filter((function(e){return e})).join("")},wi=function(e){var t=Ct()(1e3*e);return t.isValid()?t.toDate():new Date},ki=[{title:"Last 5 minutes",duration:"5m"},{title:"Last 15 minutes",duration:"15m"},{title:"Last 30 minutes",duration:"30m",isDefault:!0},{title:"Last 1 hour",duration:"1h"},{title:"Last 3 hours",duration:"3h"},{title:"Last 6 hours",duration:"6h"},{title:"Last 12 hours",duration:"12h"},{title:"Last 24 hours",duration:"24h"},{title:"Last 2 days",duration:"2d"},{title:"Last 7 days",duration:"7d"},{title:"Last 30 days",duration:"30d"},{title:"Last 90 days",duration:"90d"},{title:"Last 180 days",duration:"180d"},{title:"Last 1 year",duration:"1y"},{title:"Yesterday",duration:"1d",until:function(){return Ct()().tz().subtract(1,"day").endOf("day").toDate()}},{title:"Today",duration:"1d",until:function(){return Ct()().tz().endOf("day").toDate()}}].map((function(e){return Tr({id:e.title.replace(/\s/g,"_").toLocaleLowerCase(),until:e.until?e.until:function(){return Ct()().tz().toDate()}},e)})),Ai=function(e){var t,n=e.relativeTimeId,r=e.defaultDuration,i=e.defaultEndInput,o=null===(t=ki.find((function(e){return e.isDefault})))||void 0===t?void 0:t.id,a=n||Vr("g0.relative_time",o),u=ki.find((function(e){return e.id===a}));return{relativeTimeId:u?a:"none",duration:u?u.duration:r,endInput:u?u.until():i}},xi=function(e){var t=Ct()().tz(e);return"UTC".concat(t.format("Z"))},Ei=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=new RegExp(e,"i");return di.reduce((function(n,r){var i=(r.match(/^(.*?)\//)||[])[1]||"unknown",o=xi(r),a=o.replace(/UTC|0/,""),u=r.replace(/[/_]/g," "),l={region:r,utc:o,search:"".concat(r," ").concat(o," ").concat(u," ").concat(a)},c=!e||e&&t.test(l.search);return c&&n[i]?n[i].push(l):c&&(n[i]=[l]),n}),{})},Ci=function(e){Ct().tz.setDefault(e)},Si=function(){var e=Ct().tz.guess(),t=function(e){try{return Ct()().tz(e),!0}catch(c){return!1}}(e);return{isValid:t,title:t?"Browser Time (".concat(e,")"):"Browser timezone (UTC)",region:t?e:"UTC"}},Fi=zr("TIMEZONE")||Si().region;Ci(Fi);var Ti,Mi=Vr("g0.range_input"),Oi=Ai({defaultDuration:Mi||"1h",defaultEndInput:(Ti=Vr("g0.end_input",Ct()().utc().format(ci)),Ct()(Ti).utcOffset(0,!0).toDate()),relativeTimeId:Mi?Vr("g0.relative_time","none"):void 0}),Ni=Oi.duration,Bi=Oi.endInput,Pi=Oi.relativeTimeId,Li={duration:Ni,period:_i(Ni,Bi),relativeTime:Pi,timezone:Fi};function zi(e,t){switch(t.type){case"SET_DURATION":return Tr(Tr({},e),{},{duration:t.payload,period:_i(t.payload,wi(e.period.end)),relativeTime:"none"});case"SET_RELATIVE_TIME":return Tr(Tr({},e),{},{duration:t.payload.duration,period:_i(t.payload.duration,t.payload.until),relativeTime:t.payload.id});case"SET_PERIOD":var n=function(e){var t=e.to.valueOf()-e.from.valueOf();return Di(t)}(t.payload);return Tr(Tr({},e),{},{duration:n,period:_i(n,t.payload.to),relativeTime:"none"});case"RUN_QUERY":var r=Ai({relativeTimeId:e.relativeTime,defaultDuration:e.duration,defaultEndInput:wi(e.period.end)}),i=r.duration,o=r.endInput;return Tr(Tr({},e),{},{period:_i(i,o)});case"RUN_QUERY_TO_NOW":return Tr(Tr({},e),{},{period:_i(e.duration)});case"SET_TIMEZONE":return Ci(t.payload),Lr("TIMEZONE",t.payload),e.defaultTimezone&&Lr("DISABLED_DEFAULT_TIMEZONE",t.payload!==e.defaultTimezone),Tr(Tr({},e),{},{timezone:t.payload});case"SET_DEFAULT_TIMEZONE":return Tr(Tr({},e),{},{defaultTimezone:t.payload});default:throw new Error}}var $i,Ri=U({}),Ii=function(){return fe(Ri).state},ji=function(){return fe(Ri).dispatch},Hi=function(e){var t=e.map((function(e){return e.values[e.index]})),n=function(e){var t=zr(e);return t?JSON.parse(t):[]}("QUERY_HISTORY");n[0]||(n[0]=[]);var r=n[0];t.forEach((function(e){!r.includes(e)&&e&&r.unshift(e),r.length>100&&r.shift()})),Lr("QUERY_HISTORY",JSON.stringify(n))},Ui=50,Vi=1e3,Wi=1e3,Zi=(Sr($i={},Gr.metricsql,2),Sr($i,Gr.empty,2),Sr($i,Gr.label,0),Sr($i,Gr.labelValue,0),$i),Yi=function(){function e(){jt(this,e),this.maxSize=void 0,this.map=void 0,this.maxSize=Wi,this.map=new Map}return Wt(e,[{key:"get",value:function(e){var t,n=en(this.map);try{for(n.s();!(t=n.n()).done;){var r=$t(t.value,2),i=r[0],o=r[1],a=JSON.parse(i),u=a.start===e.start&&a.end===e.end,l=a.type===e.type,c=e.value&&a.value&&e.value.includes(a.value),s=a.match===e.match||c,f=o.length=this.maxSize){var n=this.map.keys().next().value;this.map.delete(n)}this.map.set(JSON.stringify(e),t)}}]),e}(),qi=function(){var e,t=(null===(e=(window.location.hash.split("?")[1]||"").match(/g\d+\.expr/g))||void 0===e?void 0:e.length)||1;return new Array(t>4?4:t).fill(1).map((function(e,t){return Vr("g".concat(t,".expr"),"")}))}(),Gi={query:qi,queryHistory:qi.map((function(e){return{index:0,values:[e]}})),autocomplete:zr("AUTOCOMPLETE")||!1,autocompleteQuick:!1,autocompleteCache:new Yi,metricsQLFunctions:[]};function Qi(e,t){switch(t.type){case"SET_QUERY":return Tr(Tr({},e),{},{query:t.payload.map((function(e){return e}))});case"SET_QUERY_HISTORY":return Hi(t.payload),Tr(Tr({},e),{},{queryHistory:t.payload});case"SET_QUERY_HISTORY_BY_INDEX":return e.queryHistory.splice(t.payload.queryNumber,1,t.payload.value),Tr(Tr({},e),{},{queryHistory:e.queryHistory});case"TOGGLE_AUTOCOMPLETE":return Lr("AUTOCOMPLETE",!e.autocomplete),Tr(Tr({},e),{},{autocomplete:!e.autocomplete});case"SET_AUTOCOMPLETE_QUICK":return Tr(Tr({},e),{},{autocompleteQuick:t.payload});case"SET_AUTOCOMPLETE_CACHE":return e.autocompleteCache.put(t.payload.key,t.payload.value),Tr({},e);case"SET_METRICSQL_FUNCTIONS":return Tr(Tr({},e),{},{metricsQLFunctions:t.payload});default:throw new Error}}var Ji=U({}),Ki=function(){return fe(Ji).state},Xi=function(){return fe(Ji).dispatch},eo=function(){return ii("svg",{viewBox:"0 0 74 24",fill:"currentColor",children:ii("path",{d:"M6.12 10.48c.36.28.8.43 1.26.43h.05c.48 0 .96-.19 1.25-.44 1.5-1.28 5.88-5.29 5.88-5.29C15.73 4.1 12.46 3.01 7.43 3h-.06C2.33 3-.93 4.1.24 5.18c0 0 4.37 4 5.88 5.3Zm2.56 2.16c-.36.28-.8.44-1.26.45h-.04c-.46 0-.9-.17-1.26-.45-1.04-.88-4.74-4.22-6.12-5.5v1.94c0 .21.08.5.22.63l.07.06c1.05.96 4.55 4.16 5.83 5.25.36.28.8.43 1.26.44h.04c.49-.02.96-.2 1.26-.44 1.3-1.11 4.94-4.45 5.88-5.31.15-.14.23-.42.23-.63V7.15a454.94 454.94 0 0 1-6.11 5.5Zm-1.26 4.99c.46 0 .9-.16 1.26-.44a454.4 454.4 0 0 0 6.1-5.5v1.94c0 .2-.07.48-.22.62-.94.87-4.57 4.2-5.88 5.3-.3.26-.77.44-1.26.45h-.04c-.46 0-.9-.16-1.26-.44-1.2-1.02-4.38-3.92-5.62-5.06l-.28-.25c-.14-.14-.22-.42-.22-.62v-1.94c1.38 1.26 5.08 4.6 6.12 5.5.36.28.8.43 1.26.44h.04ZM35 5l-5.84 14.46h-2.43L20.89 5h2.16a.9.9 0 0 1 .9.61l3.41 8.82a18.8 18.8 0 0 1 .62 2.02 19.44 19.44 0 0 1 .57-2.02l3.39-8.82c.05-.15.16-.3.31-.42a.9.9 0 0 1 .58-.19H35Zm17.18 0v14.46H49.8v-9.34c0-.37.02-.78.06-1.21l-4.37 8.21c-.21.4-.53.59-.95.59h-.38c-.43 0-.75-.2-.95-.59L38.8 8.88a22.96 22.96 0 0 1 .07 1.24v9.34H36.5V5h2.03l.3.01c.1 0 .17.02.24.05.07.03.13.07.19.13a1 1 0 0 1 .17.24l4.33 8.03a16.97 16.97 0 0 1 .6 1.36 14.34 14.34 0 0 1 .6-1.38l4.28-8.01c.05-.1.1-.18.17-.24.06-.06.12-.1.19-.13a.9.9 0 0 1 .24-.05l.3-.01h2.04Zm8.88 13.73a4.5 4.5 0 0 0 1.82-.35 3.96 3.96 0 0 0 2.22-2.47c.2-.57.3-1.19.3-1.85V5.31h1.02v8.75c0 .78-.12 1.51-.37 2.19a4.88 4.88 0 0 1-2.76 2.95c-.66.29-1.4.43-2.23.43-.82 0-1.57-.14-2.24-.43a5.01 5.01 0 0 1-2.75-2.95 6.37 6.37 0 0 1-.37-2.19V5.31h1.03v8.74c0 .66.1 1.28.3 1.85a3.98 3.98 0 0 0 2.21 2.47c.53.24 1.14.36 1.82.36Zm10.38.73h-1.03V5.31h1.03v14.15Z"})})},to=function(){return ii("svg",{viewBox:"0 0 85 38",fill:"currentColor",children:[ii("path",{d:"M11.12 10.48c.36.28.8.43 1.26.43h.05c.48 0 .96-.19 1.25-.44 1.5-1.28 5.88-5.29 5.88-5.29 1.17-1.09-2.1-2.17-7.13-2.18h-.06c-5.04 0-8.3 1.1-7.13 2.18 0 0 4.37 4 5.88 5.3Zm2.56 2.16c-.36.28-.8.44-1.26.45h-.04c-.46 0-.9-.17-1.26-.45-1.04-.88-4.74-4.22-6.12-5.5v1.94c0 .21.08.5.22.63l.07.06c1.05.96 4.55 4.16 5.83 5.25.36.28.8.43 1.26.44h.04c.49-.02.96-.2 1.26-.44 1.3-1.11 4.94-4.45 5.88-5.31.15-.14.23-.42.23-.63V7.15a455.13 455.13 0 0 1-6.11 5.5Zm-1.26 4.99c.46 0 .9-.16 1.26-.44 2.05-1.82 4.09-3.65 6.1-5.5v1.94c0 .2-.07.48-.22.62-.94.87-4.57 4.2-5.88 5.3-.3.26-.77.44-1.26.45h-.04c-.46 0-.9-.16-1.26-.44-1.2-1.02-4.38-3.92-5.62-5.06l-.28-.25c-.14-.14-.22-.42-.22-.62v-1.94c1.38 1.26 5.08 4.6 6.12 5.5.36.28.8.43 1.26.44h.04ZM40 5l-5.84 14.46h-2.43L25.89 5h2.16a.9.9 0 0 1 .9.61l3.41 8.82a18.8 18.8 0 0 1 .62 2.02 19.44 19.44 0 0 1 .57-2.02l3.39-8.82c.05-.15.16-.3.31-.42a.9.9 0 0 1 .58-.19H40Zm17.18 0v14.46H54.8v-9.34c0-.37.02-.78.06-1.21l-4.37 8.21c-.21.4-.53.59-.95.59h-.38c-.43 0-.75-.2-.95-.59L43.8 8.88a22.96 22.96 0 0 1 .07 1.24v9.34H41.5V5h2.03l.3.01c.1 0 .17.02.24.05.07.03.13.07.19.13a1 1 0 0 1 .17.24l4.33 8.03a16.97 16.97 0 0 1 .6 1.36 14.34 14.34 0 0 1 .6-1.38l4.28-8.01c.05-.1.1-.18.17-.24.06-.06.12-.1.19-.13a.9.9 0 0 1 .24-.05l.3-.01h2.04Zm8.88 13.73a4.5 4.5 0 0 0 1.82-.35 3.96 3.96 0 0 0 2.22-2.47c.2-.57.3-1.19.3-1.85V5.31h1.02v8.75c0 .78-.12 1.51-.37 2.19a4.88 4.88 0 0 1-2.76 2.95c-.66.29-1.4.43-2.23.43-.82 0-1.57-.14-2.24-.43a5.01 5.01 0 0 1-2.75-2.95 6.37 6.37 0 0 1-.37-2.19V5.31h1.03v8.74c0 .66.1 1.28.3 1.85a3.98 3.98 0 0 0 2.21 2.47c.53.24 1.14.36 1.82.36Zm10.38.73h-1.03V5.31h1.03v14.15ZM1.73 36v-5.17l-.67-.07a.6.6 0 0 1-.21-.1.23.23 0 0 1-.08-.18v-.44h.96v-.59c0-.34.05-.65.14-.92a1.79 1.79 0 0 1 1.08-1.11 2.45 2.45 0 0 1 1.62-.02l-.03.53c0 .1-.06.15-.16.16H4c-.18 0-.35.03-.5.08a.95.95 0 0 0-.39.23c-.1.11-.19.25-.25.43-.05.18-.08.4-.08.65v.56h1.75v.78H2.8V36H1.73Zm6.17-6.17c.45 0 .85.07 1.2.22a2.57 2.57 0 0 1 1.5 1.62c.13.38.2.81.2 1.29s-.07.91-.2 1.3a2.57 2.57 0 0 1-1.49 1.61c-.36.14-.76.21-1.2.21-.45 0-.86-.07-1.22-.21a2.57 2.57 0 0 1-1.5-1.62c-.12-.38-.19-.81-.19-1.3 0-.47.07-.9.2-1.28a2.57 2.57 0 0 1 1.5-1.62c.35-.15.76-.22 1.2-.22Zm0 5.42c.6 0 1.05-.2 1.35-.6.3-.4.44-.97.44-1.69s-.15-1.28-.44-1.69c-.3-.4-.75-.6-1.35-.6-.3 0-.57.05-.8.15-.22.1-.4.26-.56.45-.15.2-.26.44-.33.73-.08.28-.11.6-.11.96 0 .72.15 1.29.44 1.69.3.4.76.6 1.36.6Zm5.26-4.11c.2-.42.43-.74.71-.97.28-.24.62-.36 1.03-.36.13 0 .25.02.36.05.12.02.23.07.32.13l-.08.8c-.02.1-.08.15-.18.15l-.24-.04a1.7 1.7 0 0 0-.88.05c-.15.05-.29.14-.4.25-.12.1-.23.24-.32.4-.1.17-.18.35-.26.56V36h-1.07v-6.08h.61c.12 0 .2.02.24.07.05.04.08.12.1.23l.06.92Zm13.73-3.82L23.39 36h-1.46l-3.5-8.68h1.29a.54.54 0 0 1 .54.37l2.04 5.3a11.31 11.31 0 0 1 .37 1.21 11.65 11.65 0 0 1 .35-1.22l2.03-5.29c.03-.1.1-.18.19-.25.1-.08.21-.12.35-.12h1.3Zm2.2 2.52V36H27.6v-6.16h1.49Zm.2-1.79c0 .13-.02.25-.08.36a1 1 0 0 1-.51.5.96.96 0 0 1-.73 0 1.02 1.02 0 0 1-.5-.5.96.96 0 0 1 0-.73.93.93 0 0 1 .86-.58.9.9 0 0 1 .37.08c.12.05.22.11.3.2a.94.94 0 0 1 .3.67Zm5.72 3.1a.68.68 0 0 1-.13.13c-.04.03-.1.05-.18.05a.42.42 0 0 1-.22-.07 3.95 3.95 0 0 0-.62-.31c-.14-.05-.3-.07-.51-.07-.26 0-.5.04-.69.14-.2.1-.36.23-.49.4-.13.18-.22.4-.29.64-.06.25-.1.53-.1.85 0 .33.04.62.1.88.08.25.18.47.32.64.13.18.29.3.48.4.18.09.4.13.63.13a1.6 1.6 0 0 0 .94-.27l.26-.2a.4.4 0 0 1 .25-.09.3.3 0 0 1 .27.14l.43.54a2.76 2.76 0 0 1-1.77.96c-.22.03-.43.05-.65.05a2.57 2.57 0 0 1-1.96-.83c-.25-.28-.45-.6-.6-1-.14-.4-.21-.85-.21-1.35 0-.45.06-.87.2-1.25a2.61 2.61 0 0 1 1.51-1.67c.37-.16.8-.24 1.28-.24.46 0 .86.07 1.2.22.35.15.66.36.94.64l-.4.54Zm3.43 4.95c-.54 0-.95-.15-1.24-.45-.28-.3-.42-.73-.42-1.26v-3.44h-.63a.29.29 0 0 1-.2-.07c-.06-.06-.09-.13-.09-.24v-.59l.99-.16.31-1.68a.33.33 0 0 1 .12-.18.34.34 0 0 1 .21-.07h.77v1.94h1.64v1.05h-1.64v3.34c0 .2.05.34.14.45.1.1.22.16.39.16a.73.73 0 0 0 .39-.1l.12-.07a.2.2 0 0 1 .11-.03c.05 0 .08.01.11.03l.09.1.44.72c-.21.18-.46.32-.74.4-.28.1-.57.15-.87.15Zm5.09-6.35c.46 0 .87.07 1.24.22a2.7 2.7 0 0 1 1.58 1.63c.14.39.22.83.22 1.31 0 .49-.08.93-.22 1.32-.14.4-.35.73-.62 1-.26.28-.58.49-.96.64-.37.15-.78.22-1.24.22a3.4 3.4 0 0 1-1.25-.22 2.71 2.71 0 0 1-1.59-1.64 3.8 3.8 0 0 1-.21-1.32c0-.48.07-.92.21-1.31a2.75 2.75 0 0 1 1.58-1.63c.38-.15.8-.22 1.26-.22Zm0 5.2c.51 0 .89-.17 1.13-.52.25-.34.38-.84.38-1.5a2.6 2.6 0 0 0-.38-1.53c-.24-.34-.62-.52-1.13-.52-.52 0-.9.18-1.16.53-.25.35-.37.85-.37 1.51s.12 1.17.37 1.51c.25.35.64.52 1.16.52Zm5.56-4.04c.2-.37.42-.65.69-.86.26-.21.57-.32.94-.32.28 0 .5.06.68.19l-.1 1.1a.3.3 0 0 1-.09.16.24.24 0 0 1-.15.04 1.8 1.8 0 0 1-.27-.03 2.01 2.01 0 0 0-.34-.03c-.16 0-.3.03-.44.08a1.1 1.1 0 0 0-.34.2c-.1.1-.2.2-.27.33-.08.13-.15.27-.22.44V36H47.7v-6.16h.87c.15 0 .26.03.31.09.06.05.1.15.13.29l.09.7Zm4.62-1.07V36h-1.49v-6.16h1.49Zm.2-1.79c0 .13-.02.25-.07.36a1 1 0 0 1-.51.5.96.96 0 0 1-.74 0 1.02 1.02 0 0 1-.5-.5.96.96 0 0 1 0-.73.93.93 0 0 1 .86-.58.9.9 0 0 1 .38.08c.11.05.21.11.3.2a.94.94 0 0 1 .28.67Zm4.56 5.32a7.8 7.8 0 0 0-1.08.12c-.29.05-.52.12-.7.2a.92.92 0 0 0-.38.3.64.64 0 0 0-.11.36c0 .26.07.45.23.56.15.11.35.17.6.17.3 0 .57-.06.79-.17.22-.1.44-.28.65-.5v-1.04Zm-3.4-2.67c.71-.65 1.57-.97 2.56-.97.36 0 .68.06.97.18a1.99 1.99 0 0 1 1.16 1.24c.1.3.16.61.16.96V36h-.67a.7.7 0 0 1-.33-.06c-.07-.04-.13-.13-.18-.26l-.13-.44c-.16.14-.3.26-.46.37a2.8 2.8 0 0 1-.97.43 2.77 2.77 0 0 1-1.32-.05 1.62 1.62 0 0 1-.57-.31 1.41 1.41 0 0 1-.38-.53 1.85 1.85 0 0 1-.05-1.18c.05-.16.14-.3.25-.45.12-.14.28-.27.46-.4a3 3 0 0 1 .7-.32 9.19 9.19 0 0 1 2.2-.33v-.36c0-.41-.09-.71-.26-.91-.18-.2-.43-.3-.76-.3a1.84 1.84 0 0 0-1.02.28l-.33.18c-.1.06-.2.09-.32.09-.1 0-.2-.03-.27-.08a.72.72 0 0 1-.17-.2l-.26-.47Zm11.49 4.32V36h-4.88v-8.6h1.16v7.62h3.72Zm3.16-5.2c.44 0 .84.08 1.2.23a2.57 2.57 0 0 1 1.49 1.62c.13.38.2.81.2 1.29s-.07.91-.2 1.3a2.57 2.57 0 0 1-1.49 1.61c-.36.14-.76.21-1.2.21-.45 0-.85-.07-1.21-.21a2.57 2.57 0 0 1-1.5-1.62c-.13-.38-.2-.81-.2-1.3 0-.47.07-.9.2-1.28.14-.39.33-.72.59-1 .25-.26.55-.47.9-.62.37-.15.77-.22 1.22-.22Zm0 5.43c.6 0 1.05-.2 1.34-.6.3-.4.45-.97.45-1.69s-.15-1.28-.45-1.69c-.3-.4-.74-.6-1.34-.6-.3 0-.57.05-.8.15-.22.1-.4.26-.56.45-.15.2-.26.44-.34.73-.07.28-.1.6-.1.96 0 .72.14 1.29.44 1.69.3.4.75.6 1.36.6Zm6.33-2.22c.22 0 .4-.03.57-.09.16-.06.3-.14.41-.25.12-.11.2-.24.26-.39.05-.15.08-.31.08-.5 0-.37-.11-.66-.34-.88-.23-.22-.55-.33-.98-.33-.43 0-.76.1-.99.33-.22.22-.34.51-.34.89 0 .18.03.34.09.5a1.1 1.1 0 0 0 .67.63c.16.06.35.09.57.09Zm1.93 3.3a.51.51 0 0 0-.13-.36.84.84 0 0 0-.34-.22 8.57 8.57 0 0 0-1.73-.2 7.5 7.5 0 0 1-.62-.05c-.23.1-.41.23-.56.4a.8.8 0 0 0-.1.92c.07.12.18.22.32.3.14.1.32.16.54.21a3.5 3.5 0 0 0 1.55 0c.23-.05.42-.12.57-.22.16-.1.29-.21.37-.34a.8.8 0 0 0 .13-.44Zm1.08-6.17v.4c0 .13-.08.21-.25.25l-.69.09c.14.26.2.56.2.88a1.86 1.86 0 0 1-1.36 1.82 3.07 3.07 0 0 1-1.72.04c-.12.08-.22.16-.29.25a.44.44 0 0 0-.1.27c0 .15.06.26.17.33.12.08.28.13.47.16a5 5 0 0 0 .66.06 16.56 16.56 0 0 1 1.5.13c.26.05.48.12.67.22.19.1.34.24.46.41.12.18.18.4.18.69 0 .26-.07.5-.2.75s-.31.46-.56.65c-.24.2-.54.34-.9.46a4.57 4.57 0 0 1-2.36.04c-.33-.09-.6-.2-.82-.36a1.56 1.56 0 0 1-.5-.51c-.1-.2-.16-.4-.16-.6 0-.3.1-.56.28-.77.19-.2.45-.37.77-.5a1.15 1.15 0 0 1-.43-.32.88.88 0 0 1-.15-.54c0-.09.01-.18.04-.27.04-.1.08-.2.15-.28a1.55 1.55 0 0 1 .58-.5c-.3-.16-.53-.39-.7-.66-.17-.28-.25-.6-.25-.97 0-.3.05-.57.16-.8.12-.25.28-.46.48-.63.2-.17.45-.3.73-.4a3 3 0 0 1 2.3.21h1.64Zm4.65.76a.24.24 0 0 1-.23.14.42.42 0 0 1-.2-.07 3.59 3.59 0 0 0-.67-.3 1.8 1.8 0 0 0-1.03 0c-.14.05-.27.11-.37.2a.87.87 0 0 0-.23.27.75.75 0 0 0-.08.35c0 .15.04.28.13.39.1.1.21.19.36.27.15.07.32.14.5.2a13.63 13.63 0 0 1 1.16.4c.2.08.36.18.5.3a1.33 1.33 0 0 1 .5 1.07 2 2 0 0 1-.15.78c-.1.24-.25.44-.45.62-.2.17-.43.3-.72.4a3.1 3.1 0 0 1-2.14-.05 2.97 2.97 0 0 1-.87-.53l.25-.41c.04-.05.07-.1.12-.12a.3.3 0 0 1 .17-.04.4.4 0 0 1 .22.08l.3.19a1.91 1.91 0 0 0 1.03.27c.2 0 .38-.03.54-.08.16-.06.29-.13.4-.22a.96.96 0 0 0 .3-.7c0-.17-.05-.31-.14-.42-.09-.11-.2-.2-.36-.28a2.6 2.6 0 0 0-.5-.2l-.59-.19c-.2-.06-.39-.14-.58-.22a2.14 2.14 0 0 1-.5-.3 1.45 1.45 0 0 1-.36-.46c-.1-.19-.14-.41-.14-.67a1.6 1.6 0 0 1 .57-1.23c.18-.16.4-.3.68-.39.26-.1.57-.14.91-.14a2.84 2.84 0 0 1 1.9.7l-.23.4Z"}),ii("defs",{children:ii("path",{d:"M0 0h85v38H0z"})})]})},no=function(){return ii("svg",{viewBox:"0 0 85 38",fill:"currentColor",children:ii("path",{d:"M11.118 10.476c.36.28.801.433 1.257.436h.052c.48-.007.961-.192 1.25-.444 1.509-1.279 5.88-5.287 5.88-5.287 1.168-1.087-2.093-2.174-7.13-2.181h-.06c-5.036.007-8.298 1.094-7.13 2.181 0 0 4.372 4.008 5.88 5.295zm2.559 2.166c-.359.283-.801.439-1.258.444h-.044a2.071 2.071 0 0 1-1.257-.444C10.082 11.755 6.384 8.42 5 7.148v1.93c0 .215.081.496.222.629l.07.064c1.045.955 4.546 4.154 5.825 5.245.358.283.8.438 1.257.444h.044c.489-.015.962-.2 1.258-.444 1.309-1.11 4.948-4.444 5.887-5.31.148-.132.222-.413.222-.628v-1.93a455.127 455.127 0 0 1-6.11 5.494zm-1.258 4.984a2.071 2.071 0 0 0 1.258-.436c2.053-1.815 4.09-3.65 6.11-5.502v1.938c0 .207-.075.488-.223.621-.94.873-4.578 4.2-5.887 5.31-.296.25-.77.436-1.258.443h-.044a2.071 2.071 0 0 1-1.257-.436c-1.204-1.027-4.376-3.928-5.616-5.062l-.28-.255c-.14-.133-.221-.414-.221-.621v-1.938c1.383 1.265 5.081 4.607 6.117 5.495.358.282.8.438 1.257.443h.044zM40 5l-5.84 14.46h-2.43L25.89 5h2.16c.233 0 .423.057.57.17.146.113.256.26.33.44l3.41 8.82c.113.287.22.603.32.95.106.34.206.697.3 1.07.08-.373.166-.73.26-1.07a8.84 8.84 0 0 1 .31-.95l3.39-8.82a.959.959 0 0 1 .31-.42.906.906 0 0 1 .58-.19H40zm17.176 0v14.46h-2.37v-9.34c0-.373.02-.777.06-1.21l-4.37 8.21c-.206.393-.523.59-.95.59h-.38c-.426 0-.743-.197-.95-.59l-4.42-8.24c.02.22.037.437.05.65.014.213.02.41.02.59v9.34h-2.37V5h2.03c.12 0 .224.003.31.01a.778.778 0 0 1 .23.05c.074.027.137.07.19.13.06.06.117.14.17.24l4.33 8.03c.114.213.217.433.31.66.1.227.197.46.29.7.094-.247.19-.483.29-.71.1-.233.207-.457.32-.67l4.27-8.01c.054-.1.11-.18.17-.24a.57.57 0 0 1 .19-.13.903.903 0 0 1 .24-.05c.087-.007.19-.01.31-.01h2.03zm8.887 13.73c.68 0 1.286-.117 1.82-.35.54-.24.996-.57 1.37-.99a4.28 4.28 0 0 0 .85-1.48c.2-.573.3-1.19.3-1.85V5.31h1.02v8.75c0 .78-.124 1.51-.37 2.19a5.248 5.248 0 0 1-1.07 1.77c-.46.5-1.024.893-1.69 1.18-.66.287-1.404.43-2.23.43-.827 0-1.574-.143-2.24-.43a5.012 5.012 0 0 1-1.69-1.18 5.33 5.33 0 0 1-1.06-1.77 6.373 6.373 0 0 1-.37-2.19V5.31h1.03v8.74c0 .66.096 1.277.29 1.85.2.567.483 1.06.85 1.48.373.42.826.75 1.36.99.54.24 1.15.36 1.83.36zm10.38.73h-1.03V5.31h1.03v14.15zM4.242 35v-5.166l-.672-.078a.595.595 0 0 1-.21-.09.23.23 0 0 1-.078-.186v-.438h.96v-.588c0-.348.048-.656.144-.924.1-.272.24-.5.42-.684a1.79 1.79 0 0 1 .66-.426c.256-.096.544-.144.864-.144.272 0 .522.04.75.12l-.024.534c-.008.096-.062.148-.162.156a4.947 4.947 0 0 1-.39.012c-.184 0-.352.024-.504.072a.949.949 0 0 0-.384.234c-.108.108-.192.25-.252.426a2.184 2.184 0 0 0-.084.654v.558h1.752v.774H5.316V35H4.242zM10.416 28.826a3.1 3.1 0 0 1 1.2.222c.356.148.66.358.912.63s.444.602.576.99c.136.384.204.814.204 1.29 0 .48-.068.912-.204 1.296a2.735 2.735 0 0 1-.576.984 2.572 2.572 0 0 1-.912.63 3.175 3.175 0 0 1-1.2.216c-.448 0-.852-.072-1.212-.216a2.572 2.572 0 0 1-.912-.63 2.805 2.805 0 0 1-.582-.984 3.972 3.972 0 0 1-.198-1.296c0-.476.066-.906.198-1.29.136-.388.33-.718.582-.99.252-.272.556-.482.912-.63.36-.148.764-.222 1.212-.222zm0 5.424c.6 0 1.048-.2 1.344-.6.296-.404.444-.966.444-1.686 0-.724-.148-1.288-.444-1.692-.296-.404-.744-.606-1.344-.606-.304 0-.57.052-.798.156a1.507 1.507 0 0 0-.564.45c-.148.196-.26.438-.336.726a3.941 3.941 0 0 0-.108.966c0 .72.148 1.282.444 1.686.3.4.754.6 1.362.6zM15.677 30.14c.192-.416.428-.74.708-.972.28-.236.622-.354 1.026-.354.128 0 .25.014.366.042.12.028.226.072.318.132l-.078.798c-.024.1-.084.15-.18.15-.056 0-.138-.012-.246-.036a1.694 1.694 0 0 0-.366-.036c-.192 0-.364.028-.516.084-.148.056-.282.14-.402.252a1.782 1.782 0 0 0-.318.408c-.092.16-.176.344-.252.552V35h-1.074v-6.078h.612c.116 0 .196.022.24.066.044.044.074.12.09.228l.072.924zM26.761 28.922 24.283 35h-.96l-2.478-6.078h.87a.33.33 0 0 1 .33.222l1.542 3.912c.048.148.09.292.126.432.036.14.07.28.102.42.032-.14.066-.28.102-.42.036-.14.08-.284.132-.432l1.56-3.912a.33.33 0 0 1 .12-.156.311.311 0 0 1 .198-.066h.834zM27.74 35v-6.078h.643c.152 0 .246.074.282.222l.078.624c.224-.276.476-.502.756-.678.28-.176.604-.264.972-.264.408 0 .738.114.99.342.256.228.44.536.552.924.088-.22.2-.41.336-.57a1.987 1.987 0 0 1 1.014-.624c.196-.048.394-.072.594-.072.32 0 .604.052.852.156.252.1.464.248.636.444.176.196.31.438.402.726.092.284.138.61.138.978V35H34.91v-3.87c0-.476-.104-.836-.312-1.08-.208-.248-.508-.372-.9-.372-.176 0-.344.032-.504.096-.156.06-.294.15-.414.27-.12.12-.216.272-.288.456-.068.18-.102.39-.102.63V35h-1.074v-3.87c0-.488-.098-.852-.294-1.092-.196-.24-.482-.36-.858-.36-.264 0-.508.072-.732.216a2.38 2.38 0 0 0-.618.576V35H27.74zM40.746 32.372c-.428.02-.788.058-1.08.114-.292.052-.526.12-.702.204a.923.923 0 0 0-.378.294.639.639 0 0 0-.114.366c0 .26.076.446.228.558.156.112.358.168.606.168.304 0 .566-.054.786-.162.224-.112.442-.28.654-.504v-1.038zm-3.396-2.67c.708-.648 1.56-.972 2.556-.972.36 0 .682.06.966.18.284.116.524.28.72.492.196.208.344.458.444.75.104.292.156.612.156.96V35h-.672a.708.708 0 0 1-.324-.06c-.076-.044-.136-.13-.18-.258l-.132-.444c-.156.14-.308.264-.456.372a2.804 2.804 0 0 1-.462.264c-.16.072-.332.126-.516.162-.18.04-.38.06-.6.06-.26 0-.5-.034-.72-.102a1.618 1.618 0 0 1-.57-.318 1.414 1.414 0 0 1-.372-.522 1.852 1.852 0 0 1-.132-.726 1.419 1.419 0 0 1 .33-.906c.12-.14.274-.272.462-.396s.418-.232.69-.324c.276-.092.596-.166.96-.222.364-.06.78-.096 1.248-.108v-.36c0-.412-.088-.716-.264-.912-.176-.2-.43-.3-.762-.3-.24 0-.44.028-.6.084-.156.056-.294.12-.414.192l-.33.186a.631.631 0 0 1-.324.084.439.439 0 0 1-.264-.078.716.716 0 0 1-.174-.192l-.264-.474zM44.974 29.6c.124-.124.254-.238.39-.342a2.395 2.395 0 0 1 .936-.444c.176-.044.368-.066.576-.066.336 0 .634.058.894.174.26.112.476.272.648.48.176.204.308.45.396.738.092.284.138.598.138.942V35H47.47v-3.918c0-.376-.086-.666-.258-.87-.172-.208-.434-.312-.786-.312-.256 0-.496.058-.72.174a2.58 2.58 0 0 0-.636.474V35h-1.482v-6.156h.906c.192 0 .318.09.378.27l.102.486zM53.085 28.748c.456 0 .87.074 1.242.222a2.692 2.692 0 0 1 1.578 1.626c.144.392.216.83.216 1.314 0 .488-.072.928-.216 1.32-.144.392-.35.726-.618 1.002a2.653 2.653 0 0 1-.96.636 3.333 3.333 0 0 1-1.242.222c-.46 0-.878-.074-1.254-.222a2.712 2.712 0 0 1-.966-.636 2.922 2.922 0 0 1-.618-1.002 3.807 3.807 0 0 1-.216-1.32c0-.484.072-.922.216-1.314.148-.392.354-.724.618-.996.268-.272.59-.482.966-.63a3.397 3.397 0 0 1 1.254-.222zm0 5.202c.512 0 .89-.172 1.134-.516.248-.344.372-.848.372-1.512s-.124-1.17-.372-1.518c-.244-.348-.622-.522-1.134-.522-.52 0-.906.176-1.158.528-.248.348-.372.852-.372 1.512s.124 1.164.372 1.512c.252.344.638.516 1.158.516zM57.252 35v-6.156h.906c.192 0 .318.09.378.27l.096.456c.108-.12.22-.23.336-.33a2.017 2.017 0 0 1 1.32-.492c.388 0 .706.106.954.318.252.208.44.486.564.834a1.93 1.93 0 0 1 .834-.882c.172-.092.354-.16.546-.204.196-.044.392-.066.588-.066.34 0 .642.052.906.156.264.104.486.256.666.456.18.2.316.444.408.732.096.288.144.618.144.99V35h-1.482v-3.918c0-.392-.086-.686-.258-.882-.172-.2-.424-.3-.756-.3-.152 0-.294.026-.426.078a1.026 1.026 0 0 0-.342.228 1.019 1.019 0 0 0-.228.366 1.435 1.435 0 0 0-.084.51V35h-1.488v-3.918c0-.412-.084-.712-.252-.9-.164-.188-.406-.282-.726-.282-.216 0-.418.054-.606.162a1.979 1.979 0 0 0-.516.432V35h-1.482zM70.558 32.372c-.428.02-.788.058-1.08.114-.292.052-.526.12-.702.204a.923.923 0 0 0-.378.294.639.639 0 0 0-.114.366c0 .26.076.446.228.558.156.112.358.168.606.168.304 0 .566-.054.786-.162.224-.112.442-.28.654-.504v-1.038zm-3.396-2.67c.708-.648 1.56-.972 2.556-.972.36 0 .682.06.966.18.284.116.524.28.72.492.196.208.344.458.444.75.104.292.156.612.156.96V35h-.672a.708.708 0 0 1-.324-.06c-.076-.044-.136-.13-.18-.258l-.132-.444c-.156.14-.308.264-.456.372a2.804 2.804 0 0 1-.462.264c-.16.072-.332.126-.516.162-.18.04-.38.06-.6.06-.26 0-.5-.034-.72-.102a1.618 1.618 0 0 1-.57-.318 1.414 1.414 0 0 1-.372-.522 1.852 1.852 0 0 1-.132-.726 1.419 1.419 0 0 1 .33-.906c.12-.14.274-.272.462-.396s.418-.232.69-.324c.276-.092.596-.166.96-.222.364-.06.78-.096 1.248-.108v-.36c0-.412-.088-.716-.264-.912-.176-.2-.43-.3-.762-.3-.24 0-.44.028-.6.084-.156.056-.294.12-.414.192l-.33.186a.631.631 0 0 1-.324.084.439.439 0 0 1-.264-.078.716.716 0 0 1-.174-.192l-.264-.474zM74.9 26.084V35h-1.482v-8.916H74.9zM81.969 28.844l-3.354 7.848a.538.538 0 0 1-.174.234c-.068.056-.174.084-.318.084h-1.104l1.152-2.472-2.49-5.694h1.302c.116 0 .206.028.27.084.068.056.118.12.15.192l1.308 3.192c.044.108.08.216.108.324.032.108.062.218.09.33a32.3 32.3 0 0 1 .108-.33c.036-.112.076-.222.12-.33l1.236-3.186a.437.437 0 0 1 .408-.276h1.188z"})})},ro=function(){return ii("svg",{viewBox:"0 0 15 17",fill:"currentColor",children:ii("path",{d:"M6.11767 7.47586C6.47736 7.75563 6.91931 7.90898 7.37503 7.91213H7.42681C7.90756 7.90474 8.38832 7.71987 8.67677 7.46846C10.1856 6.18921 14.5568 2.18138 14.5568 2.18138C15.7254 1.09438 12.4637 0.00739 7.42681 0H7.36764C2.3308 0.00739 -0.930935 1.09438 0.237669 2.18138C0.237669 2.18138 4.60884 6.18921 6.11767 7.47586ZM8.67677 9.64243C8.31803 9.92483 7.87599 10.0808 7.41941 10.0861H7.37503C6.91845 10.0808 6.47641 9.92483 6.11767 9.64243C5.0822 8.75513 1.38409 5.42018 0.000989555 4.14832V6.07829C0.000989555 6.29273 0.0823481 6.57372 0.222877 6.70682L0.293316 6.7712L0.293344 6.77122C1.33784 7.72579 4.83903 10.9255 6.11767 12.0161C6.47641 12.2985 6.91845 12.4545 7.37503 12.4597H7.41941C7.90756 12.4449 8.38092 12.2601 8.67677 12.0161C9.9859 10.9069 13.6249 7.57198 14.5642 6.70682C14.7121 6.57372 14.7861 6.29273 14.7861 6.07829V4.14832C12.7662 5.99804 10.7297 7.82949 8.67677 9.64243ZM7.41941 14.6263C7.87513 14.6232 8.31708 14.4698 8.67677 14.19C10.7298 12.3746 12.7663 10.5407 14.7861 8.68853V10.6259C14.7861 10.8329 14.7121 11.1139 14.5642 11.247C13.6249 12.1196 9.9859 15.4471 8.67677 16.5563C8.38092 16.8077 7.90756 16.9926 7.41941 17H7.37503C6.91931 16.9968 6.47736 16.8435 6.11767 16.5637C4.91427 15.5373 1.74219 12.6364 0.502294 11.5025C0.393358 11.4029 0.299337 11.3169 0.222877 11.247C0.0823481 11.1139 0.000989555 10.8329 0.000989555 10.6259V8.68853C1.38409 9.95303 5.0822 13.2953 6.11767 14.1827C6.47641 14.4651 6.91845 14.6211 7.37503 14.6263H7.41941Z"})})},io=function(){return ii("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:ii("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"})})},oo=function(){return ii("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:ii("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})})},ao=function(){return ii("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:ii("path",{d:"M12 5V2L8 6l4 4V7c3.31 0 6 2.69 6 6 0 2.97-2.17 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93 0-4.42-3.58-8-8-8zm-6 8c0-1.65.67-3.15 1.76-4.24L6.34 7.34C4.9 8.79 4 10.79 4 13c0 4.08 3.05 7.44 7 7.93v-2.02c-2.83-.48-5-2.94-5-5.91z"})})},uo=function(){return ii("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:ii("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"})})},lo=function(){return ii("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:ii("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"})})},co=function(){return ii("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:ii("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"})})},so=function(){return ii("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:ii("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})})},fo=function(){return ii("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:ii("path",{d:"M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6zm6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26z"})})},ho=function(){return ii("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:ii("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"})})},po=function(){return ii("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:ii("path",{d:"m7 10 5 5 5-5z"})})},vo=function(){return ii("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:ii("path",{d:"M20 5H4c-1.1 0-1.99.9-1.99 2L2 17c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm-9 3h2v2h-2V8zm0 3h2v2h-2v-2zM8 8h2v2H8V8zm0 3h2v2H8v-2zm-1 2H5v-2h2v2zm0-3H5V8h2v2zm9 7H8v-2h8v2zm0-4h-2v-2h2v2zm0-3h-2V8h2v2zm3 3h-2v-2h2v2zm0-3h-2V8h2v2z"})})},mo=function(){return ii("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:ii("path",{d:"M8 5v14l11-7z"})})},go=function(){return ii("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:ii("path",{d:"m3.5 18.49 6-6.01 4 4L22 6.92l-1.41-1.41-7.09 7.97-4-4L2 16.99z"})})},yo=function(){return ii("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:ii("path",{d:"M10 10.02h5V21h-5zM17 21h3c1.1 0 2-.9 2-2v-9h-5v11zm3-18H5c-1.1 0-2 .9-2 2v3h19V5c0-1.1-.9-2-2-2zM3 19c0 1.1.9 2 2 2h3V10H3v9z"})})},_o=function(){return ii("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:ii("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"})})},bo=function(){return ii("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:ii("path",{d:"M8.9999 14.7854L18.8928 4.8925C19.0803 4.70497 19.3347 4.59961 19.5999 4.59961C19.8651 4.59961 20.1195 4.70497 20.307 4.8925L21.707 6.2925C22.0975 6.68303 22.0975 7.31619 21.707 7.70672L9.70701 19.7067C9.31648 20.0972 8.68332 20.0972 8.2928 19.7067L2.6928 14.1067C2.50526 13.9192 2.3999 13.6648 2.3999 13.3996C2.3999 13.1344 2.50526 12.88 2.6928 12.6925L4.0928 11.2925C4.48332 10.902 5.11648 10.902 5.50701 11.2925L8.9999 14.7854Z"})})},Do=function(){return ii("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:ii("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"})})},wo=function(){return ii("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:ii("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"})})},ko=function(){return ii("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:ii("path",{d:"M20 9H4v2h16V9zM4 15h16v-2H4v2z"})})},Ao=function(){return ii("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:[ii("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21 5C19.89 4.65 18.67 4.5 17.5 4.5C15.55 4.5 13.45 4.9 12 6C10.55 4.9 8.45 4.5 6.5 4.5C5.33 4.5 4.11 4.65 3 5C2.25 5.25 1.6 5.55 1 6V20.6C1 20.85 1.25 21.1 1.5 21.1C1.6 21.1 1.65 21.1 1.75 21.05C3.15 20.3 4.85 20 6.5 20C8.2 20 10.65 20.65 12 21.5C13.35 20.65 15.8 20 17.5 20C19.15 20 20.85 20.3 22.25 21.05C22.35 21.1 22.4 21.1 22.5 21.1C22.75 21.1 23 20.85 23 20.6V6C22.4 5.55 21.75 5.25 21 5ZM21 18.5C19.9 18.15 18.7 18 17.5 18C15.8 18 13.35 18.65 12 19.5C10.65 18.65 8.2 18 6.5 18C5.3 18 4.1 18.15 3 18.5V7C4.1 6.65 5.3 6.5 6.5 6.5C8.2 6.5 10.65 7.15 12 8C13.35 7.15 15.8 6.5 17.5 6.5C18.7 6.5 19.9 6.65 21 7V18.5Z"}),ii("path",{d:"M17.5 10.5C18.38 10.5 19.23 10.59 20 10.76V9.24C19.21 9.09 18.36 9 17.5 9C15.8 9 14.26 9.29 13 9.83V11.49C14.13 10.85 15.7 10.5 17.5 10.5ZM13 12.49V14.15C14.13 13.51 15.7 13.16 17.5 13.16C18.38 13.16 19.23 13.25 20 13.42V11.9C19.21 11.75 18.36 11.66 17.5 11.66C15.8 11.66 14.26 11.96 13 12.49ZM17.5 14.33C15.8 14.33 14.26 14.62 13 15.16V16.82C14.13 16.18 15.7 15.83 17.5 15.83C18.38 15.83 19.23 15.92 20 16.09V14.57C19.21 14.41 18.36 14.33 17.5 14.33Z"}),ii("path",{d:"M6.5 10.5C5.62 10.5 4.77 10.59 4 10.76V9.24C4.79 9.09 5.64 9 6.5 9C8.2 9 9.74 9.29 11 9.83V11.49C9.87 10.85 8.3 10.5 6.5 10.5ZM11 12.49V14.15C9.87 13.51 8.3 13.16 6.5 13.16C5.62 13.16 4.77 13.25 4 13.42V11.9C4.79 11.75 5.64 11.66 6.5 11.66C8.2 11.66 9.74 11.96 11 12.49ZM6.5 14.33C8.2 14.33 9.74 14.62 11 15.16V16.82C9.87 16.18 8.3 15.83 6.5 15.83C5.62 15.83 4.77 15.92 4 16.09V14.57C4.79 14.41 5.64 14.33 6.5 14.33Z"})]})},xo=function(){return ii("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:ii("path",{d:"M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10 10-4.49 10-10S17.51 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm3-8c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3 3 1.34 3 3z"})})},Eo=function(){return ii("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:ii("path",{d:"M4 20h16c1.1 0 2-.9 2-2s-.9-2-2-2H4c-1.1 0-2 .9-2 2s.9 2 2 2zm0-3h2v2H4v-2zM2 6c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2s-.9-2-2-2H4c-1.1 0-2 .9-2 2zm4 1H4V5h2v2zm-2 7h16c1.1 0 2-.9 2-2s-.9-2-2-2H4c-1.1 0-2 .9-2 2s.9 2 2 2zm0-3h2v2H4v-2z"})})},Co=function(){return ii("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:ii("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})})},So=function(){return ii("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:ii("path",{d:"M7 20h4c0 1.1-.9 2-2 2s-2-.9-2-2zm-2-1h8v-2H5v2zm11.5-9.5c0 3.82-2.66 5.86-3.77 6.5H5.27c-1.11-.64-3.77-2.68-3.77-6.5C1.5 5.36 4.86 2 9 2s7.5 3.36 7.5 7.5zm4.87-2.13L20 8l1.37.63L22 10l.63-1.37L24 8l-1.37-.63L22 6l-.63 1.37zM19 6l.94-2.06L22 3l-2.06-.94L19 0l-.94 2.06L16 3l2.06.94L19 6z"})})},Fo=function(){return ii("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:ii("path",{d:"M3 14h4v-4H3v4zm0 5h4v-4H3v4zM3 9h4V5H3v4zm5 5h13v-4H8v4zm0 5h13v-4H8v4zM8 5v4h13V5H8z"})})},To=function(){return ii("svg",{viewBox:"0 0 16 16",fill:Qr("color-error"),children:ii("path",{d:"M13.5095 4L8.50952 1H7.50952L2.50952 4L2.01953 4.85999V10.86L2.50952 11.71L7.50952 14.71H8.50952L13.5095 11.71L13.9995 10.86V4.85999L13.5095 4ZM7.50952 13.5601L3.00952 10.86V5.69995L7.50952 8.15002V13.5601ZM3.26953 4.69995L8.00952 1.85999L12.7495 4.69995L8.00952 7.29004L3.26953 4.69995ZM13.0095 10.86L8.50952 13.5601V8.15002L13.0095 5.69995V10.86Z"})})},Mo=function(){return ii("svg",{viewBox:"0 0 16 16",fill:Qr("color-primary"),children:ii("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 5H4V4H1.5L1 4.5V12.5L1.5 13H4V12H2V5ZM14.5 4H12V5H14V12H12V13H14.5L15 12.5V4.5L14.5 4ZM11.76 6.56995L12 7V9.51001L11.7 9.95996L7.19995 11.96H6.73999L4.23999 10.46L4 10.03V7.53003L4.30005 7.06995L8.80005 5.06995H9.26001L11.76 6.56995ZM5 9.70996L6.5 10.61V9.28003L5 8.38V9.70996ZM5.57996 7.56006L7.03003 8.43005L10.42 6.93005L8.96997 6.06006L5.57996 7.56006ZM7.53003 10.73L11.03 9.17004V7.77002L7.53003 9.31995V10.73Z"})})},Oo=function(){return ii("svg",{viewBox:"0 0 16 16",fill:Qr("color-warning"),children:ii("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 2H8L7 3V6H8V3H14V8H10V9H14L15 8V3L14 2ZM9 6H13V7H9.41L9 6.59V6ZM7 7H2L1 8V13L2 14H8L9 13V8L8 7H7ZM8 13H2V8H8V9V13ZM3 9H7V10H3V9ZM3 11H7V12H3V11ZM9 4H13V5H9V4Z"})})},No=function(){return ii("svg",{viewBox:"0 0 16 16",fill:Qr("color-primary"),children:ii("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 3L8 2H14L15 3V8L14 9H10V8H14V3H8V6H7V3ZM9 9V8L8 7H7H2L1 8V13L2 14H8L9 13V9ZM8 8V9V13H2V8H7H8ZM9.41421 7L9 6.58579V6H13V7H9.41421ZM9 4H13V5H9V4ZM7 10H3V11H7V10Z"})})},Bo=n(123),Po=n.n(Bo);function Lo(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var zo=["to","isNavLink","children"],$o=function(e){var t=e.to,n=e.isNavLink,r=e.children,i=Lo(e,zo);return n?ii(kr,Tr(Tr({to:t},i),{},{children:r})):ii("div",Tr(Tr({},i),{},{children:r}))},Ro=function(e){var t,n=e.activeItem,r=e.item,i=e.color,o=void 0===i?Qr("color-primary"):i,a=e.activeNavRef,u=e.onChange,l=e.isNavLink;return ii($o,{className:Po()(Sr({"vm-tabs-item":!0,"vm-tabs-item_active":n===r.value},r.className||"",r.className)),isNavLink:l,to:r.value,style:{color:o},onClick:(t=r.value,function(){u&&u(t)}),ref:n===r.value?a:void 0,children:[r.icon&&ii("div",{className:Po()({"vm-tabs-item__icon":!0,"vm-tabs-item__icon_single":!r.label}),children:r.icon}),r.label]})},Io="undefined"!==typeof window?ae:oe;var jo=function(e,t,n,r){var i=ue(t);Io((function(){i.current=t}),[t]),oe((function(){var t,o=null!==(t=null===n||void 0===n?void 0:n.current)&&void 0!==t?t:window;if(o&&o.addEventListener){var a=function(e){return i.current(e)};return o.addEventListener(e,a,r),function(){o.removeEventListener(e,a,r)}}}),[e,n,r])},Ho=function(){var e=$t(re({width:0,height:0}),2),t=e[0],n=e[1],r=function(){n({width:window.innerWidth,height:window.innerHeight})};return jo("resize",r),Io(r,[]),t},Uo=function(e){var t=e.activeItem,n=e.items,r=e.color,i=void 0===r?Qr("color-primary"):r,o=e.onChange,a=e.indicatorPlacement,u=void 0===a?"bottom":a,l=e.isNavLink,c=Ho(),s=ue(null),f=$t(re({left:0,width:0,bottom:0}),2),h=f[0],d=f[1];return oe((function(){var e;if((null===(e=s.current)||void 0===e?void 0:e.base)instanceof HTMLElement){var t=s.current.base,n=t.offsetLeft,r=t.offsetWidth,i=t.offsetHeight;d({left:n,width:r,bottom:"top"===u?i-2:0})}}),[c,t,s,n]),ii("div",{className:"vm-tabs",children:[n.map((function(e){return ii(Ro,{activeItem:t,item:e,onChange:o,color:i,activeNavRef:s,isNavLink:l},e.value)})),ii("div",{className:"vm-tabs__indicator",style:Tr(Tr({},h),{},{borderColor:i})})]})},Vo=[{value:Zr.chart,icon:ii(go,{}),label:"Graph",prometheusCode:0},{value:Zr.code,icon:ii(_o,{}),label:"JSON",prometheusCode:3},{value:Zr.table,icon:ii(yo,{}),label:"Table",prometheusCode:1}],Wo=Vr("g0.tab",0),Zo=Vo.find((function(e){return e.prometheusCode===+Wo||e.value===Wo})),Yo=zr("SERIES_LIMITS"),qo={displayType:(null===Zo||void 0===Zo?void 0:Zo.value)||Zr.chart,nocache:!1,isTracingEnabled:!1,seriesLimits:Yo?JSON.parse(Yo):Ur,tableCompact:zr("TABLE_COMPACT")||!1};function Go(e,t){switch(t.type){case"SET_DISPLAY_TYPE":return Tr(Tr({},e),{},{displayType:t.payload});case"SET_SERIES_LIMITS":return Lr("SERIES_LIMITS",JSON.stringify(t.payload)),Tr(Tr({},e),{},{seriesLimits:t.payload});case"TOGGLE_QUERY_TRACING":return Tr(Tr({},e),{},{isTracingEnabled:!e.isTracingEnabled});case"TOGGLE_NO_CACHE":return Tr(Tr({},e),{},{nocache:!e.nocache});case"TOGGLE_TABLE_COMPACT":return Lr("TABLE_COMPACT",!e.tableCompact),Tr(Tr({},e),{},{tableCompact:!e.tableCompact});default:throw new Error}}var Qo=U({}),Jo={customStep:Vr("g0.step_input",""),yaxis:{limits:{enable:!1,range:{1:[0,0]}}},isHistogram:!1};function Ko(e,t){switch(t.type){case"TOGGLE_ENABLE_YAXIS_LIMITS":return Tr(Tr({},e),{},{yaxis:Tr(Tr({},e.yaxis),{},{limits:Tr(Tr({},e.yaxis.limits),{},{enable:!e.yaxis.limits.enable})})});case"SET_CUSTOM_STEP":return Tr(Tr({},e),{},{customStep:t.payload});case"SET_YAXIS_LIMITS":return Tr(Tr({},e),{},{yaxis:Tr(Tr({},e.yaxis),{},{limits:Tr(Tr({},e.yaxis.limits),{},{range:t.payload})})});case"SET_IS_HISTOGRAM":return Tr(Tr({},e),{},{isHistogram:t.payload});default:throw new Error}}var Xo=U({}),ea={windows:"Windows",mac:"Mac OS",linux:"Linux"},ta=function(){return(Object.values(ea).find((function(e){return navigator.userAgent.indexOf(e)>=0}))||"unknown")===ea.mac};function na(){var e=Ho(),t=function(){var e=function(){var e=["Android","webOS","iPhone","iPad","iPod","BlackBerry","Windows Phone"].map((function(e){return navigator.userAgent.match(new RegExp(e,"i"))}));return e.some((function(e){return e}))}(),t=window.innerWidth<500;return e||t},n=$t(re(t()),2),r=n[0],i=n[1];return oe((function(){i(t())}),[e]),{isMobile:r}}var ra={success:ii(so,{}),error:ii(co,{}),warning:ii(lo,{}),info:ii(uo,{})},ia=function(e){var t,n=e.variant,r=e.children,i=ai().isDarkTheme,o=na().isMobile;return ii("div",{className:Po()((t={"vm-alert":!0},Sr(t,"vm-alert_".concat(n),n),Sr(t,"vm-alert_dark",i),Sr(t,"vm-alert_mobile",o),t)),children:[ii("div",{className:"vm-alert__icon",children:ra[n||"info"]}),ii("div",{className:"vm-alert__content",children:r})]})},oa=U({showInfoMessage:function(){}}),aa={dashboardsSettings:[],dashboardsLoading:!1,dashboardsError:""};function ua(e,t){switch(t.type){case"SET_DASHBOARDS_SETTINGS":return Tr(Tr({},e),{},{dashboardsSettings:t.payload});case"SET_DASHBOARDS_LOADING":return Tr(Tr({},e),{},{dashboardsLoading:t.payload});case"SET_DASHBOARDS_ERROR":return Tr(Tr({},e),{},{dashboardsError:t.payload});default:throw new Error}}var la,ca=U({}),sa=function(){for(var e=arguments.length,t=new Array(e),n=0;n=128?"#000000":"#FFFFFF"}(Qr("color-".concat(e)));Jr("".concat(e,"-text"),r),t===pa.length-1&&(l({type:"SET_DARK_THEME"}),n(!0))}))},v=function(){var e=zr("THEME")||qr.system,t=f[e];Object.entries(t).forEach((function(e){var t=$t(e,2),n=t[0],r=t[1];Jr(n,r)})),p(),r&&(pa.forEach((function(e){var t=o[e];t&&Jr("color-".concat(e),t)})),p())};return oe((function(){d(),v()}),[f]),oe(d,[c]),oe((function(){var e=Kr()?fa:ha;f[qr.system]!==e?h((function(t){return Tr(Tr({},t),{},Sr({},qr.system,e))})):v()}),[a,u]),oe((function(){r&&l({type:"SET_THEME",payload:qr.light})}),[]),null};function ma(){ma=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function s(e,t,n,r){var o=t&&t.prototype instanceof g?t:g,a=Object.create(o.prototype),u=new T(r||[]);return i(a,"_invoke",{value:E(e,n,u)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",m={};function g(){}function y(){}function _(){}var b={};c(b,a,(function(){return this}));var D=Object.getPrototypeOf,w=D&&D(D(M([])));w&&w!==n&&r.call(w,a)&&(b=w);var k=_.prototype=g.prototype=Object.create(b);function A(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(i,o,a,u){var l=f(e[i],e,o);if("throw"!==l.type){var c=l.arg,s=c.value;return s&&"object"==Ht(s)&&r.call(s,"__await")?t.resolve(s.__await).then((function(e){n("next",e,a,u)}),(function(e){n("throw",e,a,u)})):t.resolve(s).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,u)}))}u(l.arg)}var o;i(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return o=o?o.then(i,i):i()}})}function E(t,n,r){var i=h;return function(o,a){if(i===p)throw new Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var u=r.delegate;if(u){var l=C(u,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===h)throw i=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var c=f(t,n,r);if("normal"===c.type){if(i=r.done?v:d,c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=v,r.method="throw",r.arg=c.arg)}}}function C(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,C(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var o=f(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function F(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function M(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i=0;--o){var a=this.tryEntries[o],u=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),F(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;F(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:M(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}function ga(e,t,n,r,i,o,a){try{var u=e[o](a),l=u.value}catch(c){return void n(c)}u.done?t(l):Promise.resolve(l).then(r,i)}function ya(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){ga(o,r,i,a,u,"next",e)}function u(e){ga(o,r,i,a,u,"throw",e)}a(void 0)}))}}var _a=function(){var e=fe(oa).showInfoMessage;return function(){var t=ya(ma().mark((function t(n,r){var i;return ma().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!==(i=navigator)&&void 0!==i&&i.clipboard){t.next=4;break}return e({text:"Clipboard not supported",type:"error"}),console.warn("Clipboard not supported"),t.abrupt("return",!1);case 4:return t.prev=4,t.next=7,navigator.clipboard.writeText(n);case 7:return r&&e({text:r,type:"success"}),t.abrupt("return",!0);case 11:return t.prev=11,t.t0=t.catch(4),t.t0 instanceof Error&&e({text:"".concat(t.t0.name,": ").concat(t.t0.message),type:"error"}),console.warn("Copy failed",t.t0),t.abrupt("return",!1);case 16:case"end":return t.stop()}}),t,null,[[4,11]])})));return function(e,n){return t.apply(this,arguments)}}()},ba=function(e){var t,n=e.variant,r=void 0===n?"contained":n,i=e.color,o=void 0===i?"primary":i,a=e.size,u=void 0===a?"medium":a,l=e.ariaLabel,c=e.children,s=e.endIcon,f=e.startIcon,h=e.fullWidth,d=void 0!==h&&h,p=e.className,v=e.disabled,m=e.onClick,g=e.onMouseDown;return ii("button",{className:Po()((Sr(t={"vm-button":!0},"vm-button_".concat(r,"_").concat(o),!0),Sr(t,"vm-button_".concat(u),u),Sr(t,"vm-button_icon",(f||s)&&!c),Sr(t,"vm-button_full-width",d),Sr(t,"vm-button_with-icon",f||s),Sr(t,"vm-button_disabled",v),Sr(t,p||"",p),t)),disabled:v,"aria-label":l,onClick:m,onMouseDown:g,children:ii(_,{children:[f&&ii("span",{className:"vm-button__start-icon",children:f}),c&&ii("span",{children:c}),s&&ii("span",{className:"vm-button__end-icon",children:s})]})})},Da=function(e){var t=e.data,n=_a(),r=ce((function(){return JSON.stringify(t,null,2)}),[t]),i=function(){var e=ya(ma().mark((function e(){return ma().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n(r,"Formatted JSON has been copied");case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return ii("div",{className:"vm-json-view",children:[ii("div",{className:"vm-json-view__copy",children:ii(ba,{variant:"outlined",onClick:i,children:"Copy JSON"})}),ii("pre",{className:"vm-json-view__code",children:ii("code",{children:r})})]})},wa=function(e){var t=e.children,n=e.title,r=e.open,i=e.placement,o=void 0===i?"bottom-center":i,a=e.offset,u=void 0===a?{top:6,left:0}:a,l=na().isMobile,c=$t(re(!1),2),s=c[0],f=c[1],h=$t(re({width:0,height:0}),2),d=h[0],p=h[1],v=ue(null),m=ue(null),g=function(){return f(!1)};oe((function(){if(m.current&&s)return p({width:m.current.clientWidth,height:m.current.clientHeight}),window.addEventListener("scroll",g),function(){window.removeEventListener("scroll",g)}}),[s,n]);var y=ce((function(){var e,t=null===v||void 0===v||null===(e=v.current)||void 0===e?void 0:e.base;if(!t||!s)return{};var n=t.getBoundingClientRect(),r={top:0,left:0},i="bottom-right"===o||"top-right"===o,a="bottom-left"===o||"top-left"===o,l=null===o||void 0===o?void 0:o.includes("top"),c=(null===u||void 0===u?void 0:u.top)||0,f=(null===u||void 0===u?void 0:u.left)||0;r.left=n.left-(d.width-n.width)/2+f,r.top=n.height+n.top+c,i&&(r.left=n.right-d.width),a&&(r.left=n.left+f),l&&(r.top=n.top-d.height-c);var h=window,p=h.innerWidth,m=h.innerHeight,g=r.top+d.height+20>m,y=r.top-20<0,_=r.left+d.width+20>p,b=r.left-20<0;return g&&(r.top=n.top-d.height-c),y&&(r.top=n.height+n.top+c),_&&(r.left=n.right-d.width-f),b&&(r.left=n.left+f),r.top<0&&(r.top=20),r.left<0&&(r.left=20),r}),[v,o,s,d]),b=function(){"boolean"!==typeof r&&f(!0)},D=function(){f(!1)};return oe((function(){"boolean"===typeof r&&f(r)}),[r]),oe((function(){var e,t=null===v||void 0===v||null===(e=v.current)||void 0===e?void 0:e.base;if(t)return t.addEventListener("mouseenter",b),t.addEventListener("mouseleave",D),function(){t.removeEventListener("mouseenter",b),t.removeEventListener("mouseleave",D)}}),[v]),ii(_,{children:[ii(_,{ref:v,children:t}),!l&&s&&xt.createPortal(ii("div",{className:"vm-tooltip",ref:m,style:y,children:n}),document.body)]})},ka=function(e){var t=$t(re(!!e),2),n=t[0],r=t[1],i=se((function(){return r(!0)}),[]),o=se((function(){return r(!1)}),[]),a=se((function(){return r((function(e){return!e}))}),[]);return{value:n,setValue:r,setTrue:i,setFalse:o,toggle:a}},Aa=function(e,t,n){var r=se((function(r){var i=null===e||void 0===e?void 0:e.current,o=r.target,a=(null===n||void 0===n?void 0:n.current)&&n.current.contains(o);!i||i.contains((null===r||void 0===r?void 0:r.target)||null)||a||t(r)}),[e,t]);jo("mousedown",r),jo("touchstart",r)},xa=function(e){var t,n=e.children,r=e.buttonRef,i=e.placement,o=void 0===i?"bottom-left":i,a=e.open,u=void 0!==a&&a,l=e.onClose,c=e.offset,s=void 0===c?{top:6,left:0}:c,f=e.clickOutside,h=void 0===f||f,d=e.fullWidth,p=e.title,v=e.disabledFullScreen,m=e.variant,g=na().isMobile,y=Yn(),b=Wn(),D=$t(re({width:0,height:0}),2),w=D[0],k=D[1],A=ka(!1),x=A.value,E=A.setValue,C=A.setFalse,S=ue(null);oe((function(){return E(u),!u&&l&&l(),u&&g&&!v&&(document.body.style.overflow="hidden"),function(){document.body.style.overflow="auto"}}),[u]),oe((function(){var e,t;k({width:(null===S||void 0===S||null===(e=S.current)||void 0===e?void 0:e.clientWidth)||0,height:(null===S||void 0===S||null===(t=S.current)||void 0===t?void 0:t.clientHeight)||0}),E(!1)}),[S]);var F=ce((function(){var e=r.current;if(!e||!x)return{};var t=e.getBoundingClientRect(),n={top:0,left:0,width:"auto"},i="bottom-right"===o||"top-right"===o,a=null===o||void 0===o?void 0:o.includes("top"),u=(null===s||void 0===s?void 0:s.top)||0,l=(null===s||void 0===s?void 0:s.left)||0;n.left=n.left=t.left+l,n.top=t.height+t.top+u,i&&(n.left=t.right-w.width),a&&(n.top=t.top-w.height-u);var c=window,f=c.innerWidth,h=c.innerHeight,p=n.top+w.height+20>h,v=n.top-20<0,m=n.left+w.width+20>f,g=n.left-20<0;return p&&(n.top=t.top-w.height-u),v&&(n.top=t.height+t.top+u),m&&(n.left=t.right-w.width-l),g&&(n.left=t.left+l),d&&(n.width="".concat(t.width,"px")),n.top<0&&(n.top=20),n}),[r,o,x,n,d]);h&&Aa(S,(function(){return E(!1)}),r),oe((function(){if(S.current&&x&&(!g||v)){var e=S.current.getBoundingClientRect(),t=e.right,n=e.width;if(t>window.innerWidth){var r=window.innerWidth-20-n;S.current.style.left=ro?1:0}var La,za,$a,Ra=function(e){var t=e.rows,n=e.columns,r=e.defaultOrderBy,i=e.copyToClipboard,o=e.paginationOffset,a=$t(re(r),2),u=a[0],l=a[1],c=$t(re("desc"),2),s=c[0],f=c[1],h=$t(re(null),2),d=h[0],p=h[1],v=ce((function(){var e=o.startIndex,n=o.endIndex;return function(e,t){var n=e.map((function(e,t){return[e,t]}));return n.sort((function(e,n){var r=t(e[0],n[0]);return 0!==r?r:e[1]-n[1]})),n.map((function(e){return e[0]}))}(t,function(e,t){return"desc"===e?function(e,n){return Pa(e,n,t)}:function(e,n){return-Pa(e,n,t)}}(s,u)).slice(e,n)}),[t,u,s,o]),m=function(e,t){return ya(ma().mark((function n(){return ma().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(d!==t){n.next=2;break}return n.abrupt("return");case 2:return n.prev=2,n.next=5,navigator.clipboard.writeText(String(e));case 5:p(t),n.next=11;break;case 8:n.prev=8,n.t0=n.catch(2),console.error(n.t0);case 11:case"end":return n.stop()}}),n,null,[[2,8]])})))};return oe((function(){if(null!==d){var e=setTimeout((function(){return p(null)}),2e3);return function(){return clearTimeout(e)}}}),[d]),ii("table",{className:"vm-table",children:[ii("thead",{className:"vm-table-header",children:ii("tr",{className:"vm-table__row vm-table__row_header",children:[n.map((function(e){return ii("th",{className:"vm-table-cell vm-table-cell_header vm-table-cell_sort",onClick:(t=e.key,function(){f((function(e){return"asc"===e&&u===t?"desc":"asc"})),l(t)}),children:ii("div",{className:"vm-table-cell__content",children:[ii("div",{children:String(e.title||e.key)}),ii("div",{className:Po()({"vm-table__sort-icon":!0,"vm-table__sort-icon_active":u===e.key,"vm-table__sort-icon_desc":"desc"===s&&u===e.key}),children:ii(po,{})})]})},String(e.key));var t})),i&&ii("th",{className:"vm-table-cell vm-table-cell_header"})]})}),ii("tbody",{className:"vm-table-body",children:v.map((function(e,t){return ii("tr",{className:"vm-table__row",children:[n.map((function(t){return ii("td",{className:Po()(Sr({"vm-table-cell":!0},"".concat(t.className),t.className)),children:e[t.key]||"-"},String(t.key))})),i&&ii("td",{className:"vm-table-cell vm-table-cell_right",children:e[i]&&ii("div",{className:"vm-table-cell__content",children:ii(wa,{title:d===t?"Copied":"Copy row",children:ii(ba,{variant:"text",color:d===t?"success":"gray",size:"small",startIcon:ii(d===t?bo:wo,{}),onClick:m(e[i],t),ariaLabel:"copy row"})})})})]},t)}))})]})},Ia=function(e){var t=e.page,n=e.length,r=e.limit,i=e.onChange,o=na().isMobile,a=function(e){return function(){i(+t+e),window.scrollTo(0,0)}};return ii("div",{className:Po()({"vm-pagination":!0,"vm-pagination_mobile":o}),children:[t>1&&ii(ba,{variant:"text",onClick:a(-1),startIcon:ii("div",{className:"vm-pagination__icon vm-pagination__icon_prev",children:ii(ho,{})}),children:"Previous"}),n>=r&&ii(ba,{variant:"text",onClick:a(1),endIcon:ii("div",{className:"vm-pagination__icon vm-pagination__icon_next",children:ii(ho,{})}),children:"Next"})]})},ja=function(e){var t=e.logs,n=e.limitRows,r=e.displayColumns,i=e.tableCompact,o=e.columns,a=Fa().setSearchParamsFromKeys,u=$t(Sa(1,"page"),2),l=u[0],c=u[1],s=function(e){switch(e){case"time":return"vm-table-cell_logs-time";case"data":return"vm-table-cell_logs vm-table-cell_pre";default:return"vm-table-cell_logs"}},f=ce((function(){var e=(l-1)*Number(n);return{startIndex:e,endIndex:e+Number(n)}}),[l,n]),h=ce((function(){return i?[{key:"data",title:"Data",className:s("data")}]:o.map((function(e){return{key:e,title:e,className:s(e)}}))}),[i,o]),d=ce((function(){return null===r||void 0===r||!r.length||i?h:h.filter((function(e){return r.includes(e.key)}))}),[h,r,i]);return ii(_,{children:[ii(Ra,{rows:t,columns:d,defaultOrderBy:"time",copyToClipboard:"data",paginationOffset:f}),ii(Ia,{page:l,limit:+n,length:t.slice(f.startIndex,f.endIndex).length,onChange:function(e){c(e),a({page:e})}})]})},Ha=function(e){var t=e.defaultExpanded,n=void 0!==t&&t,r=e.onChange,i=e.title,o=e.children,a=$t(re(n),2),u=a[0],l=a[1];return oe((function(){r&&r(u)}),[u]),ii(_,{children:[ii("header",{className:"vm-accordion-header ".concat(u&&"vm-accordion-header_open"),onClick:function(){l((function(e){return!e}))},children:[i,ii("div",{className:"vm-accordion-header__arrow ".concat(u&&"vm-accordion-header__arrow_open"),children:ii(ho,{})})]}),u&&ii("section",{className:"vm-accordion-section",children:o},"content")]})},Ua=function(e){var t=e.logs,n=e.columns,r=ce((function(){var e=["_msg","time","data","_time"],r=n.filter((function(t){return!e.includes(t)}));return function(e,t){var n=e.reduce((function(e,n){var r=t.map((function(e){return"".concat(e,": ").concat(n[e]||"-")})).join("|");return(e[r]=e[r]||[]).push(n),e}),{});return Object.entries(n).map((function(e){var t=$t(e,2),n=t[0],r=t[1];return{keys:n.split("|"),values:r}}))}(t,r)}),[t]);return ii("div",{className:"vm-explore-logs-body-content",children:r.map((function(e){return ii("div",{className:"vm-explore-logs-body-content-group",children:ii(Ha,{defaultExpanded:!0,title:ii("div",{className:"vm-explore-logs-body-content-group-keys",children:[ii("span",{className:"vm-explore-logs-body-content-group-keys__title",children:"Group by:"}),e.keys.map((function(e){return ii("div",{className:"vm-explore-logs-body-content-group-keys__key",children:e},e)}))]}),children:ii("div",{className:"vm-explore-logs-body-content-group-rows",children:e.values.map((function(e){return ii("div",{className:"vm-explore-logs-body-content-group-rows-item",children:[ii("div",{className:"vm-explore-logs-body-content-group-rows-item__time",children:e.time}),ii("div",{className:"vm-explore-logs-body-content-group-rows-item__msg",children:e._msg})]},"".concat(e._msg).concat(e._time))}))})})},e.keys.join(""))}))})},Va=function(e){return e.group="group",e.table="table",e.json="json",e}(Va||{}),Wa=[{label:"Group",value:Va.group,icon:ii(Fo,{})},{label:"Table",value:Va.table,icon:ii(yo,{})},{label:"JSON",value:Va.json,icon:ii(_o,{})}],Za=function(e){var t=e.data,n=e.loaded,r=na().isMobile,i=Ii().timezone,o=Fa().setSearchParamsFromKeys,a=$t(Sa(zr("LOGS_LIMIT")||50,"limit"),2),u=a[0],l=a[1],c=$t(Sa(Va.group,"view"),2),s=c[0],f=c[1],h=$t(re([]),2),d=h[0],p=h[1],v=ka(!1),m=v.value,g=v.toggle,y=ce((function(){return t.map((function(e){return Tr({time:Ct()(e._time).tz().format("MMM DD, YYYY \nHH:mm:ss.SSS"),data:JSON.stringify(e,null,2)},e)}))}),[t,i]),b=ce((function(){if(null===y||void 0===y||!y.length)return[];var e,t=["data","_time"],n=new Set,r=en(y);try{for(r.s();!(e=r.n()).done;){var i=e.value;for(var o in i)n.add(o)}}catch(a){r.e(a)}finally{r.f()}return Array.from(n).filter((function(e){return!t.includes(e)}))}),[y]);return ii("div",{className:Po()({"vm-explore-logs-body":!0,"vm-block":!0,"vm-block_mobile":r}),children:[ii("div",{className:Po()({"vm-explore-logs-body-header":!0,"vm-section-header":!0,"vm-explore-logs-body-header_mobile":r}),children:[ii("div",{className:"vm-section-header__tabs",children:ii(Uo,{activeItem:String(s),items:Wa,onChange:function(e){f(e),o({view:e})}})}),s===Va.table&&ii("div",{className:"vm-explore-logs-body-header__settings",children:[ii(Ca,{limit:+u,onChange:function(e){l(e),o({limit:e}),Lr("LOGS_LIMIT","".concat(e))}}),ii(Na,{columns:b,defaultColumns:d,onChangeColumns:p,tableCompact:m,toggleTableCompact:g})]})]}),ii("div",{className:Po()({"vm-explore-logs-body__table":!0,"vm-explore-logs-body__table_mobile":r}),children:[!t.length&&ii("div",{className:"vm-explore-logs-body__empty",children:n?"No logs found":"Run query to see logs"}),!!t.length&&ii(_,{children:[s===Va.table&&ii(ja,{logs:y,limitRows:+u,displayColumns:d,tableCompact:m,columns:b}),s===Va.group&&ii(Ua,{logs:y,columns:b}),s===Va.json&&ii(Da,{data:t})]})]})]})},Ya=1e3,qa=function(e){var t=e.containerStyles,n=void 0===t?{}:t,r=e.message,i=ai().isDarkTheme;return ii("div",{className:Po()({"vm-spinner":!0,"vm-spinner_dark":i}),style:n&&{},children:[ii("div",{className:"half-circle-spinner",children:[ii("div",{className:"circle circle-1"}),ii("div",{className:"circle circle-2"})]}),r&&ii("div",{className:"vm-spinner__message",children:r})]})},Ga=function(e){var t=e.error,n=e.warning,r=e.info,i=ue(null),o=$t(re(!1),2),a=o[0],u=o[1],l=$t(re(!1),2),c=l[0],s=l[1],f=ce((function(){return t?"ERROR: ":n?"WARNING: ":""}),[t,n]),h="".concat(f).concat(t||n||r),d=function(){var e=i.current;if(e){var t=e.offsetWidth,n=e.scrollWidth,r=e.offsetHeight,o=e.scrollHeight;u(t+1Number(null===v||void 0===v?void 0:v.limit)&&(null===v||void 0===v?void 0:v.message)||""),null!==v&&void 0!==v&&v.limit?t.slice(0,v.limit):t}catch(c){return[]}}),[N,r,n]),z=ce((function(){var e;return 1===L.length&&(null===(e=L[0])||void 0===e?void 0:e.value)===n}),[L]),$=ce((function(){return f&&!L.length}),[f,L]),R=function(){x({index:-1})},I=se((function(e){var t=e.key,n=e.ctrlKey,r=e.metaKey,i=e.shiftKey,o=n||r||i,a=L.length;if("ArrowUp"===t&&!o&&a&&(e.preventDefault(),x((function(e){var t=e.index;return{index:t<=0?0:t-1,type:Ja.keyboard}}))),"ArrowDown"===t&&!o&&a){e.preventDefault();var u=L.length-1;x((function(e){var t=e.index;return{index:t>=u?u:t+1,type:Ja.keyboard}}))}if("Enter"===t){var l=L[A.index];l&&m(l.value),s||P()}"Escape"===t&&P()}),[A,L,P,m,s]);return oe((function(){B(n.length>=u)}),[n,r]),jo("keydown",I),oe((function(){if(w.current&&A.type!==Ja.mouse){var e=w.current.childNodes[A.index];null!==e&&void 0!==e&&e.scrollIntoView&&e.scrollIntoView({block:"center"})}}),[A,L]),oe((function(){x({index:-1})}),[L]),oe((function(){g&&g(N)}),[N]),oe((function(){y&&y(z?[]:L)}),[L,z]),oe((function(){b&&b(w)}),[w]),ii(xa,{open:N,buttonRef:i,placement:"bottom-left",onClose:P,fullWidth:l,title:D?h:void 0,disabledFullScreen:d,offset:p,children:[ii("div",{className:Po()({"vm-autocomplete":!0,"vm-autocomplete_mobile":D&&!d}),ref:w,children:[$&&ii("div",{className:"vm-autocomplete__no-options",children:f}),!z&&L.map((function(e,t){return ii("div",{className:Po()({"vm-list-item":!0,"vm-list-item_mobile":D,"vm-list-item_active":t===A.index,"vm-list-item_multiselect":s,"vm-list-item_multiselect_selected":null===s||void 0===s?void 0:s.includes(e.value),"vm-list-item_with-icon":e.icon}),id:"$autocomplete$".concat(e.value),onClick:(r=e.value,function(){o||(m(r),s||P())}),onMouseEnter:(n=t,function(){x({index:n,type:Ja.mouse})}),onMouseLeave:R,children:[(null===s||void 0===s?void 0:s.includes(e.value))&&ii(bo,{}),ii(_,{children:e.icon}),ii("span",{children:e.value})]},"".concat(t).concat(e.value));var n,r}))]}),C&&ii("div",{className:"vm-autocomplete-message",children:["Shown ",null===v||void 0===v?void 0:v.limit," results out of ",T,". ",C]}),(null===(t=L[A.index])||void 0===t?void 0:t.description)&&ii("div",{className:"vm-autocomplete-info",children:[ii("div",{className:"vm-autocomplete-info__type",children:L[A.index].type}),ii("div",{className:"vm-autocomplete-info__description",dangerouslySetInnerHTML:{__html:L[A.index].description||""}})]})]})},Xa=n(936),eu=n.n(Xa),tu=function(e){return e.replace(/[/\-\\^$*+?.()|[\]{}]/g,"\\$&")},nu=function(e){return JSON.stringify(e).slice(1,-1)},ru=function(e){return e.metric="metric",e.label="label",e.labelValue="labelValue",e}(ru||{}),iu=(Sr(La={},ru.metric,ii(To,{})),Sr(La,ru.label,ii(Oo,{})),Sr(La,ru.labelValue,ii(No,{})),La),ou="u-off",au="u-label",uu="width",lu="height",cu="top",su="bottom",fu="left",hu="right",du="#000",pu=du+"0",vu="mousemove",mu="mousedown",gu="mouseup",yu="mouseenter",_u="mouseleave",bu="dblclick",Du="change",wu="dppxchange",ku="--",Au="undefined"!=typeof window,xu=Au?document:null,Eu=Au?window:null,Cu=Au?navigator:null;function Su(e,t){if(null!=t){var n=e.classList;!n.contains(t)&&n.add(t)}}function Fu(e,t){var n=e.classList;n.contains(t)&&n.remove(t)}function Tu(e,t,n){e.style[t]=n+"px"}function Mu(e,t,n,r){var i=xu.createElement(e);return null!=t&&Su(i,t),null!=n&&n.insertBefore(i,r),i}function Ou(e,t){return Mu("div",e,t)}var Nu=new WeakMap;function Bu(e,t,n,r,i){var o="translate("+t+"px,"+n+"px)";o!=Nu.get(e)&&(e.style.transform=o,Nu.set(e,o),t<0||n<0||t>r||n>i?Su(e,ou):Fu(e,ou))}var Pu=new WeakMap;function Lu(e,t,n){var r=t+n;r!=Pu.get(e)&&(Pu.set(e,r),e.style.background=t,e.style.borderColor=n)}var zu=new WeakMap;function $u(e,t,n,r){var i=t+""+n;i!=zu.get(e)&&(zu.set(e,i),e.style.height=n+"px",e.style.width=t+"px",e.style.marginLeft=r?-t/2+"px":0,e.style.marginTop=r?-n/2+"px":0)}var Ru={passive:!0},Iu=Tr(Tr({},Ru),{},{capture:!0});function ju(e,t,n,r){t.addEventListener(e,n,r?Iu:Ru)}function Hu(e,t,n,r){t.removeEventListener(e,n,r?Iu:Ru)}function Uu(e,t,n,r){var i;n=n||0;for(var o=(r=r||t.length-1)<=2147483647;r-n>1;)t[i=o?n+r>>1:ol((n+r)/2)]=t&&i<=n;i+=r)if(null!=e[i])return i;return-1}function Wu(e,t,n,r){var i=fl(e),o=fl(t),a=10==n?hl:dl;e==t&&(-1==i?(e*=n,t/=n):(e/=n,t*=n));var u=1==o?ul:ol,l=(1==i?ol:ul)(a(il(e))),c=u(a(il(t))),s=sl(n,l),f=sl(n,c);return 10==n&&(l<0&&(s=Sl(s,-l)),c<0&&(f=Sl(f,-c))),r||2==n?(e=s*i,t=f*o):(e=Cl(e,s),t=El(t,f)),[e,t]}function Zu(e,t,n,r){var i=Wu(e,t,n,r);return 0==e&&(i[0]=0),0==t&&(i[1]=0),i}Au&&function e(){var t=devicePixelRatio;za!=t&&(za=t,$a&&Hu(Du,$a,e),$a=matchMedia("(min-resolution: ".concat(za-.001,"dppx) and (max-resolution: ").concat(za+.001,"dppx)")),ju(Du,$a,e),Eu.dispatchEvent(new CustomEvent(wu)))}();var Yu=.1,qu={mode:3,pad:Yu},Gu={pad:0,soft:null,mode:0},Qu={min:Gu,max:Gu};function Ju(e,t,n,r){return $l(n)?Xu(e,t,n):(Gu.pad=n,Gu.soft=r?0:null,Gu.mode=r?3:0,Xu(e,t,Qu))}function Ku(e,t){return null==e?t:e}function Xu(e,t,n){var r=n.min,i=n.max,o=Ku(r.pad,0),a=Ku(i.pad,0),u=Ku(r.hard,-vl),l=Ku(i.hard,vl),c=Ku(r.soft,vl),s=Ku(i.soft,-vl),f=Ku(r.mode,0),h=Ku(i.mode,0),d=t-e,p=hl(d),v=cl(il(e),il(t)),m=hl(v),g=il(m-p);(d<1e-9||g>10)&&(d=0,0!=e&&0!=t||(d=1e-9,2==f&&c!=vl&&(o=0),2==h&&s!=-vl&&(a=0)));var y=d||v||1e3,_=hl(y),b=sl(10,ol(_)),D=Sl(Cl(e-y*(0==d?0==e?.1:1:o),b/10),9),w=e>=c&&(1==f||3==f&&D<=c||2==f&&D>=c)?c:vl,k=cl(u,D=w?w:ll(w,D)),A=Sl(El(t+y*(0==d?0==t?.1:1:a),b/10),9),x=t<=s&&(1==h||3==h&&A>=s||2==h&&A<=s)?s:-vl,E=ll(l,A>x&&t<=x?x:cl(x,A));return k==E&&0==k&&(E=100),[k,E]}var el=new Intl.NumberFormat(Au?Cu.language:"en-US"),tl=function(e){return el.format(e)},nl=Math,rl=nl.PI,il=nl.abs,ol=nl.floor,al=nl.round,ul=nl.ceil,ll=nl.min,cl=nl.max,sl=nl.pow,fl=nl.sign,hl=nl.log10,dl=nl.log2,pl=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return nl.asinh(e/t)},vl=1/0;function ml(e){return 1+(0|hl((e^e>>31)-(e>>31)))}function gl(e,t,n){return ll(cl(e,t),n)}function yl(e){return"function"==typeof e?e:function(){return e}}var _l=function(e){return e},bl=function(e,t){return t},Dl=function(e){return null},wl=function(e){return!0},kl=function(e,t){return e==t},Al=function(e){return Sl(e,14)};function xl(e,t){return Al(Sl(Al(e/t))*t)}function El(e,t){return Al(ul(Al(e/t))*t)}function Cl(e,t){return Al(ol(Al(e/t))*t)}function Sl(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(Ll(e))return e;var n=Math.pow(10,t),r=e*n*(1+Number.EPSILON);return al(r)/n}var Fl=new Map;function Tl(e){return((""+e).split(".")[1]||"").length}function Ml(e,t,n,r){for(var i=[],o=r.map(Tl),a=t;a=0&&a>=0?0:u)+(a>=o[c]?0:o[c]),h=Sl(s,f);i.push(h),Fl.set(h,f)}return i}var Ol={},Nl=[],Bl=[null,null],Pl=Array.isArray,Ll=Number.isInteger;function zl(e){return"string"==typeof e}function $l(e){var t=!1;if(null!=e){var n=e.constructor;t=null==n||n==Object}return t}function Rl(e){return null!=e&&"object"==typeof e}var Il=Object.getPrototypeOf(Uint8Array);function jl(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$l;if(Pl(e)){var r=e.find((function(e){return null!=e}));if(Pl(r)||n(r)){t=Array(e.length);for(var i=0;io){for(r=a-1;r>=0&&null==e[r];)e[r--]=null;for(r=a+1;r12?t-12:t},AA:function(e){return e.getHours()>=12?"PM":"AM"},aa:function(e){return e.getHours()>=12?"pm":"am"},a:function(e){return e.getHours()>=12?"p":"a"},mm:function(e){return Jl(e.getMinutes())},m:function(e){return e.getMinutes()},ss:function(e){return Jl(e.getSeconds())},s:function(e){return e.getSeconds()},fff:function(e){return((t=e.getMilliseconds())<10?"00":t<100?"0":"")+t;var t}};function Xl(e,t){t=t||Ql;for(var n,r=[],i=/\{([a-z]+)\}|[^{]+/gi;n=i.exec(e);)r.push("{"==n[0][0]?Kl[n[1]]:n[0]);return function(e){for(var n="",i=0;i=a,v=f>=o&&f=i?i:f,T=_+(ol(c)-ol(g))+El(g-_,F);d.push(T);for(var M=t(T),O=M.getHours()+M.getMinutes()/n+M.getSeconds()/r,N=f/r,B=h/u.axes[l]._space;!((T=Sl(T+f,1==e?0:3))>s);)if(N>1){var P=ol(Sl(O+N,6))%24,L=t(T).getHours()-P;L>1&&(L=-1),O=(O+N)%24,Sl(((T-=L*r)-d[d.length-1])/f,3)*B>=.7&&d.push(T)}else d.push(T)}return d}}]}var yc=$t(gc(1),3),_c=yc[0],bc=yc[1],Dc=yc[2],wc=$t(gc(.001),3),kc=wc[0],Ac=wc[1],xc=wc[2];function Ec(e,t){return e.map((function(e){return e.map((function(n,r){return 0==r||8==r||null==n?n:t(1==r||0==e[8]?n:e[1]+n)}))}))}function Cc(e,t){return function(n,r,i,o,a){var u,l,c,s,f,h,d=t.find((function(e){return a>=e[0]}))||t[t.length-1];return r.map((function(t){var n=e(t),r=n.getFullYear(),i=n.getMonth(),o=n.getDate(),a=n.getHours(),p=n.getMinutes(),v=n.getSeconds(),m=r!=u&&d[2]||i!=l&&d[3]||o!=c&&d[4]||a!=s&&d[5]||p!=f&&d[6]||v!=h&&d[7]||d[1];return u=r,l=i,c=o,s=a,f=p,h=v,m(n)}))}}function Sc(e,t,n){return new Date(e,t,n)}function Fc(e,t){return t(e)}Ml(2,-53,53,[1]);function Tc(e,t){return function(n,r,i,o){return null==o?ku:t(e(r))}}var Mc={show:!0,live:!0,isolate:!1,mount:function(){},markers:{show:!0,width:2,stroke:function(e,t){var n=e.series[t];return n.width?n.stroke(e,t):n.points.width?n.points.stroke(e,t):null},fill:function(e,t){return e.series[t].fill(e,t)},dash:"solid"},idx:null,idxs:null,values:[]};var Oc=[0,0];function Nc(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return function(e){0==e.button&&(!r||e.target==t)&&n(e)}}function Bc(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return function(e){(!r||e.target==t)&&n(e)}}var Pc={show:!0,x:!0,y:!0,lock:!1,move:function(e,t,n){return Oc[0]=t,Oc[1]=n,Oc},points:{show:function(e,t){var n=e.cursor.points,r=Ou(),i=n.size(e,t);Tu(r,uu,i),Tu(r,lu,i);var o=i/-2;Tu(r,"marginLeft",o),Tu(r,"marginTop",o);var a=n.width(e,t,i);return a&&Tu(r,"borderWidth",a),r},size:function(e,t){return e.series[t].points.size},width:0,stroke:function(e,t){var n=e.series[t].points;return n._stroke||n._fill},fill:function(e,t){var n=e.series[t].points;return n._fill||n._stroke}},bind:{mousedown:Nc,mouseup:Nc,click:Nc,dblclick:Nc,mousemove:Bc,mouseleave:Bc,mouseenter:Bc},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:function(e,t){t.stopPropagation(),t.stopImmediatePropagation()},_x:!1,_y:!1},focus:{prox:-1,bias:0},left:-10,top:-10,idx:null,dataIdx:function(e,t,n){return n},idxs:null,event:null},Lc={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},zc=Hl({},Lc,{filter:bl}),$c=Hl({},zc,{size:10}),Rc=Hl({},Lc,{show:!1}),Ic='12px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',jc="bold "+Ic,Hc={show:!0,scale:"x",stroke:du,space:50,gap:5,size:50,labelGap:0,labelSize:30,labelFont:jc,side:2,grid:zc,ticks:$c,border:Rc,font:Ic,lineGap:1.5,rotate:0},Uc={show:!0,scale:"x",auto:!1,sorted:1,min:vl,max:-vl,idxs:[]};function Vc(e,t,n,r,i){return t.map((function(e){return null==e?"":tl(e)}))}function Wc(e,t,n,r,i,o,a){for(var u=[],l=Fl.get(i)||0,c=n=a?n:Sl(El(n,i),l);c<=r;c=Sl(c+i,l))u.push(Object.is(c,-0)?0:c);return u}function Zc(e,t,n,r,i,o,a){var u=[],l=e.scales[e.axes[t].scale].log,c=ol((10==l?hl:dl)(n));i=sl(l,c),10==l&&c<0&&(i=Sl(i,-c));var s=n;do{u.push(s),s+=i,10==l&&(s=Sl(s,Fl.get(i))),s>=i*l&&(i=s)}while(s<=r);return u}function Yc(e,t,n,r,i,o,a){var u=e.scales[e.axes[t].scale].asinh,l=r>u?Zc(e,t,cl(u,n),r,i):[u],c=r>=0&&n<=0?[0]:[];return(n<-u?Zc(e,t,cl(u,-r),-n,i):[u]).reverse().map((function(e){return-e})).concat(c,l)}var qc=/./,Gc=/[12357]/,Qc=/[125]/,Jc=/1/,Kc=function(e,t,n,r){return e.map((function(e,i){return 4==t&&0==e||i%r==0&&n.test(e.toExponential()[e<0?1:0])?e:null}))};function Xc(e,t,n,r,i){var o=e.axes[n],a=o.scale,u=e.scales[a],l=e.valToPos,c=o._space,s=l(10,a),f=l(9,a)-s>=c?qc:l(7,a)-s>=c?Gc:l(5,a)-s>=c?Qc:Jc;if(f==Jc){var h=il(l(1,a)-s);if(h0){a=new Path2D;for(var u=0==t?xs:Es,l=n,c=0;cs[0]){var f=s[0]-l;f>0&&u(a,l,r,f,r+o),l=s[1]}}var h=n+i-l;h>0&&u(a,l,r-5,h,r+o+10)}return a}function ys(e,t,n,r,i,o,a){for(var u=[],l=e.length,c=1==i?n:r;c>=n&&c<=r;c+=i){if(null===t[c]){var s=c,f=c;if(1==i)for(;++c<=r&&null===t[c];)f=c;else for(;--c>=n&&null===t[c];)f=c;var h=o(e[s]),d=f==s?h:o(e[f]),p=s-i;h=a<=0&&p>=0&&p=0&&v>=0&&v=h&&u.push([h,d])}}return u}function _s(e){return 0==e?_l:1==e?al:function(t){return xl(t,e)}}function bs(e){var t=0==e?Ds:ws,n=0==e?function(e,t,n,r,i,o){e.arcTo(t,n,r,i,o)}:function(e,t,n,r,i,o){e.arcTo(n,t,i,r,o)},r=0==e?function(e,t,n,r,i){e.rect(t,n,r,i)}:function(e,t,n,r,i){e.rect(n,t,i,r)};return function(e,i,o,a,u){var l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,c=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0;0==l&&0==c?r(e,i,o,a,u):(l=ll(l,a/2,u/2),c=ll(c,a/2,u/2),t(e,i+l,o),n(e,i+a,o,i+a,o+u,l),n(e,i+a,o+u,i,o+u,c),n(e,i,o+u,i,o,c),n(e,i,o,i+a,o,l),e.closePath())}}var Ds=function(e,t,n){e.moveTo(t,n)},ws=function(e,t,n){e.moveTo(n,t)},ks=function(e,t,n){e.lineTo(t,n)},As=function(e,t,n){e.lineTo(n,t)},xs=bs(0),Es=bs(1),Cs=function(e,t,n,r,i,o){e.arc(t,n,r,i,o)},Ss=function(e,t,n,r,i,o){e.arc(n,t,r,i,o)},Fs=function(e,t,n,r,i,o,a){e.bezierCurveTo(t,n,r,i,o,a)},Ts=function(e,t,n,r,i,o,a){e.bezierCurveTo(n,t,i,r,a,o)};function Ms(e){return function(e,t,n,r,i){return ds(e,t,(function(t,o,a,u,l,c,s,f,h,d,p){var v,m,g=t.pxRound,y=t.points;0==u.ori?(v=Ds,m=Cs):(v=ws,m=Ss);var _=Sl(y.width*za,3),b=(y.size-y.width)/2*za,D=Sl(2*b,3),w=new Path2D,k=new Path2D,A=e.bbox,x=A.left,E=A.top,C=A.width,S=A.height;xs(k,x-D,E-D,C+2*D,S+2*D);var F=function(e){if(null!=a[e]){var t=g(c(o[e],u,d,f)),n=g(s(a[e],l,p,h));v(w,t+b,n),m(w,t,n,b,0,2*rl)}};if(i)i.forEach(F);else for(var T=n;T<=r;T++)F(T);return{stroke:_>0?w:null,fill:w,clip:k,flags:2|hs}}))}}function Os(e){return function(t,n,r,i,o,a){r!=i&&(o!=r&&a!=r&&e(t,n,r),o!=i&&a!=i&&e(t,n,i),e(t,n,a))}}var Ns=Os(ks),Bs=Os(As);function Ps(e){var t=Ku(null===e||void 0===e?void 0:e.alignGaps,0);return function(e,n,r,i){return ds(e,n,(function(o,a,u,l,c,s,f,h,d,p,v){var m,g,y=o.pxRound,_=function(e){return y(s(e,l,p,h))},b=function(e){return y(f(e,c,v,d))};0==l.ori?(m=ks,g=Ns):(m=As,g=Bs);for(var D,w,k,A=l.dir*(0==l.ori?1:-1),x={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:hs},E=x.stroke,C=vl,S=-vl,F=_(a[1==A?r:i]),T=Vu(u,r,i,1*A),M=Vu(u,r,i,-1*A),O=_(a[T]),N=_(a[M]),B=!1,P=1==A?r:i;P>=r&&P<=i;P+=A){var L=_(a[P]),z=u[P];L==F?null!=z?(w=b(z),C==vl&&(m(E,L,w),D=w),C=ll(w,C),S=cl(w,S)):null===z&&(B=!0):(C!=vl&&(g(E,F,C,S,D,w),k=F),null!=z?(m(E,L,w=b(z)),C=S=D=w):(C=vl,S=-vl,null===z&&(B=!0)),F=L)}C!=vl&&C!=S&&k!=F&&g(E,F,C,S,D,w);var $=$t(ps(e,n),2),R=$[0],I=$[1];if(null!=o.fill||0!=R){var j=x.fill=new Path2D(E),H=b(o.fillTo(e,n,o.min,o.max,R));m(j,N,H),m(j,O,H)}if(!o.spanGaps){var U,V=[];B&&(U=V).push.apply(U,It(ys(a,u,r,i,A,_,t))),x.gaps=V=o.gaps(e,n,r,i,V),x.clip=gs(V,l.ori,h,d,p,v)}return 0!=I&&(x.band=2==I?[ms(e,n,r,i,E,-1),ms(e,n,r,i,E,1)]:ms(e,n,r,i,E,I)),x}))}}function Ls(e,t,n,r,i,o){var a=e.length;if(a<2)return null;var u=new Path2D;if(n(u,e[0],t[0]),2==a)r(u,e[1],t[1]);else{for(var l=Array(a),c=Array(a-1),s=Array(a-1),f=Array(a-1),h=0;h0!==c[d]>0?l[d]=0:(l[d]=3*(f[d-1]+f[d])/((2*f[d]+f[d-1])/c[d-1]+(f[d]+2*f[d-1])/c[d]),isFinite(l[d])||(l[d]=0));l[a-1]=c[a-2];for(var p=0;p=i&&o+(l<5?Fl.get(l):0)<=17)return[l,c]}while(++u0?e:t.clamp(r,e,t.min,t.max,t.key)):4==t.distr?pl(e,t.asinh):e)-t._min)/(t._max-t._min)}function a(e,t,n,r){var i=o(e,t);return r+n*(-1==t.dir?1-i:i)}function u(e,t,n,r){var i=o(e,t);return r+n*(-1==t.dir?i:1-i)}function l(e,t,n,r){return 0==t.ori?a(e,t,n,r):u(e,t,n,r)}r.valToPosH=a,r.valToPosV=u;var c=!1;r.status=0;var s=r.root=Ou("uplot");(null!=e.id&&(s.id=e.id),Su(s,e.class),e.title)&&(Ou("u-title",s).textContent=e.title);var f=Mu("canvas"),h=r.ctx=f.getContext("2d"),d=Ou("u-wrap",s);ju("click",d,(function(e){e.target===v&&((At!=bt||xt!=Dt)&&Mt.click(r,e))}),!0);var p=r.under=Ou("u-under",d);d.appendChild(f);var v=r.over=Ou("u-over",d),m=+Ku((e=jl(e)).pxAlign,1),g=_s(m);(e.plugins||[]).forEach((function(t){t.opts&&(e=t.opts(r,e)||e)}));var y=e.ms||.001,_=r.series=1==i?js(e.series||[],Uc,as,!1):function(e,t){return e.map((function(e,n){return 0==n?null:Hl({},t,e)}))}(e.series||[null],os),b=r.axes=js(e.axes||[],Hc,ns,!0),D=r.scales={},w=r.bands=e.bands||[];w.forEach((function(e){e.fill=yl(e.fill||null),e.dir=Ku(e.dir,-1)}));var k=2==i?_[1].facets[0].scale:_[0].scale,A={axes:function(){for(var e=function(){var e=b[t];if(!e.show||!e._show)return 0;var n,i,o=e.side,a=o%2,u=e.stroke(r,t),c=0==o||3==o?-1:1;if(e.label){var s=e.labelGap*c,f=al((e._lpos+s)*za);nt(e.labelFont[0],u,"center",2==o?cu:su),h.save(),1==a?(n=i=0,h.translate(f,al(pe+me/2)),h.rotate((3==o?-rl:rl)/2)):(n=al(de+ve/2),i=f),h.fillText(e.label,n,i),h.restore()}var d=$t(e._found,2),p=d[0],v=d[1];if(0==v)return 0;var m=D[e.scale],y=0==a?ve:me,_=0==a?de:pe,w=al(e.gap*za),k=e._splits,A=2==m.distr?k.map((function(e){return Je[e]})):k,x=2==m.distr?Je[k[1]]-Je[k[0]]:p,E=e.ticks,C=e.border,S=E.show?al(E.size*za):0,F=e._rotate*-rl/180,T=g(e._pos*za),M=T+(S+w)*c;i=0==a?M:0,n=1==a?M:0,nt(e.font[0],u,1==e.align?fu:2==e.align?hu:F>0?fu:F<0?hu:0==a?"center":3==o?hu:fu,F||1==a?"middle":2==o?cu:su);for(var O=e.font[1]*e.lineGap,N=k.map((function(e){return g(l(e,m,y,_))})),B=e._values,P=0;P0&&(_.forEach((function(e,n){if(n>0&&e.show&&(it(n,!1),it(n,!0),null==e._paths)){var o=2==i?[0,t[n][0].length-1]:function(e){var t=gl(qe-1,0,Pe-1),n=gl(Ge+1,0,Pe-1);for(;null==e[t]&&t>0;)t--;for(;null==e[n]&&n0&&e.show){We!=e.alpha&&(h.globalAlpha=We=e.alpha),null!=e._paths&&ot(t,!1);var n=null!=e._paths?e._paths.gaps:null,i=e.points.show(r,t,qe,Ge,n),o=e.points.filter(r,t,i,n);(i||o)&&(e.points._paths=e.points.paths(r,t,qe,Ge,o),ot(t,!0)),1!=We&&(h.globalAlpha=We=1),vn("drawSeries",t)}})))}},x=(e.drawOrder||["axes","series"]).map((function(e){return A[e]}));function E(t){var n=D[t];if(null==n){var r=(e.scales||Ol)[t]||Ol;if(null!=r.from)E(r.from),D[t]=Hl({},D[r.from],r,{key:t});else{(n=D[t]=Hl({},t==k?ls:cs,r)).key=t;var o=n.time,a=n.range,u=Pl(a);if((t!=k||2==i&&!o)&&(!u||null!=a[0]&&null!=a[1]||(a={min:null==a[0]?qu:{mode:1,hard:a[0],soft:a[0]},max:null==a[1]?qu:{mode:1,hard:a[1],soft:a[1]}},u=!1),!u&&$l(a))){var l=a;a=function(e,t,n){return null==t?Bl:Ju(t,n,l)}}n.range=yl(a||(o?Vs:t==k?3==n.distr?Ys:4==n.distr?Gs:Us:3==n.distr?Zs:4==n.distr?qs:Ws)),n.auto=yl(!u&&n.auto),n.clamp=yl(n.clamp||us),n._min=n._max=null}}}for(var C in E("x"),E("y"),1==i&&_.forEach((function(e){E(e.scale)})),b.forEach((function(e){E(e.scale)})),e.scales)E(C);var S,F,T=D[k],M=T.distr;0==T.ori?(Su(s,"u-hz"),S=a,F=u):(Su(s,"u-vt"),S=u,F=a);var O={};for(var N in D){var B=D[N];null==B.min&&null==B.max||(O[N]={min:B.min,max:B.max},B.min=B.max=null)}var P,L,z,$=e.tzDate||function(e){return new Date(al(e/y))},R=e.fmtDate||Xl,I=1==y?Dc($):xc($),j=Cc($,Ec(1==y?bc:Ac,R)),H=Tc($,Fc("{YYYY}-{MM}-{DD} {h}:{mm}{aa}",R)),U=[],V=r.legend=Hl({},Mc,e.legend),W=V.show,Z=V.markers;V.idxs=U,Z.width=yl(Z.width),Z.dash=yl(Z.dash),Z.stroke=yl(Z.stroke),Z.fill=yl(Z.fill);var Y,q=[],G=[],Q=!1,J={};if(V.live){var K=_[1]?_[1].values:null;for(var X in Y=(Q=null!=K)?K(r,1,0):{_:0})J[X]=ku}if(W)if(P=Mu("table","u-legend",s),z=Mu("tbody",null,P),V.mount(r,P),Q){L=Mu("thead",null,P,z);var ee=Mu("tr",null,L);for(var te in Mu("th",null,ee),Y)Mu("th",au,ee).textContent=te}else Su(P,"u-inline"),V.live&&Su(P,"u-live");var ne={show:!0},re={show:!1};var ie=new Map;function oe(e,t,n){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=ie.get(t)||{},a=Ee.bind[e](r,t,n,i);a&&(ju(e,t,o[e]=a),ie.set(t,o))}function ae(e,t,n){var r=ie.get(t)||{};for(var i in r)null!=e&&i!=e||(Hu(i,t,r[i]),delete r[i]);null==e&&ie.delete(t)}var ue=0,le=0,ce=0,se=0,fe=0,he=0,de=0,pe=0,ve=0,me=0;r.bbox={};var ge=!1,ye=!1,_e=!1,be=!1,De=!1,we=!1;function ke(e,t,n){(n||e!=r.width||t!=r.height)&&Ae(e,t),dt(!1),_e=!0,ye=!0,Ee.left>=0&&(be=we=!0),Ct()}function Ae(e,t){r.width=ue=ce=e,r.height=le=se=t,fe=he=0,function(){var e=!1,t=!1,n=!1,r=!1;b.forEach((function(i,o){if(i.show&&i._show){var a=i.side,u=a%2,l=i._size+(null!=i.label?i.labelSize:0);l>0&&(u?(ce-=l,3==a?(fe+=l,r=!0):n=!0):(se-=l,0==a?(he+=l,e=!0):t=!0))}})),Ne[0]=e,Ne[1]=n,Ne[2]=t,Ne[3]=r,ce-=Ye[1]+Ye[3],fe+=Ye[3],se-=Ye[2]+Ye[0],he+=Ye[0]}(),function(){var e=fe+ce,t=he+se,n=fe,r=he;function i(i,o){switch(i){case 1:return(e+=o)-o;case 2:return(t+=o)-o;case 3:return(n-=o)+o;case 0:return(r-=o)+o}}b.forEach((function(e,t){if(e.show&&e._show){var n=e.side;e._pos=i(n,e._size),null!=e.label&&(e._lpos=i(n,e.labelSize))}}))}();var n=r.bbox;de=n.left=xl(fe*za,.5),pe=n.top=xl(he*za,.5),ve=n.width=xl(ce*za,.5),me=n.height=xl(se*za,.5)}var xe=3;r.setSize=function(e){ke(e.width,e.height)};var Ee=r.cursor=Hl({},Pc,{drag:{y:2==i}},e.cursor),Ce=function(e){Ee.event=e};Ee.idxs=U,Ee._lock=!1;var Se=Ee.points;Se.show=yl(Se.show),Se.size=yl(Se.size),Se.stroke=yl(Se.stroke),Se.width=yl(Se.width),Se.fill=yl(Se.fill);var Fe=r.focus=Hl({},e.focus||{alpha:.3},Ee.focus),Te=Fe.prox>=0,Me=[null];function Oe(e,t){if(1==i||t>0){var n=1==i&&D[e.scale].time,o=e.value;e.value=n?zl(o)?Tc($,Fc(o,R)):o||H:o||ts,e.label=e.label||(n?"Time":"Value")}if(t>0){e.width=null==e.width?1:e.width,e.paths=e.paths||Rs||Dl,e.fillTo=yl(e.fillTo||vs),e.pxAlign=+Ku(e.pxAlign,m),e.pxRound=_s(e.pxAlign),e.stroke=yl(e.stroke||null),e.fill=yl(e.fill||null),e._stroke=e._fill=e._paths=e._focus=null;var a=Sl((3+2*(cl(1,e.width)||1))*1,3),u=e.points=Hl({},{size:a,width:cl(1,.2*a),stroke:e.stroke,space:2*a,paths:Is,_stroke:null,_fill:null},e.points);u.show=yl(u.show),u.filter=yl(u.filter),u.fill=yl(u.fill),u.stroke=yl(u.stroke),u.paths=yl(u.paths),u.pxAlign=e.pxAlign}if(W){var l=function(e,t){if(0==t&&(Q||!V.live||2==i))return Bl;var n=[],o=Mu("tr","u-series",z,z.childNodes[t]);Su(o,e.class),e.show||Su(o,ou);var a=Mu("th",null,o);if(Z.show){var u=Ou("u-marker",a);if(t>0){var l=Z.width(r,t);l&&(u.style.border=l+"px "+Z.dash(r,t)+" "+Z.stroke(r,t)),u.style.background=Z.fill(r,t)}}var c=Ou(au,a);for(var s in c.textContent=e.label,t>0&&(Z.show||(c.style.color=e.width>0?Z.stroke(r,t):Z.fill(r,t)),oe("click",a,(function(t){if(!Ee._lock){Ce(t);var n=_.indexOf(e);if((t.ctrlKey||t.metaKey)!=V.isolate){var r=_.some((function(e,t){return t>0&&t!=n&&e.show}));_.forEach((function(e,t){t>0&&Ht(t,r?t==n?ne:re:ne,!0,gn.setSeries)}))}else Ht(n,{show:!e.show},!0,gn.setSeries)}}),!1),Te&&oe(yu,a,(function(t){Ee._lock||(Ce(t),Ht(_.indexOf(e),Ut,!0,gn.setSeries))}),!1)),Y){var f=Mu("td","u-value",o);f.textContent="--",n.push(f)}return[o,n]}(e,t);q.splice(t,0,l[0]),G.splice(t,0,l[1]),V.values.push(null)}if(Ee.show){U.splice(t,0,null);var c=function(e,t){if(t>0){var n=Ee.points.show(r,t);if(n)return Su(n,"u-cursor-pt"),Su(n,e.class),Bu(n,-10,-10,ce,se),v.insertBefore(n,Me[t]),n}}(e,t);c&&Me.splice(t,0,c)}vn("addSeries",t)}r.addSeries=function(e,t){t=null==t?_.length:t,e=1==i?Hs(e,t,Uc,as):Hs(e,t,null,os),_.splice(t,0,e),Oe(_[t],t)},r.delSeries=function(e){if(_.splice(e,1),W){V.values.splice(e,1),G.splice(e,1);var t=q.splice(e,1)[0];ae(null,t.firstChild),t.remove()}Ee.show&&(U.splice(e,1),Me.length>1&&Me.splice(e,1)[0].remove()),vn("delSeries",e)};var Ne=[!1,!1,!1,!1];function Be(e,t,n,r){var i=$t(n,4),o=i[0],a=i[1],u=i[2],l=i[3],c=t%2,s=0;return 0==c&&(l||a)&&(s=0==t&&!o||2==t&&!u?al(Hc.size/3):0),1==c&&(o||u)&&(s=1==t&&!a||3==t&&!l?al(ns.size/2):0),s}var Pe,Le,ze,$e,Re,Ie,je,He,Ue,Ve,We,Ze=r.padding=(e.padding||[Be,Be,Be,Be]).map((function(e){return yl(Ku(e,Be))})),Ye=r._padding=Ze.map((function(e,t){return e(r,t,Ne,0)})),qe=null,Ge=null,Qe=1==i?_[0].idxs:null,Je=null,Ke=!1;function Xe(e,n){if(t=null==e?[]:jl(e,Rl),2==i){Pe=0;for(var o=1;o<_.length;o++)Pe+=t[o][0].length;r.data=t=e}else if(null==t[0]&&(t[0]=[]),r.data=t.slice(),Je=t[0],Pe=Je.length,2==M){t[0]=Array(Pe);for(var a=0;a=0,we=!0,Ct()}}function et(){var e,n;if(Ke=!0,1==i)if(Pe>0){if(qe=Qe[0]=0,Ge=Qe[1]=Pe-1,e=t[0][qe],n=t[0][Ge],2==M)e=qe,n=Ge;else if(e==n)if(3==M){var r=$t(Wu(e,e,T.log,!1),2);e=r[0],n=r[1]}else if(4==M){var o=$t(Zu(e,e,T.log,!1),2);e=o[0],n=o[1]}else if(T.time)n=e+al(86400/y);else{var a=$t(Ju(e,n,Yu,!0),2);e=a[0],n=a[1]}}else qe=Qe[0]=e=null,Ge=Qe[1]=n=null;jt(k,e,n)}function tt(e,t,n,r,i,o){var a,u,l,c,s;null!==(a=e)&&void 0!==a||(e=pu),null!==(u=n)&&void 0!==u||(n=Nl),null!==(l=r)&&void 0!==l||(r="butt"),null!==(c=i)&&void 0!==c||(i=pu),null!==(s=o)&&void 0!==s||(o="round"),e!=Le&&(h.strokeStyle=Le=e),i!=ze&&(h.fillStyle=ze=i),t!=$e&&(h.lineWidth=$e=t),o!=Ie&&(h.lineJoin=Ie=o),r!=je&&(h.lineCap=je=r),n!=Re&&h.setLineDash(Re=n)}function nt(e,t,n,r){t!=ze&&(h.fillStyle=ze=t),e!=He&&(h.font=He=e),n!=Ue&&(h.textAlign=Ue=n),r!=Ve&&(h.textBaseline=Ve=r)}function rt(e,t,n,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(i.length>0&&e.auto(r,Ke)&&(null==t||null==t.min)){var a=Ku(qe,0),u=Ku(Ge,i.length-1),l=null==n.min?3==e.distr?function(e,t,n){for(var r=vl,i=-vl,o=t;o<=n;o++){var a=e[o];null!=a&&a>0&&(ai&&(i=a))}return[r==vl?1:r,i==-vl?10:i]}(i,a,u):function(e,t,n,r){var i=vl,o=-vl;if(1==r)i=e[t],o=e[n];else if(-1==r)i=e[n],o=e[t];else for(var a=t;a<=n;a++){var u=e[a];null!=u&&(uo&&(o=u))}return[i,o]}(i,a,u,o):[n.min,n.max];e.min=ll(e.min,n.min=l[0]),e.max=cl(e.max,n.max=l[1])}}function it(e,t){var n=t?_[e].points:_[e];n._stroke=n.stroke(r,e),n._fill=n.fill(r,e)}function ot(e,n){var i=n?_[e].points:_[e],o=i._paths,a=o.stroke,u=o.fill,l=o.clip,c=o.flags,s=o._stroke,f=void 0===s?i._stroke:s,d=o._fill,p=void 0===d?i._fill:d,v=o._width,m=void 0===v?i.width:v,g=null,y=(m=Sl(m*za,3))%2/2;n&&null==p&&(p=m>0?"#fff":f);var b=1==i.pxAlign&&y>0;if(b&&h.translate(y,y),!n){var D=de-m/2,k=pe-m/2,A=ve+m,x=me+m;(g=new Path2D).rect(D,k,A,x)}n?ut(f,m,i.dash,i.cap,p,a,u,c,l):function(e,n,i,o,a,u,l,c,s,f,h){var d=!1;w.forEach((function(p,v){if(p.series[0]==e){var m,g=_[p.series[1]],y=t[p.series[1]],b=(g._paths||Ol).band;Pl(b)&&(b=1==p.dir?b[0]:b[1]);var D=null;g.show&&b&&function(e,t,n){for(t=Ku(t,0),n=Ku(n,e.length-1);t<=n;){if(null!=e[t])return!0;t++}return!1}(y,qe,Ge)?(D=p.fill(r,v)||u,m=g._paths.clip):b=null,ut(n,i,o,a,D,l,c,s,f,h,m,b),d=!0}})),d||ut(n,i,o,a,u,l,c,s,f,h)}(e,f,m,i.dash,i.cap,p,a,u,c,g,l),b&&h.translate(-y,-y)}r.setData=Xe;var at=2|hs;function ut(e,t,n,r,i,o,a,u,l,c,s,f){tt(e,t,n,r,i),(l||c||f)&&(h.save(),l&&h.clip(l),c&&h.clip(c)),f?(u&at)==at?(h.clip(f),s&&h.clip(s),ct(i,a),lt(e,o,t)):2&u?(ct(i,a),h.clip(f),lt(e,o,t)):u&hs&&(h.save(),h.clip(f),s&&h.clip(s),ct(i,a),h.restore(),lt(e,o,t)):(ct(i,a),lt(e,o,t)),(l||c||f)&&h.restore()}function lt(e,t,n){n>0&&(t instanceof Map?t.forEach((function(e,t){h.strokeStyle=Le=t,h.stroke(e)})):null!=t&&e&&h.stroke(t))}function ct(e,t){t instanceof Map?t.forEach((function(e,t){h.fillStyle=ze=t,h.fill(e)})):null!=t&&e&&h.fill(t)}function st(e,t,n,r,i,o,a,u,l,c){var s=a%2/2;1==m&&h.translate(s,s),tt(u,a,l,c,u),h.beginPath();var f,d,p,v,g=i+(0==r||3==r?-o:o);0==n?(d=i,v=g):(f=i,p=g);for(var y=0;y0&&(t._paths=null,e&&(1==i?(t.min=null,t.max=null):t.facets.forEach((function(e){e.min=null,e.max=null}))))}))}var pt,vt,mt,gt,yt,_t,bt,Dt,wt,kt,At,xt,Et=!1;function Ct(){Et||(Vl(St),Et=!0)}function St(){ge&&(!function(){var e=jl(D,Rl);for(var n in e){var o=e[n],a=O[n];if(null!=a&&null!=a.min)Hl(o,a),n==k&&dt(!0);else if(n!=k||2==i)if(0==Pe&&null==o.from){var u=o.range(r,null,null,n);o.min=u[0],o.max=u[1]}else o.min=vl,o.max=-vl}if(Pe>0)for(var l in _.forEach((function(n,o){if(1==i){var a=n.scale,u=e[a],l=O[a];if(0==o){var c=u.range(r,u.min,u.max,a);u.min=c[0],u.max=c[1],qe=Uu(u.min,t[0]),(Ge=Uu(u.max,t[0]))-qe>1&&(t[0][qe]u.max&&Ge--),n.min=Je[qe],n.max=Je[Ge]}else n.show&&n.auto&&rt(u,l,n,t[o],n.sorted);n.idxs[0]=qe,n.idxs[1]=Ge}else if(o>0&&n.show&&n.auto){var s=$t(n.facets,2),f=s[0],h=s[1],d=f.scale,p=h.scale,v=$t(t[o],2),m=v[0],g=v[1];rt(e[d],O[d],f,m,f.sorted),rt(e[p],O[p],h,g,h.sorted),n.min=h.min,n.max=h.max}})),e){var c=e[l],s=O[l];if(null==c.from&&(null==s||null==s.min)){var f=c.range(r,c.min==vl?null:c.min,c.max==-vl?null:c.max,l);c.min=f[0],c.max=f[1]}}for(var h in e){var d=e[h];if(null!=d.from){var p=e[d.from];if(null==p.min)d.min=d.max=null;else{var v=d.range(r,p.min,p.max,h);d.min=v[0],d.max=v[1]}}}var m={},g=!1;for(var y in e){var b=e[y],w=D[y];if(w.min!=b.min||w.max!=b.max){w.min=b.min,w.max=b.max;var A=w.distr;w._min=3==A?hl(w.min):4==A?pl(w.min,w.asinh):w.min,w._max=3==A?hl(w.max):4==A?pl(w.max,w.asinh):w.max,m[y]=g=!0}}if(g){for(var x in _.forEach((function(e,t){2==i?t>0&&m.y&&(e._paths=null):m[e.scale]&&(e._paths=null)})),m)_e=!0,vn("setScale",x);Ee.show&&Ee.left>=0&&(be=we=!0)}for(var E in O)O[E]=null}(),ge=!1),_e&&(!function(){for(var e=!1,t=0;!e;){var n=ft(++t),i=ht(t);(e=t==xe||n&&i)||(Ae(r.width,r.height),ye=!0)}}(),_e=!1),ye&&(Tu(p,fu,fe),Tu(p,cu,he),Tu(p,uu,ce),Tu(p,lu,se),Tu(v,fu,fe),Tu(v,cu,he),Tu(v,uu,ce),Tu(v,lu,se),Tu(d,uu,ue),Tu(d,lu,le),f.width=al(ue*za),f.height=al(le*za),b.forEach((function(e){var t=e._el,n=e._show,r=e._size,i=e._pos,o=e.side;if(null!=t)if(n){var a=o%2==1;Tu(t,a?"left":"top",i-(3===o||0===o?r:0)),Tu(t,a?"width":"height",r),Tu(t,a?"top":"left",a?he:fe),Tu(t,a?"height":"width",a?se:ce),Fu(t,ou)}else Su(t,ou)})),Le=ze=$e=Ie=je=He=Ue=Ve=Re=null,We=1,Xt(!0),vn("setSize"),ye=!1),ue>0&&le>0&&(h.clearRect(0,0,f.width,f.height),vn("drawClear"),x.forEach((function(e){return e()})),vn("draw")),zt.show&&De&&(It(zt),De=!1),Ee.show&&be&&(Jt(null,!0,!1),be=!1),V.show&&V.live&&we&&(Gt(),we=!1),c||(c=!0,r.status=1,vn("ready")),Ke=!1,Et=!1}function Ft(e,n){var i=D[e];if(null==i.from){if(0==Pe){var o=i.range(r,n.min,n.max,e);n.min=o[0],n.max=o[1]}if(n.min>n.max){var a=n.min;n.min=n.max,n.max=a}if(Pe>1&&null!=n.min&&null!=n.max&&n.max-n.min<1e-16)return;e==k&&2==i.distr&&Pe>0&&(n.min=Uu(n.min,t[0]),n.max=Uu(n.max,t[0]),n.min==n.max&&n.max++),O[e]=n,ge=!0,Ct()}}r.redraw=function(e,t){_e=t||!1,!1!==e?jt(k,T.min,T.max):Ct()},r.setScale=Ft;var Tt=!1,Mt=Ee.drag,Ot=Mt.x,Nt=Mt.y;Ee.show&&(Ee.x&&(pt=Ou("u-cursor-x",v)),Ee.y&&(vt=Ou("u-cursor-y",v)),0==T.ori?(mt=pt,gt=vt):(mt=vt,gt=pt),At=Ee.left,xt=Ee.top);var Bt,Pt,Lt,zt=r.select=Hl({show:!0,over:!0,left:0,width:0,top:0,height:0},e.select),Rt=zt.show?Ou("u-select",zt.over?v:p):null;function It(e,t){if(zt.show){for(var n in e)zt[n]=e[n],n in un&&Tu(Rt,n,e[n]);!1!==t&&vn("setSelect")}}function jt(e,t,n){Ft(e,{min:t,max:n})}function Ht(e,t,n,o){null!=t.focus&&function(e){if(e!=Lt){var t=null==e,n=1!=Fe.alpha;_.forEach((function(r,i){var o=t||0==i||i==e;r._focus=t?null:o,n&&function(e,t){_[e].alpha=t,Ee.show&&Me[e]&&(Me[e].style.opacity=t);W&&q[e]&&(q[e].style.opacity=t)}(i,o?1:Fe.alpha)})),Lt=e,n&&Ct()}}(e),null!=t.show&&_.forEach((function(n,r){r>0&&(e==r||null==e)&&(n.show=t.show,function(e,t){var n=_[e],r=W?q[e]:null;n.show?r&&Fu(r,ou):(r&&Su(r,ou),Me.length>1&&Bu(Me[e],-10,-10,ce,se))}(r,t.show),jt(2==i?n.facets[1].scale:n.scale,null,null),Ct())})),!1!==n&&vn("setSeries",e,t),o&&bn("setSeries",r,e,t)}r.setSelect=It,r.setSeries=Ht,r.addBand=function(e,t){e.fill=yl(e.fill||null),e.dir=Ku(e.dir,-1),t=null==t?w.length:t,w.splice(t,0,e)},r.setBand=function(e,t){Hl(w[e],t)},r.delBand=function(e){null==e?w.length=0:w.splice(e,1)};var Ut={focus:!0};function Vt(e,t,n){var r=D[t];n&&(e=e/za-(1==r.ori?he:fe));var i=ce;1==r.ori&&(e=(i=se)-e),-1==r.dir&&(e=i-e);var o=r._min,a=o+(r._max-o)*(e/i),u=r.distr;return 3==u?sl(10,a):4==u?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return nl.sinh(e)*t}(a,r.asinh):a}function Wt(e,t){Tu(Rt,fu,zt.left=e),Tu(Rt,uu,zt.width=t)}function Zt(e,t){Tu(Rt,cu,zt.top=e),Tu(Rt,lu,zt.height=t)}W&&Te&&oe(_u,P,(function(e){Ee._lock||(Ce(e),null!=Lt&&Ht(null,Ut,!0,gn.setSeries))})),r.valToIdx=function(e){return Uu(e,t[0])},r.posToIdx=function(e,n){return Uu(Vt(e,k,n),t[0],qe,Ge)},r.posToVal=Vt,r.valToPos=function(e,t,n){return 0==D[t].ori?a(e,D[t],n?ve:ce,n?de:0):u(e,D[t],n?me:se,n?pe:0)},r.batch=function(e){e(r),Ct()},r.setCursor=function(e,t,n){At=e.left,xt=e.top,Jt(null,t,n)};var Yt=0==T.ori?Wt:Zt,qt=1==T.ori?Wt:Zt;function Gt(e,t){null!=e&&(e.idxs?e.idxs.forEach((function(e,t){U[t]=e})):function(e){return void 0===e}(e.idx)||U.fill(e.idx),V.idx=U[0]);for(var n=0;n<_.length;n++)(n>0||1==i&&!Q)&&Qt(n,U[n]);W&&V.live&&function(){if(W&&V.live)for(var e=2==i?1:0;e<_.length;e++)if(0!=e||!Q){var t=V.values[e],n=0;for(var r in t)G[e][n++].firstChild.nodeValue=t[r]}}(),we=!1,!1!==t&&vn("setLegend")}function Qt(e,n){var i,o,a=_[e],u=0==e&&2==M?Je:t[e];o=Q?null!==(i=a.values(r,e,n))&&void 0!==i?i:J:null==(o=a.value(r,null==n?null:u[n],e,n))?J:{_:o},V.values[e]=o}function Jt(e,n,o){wt=At,kt=xt;var a,u=$t(Ee.move(r,At,xt),2);At=u[0],xt=u[1],Ee.show&&(mt&&Bu(mt,al(At),0,ce,se),gt&&Bu(gt,0,al(xt),ce,se));var l=qe>Ge;Bt=vl;var c=0==T.ori?ce:se,s=1==T.ori?ce:se;if(At<0||0==Pe||l){a=null;for(var f=0;f<_.length;f++)f>0&&Me.length>1&&Bu(Me[f],-10,-10,ce,se);Te&&Ht(null,Ut,!0,null==e&&gn.setSeries),V.live&&(U.fill(a),we=!0)}else{var h,d;1==i&&(a=Uu(h=Vt(0==T.ori?At:xt,k),t[0],qe,Ge),d=S(t[0][a],T,c,0));for(var p=2==i?1:0;p<_.length;p++){var v=_[p],m=U[p],g=1==i?t[p][m]:t[p][1][m],y=Ee.dataIdx(r,p,a,h),b=1==i?t[p][y]:t[p][1][y];we=we||b!=g||y!=m,U[p]=y;var w=El(y==a?d:S(1==i?t[0][y]:t[p][0][y],T,c,0),1);if(p>0&&v.show){var A=null==b?-10:El(F(b,1==i?D[v.scale]:D[v.facets[1].scale],s,0),1);if(Te&&A>=0&&1==i){var x=il(A-xt);if(x=0?1:-1;M==(b>=0?1:-1)&&(1==M?1==E?b>=C:b<=C:1==E?b<=C:b>=C)&&(Bt=x,Pt=p)}else Bt=x,Pt=p}}var O=void 0,N=void 0;if(0==T.ori?(O=w,N=A):(O=A,N=w),we&&Me.length>1){Lu(Me[p],Ee.points.fill(r,p),Ee.points.stroke(r,p));var B=void 0,P=void 0,L=void 0,z=void 0,$=!0,R=Ee.points.bbox;if(null!=R){$=!1;var I=R(r,p);L=I.left,z=I.top,B=I.width,P=I.height}else L=O,z=N,B=P=Ee.points.size(r,p);$u(Me[p],B,P,$),Bu(Me[p],L,z,ce,se)}}}}if(Ee.idx=a,Ee.left=At,Ee.top=xt,we&&(V.idx=a,Gt()),zt.show&&Tt)if(null!=e){var j=$t(gn.scales,2),H=j[0],W=j[1],Z=$t(gn.match,2),Y=Z[0],q=Z[1],G=$t(e.cursor.sync.scales,2),Q=G[0],J=G[1],K=e.cursor.drag;if(Ot=K._x,Nt=K._y,Ot||Nt){var X,ee,te,ne,re,ie=e.select,oe=ie.left,ae=ie.top,ue=ie.width,le=ie.height,fe=e.scales[H].ori,he=e.posToVal,de=null!=H&&Y(H,Q),pe=null!=W&&q(W,J);de&&Ot?(0==fe?(X=oe,ee=ue):(X=ae,ee=le),te=D[H],ne=S(he(X,Q),te,c,0),re=S(he(X+ee,Q),te,c,0),Yt(ll(ne,re),il(re-ne))):Yt(0,c),pe&&Nt?(1==fe?(X=oe,ee=ue):(X=ae,ee=le),te=D[W],ne=F(he(X,J),te,s,0),re=F(he(X+ee,J),te,s,0),qt(ll(ne,re),il(re-ne))):qt(0,s)}else ln()}else{var ve=il(wt-yt),me=il(kt-_t);if(1==T.ori){var ge=ve;ve=me,me=ge}Ot=Mt.x&&ve>=Mt.dist,Nt=Mt.y&&me>=Mt.dist;var ye,_e,be=Mt.uni;null!=be?Ot&&Nt&&(Nt=me>=be,(Ot=ve>=be)||Nt||(me>ve?Nt=!0:Ot=!0)):Mt.x&&Mt.y&&(Ot||Nt)&&(Ot=Nt=!0),Ot&&(0==T.ori?(ye=bt,_e=At):(ye=Dt,_e=xt),Yt(ll(ye,_e),il(_e-ye)),Nt||qt(0,s)),Nt&&(1==T.ori?(ye=bt,_e=At):(ye=Dt,_e=xt),qt(ll(ye,_e),il(_e-ye)),Ot||Yt(0,c)),Ot||Nt||(Yt(0,0),qt(0,0))}if(Mt._x=Ot,Mt._y=Nt,null==e){if(o){if(null!=yn){var De=$t(gn.scales,2),ke=De[0],Ae=De[1];gn.values[0]=null!=ke?Vt(0==T.ori?At:xt,ke):null,gn.values[1]=null!=Ae?Vt(1==T.ori?At:xt,Ae):null}bn(vu,r,At,xt,ce,se,a)}if(Te){var xe=o&&gn.setSeries,Ce=Fe.prox;null==Lt?Bt<=Ce&&Ht(Pt,Ut,!0,xe):Bt>Ce?Ht(null,Ut,!0,xe):Pt!=Lt&&Ht(Pt,Ut,!0,xe)}}!1!==n&&vn("setCursor")}r.setLegend=Gt;var Kt=null;function Xt(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]?Kt=null:vn("syncRect",Kt=v.getBoundingClientRect())}function en(e,t,n,r,i,o,a){Ee._lock||Tt&&null!=e&&0==e.movementX&&0==e.movementY||(tn(e,t,n,r,i,o,a,!1,null!=e),null!=e?Jt(null,!0,!0):Jt(t,!0,!1))}function tn(e,t,n,i,o,a,u,c,s){if(null==Kt&&Xt(!1),Ce(e),null!=e)n=e.clientX-Kt.left,i=e.clientY-Kt.top;else{if(n<0||i<0)return At=-10,void(xt=-10);var f=$t(gn.scales,2),h=f[0],d=f[1],p=t.cursor.sync,v=$t(p.values,2),m=v[0],g=v[1],y=$t(p.scales,2),_=y[0],b=y[1],w=$t(gn.match,2),k=w[0],A=w[1],x=t.axes[0].side%2==1,E=0==T.ori?ce:se,C=1==T.ori?ce:se,S=x?a:o,F=x?o:a,M=x?i:n,O=x?n:i;if(n=null!=_?k(h,_)?l(m,D[h],E,0):-10:E*(M/S),i=null!=b?A(d,b)?l(g,D[d],C,0):-10:C*(O/F),1==T.ori){var N=n;n=i,i=N}}if(s&&((n<=1||n>=ce-1)&&(n=xl(n,ce)),(i<=1||i>=se-1)&&(i=xl(i,se))),c){yt=n,_t=i;var B=$t(Ee.move(r,n,i),2);bt=B[0],Dt=B[1]}else At=n,xt=i}Object.defineProperty(r,"rect",{get:function(){return null==Kt&&Xt(!1),Kt}});var nn,rn,on,an,un={width:0,height:0,left:0,top:0};function ln(){It(un,!1)}function cn(e,t,n,i,o,a,u){Tt=!0,Ot=Nt=Mt._x=Mt._y=!1,tn(e,t,n,i,o,a,0,!0,!1),null!=e&&(oe(gu,xu,sn,!1),bn(mu,r,bt,Dt,ce,se,null));var l=zt.left,c=zt.top,s=zt.width,f=zt.height;nn=l,rn=c,on=s,an=f,ln()}function sn(e,t,n,i,o,a,u){Tt=Mt._x=Mt._y=!1,tn(e,t,n,i,o,a,0,!1,!0);var l=zt.left,c=zt.top,s=zt.width,f=zt.height,h=s>0||f>0,d=nn!=l||rn!=c||on!=s||an!=f;if(h&&d&&It(zt),Mt.setScale&&h&&d){var p=l,v=s,m=c,g=f;if(1==T.ori&&(p=c,v=f,m=l,g=s),Ot&&jt(k,Vt(p,k),Vt(p+v,k)),Nt)for(var y in D){var _=D[y];y!=k&&null==_.from&&_.min!=vl&&jt(y,Vt(m+g,y),Vt(m,y))}ln()}else Ee.lock&&(Ee._lock=!Ee._lock,Ee._lock||Jt(null,!0,!1));null!=e&&(ae(gu,xu),bn(gu,r,At,xt,ce,se,null))}function fn(e,t,n,i,o,a,u){Ee._lock||(Ce(e),et(),ln(),null!=e&&bn(bu,r,At,xt,ce,se,null))}function hn(){b.forEach(Ks),ke(r.width,r.height,!0)}ju(wu,Eu,hn);var dn={};dn.mousedown=cn,dn.mousemove=en,dn.mouseup=sn,dn.dblclick=fn,dn.setSeries=function(e,t,n,i){-1!=(n=(0,gn.match[2])(r,t,n))&&Ht(n,i,!0,!1)},Ee.show&&(oe(mu,v,cn),oe(vu,v,en),oe(yu,v,(function(e){Ce(e),Xt(!1)})),oe(_u,v,(function(e,t,n,r,i,o,a){if(!Ee._lock){Ce(e);var u=Tt;if(Tt){var l,c,s=!0,f=!0;0==T.ori?(l=Ot,c=Nt):(l=Nt,c=Ot),l&&c&&(s=At<=10||At>=ce-10,f=xt<=10||xt>=se-10),l&&s&&(At=At0||zt.height>0),be=we=!0,ke(e.width,e.height)}return _n.sub(r),r.pub=function(e,t,n,r,i,o,a){gn.filters.sub(e,t,n,r,i,o,a)&&dn[e](null,t,n,r,i,o,a)},r.destroy=function(){var e;_n.unsub(r),zs.delete(r),ie.clear(),Hu(wu,Eu,hn),s.remove(),null===(e=P)||void 0===e||e.remove(),vn("destroy")},_.forEach(Oe),b.forEach((function(e,t){if(e._show=e.show,e.show){var n=e.side%2,i=D[e.scale];null==i&&(e.scale=n?_[1].scale:k,i=D[e.scale]);var o=i.time;e.size=yl(e.size),e.space=yl(e.space),e.rotate=yl(e.rotate),Pl(e.incrs)&&e.incrs.forEach((function(e){!Fl.has(e)&&Fl.set(e,Tl(e))})),e.incrs=yl(e.incrs||(2==i.distr?oc:o?1==y?_c:kc:ac)),e.splits=yl(e.splits||(o&&1==i.distr?I:3==i.distr?Zc:4==i.distr?Yc:Wc)),e.stroke=yl(e.stroke),e.grid.stroke=yl(e.grid.stroke),e.ticks.stroke=yl(e.ticks.stroke),e.border.stroke=yl(e.border.stroke);var a=e.values;e.values=Pl(a)&&!Pl(a[0])?yl(a):o?Pl(a)?Cc($,Ec(a,R)):zl(a)?function(e,t){var n=Xl(t);return function(t,r,i,o,a){return r.map((function(t){return n(e(t))}))}}($,a):a||j:a||Vc,e.filter=yl(e.filter||(i.distr>=3&&10==i.log?Xc:3==i.distr&&2==i.log?es:bl)),e.font=Js(e.font),e.labelFont=Js(e.labelFont),e._size=e.size(r,null,t,0),e._space=e._rotate=e._incrs=e._found=e._splits=e._values=null,e._size>0&&(Ne[t]=!0,e._el=Ou("u-axis",d))}})),n?n instanceof HTMLElement?(n.appendChild(s),Dn()):n(r,Dn):Dn(),r}Xs.assign=Hl,Xs.fmtNum=tl,Xs.rangeNum=Ju,Xs.rangeLog=Wu,Xs.rangeAsinh=Zu,Xs.orient=ds,Xs.pxRatio=za,Xs.join=function(e,t){if(function(e){for(var t=e[0][0],n=t.length,r=1;r1&&void 0!==arguments[1]?arguments[1]:100,n=e.length;if(n<=1)return!0;for(var r=0,i=n-1;r<=i&&null==e[r];)r++;for(;i>=r&&null==e[i];)i--;if(i<=r)return!0;for(var o=cl(1,ol((i-r+1)/t)),a=e[r],u=r+o;u<=i;u+=o){var l=e[u];if(null!=l){if(l<=a)return!1;a=l}}return!0}(n[0])||(n=function(e){for(var t=e[0],n=t.length,r=Array(n),i=0;i=a&&N<=u;N+=S){var B=s[N];if(null!=B){var P=k(c[N]),L=A(B);1==t?x(C,P,F):x(C,M,L),x(C,P,L),F=L,M=P}}var z=M;i&&1==t&&x(C,z=D+w,F);var $=$t(ps(e,o),2),R=$[0],I=$[1];if(null!=l.fill||0!=R){var j=E.fill=new Path2D(C),H=A(l.fillTo(e,o,l.min,l.max,R));x(j,z,H),x(j,O,H)}if(!l.spanGaps){var U,V=[];(U=V).push.apply(U,It(ys(c,s,a,u,S,k,r)));var W=l.width*za/2,Z=n||1==t?W:-W,Y=n||-1==t?-W:W;V.forEach((function(e){e[0]+=Z,e[1]+=Y})),E.gaps=V=l.gaps(e,o,a,u,V),E.clip=gs(V,f.ori,v,m,g,y)}return 0!=I&&(E.band=2==I?[ms(e,o,a,u,C,-1),ms(e,o,a,u,C,1)]:ms(e,o,a,u,C,I)),E}))}},ef.bars=function(e){var t=Ku((e=e||Ol).size,[.6,vl,1]),n=e.align||0,r=(e.gap||0)*za,i=e.radius,o=yl(i=null==i?[0,0]:"number"==typeof i?[i,0]:i),a=1-t[0],u=Ku(t[1],vl)*za,l=Ku(t[2],1)*za,c=Ku(e.disp,Ol),s=Ku(e.each,(function(e){})),f=c.fill,h=c.stroke;return function(e,t,i,d){return ds(e,t,(function(p,v,m,g,y,_,b,D,w,k,A){var x,E,C=p.pxRound;if(0==g.ori){var S=$t(o(e,t),2);x=S[0],E=S[1]}else{var F=$t(o(e,t),2);E=F[0],x=F[1]}var T,M,O=g.dir*(0==g.ori?1:-1),N=y.dir*(1==y.ori?1:-1),B=0==g.ori?xs:Es,P=0==g.ori?s:function(e,t,n,r,i,o,a){s(e,t,n,i,r,a,o)},L=$t(ps(e,t),2),z=L[0],$=L[1],R=3==y.distr?1==z?y.max:y.min:0,I=b(R,y,A,w),j=C(p.width*za),H=!1,U=null,V=null,W=null,Z=null;null==f||0!=j&&null==h||(H=!0,U=f.values(e,t,i,d),V=new Map,new Set(U).forEach((function(e){null!=e&&V.set(e,new Path2D)})),j>0&&(W=h.values(e,t,i,d),Z=new Map,new Set(W).forEach((function(e){null!=e&&Z.set(e,new Path2D)}))));var Y=c.x0,q=c.size,G=!0;if(null!=Y&&null!=q){v=Y.values(e,t,i,d),2==Y.unit&&(v=v.map((function(t){return e.posToVal(D+t*k,g.key,!0)})));var Q=q.values(e,t,i,d);j>=(M=2==q.unit?Q[0]*k:_(Q[0],g,k,D)-_(0,g,k,D))/2&&(j=0),M=C(gl(M-j,l,u)),T=1==O?-j/2:M+j/2}else{var J=k;if(v.length>1)for(var K=null,X=0,ee=1/0;X=(M=J-ne-r)/2&&(j=0),ne+r<5&&(C=_l),M=C(gl(J-ne,l,u)-j-r),T=(0==n?M/2:n==O?0:M)-n*O*r/2,M+j>J&&(G=!1)}var re,ie={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:2|hs};0!=$&&(ie.band=new Path2D,re=C(b(1==$?y.max:y.min,y,A,w)));var oe=H?null:new Path2D,ae=ie.band,ue=c.y0,le=c.y1,ce=null;null!=ue&&null!=le&&(m=le.values(e,t,i,d),ce=ue.values(e,t,i,d));for(var se=x*M,fe=E*M,he=1==O?i:d;he>=i&&he<=d;he+=O){var de=m[he];if(void 0!==de){var pe=_(2!=g.distr||null!=c?v[he]:he,g,k,D),ve=b(Ku(de,R),y,A,w);null!=ce&&null!=de&&(I=b(ce[he],y,A,w));var me=C(pe-T),ge=C(cl(ve,I)),ye=C(ll(ve,I)),_e=ge-ye;if(null!=de){var be=de<0?fe:se,De=de<0?se:fe;H?(j>0&&null!=W[he]&&B(Z.get(W[he]),me,ye+ol(j/2),M,cl(0,_e-j),be,De),null!=U[he]&&B(V.get(U[he]),me,ye+ol(j/2),M,cl(0,_e-j),be,De)):B(oe,me,ye+ol(j/2),M,cl(0,_e-j),be,De),P(e,t,he,me-j/2,ye,M+j,_e)}0==$||null==de&&!G||(N*$==1?(ge=ye,ye=re):(ye=ge,ge=re),B(ae,me-j/2,ye,M+j,cl(0,_e=ge-ye),0,0))}}if(j>0)ie.stroke=H?Z:oe;else if(!H){var we;ie._fill=0==p.width?p._fill:null!==(we=p._stroke)&&void 0!==we?we:p._fill,ie.width=0}return ie.fill=H?V:oe,ie}))}},ef.spline=function(e){return function(e,t){var n=Ku(null===t||void 0===t?void 0:t.alignGaps,0);return function(t,r,i,o){return ds(t,r,(function(a,u,l,c,s,f,h,d,p,v,m){var g,y,_,b=a.pxRound,D=function(e){return b(f(e,c,v,d))},w=function(e){return b(h(e,s,m,p))};0==c.ori?(g=Ds,_=ks,y=Fs):(g=ws,_=As,y=Ts);var k=c.dir*(0==c.ori?1:-1);i=Vu(l,i,o,1),o=Vu(l,i,o,-1);for(var A=D(u[1==k?i:o]),x=A,E=[],C=[],S=1==k?i:o;S>=i&&S<=o;S+=k)if(null!=l[S]){var F=D(u[S]);E.push(x=F),C.push(w(l[S]))}var T={stroke:e(E,C,g,_,y,b),fill:null,clip:null,band:null,gaps:null,flags:hs},M=T.stroke,O=$t(ps(t,r),2),N=O[0],B=O[1];if(null!=a.fill||0!=N){var P=T.fill=new Path2D(M),L=w(a.fillTo(t,r,a.min,a.max,N));_(P,x,L),_(P,A,L)}if(!a.spanGaps){var z,$=[];(z=$).push.apply(z,It(ys(u,l,i,o,k,D,n))),T.gaps=$=a.gaps(t,r,i,o,$),T.clip=gs($,c.ori,d,p,v,m)}return 0!=B&&(T.band=2==B?[ms(t,r,i,o,M,-1),ms(t,r,i,o,M,1)]:ms(t,r,i,o,M,B)),T}))}}(Ls,e)};!function(e,t,n){for(var r=[],i=0;i"']/,lf=new RegExp(uf.source,"g"),cf=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,sf=new RegExp(cf.source,"g"),ff={"&":"&","<":"<",">":">",'"':""","'":"'"},hf=function(e){return ff[e]};function df(e,t){if(t){if(uf.test(e))return e.replace(lf,hf)}else if(cf.test(e))return e.replace(sf,hf);return e}var pf=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function vf(e){return e.replace(pf,(function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}var mf=/(^|[^\[])\^/g;function gf(e,t){e="string"===typeof e?e:e.source,t=t||"";var n={replace:function(t,r){return r=(r=r.source||r).replace(mf,"$1"),e=e.replace(t,r),n},getRegex:function(){return new RegExp(e,t)}};return n}var yf=/[^\w:]/g,_f=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function bf(e,t,n){if(e){var r;try{r=decodeURIComponent(vf(n)).replace(yf,"").toLowerCase()}catch(c){return null}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:")||0===r.indexOf("data:"))return null}t&&!_f.test(n)&&(n=function(e,t){Df[" "+e]||(wf.test(e)?Df[" "+e]=e+"/":Df[" "+e]=Cf(e,"/",!0));e=Df[" "+e];var n=-1===e.indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(kf,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(Af,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(c){return null}return n}var Df={},wf=/^[^:]+:\/*[^/]*$/,kf=/^([^:]+:)[\s\S]*$/,Af=/^([^:]+:\/*[^/]*)[\s\S]*$/;var xf={exec:function(){}};function Ef(e,t){var n=e.replace(/\|/g,(function(e,t,n){for(var r=!1,i=t;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"})).split(/ \|/),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),n.length>t)n.splice(t);else for(;n.length0)return{type:"space",raw:t[0]}}},{key:"code",value:function(e){var t=this.rules.block.code.exec(e);if(t){var n=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:Cf(n,"\n")}}}},{key:"fences",value:function(e){var t=this.rules.block.fences.exec(e);if(t){var n=t[0],r=function(e,t){var n=e.match(/^(\s+)(?:```)/);if(null===n)return t;var r=n[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);return null===t?e:$t(t,1)[0].length>=r.length?e.slice(r.length):e})).join("\n")}(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline._escapes,"$1"):t[2],text:r}}}},{key:"heading",value:function(e){var t=this.rules.block.heading.exec(e);if(t){var n=t[2].trim();if(/#$/.test(n)){var r=Cf(n,"#");this.options.pedantic?n=r.trim():r&&!/ $/.test(r)||(n=r.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}},{key:"hr",value:function(e){var t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}},{key:"blockquote",value:function(e){var t=this.rules.block.blockquote.exec(e);if(t){var n=t[0].replace(/^ *>[ \t]?/gm,""),r=this.lexer.state.top;this.lexer.state.top=!0;var i=this.lexer.blockTokens(n);return this.lexer.state.top=r,{type:"blockquote",raw:t[0],tokens:i,text:n}}}},{key:"list",value:function(e){var t=this.rules.block.list.exec(e);if(t){var n,r,i,o,a,u,l,c,s,f,h,d,p=t[1].trim(),v=p.length>1,m={type:"list",raw:"",ordered:v,start:v?+p.slice(0,-1):"",loose:!1,items:[]};p=v?"\\d{1,9}\\".concat(p.slice(-1)):"\\".concat(p),this.options.pedantic&&(p=v?p:"[*+-]");for(var g=new RegExp("^( {0,3}".concat(p,")((?:[\t ][^\\n]*)?(?:\\n|$))"));e&&(d=!1,t=g.exec(e))&&!this.rules.block.hr.test(e);){if(n=t[0],e=e.substring(n.length),c=t[2].split("\n",1)[0].replace(/^\t+/,(function(e){return" ".repeat(3*e.length)})),s=e.split("\n",1)[0],this.options.pedantic?(o=2,h=c.trimLeft()):(o=(o=t[2].search(/[^ ]/))>4?1:o,h=c.slice(o),o+=t[1].length),u=!1,!c&&/^ *$/.test(s)&&(n+=s+"\n",e=e.substring(s.length+1),d=!0),!d)for(var y=new RegExp("^ {0,".concat(Math.min(3,o-1),"}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))")),_=new RegExp("^ {0,".concat(Math.min(3,o-1),"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)")),b=new RegExp("^ {0,".concat(Math.min(3,o-1),"}(?:```|~~~)")),D=new RegExp("^ {0,".concat(Math.min(3,o-1),"}#"));e&&(s=f=e.split("\n",1)[0],this.options.pedantic&&(s=s.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!b.test(s))&&!D.test(s)&&!y.test(s)&&!_.test(e);){if(s.search(/[^ ]/)>=o||!s.trim())h+="\n"+s.slice(o);else{if(u)break;if(c.search(/[^ ]/)>=4)break;if(b.test(c))break;if(D.test(c))break;if(_.test(c))break;h+="\n"+s}u||s.trim()||(u=!0),n+=f+"\n",e=e.substring(f.length+1),c=s.slice(o)}m.loose||(l?m.loose=!0:/\n *\n *$/.test(n)&&(l=!0)),this.options.gfm&&(r=/^\[[ xX]\] /.exec(h))&&(i="[ ] "!==r[0],h=h.replace(/^\[[ xX]\] +/,"")),m.items.push({type:"list_item",raw:n,task:!!r,checked:i,loose:!1,text:h}),m.raw+=n}m.items[m.items.length-1].raw=n.trimRight(),m.items[m.items.length-1].text=h.trimRight(),m.raw=m.raw.trimRight();var w=m.items.length;for(a=0;a0&&k.some((function(e){return/\n.*\n/.test(e.raw)}));m.loose=A}if(m.loose)for(a=0;a$/,"$1").replace(this.rules.inline._escapes,"$1"):"",i=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline._escapes,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:r,title:i}}}},{key:"table",value:function(e){var t=this.rules.block.table.exec(e);if(t){var n={type:"table",header:Ef(t[1]).map((function(e){return{text:e}})),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(n.header.length===n.align.length){n.raw=t[0];var r,i,o,a,u=n.align.length;for(r=0;r/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):df(t[0]):t[0]}}},{key:"link",value:function(e){var t=this.rules.inline.link.exec(e);if(t){var n=t[2].trim();if(!this.options.pedantic&&/^$/.test(n))return;var r=Cf(n.slice(0,-1),"\\");if((n.length-r.length)%2===0)return}else{var i=function(e,t){if(-1===e.indexOf(t[1]))return-1;for(var n=e.length,r=0,i=0;i-1){var o=(0===t[0].indexOf("!")?5:4)+t[1].length+i;t[2]=t[2].substring(0,i),t[0]=t[0].substring(0,o).trim(),t[3]=""}}var a=t[2],u="";if(this.options.pedantic){var l=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(a);l&&(a=l[1],u=l[3])}else u=t[3]?t[3].slice(1,-1):"";return a=a.trim(),/^$/.test(n)?a.slice(1):a.slice(1,-1)),Sf(t,{href:a?a.replace(this.rules.inline._escapes,"$1"):a,title:u?u.replace(this.rules.inline._escapes,"$1"):u},t[0],this.lexer)}}},{key:"reflink",value:function(e,t){var n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){var r=(n[2]||n[1]).replace(/\s+/g," ");if(!(r=t[r.toLowerCase()])){var i=n[0].charAt(0);return{type:"text",raw:i,text:i}}return Sf(n,r,n[0],this.lexer)}}},{key:"emStrong",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=this.rules.inline.emStrong.lDelim.exec(e);if(r&&((!r[3]||!n.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\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\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\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\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\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-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\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\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDF50-\uDF59\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEC0-\uDED3\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDCD0-\uDCEB\uDCF0-\uDCF9\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])/))&&(!(r[1]||r[2]||"")||!n||this.rules.inline.punctuation.exec(n)))){var i,o,a=r[0].length-1,u=a,l=0,c="*"===r[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+a);null!=(r=c.exec(t));)if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6])if(o=i.length,r[3]||r[4])u+=o;else if(!((r[5]||r[6])&&a%3)||(a+o)%3){if(!((u-=o)>0)){o=Math.min(o,o+u+l);var s=e.slice(0,a+r.index+o+1);if(Math.min(a,o)%2){var f=s.slice(1,-1);return{type:"em",raw:s,text:f,tokens:this.lexer.inlineTokens(f)}}var h=s.slice(2,-2);return{type:"strong",raw:s,text:h,tokens:this.lexer.inlineTokens(h)}}}else l+=o}}},{key:"codespan",value:function(e){var t=this.rules.inline.code.exec(e);if(t){var n=t[2].replace(/\n/g," "),r=/[^ ]/.test(n),i=/^ /.test(n)&&/ $/.test(n);return r&&i&&(n=n.substring(1,n.length-1)),n=df(n,!0),{type:"codespan",raw:t[0],text:n}}}},{key:"br",value:function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}},{key:"del",value:function(e){var t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}},{key:"autolink",value:function(e,t){var n,r,i=this.rules.inline.autolink.exec(e);if(i)return r="@"===i[2]?"mailto:"+(n=df(this.options.mangle?t(i[1]):i[1])):n=df(i[1]),{type:"link",raw:i[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}},{key:"url",value:function(e,t){var n;if(n=this.rules.inline.url.exec(e)){var r,i;if("@"===n[2])i="mailto:"+(r=df(this.options.mangle?t(n[0]):n[0]));else{var o;do{o=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(o!==n[0]);r=df(n[0]),i="www."===n[1]?"http://"+n[0]:n[0]}return{type:"link",raw:n[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}}},{key:"inlineText",value:function(e,t){var n,r=this.rules.inline.text.exec(e);if(r)return n=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):df(r[0]):r[0]:df(this.options.smartypants?t(r[0]):r[0]),{type:"text",raw:r[0],text:n}}}]),e}(),Tf={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:xf,lheading:/^((?:(?!^bull ).|\n(?!\n|bull ))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};Tf.def=gf(Tf.def).replace("label",Tf._label).replace("title",Tf._title).getRegex(),Tf.bullet=/(?:[*+-]|\d{1,9}[.)])/,Tf.listItemStart=gf(/^( *)(bull) */).replace("bull",Tf.bullet).getRegex(),Tf.list=gf(Tf.list).replace(/bull/g,Tf.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Tf.def.source+")").getRegex(),Tf._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Tf._comment=/|$)/,Tf.html=gf(Tf.html,"i").replace("comment",Tf._comment).replace("tag",Tf._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Tf.lheading=gf(Tf.lheading).replace(/bull/g,Tf.bullet).getRegex(),Tf.paragraph=gf(Tf._paragraph).replace("hr",Tf.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Tf._tag).getRegex(),Tf.blockquote=gf(Tf.blockquote).replace("paragraph",Tf.paragraph).getRegex(),Tf.normal=Tr({},Tf),Tf.gfm=Tr(Tr({},Tf.normal),{},{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),Tf.gfm.table=gf(Tf.gfm.table).replace("hr",Tf.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Tf._tag).getRegex(),Tf.gfm.paragraph=gf(Tf._paragraph).replace("hr",Tf.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",Tf.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Tf._tag).getRegex(),Tf.pedantic=Tr(Tr({},Tf.normal),{},{html:gf("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Tf._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:xf,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:gf(Tf.normal._paragraph).replace("hr",Tf.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",Tf.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var Mf={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:xf,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,rDelimAst:/^[^_*]*?__[^_*]*?\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\*)[punct](\*+)(?=[\s]|$)|[^punct\s](\*+)(?!\*)(?=[punct\s]|$)|(?!\*)[punct\s](\*+)(?=[^punct\s])|[\s](\*+)(?!\*)(?=[punct])|(?!\*)[punct](\*+)(?!\*)(?=[punct])|[^punct\s](\*+)(?=[^punct\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\s]|$)|[^punct\s](_+)(?!_)(?=[punct\s]|$)|(?!_)[punct\s](_+)(?=[^punct\s])|[\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:xf,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}Mf._punctuation="\\p{P}$+<=>`^|~",Mf.punctuation=gf(Mf.punctuation,"u").replace(/punctuation/g,Mf._punctuation).getRegex(),Mf.blockSkip=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,Mf.anyPunctuation=/\\[punct]/g,Mf._escapes=/\\([punct])/g,Mf._comment=gf(Tf._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),Mf.emStrong.lDelim=gf(Mf.emStrong.lDelim,"u").replace(/punct/g,Mf._punctuation).getRegex(),Mf.emStrong.rDelimAst=gf(Mf.emStrong.rDelimAst,"gu").replace(/punct/g,Mf._punctuation).getRegex(),Mf.emStrong.rDelimUnd=gf(Mf.emStrong.rDelimUnd,"gu").replace(/punct/g,Mf._punctuation).getRegex(),Mf.anyPunctuation=gf(Mf.anyPunctuation,"gu").replace(/punct/g,Mf._punctuation).getRegex(),Mf._escapes=gf(Mf._escapes,"gu").replace(/punct/g,Mf._punctuation).getRegex(),Mf._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Mf._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,Mf.autolink=gf(Mf.autolink).replace("scheme",Mf._scheme).replace("email",Mf._email).getRegex(),Mf._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Mf.tag=gf(Mf.tag).replace("comment",Mf._comment).replace("attribute",Mf._attribute).getRegex(),Mf._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Mf._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,Mf._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Mf.link=gf(Mf.link).replace("label",Mf._label).replace("href",Mf._href).replace("title",Mf._title).getRegex(),Mf.reflink=gf(Mf.reflink).replace("label",Mf._label).replace("ref",Tf._label).getRegex(),Mf.nolink=gf(Mf.nolink).replace("ref",Tf._label).getRegex(),Mf.reflinkSearch=gf(Mf.reflinkSearch,"g").replace("reflink",Mf.reflink).replace("nolink",Mf.nolink).getRegex(),Mf.normal=Tr({},Mf),Mf.pedantic=Tr(Tr({},Mf.normal),{},{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:gf(/^!?\[(label)\]\((.*?)\)/).replace("label",Mf._label).getRegex(),reflink:gf(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Mf._label).getRegex()}),Mf.gfm=Tr(Tr({},Mf.normal),{},{escape:gf(Mf.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\1&&void 0!==arguments[1]?arguments[1]:[];e=this.options.pedantic?e.replace(/\t/g," ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,(function(e,t,n){return t+" ".repeat(n.length)}));for(var u,l=function(){if(o.options.extensions&&o.options.extensions.block&&o.options.extensions.block.some((function(n){return!!(t=n.call({lexer:o},e,a))&&(e=e.substring(t.raw.length),a.push(t),!0)})))return 0;if(t=o.tokenizer.space(e))return e=e.substring(t.raw.length),1===t.raw.length&&a.length>0?a[a.length-1].raw+="\n":a.push(t),0;if(t=o.tokenizer.code(e))return e=e.substring(t.raw.length),!(n=a[a.length-1])||"paragraph"!==n.type&&"text"!==n.type?a.push(t):(n.raw+="\n"+t.raw,n.text+="\n"+t.text,o.inlineQueue[o.inlineQueue.length-1].src=n.text),0;if(t=o.tokenizer.fences(e))return e=e.substring(t.raw.length),a.push(t),0;if(t=o.tokenizer.heading(e))return e=e.substring(t.raw.length),a.push(t),0;if(t=o.tokenizer.hr(e))return e=e.substring(t.raw.length),a.push(t),0;if(t=o.tokenizer.blockquote(e))return e=e.substring(t.raw.length),a.push(t),0;if(t=o.tokenizer.list(e))return e=e.substring(t.raw.length),a.push(t),0;if(t=o.tokenizer.html(e))return e=e.substring(t.raw.length),a.push(t),0;if(t=o.tokenizer.def(e))return e=e.substring(t.raw.length),!(n=a[a.length-1])||"paragraph"!==n.type&&"text"!==n.type?o.tokens.links[t.tag]||(o.tokens.links[t.tag]={href:t.href,title:t.title}):(n.raw+="\n"+t.raw,n.text+="\n"+t.raw,o.inlineQueue[o.inlineQueue.length-1].src=n.text),0;if(t=o.tokenizer.table(e))return e=e.substring(t.raw.length),a.push(t),0;if(t=o.tokenizer.lheading(e))return e=e.substring(t.raw.length),a.push(t),0;if(r=e,o.options.extensions&&o.options.extensions.startBlock){var u,l=1/0,c=e.slice(1);o.options.extensions.startBlock.forEach((function(e){"number"===typeof(u=e.call({lexer:this},c))&&u>=0&&(l=Math.min(l,u))})),l<1/0&&l>=0&&(r=e.substring(0,l+1))}if(o.state.top&&(t=o.tokenizer.paragraph(r)))return n=a[a.length-1],i&&"paragraph"===n.type?(n.raw+="\n"+t.raw,n.text+="\n"+t.text,o.inlineQueue.pop(),o.inlineQueue[o.inlineQueue.length-1].src=n.text):a.push(t),i=r.length!==e.length,e=e.substring(t.raw.length),0;if(t=o.tokenizer.text(e))return e=e.substring(t.raw.length),(n=a[a.length-1])&&"text"===n.type?(n.raw+="\n"+t.raw,n.text+="\n"+t.text,o.inlineQueue.pop(),o.inlineQueue[o.inlineQueue.length-1].src=n.text):a.push(t),0;if(e){var s="Infinite loop on byte: "+e.charCodeAt(0);if(o.options.silent)return console.error(s),1;throw new Error(s)}};e&&(0===(u=l())||1!==u););return this.state.top=!0,a}},{key:"inline",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.inlineQueue.push({src:e,tokens:t}),t}},{key:"inlineTokens",value:function(e){var t,n,r,i,o,a,u=this,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],c=e;if(this.tokens.links){var s=Object.keys(this.tokens.links);if(s.length>0)for(;null!=(i=this.tokenizer.rules.inline.reflinkSearch.exec(c));)s.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(c=c.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(i=this.tokenizer.rules.inline.blockSkip.exec(c));)c=c.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(i=this.tokenizer.rules.inline.anyPunctuation.exec(c));)c=c.slice(0,i.index)+"++"+c.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(var f,h=function(){if(o||(a=""),o=!1,u.options.extensions&&u.options.extensions.inline&&u.options.extensions.inline.some((function(n){return!!(t=n.call({lexer:u},e,l))&&(e=e.substring(t.raw.length),l.push(t),!0)})))return 0;if(t=u.tokenizer.escape(e))return e=e.substring(t.raw.length),l.push(t),0;if(t=u.tokenizer.tag(e))return e=e.substring(t.raw.length),(n=l[l.length-1])&&"text"===t.type&&"text"===n.type?(n.raw+=t.raw,n.text+=t.text):l.push(t),0;if(t=u.tokenizer.link(e))return e=e.substring(t.raw.length),l.push(t),0;if(t=u.tokenizer.reflink(e,u.tokens.links))return e=e.substring(t.raw.length),(n=l[l.length-1])&&"text"===t.type&&"text"===n.type?(n.raw+=t.raw,n.text+=t.text):l.push(t),0;if(t=u.tokenizer.emStrong(e,c,a))return e=e.substring(t.raw.length),l.push(t),0;if(t=u.tokenizer.codespan(e))return e=e.substring(t.raw.length),l.push(t),0;if(t=u.tokenizer.br(e))return e=e.substring(t.raw.length),l.push(t),0;if(t=u.tokenizer.del(e))return e=e.substring(t.raw.length),l.push(t),0;if(t=u.tokenizer.autolink(e,Nf))return e=e.substring(t.raw.length),l.push(t),0;if(!u.state.inLink&&(t=u.tokenizer.url(e,Nf)))return e=e.substring(t.raw.length),l.push(t),0;if(r=e,u.options.extensions&&u.options.extensions.startInline){var i,s=1/0,f=e.slice(1);u.options.extensions.startInline.forEach((function(e){"number"===typeof(i=e.call({lexer:this},f))&&i>=0&&(s=Math.min(s,i))})),s<1/0&&s>=0&&(r=e.substring(0,s+1))}if(t=u.tokenizer.inlineText(r,Of))return e=e.substring(t.raw.length),"_"!==t.raw.slice(-1)&&(a=t.raw.slice(-1)),o=!0,(n=l[l.length-1])&&"text"===n.type?(n.raw+=t.raw,n.text+=t.text):l.push(t),0;if(e){var h="Infinite loop on byte: "+e.charCodeAt(0);if(u.options.silent)return console.error(h),1;throw new Error(h)}};e&&(0===(f=h())||1!==f););return l}}],[{key:"rules",get:function(){return{block:Tf,inline:Mf}}},{key:"lex",value:function(t,n){return new e(n).lex(t)}},{key:"lexInline",value:function(t,n){return new e(n).inlineTokens(t)}}]),e}(),Pf=function(){function e(t){jt(this,e),this.options=t||of}return Wt(e,[{key:"code",value:function(e,t,n){var r=(t||"").match(/\S*/)[0];if(this.options.highlight){var i=this.options.highlight(e,r);null!=i&&i!==e&&(n=!0,e=i)}return e=e.replace(/\n$/,"")+"\n",r?'
'+(n?e:df(e,!0))+"
\n":"
"+(n?e:df(e,!0))+"
\n"}},{key:"blockquote",value:function(e){return"
\n".concat(e,"
\n")}},{key:"html",value:function(e,t){return e}},{key:"heading",value:function(e,t,n,r){if(this.options.headerIds){var i=this.options.headerPrefix+r.slug(n);return"').concat(e,"\n")}return"").concat(e,"\n")}},{key:"hr",value:function(){return this.options.xhtml?"
\n":"
\n"}},{key:"list",value:function(e,t,n){var r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"\n"}},{key:"listitem",value:function(e){return"
  • ".concat(e,"
  • \n")}},{key:"checkbox",value:function(e){return" "}},{key:"paragraph",value:function(e){return"

    ".concat(e,"

    \n")}},{key:"table",value:function(e,t){return t&&(t="".concat(t,"")),"\n\n"+e+"\n"+t+"
    \n"}},{key:"tablerow",value:function(e){return"\n".concat(e,"\n")}},{key:"tablecell",value:function(e,t){var n=t.header?"th":"td";return(t.align?"<".concat(n,' align="').concat(t.align,'">'):"<".concat(n,">"))+e+"\n")}},{key:"strong",value:function(e){return"".concat(e,"")}},{key:"em",value:function(e){return"".concat(e,"")}},{key:"codespan",value:function(e){return"".concat(e,"")}},{key:"br",value:function(){return this.options.xhtml?"
    ":"
    "}},{key:"del",value:function(e){return"".concat(e,"")}},{key:"link",value:function(e,t,n){if(null===(e=bf(this.options.sanitize,this.options.baseUrl,e)))return n;var r='"}},{key:"image",value:function(e,t,n){if(null===(e=bf(this.options.sanitize,this.options.baseUrl,e)))return n;var r='').concat(n,'":">"}},{key:"text",value:function(e){return e}}]),e}(),Lf=function(){function e(){jt(this,e)}return Wt(e,[{key:"strong",value:function(e){return e}},{key:"em",value:function(e){return e}},{key:"codespan",value:function(e){return e}},{key:"del",value:function(e){return e}},{key:"html",value:function(e){return e}},{key:"text",value:function(e){return e}},{key:"link",value:function(e,t,n){return""+n}},{key:"image",value:function(e,t,n){return""+n}},{key:"br",value:function(){return""}}]),e}(),zf=function(){function e(){jt(this,e),this.seen={}}return Wt(e,[{key:"serialize",value:function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}},{key:"getNextSafeSlug",value:function(e,t){var n=e,r=0;if(this.seen.hasOwnProperty(n)){r=this.seen[e];do{n=e+"-"+ ++r}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=r,this.seen[n]=0),n}},{key:"slug",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)}}]),e}(),$f=function(){function e(t){jt(this,e),this.options=t||of,this.options.renderer=this.options.renderer||new Pf,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Lf,this.slugger=new zf}return Wt(e,[{key:"parse",value:function(e){var t,n,r,i,o,a,u,l,c,s,f,h,d,p,v,m,g,y,_,b=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],D="",w=e.length;for(t=0;t0&&"paragraph"===v.tokens[0].type?(v.tokens[0].text=y+" "+v.tokens[0].text,v.tokens[0].tokens&&v.tokens[0].tokens.length>0&&"text"===v.tokens[0].tokens[0].type&&(v.tokens[0].tokens[0].text=y+" "+v.tokens[0].tokens[0].text)):v.tokens.unshift({type:"text",text:y}):p+=y),p+=this.parse(v.tokens,d),c+=this.renderer.listitem(p,g,m);D+=this.renderer.list(c,f,h);continue;case"html":D+=this.renderer.html(s.text,s.block);continue;case"paragraph":D+=this.renderer.paragraph(this.parseInline(s.tokens));continue;case"text":for(c=s.tokens?this.parseInline(s.tokens):s.text;t+1";return t?Promise.resolve(i):n?void n(null,i):i}if(t)return Promise.reject(r);if(!n)throw r;n(r)}}var Wf=new Hf(of);function Zf(e,t,n){return Wf.parse(e,t,n)}Zf.options=Zf.setOptions=function(e){return Wf.setOptions(e),Zf.defaults=Wf.defaults,af(Zf.defaults),Zf},Zf.getDefaults=rf,Zf.defaults=of,Zf.use=function(){return Wf.use.apply(Wf,arguments),Zf.defaults=Wf.defaults,af(Zf.defaults),Zf},Zf.walkTokens=function(e,t){return Wf.walkTokens(e,t)},Zf.parseInline=Wf.parseInline,Zf.Parser=$f,Zf.parser=$f.parse,Zf.Renderer=Pf,Zf.TextRenderer=Lf,Zf.Lexer=Bf,Zf.lexer=Bf.lex,Zf.Tokenizer=Ff,Zf.Slugger=zf,Zf.Hooks=Rf,Zf.parse=Zf;Zf.options,Zf.setOptions,Zf.use,Zf.walkTokens,Zf.parseInline,$f.parse,Bf.lex;var Yf=n.p+"static/media/MetricsQL.48b7b7105a48d7775f01.md",qf=function(e){var t='$1 target="_blank" class="'.concat("vm-link vm-link_colored",'" $2').concat("https://docs.victoriametrics.com/MetricsQL.html","#");return e.replace(/(1,c=n||a,s="ArrowDown"===t,f="Enter"===t;"ArrowUp"===t&&c&&(e.preventDefault(),i()),s&&c&&(e.preventDefault(),o()),f&&v&&e.preventDefault(),!f||u||l&&!c||v||(e.preventDefault(),r())},onChange:n,onChangeCaret:function(e){_(e)},disabled:f,inputmode:"search"}),a&&ii(Jf,{value:t,anchorEl:b,caretPosition:y,onSelect:function(e){n(e)},onFoundOptions:function(e){m(!!e.length)}})]})},th=function(e){var t=e.query,n=e.error,r=e.onChange,i=e.onRun,o=na().isMobile;return ii("div",{className:Po()({"vm-explore-logs-header":!0,"vm-block":!0,"vm-block_mobile":o}),children:[ii("div",{className:"vm-explore-logs-header__input",children:ii(eh,{value:t,autocomplete:!1,onArrowUp:function(){return null},onArrowDown:function(){return null},onEnter:i,onChange:r,label:"Log query",error:n})}),ii("div",{className:"vm-explore-logs-header-bottom",children:[ii("div",{className:"vm-explore-logs-header-bottom-helpful",children:[ii("a",{className:"vm-link vm-link_with-icon",target:"_blank",href:"https://docs.victoriametrics.com/VictoriaLogs/LogsQL.html",rel:"help noreferrer",children:[ii(uo,{}),"Query language docs"]}),ii("a",{className:"vm-link vm-link_with-icon",target:"_blank",href:"https://docs.victoriametrics.com/VictoriaLogs/",rel:"help noreferrer",children:[ii(Ao,{}),"Documentation"]})]}),ii("div",{className:"vm-explore-logs-header-bottom__execute",children:ii(ba,{startIcon:ii(mo,{}),onClick:i,fullWidth:!0,children:"Execute Query"})})]})]})};var nh,rh=function(e){var t=ue();return oe((function(){t.current=e}),[e]),t.current},ih=function(){var e=ai().serverUrl,t=Fa().setSearchParamsFromKeys,n=$t(Sa("","query"),2),r=n[0],i=n[1],o=rh(r),a=function(e,t){var n=$t(re([]),2),r=n[0],i=n[1],o=$t(re(!1),2),a=o[0],u=o[1],l=$t(re(),2),s=l[0],f=l[1],h=ce((function(){return function(e){return"".concat(e,"/select/logsql/query")}(e)}),[e]),d=ce((function(){return{method:"POST",headers:{Accept:"application/stream+json; charset=utf-8","Content-Type":"application/x-www-form-urlencoded"},body:"query=".concat(encodeURIComponent(t.trim()))}}),[t]);return{logs:r,isLoading:a,error:s,fetchLogs:se(ya(ma().mark((function e(){var t,n,r,o,a,l,s,p,v,m;return ma().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u(!0),f(void 0),e.prev=2,e.next=5,fetch(h,d);case 5:if((t=e.sent).ok&&t.body){e.next=14;break}return e.next=9,t.text();case 9:return n=e.sent,f(n),i([]),u(!1),e.abrupt("return");case 14:r=t.body.getReader(),o=new TextDecoder("utf-8"),a=[];case 17:if(!r){e.next=33;break}return e.next=20,r.read();case 20:if(l=e.sent,s=l.done,p=l.value,!s){e.next=25;break}return e.abrupt("break",33);case 25:if(v=o.decode(p,{stream:!0}).split("\n"),a.push.apply(a,It(v)),a.length>Ya&&a.splice(0,a.length-Ya),!(a.length>=Ya)){e.next=31;break}return r.cancel(),e.abrupt("break",33);case 31:e.next=17;break;case 33:m=a.map((function(e){try{return JSON.parse(e)}catch(c){return""}})).filter((function(e){return e})),i(m),e.next=42;break;case 37:e.prev=37,e.t0=e.catch(2),console.error(e.t0),i([]),e.t0 instanceof Error&&f("".concat(e.t0.name,": ").concat(e.t0.message));case 42:u(!1);case 43:case"end":return e.stop()}}),e,null,[[2,37]])}))),[h,d])}}(e,r),u=a.logs,l=a.isLoading,s=a.error,f=a.fetchLogs,h=$t(re(""),2),d=h[0],p=h[1],v=$t(re(!1),2),m=v[0],g=v[1],y=function(){r?(f().then((function(){g(!0)})),t(o&&r!==o?{query:r,page:1}:{query:r})):p(Yr.validQuery)};return oe((function(){r&&y()}),[]),oe((function(){p("")}),[r]),ii("div",{className:"vm-explore-logs",children:[ii(th,{query:r,error:d,onChange:i,onRun:y}),l&&ii(qa,{}),s&&ii(ia,{variant:"error",children:s}),ii(Za,{data:u,loaded:m})]})},oh={home:"/",metrics:"/metrics",dashboards:"/dashboards",cardinality:"/cardinality",topQueries:"/top-queries",trace:"/trace",withTemplate:"/expand-with-exprs",relabel:"/relabeling",logs:"/logs",activeQueries:"/active-queries",queryAnalyzer:"/query-analyzer",icons:"/icons",anomaly:"/anomaly",query:"/query"},ah="logs"===Pr.logs,uh={header:{tenant:!0,stepControl:!ah,timeSelector:!ah,executionControls:!ah}},lh=(Sr(nh={},oh.home,Tr({title:"Query"},uh)),Sr(nh,oh.metrics,{title:"Explore Prometheus metrics",header:{tenant:!0,stepControl:!0,timeSelector:!0}}),Sr(nh,oh.cardinality,{title:"Explore cardinality",header:{tenant:!0,cardinalityDatePicker:!0}}),Sr(nh,oh.topQueries,{title:"Top queries",header:{tenant:!0}}),Sr(nh,oh.trace,{title:"Trace analyzer",header:{}}),Sr(nh,oh.queryAnalyzer,{title:"Query analyzer",header:{}}),Sr(nh,oh.dashboards,Tr({title:"Dashboards"},uh)),Sr(nh,oh.withTemplate,{title:"WITH templates",header:{}}),Sr(nh,oh.relabel,{title:"Metric relabel debug",header:{}}),Sr(nh,oh.logs,{title:"Logs Explorer",header:{}}),Sr(nh,oh.activeQueries,{title:"Active Queries",header:{}}),Sr(nh,oh.icons,{title:"Icons",header:{}}),Sr(nh,oh.anomaly,Tr({title:"Anomaly exploration"},uh)),Sr(nh,oh.query,Tr({title:"Query"},uh)),nh),ch=oh,sh=function(e){var t=e.activeMenu,n=e.label,r=e.value,i=e.color;return ii(kr,{className:Po()({"vm-header-nav-item":!0,"vm-header-nav-item_active":t===r}),style:{color:i},to:r,children:n})},fh=function(e){var t=e.activeMenu,n=e.label,r=e.color,i=e.background,o=e.submenu,a=e.direction,u=Wn().pathname,l=$t(re(null),2),c=l[0],s=l[1],f=ue(null),h=ka(!1),d=h.value,p=h.setFalse,v=h.setTrue,m=function(){c&&clearTimeout(c);var e=setTimeout(p,300);s(e)};return oe((function(){p()}),[u]),"column"===a?ii(_,{children:o.map((function(e){return ii(sh,{activeMenu:t,value:e.value||"",label:e.label||""},e.value)}))}):ii("div",{className:Po()({"vm-header-nav-item":!0,"vm-header-nav-item_sub":!0,"vm-header-nav-item_open":d,"vm-header-nav-item_active":o.find((function(e){return e.value===t}))}),style:{color:r},onMouseEnter:function(){v(),c&&clearTimeout(c)},onMouseLeave:m,ref:f,children:[n,ii(po,{}),ii(xa,{open:d,placement:"bottom-left",offset:{top:12,left:0},onClose:p,buttonRef:f,children:ii("div",{className:"vm-header-nav-item-submenu",style:{background:i},onMouseLeave:m,onMouseEnter:function(){c&&clearTimeout(c)},children:o.map((function(e){return ii(sh,{activeMenu:t,value:e.value||"",label:e.label||"",color:r},e.value)}))})})]})},hh={label:"Explore",submenu:[{label:lh[ch.metrics].title,value:ch.metrics},{label:lh[ch.cardinality].title,value:ch.cardinality},{label:lh[ch.topQueries].title,value:ch.topQueries},{label:lh[ch.activeQueries].title,value:ch.activeQueries}]},dh={label:"Tools",submenu:[{label:lh[ch.trace].title,value:ch.trace},{label:lh[ch.queryAnalyzer].title,value:ch.queryAnalyzer},{label:lh[ch.withTemplate].title,value:ch.withTemplate},{label:lh[ch.relabel].title,value:ch.relabel}]},ph=[{label:lh[ch.logs].title,value:ch.home}],vh=[{label:lh[ch.anomaly].title,value:ch.home},{label:lh[ch.home].title,value:ch.query}],mh=[{label:lh[ch.home].title,value:ch.home},hh,dh],gh=function(e){var t=e.color,n=e.background,r=e.direction,i=Or(),o=fe(ca).state.dashboardsSettings,a=Wn().pathname,u=$t(re(a),2),l=u[0],c=u[1],s=ce((function(){switch("logs"){case Pr.logs:return ph;case Pr.anomaly:return vh;default:return[].concat(It(mh),[{label:lh[ch.dashboards].title,value:ch.dashboards,hide:i||!o.length}]).filter((function(e){return!e.hide}))}}),[i,o]);return oe((function(){c(a)}),[a]),ii("nav",{className:Po()(Sr({"vm-header-nav":!0},"vm-header-nav_".concat(r),r)),children:s.map((function(e){return e.submenu?ii(fh,{activeMenu:l,label:e.label||"",submenu:e.submenu,color:t,background:n,direction:r},e.label):ii(sh,{activeMenu:l,value:e.value||"",label:e.label||"",color:t},e.value)}))})},yh=function(e){var t=e.title,n=e.children,r=e.onClose,i=e.className,o=e.isOpen,a=void 0===o||o,u=na().isMobile,l=Yn(),c=Wn(),s=se((function(e){a&&"Escape"===e.key&&r()}),[a]),f=function(e){e.stopPropagation()},h=se((function(){a&&(l(c,{replace:!0}),r())}),[a,c,r]);return oe((function(){if(a)return document.body.style.overflow="hidden",function(){document.body.style.overflow="auto"}}),[a]),jo("popstate",h),jo("keyup",s),xt.createPortal(ii("div",{className:Po()(Sr({"vm-modal":!0,"vm-modal_mobile":u},"".concat(i),i)),onMouseDown:r,children:ii("div",{className:"vm-modal-content",children:[ii("div",{className:"vm-modal-content-header",onMouseDown:f,children:[t&&ii("div",{className:"vm-modal-content-header__title",children:t}),ii("div",{className:"vm-modal-header__close",children:ii(ba,{variant:"text",size:"small",onClick:r,ariaLabel:"close",children:ii(oo,{})})})]}),ii("div",{className:"vm-modal-content-body",onMouseDown:f,children:n})]})}),document.body)},_h=ii("code",{children:ta()?"Cmd":"Ctrl"}),bh=[{title:"Zoom in",description:ii(_,{children:["To zoom in, hold down the ",_h," + ",ii("code",{children:"scroll up"}),", or press the ",ii("code",{children:"+"}),". Also, you can zoom in on a range on the graph by holding down your mouse button and selecting the range."]})},{title:"Zoom out",description:ii(_,{children:["To zoom out, hold down the ",_h," + ",ii("code",{children:"scroll down"}),", or press the ",ii("code",{children:"-"}),"."]})},{title:"Move horizontal axis",description:ii(_,{children:["To move the graph, hold down the ",_h," + ",ii("code",{children:"drag"})," the graph to the right or left."]})},{title:"Fixing a tooltip",description:ii(_,{children:["To fix the tooltip, ",ii("code",{children:"click"})," mouse when it's open. Then, you can drag the fixed tooltip by ",ii("code",{children:"clicking"})," and ",ii("code",{children:"dragging"})," on the ",ii(ko,{})," icon."]})},{title:"Set a custom range for the vertical axis",description:ii(_,{children:["To set a custom range for the vertical axis, click on the ",ii(io,{})," icon located in the upper right corner of the graph, activate the toggle, and set the values."]})}],Dh=[{title:"Show/hide a legend item",description:ii(_,{children:[ii("code",{children:"click"})," on a legend item to isolate it on the graph.",_h," + ",ii("code",{children:"click"})," on a legend item to remove it from the graph. To revert to the previous state, click again."]})},{title:"Copy label key-value pairs",description:ii(_,{children:[ii("code",{children:"click"})," on a label key-value pair to save it to the clipboard."]})},{title:"Collapse/Expand the legend group",description:ii(_,{children:[ii("code",{children:"click"})," on the group name (e.g. ",ii("b",{children:'Query 1: {__name__!=""}'}),") to collapse or expand the legend."]})}],wh=bh.concat(Dh),kh=function(){var e=ka(!1),t=e.value,n=e.setFalse,r=e.setTrue;return ii(_,{children:[ii(wa,{title:"Show tips on working with the graph",children:ii(ba,{variant:"text",color:"gray",startIcon:ii(So,{}),onClick:r,ariaLabel:"open the tips"})}),t&&ii(yh,{title:"Tips on working with the graph and the legend",onClose:n,children:ii("div",{className:"fc-graph-tips",children:wh.map((function(e){var t=e.title,n=e.description;return ii("div",{className:"fc-graph-tips-item",children:[ii("h4",{className:"fc-graph-tips-item__action",children:t}),ii("p",{className:"fc-graph-tips-item__description",children:n})]},t)}))})})]})},Ah=ii("code",{children:ta()?"Cmd":"Ctrl"}),xh=ii(_,{children:[ii("code",{children:ta()?"Option":"Ctrl"})," + ",ii("code",{children:"Space"})]}),Eh=[{title:"Query",list:[{keys:ii("code",{children:"Enter"}),description:"Run"},{keys:ii(_,{children:[ii("code",{children:"Shift"})," + ",ii("code",{children:"Enter"})]}),description:"Multi-line queries"},{keys:ii(_,{children:[Ah," + ",ii("code",{children:"Arrow Up"})]}),description:"Previous command from the Query history"},{keys:ii(_,{children:[Ah," + ",ii("code",{children:"Arrow Down"})]}),description:"Next command from the Query history"},{keys:ii(_,{children:[Ah," + ",ii("code",{children:"click"})," by ",ii(Do,{})]}),description:"Toggle multiple queries"},{keys:xh,description:"Show quick autocomplete tips"}]},{title:"Graph",readMore:ii(kh,{}),list:[{keys:ii(_,{children:[Ah," + ",ii("code",{children:"scroll Up"})," or ",ii("code",{children:"+"})]}),description:"Zoom in"},{keys:ii(_,{children:[Ah," + ",ii("code",{children:"scroll Down"})," or ",ii("code",{children:"-"})]}),description:"Zoom out"},{keys:ii(_,{children:[Ah," + ",ii("code",{children:"drag"})]}),description:"Move the graph left/right"},{keys:ii(_,{children:ii("code",{children:"click"})}),description:"Select the series in the legend"},{keys:ii(_,{children:[Ah," + ",ii("code",{children:"click"})]}),description:"Toggle multiple series in the legend"}]}],Ch="Shortcut keys",Sh=ta(),Fh=Sh?"Cmd + /":"F1",Th=function(e){var t=e.showTitle,n=Or(),r=ka(!1),i=r.value,o=r.setTrue,a=r.setFalse,u=se((function(e){var t=Sh&&"/"===e.key&&e.metaKey,n=!Sh&&"F1"===e.key&&!e.metaKey;(t||n)&&o()}),[o]);return jo("keydown",u),ii(_,{children:[ii(wa,{open:!0!==t&&void 0,title:"".concat(Ch," (").concat(Fh,")"),placement:"bottom-center",children:ii(ba,{className:n?"":"vm-header-button",variant:"contained",color:"primary",startIcon:ii(vo,{}),onClick:o,ariaLabel:Ch,children:t&&Ch})}),i&&ii(yh,{title:"Shortcut keys",onClose:a,children:ii("div",{className:"vm-shortcuts",children:Eh.map((function(e){return ii("div",{className:"vm-shortcuts-section",children:[e.readMore&&ii("div",{className:"vm-shortcuts-section__read-more",children:e.readMore}),ii("h3",{className:"vm-shortcuts-section__title",children:e.title}),ii("div",{className:"vm-shortcuts-section-list",children:e.list.map((function(t,n){return ii("div",{className:"vm-shortcuts-section-list-item",children:[ii("div",{className:"vm-shortcuts-section-list-item__key",children:t.keys}),ii("p",{className:"vm-shortcuts-section-list-item__description",children:t.description})]},"".concat(e.title,"_").concat(n))}))})]},e.title)}))})})]})},Mh=function(e){var t=e.open;return ii("button",{className:Po()({"vm-menu-burger":!0,"vm-menu-burger_opened":t}),"aria-label":"menu",children:ii("span",{})})},Oh="logs"===Pr.logs,Nh=function(e){var t=e.background,n=e.color,r=Wn().pathname,i=na().isMobile,o=ue(null),a=ka(!1),u=a.value,l=a.toggle,c=a.setFalse;return oe(c,[r]),Aa(o,c),ii("div",{className:"vm-header-sidebar",ref:o,children:[ii("div",{className:Po()({"vm-header-sidebar-button":!0,"vm-header-sidebar-button_open":u}),onClick:l,children:ii(Mh,{open:u})}),ii("div",{className:Po()({"vm-header-sidebar-menu":!0,"vm-header-sidebar-menu_open":u}),children:[ii("div",{children:ii(gh,{color:n,background:t,direction:"column"})}),ii("div",{className:"vm-header-sidebar-menu-settings",children:!i&&!Oh&&ii(Th,{showTitle:!0})})]})]})},Bh=["controlsComponent","isMobile"],Ph=function(e){var t=e.controlsComponent,n=e.isMobile,r=Lo(e,Bh),i=Or(),o=Wn().pathname,a=function(){var e=Mr().useTenantID,t=Or(),n=ai().serverUrl,r=$t(re(!1),2),i=r[0],o=r[1],a=$t(re(),2),u=a[0],l=a[1],c=$t(re([]),2),s=c[0],f=c[1],h=ce((function(){return"".concat(n.replace(/^(.+)(\/select.+)/,"$1"),"/admin/tenants")}),[n]),d=ce((function(){return!!Br(n)}),[n]),p=t?!e:!d;return oe((function(){if(!p){var e=function(){var e=ya(ma().mark((function e(){var t,n,r;return ma().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o(!0),e.prev=1,e.next=4,fetch(h);case 4:return t=e.sent,e.next=7,t.json();case 7:n=e.sent,r=n.data||[],f(r.sort((function(e,t){return e.localeCompare(t)}))),t.ok?l(void 0):l("".concat(n.errorType,"\r\n").concat(null===n||void 0===n?void 0:n.error)),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(1),e.t0 instanceof Error&&l("".concat(e.t0.name,": ").concat(e.t0.message));case 16:o(!1);case 17:case"end":return e.stop()}}),e,null,[[1,13]])})));return function(){return e.apply(this,arguments)}}();e().catch(console.error)}}),[h]),{accountIds:s,isLoading:i,error:u}}(),u=a.accountIds,l=ka(!1),c=l.value,s=l.toggle,f=l.setFalse,h=ce((function(){return(lh[o]||{}).header||{}}),[o]),d=ii(t,Tr(Tr({},r),{},{isMobile:n,accountIds:u,headerSetup:h}));return n?ii(_,{children:[ii("div",{children:ii(ba,{className:Po()({"vm-header-button":!i}),startIcon:ii(Co,{}),onClick:s,ariaLabel:"controls"})}),ii(yh,{title:"Controls",onClose:f,isOpen:c,className:Po()({"vm-header-controls-modal":!0,"vm-header-controls-modal_open":c}),children:d})]}):d},Lh="logs",zh=Lh===Pr.logs||Lh===Pr.anomaly,$h=function(){switch(Lh){case Pr.logs:return ii(to,{});case Pr.anomaly:return ii(no,{});default:return ii(eo,{})}},Rh=function(e){var t=e.controlsComponent,n=na().isMobile,r=ce((function(){return window.innerWidth<1e3}),[Ho()]),i=ai().isDarkTheme,o=Or(),a=ce((function(){return Qr(i?"color-background-block":"color-primary")}),[i]),u=ce((function(){var e=Mr().headerStyles,t=void 0===e?{}:e,n=t.background,r=void 0===n?o?"#FFF":a:n,i=t.color;return{background:r,color:void 0===i?o?a:"#FFF":i}}),[a]),l=u.background,c=u.color,s=Yn(),f=function(){s({pathname:ch.home}),window.location.reload()};return ii("header",{className:Po()({"vm-header":!0,"vm-header_app":o,"vm-header_dark":i,"vm-header_sidebar":r,"vm-header_mobile":n}),style:{background:l,color:c},children:[r?ii(Nh,{background:l,color:c}):ii(_,{children:[!o&&ii("div",{className:Po()({"vm-header-logo":!0,"vm-header-logo_logs":zh}),onClick:f,style:{color:c},children:ii($h,{})}),ii(gh,{color:c,background:l})]}),r&&ii("div",{className:Po()({"vm-header-logo":!0,"vm-header-logo_mobile":!0,"vm-header-logo_logs":zh}),onClick:f,style:{color:c},children:ii($h,{})}),ii(Ph,{controlsComponent:t,displaySidebar:r,isMobile:n})]})},Ih=Ee((function(){var e="2019-".concat((new Date).getFullYear());return ii("footer",{className:"vm-footer",children:[ii("a",{className:"vm-link vm-footer__website",target:"_blank",href:"https://victoriametrics.com/",rel:"me noreferrer",children:[ii(ro,{}),"victoriametrics.com"]}),ii("a",{className:"vm-link vm-footer__link",target:"_blank",href:"https://docs.victoriametrics.com/MetricsQL.html",rel:"help noreferrer",children:[ii(_o,{}),"MetricsQL"]}),ii("a",{className:"vm-link vm-footer__link",target:"_blank",href:"https://docs.victoriametrics.com/#vmui",rel:"help noreferrer",children:[ii(Ao,{}),"Documentation"]}),ii("a",{className:"vm-link vm-footer__link",target:"_blank",href:"https://github.com/VictoriaMetrics/VictoriaMetrics/issues/new/choose",rel:"noreferrer",children:[ii(xo,{}),"Create an issue"]}),ii("div",{className:"vm-footer__copyright",children:["\xa9 ",e," VictoriaMetrics"]})]})})),jh="Enable to save the modified server URL to local storage, preventing reset upon page refresh.",Hh="Disable to stop saving the server URL to local storage, reverting to the default URL on page refresh.",Uh=function(e){var t=e.serverUrl,n=e.stateServerUrl,r=e.onChange,i=e.onEnter,o=ka(!!zr("SERVER_URL")),a=o.value,u=o.toggle,l=$t(re(""),2),c=l[0],s=l[1];return oe((function(){n||s(Yr.emptyServer),function(e){var t;try{t=new URL(e)}catch(y){return!1}return"http:"===t.protocol||"https:"===t.protocol}(n)||s(Yr.validServer)}),[n]),oe((function(){a?Lr("SERVER_URL",t):$r(["SERVER_URL"])}),[a]),oe((function(){a&&Lr("SERVER_URL",t)}),[t]),ii("div",{children:[ii("div",{className:"vm-server-configurator__title",children:"Server URL"}),ii("div",{className:"vm-server-configurator-url",children:[ii(Qa,{autofocus:!0,value:t,error:c,onChange:function(e){r(e||""),s("")},onEnter:i,inputmode:"url"}),ii(wa,{title:a?Hh:jh,children:ii(ba,{className:"vm-server-configurator-url__button",variant:"text",color:a?"primary":"gray",onClick:u,startIcon:ii(Eo,{})})})]})]})},Vh=[{label:"Graph",type:Zr.chart},{label:"JSON",type:Zr.code},{label:"Table",type:Zr.table}],Wh=function(e){var t=e.limits,n=e.onChange,r=e.onEnter,i=na().isMobile,o=$t(re({table:"",chart:"",code:""}),2),a=o[0],u=o[1],l=function(e){return function(r){!function(e,r){var i=e||"";u((function(e){return Tr(Tr({},e),{},Sr({},r,+i<0?Yr.positiveNumber:""))})),n(Tr(Tr({},t),{},Sr({},r,i||1/0)))}(r,e)}};return ii("div",{className:"vm-limits-configurator",children:[ii("div",{className:"vm-server-configurator__title",children:["Series limits by tabs",ii(wa,{title:"Set to 0 to disable the limit",children:ii(ba,{variant:"text",color:"primary",size:"small",startIcon:ii(uo,{})})}),ii("div",{className:"vm-limits-configurator-title__reset",children:ii(ba,{variant:"text",color:"primary",size:"small",startIcon:ii(ao,{}),onClick:function(){n(Ur)},children:"Reset limits"})})]}),ii("div",{className:Po()({"vm-limits-configurator__inputs":!0,"vm-limits-configurator__inputs_mobile":i}),children:Vh.map((function(e){return ii("div",{children:ii(Qa,{label:e.label,value:t[e.type],error:a[e.type],onChange:l(e.type),onEnter:r,type:"number"})},e.type)}))})]})},Zh=function(){return ii(wa,{title:"Browser timezone is not recognized, supported, or could not be determined.",children:ii(lo,{})})},Yh=Si(),qh=function(e){var t=e.timezoneState,n=e.defaultTimezone,r=e.onChange,i=na().isMobile,o=Ei(),a=$t(re(""),2),u=a[0],l=a[1],s=ue(null),f=ka(!1),h=f.value,d=f.toggle,p=f.setFalse,v=ce((function(){return[{title:"Default time (".concat(n,")"),region:n,utc:n?xi(n):"UTC"},{title:Yh.title,region:Yh.region,utc:xi(Yh.region),isInvalid:!Yh.isValid},{title:"UTC (Coordinated Universal Time)",region:"UTC",utc:"UTC"}].filter((function(e){return e.region}))}),[n]),m=ce((function(){if(!u)return o;try{return Ei(u)}catch(c){return{}}}),[u,o]),g=ce((function(){return Object.keys(m)}),[m]),y=ce((function(){return{region:t,utc:xi(t)}}),[t]),_=function(e){return function(){!function(e){r(e.region),l(""),p()}(e)}};return ii("div",{className:"vm-timezones",children:[ii("div",{className:"vm-server-configurator__title",children:"Time zone"}),ii("div",{className:"vm-timezones-item vm-timezones-item_selected",onClick:d,ref:s,children:[ii("div",{className:"vm-timezones-item__title",children:y.region}),ii("div",{className:"vm-timezones-item__utc",children:y.utc}),ii("div",{className:Po()({"vm-timezones-item__icon":!0,"vm-timezones-item__icon_open":h}),children:ii(po,{})})]}),ii(xa,{open:h,buttonRef:s,placement:"bottom-left",onClose:p,fullWidth:!0,title:i?"Time zone":void 0,children:ii("div",{className:Po()({"vm-timezones-list":!0,"vm-timezones-list_mobile":i}),children:[ii("div",{className:"vm-timezones-list-header",children:[ii("div",{className:"vm-timezones-list-header__search",children:ii(Qa,{autofocus:!0,label:"Search",value:u,onChange:function(e){l(e)}})}),v.map((function(e,t){return e&&ii("div",{className:"vm-timezones-item vm-timezones-list-group-options__item",onClick:_(e),children:[ii("div",{className:"vm-timezones-item__title",children:[e.title,e.isInvalid&&ii(Zh,{})]}),ii("div",{className:"vm-timezones-item__utc",children:e.utc})]},"".concat(t,"_").concat(e.region))}))]}),g.map((function(e){return ii("div",{className:"vm-timezones-list-group",children:ii(Ha,{defaultExpanded:!0,title:ii("div",{className:"vm-timezones-list-group__title",children:e}),children:ii("div",{className:"vm-timezones-list-group-options",children:m[e]&&m[e].map((function(e){return ii("div",{className:"vm-timezones-item vm-timezones-list-group-options__item",onClick:_(e),children:[ii("div",{className:"vm-timezones-item__title",children:e.region}),ii("div",{className:"vm-timezones-item__utc",children:e.utc})]},e.search)}))})})},e)}))]})})]})},Gh=function(e){var t=e.options,n=e.value,r=e.label,i=e.onChange,o=ue(null),a=$t(re({width:"0px",left:"0px",borderRadius:"0px"}),2),u=a[0],l=a[1],c=function(e){return function(){i(e)}};return oe((function(){if(o.current){var e=t.findIndex((function(e){return e.value===n})),r=o.current.getBoundingClientRect().width,i=e*r,a="0";0===e&&(a="16px 0 0 16px"),e===t.length-1&&(a="10px",i-=1,a="0 16px 16px 0"),0!==e&&e!==t.length-1&&(r+=1,i-=1),l({width:"".concat(r,"px"),left:"".concat(i,"px"),borderRadius:a})}else l({width:"0px",left:"0px",borderRadius:"0px"})}),[o,n,t]),ii("div",{className:"vm-toggles",children:[r&&ii("label",{className:"vm-toggles__label",children:r}),ii("div",{className:"vm-toggles-group",style:{gridTemplateColumns:"repeat(".concat(t.length,", 1fr)")},children:[u.borderRadius&&ii("div",{className:"vm-toggles-group__highlight",style:u}),t.map((function(e,t){return ii("div",{className:Po()({"vm-toggles-group-item":!0,"vm-toggles-group-item_first":0===t,"vm-toggles-group-item_active":e.value===n,"vm-toggles-group-item_icon":e.icon&&e.title}),onClick:c(e.value),ref:e.value===n?o:null,children:[e.icon,e.title]},e.value)}))]})]})},Qh=Object.values(qr).map((function(e){return{title:e,value:e}})),Jh=function(e){var t=e.theme,n=e.onChange,r=na().isMobile;return ii("div",{className:Po()({"vm-theme-control":!0,"vm-theme-control_mobile":r}),children:[ii("div",{className:"vm-server-configurator__title",children:"Theme preferences"}),ii("div",{className:"vm-theme-control__toggle",children:ii(Gh,{options:Qh,value:t,onChange:function(e){n(e)}})},"".concat(r))]})},Kh="Settings",Xh="logs"===Pr.logs,ed=function(){var e=na().isMobile,t=Or(),n=ai(),r=n.serverUrl,i=n.theme,o=Ii(),a=o.timezone,u=o.defaultTimezone,l=fe(Qo).state.seriesLimits,c=ui(),s=ji(),f=fe(Qo).dispatch,h=$t(re(r),2),d=h[0],p=h[1],v=$t(re(l),2),m=v[0],g=v[1],y=$t(re(a),2),b=y[0],D=y[1],w=ka(!1),k=w.value,A=w.setTrue,x=w.setFalse,E=function(){x(),p(r),g(l),D(a)},C=function(){var e=Br(d);""!==e&&c({type:"SET_TENANT_ID",payload:e}),c({type:"SET_SERVER",payload:d}),s({type:"SET_TIMEZONE",payload:b}),f({type:"SET_SERIES_LIMITS",payload:m}),x()};oe((function(){r!==d&&p(r)}),[r]),oe((function(){D(a)}),[a]);var S=[{show:!t&&!Xh,component:ii(Uh,{stateServerUrl:r,serverUrl:d,onChange:p,onEnter:C})},{show:!Xh,component:ii(Wh,{limits:m,onChange:g,onEnter:C})},{show:!0,component:ii(qh,{timezoneState:b,defaultTimezone:u,onChange:D})},{show:!t,component:ii(Jh,{theme:i,onChange:function(e){c({type:"SET_THEME",payload:e})}})}].filter((function(e){return e.show}));return ii(_,{children:[e?ii("div",{className:"vm-mobile-option",onClick:A,children:[ii("span",{className:"vm-mobile-option__icon",children:ii(io,{})}),ii("div",{className:"vm-mobile-option-text",children:ii("span",{className:"vm-mobile-option-text__label",children:Kh})}),ii("span",{className:"vm-mobile-option__arrow",children:ii(ho,{})})]}):ii(wa,{title:Kh,children:ii(ba,{className:Po()({"vm-header-button":!t}),variant:"contained",color:"primary",startIcon:ii(io,{}),onClick:A,ariaLabel:"settings"})}),k&&ii(yh,{title:Kh,onClose:E,children:ii("div",{className:Po()({"vm-server-configurator":!0,"vm-server-configurator_mobile":e}),children:[S.map((function(e,t){return ii("div",{className:"vm-server-configurator__input",children:e.component},t)})),ii("div",{className:"vm-server-configurator-footer",children:[ii(ba,{color:"error",variant:"outlined",onClick:E,children:"Cancel"}),ii(ba,{color:"primary",variant:"contained",onClick:C,children:"Apply"})]})]})})]})},td=function(e){var t=e.isMobile;return ii("div",{className:Po()({"vm-header-controls":!0,"vm-header-controls_mobile":t}),children:ii(ed,{})})},nd=Boolean(zr("DISABLED_DEFAULT_TIMEZONE")),rd=function(){var e=ai().serverUrl,t=ji(),n=$t(re(!1),2),r=n[0],i=n[1],o=$t(re(""),2),a=o[0],u=o[1],l=function(e){var n="local"===e.toLowerCase()?Si().region:e;try{if(Ct()().tz(n).isValid(),t({type:"SET_DEFAULT_TIMEZONE",payload:n}),nd)return;t({type:"SET_TIMEZONE",payload:n})}catch(c){c instanceof Error&&u("".concat(c.name,": ").concat(c.message))}},s=function(){var t=ya(ma().mark((function t(){var n,r;return ma().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return");case 2:return u(""),i(!0),t.prev=4,t.next=7,fetch("".concat(e,"/vmui/timezone"));case 7:return n=t.sent,t.next=10,n.json();case 10:r=t.sent,n.ok?(l(r.timezone),i(!1)):(u(r.error),i(!1)),t.next=18;break;case 14:t.prev=14,t.t0=t.catch(4),i(!1),t.t0 instanceof Error&&u("".concat(t.t0.name,": ").concat(t.t0.message));case 18:case"end":return t.stop()}}),t,null,[[4,14]])})));return function(){return t.apply(this,arguments)}}();return oe((function(){s()}),[e]),{isLoading:r,error:a}},id=function(){var e=Or(),t=na().isMobile,n=Wn().pathname;rd();return oe((function(){var e,t="vmui for VictoriaLogs",n=null===(e=lh[ch.logs])||void 0===e?void 0:e.title;document.title=n?"".concat(n," - ").concat(t):t}),[n]),ii("section",{className:"vm-container",children:[ii(Rh,{controlsComponent:td}),ii("div",{className:Po()({"vm-container-body":!0,"vm-container-body_mobile":t,"vm-container-body_app":e}),children:ii(ur,{})}),!e&&ii(Ih,{})]})},od=function(){var e=$t(re(!1),2),t=e[0],n=e[1];return ii(_,{children:ii(_r,{children:ii(sa,{children:ii(_,{children:[ii(va,{onLoaded:n}),t&&ii(sr,{children:ii(lr,{path:"/",element:ii(id,{}),children:ii(lr,{path:"/",element:ii(ih,{})})})})]})})})})},ad=function(e){e&&n.e(522).then(n.bind(n,522)).then((function(t){var n=t.getCLS,r=t.getFID,i=t.getFCP,o=t.getLCP,a=t.getTTFB;n(e),r(e),i(e),o(e),a(e)}))},ud=document.getElementById("root");ud&&Qe(ii(od,{}),ud),ad()}()}();