@tongfun/tf-widget 0.1.71 → 0.1.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env +5 -0
- package/.eslintrc.js +49 -5
- package/dist/css/chunk-vendors.75ec1ba3.css +1 -0
- package/dist/css/index.d1a92f6c.css +1 -0
- package/dist/fonts/element-icons.f1a45d74.ttf +0 -0
- package/dist/fonts/element-icons.ff18efd1.woff +0 -0
- package/dist/js/chunk-vendors-legacy.8062375b.js +54 -0
- package/dist/js/chunk-vendors.32ae2509.js +52 -0
- package/dist/js/index-legacy.a20e505f.js +1 -0
- package/dist/js/index.2db423f4.js +1 -0
- package/dist.zip +0 -0
- package/lib/tf-widget.common.js +92338 -94879
- package/lib/tf-widget.css +1 -1
- package/lib/tf-widget.umd.js +92333 -94873
- package/lib/tf-widget.umd.min.js +23 -32
- package/package.json +9 -14
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
(self["webpackChunk_tongfun_tf_widget"]=self["webpackChunk_tongfun_tf_widget"]||[]).push([[998],{1001:function(e,t,n){"use strict";function r(e,t,n,r,i,a,o,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),a&&(u._scopeId="data-v-"+a),o?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:u}}n.d(t,{Z:function(){return r}})},6890:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return de}});var r=n(8239),i=n(2444),a=/%[sdj%]/g,o=function(){};function s(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=1,i=t[0],o=t.length;if("function"===typeof i)return i.apply(null,t.slice(1));if("string"===typeof i){for(var s=String(i).replace(a,(function(e){if("%%"===e)return"%";if(r>=o)return e;switch(e){case"%s":return String(t[r++]);case"%d":return Number(t[r++]);case"%j":try{return JSON.stringify(t[r++])}catch(n){return"[Circular]"}break;default:return e}})),l=t[r];r<o;l=t[++r])s+=" "+l;return s}return i}function l(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"pattern"===e}function u(e,t){return void 0===e||null===e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!l(t)||"string"!==typeof e||e))}function c(e,t,n){var r=[],i=0,a=e.length;function o(e){r.push.apply(r,e),i++,i===a&&n(r)}e.forEach((function(e){t(e,o)}))}function d(e,t,n){var r=0,i=e.length;function a(o){if(o&&o.length)n(o);else{var s=r;r+=1,s<i?t(e[s],a):n([])}}a([])}function h(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n])})),t}function f(e,t,n,r){if(t.first){var i=h(e);return d(i,n,r)}var a=t.firstFields||[];!0===a&&(a=Object.keys(e));var o=Object.keys(e),s=o.length,l=0,u=[],f=function(e){u.push.apply(u,e),l++,l===s&&r(u)};o.forEach((function(t){var r=e[t];-1!==a.indexOf(t)?d(r,n,f):c(r,n,f)}))}function p(e){return function(t){return t&&t.message?(t.field=t.field||e.fullField,t):{message:t,field:t.field||e.fullField}}}function m(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var a=t[n];"object"===("undefined"===typeof a?"undefined":(0,i.Z)(a))&&"object"===(0,i.Z)(e[n])?e[n]=(0,r.Z)({},e[n],a):e[n]=a}return e}function v(e,t,n,r,i,a){!e.required||n.hasOwnProperty(e.field)&&!u(t,a||e.type)||r.push(s(i.messages.required,e.fullField))}var g=v;function y(e,t,n,r,i){(/^\s+$/.test(t)||""===t)&&r.push(s(i.messages.whitespace,e.fullField))}var b=y,x={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},w={integer:function(e){return w.number(e)&&parseInt(e,10)===e},float:function(e){return w.number(e)&&!w.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(t){return!1}},date:function(e){return"function"===typeof e.getTime&&"function"===typeof e.getMonth&&"function"===typeof e.getYear},number:function(e){return!isNaN(e)&&"number"===typeof e},object:function(e){return"object"===("undefined"===typeof e?"undefined":(0,i.Z)(e))&&!w.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&!!e.match(x.email)&&e.length<255},url:function(e){return"string"===typeof e&&!!e.match(x.url)},hex:function(e){return"string"===typeof e&&!!e.match(x.hex)}};function _(e,t,n,r,a){if(e.required&&void 0===t)g(e,t,n,r,a);else{var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=e.type;o.indexOf(l)>-1?w[l](t)||r.push(s(a.messages.types[l],e.fullField,e.type)):l&&("undefined"===typeof t?"undefined":(0,i.Z)(t))!==e.type&&r.push(s(a.messages.types[l],e.fullField,e.type))}}var C=_;function S(e,t,n,r,i){var a="number"===typeof e.len,o="number"===typeof e.min,l="number"===typeof e.max,u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=t,d=null,h="number"===typeof t,f="string"===typeof t,p=Array.isArray(t);if(h?d="number":f?d="string":p&&(d="array"),!d)return!1;p&&(c=t.length),f&&(c=t.replace(u,"_").length),a?c!==e.len&&r.push(s(i.messages[d].len,e.fullField,e.len)):o&&!l&&c<e.min?r.push(s(i.messages[d].min,e.fullField,e.min)):l&&!o&&c>e.max?r.push(s(i.messages[d].max,e.fullField,e.max)):o&&l&&(c<e.min||c>e.max)&&r.push(s(i.messages[d].range,e.fullField,e.min,e.max))}var N=S,k="enum";function E(e,t,n,r,i){e[k]=Array.isArray(e[k])?e[k]:[],-1===e[k].indexOf(t)&&r.push(s(i.messages[k],e.fullField,e[k].join(", ")))}var M=E;function O(e,t,n,r,i){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(s(i.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"===typeof e.pattern){var a=new RegExp(e.pattern);a.test(t)||r.push(s(i.messages.pattern.mismatch,e.fullField,t,e.pattern))}}var D=O,T={required:g,whitespace:b,type:C,range:N,enum:M,pattern:D};function A(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(u(t,"string")&&!e.required)return n();T.required(e,t,r,a,i,"string"),u(t,"string")||(T.type(e,t,r,a,i),T.range(e,t,r,a,i),T.pattern(e,t,r,a,i),!0===e.whitespace&&T.whitespace(e,t,r,a,i))}n(a)}var I=A;function $(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(u(t)&&!e.required)return n();T.required(e,t,r,a,i),void 0!==t&&T.type(e,t,r,a,i)}n(a)}var P=$;function j(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(u(t)&&!e.required)return n();T.required(e,t,r,a,i),void 0!==t&&(T.type(e,t,r,a,i),T.range(e,t,r,a,i))}n(a)}var F=j;function B(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(u(t)&&!e.required)return n();T.required(e,t,r,a,i),void 0!==t&&T.type(e,t,r,a,i)}n(a)}var L=B;function z(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(u(t)&&!e.required)return n();T.required(e,t,r,a,i),u(t)||T.type(e,t,r,a,i)}n(a)}var R=z;function V(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(u(t)&&!e.required)return n();T.required(e,t,r,a,i),void 0!==t&&(T.type(e,t,r,a,i),T.range(e,t,r,a,i))}n(a)}var q=V;function H(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(u(t)&&!e.required)return n();T.required(e,t,r,a,i),void 0!==t&&(T.type(e,t,r,a,i),T.range(e,t,r,a,i))}n(a)}var U=H;function W(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(u(t,"array")&&!e.required)return n();T.required(e,t,r,a,i,"array"),u(t,"array")||(T.type(e,t,r,a,i),T.range(e,t,r,a,i))}n(a)}var Y=W;function G(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(u(t)&&!e.required)return n();T.required(e,t,r,a,i),void 0!==t&&T.type(e,t,r,a,i)}n(a)}var K=G,X="enum";function Z(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(u(t)&&!e.required)return n();T.required(e,t,r,a,i),t&&T[X](e,t,r,a,i)}n(a)}var J=Z;function Q(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(u(t,"string")&&!e.required)return n();T.required(e,t,r,a,i),u(t,"string")||T.pattern(e,t,r,a,i)}n(a)}var ee=Q;function te(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(u(t)&&!e.required)return n();if(T.required(e,t,r,a,i),!u(t)){var s=void 0;s="number"===typeof t?new Date(t):t,T.type(e,s,r,a,i),s&&T.range(e,s.getTime(),r,a,i)}}n(a)}var ne=te;function re(e,t,n,r,a){var o=[],s=Array.isArray(t)?"array":"undefined"===typeof t?"undefined":(0,i.Z)(t);T.required(e,t,r,o,a,s),n(o)}var ie=re;function ae(e,t,n,r,i){var a=e.type,o=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(u(t,a)&&!e.required)return n();T.required(e,t,r,o,i,a),u(t,a)||T.type(e,t,r,o,i)}n(o)}var oe=ae,se={string:I,method:P,number:F,boolean:L,regexp:R,integer:q,float:U,array:Y,object:K,enum:J,pattern:ee,date:ne,url:oe,hex:oe,email:oe,required:ie};function le(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var ue=le();function ce(e){this.rules=null,this._messages=ue,this.define(e)}ce.prototype={messages:function(e){return e&&(this._messages=m(le(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==("undefined"===typeof e?"undefined":(0,i.Z)(e))||Array.isArray(e))throw new Error("Rules must be an object");this.rules={};var t=void 0,n=void 0;for(t in e)e.hasOwnProperty(t)&&(n=e[t],this.rules[t]=Array.isArray(n)?n:[n])},validate:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments[2],l=e,u=n,c=a;if("function"===typeof u&&(c=u,u={}),this.rules&&0!==Object.keys(this.rules).length){if(u.messages){var d=this.messages();d===ue&&(d=le()),m(d,u.messages),u.messages=d}else u.messages=this.messages();var h=void 0,v=void 0,g={},y=u.keys||Object.keys(this.rules);y.forEach((function(n){h=t.rules[n],v=l[n],h.forEach((function(i){var a=i;"function"===typeof a.transform&&(l===e&&(l=(0,r.Z)({},l)),v=l[n]=a.transform(v)),a="function"===typeof a?{validator:a}:(0,r.Z)({},a),a.validator=t.getValidationMethod(a),a.field=n,a.fullField=a.fullField||n,a.type=t.getType(a),a.validator&&(g[n]=g[n]||[],g[n].push({rule:a,value:v,source:l,field:n}))}))}));var b={};f(g,u,(function(e,t){var n=e.rule,a=("object"===n.type||"array"===n.type)&&("object"===(0,i.Z)(n.fields)||"object"===(0,i.Z)(n.defaultField));function l(e,t){return(0,r.Z)({},t,{fullField:n.fullField+"."+e})}function c(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],c=i;if(Array.isArray(c)||(c=[c]),c.length&&o("async-validator:",c),c.length&&n.message&&(c=[].concat(n.message)),c=c.map(p(n)),u.first&&c.length)return b[n.field]=1,t(c);if(a){if(n.required&&!e.value)return c=n.message?[].concat(n.message).map(p(n)):u.error?[u.error(n,s(u.messages.required,n.field))]:[],t(c);var d={};if(n.defaultField)for(var h in e.value)e.value.hasOwnProperty(h)&&(d[h]=n.defaultField);for(var f in d=(0,r.Z)({},d,e.rule.fields),d)if(d.hasOwnProperty(f)){var m=Array.isArray(d[f])?d[f]:[d[f]];d[f]=m.map(l.bind(null,f))}var v=new ce(d);v.messages(u.messages),e.rule.options&&(e.rule.options.messages=u.messages,e.rule.options.error=u.error),v.validate(e.value,e.rule.options||u,(function(e){t(e&&e.length?c.concat(e):e)}))}else t(c)}a=a&&(n.required||!n.required&&e.value),n.field=e.field;var d=n.validator(n,e.value,c,e.source,u);d&&d.then&&d.then((function(){return c()}),(function(e){return c(e)}))}),(function(e){x(e)}))}else c&&c();function x(e){var t=void 0,n=void 0,r=[],i={};function a(e){Array.isArray(e)?r=r.concat.apply(r,e):r.push(e)}for(t=0;t<e.length;t++)a(e[t]);if(r.length)for(t=0;t<r.length;t++)n=r[t].field,i[n]=i[n]||[],i[n].push(r[t]);else r=null,i=null;c(r,i)}},getType:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!==typeof e.validator&&e.type&&!se.hasOwnProperty(e.type))throw new Error(s("Unknown rule type %s",e.type));return e.type||"string"},getValidationMethod:function(e){if("function"===typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?se.required:se[this.getType(e)]||!1}},ce.register=function(e,t){if("function"!==typeof t)throw new Error("Cannot register a validator by type, validator is not a function");se[e]=t},ce.messages=ue;var de=ce},9669:function(e,t,n){e.exports=n(1609)},5448:function(e,t,n){"use strict";var r=n(4867),i=n(6026),a=n(4372),o=n(5327),s=n(4097),l=n(4109),u=n(7985),c=n(5061);e.exports=function(e){return new Promise((function(t,n){var d=e.data,h=e.headers,f=e.responseType;r.isFormData(d)&&delete h["Content-Type"];var p=new XMLHttpRequest;if(e.auth){var m=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";h.Authorization="Basic "+btoa(m+":"+v)}var g=s(e.baseURL,e.url);function y(){if(p){var r="getAllResponseHeaders"in p?l(p.getAllResponseHeaders()):null,a=f&&"text"!==f&&"json"!==f?p.response:p.responseText,o={data:a,status:p.status,statusText:p.statusText,headers:r,config:e,request:p};i(t,n,o),p=null}}if(p.open(e.method.toUpperCase(),o(g,e.params,e.paramsSerializer),!0),p.timeout=e.timeout,"onloadend"in p?p.onloadend=y:p.onreadystatechange=function(){p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))&&setTimeout(y)},p.onabort=function(){p&&(n(c("Request aborted",e,"ECONNABORTED",p)),p=null)},p.onerror=function(){n(c("Network Error",e,null,p)),p=null},p.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(c(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",p)),p=null},r.isStandardBrowserEnv()){var b=(e.withCredentials||u(g))&&e.xsrfCookieName?a.read(e.xsrfCookieName):void 0;b&&(h[e.xsrfHeaderName]=b)}"setRequestHeader"in p&&r.forEach(h,(function(e,t){"undefined"===typeof d&&"content-type"===t.toLowerCase()?delete h[t]:p.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(p.withCredentials=!!e.withCredentials),f&&"json"!==f&&(p.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&p.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){p&&(p.abort(),n(e),p=null)})),d||(d=null),p.send(d)}))}},1609:function(e,t,n){"use strict";var r=n(4867),i=n(1849),a=n(321),o=n(7185),s=n(5655);function l(e){var t=new a(e),n=i(a.prototype.request,t);return r.extend(n,a.prototype,t),r.extend(n,t),n}var u=l(s);u.Axios=a,u.create=function(e){return l(o(u.defaults,e))},u.Cancel=n(5263),u.CancelToken=n(4972),u.isCancel=n(6502),u.all=function(e){return Promise.all(e)},u.spread=n(8713),u.isAxiosError=n(6268),e.exports=u,e.exports["default"]=u},5263:function(e){"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},4972:function(e,t,n){"use strict";var r=n(5263);function i(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e,t=new i((function(t){e=t}));return{token:t,cancel:e}},e.exports=i},6502:function(e){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:function(e,t,n){"use strict";var r=n(4867),i=n(5327),a=n(782),o=n(3572),s=n(7185),l=n(4875),u=l.validators;function c(e){this.defaults=e,this.interceptors={request:new a,response:new a}}c.prototype.request=function(e){"string"===typeof e?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=s(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&l.assertOptions(t,{silentJSONParsing:u.transitional(u.boolean,"1.0.0"),forcedJSONParsing:u.transitional(u.boolean,"1.0.0"),clarifyTimeoutError:u.transitional(u.boolean,"1.0.0")},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"===typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var i,a=[];if(this.interceptors.response.forEach((function(e){a.push(e.fulfilled,e.rejected)})),!r){var c=[o,void 0];Array.prototype.unshift.apply(c,n),c=c.concat(a),i=Promise.resolve(e);while(c.length)i=i.then(c.shift(),c.shift());return i}var d=e;while(n.length){var h=n.shift(),f=n.shift();try{d=h(d)}catch(p){f(p);break}}try{i=o(d)}catch(p){return Promise.reject(p)}while(a.length)i=i.then(a.shift(),a.shift());return i},c.prototype.getUri=function(e){return e=s(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){c.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){c.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=c},782:function(e,t,n){"use strict";var r=n(4867);function i(){this.handlers=[]}i.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},4097:function(e,t,n){"use strict";var r=n(1793),i=n(7303);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},5061:function(e,t,n){"use strict";var r=n(481);e.exports=function(e,t,n,i,a){var o=new Error(e);return r(o,t,n,i,a)}},3572:function(e,t,n){"use strict";var r=n(4867),i=n(8527),a=n(6502),o=n(5655);function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){s(e),e.headers=e.headers||{},e.data=i.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]}));var t=e.adapter||o.adapter;return t(e).then((function(t){return s(e),t.data=i.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return a(t)||(s(e),t&&t.response&&(t.response.data=i.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},481:function(e){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},7185:function(e,t,n){"use strict";var r=n(4867);e.exports=function(e,t){t=t||{};var n={},i=["url","method","data"],a=["headers","auth","proxy","params"],o=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function l(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function u(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=l(void 0,e[i])):n[i]=l(e[i],t[i])}r.forEach(i,(function(e){r.isUndefined(t[e])||(n[e]=l(void 0,t[e]))})),r.forEach(a,u),r.forEach(o,(function(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=l(void 0,e[i])):n[i]=l(void 0,t[i])})),r.forEach(s,(function(r){r in t?n[r]=l(e[r],t[r]):r in e&&(n[r]=l(void 0,e[r]))}));var c=i.concat(a).concat(o).concat(s),d=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===c.indexOf(e)}));return r.forEach(d,u),n}},6026:function(e,t,n){"use strict";var r=n(5061);e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},8527:function(e,t,n){"use strict";var r=n(4867),i=n(5655);e.exports=function(e,t,n){var a=this||i;return r.forEach(n,(function(n){e=n.call(a,e,t)})),e}},5655:function(e,t,n){"use strict";var r=n(4867),i=n(6016),a=n(481),o={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function l(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(e=n(5448)),e}function u(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(i){if("SyntaxError"!==i.name)throw i}return(n||JSON.stringify)(e)}var c={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:l(),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(s(t,"application/json"),u(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,i=t&&t.forcedJSONParsing,o=!n&&"json"===this.responseType;if(o||i&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(s){if(o){if("SyntaxError"===s.name)throw a(s,this,"E_JSON_PARSE");throw s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){c.headers[e]=r.merge(o)})),e.exports=c},1849:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},5327:function(e,t,n){"use strict";var r=n(4867);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var a;if(n)a=n(t);else if(r.isURLSearchParams(t))a=t.toString();else{var o=[];r.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),o.push(i(t)+"="+i(e))})))})),a=o.join("&")}if(a){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}},7303:function(e){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},4372:function(e,t,n){"use strict";var r=n(4867);e.exports=r.isStandardBrowserEnv()?function(){return{write:function(e,t,n,i,a,o){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(a)&&s.push("domain="+a),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},1793:function(e){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},6268:function(e){"use strict";e.exports=function(e){return"object"===typeof e&&!0===e.isAxiosError}},7985:function(e,t,n){"use strict";var r=n(4867);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return function(){return!0}}()},6016:function(e,t,n){"use strict";var r=n(4867);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},4109:function(e,t,n){"use strict";var r=n(4867),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,a,o={};return e?(r.forEach(e.split("\n"),(function(e){if(a=e.indexOf(":"),t=r.trim(e.substr(0,a)).toLowerCase(),n=r.trim(e.substr(a+1)),t){if(o[t]&&i.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}})),o):o}},8713:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},4875:function(e,t,n){"use strict";var r=n(8593),i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var a={},o=r.version.split(".");function s(e,t){for(var n=t?t.split("."):o,r=e.split("."),i=0;i<3;i++){if(n[i]>r[i])return!0;if(n[i]<r[i])return!1}return!1}function l(e,t,n){if("object"!==typeof e)throw new TypeError("options must be an object");var r=Object.keys(e),i=r.length;while(i-- >0){var a=r[i],o=t[a];if(o){var s=e[a],l=void 0===s||o(s,a,e);if(!0!==l)throw new TypeError("option "+a+" must be "+l)}else if(!0!==n)throw Error("Unknown option "+a)}}i.transitional=function(e,t,n){var i=t&&s(t);function o(e,t){return"[Axios v"+r.version+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new Error(o(r," has been removed in "+t));return i&&!a[r]&&(a[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},e.exports={isOlderVersion:s,assertOptions:l,validators:i}},4867:function(e,t,n){"use strict";var r=n(1849),i=Object.prototype.toString;function a(e){return"[object Array]"===i.call(e)}function o(e){return"undefined"===typeof e}function s(e){return null!==e&&!o(e)&&null!==e.constructor&&!o(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function l(e){return"[object ArrayBuffer]"===i.call(e)}function u(e){return"undefined"!==typeof FormData&&e instanceof FormData}function c(e){var t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function d(e){return"string"===typeof e}function h(e){return"number"===typeof e}function f(e){return null!==e&&"object"===typeof e}function p(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function m(e){return"[object Date]"===i.call(e)}function v(e){return"[object File]"===i.call(e)}function g(e){return"[object Blob]"===i.call(e)}function y(e){return"[object Function]"===i.call(e)}function b(e){return f(e)&&y(e.pipe)}function x(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams}function w(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function _(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function C(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),a(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}function S(){var e={};function t(t,n){p(e[n])&&p(t)?e[n]=S(e[n],t):p(t)?e[n]=S({},t):a(t)?e[n]=t.slice():e[n]=t}for(var n=0,r=arguments.length;n<r;n++)C(arguments[n],t);return e}function N(e,t,n){return C(t,(function(t,i){e[i]=n&&"function"===typeof t?r(t,n):t})),e}function k(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}e.exports={isArray:a,isArrayBuffer:l,isBuffer:s,isFormData:u,isArrayBufferView:c,isString:d,isNumber:h,isObject:f,isPlainObject:p,isUndefined:o,isDate:m,isFile:v,isBlob:g,isFunction:y,isStream:b,isURLSearchParams:x,isStandardBrowserEnv:_,forEach:C,merge:S,extend:N,trim:w,stripBOM:k}},3933:function(e){var t=/^(attrs|props|on|nativeOn|class|style|hook)$/;function n(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}}e.exports=function(e){return e.reduce((function(e,r){var i,a,o,s,l;for(o in r)if(i=e[o],a=r[o],i&&t.test(o))if("class"===o&&("string"===typeof i&&(l=i,e[o]=i={},i[l]=!0),"string"===typeof a&&(l=a,r[o]=a={},a[l]=!0)),"on"===o||"nativeOn"===o||"hook"===o)for(s in a)i[s]=n(i[s],a[s]);else if(Array.isArray(i))e[o]=i.concat(a);else if(Array.isArray(a))e[o]=[i].concat(a);else for(s in a)i[s]=a[s];else e[o]=r[o];return e}),{})}},2945:function(e,t,n){e.exports={default:n(8077),__esModule:!0}},3516:function(e,t,n){e.exports={default:n(9583),__esModule:!0}},4275:function(e,t,n){e.exports={default:n(3276),__esModule:!0}},8239:function(e,t,n){"use strict";var r=n(2945),i=a(r);function a(e){return e&&e.__esModule?e:{default:e}}t.Z=i.default||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}},2444:function(e,t,n){"use strict";var r=n(4275),i=l(r),a=n(3516),o=l(a),s="function"===typeof o.default&&"symbol"===typeof i.default?function(e){return typeof e}:function(e){return e&&"function"===typeof o.default&&e.constructor===o.default&&e!==o.default.prototype?"symbol":typeof e};function l(e){return e&&e.__esModule?e:{default:e}}t.Z="function"===typeof o.default&&"symbol"===s(i.default)?function(e){return"undefined"===typeof e?"undefined":s(e)}:function(e){return e&&"function"===typeof o.default&&e.constructor===o.default&&e!==o.default.prototype?"symbol":"undefined"===typeof e?"undefined":s(e)}},8077:function(e,t,n){n(529),e.exports=n(4731).Object.assign},9583:function(e,t,n){n(3835),n(464),n(4427),n(9089),e.exports=n(4731).Symbol},3276:function(e,t,n){n(3036),n(6740),e.exports=n(7613).f("iterator")},1449:function(e){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},5345:function(e){e.exports=function(){}},6504:function(e,t,n){var r=n(9151);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},4389:function(e,t,n){var r=n(4874),i=n(8317),a=n(9838);e.exports=function(e){return function(t,n,o){var s,l=r(t),u=i(l.length),c=a(o,u);if(e&&n!=n){while(u>c)if(s=l[c++],s!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}}},4499:function(e){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},4731:function(e){var t=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=t)},1821:function(e,t,n){var r=n(1449);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},1605:function(e){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},5810:function(e,t,n){e.exports=!n(3777)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},2571:function(e,t,n){var r=n(9151),i=n(9362).document,a=r(i)&&r(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},5568:function(e){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},2052:function(e,t,n){var r=n(9656),i=n(2614),a=n(3416);e.exports=function(e){var t=r(e),n=i.f;if(n){var o,s=n(e),l=a.f,u=0;while(s.length>u)l.call(e,o=s[u++])&&t.push(o)}return t}},9901:function(e,t,n){var r=n(9362),i=n(4731),a=n(1821),o=n(6519),s=n(3571),l="prototype",u=function(e,t,n){var c,d,h,f=e&u.F,p=e&u.G,m=e&u.S,v=e&u.P,g=e&u.B,y=e&u.W,b=p?i:i[t]||(i[t]={}),x=b[l],w=p?r:m?r[t]:(r[t]||{})[l];for(c in p&&(n=t),n)d=!f&&w&&void 0!==w[c],d&&s(b,c)||(h=d?w[c]:n[c],b[c]=p&&"function"!=typeof w[c]?n[c]:g&&d?a(h,r):y&&w[c]==h?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t[l]=e[l],t}(h):v&&"function"==typeof h?a(Function.call,h):h,v&&((b.virtual||(b.virtual={}))[c]=h,e&u.R&&x&&!x[c]&&o(x,c,h)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},3777:function(e){e.exports=function(e){try{return!!e()}catch(t){return!0}}},9362:function(e){var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},3571:function(e){var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},6519:function(e,t,n){var r=n(1738),i=n(8051);e.exports=n(5810)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},203:function(e,t,n){var r=n(9362).document;e.exports=r&&r.documentElement},3254:function(e,t,n){e.exports=!n(5810)&&!n(3777)((function(){return 7!=Object.defineProperty(n(2571)("div"),"a",{get:function(){return 7}}).a}))},2312:function(e,t,n){var r=n(4499);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},7539:function(e,t,n){var r=n(4499);e.exports=Array.isArray||function(e){return"Array"==r(e)}},9151:function(e){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},9163:function(e,t,n){"use strict";var r=n(4055),i=n(8051),a=n(420),o={};n(6519)(o,n(5346)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(o,{next:i(1,n)}),a(e,t+" Iterator")}},4346:function(e,t,n){"use strict";var r=n(7346),i=n(9901),a=n(1865),o=n(6519),s=n(3135),l=n(9163),u=n(420),c=n(1146),d=n(5346)("iterator"),h=!([].keys&&"next"in[].keys()),f="@@iterator",p="keys",m="values",v=function(){return this};e.exports=function(e,t,n,g,y,b,x){l(n,t,g);var w,_,C,S=function(e){if(!h&&e in M)return M[e];switch(e){case p:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},N=t+" Iterator",k=y==m,E=!1,M=e.prototype,O=M[d]||M[f]||y&&M[y],D=O||S(y),T=y?k?S("entries"):D:void 0,A="Array"==t&&M.entries||O;if(A&&(C=c(A.call(new e)),C!==Object.prototype&&C.next&&(u(C,N,!0),r||"function"==typeof C[d]||o(C,d,v))),k&&O&&O.name!==m&&(E=!0,D=function(){return O.call(this)}),r&&!x||!h&&!E&&M[d]||o(M,d,D),s[t]=D,s[N]=v,y)if(w={values:k?D:S(m),keys:b?D:S(p),entries:T},x)for(_ in w)_ in M||a(M,_,w[_]);else i(i.P+i.F*(h||E),t,w);return w}},4098:function(e){e.exports=function(e,t){return{value:t,done:!!e}}},3135:function(e){e.exports={}},7346:function(e){e.exports=!0},5965:function(e,t,n){var r=n(3535)("meta"),i=n(9151),a=n(3571),o=n(1738).f,s=0,l=Object.isExtensible||function(){return!0},u=!n(3777)((function(){return l(Object.preventExtensions({}))})),c=function(e){o(e,r,{value:{i:"O"+ ++s,w:{}}})},d=function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,r)){if(!l(e))return"F";if(!t)return"E";c(e)}return e[r].i},h=function(e,t){if(!a(e,r)){if(!l(e))return!0;if(!t)return!1;c(e)}return e[r].w},f=function(e){return u&&p.NEED&&l(e)&&!a(e,r)&&c(e),e},p=e.exports={KEY:r,NEED:!1,fastKey:d,getWeak:h,onFreeze:f}},266:function(e,t,n){"use strict";var r=n(5810),i=n(9656),a=n(2614),o=n(3416),s=n(9411),l=n(2312),u=Object.assign;e.exports=!u||n(3777)((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=r}))?function(e,t){var n=s(e),u=arguments.length,c=1,d=a.f,h=o.f;while(u>c){var f,p=l(arguments[c++]),m=d?i(p).concat(d(p)):i(p),v=m.length,g=0;while(v>g)f=m[g++],r&&!h.call(p,f)||(n[f]=p[f])}return n}:u},4055:function(e,t,n){var r=n(6504),i=n(121),a=n(5568),o=n(6210)("IE_PROTO"),s=function(){},l="prototype",u=function(){var e,t=n(2571)("iframe"),r=a.length,i="<",o=">";t.style.display="none",n(203).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(i+"script"+o+"document.F=Object"+i+"/script"+o),e.close(),u=e.F;while(r--)delete u[l][a[r]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[l]=r(e),n=new s,s[l]=null,n[o]=e):n=u(),void 0===t?n:i(n,t)}},1738:function(e,t,n){var r=n(6504),i=n(3254),a=n(5408),o=Object.defineProperty;t.f=n(5810)?Object.defineProperty:function(e,t,n){if(r(e),t=a(t,!0),r(n),i)try{return o(e,t,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},121:function(e,t,n){var r=n(1738),i=n(6504),a=n(9656);e.exports=n(5810)?Object.defineProperties:function(e,t){i(e);var n,o=a(t),s=o.length,l=0;while(s>l)r.f(e,n=o[l++],t[n]);return e}},8437:function(e,t,n){var r=n(3416),i=n(8051),a=n(4874),o=n(5408),s=n(3571),l=n(3254),u=Object.getOwnPropertyDescriptor;t.f=n(5810)?u:function(e,t){if(e=a(e),t=o(t,!0),l)try{return u(e,t)}catch(n){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},2029:function(e,t,n){var r=n(4874),i=n(1471).f,a={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return i(e)}catch(t){return o.slice()}};e.exports.f=function(e){return o&&"[object Window]"==a.call(e)?s(e):i(r(e))}},1471:function(e,t,n){var r=n(6152),i=n(5568).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},2614:function(e,t){t.f=Object.getOwnPropertySymbols},1146:function(e,t,n){var r=n(3571),i=n(9411),a=n(6210)("IE_PROTO"),o=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?o:null}},6152:function(e,t,n){var r=n(3571),i=n(4874),a=n(4389)(!1),o=n(6210)("IE_PROTO");e.exports=function(e,t){var n,s=i(e),l=0,u=[];for(n in s)n!=o&&r(s,n)&&u.push(n);while(t.length>l)r(s,n=t[l++])&&(~a(u,n)||u.push(n));return u}},9656:function(e,t,n){var r=n(6152),i=n(5568);e.exports=Object.keys||function(e){return r(e,i)}},3416:function(e,t){t.f={}.propertyIsEnumerable},8051:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},1865:function(e,t,n){e.exports=n(6519)},420:function(e,t,n){var r=n(1738).f,i=n(3571),a=n(5346)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,a)&&r(e,a,{configurable:!0,value:t})}},6210:function(e,t,n){var r=n(7571)("keys"),i=n(3535);e.exports=function(e){return r[e]||(r[e]=i(e))}},7571:function(e,t,n){var r=n(4731),i=n(9362),a="__core-js_shared__",o=i[a]||(i[a]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(7346)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},2222:function(e,t,n){var r=n(1485),i=n(1605);e.exports=function(e){return function(t,n){var a,o,s=String(i(t)),l=r(n),u=s.length;return l<0||l>=u?e?"":void 0:(a=s.charCodeAt(l),a<55296||a>56319||l+1===u||(o=s.charCodeAt(l+1))<56320||o>57343?e?s.charAt(l):a:e?s.slice(l,l+2):o-56320+(a-55296<<10)+65536)}}},9838:function(e,t,n){var r=n(1485),i=Math.max,a=Math.min;e.exports=function(e,t){return e=r(e),e<0?i(e+t,0):a(e,t)}},1485:function(e){var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},4874:function(e,t,n){var r=n(2312),i=n(1605);e.exports=function(e){return r(i(e))}},8317:function(e,t,n){var r=n(1485),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},9411:function(e,t,n){var r=n(1605);e.exports=function(e){return Object(r(e))}},5408:function(e,t,n){var r=n(9151);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},3535:function(e){var t=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++t+n).toString(36))}},1875:function(e,t,n){var r=n(9362),i=n(4731),a=n(7346),o=n(7613),s=n(1738).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=a?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:o.f(e)})}},7613:function(e,t,n){t.f=n(5346)},5346:function(e,t,n){var r=n(7571)("wks"),i=n(3535),a=n(9362).Symbol,o="function"==typeof a,s=e.exports=function(e){return r[e]||(r[e]=o&&a[e]||(o?a:i)("Symbol."+e))};s.store=r},1092:function(e,t,n){"use strict";var r=n(5345),i=n(4098),a=n(3135),o=n(4874);e.exports=n(4346)(Array,"Array",(function(e,t){this._t=o(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),a.Arguments=a.Array,r("keys"),r("values"),r("entries")},529:function(e,t,n){var r=n(9901);r(r.S+r.F,"Object",{assign:n(266)})},464:function(){},3036:function(e,t,n){"use strict";var r=n(2222)(!0);n(4346)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},3835:function(e,t,n){"use strict";var r=n(9362),i=n(3571),a=n(5810),o=n(9901),s=n(1865),l=n(5965).KEY,u=n(3777),c=n(7571),d=n(420),h=n(3535),f=n(5346),p=n(7613),m=n(1875),v=n(2052),g=n(7539),y=n(6504),b=n(9151),x=n(9411),w=n(4874),_=n(5408),C=n(8051),S=n(4055),N=n(2029),k=n(8437),E=n(2614),M=n(1738),O=n(9656),D=k.f,T=M.f,A=N.f,I=r.Symbol,$=r.JSON,P=$&&$.stringify,j="prototype",F=f("_hidden"),B=f("toPrimitive"),L={}.propertyIsEnumerable,z=c("symbol-registry"),R=c("symbols"),V=c("op-symbols"),q=Object[j],H="function"==typeof I&&!!E.f,U=r.QObject,W=!U||!U[j]||!U[j].findChild,Y=a&&u((function(){return 7!=S(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=D(q,t);r&&delete q[t],T(e,t,n),r&&e!==q&&T(q,t,r)}:T,G=function(e){var t=R[e]=S(I[j]);return t._k=e,t},K=H&&"symbol"==typeof I.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof I},X=function(e,t,n){return e===q&&X(V,t,n),y(e),t=_(t,!0),y(n),i(R,t)?(n.enumerable?(i(e,F)&&e[F][t]&&(e[F][t]=!1),n=S(n,{enumerable:C(0,!1)})):(i(e,F)||T(e,F,C(1,{})),e[F][t]=!0),Y(e,t,n)):T(e,t,n)},Z=function(e,t){y(e);var n,r=v(t=w(t)),i=0,a=r.length;while(a>i)X(e,n=r[i++],t[n]);return e},J=function(e,t){return void 0===t?S(e):Z(S(e),t)},Q=function(e){var t=L.call(this,e=_(e,!0));return!(this===q&&i(R,e)&&!i(V,e))&&(!(t||!i(this,e)||!i(R,e)||i(this,F)&&this[F][e])||t)},ee=function(e,t){if(e=w(e),t=_(t,!0),e!==q||!i(R,t)||i(V,t)){var n=D(e,t);return!n||!i(R,t)||i(e,F)&&e[F][t]||(n.enumerable=!0),n}},te=function(e){var t,n=A(w(e)),r=[],a=0;while(n.length>a)i(R,t=n[a++])||t==F||t==l||r.push(t);return r},ne=function(e){var t,n=e===q,r=A(n?V:w(e)),a=[],o=0;while(r.length>o)!i(R,t=r[o++])||n&&!i(q,t)||a.push(R[t]);return a};H||(I=function(){if(this instanceof I)throw TypeError("Symbol is not a constructor!");var e=h(arguments.length>0?arguments[0]:void 0),t=function(n){this===q&&t.call(V,n),i(this,F)&&i(this[F],e)&&(this[F][e]=!1),Y(this,e,C(1,n))};return a&&W&&Y(q,e,{configurable:!0,set:t}),G(e)},s(I[j],"toString",(function(){return this._k})),k.f=ee,M.f=X,n(1471).f=N.f=te,n(3416).f=Q,E.f=ne,a&&!n(7346)&&s(q,"propertyIsEnumerable",Q,!0),p.f=function(e){return G(f(e))}),o(o.G+o.W+o.F*!H,{Symbol:I});for(var re="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ie=0;re.length>ie;)f(re[ie++]);for(var ae=O(f.store),oe=0;ae.length>oe;)m(ae[oe++]);o(o.S+o.F*!H,"Symbol",{for:function(e){return i(z,e+="")?z[e]:z[e]=I(e)},keyFor:function(e){if(!K(e))throw TypeError(e+" is not a symbol!");for(var t in z)if(z[t]===e)return t},useSetter:function(){W=!0},useSimple:function(){W=!1}}),o(o.S+o.F*!H,"Object",{create:J,defineProperty:X,defineProperties:Z,getOwnPropertyDescriptor:ee,getOwnPropertyNames:te,getOwnPropertySymbols:ne});var se=u((function(){E.f(1)}));o(o.S+o.F*se,"Object",{getOwnPropertySymbols:function(e){return E.f(x(e))}}),$&&o(o.S+o.F*(!H||u((function(){var e=I();return"[null]"!=P([e])||"{}"!=P({a:e})||"{}"!=P(Object(e))}))),"JSON",{stringify:function(e){var t,n,r=[e],i=1;while(arguments.length>i)r.push(arguments[i++]);if(n=t=r[1],(b(t)||void 0!==e)&&!K(e))return g(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!K(t))return t}),r[1]=t,P.apply($,r)}}),I[j][B]||n(6519)(I[j],B,I[j].valueOf),d(I,"Symbol"),d(Math,"Math",!0),d(r.JSON,"JSON",!0)},4427:function(e,t,n){n(1875)("asyncIterator")},9089:function(e,t,n){n(1875)("observable")},6740:function(e,t,n){n(1092);for(var r=n(9362),i=n(6519),a=n(3135),o=n(5346)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l<s.length;l++){var u=s[l],c=r[u],d=c&&c.prototype;d&&!d[o]&&i(d,o,u),a[u]=a.Array}},8129:function(e,t,n){"use strict";var r=n(690);function i(){var e={},t=0,n=0,r=0;function i(i,a){a||(a=i,i=0),i>n?n=i:i<r&&(r=i),e[i]||(e[i]=[]),e[i].push(a),t++}function a(){for(var t=r;t<=n;t++)for(var i=e[t],a=0;a<i.length;a++){var o=i[a];o()}}function o(){return t}return{add:i,process:a,size:o}}e.exports=function(e){e=e||{};var t=e.reporter,n=r.getOption(e,"async",!0),a=r.getOption(e,"auto",!0);a&&!n&&(t&&t.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),n=!0);var o,s=i(),l=!1;function u(e,t){!l&&a&&n&&0===s.size()&&h(),s.add(e,t)}function c(){l=!0;while(s.size()){var e=s;s=i(),e.process()}l=!1}function d(e){l||(void 0===e&&(e=n),o&&(f(o),o=null),e?h():c())}function h(){o=p(c)}function f(e){var t=clearTimeout;return t(e)}function p(e){var t=function(e){return setTimeout(e,0)};return t(e)}return{add:u,force:d}}},690:function(e){"use strict";var t=e.exports={};function n(e,t,n){var r=e[t];return void 0!==r&&null!==r||void 0===n?r:n}t.getOption=n},1977:function(e,t){var n,r;
|
|
2
|
+
/**
|
|
3
|
+
* @license Complex.js v2.1.1 12/05/2020
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) 2020, Robert Eisele (robert@xarg.org)
|
|
6
|
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
|
7
|
+
**/(function(i){"use strict";var a=Math.cosh||function(e){return Math.abs(e)<1e-9?1-e:.5*(Math.exp(e)+Math.exp(-e))},o=Math.sinh||function(e){return Math.abs(e)<1e-9?e:.5*(Math.exp(e)-Math.exp(-e))},s=function(e){var t=Math.PI/4;if(-t>e||e>t)return Math.cos(e)-1;var n=e*e;return n*(n*(n*(n*(n*(n*(n*(n/20922789888e3-1/87178291200)+1/479001600)-1/3628800)+1/40320)-1/720)+1/24)-.5)},l=function(e,t){var n=Math.abs(e),r=Math.abs(t);return n<3e3&&r<3e3?Math.sqrt(n*n+r*r):(n<r?(n=r,r=e/t):r=t/e,n*Math.sqrt(1+r*r))},u=function(){throw SyntaxError("Invalid Param")};function c(e,t){var n=Math.abs(e),r=Math.abs(t);return 0===e?Math.log(r):0===t?Math.log(n):n<3e3&&r<3e3?.5*Math.log(e*e+t*t):(e/=2,t/=2,.5*Math.log(e*e+t*t)+Math.LN2)}var d=function(e,t){var n={re:0,im:0};if(void 0===e||null===e)n["re"]=n["im"]=0;else if(void 0!==t)n["re"]=e,n["im"]=t;else switch(typeof e){case"object":if("im"in e&&"re"in e)n["re"]=e["re"],n["im"]=e["im"];else if("abs"in e&&"arg"in e){if(!Number.isFinite(e["abs"])&&Number.isFinite(e["arg"]))return h["INFINITY"];n["re"]=e["abs"]*Math.cos(e["arg"]),n["im"]=e["abs"]*Math.sin(e["arg"])}else if("r"in e&&"phi"in e){if(!Number.isFinite(e["r"])&&Number.isFinite(e["phi"]))return h["INFINITY"];n["re"]=e["r"]*Math.cos(e["phi"]),n["im"]=e["r"]*Math.sin(e["phi"])}else 2===e.length?(n["re"]=e[0],n["im"]=e[1]):u();break;case"string":n["im"]=n["re"]=0;var r=e.match(/\d+\.?\d*e[+-]?\d+|\d+\.?\d*|\.\d+|./g),i=1,a=0;null===r&&u();for(var o=0;o<r.length;o++){var s=r[o];" "===s||"\t"===s||"\n"===s||("+"===s?i++:"-"===s?a++:"i"===s||"I"===s?(i+a===0&&u()," "===r[o+1]||isNaN(r[o+1])?n["im"]+=parseFloat((a%2?"-":"")+"1"):(n["im"]+=parseFloat((a%2?"-":"")+r[o+1]),o++),i=a=0):((i+a===0||isNaN(s))&&u(),"i"===r[o+1]||"I"===r[o+1]?(n["im"]+=parseFloat((a%2?"-":"")+s),o++):n["re"]+=parseFloat((a%2?"-":"")+s),i=a=0))}i+a>0&&u();break;case"number":n["im"]=0,n["re"]=e;break;default:u()}return isNaN(n["re"])||isNaN(n["im"]),n};function h(e,t){if(!(this instanceof h))return new h(e,t);var n=d(e,t);this["re"]=n["re"],this["im"]=n["im"]}h.prototype={re:0,im:0,sign:function(){var e=this["abs"]();return new h(this["re"]/e,this["im"]/e)},add:function(e,t){var n=new h(e,t);return this["isInfinite"]()&&n["isInfinite"]()?h["NAN"]:this["isInfinite"]()||n["isInfinite"]()?h["INFINITY"]:new h(this["re"]+n["re"],this["im"]+n["im"])},sub:function(e,t){var n=new h(e,t);return this["isInfinite"]()&&n["isInfinite"]()?h["NAN"]:this["isInfinite"]()||n["isInfinite"]()?h["INFINITY"]:new h(this["re"]-n["re"],this["im"]-n["im"])},mul:function(e,t){var n=new h(e,t);return this["isInfinite"]()&&n["isZero"]()||this["isZero"]()&&n["isInfinite"]()?h["NAN"]:this["isInfinite"]()||n["isInfinite"]()?h["INFINITY"]:0===n["im"]&&0===this["im"]?new h(this["re"]*n["re"],0):new h(this["re"]*n["re"]-this["im"]*n["im"],this["re"]*n["im"]+this["im"]*n["re"])},div:function(e,t){var n=new h(e,t);if(this["isZero"]()&&n["isZero"]()||this["isInfinite"]()&&n["isInfinite"]())return h["NAN"];if(this["isInfinite"]()||n["isZero"]())return h["INFINITY"];if(this["isZero"]()||n["isInfinite"]())return h["ZERO"];e=this["re"],t=this["im"];var r,i,a=n["re"],o=n["im"];return 0===o?new h(e/a,t/a):Math.abs(a)<Math.abs(o)?(i=a/o,r=a*i+o,new h((e*i+t)/r,(t*i-e)/r)):(i=o/a,r=o*i+a,new h((e+t*i)/r,(t-e*i)/r))},pow:function(e,t){var n=new h(e,t);if(e=this["re"],t=this["im"],n["isZero"]())return h["ONE"];if(0===n["im"]){if(0===t&&e>0)return new h(Math.pow(e,n["re"]),0);if(0===e)switch((n["re"]%4+4)%4){case 0:return new h(Math.pow(t,n["re"]),0);case 1:return new h(0,Math.pow(t,n["re"]));case 2:return new h(-Math.pow(t,n["re"]),0);case 3:return new h(0,-Math.pow(t,n["re"]))}}if(0===e&&0===t&&n["re"]>0&&n["im"]>=0)return h["ZERO"];var r=Math.atan2(t,e),i=c(e,t);return e=Math.exp(n["re"]*i-n["im"]*r),t=n["im"]*i+n["re"]*r,new h(e*Math.cos(t),e*Math.sin(t))},sqrt:function(){var e,t,n=this["re"],r=this["im"],i=this["abs"]();if(n>=0){if(0===r)return new h(Math.sqrt(n),0);e=.5*Math.sqrt(2*(i+n))}else e=Math.abs(r)/Math.sqrt(2*(i-n));return t=n<=0?.5*Math.sqrt(2*(i-n)):Math.abs(r)/Math.sqrt(2*(i+n)),new h(e,r<0?-t:t)},exp:function(){var e=Math.exp(this["re"]);return this["im"],new h(e*Math.cos(this["im"]),e*Math.sin(this["im"]))},expm1:function(){var e=this["re"],t=this["im"];return new h(Math.expm1(e)*Math.cos(t)+s(t),Math.exp(e)*Math.sin(t))},log:function(){var e=this["re"],t=this["im"];return new h(c(e,t),Math.atan2(t,e))},abs:function(){return l(this["re"],this["im"])},arg:function(){return Math.atan2(this["im"],this["re"])},sin:function(){var e=this["re"],t=this["im"];return new h(Math.sin(e)*a(t),Math.cos(e)*o(t))},cos:function(){var e=this["re"],t=this["im"];return new h(Math.cos(e)*a(t),-Math.sin(e)*o(t))},tan:function(){var e=2*this["re"],t=2*this["im"],n=Math.cos(e)+a(t);return new h(Math.sin(e)/n,o(t)/n)},cot:function(){var e=2*this["re"],t=2*this["im"],n=Math.cos(e)-a(t);return new h(-Math.sin(e)/n,o(t)/n)},sec:function(){var e=this["re"],t=this["im"],n=.5*a(2*t)+.5*Math.cos(2*e);return new h(Math.cos(e)*a(t)/n,Math.sin(e)*o(t)/n)},csc:function(){var e=this["re"],t=this["im"],n=.5*a(2*t)-.5*Math.cos(2*e);return new h(Math.sin(e)*a(t)/n,-Math.cos(e)*o(t)/n)},asin:function(){var e=this["re"],t=this["im"],n=new h(t*t-e*e+1,-2*e*t)["sqrt"](),r=new h(n["re"]-t,n["im"]+e)["log"]();return new h(r["im"],-r["re"])},acos:function(){var e=this["re"],t=this["im"],n=new h(t*t-e*e+1,-2*e*t)["sqrt"](),r=new h(n["re"]-t,n["im"]+e)["log"]();return new h(Math.PI/2-r["im"],r["re"])},atan:function(){var e=this["re"],t=this["im"];if(0===e){if(1===t)return new h(0,1/0);if(-1===t)return new h(0,-1/0)}var n=e*e+(1-t)*(1-t),r=new h((1-t*t-e*e)/n,-2*e/n).log();return new h(-.5*r["im"],.5*r["re"])},acot:function(){var e=this["re"],t=this["im"];if(0===t)return new h(Math.atan2(1,e),0);var n=e*e+t*t;return 0!==n?new h(e/n,-t/n).atan():new h(0!==e?e/0:0,0!==t?-t/0:0).atan()},asec:function(){var e=this["re"],t=this["im"];if(0===e&&0===t)return new h(0,1/0);var n=e*e+t*t;return 0!==n?new h(e/n,-t/n).acos():new h(0!==e?e/0:0,0!==t?-t/0:0).acos()},acsc:function(){var e=this["re"],t=this["im"];if(0===e&&0===t)return new h(Math.PI/2,1/0);var n=e*e+t*t;return 0!==n?new h(e/n,-t/n).asin():new h(0!==e?e/0:0,0!==t?-t/0:0).asin()},sinh:function(){var e=this["re"],t=this["im"];return new h(o(e)*Math.cos(t),a(e)*Math.sin(t))},cosh:function(){var e=this["re"],t=this["im"];return new h(a(e)*Math.cos(t),o(e)*Math.sin(t))},tanh:function(){var e=2*this["re"],t=2*this["im"],n=a(e)+Math.cos(t);return new h(o(e)/n,Math.sin(t)/n)},coth:function(){var e=2*this["re"],t=2*this["im"],n=a(e)-Math.cos(t);return new h(o(e)/n,-Math.sin(t)/n)},csch:function(){var e=this["re"],t=this["im"],n=Math.cos(2*t)-a(2*e);return new h(-2*o(e)*Math.cos(t)/n,2*a(e)*Math.sin(t)/n)},sech:function(){var e=this["re"],t=this["im"],n=Math.cos(2*t)+a(2*e);return new h(2*a(e)*Math.cos(t)/n,-2*o(e)*Math.sin(t)/n)},asinh:function(){var e=this["im"];this["im"]=-this["re"],this["re"]=e;var t=this["asin"]();return this["re"]=-this["im"],this["im"]=e,e=t["re"],t["re"]=-t["im"],t["im"]=e,t},acosh:function(){var e=this["acos"]();if(e["im"]<=0){var t=e["re"];e["re"]=-e["im"],e["im"]=t}else{t=e["im"];e["im"]=-e["re"],e["re"]=t}return e},atanh:function(){var e=this["re"],t=this["im"],n=e>1&&0===t,r=1-e,i=1+e,a=r*r+t*t,o=0!==a?new h((i*r-t*t)/a,(t*r+i*t)/a):new h(-1!==e?e/0:0,0!==t?t/0:0),s=o["re"];return o["re"]=c(o["re"],o["im"])/2,o["im"]=Math.atan2(o["im"],s)/2,n&&(o["im"]=-o["im"]),o},acoth:function(){var e=this["re"],t=this["im"];if(0===e&&0===t)return new h(0,Math.PI/2);var n=e*e+t*t;return 0!==n?new h(e/n,-t/n).atanh():new h(0!==e?e/0:0,0!==t?-t/0:0).atanh()},acsch:function(){var e=this["re"],t=this["im"];if(0===t)return new h(0!==e?Math.log(e+Math.sqrt(e*e+1)):1/0,0);var n=e*e+t*t;return 0!==n?new h(e/n,-t/n).asinh():new h(0!==e?e/0:0,0!==t?-t/0:0).asinh()},asech:function(){var e=this["re"],t=this["im"];if(this["isZero"]())return h["INFINITY"];var n=e*e+t*t;return 0!==n?new h(e/n,-t/n).acosh():new h(0!==e?e/0:0,0!==t?-t/0:0).acosh()},inverse:function(){if(this["isZero"]())return h["INFINITY"];if(this["isInfinite"]())return h["ZERO"];var e=this["re"],t=this["im"],n=e*e+t*t;return new h(e/n,-t/n)},conjugate:function(){return new h(this["re"],-this["im"])},neg:function(){return new h(-this["re"],-this["im"])},ceil:function(e){return e=Math.pow(10,e||0),new h(Math.ceil(this["re"]*e)/e,Math.ceil(this["im"]*e)/e)},floor:function(e){return e=Math.pow(10,e||0),new h(Math.floor(this["re"]*e)/e,Math.floor(this["im"]*e)/e)},round:function(e){return e=Math.pow(10,e||0),new h(Math.round(this["re"]*e)/e,Math.round(this["im"]*e)/e)},equals:function(e,t){var n=new h(e,t);return Math.abs(n["re"]-this["re"])<=h["EPSILON"]&&Math.abs(n["im"]-this["im"])<=h["EPSILON"]},clone:function(){return new h(this["re"],this["im"])},toString:function(){var e=this["re"],t=this["im"],n="";return this["isNaN"]()?"NaN":this["isInfinite"]()?"Infinity":(Math.abs(e)<h["EPSILON"]&&(e=0),Math.abs(t)<h["EPSILON"]&&(t=0),0===t?n+e:(0!==e?(n+=e,n+=" ",t<0?(t=-t,n+="-"):n+="+",n+=" "):t<0&&(t=-t,n+="-"),1!==t&&(n+=t),n+"i"))},toVector:function(){return[this["re"],this["im"]]},valueOf:function(){return 0===this["im"]?this["re"]:null},isNaN:function(){return isNaN(this["re"])||isNaN(this["im"])},isZero:function(){return 0===this["im"]&&0===this["re"]},isFinite:function(){return isFinite(this["re"])&&isFinite(this["im"])},isInfinite:function(){return!(this["isNaN"]()||this["isFinite"]())}},h["ZERO"]=new h(0,0),h["ONE"]=new h(1,0),h["I"]=new h(0,1),h["PI"]=new h(Math.PI,0),h["E"]=new h(Math.E,0),h["INFINITY"]=new h(1/0,1/0),h["NAN"]=new h(NaN,NaN),h["EPSILON"]=1e-15,n=[],r=function(){return h}.apply(t,n),void 0===r||(e.exports=r)})()},9662:function(e,t,n){var r=n(614),i=n(6330),a=TypeError;e.exports=function(e){if(r(e))return e;throw a(i(e)+" is not a function")}},6077:function(e,t,n){var r=n(614),i=String,a=TypeError;e.exports=function(e){if("object"==typeof e||r(e))return e;throw a("Can't set "+i(e)+" as a prototype")}},1223:function(e,t,n){var r=n(5112),i=n(30),a=n(3070).f,o=r("unscopables"),s=Array.prototype;void 0==s[o]&&a(s,o,{configurable:!0,value:i(null)}),e.exports=function(e){s[o][e]=!0}},9670:function(e,t,n){var r=n(111),i=String,a=TypeError;e.exports=function(e){if(r(e))return e;throw a(i(e)+" is not an object")}},1318:function(e,t,n){var r=n(5656),i=n(1400),a=n(6244),o=function(e){return function(t,n,o){var s,l=r(t),u=a(l),c=i(o,u);if(e&&n!=n){while(u>c)if(s=l[c++],s!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},4326:function(e,t,n){var r=n(1702),i=r({}.toString),a=r("".slice);e.exports=function(e){return a(i(e),8,-1)}},648:function(e,t,n){var r=n(1694),i=n(614),a=n(4326),o=n(5112),s=o("toStringTag"),l=Object,u="Arguments"==a(function(){return arguments}()),c=function(e,t){try{return e[t]}catch(n){}};e.exports=r?a:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=c(t=l(e),s))?n:u?a(t):"Object"==(r=a(t))&&i(t.callee)?"Arguments":r}},7741:function(e,t,n){var r=n(1702),i=Error,a=r("".replace),o=function(e){return String(i(e).stack)}("zxcasd"),s=/\n\s*at [^:]*:[^\n]*/,l=s.test(o);e.exports=function(e,t){if(l&&"string"==typeof e&&!i.prepareStackTrace)while(t--)e=a(e,s,"");return e}},9920:function(e,t,n){var r=n(2597),i=n(3887),a=n(1236),o=n(3070);e.exports=function(e,t,n){for(var s=i(t),l=o.f,u=a.f,c=0;c<s.length;c++){var d=s[c];r(e,d)||n&&r(n,d)||l(e,d,u(t,d))}}},8880:function(e,t,n){var r=n(9781),i=n(3070),a=n(9114);e.exports=r?function(e,t,n){return i.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},9114:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},8052:function(e,t,n){var r=n(614),i=n(3070),a=n(6339),o=n(3072);e.exports=function(e,t,n,s){s||(s={});var l=s.enumerable,u=void 0!==s.name?s.name:t;return r(n)&&a(n,u,s),s.global?l?e[t]=n:o(t,n):(s.unsafe?e[t]&&(l=!0):delete e[t],l?e[t]=n:i.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})),e}},3072:function(e,t,n){var r=n(2474),i=Object.defineProperty;e.exports=function(e,t){try{i(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},9781:function(e,t,n){var r=n(7293);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:function(e,t,n){var r=n(2474),i=n(111),a=r.document,o=i(a)&&i(a.createElement);e.exports=function(e){return o?a.createElement(e):{}}},8113:function(e,t,n){var r=n(5005);e.exports=r("navigator","userAgent")||""},7392:function(e,t,n){var r,i,a=n(2474),o=n(8113),s=a.process,l=a.Deno,u=s&&s.versions||l&&l.version,c=u&&u.v8;c&&(r=c.split("."),i=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&o&&(r=o.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/),r&&(i=+r[1]))),e.exports=i},748:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2914:function(e,t,n){var r=n(7293),i=n(9114);e.exports=!r((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",i(1,7)),7!==e.stack)}))},2109:function(e,t,n){var r=n(2474),i=n(1236).f,a=n(8880),o=n(8052),s=n(3072),l=n(9920),u=n(4705);e.exports=function(e,t){var n,c,d,h,f,p,m=e.target,v=e.global,g=e.stat;if(c=v?r:g?r[m]||s(m,{}):(r[m]||{}).prototype,c)for(d in t){if(f=t[d],e.dontCallGetSet?(p=i(c,d),h=p&&p.value):h=c[d],n=u(v?d:m+(g?".":"#")+d,e.forced),!n&&void 0!==h){if(typeof f==typeof h)continue;l(f,h)}(e.sham||h&&h.sham)&&a(f,"sham",!0),o(c,d,f,e)}}},7293:function(e){e.exports=function(e){try{return!!e()}catch(t){return!0}}},2104:function(e,t,n){var r=n(4374),i=Function.prototype,a=i.apply,o=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(a):function(){return o.apply(a,arguments)})},4374:function(e,t,n){var r=n(7293);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},6916:function(e,t,n){var r=n(4374),i=Function.prototype.call;e.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},6530:function(e,t,n){var r=n(9781),i=n(2597),a=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,s=i(a,"name"),l=s&&"something"===function(){}.name,u=s&&(!r||r&&o(a,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:u}},1702:function(e,t,n){var r=n(4374),i=Function.prototype,a=i.bind,o=i.call,s=r&&a.bind(o,o);e.exports=r?function(e){return e&&s(e)}:function(e){return e&&function(){return o.apply(e,arguments)}}},5005:function(e,t,n){var r=n(2474),i=n(614),a=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?a(r[e]):r[e]&&r[e][t]}},8173:function(e,t,n){var r=n(9662);e.exports=function(e,t){var n=e[t];return null==n?void 0:r(n)}},2474:function(e,t,n){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},2597:function(e,t,n){var r=n(1702),i=n(7908),a=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return a(i(e),t)}},3501:function(e){e.exports={}},490:function(e,t,n){var r=n(5005);e.exports=r("document","documentElement")},4664:function(e,t,n){var r=n(9781),i=n(7293),a=n(317);e.exports=!r&&!i((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},8361:function(e,t,n){var r=n(1702),i=n(7293),a=n(4326),o=Object,s=r("".split);e.exports=i((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"==a(e)?s(e,""):o(e)}:o},9587:function(e,t,n){var r=n(614),i=n(111),a=n(7674);e.exports=function(e,t,n){var o,s;return a&&r(o=t.constructor)&&o!==n&&i(s=o.prototype)&&s!==n.prototype&&a(e,s),e}},2788:function(e,t,n){var r=n(1702),i=n(614),a=n(5465),o=r(Function.toString);i(a.inspectSource)||(a.inspectSource=function(e){return o(e)}),e.exports=a.inspectSource},8340:function(e,t,n){var r=n(111),i=n(8880);e.exports=function(e,t){r(t)&&"cause"in t&&i(e,"cause",t.cause)}},9909:function(e,t,n){var r,i,a,o=n(8536),s=n(2474),l=n(1702),u=n(111),c=n(8880),d=n(2597),h=n(5465),f=n(6200),p=n(3501),m="Object already initialized",v=s.TypeError,g=s.WeakMap,y=function(e){return a(e)?i(e):r(e,{})},b=function(e){return function(t){var n;if(!u(t)||(n=i(t)).type!==e)throw v("Incompatible receiver, "+e+" required");return n}};if(o||h.state){var x=h.state||(h.state=new g),w=l(x.get),_=l(x.has),C=l(x.set);r=function(e,t){if(_(x,e))throw new v(m);return t.facade=e,C(x,e,t),t},i=function(e){return w(x,e)||{}},a=function(e){return _(x,e)}}else{var S=f("state");p[S]=!0,r=function(e,t){if(d(e,S))throw new v(m);return t.facade=e,c(e,S,t),t},i=function(e){return d(e,S)?e[S]:{}},a=function(e){return d(e,S)}}e.exports={set:r,get:i,has:a,enforce:y,getterFor:b}},614:function(e){e.exports=function(e){return"function"==typeof e}},4705:function(e,t,n){var r=n(7293),i=n(614),a=/#|\.prototype\./,o=function(e,t){var n=l[s(e)];return n==c||n!=u&&(i(t)?r(t):!!t)},s=o.normalize=function(e){return String(e).replace(a,".").toLowerCase()},l=o.data={},u=o.NATIVE="N",c=o.POLYFILL="P";e.exports=o},111:function(e,t,n){var r=n(614);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},1913:function(e){e.exports=!1},2190:function(e,t,n){var r=n(5005),i=n(614),a=n(7976),o=n(3307),s=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return i(t)&&a(t.prototype,s(e))}},6244:function(e,t,n){var r=n(7466);e.exports=function(e){return r(e.length)}},6339:function(e,t,n){var r=n(7293),i=n(614),a=n(2597),o=n(9781),s=n(6530).CONFIGURABLE,l=n(2788),u=n(9909),c=u.enforce,d=u.get,h=Object.defineProperty,f=o&&!r((function(){return 8!==h((function(){}),"length",{value:8}).length})),p=String(String).split("String"),m=e.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||s&&e.name!==t)&&h(e,"name",{value:t,configurable:!0}),f&&n&&a(n,"arity")&&e.length!==n.arity&&h(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?o&&h(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(i){}var r=c(e);return a(r,"source")||(r.source=p.join("string"==typeof t?t:"")),e};Function.prototype.toString=m((function(){return i(this)&&d(this).source||l(this)}),"toString")},4758:function(e){var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},133:function(e,t,n){var r=n(7392),i=n(7293);e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},8536:function(e,t,n){var r=n(2474),i=n(614),a=n(2788),o=r.WeakMap;e.exports=i(o)&&/native code/.test(a(o))},6277:function(e,t,n){var r=n(1340);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},30:function(e,t,n){var r,i=n(9670),a=n(6048),o=n(748),s=n(3501),l=n(490),u=n(317),c=n(6200),d=">",h="<",f="prototype",p="script",m=c("IE_PROTO"),v=function(){},g=function(e){return h+p+d+e+h+"/"+p+d},y=function(e){e.write(g("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){var e,t=u("iframe"),n="java"+p+":";return t.style.display="none",l.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(g("document.F=Object")),e.close(),e.F},x=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}x="undefined"!=typeof document?document.domain&&r?y(r):b():y(r);var e=o.length;while(e--)delete x[f][o[e]];return x()};s[m]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(v[f]=i(e),n=new v,v[f]=null,n[m]=e):n=x(),void 0===t?n:a.f(n,t)}},6048:function(e,t,n){var r=n(9781),i=n(3353),a=n(3070),o=n(9670),s=n(5656),l=n(1956);t.f=r&&!i?Object.defineProperties:function(e,t){o(e);var n,r=s(t),i=l(t),u=i.length,c=0;while(u>c)a.f(e,n=i[c++],r[n]);return e}},3070:function(e,t,n){var r=n(9781),i=n(4664),a=n(3353),o=n(9670),s=n(4948),l=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,d="enumerable",h="configurable",f="writable";t.f=r?a?function(e,t,n){if(o(e),t=s(t),o(n),"function"===typeof e&&"prototype"===t&&"value"in n&&f in n&&!n[f]){var r=c(e,t);r&&r[f]&&(e[t]=n.value,n={configurable:h in n?n[h]:r[h],enumerable:d in n?n[d]:r[d],writable:!1})}return u(e,t,n)}:u:function(e,t,n){if(o(e),t=s(t),o(n),i)try{return u(e,t,n)}catch(r){}if("get"in n||"set"in n)throw l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},1236:function(e,t,n){var r=n(9781),i=n(6916),a=n(5296),o=n(9114),s=n(5656),l=n(4948),u=n(2597),c=n(4664),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=s(e),t=l(t),c)try{return d(e,t)}catch(n){}if(u(e,t))return o(!i(a.f,e,t),e[t])}},8006:function(e,t,n){var r=n(6324),i=n(748),a=i.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,a)}},5181:function(e,t){t.f=Object.getOwnPropertySymbols},7976:function(e,t,n){var r=n(1702);e.exports=r({}.isPrototypeOf)},6324:function(e,t,n){var r=n(1702),i=n(2597),a=n(5656),o=n(1318).indexOf,s=n(3501),l=r([].push);e.exports=function(e,t){var n,r=a(e),u=0,c=[];for(n in r)!i(s,n)&&i(r,n)&&l(c,n);while(t.length>u)i(r,n=t[u++])&&(~o(c,n)||l(c,n));return c}},1956:function(e,t,n){var r=n(6324),i=n(748);e.exports=Object.keys||function(e){return r(e,i)}},5296:function(e,t){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);t.f=i?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},7674:function(e,t,n){var r=n(1702),i=n(9670),a=n(6077);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),e(n,[]),t=n instanceof Array}catch(o){}return function(n,r){return i(n),a(r),t?e(n,r):n.__proto__=r,n}}():void 0)},2140:function(e,t,n){var r=n(6916),i=n(614),a=n(111),o=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&i(n=e.toString)&&!a(s=r(n,e)))return s;if(i(n=e.valueOf)&&!a(s=r(n,e)))return s;if("string"!==t&&i(n=e.toString)&&!a(s=r(n,e)))return s;throw o("Can't convert object to primitive value")}},3887:function(e,t,n){var r=n(5005),i=n(1702),a=n(8006),o=n(5181),s=n(9670),l=i([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=a.f(s(e)),n=o.f;return n?l(t,n(e)):t}},2153:function(e,t,n){var r=n(3070).f;e.exports=function(e,t,n){n in e||r(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},4488:function(e){var t=TypeError;e.exports=function(e){if(void 0==e)throw t("Can't call method on "+e);return e}},6200:function(e,t,n){var r=n(2309),i=n(9711),a=r("keys");e.exports=function(e){return a[e]||(a[e]=i(e))}},5465:function(e,t,n){var r=n(2474),i=n(3072),a="__core-js_shared__",o=r[a]||i(a,{});e.exports=o},2309:function(e,t,n){var r=n(1913),i=n(5465);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.23.1",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.1/LICENSE",source:"https://github.com/zloirock/core-js"})},1400:function(e,t,n){var r=n(9303),i=Math.max,a=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):a(n,t)}},5656:function(e,t,n){var r=n(8361),i=n(4488);e.exports=function(e){return r(i(e))}},9303:function(e,t,n){var r=n(4758);e.exports=function(e){var t=+e;return t!==t||0===t?0:r(t)}},7466:function(e,t,n){var r=n(9303),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},7908:function(e,t,n){var r=n(4488),i=Object;e.exports=function(e){return i(r(e))}},7593:function(e,t,n){var r=n(6916),i=n(111),a=n(2190),o=n(8173),s=n(2140),l=n(5112),u=TypeError,c=l("toPrimitive");e.exports=function(e,t){if(!i(e)||a(e))return e;var n,l=o(e,c);if(l){if(void 0===t&&(t="default"),n=r(l,e,t),!i(n)||a(n))return n;throw u("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},4948:function(e,t,n){var r=n(7593),i=n(2190);e.exports=function(e){var t=r(e,"string");return i(t)?t:t+""}},1694:function(e,t,n){var r=n(5112),i=r("toStringTag"),a={};a[i]="z",e.exports="[object z]"===String(a)},1340:function(e,t,n){var r=n(648),i=String;e.exports=function(e){if("Symbol"===r(e))throw TypeError("Cannot convert a Symbol value to a string");return i(e)}},6330:function(e){var t=String;e.exports=function(e){try{return t(e)}catch(n){return"Object"}}},9711:function(e,t,n){var r=n(1702),i=0,a=Math.random(),o=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++i+a,36)}},3307:function(e,t,n){var r=n(133);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(e,t,n){var r=n(9781),i=n(7293);e.exports=r&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},5112:function(e,t,n){var r=n(2474),i=n(2309),a=n(2597),o=n(9711),s=n(133),l=n(3307),u=i("wks"),c=r.Symbol,d=c&&c["for"],h=l?c:c&&c.withoutSetter||o;e.exports=function(e){if(!a(u,e)||!s&&"string"!=typeof u[e]){var t="Symbol."+e;s&&a(c,e)?u[e]=c[e]:u[e]=l&&d?d(t):h(t)}return u[e]}},9191:function(e,t,n){"use strict";var r=n(5005),i=n(2597),a=n(8880),o=n(7976),s=n(7674),l=n(9920),u=n(2153),c=n(9587),d=n(6277),h=n(8340),f=n(7741),p=n(2914),m=n(9781),v=n(1913);e.exports=function(e,t,n,g){var y="stackTraceLimit",b=g?2:1,x=e.split("."),w=x[x.length-1],_=r.apply(null,x);if(_){var C=_.prototype;if(!v&&i(C,"cause")&&delete C.cause,!n)return _;var S=r("Error"),N=t((function(e,t){var n=d(g?t:e,void 0),r=g?new _(e):new _;return void 0!==n&&a(r,"message",n),p&&a(r,"stack",f(r.stack,2)),this&&o(C,this)&&c(r,this,N),arguments.length>b&&h(r,arguments[b]),r}));if(N.prototype=C,"Error"!==w?s?s(N,S):l(N,S,{name:!0}):m&&y in _&&(u(N,_,y),u(N,_,"prepareStackTrace")),l(N,_),!v)try{C.name!==w&&a(C,"name",w),C.constructor=N}catch(k){}return N}}},6699:function(e,t,n){"use strict";var r=n(2109),i=n(1318).includes,a=n(7293),o=n(1223),s=a((function(){return!Array(1).includes()}));r({target:"Array",proto:!0,forced:s},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("includes")},1703:function(e,t,n){var r=n(2109),i=n(2474),a=n(2104),o=n(9191),s="WebAssembly",l=i[s],u=7!==Error("e",{cause:7}).cause,c=function(e,t){var n={};n[e]=o(e,t,u),r({global:!0,constructor:!0,arity:1,forced:u},n)},d=function(e,t){if(l&&l[e]){var n={};n[e]=o(s+"."+e,t,u),r({target:s,stat:!0,constructor:!0,arity:1,forced:u},n)}};c("Error",(function(e){return function(t){return a(e,this,arguments)}})),c("EvalError",(function(e){return function(t){return a(e,this,arguments)}})),c("RangeError",(function(e){return function(t){return a(e,this,arguments)}})),c("ReferenceError",(function(e){return function(t){return a(e,this,arguments)}})),c("SyntaxError",(function(e){return function(t){return a(e,this,arguments)}})),c("TypeError",(function(e){return function(t){return a(e,this,arguments)}})),c("URIError",(function(e){return function(t){return a(e,this,arguments)}})),d("CompileError",(function(e){return function(t){return a(e,this,arguments)}})),d("LinkError",(function(e){return function(t){return a(e,this,arguments)}})),d("RuntimeError",(function(e){return function(t){return a(e,this,arguments)}}))},3776:function(e,t,n){var r;(function(i){"use strict";var a,o,s,l=9e15,u=1e9,c="0123456789abcdef",d="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",h="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",f={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-l,maxE:l,crypto:!1},p=!0,m="[DecimalError] ",v=m+"Invalid argument: ",g=m+"Precision limit exceeded",y=m+"crypto unavailable",b="[object Decimal]",x=Math.floor,w=Math.pow,_=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,C=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,S=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,N=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,k=1e7,E=7,M=9007199254740991,O=d.length-1,D=h.length-1,T={toStringTag:b};function A(e){var t,n,r,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)r=e[t]+"",n=E-r.length,n&&(a+=H(n)),a+=r;o=e[t],r=o+"",n=E-r.length,n&&(a+=H(n))}else if(0===o)return"0";for(;o%10===0;)o/=10;return a+o}function I(e,t,n){if(e!==~~e||e<t||e>n)throw Error(v+e)}function $(e,t,n,r){var i,a,o,s;for(a=e[0];a>=10;a/=10)--t;return--t<0?(t+=E,i=0):(i=Math.ceil((t+1)/E),t%=E),a=w(10,E-t),s=e[i]%a|0,null==r?t<3?(0==t?s=s/100|0:1==t&&(s=s/10|0),o=n<4&&99999==s||n>3&&49999==s||5e4==s||0==s):o=(n<4&&s+1==a||n>3&&s+1==a/2)&&(e[i+1]/a/100|0)==w(10,t-2)-1||(s==a/2||0==s)&&0==(e[i+1]/a/100|0):t<4?(0==t?s=s/1e3|0:1==t?s=s/100|0:2==t&&(s=s/10|0),o=(r||n<4)&&9999==s||!r&&n>3&&4999==s):o=((r||n<4)&&s+1==a||!r&&n>3&&s+1==a/2)&&(e[i+1]/a/1e3|0)==w(10,t-3)-1,o}function P(e,t,n){for(var r,i,a=[0],o=0,s=e.length;o<s;){for(i=a.length;i--;)a[i]*=t;for(a[0]+=c.indexOf(e.charAt(o++)),r=0;r<a.length;r++)a[r]>n-1&&(void 0===a[r+1]&&(a[r+1]=0),a[r+1]+=a[r]/n|0,a[r]%=n)}return a.reverse()}function j(e,t){var n,r,i;if(t.isZero())return t;r=t.d.length,r<32?(n=Math.ceil(r/3),i=(1/te(4,n)).toString()):(n=16,i="2.3283064365386962890625e-10"),e.precision+=n,t=ee(e,1,t.times(i),new e(1));for(var a=n;a--;){var o=t.times(t);t=o.times(o).minus(o).times(8).plus(1)}return e.precision-=n,t}T.absoluteValue=T.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),B(e)},T.ceil=function(){return B(new this.constructor(this),this.e+1,2)},T.clampedTo=T.clamp=function(e,t){var n,r=this,i=r.constructor;if(e=new i(e),t=new i(t),!e.s||!t.s)return new i(NaN);if(e.gt(t))throw Error(v+t);return n=r.cmp(e),n<0?e:r.cmp(t)>0?t:new i(r)},T.comparedTo=T.cmp=function(e){var t,n,r,i,a=this,o=a.d,s=(e=new a.constructor(e)).d,l=a.s,u=e.s;if(!o||!s)return l&&u?l!==u?l:o===s?0:!o^l<0?1:-1:NaN;if(!o[0]||!s[0])return o[0]?l:s[0]?-u:0;if(l!==u)return l;if(a.e!==e.e)return a.e>e.e^l<0?1:-1;for(r=o.length,i=s.length,t=0,n=r<i?r:i;t<n;++t)if(o[t]!==s[t])return o[t]>s[t]^l<0?1:-1;return r===i?0:r>i^l<0?1:-1},T.cosine=T.cos=function(){var e,t,n=this,r=n.constructor;return n.d?n.d[0]?(e=r.precision,t=r.rounding,r.precision=e+Math.max(n.e,n.sd())+E,r.rounding=1,n=j(r,ne(r,n)),r.precision=e,r.rounding=t,B(2==s||3==s?n.neg():n,e,t,!0)):new r(1):new r(NaN)},T.cubeRoot=T.cbrt=function(){var e,t,n,r,i,a,o,s,l,u,c=this,d=c.constructor;if(!c.isFinite()||c.isZero())return new d(c);for(p=!1,a=c.s*w(c.s*c,1/3),a&&Math.abs(a)!=1/0?r=new d(a.toString()):(n=A(c.d),e=c.e,(a=(e-n.length+1)%3)&&(n+=1==a||-2==a?"0":"00"),a=w(n,1/3),e=x((e+1)/3)-(e%3==(e<0?-1:2)),a==1/0?n="5e"+e:(n=a.toExponential(),n=n.slice(0,n.indexOf("e")+1)+e),r=new d(n),r.s=c.s),o=(e=d.precision)+3;;)if(s=r,l=s.times(s).times(s),u=l.plus(c),r=F(u.plus(c).times(s),u.plus(l),o+2,1),A(s.d).slice(0,o)===(n=A(r.d)).slice(0,o)){if(n=n.slice(o-3,o+1),"9999"!=n&&(i||"4999"!=n)){+n&&(+n.slice(1)||"5"!=n.charAt(0))||(B(r,e+1,1),t=!r.times(r).times(r).eq(c));break}if(!i&&(B(s,e+1,0),s.times(s).times(s).eq(c))){r=s;break}o+=4,i=1}return p=!0,B(r,e,d.rounding,t)},T.decimalPlaces=T.dp=function(){var e,t=this.d,n=NaN;if(t){if(e=t.length-1,n=(e-x(this.e/E))*E,e=t[e],e)for(;e%10==0;e/=10)n--;n<0&&(n=0)}return n},T.dividedBy=T.div=function(e){return F(this,new this.constructor(e))},T.dividedToIntegerBy=T.divToInt=function(e){var t=this,n=t.constructor;return B(F(t,new n(e),0,1,1),n.precision,n.rounding)},T.equals=T.eq=function(e){return 0===this.cmp(e)},T.floor=function(){return B(new this.constructor(this),this.e+1,3)},T.greaterThan=T.gt=function(e){return this.cmp(e)>0},T.greaterThanOrEqualTo=T.gte=function(e){var t=this.cmp(e);return 1==t||0===t},T.hyperbolicCosine=T.cosh=function(){var e,t,n,r,i,a=this,o=a.constructor,s=new o(1);if(!a.isFinite())return new o(a.s?1/0:NaN);if(a.isZero())return s;n=o.precision,r=o.rounding,o.precision=n+Math.max(a.e,a.sd())+4,o.rounding=1,i=a.d.length,i<32?(e=Math.ceil(i/3),t=(1/te(4,e)).toString()):(e=16,t="2.3283064365386962890625e-10"),a=ee(o,1,a.times(t),new o(1),!0);for(var l,u=e,c=new o(8);u--;)l=a.times(a),a=s.minus(l.times(c.minus(l.times(c))));return B(a,o.precision=n,o.rounding=r,!0)},T.hyperbolicSine=T.sinh=function(){var e,t,n,r,i=this,a=i.constructor;if(!i.isFinite()||i.isZero())return new a(i);if(t=a.precision,n=a.rounding,a.precision=t+Math.max(i.e,i.sd())+4,a.rounding=1,r=i.d.length,r<3)i=ee(a,2,i,i,!0);else{e=1.4*Math.sqrt(r),e=e>16?16:0|e,i=i.times(1/te(5,e)),i=ee(a,2,i,i,!0);for(var o,s=new a(5),l=new a(16),u=new a(20);e--;)o=i.times(i),i=i.times(s.plus(o.times(l.times(o).plus(u))))}return a.precision=t,a.rounding=n,B(i,t,n,!0)},T.hyperbolicTangent=T.tanh=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+7,r.rounding=1,F(n.sinh(),n.cosh(),r.precision=e,r.rounding=t)):new r(n.s)},T.inverseCosine=T.acos=function(){var e,t=this,n=t.constructor,r=t.abs().cmp(1),i=n.precision,a=n.rounding;return-1!==r?0===r?t.isNeg()?V(n,i,a):new n(0):new n(NaN):t.isZero()?V(n,i+4,a).times(.5):(n.precision=i+6,n.rounding=1,t=t.asin(),e=V(n,i+4,a).times(.5),n.precision=i,n.rounding=a,e.minus(t))},T.inverseHyperbolicCosine=T.acosh=function(){var e,t,n=this,r=n.constructor;return n.lte(1)?new r(n.eq(1)?0:NaN):n.isFinite()?(e=r.precision,t=r.rounding,r.precision=e+Math.max(Math.abs(n.e),n.sd())+4,r.rounding=1,p=!1,n=n.times(n).minus(1).sqrt().plus(n),p=!0,r.precision=e,r.rounding=t,n.ln()):new r(n)},T.inverseHyperbolicSine=T.asinh=function(){var e,t,n=this,r=n.constructor;return!n.isFinite()||n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+2*Math.max(Math.abs(n.e),n.sd())+6,r.rounding=1,p=!1,n=n.times(n).plus(1).sqrt().plus(n),p=!0,r.precision=e,r.rounding=t,n.ln())},T.inverseHyperbolicTangent=T.atanh=function(){var e,t,n,r,i=this,a=i.constructor;return i.isFinite()?i.e>=0?new a(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(e=a.precision,t=a.rounding,r=i.sd(),Math.max(r,e)<2*-i.e-1?B(new a(i),e,t,!0):(a.precision=n=r-i.e,i=F(i.plus(1),new a(1).minus(i),n+e,1),a.precision=e+4,a.rounding=1,i=i.ln(),a.precision=e,a.rounding=t,i.times(.5))):new a(NaN)},T.inverseSine=T.asin=function(){var e,t,n,r,i=this,a=i.constructor;return i.isZero()?new a(i):(t=i.abs().cmp(1),n=a.precision,r=a.rounding,-1!==t?0===t?(e=V(a,n+4,r).times(.5),e.s=i.s,e):new a(NaN):(a.precision=n+6,a.rounding=1,i=i.div(new a(1).minus(i.times(i)).sqrt().plus(1)).atan(),a.precision=n,a.rounding=r,i.times(2)))},T.inverseTangent=T.atan=function(){var e,t,n,r,i,a,o,s,l,u=this,c=u.constructor,d=c.precision,h=c.rounding;if(u.isFinite()){if(u.isZero())return new c(u);if(u.abs().eq(1)&&d+4<=D)return o=V(c,d+4,h).times(.25),o.s=u.s,o}else{if(!u.s)return new c(NaN);if(d+4<=D)return o=V(c,d+4,h).times(.5),o.s=u.s,o}for(c.precision=s=d+10,c.rounding=1,n=Math.min(28,s/E+2|0),e=n;e;--e)u=u.div(u.times(u).plus(1).sqrt().plus(1));for(p=!1,t=Math.ceil(s/E),r=1,l=u.times(u),o=new c(u),i=u;-1!==e;)if(i=i.times(l),a=o.minus(i.div(r+=2)),i=i.times(l),o=a.plus(i.div(r+=2)),void 0!==o.d[t])for(e=t;o.d[e]===a.d[e]&&e--;);return n&&(o=o.times(2<<n-1)),p=!0,B(o,c.precision=d,c.rounding=h,!0)},T.isFinite=function(){return!!this.d},T.isInteger=T.isInt=function(){return!!this.d&&x(this.e/E)>this.d.length-2},T.isNaN=function(){return!this.s},T.isNegative=T.isNeg=function(){return this.s<0},T.isPositive=T.isPos=function(){return this.s>0},T.isZero=function(){return!!this.d&&0===this.d[0]},T.lessThan=T.lt=function(e){return this.cmp(e)<0},T.lessThanOrEqualTo=T.lte=function(e){return this.cmp(e)<1},T.logarithm=T.log=function(e){var t,n,r,i,a,o,s,l,u=this,c=u.constructor,d=c.precision,h=c.rounding,f=5;if(null==e)e=new c(10),t=!0;else{if(e=new c(e),n=e.d,e.s<0||!n||!n[0]||e.eq(1))return new c(NaN);t=e.eq(10)}if(n=u.d,u.s<0||!n||!n[0]||u.eq(1))return new c(n&&!n[0]?-1/0:1!=u.s?NaN:n?0:1/0);if(t)if(n.length>1)a=!0;else{for(i=n[0];i%10===0;)i/=10;a=1!==i}if(p=!1,s=d+f,o=K(u,s),r=t?R(c,s+10):K(e,s),l=F(o,r,s,1),$(l.d,i=d,h))do{if(s+=10,o=K(u,s),r=t?R(c,s+10):K(e,s),l=F(o,r,s,1),!a){+A(l.d).slice(i+1,i+15)+1==1e14&&(l=B(l,d+1,0));break}}while($(l.d,i+=10,h));return p=!0,B(l,d,h)},T.minus=T.sub=function(e){var t,n,r,i,a,o,s,l,u,c,d,h,f=this,m=f.constructor;if(e=new m(e),!f.d||!e.d)return f.s&&e.s?f.d?e.s=-e.s:e=new m(e.d||f.s!==e.s?f:NaN):e=new m(NaN),e;if(f.s!=e.s)return e.s=-e.s,f.plus(e);if(u=f.d,h=e.d,s=m.precision,l=m.rounding,!u[0]||!h[0]){if(h[0])e.s=-e.s;else{if(!u[0])return new m(3===l?-0:0);e=new m(f)}return p?B(e,s,l):e}if(n=x(e.e/E),c=x(f.e/E),u=u.slice(),a=c-n,a){for(d=a<0,d?(t=u,a=-a,o=h.length):(t=h,n=c,o=u.length),r=Math.max(Math.ceil(s/E),o)+2,a>r&&(a=r,t.length=1),t.reverse(),r=a;r--;)t.push(0);t.reverse()}else{for(r=u.length,o=h.length,d=r<o,d&&(o=r),r=0;r<o;r++)if(u[r]!=h[r]){d=u[r]<h[r];break}a=0}for(d&&(t=u,u=h,h=t,e.s=-e.s),o=u.length,r=h.length-o;r>0;--r)u[o++]=0;for(r=h.length;r>a;){if(u[--r]<h[r]){for(i=r;i&&0===u[--i];)u[i]=k-1;--u[i],u[r]+=k}u[r]-=h[r]}for(;0===u[--o];)u.pop();for(;0===u[0];u.shift())--n;return u[0]?(e.d=u,e.e=z(u,n),p?B(e,s,l):e):new m(3===l?-0:0)},T.modulo=T.mod=function(e){var t,n=this,r=n.constructor;return e=new r(e),!n.d||!e.s||e.d&&!e.d[0]?new r(NaN):!e.d||n.d&&!n.d[0]?B(new r(n),r.precision,r.rounding):(p=!1,9==r.modulo?(t=F(n,e.abs(),0,3,1),t.s*=e.s):t=F(n,e,0,r.modulo,1),t=t.times(e),p=!0,n.minus(t))},T.naturalExponential=T.exp=function(){return G(this)},T.naturalLogarithm=T.ln=function(){return K(this)},T.negated=T.neg=function(){var e=new this.constructor(this);return e.s=-e.s,B(e)},T.plus=T.add=function(e){var t,n,r,i,a,o,s,l,u,c,d=this,h=d.constructor;if(e=new h(e),!d.d||!e.d)return d.s&&e.s?d.d||(e=new h(e.d||d.s===e.s?d:NaN)):e=new h(NaN),e;if(d.s!=e.s)return e.s=-e.s,d.minus(e);if(u=d.d,c=e.d,s=h.precision,l=h.rounding,!u[0]||!c[0])return c[0]||(e=new h(d)),p?B(e,s,l):e;if(a=x(d.e/E),r=x(e.e/E),u=u.slice(),i=a-r,i){for(i<0?(n=u,i=-i,o=c.length):(n=c,r=a,o=u.length),a=Math.ceil(s/E),o=a>o?a+1:o+1,i>o&&(i=o,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for(o=u.length,i=c.length,o-i<0&&(i=o,n=c,c=u,u=n),t=0;i;)t=(u[--i]=u[i]+c[i]+t)/k|0,u[i]%=k;for(t&&(u.unshift(t),++r),o=u.length;0==u[--o];)u.pop();return e.d=u,e.e=z(u,r),p?B(e,s,l):e},T.precision=T.sd=function(e){var t,n=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(v+e);return n.d?(t=q(n.d),e&&n.e+1>t&&(t=n.e+1)):t=NaN,t},T.round=function(){var e=this,t=e.constructor;return B(new t(e),e.e+1,t.rounding)},T.sine=T.sin=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+Math.max(n.e,n.sd())+E,r.rounding=1,n=Q(r,ne(r,n)),r.precision=e,r.rounding=t,B(s>2?n.neg():n,e,t,!0)):new r(NaN)},T.squareRoot=T.sqrt=function(){var e,t,n,r,i,a,o=this,s=o.d,l=o.e,u=o.s,c=o.constructor;if(1!==u||!s||!s[0])return new c(!u||u<0&&(!s||s[0])?NaN:s?o:1/0);for(p=!1,u=Math.sqrt(+o),0==u||u==1/0?(t=A(s),(t.length+l)%2==0&&(t+="0"),u=Math.sqrt(t),l=x((l+1)/2)-(l<0||l%2),u==1/0?t="5e"+l:(t=u.toExponential(),t=t.slice(0,t.indexOf("e")+1)+l),r=new c(t)):r=new c(u.toString()),n=(l=c.precision)+3;;)if(a=r,r=a.plus(F(o,a,n+2,1)).times(.5),A(a.d).slice(0,n)===(t=A(r.d)).slice(0,n)){if(t=t.slice(n-3,n+1),"9999"!=t&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(B(r,l+1,1),e=!r.times(r).eq(o));break}if(!i&&(B(a,l+1,0),a.times(a).eq(o))){r=a;break}n+=4,i=1}return p=!0,B(r,l,c.rounding,e)},T.tangent=T.tan=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+10,r.rounding=1,n=n.sin(),n.s=1,n=F(n,new r(1).minus(n.times(n)).sqrt(),e+10,0),r.precision=e,r.rounding=t,B(2==s||4==s?n.neg():n,e,t,!0)):new r(NaN)},T.times=T.mul=function(e){var t,n,r,i,a,o,s,l,u,c=this,d=c.constructor,h=c.d,f=(e=new d(e)).d;if(e.s*=c.s,!h||!h[0]||!f||!f[0])return new d(!e.s||h&&!h[0]&&!f||f&&!f[0]&&!h?NaN:h&&f?0*e.s:e.s/0);for(n=x(c.e/E)+x(e.e/E),l=h.length,u=f.length,l<u&&(a=h,h=f,f=a,o=l,l=u,u=o),a=[],o=l+u,r=o;r--;)a.push(0);for(r=u;--r>=0;){for(t=0,i=l+r;i>r;)s=a[i]+f[r]*h[i-r-1]+t,a[i--]=s%k|0,t=s/k|0;a[i]=(a[i]+t)%k|0}for(;!a[--o];)a.pop();return t?++n:a.shift(),e.d=a,e.e=z(a,n),p?B(e,d.precision,d.rounding):e},T.toBinary=function(e,t){return re(this,2,e,t)},T.toDecimalPlaces=T.toDP=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(I(e,0,u),void 0===t?t=r.rounding:I(t,0,8),B(n,e+n.e+1,t))},T.toExponential=function(e,t){var n,r=this,i=r.constructor;return void 0===e?n=L(r,!0):(I(e,0,u),void 0===t?t=i.rounding:I(t,0,8),r=B(new i(r),e+1,t),n=L(r,!0,e+1)),r.isNeg()&&!r.isZero()?"-"+n:n},T.toFixed=function(e,t){var n,r,i=this,a=i.constructor;return void 0===e?n=L(i):(I(e,0,u),void 0===t?t=a.rounding:I(t,0,8),r=B(new a(i),e+i.e+1,t),n=L(r,!1,e+r.e+1)),i.isNeg()&&!i.isZero()?"-"+n:n},T.toFraction=function(e){var t,n,r,i,a,o,s,l,u,c,d,h,f=this,m=f.d,g=f.constructor;if(!m)return new g(f);if(u=n=new g(1),r=l=new g(0),t=new g(r),a=t.e=q(m)-f.e-1,o=a%E,t.d[0]=w(10,o<0?E+o:o),null==e)e=a>0?t:u;else{if(s=new g(e),!s.isInt()||s.lt(u))throw Error(v+s);e=s.gt(t)?a>0?t:u:s}for(p=!1,s=new g(A(m)),c=g.precision,g.precision=a=m.length*E*2;;){if(d=F(s,t,0,1,1),i=n.plus(d.times(r)),1==i.cmp(e))break;n=r,r=i,i=u,u=l.plus(d.times(i)),l=i,i=t,t=s.minus(d.times(i)),s=i}return i=F(e.minus(n),r,0,1,1),l=l.plus(i.times(u)),n=n.plus(i.times(r)),l.s=u.s=f.s,h=F(u,r,a,1).minus(f).abs().cmp(F(l,n,a,1).minus(f).abs())<1?[u,r]:[l,n],g.precision=c,p=!0,h},T.toHexadecimal=T.toHex=function(e,t){return re(this,16,e,t)},T.toNearest=function(e,t){var n=this,r=n.constructor;if(n=new r(n),null==e){if(!n.d)return n;e=new r(1),t=r.rounding}else{if(e=new r(e),void 0===t?t=r.rounding:I(t,0,8),!n.d)return e.s?n:e;if(!e.d)return e.s&&(e.s=n.s),e}return e.d[0]?(p=!1,n=F(n,e,0,t,1).times(e),p=!0,B(n)):(e.s=n.s,n=e),n},T.toNumber=function(){return+this},T.toOctal=function(e,t){return re(this,8,e,t)},T.toPower=T.pow=function(e){var t,n,r,i,a,o,s=this,l=s.constructor,u=+(e=new l(e));if(!s.d||!e.d||!s.d[0]||!e.d[0])return new l(w(+s,u));if(s=new l(s),s.eq(1))return s;if(r=l.precision,a=l.rounding,e.eq(1))return B(s,r,a);if(t=x(e.e/E),t>=e.d.length-1&&(n=u<0?-u:u)<=M)return i=U(l,s,n,r),e.s<0?new l(1).div(i):B(i,r,a);if(o=s.s,o<0){if(t<e.d.length-1)return new l(NaN);if(0==(1&e.d[t])&&(o=1),0==s.e&&1==s.d[0]&&1==s.d.length)return s.s=o,s}return n=w(+s,u),t=0!=n&&isFinite(n)?new l(n+"").e:x(u*(Math.log("0."+A(s.d))/Math.LN10+s.e+1)),t>l.maxE+1||t<l.minE-1?new l(t>0?o/0:0):(p=!1,l.rounding=s.s=1,n=Math.min(12,(t+"").length),i=G(e.times(K(s,r+n)),r),i.d&&(i=B(i,r+5,1),$(i.d,r,a)&&(t=r+10,i=B(G(e.times(K(s,t+n)),t),t+5,1),+A(i.d).slice(r+1,r+15)+1==1e14&&(i=B(i,r+1,0)))),i.s=o,p=!0,l.rounding=a,B(i,r,a))},T.toPrecision=function(e,t){var n,r=this,i=r.constructor;return void 0===e?n=L(r,r.e<=i.toExpNeg||r.e>=i.toExpPos):(I(e,1,u),void 0===t?t=i.rounding:I(t,0,8),r=B(new i(r),e,t),n=L(r,e<=r.e||r.e<=i.toExpNeg,e)),r.isNeg()&&!r.isZero()?"-"+n:n},T.toSignificantDigits=T.toSD=function(e,t){var n=this,r=n.constructor;return void 0===e?(e=r.precision,t=r.rounding):(I(e,1,u),void 0===t?t=r.rounding:I(t,0,8)),B(new r(n),e,t)},T.toString=function(){var e=this,t=e.constructor,n=L(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()&&!e.isZero()?"-"+n:n},T.truncated=T.trunc=function(){return B(new this.constructor(this),this.e+1,1)},T.valueOf=T.toJSON=function(){var e=this,t=e.constructor,n=L(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()?"-"+n:n};var F=function(){function e(e,t,n){var r,i=0,a=e.length;for(e=e.slice();a--;)r=e[a]*t+i,e[a]=r%n|0,i=r/n|0;return i&&e.unshift(i),e}function t(e,t,n,r){var i,a;if(n!=r)a=n>r?1:-1;else for(i=a=0;i<n;i++)if(e[i]!=t[i]){a=e[i]>t[i]?1:-1;break}return a}function n(e,t,n,r){for(var i=0;n--;)e[n]-=i,i=e[n]<t[n]?1:0,e[n]=i*r+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,i,a,s,l,u){var c,d,h,f,p,m,v,g,y,b,w,_,C,S,N,M,O,D,T,A,I=r.constructor,$=r.s==i.s?1:-1,P=r.d,j=i.d;if(!P||!P[0]||!j||!j[0])return new I(r.s&&i.s&&(P?!j||P[0]!=j[0]:j)?P&&0==P[0]||!j?0*$:$/0:NaN);for(u?(p=1,d=r.e-i.e):(u=k,p=E,d=x(r.e/p)-x(i.e/p)),T=j.length,O=P.length,y=new I($),b=y.d=[],h=0;j[h]==(P[h]||0);h++);if(j[h]>(P[h]||0)&&d--,null==a?(S=a=I.precision,s=I.rounding):S=l?a+(r.e-i.e)+1:a,S<0)b.push(1),m=!0;else{if(S=S/p+2|0,h=0,1==T){for(f=0,j=j[0],S++;(h<O||f)&&S--;h++)N=f*u+(P[h]||0),b[h]=N/j|0,f=N%j|0;m=f||h<O}else{for(f=u/(j[0]+1)|0,f>1&&(j=e(j,f,u),P=e(P,f,u),T=j.length,O=P.length),M=T,w=P.slice(0,T),_=w.length;_<T;)w[_++]=0;A=j.slice(),A.unshift(0),D=j[0],j[1]>=u/2&&++D;do{f=0,c=t(j,w,T,_),c<0?(C=w[0],T!=_&&(C=C*u+(w[1]||0)),f=C/D|0,f>1?(f>=u&&(f=u-1),v=e(j,f,u),g=v.length,_=w.length,c=t(v,w,g,_),1==c&&(f--,n(v,T<g?A:j,g,u))):(0==f&&(c=f=1),v=j.slice()),g=v.length,g<_&&v.unshift(0),n(w,v,_,u),-1==c&&(_=w.length,c=t(j,w,T,_),c<1&&(f++,n(w,T<_?A:j,_,u))),_=w.length):0===c&&(f++,w=[0]),b[h++]=f,c&&w[0]?w[_++]=P[M]||0:(w=[P[M]],_=1)}while((M++<O||void 0!==w[0])&&S--);m=void 0!==w[0]}b[0]||b.shift()}if(1==p)y.e=d,o=m;else{for(h=1,f=b[0];f>=10;f/=10)h++;y.e=h+d*p-1,B(y,l?a+y.e+1:a,s,m)}return y}}();function B(e,t,n,r){var i,a,o,s,l,u,c,d,h,f=e.constructor;e:if(null!=t){if(d=e.d,!d)return e;for(i=1,s=d[0];s>=10;s/=10)i++;if(a=t-i,a<0)a+=E,o=t,c=d[h=0],l=c/w(10,i-o-1)%10|0;else if(h=Math.ceil((a+1)/E),s=d.length,h>=s){if(!r)break e;for(;s++<=h;)d.push(0);c=l=0,i=1,a%=E,o=a-E+1}else{for(c=s=d[h],i=1;s>=10;s/=10)i++;a%=E,o=a-E+i,l=o<0?0:c/w(10,i-o-1)%10|0}if(r=r||t<0||void 0!==d[h+1]||(o<0?c:c%w(10,i-o-1)),u=n<4?(l||r)&&(0==n||n==(e.s<0?3:2)):l>5||5==l&&(4==n||r||6==n&&(a>0?o>0?c/w(10,i-o):0:d[h-1])%10&1||n==(e.s<0?8:7)),t<1||!d[0])return d.length=0,u?(t-=e.e+1,d[0]=w(10,(E-t%E)%E),e.e=-t||0):d[0]=e.e=0,e;if(0==a?(d.length=h,s=1,h--):(d.length=h+1,s=w(10,E-a),d[h]=o>0?(c/w(10,i-o)%w(10,o)|0)*s:0),u)for(;;){if(0==h){for(a=1,o=d[0];o>=10;o/=10)a++;for(o=d[0]+=s,s=1;o>=10;o/=10)s++;a!=s&&(e.e++,d[0]==k&&(d[0]=1));break}if(d[h]+=s,d[h]!=k)break;d[h--]=0,s=1}for(a=d.length;0===d[--a];)d.pop()}return p&&(e.e>f.maxE?(e.d=null,e.e=NaN):e.e<f.minE&&(e.e=0,e.d=[0])),e}function L(e,t,n){if(!e.isFinite())return X(e);var r,i=e.e,a=A(e.d),o=a.length;return t?(n&&(r=n-o)>0?a=a.charAt(0)+"."+a.slice(1)+H(r):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(e.e<0?"e":"e+")+e.e):i<0?(a="0."+H(-i-1)+a,n&&(r=n-o)>0&&(a+=H(r))):i>=o?(a+=H(i+1-o),n&&(r=n-i-1)>0&&(a=a+"."+H(r))):((r=i+1)<o&&(a=a.slice(0,r)+"."+a.slice(r)),n&&(r=n-o)>0&&(i+1===o&&(a+="."),a+=H(r))),a}function z(e,t){var n=e[0];for(t*=E;n>=10;n/=10)t++;return t}function R(e,t,n){if(t>O)throw p=!0,n&&(e.precision=n),Error(g);return B(new e(d),t,1,!0)}function V(e,t,n){if(t>D)throw Error(g);return B(new e(h),t,n,!0)}function q(e){var t=e.length-1,n=t*E+1;if(t=e[t],t){for(;t%10==0;t/=10)n--;for(t=e[0];t>=10;t/=10)n++}return n}function H(e){for(var t="";e--;)t+="0";return t}function U(e,t,n,r){var i,a=new e(1),o=Math.ceil(r/E+4);for(p=!1;;){if(n%2&&(a=a.times(t),ie(a.d,o)&&(i=!0)),n=x(n/2),0===n){n=a.d.length-1,i&&0===a.d[n]&&++a.d[n];break}t=t.times(t),ie(t.d,o)}return p=!0,a}function W(e){return 1&e.d[e.d.length-1]}function Y(e,t,n){for(var r,i=new e(t[0]),a=0;++a<t.length;){if(r=new e(t[a]),!r.s){i=r;break}i[n](r)&&(i=r)}return i}function G(e,t){var n,r,i,a,o,s,l,u=0,c=0,d=0,h=e.constructor,f=h.rounding,m=h.precision;if(!e.d||!e.d[0]||e.e>17)return new h(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:NaN);null==t?(p=!1,l=m):l=t,s=new h(.03125);while(e.e>-2)e=e.times(s),d+=5;for(r=Math.log(w(2,d))/Math.LN10*2+5|0,l+=r,n=a=o=new h(1),h.precision=l;;){if(a=B(a.times(e),l,1),n=n.times(++c),s=o.plus(F(a,n,l,1)),A(s.d).slice(0,l)===A(o.d).slice(0,l)){i=d;while(i--)o=B(o.times(o),l,1);if(null!=t)return h.precision=m,o;if(!(u<3&&$(o.d,l-r,f,u)))return B(o,h.precision=m,f,p=!0);h.precision=l+=10,n=a=s=new h(1),c=0,u++}o=s}}function K(e,t){var n,r,i,a,o,s,l,u,c,d,h,f=1,m=10,v=e,g=v.d,y=v.constructor,b=y.rounding,x=y.precision;if(v.s<0||!g||!g[0]||!v.e&&1==g[0]&&1==g.length)return new y(g&&!g[0]?-1/0:1!=v.s?NaN:g?0:v);if(null==t?(p=!1,c=x):c=t,y.precision=c+=m,n=A(g),r=n.charAt(0),!(Math.abs(a=v.e)<15e14))return u=R(y,c+2,x).times(a+""),v=K(new y(r+"."+n.slice(1)),c-m).plus(u),y.precision=x,null==t?B(v,x,b,p=!0):v;while(r<7&&1!=r||1==r&&n.charAt(1)>3)v=v.times(e),n=A(v.d),r=n.charAt(0),f++;for(a=v.e,r>1?(v=new y("0."+n),a++):v=new y(r+"."+n.slice(1)),d=v,l=o=v=F(v.minus(1),v.plus(1),c,1),h=B(v.times(v),c,1),i=3;;){if(o=B(o.times(h),c,1),u=l.plus(F(o,new y(i),c,1)),A(u.d).slice(0,c)===A(l.d).slice(0,c)){if(l=l.times(2),0!==a&&(l=l.plus(R(y,c+2,x).times(a+""))),l=F(l,new y(f),c,1),null!=t)return y.precision=x,l;if(!$(l.d,c-m,b,s))return B(l,y.precision=x,b,p=!0);y.precision=c+=m,u=o=v=F(d.minus(1),d.plus(1),c,1),h=B(v.times(v),c,1),i=s=1}l=u,i+=2}}function X(e){return String(e.s*e.s/0)}function Z(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);r++);for(i=t.length;48===t.charCodeAt(i-1);--i);if(t=t.slice(r,i),t){if(i-=r,e.e=n=n-r-1,e.d=[],r=(n+1)%E,n<0&&(r+=E),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=E;r<i;)e.d.push(+t.slice(r,r+=E));t=t.slice(r),r=E-t.length}else r-=i;for(;r--;)t+="0";e.d.push(+t),p&&(e.e>e.constructor.maxE?(e.d=null,e.e=NaN):e.e<e.constructor.minE&&(e.e=0,e.d=[0]))}else e.e=0,e.d=[0];return e}function J(e,t){var n,r,i,o,s,l,u,c,d;if(t.indexOf("_")>-1){if(t=t.replace(/(\d)_(?=\d)/g,"$1"),N.test(t))return Z(e,t)}else if("Infinity"===t||"NaN"===t)return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(C.test(t))n=16,t=t.toLowerCase();else if(_.test(t))n=2;else{if(!S.test(t))throw Error(v+t);n=8}for(o=t.search(/p/i),o>0?(u=+t.slice(o+1),t=t.substring(2,o)):t=t.slice(2),o=t.indexOf("."),s=o>=0,r=e.constructor,s&&(t=t.replace(".",""),l=t.length,o=l-o,i=U(r,new r(n),o,2*o)),c=P(t,n,k),d=c.length-1,o=d;0===c[o];--o)c.pop();return o<0?new r(0*e.s):(e.e=z(c,d),e.d=c,p=!1,s&&(e=F(e,i,4*l)),u&&(e=e.times(Math.abs(u)<54?w(2,u):a.pow(2,u))),p=!0,e)}function Q(e,t){var n,r=t.d.length;if(r<3)return t.isZero()?t:ee(e,2,t,t);n=1.4*Math.sqrt(r),n=n>16?16:0|n,t=t.times(1/te(5,n)),t=ee(e,2,t,t);for(var i,a=new e(5),o=new e(16),s=new e(20);n--;)i=t.times(t),t=t.times(a.plus(i.times(o.times(i).minus(s))));return t}function ee(e,t,n,r,i){var a,o,s,l,u=e.precision,c=Math.ceil(u/E);for(p=!1,l=n.times(n),s=new e(r);;){if(o=F(s.times(l),new e(t++*t++),u,1),s=i?r.plus(o):r.minus(o),r=F(o.times(l),new e(t++*t++),u,1),o=s.plus(r),void 0!==o.d[c]){for(a=c;o.d[a]===s.d[a]&&a--;);if(-1==a)break}a=s,s=r,r=o,o=a}return p=!0,o.d.length=c+1,o}function te(e,t){var n=e;while(--t)n*=e;return n}function ne(e,t){var n,r=t.s<0,i=V(e,e.precision,1),a=i.times(.5);if(t=t.abs(),t.lte(a))return s=r?4:1,t;if(n=t.divToInt(i),n.isZero())s=r?3:2;else{if(t=t.minus(n.times(i)),t.lte(a))return s=W(n)?r?2:3:r?4:1,t;s=W(n)?r?1:4:r?3:2}return t.minus(i).abs()}function re(e,t,n,r){var i,a,s,l,d,h,f,p,m,v=e.constructor,g=void 0!==n;if(g?(I(n,1,u),void 0===r?r=v.rounding:I(r,0,8)):(n=v.precision,r=v.rounding),e.isFinite()){for(f=L(e),s=f.indexOf("."),g?(i=2,16==t?n=4*n-3:8==t&&(n=3*n-2)):i=t,s>=0&&(f=f.replace(".",""),m=new v(1),m.e=f.length-s,m.d=P(L(m),10,i),m.e=m.d.length),p=P(f,10,i),a=d=p.length;0==p[--d];)p.pop();if(p[0]){if(s<0?a--:(e=new v(e),e.d=p,e.e=a,e=F(e,m,n,r,0,i),p=e.d,a=e.e,h=o),s=p[n],l=i/2,h=h||void 0!==p[n+1],h=r<4?(void 0!==s||h)&&(0===r||r===(e.s<0?3:2)):s>l||s===l&&(4===r||h||6===r&&1&p[n-1]||r===(e.s<0?8:7)),p.length=n,h)for(;++p[--n]>i-1;)p[n]=0,n||(++a,p.unshift(1));for(d=p.length;!p[d-1];--d);for(s=0,f="";s<d;s++)f+=c.charAt(p[s]);if(g){if(d>1)if(16==t||8==t){for(s=16==t?4:3,--d;d%s;d++)f+="0";for(p=P(f,i,t),d=p.length;!p[d-1];--d);for(s=1,f="1.";s<d;s++)f+=c.charAt(p[s])}else f=f.charAt(0)+"."+f.slice(1);f=f+(a<0?"p":"p+")+a}else if(a<0){for(;++a;)f="0"+f;f="0."+f}else if(++a>d)for(a-=d;a--;)f+="0";else a<d&&(f=f.slice(0,a)+"."+f.slice(a))}else f=g?"0p+0":"0";f=(16==t?"0x":2==t?"0b":8==t?"0o":"")+f}else f=X(e);return e.s<0?"-"+f:f}function ie(e,t){if(e.length>t)return e.length=t,!0}function ae(e){return new this(e).abs()}function oe(e){return new this(e).acos()}function se(e){return new this(e).acosh()}function le(e,t){return new this(e).plus(t)}function ue(e){return new this(e).asin()}function ce(e){return new this(e).asinh()}function de(e){return new this(e).atan()}function he(e){return new this(e).atanh()}function fe(e,t){e=new this(e),t=new this(t);var n,r=this.precision,i=this.rounding,a=r+4;return e.s&&t.s?e.d||t.d?!t.d||e.isZero()?(n=t.s<0?V(this,r,i):new this(0),n.s=e.s):!e.d||t.isZero()?(n=V(this,a,1).times(.5),n.s=e.s):t.s<0?(this.precision=a,this.rounding=1,n=this.atan(F(e,t,a,1)),t=V(this,a,1),this.precision=r,this.rounding=i,n=e.s<0?n.minus(t):n.plus(t)):n=this.atan(F(e,t,a,1)):(n=V(this,a,1).times(t.s>0?.25:.75),n.s=e.s):n=new this(NaN),n}function pe(e){return new this(e).cbrt()}function me(e){return B(e=new this(e),e.e+1,2)}function ve(e,t,n){return new this(e).clamp(t,n)}function ge(e){if(!e||"object"!==typeof e)throw Error(m+"Object expected");var t,n,r,i=!0===e.defaults,a=["precision",1,u,"rounding",0,8,"toExpNeg",-l,0,"toExpPos",0,l,"maxE",0,l,"minE",-l,0,"modulo",0,9];for(t=0;t<a.length;t+=3)if(n=a[t],i&&(this[n]=f[n]),void 0!==(r=e[n])){if(!(x(r)===r&&r>=a[t+1]&&r<=a[t+2]))throw Error(v+n+": "+r);this[n]=r}if(n="crypto",i&&(this[n]=f[n]),void 0!==(r=e[n])){if(!0!==r&&!1!==r&&0!==r&&1!==r)throw Error(v+n+": "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error(y);this[n]=!0}else this[n]=!1}return this}function ye(e){return new this(e).cos()}function be(e){return new this(e).cosh()}function xe(e){var t,n,r;function i(e){var t,n,r,a=this;if(!(a instanceof i))return new i(e);if(a.constructor=i,Ne(e))return a.s=e.s,void(p?!e.d||e.e>i.maxE?(a.e=NaN,a.d=null):e.e<i.minE?(a.e=0,a.d=[0]):(a.e=e.e,a.d=e.d.slice()):(a.e=e.e,a.d=e.d?e.d.slice():e.d));if(r=typeof e,"number"===r){if(0===e)return a.s=1/e<0?-1:1,a.e=0,void(a.d=[0]);if(e<0?(e=-e,a.s=-1):a.s=1,e===~~e&&e<1e7){for(t=0,n=e;n>=10;n/=10)t++;return void(p?t>i.maxE?(a.e=NaN,a.d=null):t<i.minE?(a.e=0,a.d=[0]):(a.e=t,a.d=[e]):(a.e=t,a.d=[e]))}return 0*e!==0?(e||(a.s=NaN),a.e=NaN,void(a.d=null)):Z(a,e.toString())}if("string"!==r)throw Error(v+e);return 45===(n=e.charCodeAt(0))?(e=e.slice(1),a.s=-1):(43===n&&(e=e.slice(1)),a.s=1),N.test(e)?Z(a,e):J(a,e)}if(i.prototype=T,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.EUCLID=9,i.config=i.set=ge,i.clone=xe,i.isDecimal=Ne,i.abs=ae,i.acos=oe,i.acosh=se,i.add=le,i.asin=ue,i.asinh=ce,i.atan=de,i.atanh=he,i.atan2=fe,i.cbrt=pe,i.ceil=me,i.clamp=ve,i.cos=ye,i.cosh=be,i.div=we,i.exp=_e,i.floor=Ce,i.hypot=Se,i.ln=ke,i.log=Ee,i.log10=Oe,i.log2=Me,i.max=De,i.min=Te,i.mod=Ae,i.mul=Ie,i.pow=$e,i.random=Pe,i.round=je,i.sign=Fe,i.sin=Be,i.sinh=Le,i.sqrt=ze,i.sub=Re,i.sum=Ve,i.tan=qe,i.tanh=He,i.trunc=Ue,void 0===e&&(e={}),e&&!0!==e.defaults)for(r=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return i.config(e),i}function we(e,t){return new this(e).div(t)}function _e(e){return new this(e).exp()}function Ce(e){return B(e=new this(e),e.e+1,3)}function Se(){var e,t,n=new this(0);for(p=!1,e=0;e<arguments.length;)if(t=new this(arguments[e++]),t.d)n.d&&(n=n.plus(t.times(t)));else{if(t.s)return p=!0,new this(1/0);n=t}return p=!0,n.sqrt()}function Ne(e){return e instanceof a||e&&e.toStringTag===b||!1}function ke(e){return new this(e).ln()}function Ee(e,t){return new this(e).log(t)}function Me(e){return new this(e).log(2)}function Oe(e){return new this(e).log(10)}function De(){return Y(this,arguments,"lt")}function Te(){return Y(this,arguments,"gt")}function Ae(e,t){return new this(e).mod(t)}function Ie(e,t){return new this(e).mul(t)}function $e(e,t){return new this(e).pow(t)}function Pe(e){var t,n,r,i,a=0,o=new this(1),s=[];if(void 0===e?e=this.precision:I(e,1,u),r=Math.ceil(e/E),this.crypto)if(crypto.getRandomValues)for(t=crypto.getRandomValues(new Uint32Array(r));a<r;)i=t[a],i>=429e7?t[a]=crypto.getRandomValues(new Uint32Array(1))[0]:s[a++]=i%1e7;else{if(!crypto.randomBytes)throw Error(y);for(t=crypto.randomBytes(r*=4);a<r;)i=t[a]+(t[a+1]<<8)+(t[a+2]<<16)+((127&t[a+3])<<24),i>=214e7?crypto.randomBytes(4).copy(t,a):(s.push(i%1e7),a+=4);a=r/4}else for(;a<r;)s[a++]=1e7*Math.random()|0;for(r=s[--a],e%=E,r&&e&&(i=w(10,E-e),s[a]=(r/i|0)*i);0===s[a];a--)s.pop();if(a<0)n=0,s=[0];else{for(n=-1;0===s[0];n-=E)s.shift();for(r=1,i=s[0];i>=10;i/=10)r++;r<E&&(n-=E-r)}return o.e=n,o.d=s,o}function je(e){return B(e=new this(e),e.e+1,this.rounding)}function Fe(e){return e=new this(e),e.d?e.d[0]?e.s:0*e.s:e.s||NaN}function Be(e){return new this(e).sin()}function Le(e){return new this(e).sinh()}function ze(e){return new this(e).sqrt()}function Re(e,t){return new this(e).sub(t)}function Ve(){var e=0,t=arguments,n=new this(t[e]);for(p=!1;n.s&&++e<t.length;)n=n.plus(t[e]);return p=!0,B(n,this.precision,this.rounding)}function qe(e){return new this(e).tan()}function He(e){return new this(e).tanh()}function Ue(e){return B(e=new this(e),e.e+1,1)}a=xe(f),a.prototype.constructor=a,a["default"]=a.Decimal=a,d=new a(d),h=new a(h),r=function(){return a}.call(t,n,t,e),void 0===r||(e.exports=r)})()},9996:function(e){"use strict";var t=function(e){return n(e)&&!r(e)};function n(e){return!!e&&"object"===typeof e}function r(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||o(e)}var i="function"===typeof Symbol&&Symbol.for,a=i?Symbol.for("react.element"):60103;function o(e){return e.$$typeof===a}function s(e){return Array.isArray(e)?[]:{}}function l(e,n){var r=n&&!0===n.clone;return r&&t(e)?d(s(e),e,n):e}function u(e,n,r){var i=e.slice();return n.forEach((function(n,a){"undefined"===typeof i[a]?i[a]=l(n,r):t(n)?i[a]=d(e[a],n,r):-1===e.indexOf(n)&&i.push(l(n,r))})),i}function c(e,n,r){var i={};return t(e)&&Object.keys(e).forEach((function(t){i[t]=l(e[t],r)})),Object.keys(n).forEach((function(a){t(n[a])&&e[a]?i[a]=d(e[a],n[a],r):i[a]=l(n[a],r)})),i}function d(e,t,n){var r=Array.isArray(t),i=Array.isArray(e),a=n||{arrayMerge:u},o=r===i;if(o){if(r){var s=a.arrayMerge||u;return s(e,t,n)}return c(e,t,n)}return l(t,n)}d.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce((function(e,n){return d(e,n,t)}))};var h=d;e.exports=h},2268:function(e){"use strict";var t=e.exports={};t.isIE=function(e){function t(){var e=navigator.userAgent.toLowerCase();return-1!==e.indexOf("msie")||-1!==e.indexOf("trident")||-1!==e.indexOf(" edge/")}if(!t())return!1;if(!e)return!0;var n=function(){var e,t=3,n=document.createElement("div"),r=n.getElementsByTagName("i");do{n.innerHTML="\x3c!--[if gt IE "+ ++t+"]><i></i><![endif]--\x3e"}while(r[0]);return t>4?t:e}();return e===n},t.isLegacyOpera=function(){return!!window.opera}},7900:function(e){"use strict";var t=e.exports={};t.forEach=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n]);if(r)return r}}},8229:function(e,t,n){"use strict";var r=n(2268);e.exports=function(e){e=e||{};var t=e.reporter,n=e.batchProcessor,i=e.stateHandler.getState;if(!t)throw new Error("Missing required dependency: reporter.");function a(e,t){function n(){t(e)}if(r.isIE(8))i(e).object={proxy:n},e.attachEvent("onresize",n);else{var a=l(e);if(!a)throw new Error("Element is not detectable by this strategy.");a.contentDocument.defaultView.addEventListener("resize",n)}}function o(t){var n=e.important?" !important; ":"; ";return(t.join(n)+n).trim()}function s(e,a,s){s||(s=a,a=e,e=null),e=e||{};e.debug;function l(a,s){var l=o(["display: block","position: absolute","top: 0","left: 0","width: 100%","height: 100%","border: none","padding: 0","margin: 0","opacity: 0","z-index: -1000","pointer-events: none"]),u=!1,c=window.getComputedStyle(a),d=a.offsetWidth,h=a.offsetHeight;function f(){function n(){if("static"===c.position){a.style.setProperty("position","relative",e.important?"important":"");var n=function(t,n,r,i){function a(e){return e.replace(/[^-\d\.]/g,"")}var o=r[i];"auto"!==o&&"0"!==a(o)&&(t.warn("An element that is positioned static has style."+i+"="+o+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+i+" will be set to 0. Element: ",n),n.style.setProperty(i,"0",e.important?"important":""))};n(t,a,c,"top"),n(t,a,c,"right"),n(t,a,c,"bottom"),n(t,a,c,"left")}}function o(){function e(t,n){if(!t.contentDocument){var r=i(t);return r.checkForObjectDocumentTimeoutId&&window.clearTimeout(r.checkForObjectDocumentTimeoutId),void(r.checkForObjectDocumentTimeoutId=setTimeout((function(){r.checkForObjectDocumentTimeoutId=0,e(t,n)}),100))}n(t.contentDocument)}u||n();var t=this;e(t,(function(e){s(a)}))}""!==c.position&&(n(c),u=!0);var d=document.createElement("object");d.style.cssText=l,d.tabIndex=-1,d.type="text/html",d.setAttribute("aria-hidden","true"),d.onload=o,r.isIE()||(d.data="about:blank"),i(a)&&(a.appendChild(d),i(a).object=d,r.isIE()&&(d.data="about:blank"))}i(a).startSize={width:d,height:h},n?n.add(f):f()}r.isIE(8)?s(a):l(a,s)}function l(e){return i(e).object}function u(e){if(i(e)){var t=l(e);t&&(r.isIE(8)?e.detachEvent("onresize",t.proxy):e.removeChild(t),i(e).checkForObjectDocumentTimeoutId&&window.clearTimeout(i(e).checkForObjectDocumentTimeoutId),delete i(e).object)}}return{makeDetectable:s,addListener:a,uninstall:u}}},787:function(e,t,n){"use strict";var r=n(7900).forEach;e.exports=function(e){e=e||{};var t=e.reporter,n=e.batchProcessor,i=e.stateHandler.getState,a=(e.stateHandler.hasState,e.idHandler);if(!n)throw new Error("Missing required dependency: batchProcessor");if(!t)throw new Error("Missing required dependency: reporter.");var o=d(),s="erd_scroll_detection_scrollbar_style",l="erd_scroll_detection_container";function u(e){h(e,s,l)}function c(t){var n=e.important?" !important; ":"; ";return(t.join(n)+n).trim()}function d(){var e=500,t=500,n=document.createElement("div");n.style.cssText=c(["position: absolute","width: "+2*e+"px","height: "+2*t+"px","visibility: hidden","margin: 0","padding: 0"]);var r=document.createElement("div");r.style.cssText=c(["position: absolute","width: "+e+"px","height: "+t+"px","overflow: scroll","visibility: none","top: "+3*-e+"px","left: "+3*-t+"px","visibility: hidden","margin: 0","padding: 0"]),r.appendChild(n),document.body.insertBefore(r,document.body.firstChild);var i=e-r.clientWidth,a=t-r.clientHeight;return document.body.removeChild(r),{width:i,height:a}}function h(e,t,n){function r(n,r){r=r||function(t){e.head.appendChild(t)};var i=e.createElement("style");return i.innerHTML=n,i.id=t,r(i),i}if(!e.getElementById(t)){var i=n+"_animation",a=n+"_animation_active",o="/* Created by the element-resize-detector library. */\n";o+="."+n+" > div::-webkit-scrollbar { "+c(["display: none"])+" }\n\n",o+="."+a+" { "+c(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+i,"animation-name: "+i])+" }\n",o+="@-webkit-keyframes "+i+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n",o+="@keyframes "+i+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }",r(o)}}function f(e){e.className+=" "+l+"_animation_active"}function p(e,n,r){if(e.addEventListener)e.addEventListener(n,r);else{if(!e.attachEvent)return t.error("[scroll] Don't know how to add event listeners.");e.attachEvent("on"+n,r)}}function m(e,n,r){if(e.removeEventListener)e.removeEventListener(n,r);else{if(!e.detachEvent)return t.error("[scroll] Don't know how to remove event listeners.");e.detachEvent("on"+n,r)}}function v(e){return i(e).container.childNodes[0].childNodes[0].childNodes[0]}function g(e){return i(e).container.childNodes[0].childNodes[0].childNodes[1]}function y(e,t){var n=i(e).listeners;if(!n.push)throw new Error("Cannot add listener to an element that is not detectable.");i(e).listeners.push(t)}function b(e,s,u){function d(){if(e.debug){var n=Array.prototype.slice.call(arguments);if(n.unshift(a.get(s),"Scroll: "),t.log.apply)t.log.apply(null,n);else for(var r=0;r<n.length;r++)t.log(n[r])}}function h(e){function t(e){var t=e.getRootNode&&e.getRootNode().contains(e);return e===e.ownerDocument.body||e.ownerDocument.body.contains(e)||t}return!t(e)||null===window.getComputedStyle(e)}function m(e){var t=i(e).container.childNodes[0],n=window.getComputedStyle(t);return!n.width||-1===n.width.indexOf("px")}function y(){var e=window.getComputedStyle(s),t={};return t.position=e.position,t.width=s.offsetWidth,t.height=s.offsetHeight,t.top=e.top,t.right=e.right,t.bottom=e.bottom,t.left=e.left,t.widthCSS=e.width,t.heightCSS=e.height,t}function b(){var e=y();i(s).startSize={width:e.width,height:e.height},d("Element start size",i(s).startSize)}function x(){i(s).listeners=[]}function w(){if(d("storeStyle invoked."),i(s)){var e=y();i(s).style=e}else d("Aborting because element has been uninstalled")}function _(e,t,n){i(e).lastWidth=t,i(e).lastHeight=n}function C(e){return v(e).childNodes[0]}function S(){return 2*o.width+1}function N(){return 2*o.height+1}function k(e){return e+10+S()}function E(e){return e+10+N()}function M(e){return 2*e+S()}function O(e){return 2*e+N()}function D(e,t,n){var r=v(e),i=g(e),a=k(t),o=E(n),s=M(t),l=O(n);r.scrollLeft=a,r.scrollTop=o,i.scrollLeft=s,i.scrollTop=l}function T(){var e=i(s).container;if(!e){e=document.createElement("div"),e.className=l,e.style.cssText=c(["visibility: hidden","display: inline","width: 0px","height: 0px","z-index: -1","overflow: hidden","margin: 0","padding: 0"]),i(s).container=e,f(e),s.appendChild(e);var t=function(){i(s).onRendered&&i(s).onRendered()};p(e,"animationstart",t),i(s).onAnimationStart=t}return e}function A(){function n(){var n=i(s).style;if("static"===n.position){s.style.setProperty("position","relative",e.important?"important":"");var r=function(e,t,n,r){function i(e){return e.replace(/[^-\d\.]/g,"")}var a=n[r];"auto"!==a&&"0"!==i(a)&&(e.warn("An element that is positioned static has style."+r+"="+a+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+r+" will be set to 0. Element: ",t),t.style[r]=0)};r(t,s,n,"top"),r(t,s,n,"right"),r(t,s,n,"bottom"),r(t,s,n,"left")}}function r(e,t,n,r){return e=e?e+"px":"0",t=t?t+"px":"0",n=n?n+"px":"0",r=r?r+"px":"0",["left: "+e,"top: "+t,"right: "+r,"bottom: "+n]}if(d("Injecting elements"),i(s)){n();var a=i(s).container;a||(a=T());var u=o.width,h=o.height,f=c(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden","width: 100%","height: 100%","left: 0px","top: 0px"]),m=c(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden"].concat(r(-(1+u),-(1+h),-h,-u))),v=c(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),g=c(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),y=c(["position: absolute","left: 0","top: 0"]),b=c(["position: absolute","width: 200%","height: 200%"]),x=document.createElement("div"),w=document.createElement("div"),_=document.createElement("div"),C=document.createElement("div"),S=document.createElement("div"),N=document.createElement("div");x.dir="ltr",x.style.cssText=f,x.className=l,w.className=l,w.style.cssText=m,_.style.cssText=v,C.style.cssText=y,S.style.cssText=g,N.style.cssText=b,_.appendChild(C),S.appendChild(N),w.appendChild(_),w.appendChild(S),x.appendChild(w),a.appendChild(x),p(_,"scroll",k),p(S,"scroll",E),i(s).onExpandScroll=k,i(s).onShrinkScroll=E}else d("Aborting because element has been uninstalled");function k(){var e=i(s);e&&e.onExpand?e.onExpand():d("Aborting expand scroll handler: element has been uninstalled")}function E(){var e=i(s);e&&e.onShrink?e.onShrink():d("Aborting shrink scroll handler: element has been uninstalled")}}function I(){function o(t,n,r){var i=C(t),a=k(n),o=E(r);i.style.setProperty("width",a+"px",e.important?"important":""),i.style.setProperty("height",o+"px",e.important?"important":"")}function l(r){var l=s.offsetWidth,c=s.offsetHeight,h=l!==i(s).lastWidth||c!==i(s).lastHeight;d("Storing current size",l,c),_(s,l,c),n.add(0,(function(){if(h)if(i(s))if(u()){if(e.debug){var n=s.offsetWidth,r=s.offsetHeight;n===l&&r===c||t.warn(a.get(s),"Scroll: Size changed before updating detector elements.")}o(s,l,c)}else d("Aborting because element container has not been initialized");else d("Aborting because element has been uninstalled")})),n.add(1,(function(){i(s)?u()?D(s,l,c):d("Aborting because element container has not been initialized"):d("Aborting because element has been uninstalled")})),h&&r&&n.add(2,(function(){i(s)?u()?r():d("Aborting because element container has not been initialized"):d("Aborting because element has been uninstalled")}))}function u(){return!!i(s).container}function c(){function e(){return void 0===i(s).lastNotifiedWidth}d("notifyListenersIfNeeded invoked");var t=i(s);return e()&&t.lastWidth===t.startSize.width&&t.lastHeight===t.startSize.height?d("Not notifying: Size is the same as the start size, and there has been no notification yet."):t.lastWidth===t.lastNotifiedWidth&&t.lastHeight===t.lastNotifiedHeight?d("Not notifying: Size already notified"):(d("Current size not notified, notifying..."),t.lastNotifiedWidth=t.lastWidth,t.lastNotifiedHeight=t.lastHeight,void r(i(s).listeners,(function(e){e(s)})))}function h(){if(d("startanimation triggered."),m(s))d("Ignoring since element is still unrendered...");else{d("Element rendered.");var e=v(s),t=g(s);0!==e.scrollLeft&&0!==e.scrollTop&&0!==t.scrollLeft&&0!==t.scrollTop||(d("Scrollbars out of sync. Updating detector elements..."),l(c))}}function f(){d("Scroll detected."),m(s)?d("Scroll event fired while unrendered. Ignoring..."):l(c)}if(d("registerListenersAndPositionElements invoked."),i(s)){i(s).onRendered=h,i(s).onExpand=f,i(s).onShrink=f;var p=i(s).style;o(s,p.width,p.height)}else d("Aborting because element has been uninstalled")}function $(){if(d("finalizeDomMutation invoked."),i(s)){var e=i(s).style;_(s,e.width,e.height),D(s,e.width,e.height)}else d("Aborting because element has been uninstalled")}function P(){u(s)}function j(){d("Installing..."),x(),b(),n.add(0,w),n.add(1,A),n.add(2,I),n.add(3,$),n.add(4,P)}u||(u=s,s=e,e=null),e=e||{},d("Making detectable..."),h(s)?(d("Element is detached"),T(),d("Waiting until element is attached..."),i(s).onRendered=function(){d("Element is now attached"),j()}):j()}function x(e){var t=i(e);t&&(t.onExpandScroll&&m(v(e),"scroll",t.onExpandScroll),t.onShrinkScroll&&m(g(e),"scroll",t.onShrinkScroll),t.onAnimationStart&&m(t.container,"animationstart",t.onAnimationStart),t.container&&e.removeChild(t.container))}return u(window.document),{makeDetectable:b,addListener:y,uninstall:x,initDocument:u}}},3844:function(e,t,n){"use strict";var r=n(7900).forEach,i=n(8452),a=n(6199),o=n(5805),s=n(9799),l=n(1724),u=n(2268),c=n(8129),d=n(1931),h=n(8229),f=n(787);function p(e){return Array.isArray(e)||void 0!==e.length}function m(e){if(Array.isArray(e))return e;var t=[];return r(e,(function(e){t.push(e)})),t}function v(e){return e&&1===e.nodeType}function g(e,t,n){var r=e[t];return void 0!==r&&null!==r||void 0===n?r:n}e.exports=function(e){var t;if(e=e||{},e.idHandler)t={get:function(t){return e.idHandler.get(t,!0)},set:e.idHandler.set};else{var n=o(),y=s({idGenerator:n,stateHandler:d});t=y}var b=e.reporter;if(!b){var x=!1===b;b=l(x)}var w=g(e,"batchProcessor",c({reporter:b})),_={};_.callOnAdd=!!g(e,"callOnAdd",!0),_.debug=!!g(e,"debug",!1);var C,S=a(t),N=i({stateHandler:d}),k=g(e,"strategy","object"),E=g(e,"important",!1),M={reporter:b,batchProcessor:w,stateHandler:d,idHandler:t,important:E};if("scroll"===k&&(u.isLegacyOpera()?(b.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),k="object"):u.isIE(9)&&(b.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),k="object")),"scroll"===k)C=f(M);else{if("object"!==k)throw new Error("Invalid strategy name: "+k);C=h(M)}var O={};function D(e,n,i){function a(e){var t=S.get(e);r(t,(function(t){t(e)}))}function o(e,t,n){S.add(t,n),e&&n(t)}if(i||(i=n,n=e,e={}),!n)throw new Error("At least one element required.");if(!i)throw new Error("Listener required.");if(v(n))n=[n];else{if(!p(n))return b.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");n=m(n)}var s=0,l=g(e,"callOnAdd",_.callOnAdd),u=g(e,"onReady",(function(){})),c=g(e,"debug",_.debug);r(n,(function(e){d.getState(e)||(d.initState(e),t.set(e));var h=t.get(e);if(c&&b.log("Attaching listener to element",h,e),!N.isDetectable(e))return c&&b.log(h,"Not detectable."),N.isBusy(e)?(c&&b.log(h,"System busy making it detectable"),o(l,e,i),O[h]=O[h]||[],void O[h].push((function(){s++,s===n.length&&u()}))):(c&&b.log(h,"Making detectable..."),N.markBusy(e,!0),C.makeDetectable({debug:c,important:E},e,(function(e){if(c&&b.log(h,"onElementDetectable"),d.getState(e)){N.markAsDetectable(e),N.markBusy(e,!1),C.addListener(e,a),o(l,e,i);var t=d.getState(e);if(t&&t.startSize){var f=e.offsetWidth,p=e.offsetHeight;t.startSize.width===f&&t.startSize.height===p||a(e)}O[h]&&r(O[h],(function(e){e()}))}else c&&b.log(h,"Element uninstalled before being detectable.");delete O[h],s++,s===n.length&&u()})));c&&b.log(h,"Already detecable, adding listener."),o(l,e,i),s++})),s===n.length&&u()}function T(e){if(!e)return b.error("At least one element is required.");if(v(e))e=[e];else{if(!p(e))return b.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");e=m(e)}r(e,(function(e){S.removeAllListeners(e),C.uninstall(e),d.cleanState(e)}))}function A(e){C.initDocument&&C.initDocument(e)}return{listenTo:D,removeListener:S.removeListener,removeAllListeners:S.removeAllListeners,uninstall:T,initDocument:A}}},8452:function(e){"use strict";e.exports=function(e){var t=e.stateHandler.getState;function n(e){var n=t(e);return n&&!!n.isDetectable}function r(e){t(e).isDetectable=!0}function i(e){return!!t(e).busy}function a(e,n){t(e).busy=!!n}return{isDetectable:n,markAsDetectable:r,isBusy:i,markBusy:a}}},5805:function(e){"use strict";e.exports=function(){var e=1;function t(){return e++}return{generate:t}}},9799:function(e){"use strict";e.exports=function(e){var t=e.idGenerator,n=e.stateHandler.getState;function r(e){var t=n(e);return t&&void 0!==t.id?t.id:null}function i(e){var r=n(e);if(!r)throw new Error("setId required the element to have a resize detection state.");var i=t.generate();return r.id=i,i}return{get:r,set:i}}},6199:function(e){"use strict";e.exports=function(e){var t={};function n(n){var r=e.get(n);return void 0===r?[]:t[r]||[]}function r(n,r){var i=e.get(n);t[i]||(t[i]=[]),t[i].push(r)}function i(e,t){for(var r=n(e),i=0,a=r.length;i<a;++i)if(r[i]===t){r.splice(i,1);break}}function a(e){var t=n(e);t&&(t.length=0)}return{get:n,add:r,removeListener:i,removeAllListeners:a}}},1724:function(e){"use strict";e.exports=function(e){function t(){}var n={log:t,warn:t,error:t};if(!e&&window.console){var r=function(e,t){e[t]=function(){var e=console[t];if(e.apply)e.apply(console,arguments);else for(var n=0;n<arguments.length;n++)e(arguments[n])}};r(n,"log"),r(n,"warn"),r(n,"error")}return n}},1931:function(e){"use strict";var t="_erd";function n(e){return e[t]={},r(e)}function r(e){return e[t]}function i(e){delete e[t]}e.exports={initState:n,getState:r,cleanState:i}},7563:function(e){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=96)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,a,o,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),a&&(u._scopeId="data-v-"+a),o?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},96:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-button-group"},[e._t("default")],2)},i=[];r._withStripped=!0;var a={name:"ElButtonGroup"},o=a,s=n(0),l=Object(s["a"])(o,r,i,!1,null,null,null);l.options.__file="packages/button/src/button-group.vue";var u=l.exports;u.install=function(e){e.component(u.name,u)};t["default"]=u}})},6426:function(e){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=95)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,a,o,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),a&&(u._scopeId="data-v-"+a),o?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},95:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("button",{staticClass:"el-button",class:[e.type?"el-button--"+e.type:"",e.buttonSize?"el-button--"+e.buttonSize:"",{"is-disabled":e.buttonDisabled,"is-loading":e.loading,"is-plain":e.plain,"is-round":e.round,"is-circle":e.circle}],attrs:{disabled:e.buttonDisabled||e.loading,autofocus:e.autofocus,type:e.nativeType},on:{click:e.handleClick}},[e.loading?n("i",{staticClass:"el-icon-loading"}):e._e(),e.icon&&!e.loading?n("i",{class:e.icon}):e._e(),e.$slots.default?n("span",[e._t("default")],2):e._e()])},i=[];r._withStripped=!0;var a={name:"ElButton",inject:{elForm:{default:""},elFormItem:{default:""}},props:{type:{type:String,default:"default"},size:String,icon:{type:String,default:""},nativeType:{type:String,default:"button"},loading:Boolean,disabled:Boolean,plain:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},buttonSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},buttonDisabled:function(){return this.$options.propsData.hasOwnProperty("disabled")?this.disabled:(this.elForm||{}).disabled}},methods:{handleClick:function(e){this.$emit("click",e)}}},o=a,s=n(0),l=Object(s["a"])(o,r,i,!1,null,null,null);l.options.__file="packages/button/src/button.vue";var u=l.exports;u.install=function(e){e.component(u.name,u)};t["default"]=u}})},6276:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=60)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,a,o,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),a&&(u._scopeId="data-v-"+a),o?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},15:function(e,t){e.exports=n(7122)},18:function(e,t){e.exports=n(2626)},21:function(e,t){e.exports=n(167)},26:function(e,t){e.exports=n(3933)},3:function(e,t){e.exports=n(3104)},31:function(e,t){e.exports=n(8275)},40:function(e,t){e.exports=n(6583)},51:function(e,t){e.exports=n(1955)},6:function(e,t){e.exports=n(2084)},60:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["el-cascader-panel",e.border&&"is-bordered"],on:{keydown:e.handleKeyDown}},e._l(e.menus,(function(e,t){return n("cascader-menu",{key:t,ref:"menu",refInFor:!0,attrs:{index:t,nodes:e}})})),1)},i=[];r._withStripped=!0;var a,o,s=n(26),l=n.n(s),u=n(15),c=n.n(u),d=n(18),h=n.n(d),f=n(51),p=n.n(f),m=n(3),v=function(e){return e.stopPropagation()},g={inject:["panel"],components:{ElCheckbox:h.a,ElRadio:p.a},props:{node:{required:!0},nodeId:String},computed:{config:function(){return this.panel.config},isLeaf:function(){return this.node.isLeaf},isDisabled:function(){return this.node.isDisabled},checkedValue:function(){return this.panel.checkedValue},isChecked:function(){return this.node.isSameNode(this.checkedValue)},inActivePath:function(){return this.isInPath(this.panel.activePath)},inCheckedPath:function(){var e=this;return!!this.config.checkStrictly&&this.panel.checkedNodePaths.some((function(t){return e.isInPath(t)}))},value:function(){return this.node.getValueByOption()}},methods:{handleExpand:function(){var e=this,t=this.panel,n=this.node,r=this.isDisabled,i=this.config,a=i.multiple,o=i.checkStrictly;!o&&r||n.loading||(i.lazy&&!n.loaded?t.lazyLoad(n,(function(){var t=e.isLeaf;if(t||e.handleExpand(),a){var r=!!t&&n.checked;e.handleMultiCheckChange(r)}})):t.handleExpand(n))},handleCheckChange:function(){var e=this.panel,t=this.value,n=this.node;e.handleCheckChange(t),e.handleExpand(n)},handleMultiCheckChange:function(e){this.node.doCheck(e),this.panel.calculateMultiCheckedValue()},isInPath:function(e){var t=this.node,n=e[t.level-1]||{};return n.uid===t.uid},renderPrefix:function(e){var t=this.isLeaf,n=this.isChecked,r=this.config,i=r.checkStrictly,a=r.multiple;return a?this.renderCheckbox(e):i?this.renderRadio(e):t&&n?this.renderCheckIcon(e):null},renderPostfix:function(e){var t=this.node,n=this.isLeaf;return t.loading?this.renderLoadingIcon(e):n?null:this.renderExpandIcon(e)},renderCheckbox:function(e){var t=this.node,n=this.config,r=this.isDisabled,i={on:{change:this.handleMultiCheckChange},nativeOn:{}};return n.checkStrictly&&(i.nativeOn.click=v),e("el-checkbox",l()([{attrs:{value:t.checked,indeterminate:t.indeterminate,disabled:r}},i]))},renderRadio:function(e){var t=this.checkedValue,n=this.value,r=this.isDisabled;return Object(m["isEqual"])(n,t)&&(n=t),e("el-radio",{attrs:{value:t,label:n,disabled:r},on:{change:this.handleCheckChange},nativeOn:{click:v}},[e("span")])},renderCheckIcon:function(e){return e("i",{class:"el-icon-check el-cascader-node__prefix"})},renderLoadingIcon:function(e){return e("i",{class:"el-icon-loading el-cascader-node__postfix"})},renderExpandIcon:function(e){return e("i",{class:"el-icon-arrow-right el-cascader-node__postfix"})},renderContent:function(e){var t=this.panel,n=this.node,r=t.renderLabelFn,i=r?r({node:n,data:n.data}):null;return e("span",{class:"el-cascader-node__label"},[i||n.label])}},render:function(e){var t=this,n=this.inActivePath,r=this.inCheckedPath,i=this.isChecked,a=this.isLeaf,o=this.isDisabled,s=this.config,u=this.nodeId,c=s.expandTrigger,d=s.checkStrictly,h=s.multiple,f=!d&&o,p={on:{}};return"click"===c?p.on.click=this.handleExpand:(p.on.mouseenter=function(e){t.handleExpand(),t.$emit("expand",e)},p.on.focus=function(e){t.handleExpand(),t.$emit("expand",e)}),!a||o||d||h||(p.on.click=this.handleCheckChange),e("li",l()([{attrs:{role:"menuitem",id:u,"aria-expanded":n,tabindex:f?null:-1},class:{"el-cascader-node":!0,"is-selectable":d,"in-active-path":n,"in-checked-path":r,"is-active":i,"is-disabled":f}},p]),[this.renderPrefix(e),this.renderContent(e),this.renderPostfix(e)])}},y=g,b=n(0),x=Object(b["a"])(y,a,o,!1,null,null,null);x.options.__file="packages/cascader-panel/src/cascader-node.vue";var w,_,C=x.exports,S=n(6),N=n.n(S),k={name:"ElCascaderMenu",mixins:[N.a],inject:["panel"],components:{ElScrollbar:c.a,CascaderNode:C},props:{nodes:{type:Array,required:!0},index:Number},data:function(){return{activeNode:null,hoverTimer:null,id:Object(m["generateId"])()}},computed:{isEmpty:function(){return!this.nodes.length},menuId:function(){return"cascader-menu-"+this.id+"-"+this.index}},methods:{handleExpand:function(e){this.activeNode=e.target},handleMouseMove:function(e){var t=this.activeNode,n=this.hoverTimer,r=this.$refs.hoverZone;if(t&&r)if(t.contains(e.target)){clearTimeout(n);var i=this.$el.getBoundingClientRect(),a=i.left,o=e.clientX-a,s=this.$el,l=s.offsetWidth,u=s.offsetHeight,c=t.offsetTop,d=c+t.offsetHeight;r.innerHTML='\n <path style="pointer-events: auto;" fill="transparent" d="M'+o+" "+c+" L"+l+" 0 V"+c+' Z" />\n <path style="pointer-events: auto;" fill="transparent" d="M'+o+" "+d+" L"+l+" "+u+" V"+d+' Z" />\n '}else n||(this.hoverTimer=setTimeout(this.clearHoverZone,this.panel.config.hoverThreshold))},clearHoverZone:function(){var e=this.$refs.hoverZone;e&&(e.innerHTML="")},renderEmptyText:function(e){return e("div",{class:"el-cascader-menu__empty-text"},[this.t("el.cascader.noData")])},renderNodeList:function(e){var t=this.menuId,n=this.panel.isHoverMenu,r={on:{}};n&&(r.on.expand=this.handleExpand);var i=this.nodes.map((function(n,i){var a=n.hasChildren;return e("cascader-node",l()([{key:n.uid,attrs:{node:n,"node-id":t+"-"+i,"aria-haspopup":a,"aria-owns":a?t:null}},r]))}));return[].concat(i,[n?e("svg",{ref:"hoverZone",class:"el-cascader-menu__hover-zone"}):null])}},render:function(e){var t=this.isEmpty,n=this.menuId,r={nativeOn:{}};return this.panel.isHoverMenu&&(r.nativeOn.mousemove=this.handleMouseMove),e("el-scrollbar",l()([{attrs:{tag:"ul",role:"menu",id:n,"wrap-class":"el-cascader-menu__wrap","view-class":{"el-cascader-menu__list":!0,"is-empty":t}},class:"el-cascader-menu"},r]),[t?this.renderEmptyText(e):this.renderNodeList(e)])}},E=k,M=Object(b["a"])(E,w,_,!1,null,null,null);M.options.__file="packages/cascader-panel/src/cascader-menu.vue";var O=M.exports,D=n(21),T=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function A(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var I=0,$=function(){function e(t,n,r){A(this,e),this.data=t,this.config=n,this.parent=r||null,this.level=this.parent?this.parent.level+1:1,this.uid=I++,this.initState(),this.initChildren()}return e.prototype.initState=function(){var e=this.config,t=e.value,n=e.label;this.value=this.data[t],this.label=this.data[n],this.pathNodes=this.calculatePathNodes(),this.path=this.pathNodes.map((function(e){return e.value})),this.pathLabels=this.pathNodes.map((function(e){return e.label})),this.loading=!1,this.loaded=!1},e.prototype.initChildren=function(){var t=this,n=this.config,r=n.children,i=this.data[r];this.hasChildren=Array.isArray(i),this.children=(i||[]).map((function(r){return new e(r,n,t)}))},e.prototype.calculatePathNodes=function(){var e=[this],t=this.parent;while(t)e.unshift(t),t=t.parent;return e},e.prototype.getPath=function(){return this.path},e.prototype.getValue=function(){return this.value},e.prototype.getValueByOption=function(){return this.config.emitPath?this.getPath():this.getValue()},e.prototype.getText=function(e,t){return e?this.pathLabels.join(t):this.label},e.prototype.isSameNode=function(e){var t=this.getValueByOption();return this.config.multiple&&Array.isArray(e)?e.some((function(e){return Object(m["isEqual"])(e,t)})):Object(m["isEqual"])(e,t)},e.prototype.broadcast=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i="onParent"+Object(m["capitalize"])(e);this.children.forEach((function(t){t&&(t.broadcast.apply(t,[e].concat(n)),t[i]&&t[i].apply(t,n))}))},e.prototype.emit=function(e){var t=this.parent,n="onChild"+Object(m["capitalize"])(e);if(t){for(var r=arguments.length,i=Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];t[n]&&t[n].apply(t,i),t.emit.apply(t,[e].concat(i))}},e.prototype.onParentCheck=function(e){this.isDisabled||this.setCheckState(e)},e.prototype.onChildCheck=function(){var e=this.children,t=e.filter((function(e){return!e.isDisabled})),n=!!t.length&&t.every((function(e){return e.checked}));this.setCheckState(n)},e.prototype.setCheckState=function(e){var t=this.children.length,n=this.children.reduce((function(e,t){var n=t.checked?1:t.indeterminate?.5:0;return e+n}),0);this.checked=e,this.indeterminate=n!==t&&n>0},e.prototype.syncCheckState=function(e){var t=this.getValueByOption(),n=this.isSameNode(e,t);this.doCheck(n)},e.prototype.doCheck=function(e){this.checked!==e&&(this.config.checkStrictly?this.checked=e:(this.broadcast("check",e),this.setCheckState(e),this.emit("check")))},T(e,[{key:"isDisabled",get:function(){var e=this.data,t=this.parent,n=this.config,r=n.disabled,i=n.checkStrictly;return e[r]||!i&&t&&t.isDisabled}},{key:"isLeaf",get:function(){var e=this.data,t=this.loaded,n=this.hasChildren,r=this.children,i=this.config,a=i.lazy,o=i.leaf;if(a){var s=Object(D["isDef"])(e[o])?e[o]:!!t&&!r.length;return this.hasChildren=!s,s}return!n}}]),e}(),P=$;function j(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var F=function e(t,n){return t.reduce((function(t,r){return r.isLeaf?t.push(r):(!n&&t.push(r),t=t.concat(e(r.children,n))),t}),[])},B=function(){function e(t,n){j(this,e),this.config=n,this.initNodes(t)}return e.prototype.initNodes=function(e){var t=this;e=Object(m["coerceTruthyValueToArray"])(e),this.nodes=e.map((function(e){return new P(e,t.config)})),this.flattedNodes=this.getFlattedNodes(!1,!1),this.leafNodes=this.getFlattedNodes(!0,!1)},e.prototype.appendNode=function(e,t){var n=new P(e,this.config,t),r=t?t.children:this.nodes;r.push(n)},e.prototype.appendNodes=function(e,t){var n=this;e=Object(m["coerceTruthyValueToArray"])(e),e.forEach((function(e){return n.appendNode(e,t)}))},e.prototype.getNodes=function(){return this.nodes},e.prototype.getFlattedNodes=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e?this.leafNodes:this.flattedNodes;return t?n:F(this.nodes,e)},e.prototype.getNodeByValue=function(e){var t=this.getFlattedNodes(!1,!this.config.lazy).filter((function(t){return Object(m["valueEquals"])(t.path,e)||t.value===e}));return t&&t.length?t[0]:null},e}(),L=B,z=n(9),R=n.n(z),V=n(40),q=n.n(V),H=n(31),U=n.n(H),W=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Y=q.a.keys,G={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:m["noop"],value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},K=function(e){return!e.getAttribute("aria-owns")},X=function(e,t){var n=e.parentNode;if(n){var r=n.querySelectorAll('.el-cascader-node[tabindex="-1"]'),i=Array.prototype.indexOf.call(r,e);return r[i+t]||null}return null},Z=function(e,t){if(e){var n=e.id.split("-");return Number(n[n.length-2])}},J=function(e){e&&(e.focus(),!K(e)&&e.click())},Q=function(e){if(e){var t=e.querySelector("input");t?t.click():K(e)&&e.click()}},ee={name:"ElCascaderPanel",components:{CascaderMenu:O},props:{value:{},options:Array,props:Object,border:{type:Boolean,default:!0},renderLabel:Function},provide:function(){return{panel:this}},data:function(){return{checkedValue:null,checkedNodePaths:[],store:[],menus:[],activePath:[],loadCount:0}},computed:{config:function(){return R()(W({},G),this.props||{})},multiple:function(){return this.config.multiple},checkStrictly:function(){return this.config.checkStrictly},leafOnly:function(){return!this.checkStrictly},isHoverMenu:function(){return"hover"===this.config.expandTrigger},renderLabelFn:function(){return this.renderLabel||this.$scopedSlots.default}},watch:{value:function(){this.syncCheckedValue(),this.checkStrictly&&this.calculateCheckedNodePaths()},options:{handler:function(){this.initStore()},immediate:!0,deep:!0},checkedValue:function(e){Object(m["isEqual"])(e,this.value)||(this.checkStrictly&&this.calculateCheckedNodePaths(),this.$emit("input",e),this.$emit("change",e))}},mounted:function(){this.isEmptyValue(this.value)||this.syncCheckedValue()},methods:{initStore:function(){var e=this.config,t=this.options;e.lazy&&Object(m["isEmpty"])(t)?this.lazyLoad():(this.store=new L(t,e),this.menus=[this.store.getNodes()],this.syncMenuState())},syncCheckedValue:function(){var e=this.value,t=this.checkedValue;Object(m["isEqual"])(e,t)||(this.activePath=[],this.checkedValue=e,this.syncMenuState())},syncMenuState:function(){var e=this.multiple,t=this.checkStrictly;this.syncActivePath(),e&&this.syncMultiCheckState(),t&&this.calculateCheckedNodePaths(),this.$nextTick(this.scrollIntoView)},syncMultiCheckState:function(){var e=this,t=this.getFlattedNodes(this.leafOnly);t.forEach((function(t){t.syncCheckState(e.checkedValue)}))},isEmptyValue:function(e){var t=this.multiple,n=this.config,r=n.emitPath;return!(!t&&!r)&&Object(m["isEmpty"])(e)},syncActivePath:function(){var e=this,t=this.store,n=this.multiple,r=this.activePath,i=this.checkedValue;if(Object(m["isEmpty"])(r))if(this.isEmptyValue(i))this.activePath=[],this.menus=[t.getNodes()];else{var a=n?i[0]:i,o=this.getNodeByValue(a)||{},s=(o.pathNodes||[]).slice(0,-1);this.expandNodes(s)}else{var l=r.map((function(t){return e.getNodeByValue(t.getValue())}));this.expandNodes(l)}},expandNodes:function(e){var t=this;e.forEach((function(e){return t.handleExpand(e,!0)}))},calculateCheckedNodePaths:function(){var e=this,t=this.checkedValue,n=this.multiple,r=n?Object(m["coerceTruthyValueToArray"])(t):[t];this.checkedNodePaths=r.map((function(t){var n=e.getNodeByValue(t);return n?n.pathNodes:[]}))},handleKeyDown:function(e){var t=e.target,n=e.keyCode;switch(n){case Y.up:var r=X(t,-1);J(r);break;case Y.down:var i=X(t,1);J(i);break;case Y.left:var a=this.$refs.menu[Z(t)-1];if(a){var o=a.$el.querySelector('.el-cascader-node[aria-expanded="true"]');J(o)}break;case Y.right:var s=this.$refs.menu[Z(t)+1];if(s){var l=s.$el.querySelector('.el-cascader-node[tabindex="-1"]');J(l)}break;case Y.enter:Q(t);break;case Y.esc:case Y.tab:this.$emit("close");break;default:return}},handleExpand:function(e,t){var n=this.activePath,r=e.level,i=n.slice(0,r-1),a=this.menus.slice(0,r);if(e.isLeaf||(i.push(e),a.push(e.children)),this.activePath=i,this.menus=a,!t){var o=i.map((function(e){return e.getValue()})),s=n.map((function(e){return e.getValue()}));Object(m["valueEquals"])(o,s)||(this.$emit("active-item-change",o),this.$emit("expand-change",o))}},handleCheckChange:function(e){this.checkedValue=e},lazyLoad:function(e,t){var n=this,r=this.config;e||(e=e||{root:!0,level:0},this.store=new L([],r),this.menus=[this.store.getNodes()]),e.loading=!0;var i=function(r){var i=e.root?null:e;if(r&&r.length&&n.store.appendNodes(r,i),e.loading=!1,e.loaded=!0,Array.isArray(n.checkedValue)){var a=n.checkedValue[n.loadCount++],o=n.config.value,s=n.config.leaf;if(Array.isArray(r)&&r.filter((function(e){return e[o]===a})).length>0){var l=n.store.getNodeByValue(a);l.data[s]||n.lazyLoad(l,(function(){n.handleExpand(l)})),n.loadCount===n.checkedValue.length&&n.$parent.computePresentText()}}t&&t(r)};r.lazyLoad(e,i)},calculateMultiCheckedValue:function(){this.checkedValue=this.getCheckedNodes(this.leafOnly).map((function(e){return e.getValueByOption()}))},scrollIntoView:function(){if(!this.$isServer){var e=this.$refs.menu||[];e.forEach((function(e){var t=e.$el;if(t){var n=t.querySelector(".el-scrollbar__wrap"),r=t.querySelector(".el-cascader-node.is-active")||t.querySelector(".el-cascader-node.in-active-path");U()(n,r)}}))}},getNodeByValue:function(e){return this.store.getNodeByValue(e)},getFlattedNodes:function(e){var t=!this.config.lazy;return this.store.getFlattedNodes(e,t)},getCheckedNodes:function(e){var t=this.checkedValue,n=this.multiple;if(n){var r=this.getFlattedNodes(e);return r.filter((function(e){return e.checked}))}return this.isEmptyValue(t)?[]:[this.getNodeByValue(t)]},clearCheckedNodes:function(){var e=this.config,t=this.leafOnly,n=e.multiple,r=e.emitPath;n?(this.getCheckedNodes(t).filter((function(e){return!e.isDisabled})).forEach((function(e){return e.doCheck(!1)})),this.calculateMultiCheckedValue()):this.checkedValue=r?[]:null}}},te=ee,ne=Object(b["a"])(te,r,i,!1,null,null,null);ne.options.__file="packages/cascader-panel/src/cascader-panel.vue";var re=ne.exports;re.install=function(e){e.component(re.name,re)};t["default"]=re},9:function(e,t){e.exports=n(1615)}})},3235:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=92)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,a,o,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),a&&(u._scopeId="data-v-"+a),o?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},4:function(e,t){e.exports=n(2477)},92:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-checkbox-group",attrs:{role:"group","aria-label":"checkbox-group"}},[e._t("default")],2)},i=[];r._withStripped=!0;var a=n(4),o=n.n(a),s={name:"ElCheckboxGroup",componentName:"ElCheckboxGroup",mixins:[o.a],inject:{elFormItem:{default:""}},props:{value:{},disabled:Boolean,min:Number,max:Number,size:String,fill:String,textColor:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxGroupSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size}},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",[e])}}},l=s,u=n(0),c=Object(u["a"])(l,r,i,!1,null,null,null);c.options.__file="packages/checkbox/src/checkbox-group.vue";var d=c.exports;d.install=function(e){e.component(d.name,d)};t["default"]=d}})},2626:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=90)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,a,o,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),a&&(u._scopeId="data-v-"+a),o?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},4:function(e,t){e.exports=n(2477)},90:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"el-checkbox",class:[e.border&&e.checkboxSize?"el-checkbox--"+e.checkboxSize:"",{"is-disabled":e.isDisabled},{"is-bordered":e.border},{"is-checked":e.isChecked}],attrs:{id:e.id}},[n("span",{staticClass:"el-checkbox__input",class:{"is-disabled":e.isDisabled,"is-checked":e.isChecked,"is-indeterminate":e.indeterminate,"is-focus":e.focus},attrs:{tabindex:!!e.indeterminate&&0,role:!!e.indeterminate&&"checkbox","aria-checked":!!e.indeterminate&&"mixed"}},[n("span",{staticClass:"el-checkbox__inner"}),e.trueLabel||e.falseLabel?n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox","aria-hidden":e.indeterminate?"true":"false",name:e.name,disabled:e.isDisabled,"true-value":e.trueLabel,"false-value":e.falseLabel},domProps:{checked:Array.isArray(e.model)?e._i(e.model,null)>-1:e._q(e.model,e.trueLabel)},on:{change:[function(t){var n=e.model,r=t.target,i=r.checked?e.trueLabel:e.falseLabel;if(Array.isArray(n)){var a=null,o=e._i(n,a);r.checked?o<0&&(e.model=n.concat([a])):o>-1&&(e.model=n.slice(0,o).concat(n.slice(o+1)))}else e.model=i},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox","aria-hidden":e.indeterminate?"true":"false",disabled:e.isDisabled,name:e.name},domProps:{value:e.label,checked:Array.isArray(e.model)?e._i(e.model,e.label)>-1:e.model},on:{change:[function(t){var n=e.model,r=t.target,i=!!r.checked;if(Array.isArray(n)){var a=e.label,o=e._i(n,a);r.checked?o<0&&(e.model=n.concat([a])):o>-1&&(e.model=n.slice(0,o).concat(n.slice(o+1)))}else e.model=i},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}})]),e.$slots.default||e.label?n("span",{staticClass:"el-checkbox__label"},[e._t("default"),e.$slots.default?e._e():[e._v(e._s(e.label))]],2):e._e()])},i=[];r._withStripped=!0;var a=n(4),o=n.n(a),s={name:"ElCheckbox",mixins:[o.a],inject:{elForm:{default:""},elFormItem:{default:""}},componentName:"ElCheckbox",data:function(){return{selfModel:!1,focus:!1,isLimitExceeded:!1}},computed:{model:{get:function(){return this.isGroup?this.store:void 0!==this.value?this.value:this.selfModel},set:function(e){this.isGroup?(this.isLimitExceeded=!1,void 0!==this._checkboxGroup.min&&e.length<this._checkboxGroup.min&&(this.isLimitExceeded=!0),void 0!==this._checkboxGroup.max&&e.length>this._checkboxGroup.max&&(this.isLimitExceeded=!0),!1===this.isLimitExceeded&&this.dispatch("ElCheckboxGroup","input",[e])):(this.$emit("input",e),this.selfModel=e)}},isChecked:function(){return"[object Boolean]"==={}.toString.call(this.model)?this.model:Array.isArray(this.model)?this.model.indexOf(this.label)>-1:null!==this.model&&void 0!==this.model?this.model===this.trueLabel:void 0},isGroup:function(){var e=this.$parent;while(e){if("ElCheckboxGroup"===e.$options.componentName)return this._checkboxGroup=e,!0;e=e.$parent}return!1},store:function(){return this._checkboxGroup?this._checkboxGroup.value:this.value},isLimitDisabled:function(){var e=this._checkboxGroup,t=e.max,n=e.min;return!(!t&&!n)&&this.model.length>=t&&!this.isChecked||this.model.length<=n&&this.isChecked},isDisabled:function(){return this.isGroup?this._checkboxGroup.disabled||this.disabled||(this.elForm||{}).disabled||this.isLimitDisabled:this.disabled||(this.elForm||{}).disabled},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxSize:function(){var e=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup&&this._checkboxGroup.checkboxGroupSize||e}},props:{value:{},label:{},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:String,trueLabel:[String,Number],falseLabel:[String,Number],id:String,controls:String,border:Boolean,size:String},methods:{addToStore:function(){Array.isArray(this.model)&&-1===this.model.indexOf(this.label)?this.model.push(this.label):this.model=this.trueLabel||!0},handleChange:function(e){var t=this;if(!this.isLimitExceeded){var n=void 0;n=e.target.checked?void 0===this.trueLabel||this.trueLabel:void 0!==this.falseLabel&&this.falseLabel,this.$emit("change",n,e),this.$nextTick((function(){t.isGroup&&t.dispatch("ElCheckboxGroup","change",[t._checkboxGroup.value])}))}}},created:function(){this.checked&&this.addToStore()},mounted:function(){this.indeterminate&&this.$el.setAttribute("aria-controls",this.controls)},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",e)}}},l=s,u=n(0),c=Object(u["a"])(l,r,i,!1,null,null,null);c.options.__file="packages/checkbox/src/checkbox.vue";var d=c.exports;d.install=function(e){e.component(d.name,d)};t["default"]=d}})},4720:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=45)}([function(e,t){e.exports=n(1338)},function(e,t){e.exports=n(4594)},function(e,t){e.exports=n(3104)},function(e,t){e.exports=n(2477)},function(e,t){e.exports=n(2084)},function(e,t){e.exports=n(499)},function(e,t){e.exports=n(144)},function(e,t){e.exports=n(1615)},function(e,t){e.exports=n(7626)},function(e,t){e.exports=n(4222)},function(e,t){e.exports=n(1080)},function(e,t){e.exports=n(2680)},function(e,t){e.exports=n(1802)},function(e,t){e.exports=n(6426)},function(e,t){e.exports=n(2626)},function(e,t){e.exports=n(6567)},function(e,t){e.exports=n(5389)},function(e,t){e.exports=n(2823)},function(e,t){e.exports=n(7122)},function(e,t){e.exports=n(167)},function(e,t){e.exports=n(8648)},function(e,t){e.exports=n(2743)},function(e,t){e.exports=n(4823)},function(e,t){e.exports=n(8618)},function(e,t){e.exports=n(3933)},function(e,t){e.exports=n(8563)},function(e,t){e.exports=n(4561)},function(e,t){e.exports=n(8275)},function(e,t){e.exports=n(7563)},function(e,t){e.exports=n(7698)},function(e,t){e.exports=n(1301)},function(e,t){e.exports=n(3235)},function(e,t){e.exports=n(9634)},function(e,t){e.exports=n(2271)},function(e,t){e.exports=n(6583)},function(e,t){e.exports=n(4592)},function(e,t){e.exports=n(7186)},function(e,t){e.exports=n(5614)},function(e,t){e.exports=n(2796)},function(e,t){e.exports=n(4677)},function(e,t){e.exports=n(6890)},function(e,t){e.exports=n(7987)},function(e,t){e.exports=n(6276)},function(e,t){e.exports=n(1955)},function(e,t){e.exports=n(4650)},function(e,t,n){e.exports=n(46)},function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("ul",{staticClass:"el-pager",on:{click:e.onPagerClick}},[e.pageCount>0?n("li",{staticClass:"number",class:{active:1===e.currentPage,disabled:e.disabled}},[e._v("1")]):e._e(),e.showPrevMore?n("li",{staticClass:"el-icon more btn-quickprev",class:[e.quickprevIconClass,{disabled:e.disabled}],on:{mouseenter:function(t){e.onMouseenter("left")},mouseleave:function(t){e.quickprevIconClass="el-icon-more"}}}):e._e(),e._l(e.pagers,(function(t){return n("li",{key:t,staticClass:"number",class:{active:e.currentPage===t,disabled:e.disabled}},[e._v(e._s(t))])})),e.showNextMore?n("li",{staticClass:"el-icon more btn-quicknext",class:[e.quicknextIconClass,{disabled:e.disabled}],on:{mouseenter:function(t){e.onMouseenter("right")},mouseleave:function(t){e.quicknextIconClass="el-icon-more"}}}):e._e(),e.pageCount>1?n("li",{staticClass:"number",class:{active:e.currentPage===e.pageCount,disabled:e.disabled}},[e._v(e._s(e.pageCount))]):e._e()],2)},i=[];r._withStripped=!0;var a={name:"ElPager",props:{currentPage:Number,pageCount:Number,pagerCount:Number,disabled:Boolean},watch:{showPrevMore:function(e){e||(this.quickprevIconClass="el-icon-more")},showNextMore:function(e){e||(this.quicknextIconClass="el-icon-more")}},methods:{onPagerClick:function(e){var t=e.target;if("UL"!==t.tagName&&!this.disabled){var n=Number(e.target.textContent),r=this.pageCount,i=this.currentPage,a=this.pagerCount-2;-1!==t.className.indexOf("more")&&(-1!==t.className.indexOf("quickprev")?n=i-a:-1!==t.className.indexOf("quicknext")&&(n=i+a)),isNaN(n)||(n<1&&(n=1),n>r&&(n=r)),n!==i&&this.$emit("change",n)}},onMouseenter:function(e){this.disabled||("left"===e?this.quickprevIconClass="el-icon-d-arrow-left":this.quicknextIconClass="el-icon-d-arrow-right")}},computed:{pagers:function(){var e=this.pagerCount,t=(e-1)/2,n=Number(this.currentPage),r=Number(this.pageCount),i=!1,a=!1;r>e&&(n>e-t&&(i=!0),n<r-t&&(a=!0));var o=[];if(i&&!a)for(var s=r-(e-2),l=s;l<r;l++)o.push(l);else if(!i&&a)for(var u=2;u<e;u++)o.push(u);else if(i&&a)for(var c=Math.floor(e/2)-1,d=n-c;d<=n+c;d++)o.push(d);else for(var h=2;h<r;h++)o.push(h);return this.showPrevMore=i,this.showNextMore=a,o}},data:function(){return{current:null,showPrevMore:!1,showNextMore:!1,quicknextIconClass:"el-icon-more",quickprevIconClass:"el-icon-more"}}},o=a;function s(e,t,n,r,i,a,o,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),a&&(u._scopeId="data-v-"+a),o?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:u}}var l=s(o,r,i,!1,null,null,null);l.options.__file="packages/pagination/src/pager.vue";var u=l.exports,c=n(36),d=n.n(c),h=n(37),f=n.n(h),p=n(8),m=n.n(p),v=n(4),g=n.n(v),y=n(2),b={name:"ElPagination",props:{pageSize:{type:Number,default:10},small:Boolean,total:Number,pageCount:Number,pagerCount:{type:Number,validator:function(e){return(0|e)===e&&e>4&&e<22&&e%2===1},default:7},currentPage:{type:Number,default:1},layout:{default:"prev, pager, next, jumper, ->, total"},pageSizes:{type:Array,default:function(){return[10,20,30,40,50,100]}},popperClass:String,prevText:String,nextText:String,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean},data:function(){return{internalCurrentPage:1,internalPageSize:0,lastEmittedPage:-1,userChangePageSize:!1}},render:function(e){var t=this.layout;if(!t)return null;if(this.hideOnSinglePage&&(!this.internalPageCount||1===this.internalPageCount))return null;var n=e("div",{class:["el-pagination",{"is-background":this.background,"el-pagination--small":this.small}]}),r={prev:e("prev"),jumper:e("jumper"),pager:e("pager",{attrs:{currentPage:this.internalCurrentPage,pageCount:this.internalPageCount,pagerCount:this.pagerCount,disabled:this.disabled},on:{change:this.handleCurrentChange}}),next:e("next"),sizes:e("sizes",{attrs:{pageSizes:this.pageSizes}}),slot:e("slot",[this.$slots.default?this.$slots.default:""]),total:e("total")},i=t.split(",").map((function(e){return e.trim()})),a=e("div",{class:"el-pagination__rightwrapper"}),o=!1;return n.children=n.children||[],a.children=a.children||[],i.forEach((function(e){"->"!==e?o?a.children.push(r[e]):n.children.push(r[e]):o=!0})),o&&n.children.unshift(a),n},components:{Prev:{render:function(e){return e("button",{attrs:{type:"button",disabled:this.$parent.disabled||this.$parent.internalCurrentPage<=1},class:"btn-prev",on:{click:this.$parent.prev}},[this.$parent.prevText?e("span",[this.$parent.prevText]):e("i",{class:"el-icon el-icon-arrow-left"})])}},Next:{render:function(e){return e("button",{attrs:{type:"button",disabled:this.$parent.disabled||this.$parent.internalCurrentPage===this.$parent.internalPageCount||0===this.$parent.internalPageCount},class:"btn-next",on:{click:this.$parent.next}},[this.$parent.nextText?e("span",[this.$parent.nextText]):e("i",{class:"el-icon el-icon-arrow-right"})])}},Sizes:{mixins:[g.a],props:{pageSizes:Array},watch:{pageSizes:{immediate:!0,handler:function(e,t){Object(y["valueEquals"])(e,t)||Array.isArray(e)&&(this.$parent.internalPageSize=e.indexOf(this.$parent.pageSize)>-1?this.$parent.pageSize:this.pageSizes[0])}}},render:function(e){var t=this;return e("span",{class:"el-pagination__sizes"},[e("el-select",{attrs:{value:this.$parent.internalPageSize,popperClass:this.$parent.popperClass||"",size:"mini",disabled:this.$parent.disabled},on:{input:this.handleChange}},[this.pageSizes.map((function(n){return e("el-option",{attrs:{value:n,label:n+t.t("el.pagination.pagesize")}})}))])])},components:{ElSelect:d.a,ElOption:f.a},methods:{handleChange:function(e){e!==this.$parent.internalPageSize&&(this.$parent.internalPageSize=e=parseInt(e,10),this.$parent.userChangePageSize=!0,this.$parent.$emit("update:pageSize",e),this.$parent.$emit("size-change",e))}}},Jumper:{mixins:[g.a],components:{ElInput:m.a},data:function(){return{userInput:null}},watch:{"$parent.internalCurrentPage":function(){this.userInput=null}},methods:{handleKeyup:function(e){var t=e.keyCode,n=e.target;13===t&&this.handleChange(n.value)},handleInput:function(e){this.userInput=e},handleChange:function(e){this.$parent.internalCurrentPage=this.$parent.getValidCurrentPage(e),this.$parent.emitChange(),this.userInput=null}},render:function(e){return e("span",{class:"el-pagination__jump"},[this.t("el.pagination.goto"),e("el-input",{class:"el-pagination__editor is-in-pagination",attrs:{min:1,max:this.$parent.internalPageCount,value:null!==this.userInput?this.userInput:this.$parent.internalCurrentPage,type:"number",disabled:this.$parent.disabled},nativeOn:{keyup:this.handleKeyup},on:{input:this.handleInput,change:this.handleChange}}),this.t("el.pagination.pageClassifier")])}},Total:{mixins:[g.a],render:function(e){return"number"===typeof this.$parent.total?e("span",{class:"el-pagination__total"},[this.t("el.pagination.total",{total:this.$parent.total})]):""}},Pager:u},methods:{handleCurrentChange:function(e){this.internalCurrentPage=this.getValidCurrentPage(e),this.userChangePageSize=!0,this.emitChange()},prev:function(){if(!this.disabled){var e=this.internalCurrentPage-1;this.internalCurrentPage=this.getValidCurrentPage(e),this.$emit("prev-click",this.internalCurrentPage),this.emitChange()}},next:function(){if(!this.disabled){var e=this.internalCurrentPage+1;this.internalCurrentPage=this.getValidCurrentPage(e),this.$emit("next-click",this.internalCurrentPage),this.emitChange()}},getValidCurrentPage:function(e){e=parseInt(e,10);var t="number"===typeof this.internalPageCount,n=void 0;return t?e<1?n=1:e>this.internalPageCount&&(n=this.internalPageCount):(isNaN(e)||e<1)&&(n=1),(void 0===n&&isNaN(e)||0===n)&&(n=1),void 0===n?e:n},emitChange:function(){var e=this;this.$nextTick((function(){(e.internalCurrentPage!==e.lastEmittedPage||e.userChangePageSize)&&(e.$emit("current-change",e.internalCurrentPage),e.lastEmittedPage=e.internalCurrentPage,e.userChangePageSize=!1)}))}},computed:{internalPageCount:function(){return"number"===typeof this.total?Math.max(1,Math.ceil(this.total/this.internalPageSize)):"number"===typeof this.pageCount?Math.max(1,this.pageCount):null}},watch:{currentPage:{immediate:!0,handler:function(e){this.internalCurrentPage=this.getValidCurrentPage(e)}},pageSize:{immediate:!0,handler:function(e){this.internalPageSize=isNaN(e)?10:e}},internalCurrentPage:{immediate:!0,handler:function(e){this.$emit("update:currentPage",e),this.lastEmittedPage=-1}},internalPageCount:function(e){var t=this.internalCurrentPage;e>0&&0===t?this.internalCurrentPage=1:t>e&&(this.internalCurrentPage=0===e?1:e,this.userChangePageSize&&this.emitChange()),this.userChangePageSize=!1}},install:function(e){e.component(b.name,b)}},x=b,w=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"dialog-fade"},on:{"after-enter":e.afterEnter,"after-leave":e.afterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-dialog__wrapper",on:{click:function(t){return t.target!==t.currentTarget?null:e.handleWrapperClick(t)}}},[n("div",{key:e.key,ref:"dialog",class:["el-dialog",{"is-fullscreen":e.fullscreen,"el-dialog--center":e.center},e.customClass],style:e.style,attrs:{role:"dialog","aria-modal":"true","aria-label":e.title||"dialog"}},[n("div",{staticClass:"el-dialog__header"},[e._t("title",[n("span",{staticClass:"el-dialog__title"},[e._v(e._s(e.title))])]),e.showClose?n("button",{staticClass:"el-dialog__headerbtn",attrs:{type:"button","aria-label":"Close"},on:{click:e.handleClose}},[n("i",{staticClass:"el-dialog__close el-icon el-icon-close"})]):e._e()],2),e.rendered?n("div",{staticClass:"el-dialog__body"},[e._t("default")],2):e._e(),e.$slots.footer?n("div",{staticClass:"el-dialog__footer"},[e._t("footer")],2):e._e()])])])},_=[];w._withStripped=!0;var C=n(11),S=n.n(C),N=n(9),k=n.n(N),E=n(3),M=n.n(E),O={name:"ElDialog",mixins:[S.a,M.a,k.a],props:{title:{type:String,default:""},modal:{type:Boolean,default:!0},modalAppendToBody:{type:Boolean,default:!0},appendToBody:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},width:String,fullscreen:Boolean,customClass:{type:String,default:""},top:{type:String,default:"15vh"},beforeClose:Function,center:{type:Boolean,default:!1},destroyOnClose:Boolean},data:function(){return{closed:!1,key:0}},watch:{visible:function(e){var t=this;e?(this.closed=!1,this.$emit("open"),this.$el.addEventListener("scroll",this.updatePopper),this.$nextTick((function(){t.$refs.dialog.scrollTop=0})),this.appendToBody&&document.body.appendChild(this.$el)):(this.$el.removeEventListener("scroll",this.updatePopper),this.closed||this.$emit("close"),this.destroyOnClose&&this.$nextTick((function(){t.key++})))}},computed:{style:function(){var e={};return this.fullscreen||(e.marginTop=this.top,this.width&&(e.width=this.width)),e}},methods:{getMigratingConfig:function(){return{props:{size:"size is removed."}}},handleWrapperClick:function(){this.closeOnClickModal&&this.handleClose()},handleClose:function(){"function"===typeof this.beforeClose?this.beforeClose(this.hide):this.hide()},hide:function(e){!1!==e&&(this.$emit("update:visible",!1),this.$emit("close"),this.closed=!0)},updatePopper:function(){this.broadcast("ElSelectDropdown","updatePopper"),this.broadcast("ElDropdownMenu","updatePopper")},afterEnter:function(){this.$emit("opened")},afterLeave:function(){this.$emit("closed")}},mounted:function(){this.visible&&(this.rendered=!0,this.open(),this.appendToBody&&document.body.appendChild(this.$el))},destroyed:function(){this.appendToBody&&this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)}},D=O,T=s(D,w,_,!1,null,null,null);T.options.__file="packages/dialog/src/component.vue";var A=T.exports;A.install=function(e){e.component(A.name,A)};var I=A,$=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.close,expression:"close"}],staticClass:"el-autocomplete",attrs:{"aria-haspopup":"listbox",role:"combobox","aria-expanded":e.suggestionVisible,"aria-owns":e.id}},[n("el-input",e._b({ref:"input",on:{input:e.handleInput,change:e.handleChange,focus:e.handleFocus,blur:e.handleBlur,clear:e.handleClear},nativeOn:{keydown:[function(t){if(!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"]))return null;t.preventDefault(),e.highlight(e.highlightedIndex-1)},function(t){if(!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;t.preventDefault(),e.highlight(e.highlightedIndex+1)},function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleKeyEnter(t)},function(t){return!("button"in t)&&e._k(t.keyCode,"tab",9,t.key,"Tab")?null:e.close(t)}]}},"el-input",[e.$props,e.$attrs],!1),[e.$slots.prepend?n("template",{slot:"prepend"},[e._t("prepend")],2):e._e(),e.$slots.append?n("template",{slot:"append"},[e._t("append")],2):e._e(),e.$slots.prefix?n("template",{slot:"prefix"},[e._t("prefix")],2):e._e(),e.$slots.suffix?n("template",{slot:"suffix"},[e._t("suffix")],2):e._e()],2),n("el-autocomplete-suggestions",{ref:"suggestions",class:[e.popperClass?e.popperClass:""],attrs:{"visible-arrow":"","popper-options":e.popperOptions,"append-to-body":e.popperAppendToBody,placement:e.placement,id:e.id}},e._l(e.suggestions,(function(t,r){return n("li",{key:r,class:{highlighted:e.highlightedIndex===r},attrs:{id:e.id+"-item-"+r,role:"option","aria-selected":e.highlightedIndex===r},on:{click:function(n){e.select(t)}}},[e._t("default",[e._v("\n "+e._s(t[e.valueKey])+"\n ")],{item:t})],2)})),0)],1)},P=[];$._withStripped=!0;var j=n(17),F=n.n(j),B=n(10),L=n.n(B),z=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":e.doDestroy}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.showPopper,expression:"showPopper"}],staticClass:"el-autocomplete-suggestion el-popper",class:{"is-loading":!e.parent.hideLoading&&e.parent.loading},style:{width:e.dropdownWidth},attrs:{role:"region"}},[n("el-scrollbar",{attrs:{tag:"ul","wrap-class":"el-autocomplete-suggestion__wrap","view-class":"el-autocomplete-suggestion__list"}},[!e.parent.hideLoading&&e.parent.loading?n("li",[n("i",{staticClass:"el-icon-loading"})]):e._t("default")],2)],1)])},R=[];z._withStripped=!0;var V=n(5),q=n.n(V),H=n(18),U=n.n(H),W={components:{ElScrollbar:U.a},mixins:[q.a,M.a],componentName:"ElAutocompleteSuggestions",data:function(){return{parent:this.$parent,dropdownWidth:""}},props:{options:{default:function(){return{gpuAcceleration:!1}}},id:String},methods:{select:function(e){this.dispatch("ElAutocomplete","item-click",e)}},updated:function(){var e=this;this.$nextTick((function(t){e.popperJS&&e.updatePopper()}))},mounted:function(){this.$parent.popperElm=this.popperElm=this.$el,this.referenceElm=this.$parent.$refs.input.$refs.input||this.$parent.$refs.input.$refs.textarea,this.referenceList=this.$el.querySelector(".el-autocomplete-suggestion__list"),this.referenceList.setAttribute("role","listbox"),this.referenceList.setAttribute("id",this.id)},created:function(){var e=this;this.$on("visible",(function(t,n){e.dropdownWidth=n+"px",e.showPopper=t}))}},Y=W,G=s(Y,z,R,!1,null,null,null);G.options.__file="packages/autocomplete/src/autocomplete-suggestions.vue";var K=G.exports,X=n(23),Z=n.n(X),J={name:"ElAutocomplete",mixins:[M.a,Z()("input"),k.a],inheritAttrs:!1,componentName:"ElAutocomplete",components:{ElInput:m.a,ElAutocompleteSuggestions:K},directives:{Clickoutside:L.a},props:{valueKey:{type:String,default:"value"},popperClass:String,popperOptions:Object,placeholder:String,clearable:{type:Boolean,default:!1},disabled:Boolean,name:String,size:String,value:String,maxlength:Number,minlength:Number,autofocus:Boolean,fetchSuggestions:Function,triggerOnFocus:{type:Boolean,default:!0},customItem:String,selectWhenUnmatched:{type:Boolean,default:!1},prefixIcon:String,suffixIcon:String,label:String,debounce:{type:Number,default:300},placement:{type:String,default:"bottom-start"},hideLoading:Boolean,popperAppendToBody:{type:Boolean,default:!0},highlightFirstItem:{type:Boolean,default:!1}},data:function(){return{activated:!1,suggestions:[],loading:!1,highlightedIndex:-1,suggestionDisabled:!1}},computed:{suggestionVisible:function(){var e=this.suggestions,t=Array.isArray(e)&&e.length>0;return(t||this.loading)&&this.activated},id:function(){return"el-autocomplete-"+Object(y["generateId"])()}},watch:{suggestionVisible:function(e){var t=this.getInput();t&&this.broadcast("ElAutocompleteSuggestions","visible",[e,t.offsetWidth])}},methods:{getMigratingConfig:function(){return{props:{"custom-item":"custom-item is removed, use scoped slot instead.",props:"props is removed, use value-key instead."}}},getData:function(e){var t=this;this.suggestionDisabled||(this.loading=!0,this.fetchSuggestions(e,(function(e){t.loading=!1,t.suggestionDisabled||(Array.isArray(e)?(t.suggestions=e,t.highlightedIndex=t.highlightFirstItem?0:-1):console.error("[Element Error][Autocomplete]autocomplete suggestions must be an array"))})))},handleInput:function(e){if(this.$emit("input",e),this.suggestionDisabled=!1,!this.triggerOnFocus&&!e)return this.suggestionDisabled=!0,void(this.suggestions=[]);this.debouncedGetData(e)},handleChange:function(e){this.$emit("change",e)},handleFocus:function(e){this.activated=!0,this.$emit("focus",e),this.triggerOnFocus&&this.debouncedGetData(this.value)},handleBlur:function(e){this.$emit("blur",e)},handleClear:function(){this.activated=!1,this.$emit("clear")},close:function(e){this.activated=!1},handleKeyEnter:function(e){var t=this;this.suggestionVisible&&this.highlightedIndex>=0&&this.highlightedIndex<this.suggestions.length?(e.preventDefault(),this.select(this.suggestions[this.highlightedIndex])):this.selectWhenUnmatched&&(this.$emit("select",{value:this.value}),this.$nextTick((function(e){t.suggestions=[],t.highlightedIndex=-1})))},select:function(e){var t=this;this.$emit("input",e[this.valueKey]),this.$emit("select",e),this.$nextTick((function(e){t.suggestions=[],t.highlightedIndex=-1}))},highlight:function(e){if(this.suggestionVisible&&!this.loading)if(e<0)this.highlightedIndex=-1;else{e>=this.suggestions.length&&(e=this.suggestions.length-1);var t=this.$refs.suggestions.$el.querySelector(".el-autocomplete-suggestion__wrap"),n=t.querySelectorAll(".el-autocomplete-suggestion__list li"),r=n[e],i=t.scrollTop,a=r.offsetTop;a+r.scrollHeight>i+t.clientHeight&&(t.scrollTop+=r.scrollHeight),a<i&&(t.scrollTop-=r.scrollHeight),this.highlightedIndex=e;var o=this.getInput();o.setAttribute("aria-activedescendant",this.id+"-item-"+this.highlightedIndex)}},getInput:function(){return this.$refs.input.getInput()}},mounted:function(){var e=this;this.debouncedGetData=F()(this.debounce,this.getData),this.$on("item-click",(function(t){e.select(t)}));var t=this.getInput();t.setAttribute("role","textbox"),t.setAttribute("aria-autocomplete","list"),t.setAttribute("aria-controls","id"),t.setAttribute("aria-activedescendant",this.id+"-item-"+this.highlightedIndex)},beforeDestroy:function(){this.$refs.suggestions.$destroy()}},Q=J,ee=s(Q,$,P,!1,null,null,null);ee.options.__file="packages/autocomplete/src/autocomplete.vue";var te=ee.exports;te.install=function(e){e.component(te.name,te)};var ne,re,ie=te,ae=n(13),oe=n.n(ae),se=n(28),le=n.n(se),ue={name:"ElDropdown",componentName:"ElDropdown",mixins:[M.a,k.a],directives:{Clickoutside:L.a},components:{ElButton:oe.a,ElButtonGroup:le.a},provide:function(){return{dropdown:this}},props:{trigger:{type:String,default:"hover"},type:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},placement:{type:String,default:"bottom-end"},visibleArrow:{default:!0},showTimeout:{type:Number,default:250},hideTimeout:{type:Number,default:150},tabindex:{type:Number,default:0},disabled:{type:Boolean,default:!1}},data:function(){return{timeout:null,visible:!1,triggerElm:null,menuItems:null,menuItemsArray:null,dropdownElm:null,focusing:!1,listId:"dropdown-menu-"+Object(y["generateId"])()}},computed:{dropdownSize:function(){return this.size||(this.$ELEMENT||{}).size}},mounted:function(){this.$on("menu-item-click",this.handleMenuItemClick)},watch:{visible:function(e){this.broadcast("ElDropdownMenu","visible",e),this.$emit("visible-change",e)},focusing:function(e){var t=this.$el.querySelector(".el-dropdown-selfdefine");t&&(e?t.className+=" focusing":t.className=t.className.replace("focusing",""))}},methods:{getMigratingConfig:function(){return{props:{"menu-align":"menu-align is renamed to placement."}}},show:function(){var e=this;this.disabled||(clearTimeout(this.timeout),this.timeout=setTimeout((function(){e.visible=!0}),"click"===this.trigger?0:this.showTimeout))},hide:function(){var e=this;this.disabled||(this.removeTabindex(),this.tabindex>=0&&this.resetTabindex(this.triggerElm),clearTimeout(this.timeout),this.timeout=setTimeout((function(){e.visible=!1}),"click"===this.trigger?0:this.hideTimeout))},handleClick:function(){this.disabled||(this.visible?this.hide():this.show())},handleTriggerKeyDown:function(e){var t=e.keyCode;[38,40].indexOf(t)>-1?(this.removeTabindex(),this.resetTabindex(this.menuItems[0]),this.menuItems[0].focus(),e.preventDefault(),e.stopPropagation()):13===t?this.handleClick():[9,27].indexOf(t)>-1&&this.hide()},handleItemKeyDown:function(e){var t=e.keyCode,n=e.target,r=this.menuItemsArray.indexOf(n),i=this.menuItemsArray.length-1,a=void 0;[38,40].indexOf(t)>-1?(a=38===t?0!==r?r-1:0:r<i?r+1:i,this.removeTabindex(),this.resetTabindex(this.menuItems[a]),this.menuItems[a].focus(),e.preventDefault(),e.stopPropagation()):13===t?(this.triggerElmFocus(),n.click(),this.hideOnClick&&(this.visible=!1)):[9,27].indexOf(t)>-1&&(this.hide(),this.triggerElmFocus())},resetTabindex:function(e){this.removeTabindex(),e.setAttribute("tabindex","0")},removeTabindex:function(){this.triggerElm.setAttribute("tabindex","-1"),this.menuItemsArray.forEach((function(e){e.setAttribute("tabindex","-1")}))},initAria:function(){this.dropdownElm.setAttribute("id",this.listId),this.triggerElm.setAttribute("aria-haspopup","list"),this.triggerElm.setAttribute("aria-controls",this.listId),this.splitButton||(this.triggerElm.setAttribute("role","button"),this.triggerElm.setAttribute("tabindex",this.tabindex),this.triggerElm.setAttribute("class",(this.triggerElm.getAttribute("class")||"")+" el-dropdown-selfdefine"))},initEvent:function(){var e=this,t=this.trigger,n=this.show,r=this.hide,i=this.handleClick,a=this.splitButton,o=this.handleTriggerKeyDown,s=this.handleItemKeyDown;this.triggerElm=a?this.$refs.trigger.$el:this.$slots.default[0].elm;var l=this.dropdownElm;this.triggerElm.addEventListener("keydown",o),l.addEventListener("keydown",s,!0),a||(this.triggerElm.addEventListener("focus",(function(){e.focusing=!0})),this.triggerElm.addEventListener("blur",(function(){e.focusing=!1})),this.triggerElm.addEventListener("click",(function(){e.focusing=!1}))),"hover"===t?(this.triggerElm.addEventListener("mouseenter",n),this.triggerElm.addEventListener("mouseleave",r),l.addEventListener("mouseenter",n),l.addEventListener("mouseleave",r)):"click"===t&&this.triggerElm.addEventListener("click",i)},handleMenuItemClick:function(e,t){this.hideOnClick&&(this.visible=!1),this.$emit("command",e,t)},triggerElmFocus:function(){this.triggerElm.focus&&this.triggerElm.focus()},initDomOperation:function(){this.dropdownElm=this.popperElm,this.menuItems=this.dropdownElm.querySelectorAll("[tabindex='-1']"),this.menuItemsArray=[].slice.call(this.menuItems),this.initEvent(),this.initAria()}},render:function(e){var t=this,n=this.hide,r=this.splitButton,i=this.type,a=this.dropdownSize,o=this.disabled,s=function(e){t.$emit("click",e),n()},l=null;if(r)l=e("el-button-group",[e("el-button",{attrs:{type:i,size:a,disabled:o},nativeOn:{click:s}},[this.$slots.default]),e("el-button",{ref:"trigger",attrs:{type:i,size:a,disabled:o},class:"el-dropdown__caret-button"},[e("i",{class:"el-dropdown__icon el-icon-arrow-down"})])]);else{l=this.$slots.default;var u=l[0].data||{},c=u.attrs,d=void 0===c?{}:c;o&&!d.disabled&&(d.disabled=!0,u.attrs=d)}var h=o?null:this.$slots.dropdown;return e("div",{class:"el-dropdown",directives:[{name:"clickoutside",value:n}],attrs:{"aria-disabled":o}},[l,h])}},ce=ue,de=s(ce,ne,re,!1,null,null,null);de.options.__file="packages/dropdown/src/dropdown.vue";var he=de.exports;he.install=function(e){e.component(he.name,he)};var fe=he,pe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":e.doDestroy}},[n("ul",{directives:[{name:"show",rawName:"v-show",value:e.showPopper,expression:"showPopper"}],staticClass:"el-dropdown-menu el-popper",class:[e.size&&"el-dropdown-menu--"+e.size]},[e._t("default")],2)])},me=[];pe._withStripped=!0;var ve={name:"ElDropdownMenu",componentName:"ElDropdownMenu",mixins:[q.a],props:{visibleArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:0}},data:function(){return{size:this.dropdown.dropdownSize}},inject:["dropdown"],created:function(){var e=this;this.$on("updatePopper",(function(){e.showPopper&&e.updatePopper()})),this.$on("visible",(function(t){e.showPopper=t}))},mounted:function(){this.dropdown.popperElm=this.popperElm=this.$el,this.referenceElm=this.dropdown.$el,this.dropdown.initDomOperation()},watch:{"dropdown.placement":{immediate:!0,handler:function(e){this.currentPlacement=e}}}},ge=ve,ye=s(ge,pe,me,!1,null,null,null);ye.options.__file="packages/dropdown/src/dropdown-menu.vue";var be=ye.exports;be.install=function(e){e.component(be.name,be)};var xe=be,we=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{staticClass:"el-dropdown-menu__item",class:{"is-disabled":e.disabled,"el-dropdown-menu__item--divided":e.divided},attrs:{"aria-disabled":e.disabled,tabindex:e.disabled?null:-1},on:{click:e.handleClick}},[e.icon?n("i",{class:e.icon}):e._e(),e._t("default")],2)},_e=[];we._withStripped=!0;var Ce={name:"ElDropdownItem",mixins:[M.a],props:{command:{},disabled:Boolean,divided:Boolean,icon:String},methods:{handleClick:function(e){this.dispatch("ElDropdown","menu-item-click",[this.command,this])}}},Se=Ce,Ne=s(Se,we,_e,!1,null,null,null);Ne.options.__file="packages/dropdown/src/dropdown-item.vue";var ke=Ne.exports;ke.install=function(e){e.component(ke.name,ke)};var Ee=ke,Me=Me||{};Me.Utils=Me.Utils||{},Me.Utils.focusFirstDescendant=function(e){for(var t=0;t<e.childNodes.length;t++){var n=e.childNodes[t];if(Me.Utils.attemptFocus(n)||Me.Utils.focusFirstDescendant(n))return!0}return!1},Me.Utils.focusLastDescendant=function(e){for(var t=e.childNodes.length-1;t>=0;t--){var n=e.childNodes[t];if(Me.Utils.attemptFocus(n)||Me.Utils.focusLastDescendant(n))return!0}return!1},Me.Utils.attemptFocus=function(e){if(!Me.Utils.isFocusable(e))return!1;Me.Utils.IgnoreUtilFocusChanges=!0;try{e.focus()}catch(t){}return Me.Utils.IgnoreUtilFocusChanges=!1,document.activeElement===e},Me.Utils.isFocusable=function(e){if(e.tabIndex>0||0===e.tabIndex&&null!==e.getAttribute("tabIndex"))return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!==e.rel;case"INPUT":return"hidden"!==e.type&&"file"!==e.type;case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},Me.Utils.triggerEvent=function(e,t){var n=void 0;n=/^mouse|click/.test(t)?"MouseEvents":/^key/.test(t)?"KeyboardEvent":"HTMLEvents";for(var r=document.createEvent(n),i=arguments.length,a=Array(i>2?i-2:0),o=2;o<i;o++)a[o-2]=arguments[o];return r.initEvent.apply(r,[t].concat(a)),e.dispatchEvent?e.dispatchEvent(r):e.fireEvent("on"+t,r),e},Me.Utils.keys={tab:9,enter:13,space:32,left:37,up:38,right:39,down:40,esc:27};var Oe=Me.Utils,De=function(e,t){this.domNode=t,this.parent=e,this.subMenuItems=[],this.subIndex=0,this.init()};De.prototype.init=function(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()},De.prototype.gotoSubIndex=function(e){e===this.subMenuItems.length?e=0:e<0&&(e=this.subMenuItems.length-1),this.subMenuItems[e].focus(),this.subIndex=e},De.prototype.addListeners=function(){var e=this,t=Oe.keys,n=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,(function(r){r.addEventListener("keydown",(function(r){var i=!1;switch(r.keyCode){case t.down:e.gotoSubIndex(e.subIndex+1),i=!0;break;case t.up:e.gotoSubIndex(e.subIndex-1),i=!0;break;case t.tab:Oe.triggerEvent(n,"mouseleave");break;case t.enter:case t.space:i=!0,r.currentTarget.click();break}return i&&(r.preventDefault(),r.stopPropagation()),!1}))}))};var Te=De,Ae=function(e){this.domNode=e,this.submenu=null,this.init()};Ae.prototype.init=function(){this.domNode.setAttribute("tabindex","0");var e=this.domNode.querySelector(".el-menu");e&&(this.submenu=new Te(this,e)),this.addListeners()},Ae.prototype.addListeners=function(){var e=this,t=Oe.keys;this.domNode.addEventListener("keydown",(function(n){var r=!1;switch(n.keyCode){case t.down:Oe.triggerEvent(n.currentTarget,"mouseenter"),e.submenu&&e.submenu.gotoSubIndex(0),r=!0;break;case t.up:Oe.triggerEvent(n.currentTarget,"mouseenter"),e.submenu&&e.submenu.gotoSubIndex(e.submenu.subMenuItems.length-1),r=!0;break;case t.tab:Oe.triggerEvent(n.currentTarget,"mouseleave");break;case t.enter:case t.space:r=!0,n.currentTarget.click();break}r&&n.preventDefault()}))};var Ie=Ae,$e=function(e){this.domNode=e,this.init()};$e.prototype.init=function(){var e=this.domNode.childNodes;[].filter.call(e,(function(e){return 1===e.nodeType})).forEach((function(e){new Ie(e)}))};var Pe,je,Fe=$e,Be=n(1),Le={name:"ElMenu",render:function(e){var t=e("ul",{attrs:{role:"menubar"},key:+this.collapse,style:{backgroundColor:this.backgroundColor||""},class:{"el-menu--horizontal":"horizontal"===this.mode,"el-menu--collapse":this.collapse,"el-menu":!0}},[this.$slots.default]);return this.collapseTransition?e("el-menu-collapse-transition",[t]):t},componentName:"ElMenu",mixins:[M.a,k.a],provide:function(){return{rootMenu:this}},components:{"el-menu-collapse-transition":{functional:!0,render:function(e,t){var n={props:{mode:"out-in"},on:{beforeEnter:function(e){e.style.opacity=.2},enter:function(e){Object(Be["addClass"])(e,"el-opacity-transition"),e.style.opacity=1},afterEnter:function(e){Object(Be["removeClass"])(e,"el-opacity-transition"),e.style.opacity=""},beforeLeave:function(e){e.dataset||(e.dataset={}),Object(Be["hasClass"])(e,"el-menu--collapse")?(Object(Be["removeClass"])(e,"el-menu--collapse"),e.dataset.oldOverflow=e.style.overflow,e.dataset.scrollWidth=e.clientWidth,Object(Be["addClass"])(e,"el-menu--collapse")):(Object(Be["addClass"])(e,"el-menu--collapse"),e.dataset.oldOverflow=e.style.overflow,e.dataset.scrollWidth=e.clientWidth,Object(Be["removeClass"])(e,"el-menu--collapse")),e.style.width=e.scrollWidth+"px",e.style.overflow="hidden"},leave:function(e){Object(Be["addClass"])(e,"horizontal-collapse-transition"),e.style.width=e.dataset.scrollWidth+"px"}}};return e("transition",n,t.children)}}},props:{mode:{type:String,default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:Array,uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,collapseTransition:{type:Boolean,default:!0}},data:function(){return{activeIndex:this.defaultActive,openedMenus:this.defaultOpeneds&&!this.collapse?this.defaultOpeneds.slice(0):[],items:{},submenus:{}}},computed:{hoverBackground:function(){return this.backgroundColor?this.mixColor(this.backgroundColor,.2):""},isMenuPopup:function(){return"horizontal"===this.mode||"vertical"===this.mode&&this.collapse}},watch:{defaultActive:function(e){this.items[e]||(this.activeIndex=null),this.updateActiveIndex(e)},defaultOpeneds:function(e){this.collapse||(this.openedMenus=e)},collapse:function(e){e&&(this.openedMenus=[]),this.broadcast("ElSubmenu","toggle-collapse",e)}},methods:{updateActiveIndex:function(e){var t=this.items[e]||this.items[this.activeIndex]||this.items[this.defaultActive];t?(this.activeIndex=t.index,this.initOpenedMenu()):this.activeIndex=null},getMigratingConfig:function(){return{props:{theme:"theme is removed."}}},getColorChannels:function(e){if(e=e.replace("#",""),/^[0-9a-fA-F]{3}$/.test(e)){e=e.split("");for(var t=2;t>=0;t--)e.splice(t,0,e[t]);e=e.join("")}return/^[0-9a-fA-F]{6}$/.test(e)?{red:parseInt(e.slice(0,2),16),green:parseInt(e.slice(2,4),16),blue:parseInt(e.slice(4,6),16)}:{red:255,green:255,blue:255}},mixColor:function(e,t){var n=this.getColorChannels(e),r=n.red,i=n.green,a=n.blue;return t>0?(r*=1-t,i*=1-t,a*=1-t):(r+=(255-r)*t,i+=(255-i)*t,a+=(255-a)*t),"rgb("+Math.round(r)+", "+Math.round(i)+", "+Math.round(a)+")"},addItem:function(e){this.$set(this.items,e.index,e)},removeItem:function(e){delete this.items[e.index]},addSubmenu:function(e){this.$set(this.submenus,e.index,e)},removeSubmenu:function(e){delete this.submenus[e.index]},openMenu:function(e,t){var n=this.openedMenus;-1===n.indexOf(e)&&(this.uniqueOpened&&(this.openedMenus=n.filter((function(e){return-1!==t.indexOf(e)}))),this.openedMenus.push(e))},closeMenu:function(e){var t=this.openedMenus.indexOf(e);-1!==t&&this.openedMenus.splice(t,1)},handleSubmenuClick:function(e){var t=e.index,n=e.indexPath,r=-1!==this.openedMenus.indexOf(t);r?(this.closeMenu(t),this.$emit("close",t,n)):(this.openMenu(t,n),this.$emit("open",t,n))},handleItemClick:function(e){var t=this,n=e.index,r=e.indexPath,i=this.activeIndex,a=null!==e.index;a&&(this.activeIndex=e.index),this.$emit("select",n,r,e),("horizontal"===this.mode||this.collapse)&&(this.openedMenus=[]),this.router&&a&&this.routeToItem(e,(function(e){if(t.activeIndex=i,e){if("NavigationDuplicated"===e.name)return;console.error(e)}}))},initOpenedMenu:function(){var e=this,t=this.activeIndex,n=this.items[t];if(n&&"horizontal"!==this.mode&&!this.collapse){var r=n.indexPath;r.forEach((function(t){var n=e.submenus[t];n&&e.openMenu(t,n.indexPath)}))}},routeToItem:function(e,t){var n=e.route||e.index;try{this.$router.push(n,(function(){}),t)}catch(r){console.error(r)}},open:function(e){var t=this,n=this.submenus[e.toString()].indexPath;n.forEach((function(e){return t.openMenu(e,n)}))},close:function(e){this.closeMenu(e)}},mounted:function(){this.initOpenedMenu(),this.$on("item-click",this.handleItemClick),this.$on("submenu-click",this.handleSubmenuClick),"horizontal"===this.mode&&new Fe(this.$el),this.$watch("items",this.updateActiveIndex)}},ze=Le,Re=s(ze,Pe,je,!1,null,null,null);Re.options.__file="packages/menu/src/menu.vue";var Ve=Re.exports;Ve.install=function(e){e.component(Ve.name,Ve)};var qe,He,Ue=Ve,We=n(21),Ye=n.n(We),Ge={inject:["rootMenu"],computed:{indexPath:function(){var e=[this.index],t=this.$parent;while("ElMenu"!==t.$options.componentName)t.index&&e.unshift(t.index),t=t.$parent;return e},parentMenu:function(){var e=this.$parent;while(e&&-1===["ElMenu","ElSubmenu"].indexOf(e.$options.componentName))e=e.$parent;return e},paddingStyle:function(){if("vertical"!==this.rootMenu.mode)return{};var e=20,t=this.$parent;if(this.rootMenu.collapse)e=20;else while(t&&"ElMenu"!==t.$options.componentName)"ElSubmenu"===t.$options.componentName&&(e+=20),t=t.$parent;return{paddingLeft:e+"px"}}}},Ke={props:{transformOrigin:{type:[Boolean,String],default:!1},offset:q.a.props.offset,boundariesPadding:q.a.props.boundariesPadding,popperOptions:q.a.props.popperOptions},data:q.a.data,methods:q.a.methods,beforeDestroy:q.a.beforeDestroy,deactivated:q.a.deactivated},Xe={name:"ElSubmenu",componentName:"ElSubmenu",mixins:[Ge,M.a,Ke],components:{ElCollapseTransition:Ye.a},props:{index:{type:String,required:!0},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},popperClass:String,disabled:Boolean,popperAppendToBody:{type:Boolean,default:void 0}},data:function(){return{popperJS:null,timeout:null,items:{},submenus:{},mouseInChild:!1}},watch:{opened:function(e){var t=this;this.isMenuPopup&&this.$nextTick((function(e){t.updatePopper()}))}},computed:{appendToBody:function(){return void 0===this.popperAppendToBody?this.isFirstLevel:this.popperAppendToBody},menuTransitionName:function(){return this.rootMenu.collapse?"el-zoom-in-left":"el-zoom-in-top"},opened:function(){return this.rootMenu.openedMenus.indexOf(this.index)>-1},active:function(){var e=!1,t=this.submenus,n=this.items;return Object.keys(n).forEach((function(t){n[t].active&&(e=!0)})),Object.keys(t).forEach((function(n){t[n].active&&(e=!0)})),e},hoverBackground:function(){return this.rootMenu.hoverBackground},backgroundColor:function(){return this.rootMenu.backgroundColor||""},activeTextColor:function(){return this.rootMenu.activeTextColor||""},textColor:function(){return this.rootMenu.textColor||""},mode:function(){return this.rootMenu.mode},isMenuPopup:function(){return this.rootMenu.isMenuPopup},titleStyle:function(){return"horizontal"!==this.mode?{color:this.textColor}:{borderBottomColor:this.active?this.rootMenu.activeTextColor?this.activeTextColor:"":"transparent",color:this.active?this.activeTextColor:this.textColor}},isFirstLevel:function(){var e=!0,t=this.$parent;while(t&&t!==this.rootMenu){if(["ElSubmenu","ElMenuItemGroup"].indexOf(t.$options.componentName)>-1){e=!1;break}t=t.$parent}return e}},methods:{handleCollapseToggle:function(e){e?this.initPopper():this.doDestroy()},addItem:function(e){this.$set(this.items,e.index,e)},removeItem:function(e){delete this.items[e.index]},addSubmenu:function(e){this.$set(this.submenus,e.index,e)},removeSubmenu:function(e){delete this.submenus[e.index]},handleClick:function(){var e=this.rootMenu,t=this.disabled;"hover"===e.menuTrigger&&"horizontal"===e.mode||e.collapse&&"vertical"===e.mode||t||this.dispatch("ElMenu","submenu-click",this)},handleMouseenter:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.showTimeout;if("ActiveXObject"in window||"focus"!==e.type||e.relatedTarget){var r=this.rootMenu,i=this.disabled;"click"===r.menuTrigger&&"horizontal"===r.mode||!r.collapse&&"vertical"===r.mode||i||(this.dispatch("ElSubmenu","mouse-enter-child"),clearTimeout(this.timeout),this.timeout=setTimeout((function(){t.rootMenu.openMenu(t.index,t.indexPath)}),n),this.appendToBody&&this.$parent.$el.dispatchEvent(new MouseEvent("mouseenter")))}},handleMouseleave:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.rootMenu;"click"===n.menuTrigger&&"horizontal"===n.mode||!n.collapse&&"vertical"===n.mode||(this.dispatch("ElSubmenu","mouse-leave-child"),clearTimeout(this.timeout),this.timeout=setTimeout((function(){!e.mouseInChild&&e.rootMenu.closeMenu(e.index)}),this.hideTimeout),this.appendToBody&&t&&"ElSubmenu"===this.$parent.$options.name&&this.$parent.handleMouseleave(!0))},handleTitleMouseenter:function(){if("horizontal"!==this.mode||this.rootMenu.backgroundColor){var e=this.$refs["submenu-title"];e&&(e.style.backgroundColor=this.rootMenu.hoverBackground)}},handleTitleMouseleave:function(){if("horizontal"!==this.mode||this.rootMenu.backgroundColor){var e=this.$refs["submenu-title"];e&&(e.style.backgroundColor=this.rootMenu.backgroundColor||"")}},updatePlacement:function(){this.currentPlacement="horizontal"===this.mode&&this.isFirstLevel?"bottom-start":"right-start"},initPopper:function(){this.referenceElm=this.$el,this.popperElm=this.$refs.menu,this.updatePlacement()}},created:function(){var e=this;this.$on("toggle-collapse",this.handleCollapseToggle),this.$on("mouse-enter-child",(function(){e.mouseInChild=!0,clearTimeout(e.timeout)})),this.$on("mouse-leave-child",(function(){e.mouseInChild=!1,clearTimeout(e.timeout)}))},mounted:function(){this.parentMenu.addSubmenu(this),this.rootMenu.addSubmenu(this),this.initPopper()},beforeDestroy:function(){this.parentMenu.removeSubmenu(this),this.rootMenu.removeSubmenu(this)},render:function(e){var t=this,n=this.active,r=this.opened,i=this.paddingStyle,a=this.titleStyle,o=this.backgroundColor,s=this.rootMenu,l=this.currentPlacement,u=this.menuTransitionName,c=this.mode,d=this.disabled,h=this.popperClass,f=this.$slots,p=this.isFirstLevel,m=e("transition",{attrs:{name:u}},[e("div",{ref:"menu",directives:[{name:"show",value:r}],class:["el-menu--"+c,h],on:{mouseenter:function(e){return t.handleMouseenter(e,100)},mouseleave:function(){return t.handleMouseleave(!0)},focus:function(e){return t.handleMouseenter(e,100)}}},[e("ul",{attrs:{role:"menu"},class:["el-menu el-menu--popup","el-menu--popup-"+l],style:{backgroundColor:s.backgroundColor||""}},[f.default])])]),v=e("el-collapse-transition",[e("ul",{attrs:{role:"menu"},class:"el-menu el-menu--inline",directives:[{name:"show",value:r}],style:{backgroundColor:s.backgroundColor||""}},[f.default])]),g="horizontal"===s.mode&&p||"vertical"===s.mode&&!s.collapse?"el-icon-arrow-down":"el-icon-arrow-right";return e("li",{class:{"el-submenu":!0,"is-active":n,"is-opened":r,"is-disabled":d},attrs:{role:"menuitem","aria-haspopup":"true","aria-expanded":r},on:{mouseenter:this.handleMouseenter,mouseleave:function(){return t.handleMouseleave(!1)},focus:this.handleMouseenter}},[e("div",{class:"el-submenu__title",ref:"submenu-title",on:{click:this.handleClick,mouseenter:this.handleTitleMouseenter,mouseleave:this.handleTitleMouseleave},style:[i,a,{backgroundColor:o}]},[f.title,e("i",{class:["el-submenu__icon-arrow",g]})]),this.isMenuPopup?m:v])}},Ze=Xe,Je=s(Ze,qe,He,!1,null,null,null);Je.options.__file="packages/menu/src/submenu.vue";var Qe=Je.exports;Qe.install=function(e){e.component(Qe.name,Qe)};var et=Qe,tt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{staticClass:"el-menu-item",class:{"is-active":e.active,"is-disabled":e.disabled},style:[e.paddingStyle,e.itemStyle,{backgroundColor:e.backgroundColor}],attrs:{role:"menuitem",tabindex:"-1"},on:{click:e.handleClick,mouseenter:e.onMouseEnter,focus:e.onMouseEnter,blur:e.onMouseLeave,mouseleave:e.onMouseLeave}},["ElMenu"===e.parentMenu.$options.componentName&&e.rootMenu.collapse&&e.$slots.title?n("el-tooltip",{attrs:{effect:"dark",placement:"right"}},[n("div",{attrs:{slot:"content"},slot:"content"},[e._t("title")],2),n("div",{staticStyle:{position:"absolute",left:"0",top:"0",height:"100%",width:"100%",display:"inline-block","box-sizing":"border-box",padding:"0 20px"}},[e._t("default")],2)]):[e._t("default"),e._t("title")]],2)},nt=[];tt._withStripped=!0;var rt=n(26),it=n.n(rt),at={name:"ElMenuItem",componentName:"ElMenuItem",mixins:[Ge,M.a],components:{ElTooltip:it.a},props:{index:{default:null,validator:function(e){return"string"===typeof e||null===e}},route:[String,Object],disabled:Boolean},computed:{active:function(){return this.index===this.rootMenu.activeIndex},hoverBackground:function(){return this.rootMenu.hoverBackground},backgroundColor:function(){return this.rootMenu.backgroundColor||""},activeTextColor:function(){return this.rootMenu.activeTextColor||""},textColor:function(){return this.rootMenu.textColor||""},mode:function(){return this.rootMenu.mode},itemStyle:function(){var e={color:this.active?this.activeTextColor:this.textColor};return"horizontal"!==this.mode||this.isNested||(e.borderBottomColor=this.active?this.rootMenu.activeTextColor?this.activeTextColor:"":"transparent"),e},isNested:function(){return this.parentMenu!==this.rootMenu}},methods:{onMouseEnter:function(){("horizontal"!==this.mode||this.rootMenu.backgroundColor)&&(this.$el.style.backgroundColor=this.hoverBackground)},onMouseLeave:function(){("horizontal"!==this.mode||this.rootMenu.backgroundColor)&&(this.$el.style.backgroundColor=this.backgroundColor)},handleClick:function(){this.disabled||(this.dispatch("ElMenu","item-click",this),this.$emit("click",this))}},mounted:function(){this.parentMenu.addItem(this),this.rootMenu.addItem(this)},beforeDestroy:function(){this.parentMenu.removeItem(this),this.rootMenu.removeItem(this)}},ot=at,st=s(ot,tt,nt,!1,null,null,null);st.options.__file="packages/menu/src/menu-item.vue";var lt=st.exports;lt.install=function(e){e.component(lt.name,lt)};var ut=lt,ct=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{staticClass:"el-menu-item-group"},[n("div",{staticClass:"el-menu-item-group__title",style:{paddingLeft:e.levelPadding+"px"}},[e.$slots.title?e._t("title"):[e._v(e._s(e.title))]],2),n("ul",[e._t("default")],2)])},dt=[];ct._withStripped=!0;var ht={name:"ElMenuItemGroup",componentName:"ElMenuItemGroup",inject:["rootMenu"],props:{title:{type:String}},data:function(){return{paddingLeft:20}},computed:{levelPadding:function(){var e=20,t=this.$parent;if(this.rootMenu.collapse)return 20;while(t&&"ElMenu"!==t.$options.componentName)"ElSubmenu"===t.$options.componentName&&(e+=20),t=t.$parent;return e}}},ft=ht,pt=s(ft,ct,dt,!1,null,null,null);pt.options.__file="packages/menu/src/menu-item-group.vue";var mt=pt.exports;mt.install=function(e){e.component(mt.name,mt)};var vt=mt,gt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["textarea"===e.type?"el-textarea":"el-input",e.inputSize?"el-input--"+e.inputSize:"",{"is-disabled":e.inputDisabled,"is-exceed":e.inputExceed,"el-input-group":e.$slots.prepend||e.$slots.append,"el-input-group--append":e.$slots.append,"el-input-group--prepend":e.$slots.prepend,"el-input--prefix":e.$slots.prefix||e.prefixIcon,"el-input--suffix":e.$slots.suffix||e.suffixIcon||e.clearable||e.showPassword}],on:{mouseenter:function(t){e.hovering=!0},mouseleave:function(t){e.hovering=!1}}},["textarea"!==e.type?[e.$slots.prepend?n("div",{staticClass:"el-input-group__prepend"},[e._t("prepend")],2):e._e(),"textarea"!==e.type?n("input",e._b({ref:"input",staticClass:"el-input__inner",attrs:{tabindex:e.tabindex,type:e.showPassword?e.passwordVisible?"text":"password":e.type,disabled:e.inputDisabled,readonly:e.readonly,autocomplete:e.autoComplete||e.autocomplete,"aria-label":e.label},on:{compositionstart:e.handleCompositionStart,compositionupdate:e.handleCompositionUpdate,compositionend:e.handleCompositionEnd,input:e.handleInput,focus:e.handleFocus,blur:e.handleBlur,change:e.handleChange}},"input",e.$attrs,!1)):e._e(),e.$slots.prefix||e.prefixIcon?n("span",{staticClass:"el-input__prefix"},[e._t("prefix"),e.prefixIcon?n("i",{staticClass:"el-input__icon",class:e.prefixIcon}):e._e()],2):e._e(),e.getSuffixVisible()?n("span",{staticClass:"el-input__suffix"},[n("span",{staticClass:"el-input__suffix-inner"},[e.showClear&&e.showPwdVisible&&e.isWordLimitVisible?e._e():[e._t("suffix"),e.suffixIcon?n("i",{staticClass:"el-input__icon",class:e.suffixIcon}):e._e()],e.showClear?n("i",{staticClass:"el-input__icon el-icon-circle-close el-input__clear",on:{mousedown:function(e){e.preventDefault()},click:e.clear}}):e._e(),e.showPwdVisible?n("i",{staticClass:"el-input__icon el-icon-view el-input__clear",on:{click:e.handlePasswordVisible}}):e._e(),e.isWordLimitVisible?n("span",{staticClass:"el-input__count"},[n("span",{staticClass:"el-input__count-inner"},[e._v("\n "+e._s(e.textLength)+"/"+e._s(e.upperLimit)+"\n ")])]):e._e()],2),e.validateState?n("i",{staticClass:"el-input__icon",class:["el-input__validateIcon",e.validateIcon]}):e._e()]):e._e(),e.$slots.append?n("div",{staticClass:"el-input-group__append"},[e._t("append")],2):e._e()]:n("textarea",e._b({ref:"textarea",staticClass:"el-textarea__inner",style:e.textareaStyle,attrs:{tabindex:e.tabindex,disabled:e.inputDisabled,readonly:e.readonly,autocomplete:e.autoComplete||e.autocomplete,"aria-label":e.label},on:{compositionstart:e.handleCompositionStart,compositionupdate:e.handleCompositionUpdate,compositionend:e.handleCompositionEnd,input:e.handleInput,focus:e.handleFocus,blur:e.handleBlur,change:e.handleChange}},"textarea",e.$attrs,!1)),e.isWordLimitVisible&&"textarea"===e.type?n("span",{staticClass:"el-input__count"},[e._v(e._s(e.textLength)+"/"+e._s(e.upperLimit))]):e._e()],2)},yt=[];gt._withStripped=!0;var bt=void 0,xt="\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n",wt=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function _t(e){var t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=parseFloat(t.getPropertyValue("padding-bottom"))+parseFloat(t.getPropertyValue("padding-top")),i=parseFloat(t.getPropertyValue("border-bottom-width"))+parseFloat(t.getPropertyValue("border-top-width")),a=wt.map((function(e){return e+":"+t.getPropertyValue(e)})).join(";");return{contextStyle:a,paddingSize:r,borderSize:i,boxSizing:n}}function Ct(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;bt||(bt=document.createElement("textarea"),document.body.appendChild(bt));var r=_t(e),i=r.paddingSize,a=r.borderSize,o=r.boxSizing,s=r.contextStyle;bt.setAttribute("style",s+";"+xt),bt.value=e.value||e.placeholder||"";var l=bt.scrollHeight,u={};"border-box"===o?l+=a:"content-box"===o&&(l-=i),bt.value="";var c=bt.scrollHeight-i;if(null!==t){var d=c*t;"border-box"===o&&(d=d+i+a),l=Math.max(d,l),u.minHeight=d+"px"}if(null!==n){var h=c*n;"border-box"===o&&(h=h+i+a),l=Math.min(h,l)}return u.height=l+"px",bt.parentNode&&bt.parentNode.removeChild(bt),bt=null,u}var St=n(7),Nt=n.n(St),kt=n(19),Et={name:"ElInput",componentName:"ElInput",mixins:[M.a,k.a],inheritAttrs:!1,inject:{elForm:{default:""},elFormItem:{default:""}},data:function(){return{textareaCalcStyle:{},hovering:!1,focused:!1,isComposing:!1,passwordVisible:!1}},props:{value:[String,Number],size:String,resize:String,form:String,disabled:Boolean,readonly:Boolean,type:{type:String,default:"text"},autosize:{type:[Boolean,Object],default:!1},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(e){return!0}},validateEvent:{type:Boolean,default:!0},suffixIcon:String,prefixIcon:String,label:String,clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},tabindex:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},validateState:function(){return this.elFormItem?this.elFormItem.validateState:""},needStatusIcon:function(){return!!this.elForm&&this.elForm.statusIcon},validateIcon:function(){return{validating:"el-icon-loading",success:"el-icon-circle-check",error:"el-icon-circle-close"}[this.validateState]},textareaStyle:function(){return Nt()({},this.textareaCalcStyle,{resize:this.resize})},inputSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputDisabled:function(){return this.disabled||(this.elForm||{}).disabled},nativeInputValue:function(){return null===this.value||void 0===this.value?"":String(this.value)},showClear:function(){return this.clearable&&!this.inputDisabled&&!this.readonly&&this.nativeInputValue&&(this.focused||this.hovering)},showPwdVisible:function(){return this.showPassword&&!this.inputDisabled&&!this.readonly&&(!!this.nativeInputValue||this.focused)},isWordLimitVisible:function(){return this.showWordLimit&&this.$attrs.maxlength&&("text"===this.type||"textarea"===this.type)&&!this.inputDisabled&&!this.readonly&&!this.showPassword},upperLimit:function(){return this.$attrs.maxlength},textLength:function(){return"number"===typeof this.value?String(this.value).length:(this.value||"").length},inputExceed:function(){return this.isWordLimitVisible&&this.textLength>this.upperLimit}},watch:{value:function(e){this.$nextTick(this.resizeTextarea),this.validateEvent&&this.dispatch("ElFormItem","el.form.change",[e])},nativeInputValue:function(){this.setNativeInputValue()},type:function(){var e=this;this.$nextTick((function(){e.setNativeInputValue(),e.resizeTextarea(),e.updateIconOffset()}))}},methods:{focus:function(){this.getInput().focus()},blur:function(){this.getInput().blur()},getMigratingConfig:function(){return{props:{icon:"icon is removed, use suffix-icon / prefix-icon instead.","on-icon-click":"on-icon-click is removed."},events:{click:"click is removed."}}},handleBlur:function(e){this.focused=!1,this.$emit("blur",e),this.validateEvent&&this.dispatch("ElFormItem","el.form.blur",[this.value])},select:function(){this.getInput().select()},resizeTextarea:function(){if(!this.$isServer){var e=this.autosize,t=this.type;if("textarea"===t)if(e){var n=e.minRows,r=e.maxRows;this.textareaCalcStyle=Ct(this.$refs.textarea,n,r)}else this.textareaCalcStyle={minHeight:Ct(this.$refs.textarea).minHeight}}},setNativeInputValue:function(){var e=this.getInput();e&&e.value!==this.nativeInputValue&&(e.value=this.nativeInputValue)},handleFocus:function(e){this.focused=!0,this.$emit("focus",e)},handleCompositionStart:function(e){this.$emit("compositionstart",e),this.isComposing=!0},handleCompositionUpdate:function(e){this.$emit("compositionupdate",e);var t=e.target.value,n=t[t.length-1]||"";this.isComposing=!Object(kt["isKorean"])(n)},handleCompositionEnd:function(e){this.$emit("compositionend",e),this.isComposing&&(this.isComposing=!1,this.handleInput(e))},handleInput:function(e){this.isComposing||e.target.value!==this.nativeInputValue&&(this.$emit("input",e.target.value),this.$nextTick(this.setNativeInputValue))},handleChange:function(e){this.$emit("change",e.target.value)},calcIconOffset:function(e){var t=[].slice.call(this.$el.querySelectorAll(".el-input__"+e)||[]);if(t.length){for(var n=null,r=0;r<t.length;r++)if(t[r].parentNode===this.$el){n=t[r];break}if(n){var i={suffix:"append",prefix:"prepend"},a=i[e];this.$slots[a]?n.style.transform="translateX("+("suffix"===e?"-":"")+this.$el.querySelector(".el-input-group__"+a).offsetWidth+"px)":n.removeAttribute("style")}}},updateIconOffset:function(){this.calcIconOffset("prefix"),this.calcIconOffset("suffix")},clear:function(){this.$emit("input",""),this.$emit("change",""),this.$emit("clear")},handlePasswordVisible:function(){var e=this;this.passwordVisible=!this.passwordVisible,this.$nextTick((function(){e.focus()}))},getInput:function(){return this.$refs.input||this.$refs.textarea},getSuffixVisible:function(){return this.$slots.suffix||this.suffixIcon||this.showClear||this.showPassword||this.isWordLimitVisible||this.validateState&&this.needStatusIcon}},created:function(){this.$on("inputSelect",this.select)},mounted:function(){this.setNativeInputValue(),this.resizeTextarea(),this.updateIconOffset()},updated:function(){this.$nextTick(this.updateIconOffset)}},Mt=Et,Ot=s(Mt,gt,yt,!1,null,null,null);Ot.options.__file="packages/input/src/input.vue";var Dt=Ot.exports;Dt.install=function(e){e.component(Dt.name,Dt)};var Tt=Dt,At=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["el-input-number",e.inputNumberSize?"el-input-number--"+e.inputNumberSize:"",{"is-disabled":e.inputNumberDisabled},{"is-without-controls":!e.controls},{"is-controls-right":e.controlsAtRight}],on:{dragstart:function(e){e.preventDefault()}}},[e.controls?n("span",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.decrease,expression:"decrease"}],staticClass:"el-input-number__decrease",class:{"is-disabled":e.minDisabled},attrs:{role:"button"},on:{keydown:function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.decrease(t)}}},[n("i",{class:"el-icon-"+(e.controlsAtRight?"arrow-down":"minus")})]):e._e(),e.controls?n("span",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.increase,expression:"increase"}],staticClass:"el-input-number__increase",class:{"is-disabled":e.maxDisabled},attrs:{role:"button"},on:{keydown:function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.increase(t)}}},[n("i",{class:"el-icon-"+(e.controlsAtRight?"arrow-up":"plus")})]):e._e(),n("el-input",{ref:"input",attrs:{value:e.displayValue,placeholder:e.placeholder,disabled:e.inputNumberDisabled,size:e.inputNumberSize,max:e.max,min:e.min,name:e.name,label:e.label},on:{blur:e.handleBlur,focus:e.handleFocus,input:e.handleInput,change:e.handleInputChange},nativeOn:{keydown:[function(t){return!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.preventDefault(),e.increase(t))},function(t){return!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.preventDefault(),e.decrease(t))}]}})],1)},It=[];At._withStripped=!0;var $t={bind:function(e,t,n){var r=null,i=void 0,a=function(){return n.context[t.expression].apply()},o=function(){Date.now()-i<100&&a(),clearInterval(r),r=null};Object(Be["on"])(e,"mousedown",(function(e){0===e.button&&(i=Date.now(),Object(Be["once"])(document,"mouseup",o),clearInterval(r),r=setInterval(a,100))}))}},Pt={name:"ElInputNumber",mixins:[Z()("input")],inject:{elForm:{default:""},elFormItem:{default:""}},directives:{repeatClick:$t},components:{ElInput:m.a},props:{step:{type:Number,default:1},stepStrictly:{type:Boolean,default:!1},max:{type:Number,default:1/0},min:{type:Number,default:-1/0},value:{},disabled:Boolean,size:String,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:""},name:String,label:String,placeholder:String,precision:{type:Number,validator:function(e){return e>=0&&e===parseInt(e,10)}}},data:function(){return{currentValue:0,userInput:null}},watch:{value:{immediate:!0,handler:function(e){var t=void 0===e?e:Number(e);if(void 0!==t){if(isNaN(t))return;if(this.stepStrictly){var n=this.getPrecision(this.step),r=Math.pow(10,n);t=Math.round(t/this.step)*r*this.step/r}void 0!==this.precision&&(t=this.toPrecision(t,this.precision))}t>=this.max&&(t=this.max),t<=this.min&&(t=this.min),this.currentValue=t,this.userInput=null,this.$emit("input",t)}}},computed:{minDisabled:function(){return this._decrease(this.value,this.step)<this.min},maxDisabled:function(){return this._increase(this.value,this.step)>this.max},numPrecision:function(){var e=this.value,t=this.step,n=this.getPrecision,r=this.precision,i=n(t);return void 0!==r?(i>r&&console.warn("[Element Warn][InputNumber]precision should not be less than the decimal places of step"),r):Math.max(n(e),i)},controlsAtRight:function(){return this.controls&&"right"===this.controlsPosition},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},inputNumberSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputNumberDisabled:function(){return this.disabled||!!(this.elForm||{}).disabled},displayValue:function(){if(null!==this.userInput)return this.userInput;var e=this.currentValue;if("number"===typeof e){if(this.stepStrictly){var t=this.getPrecision(this.step),n=Math.pow(10,t);e=Math.round(e/this.step)*n*this.step/n}void 0!==this.precision&&(e=e.toFixed(this.precision))}return e}},methods:{toPrecision:function(e,t){return void 0===t&&(t=this.numPrecision),parseFloat(Math.round(e*Math.pow(10,t))/Math.pow(10,t))},getPrecision:function(e){if(void 0===e)return 0;var t=e.toString(),n=t.indexOf("."),r=0;return-1!==n&&(r=t.length-n-1),r},_increase:function(e,t){if("number"!==typeof e&&void 0!==e)return this.currentValue;var n=Math.pow(10,this.numPrecision);return this.toPrecision((n*e+n*t)/n)},_decrease:function(e,t){if("number"!==typeof e&&void 0!==e)return this.currentValue;var n=Math.pow(10,this.numPrecision);return this.toPrecision((n*e-n*t)/n)},increase:function(){if(!this.inputNumberDisabled&&!this.maxDisabled){var e=this.value||0,t=this._increase(e,this.step);this.setCurrentValue(t)}},decrease:function(){if(!this.inputNumberDisabled&&!this.minDisabled){var e=this.value||0,t=this._decrease(e,this.step);this.setCurrentValue(t)}},handleBlur:function(e){this.$emit("blur",e)},handleFocus:function(e){this.$emit("focus",e)},setCurrentValue:function(e){var t=this.currentValue;"number"===typeof e&&void 0!==this.precision&&(e=this.toPrecision(e,this.precision)),e>=this.max&&(e=this.max),e<=this.min&&(e=this.min),t!==e&&(this.userInput=null,this.$emit("input",e),this.$emit("change",e,t),this.currentValue=e)},handleInput:function(e){this.userInput=e},handleInputChange:function(e){var t=""===e?void 0:Number(e);isNaN(t)&&""!==e||this.setCurrentValue(t),this.userInput=null},select:function(){this.$refs.input.select()}},mounted:function(){var e=this.$refs.input.$refs.input;e.setAttribute("role","spinbutton"),e.setAttribute("aria-valuemax",this.max),e.setAttribute("aria-valuemin",this.min),e.setAttribute("aria-valuenow",this.currentValue),e.setAttribute("aria-disabled",this.inputNumberDisabled)},updated:function(){if(this.$refs&&this.$refs.input){var e=this.$refs.input.$refs.input;e.setAttribute("aria-valuenow",this.currentValue)}}},jt=Pt,Ft=s(jt,At,It,!1,null,null,null);Ft.options.__file="packages/input-number/src/input-number.vue";var Bt=Ft.exports;Bt.install=function(e){e.component(Bt.name,Bt)};var Lt=Bt,zt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"el-radio",class:[e.border&&e.radioSize?"el-radio--"+e.radioSize:"",{"is-disabled":e.isDisabled},{"is-focus":e.focus},{"is-bordered":e.border},{"is-checked":e.model===e.label}],attrs:{role:"radio","aria-checked":e.model===e.label,"aria-disabled":e.isDisabled,tabindex:e.tabIndex},on:{keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"space",32,t.key,[" ","Spacebar"]))return null;t.stopPropagation(),t.preventDefault(),e.model=e.isDisabled?e.model:e.label}}},[n("span",{staticClass:"el-radio__input",class:{"is-disabled":e.isDisabled,"is-checked":e.model===e.label}},[n("span",{staticClass:"el-radio__inner"}),n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],ref:"radio",staticClass:"el-radio__original",attrs:{type:"radio","aria-hidden":"true",name:e.name,disabled:e.isDisabled,tabindex:"-1",autocomplete:"off"},domProps:{value:e.label,checked:e._q(e.model,e.label)},on:{focus:function(t){e.focus=!0},blur:function(t){e.focus=!1},change:[function(t){e.model=e.label},e.handleChange]}})]),n("span",{staticClass:"el-radio__label",on:{keydown:function(e){e.stopPropagation()}}},[e._t("default"),e.$slots.default?e._e():[e._v(e._s(e.label))]],2)])},Rt=[];zt._withStripped=!0;var Vt={name:"ElRadio",mixins:[M.a],inject:{elForm:{default:""},elFormItem:{default:""}},componentName:"ElRadio",props:{value:{},label:{},disabled:Boolean,name:String,border:Boolean,size:String},data:function(){return{focus:!1}},computed:{isGroup:function(){var e=this.$parent;while(e){if("ElRadioGroup"===e.$options.componentName)return this._radioGroup=e,!0;e=e.$parent}return!1},model:{get:function(){return this.isGroup?this._radioGroup.value:this.value},set:function(e){this.isGroup?this.dispatch("ElRadioGroup","input",[e]):this.$emit("input",e),this.$refs.radio&&(this.$refs.radio.checked=this.model===this.label)}},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},radioSize:function(){var e=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup&&this._radioGroup.radioGroupSize||e},isDisabled:function(){return this.isGroup?this._radioGroup.disabled||this.disabled||(this.elForm||{}).disabled:this.disabled||(this.elForm||{}).disabled},tabIndex:function(){return this.isDisabled||this.isGroup&&this.model!==this.label?-1:0}},methods:{handleChange:function(){var e=this;this.$nextTick((function(){e.$emit("change",e.model),e.isGroup&&e.dispatch("ElRadioGroup","handleChange",e.model)}))}}},qt=Vt,Ht=s(qt,zt,Rt,!1,null,null,null);Ht.options.__file="packages/radio/src/radio.vue";var Ut=Ht.exports;Ut.install=function(e){e.component(Ut.name,Ut)};var Wt=Ut,Yt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n(e._elTag,{tag:"component",staticClass:"el-radio-group",attrs:{role:"radiogroup"},on:{keydown:e.handleKeydown}},[e._t("default")],2)},Gt=[];Yt._withStripped=!0;var Kt=Object.freeze({LEFT:37,UP:38,RIGHT:39,DOWN:40}),Xt={name:"ElRadioGroup",componentName:"ElRadioGroup",inject:{elFormItem:{default:""}},mixins:[M.a],props:{value:{},size:String,fill:String,textColor:String,disabled:Boolean},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},_elTag:function(){var e=(this.$vnode.data||{}).tag;return e&&"component"!==e||(e="div"),e},radioGroupSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size}},created:function(){var e=this;this.$on("handleChange",(function(t){e.$emit("change",t)}))},mounted:function(){var e=this.$el.querySelectorAll("[type=radio]"),t=this.$el.querySelectorAll("[role=radio]")[0];![].some.call(e,(function(e){return e.checked}))&&t&&(t.tabIndex=0)},methods:{handleKeydown:function(e){var t=e.target,n="INPUT"===t.nodeName?"[type=radio]":"[role=radio]",r=this.$el.querySelectorAll(n),i=r.length,a=[].indexOf.call(r,t),o=this.$el.querySelectorAll("[role=radio]");switch(e.keyCode){case Kt.LEFT:case Kt.UP:e.stopPropagation(),e.preventDefault(),0===a?(o[i-1].click(),o[i-1].focus()):(o[a-1].click(),o[a-1].focus());break;case Kt.RIGHT:case Kt.DOWN:a===i-1?(e.stopPropagation(),e.preventDefault(),o[0].click(),o[0].focus()):(o[a+1].click(),o[a+1].focus());break;default:break}}},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",[this.value])}}},Zt=Xt,Jt=s(Zt,Yt,Gt,!1,null,null,null);Jt.options.__file="packages/radio/src/radio-group.vue";var Qt=Jt.exports;Qt.install=function(e){e.component(Qt.name,Qt)};var en=Qt,tn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"el-radio-button",class:[e.size?"el-radio-button--"+e.size:"",{"is-active":e.value===e.label},{"is-disabled":e.isDisabled},{"is-focus":e.focus}],attrs:{role:"radio","aria-checked":e.value===e.label,"aria-disabled":e.isDisabled,tabindex:e.tabIndex},on:{keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"space",32,t.key,[" ","Spacebar"]))return null;t.stopPropagation(),t.preventDefault(),e.value=e.isDisabled?e.value:e.label}}},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"el-radio-button__orig-radio",attrs:{type:"radio",name:e.name,disabled:e.isDisabled,tabindex:"-1",autocomplete:"off"},domProps:{value:e.label,checked:e._q(e.value,e.label)},on:{change:[function(t){e.value=e.label},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}}),n("span",{staticClass:"el-radio-button__inner",style:e.value===e.label?e.activeStyle:null,on:{keydown:function(e){e.stopPropagation()}}},[e._t("default"),e.$slots.default?e._e():[e._v(e._s(e.label))]],2)])},nn=[];tn._withStripped=!0;var rn={name:"ElRadioButton",mixins:[M.a],inject:{elForm:{default:""},elFormItem:{default:""}},props:{label:{},disabled:Boolean,name:String},data:function(){return{focus:!1}},computed:{value:{get:function(){return this._radioGroup.value},set:function(e){this._radioGroup.$emit("input",e)}},_radioGroup:function(){var e=this.$parent;while(e){if("ElRadioGroup"===e.$options.componentName)return e;e=e.$parent}return!1},activeStyle:function(){return{backgroundColor:this._radioGroup.fill||"",borderColor:this._radioGroup.fill||"",boxShadow:this._radioGroup.fill?"-1px 0 0 0 "+this._radioGroup.fill:"",color:this._radioGroup.textColor||""}},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},size:function(){return this._radioGroup.radioGroupSize||this._elFormItemSize||(this.$ELEMENT||{}).size},isDisabled:function(){return this.disabled||this._radioGroup.disabled||(this.elForm||{}).disabled},tabIndex:function(){return this.isDisabled||this._radioGroup&&this.value!==this.label?-1:0}},methods:{handleChange:function(){var e=this;this.$nextTick((function(){e.dispatch("ElRadioGroup","handleChange",e.value)}))}}},an=rn,on=s(an,tn,nn,!1,null,null,null);on.options.__file="packages/radio/src/radio-button.vue";var sn=on.exports;sn.install=function(e){e.component(sn.name,sn)};var ln=sn,un=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"el-checkbox",class:[e.border&&e.checkboxSize?"el-checkbox--"+e.checkboxSize:"",{"is-disabled":e.isDisabled},{"is-bordered":e.border},{"is-checked":e.isChecked}],attrs:{id:e.id}},[n("span",{staticClass:"el-checkbox__input",class:{"is-disabled":e.isDisabled,"is-checked":e.isChecked,"is-indeterminate":e.indeterminate,"is-focus":e.focus},attrs:{tabindex:!!e.indeterminate&&0,role:!!e.indeterminate&&"checkbox","aria-checked":!!e.indeterminate&&"mixed"}},[n("span",{staticClass:"el-checkbox__inner"}),e.trueLabel||e.falseLabel?n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox","aria-hidden":e.indeterminate?"true":"false",name:e.name,disabled:e.isDisabled,"true-value":e.trueLabel,"false-value":e.falseLabel},domProps:{checked:Array.isArray(e.model)?e._i(e.model,null)>-1:e._q(e.model,e.trueLabel)},on:{change:[function(t){var n=e.model,r=t.target,i=r.checked?e.trueLabel:e.falseLabel;if(Array.isArray(n)){var a=null,o=e._i(n,a);r.checked?o<0&&(e.model=n.concat([a])):o>-1&&(e.model=n.slice(0,o).concat(n.slice(o+1)))}else e.model=i},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox","aria-hidden":e.indeterminate?"true":"false",disabled:e.isDisabled,name:e.name},domProps:{value:e.label,checked:Array.isArray(e.model)?e._i(e.model,e.label)>-1:e.model},on:{change:[function(t){var n=e.model,r=t.target,i=!!r.checked;if(Array.isArray(n)){var a=e.label,o=e._i(n,a);r.checked?o<0&&(e.model=n.concat([a])):o>-1&&(e.model=n.slice(0,o).concat(n.slice(o+1)))}else e.model=i},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}})]),e.$slots.default||e.label?n("span",{staticClass:"el-checkbox__label"},[e._t("default"),e.$slots.default?e._e():[e._v(e._s(e.label))]],2):e._e()])},cn=[];un._withStripped=!0;var dn={name:"ElCheckbox",mixins:[M.a],inject:{elForm:{default:""},elFormItem:{default:""}},componentName:"ElCheckbox",data:function(){return{selfModel:!1,focus:!1,isLimitExceeded:!1}},computed:{model:{get:function(){return this.isGroup?this.store:void 0!==this.value?this.value:this.selfModel},set:function(e){this.isGroup?(this.isLimitExceeded=!1,void 0!==this._checkboxGroup.min&&e.length<this._checkboxGroup.min&&(this.isLimitExceeded=!0),void 0!==this._checkboxGroup.max&&e.length>this._checkboxGroup.max&&(this.isLimitExceeded=!0),!1===this.isLimitExceeded&&this.dispatch("ElCheckboxGroup","input",[e])):(this.$emit("input",e),this.selfModel=e)}},isChecked:function(){return"[object Boolean]"==={}.toString.call(this.model)?this.model:Array.isArray(this.model)?this.model.indexOf(this.label)>-1:null!==this.model&&void 0!==this.model?this.model===this.trueLabel:void 0},isGroup:function(){var e=this.$parent;while(e){if("ElCheckboxGroup"===e.$options.componentName)return this._checkboxGroup=e,!0;e=e.$parent}return!1},store:function(){return this._checkboxGroup?this._checkboxGroup.value:this.value},isLimitDisabled:function(){var e=this._checkboxGroup,t=e.max,n=e.min;return!(!t&&!n)&&this.model.length>=t&&!this.isChecked||this.model.length<=n&&this.isChecked},isDisabled:function(){return this.isGroup?this._checkboxGroup.disabled||this.disabled||(this.elForm||{}).disabled||this.isLimitDisabled:this.disabled||(this.elForm||{}).disabled},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxSize:function(){var e=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup&&this._checkboxGroup.checkboxGroupSize||e}},props:{value:{},label:{},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:String,trueLabel:[String,Number],falseLabel:[String,Number],id:String,controls:String,border:Boolean,size:String},methods:{addToStore:function(){Array.isArray(this.model)&&-1===this.model.indexOf(this.label)?this.model.push(this.label):this.model=this.trueLabel||!0},handleChange:function(e){var t=this;if(!this.isLimitExceeded){var n=void 0;n=e.target.checked?void 0===this.trueLabel||this.trueLabel:void 0!==this.falseLabel&&this.falseLabel,this.$emit("change",n,e),this.$nextTick((function(){t.isGroup&&t.dispatch("ElCheckboxGroup","change",[t._checkboxGroup.value])}))}}},created:function(){this.checked&&this.addToStore()},mounted:function(){this.indeterminate&&this.$el.setAttribute("aria-controls",this.controls)},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",e)}}},hn=dn,fn=s(hn,un,cn,!1,null,null,null);fn.options.__file="packages/checkbox/src/checkbox.vue";var pn=fn.exports;pn.install=function(e){e.component(pn.name,pn)};var mn=pn,vn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"el-checkbox-button",class:[e.size?"el-checkbox-button--"+e.size:"",{"is-disabled":e.isDisabled},{"is-checked":e.isChecked},{"is-focus":e.focus}],attrs:{role:"checkbox","aria-checked":e.isChecked,"aria-disabled":e.isDisabled}},[e.trueLabel||e.falseLabel?n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"el-checkbox-button__original",attrs:{type:"checkbox",name:e.name,disabled:e.isDisabled,"true-value":e.trueLabel,"false-value":e.falseLabel},domProps:{checked:Array.isArray(e.model)?e._i(e.model,null)>-1:e._q(e.model,e.trueLabel)},on:{change:[function(t){var n=e.model,r=t.target,i=r.checked?e.trueLabel:e.falseLabel;if(Array.isArray(n)){var a=null,o=e._i(n,a);r.checked?o<0&&(e.model=n.concat([a])):o>-1&&(e.model=n.slice(0,o).concat(n.slice(o+1)))}else e.model=i},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"el-checkbox-button__original",attrs:{type:"checkbox",name:e.name,disabled:e.isDisabled},domProps:{value:e.label,checked:Array.isArray(e.model)?e._i(e.model,e.label)>-1:e.model},on:{change:[function(t){var n=e.model,r=t.target,i=!!r.checked;if(Array.isArray(n)){var a=e.label,o=e._i(n,a);r.checked?o<0&&(e.model=n.concat([a])):o>-1&&(e.model=n.slice(0,o).concat(n.slice(o+1)))}else e.model=i},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}}),e.$slots.default||e.label?n("span",{staticClass:"el-checkbox-button__inner",style:e.isChecked?e.activeStyle:null},[e._t("default",[e._v(e._s(e.label))])],2):e._e()])},gn=[];vn._withStripped=!0;var yn={name:"ElCheckboxButton",mixins:[M.a],inject:{elForm:{default:""},elFormItem:{default:""}},data:function(){return{selfModel:!1,focus:!1,isLimitExceeded:!1}},props:{value:{},label:{},disabled:Boolean,checked:Boolean,name:String,trueLabel:[String,Number],falseLabel:[String,Number]},computed:{model:{get:function(){return this._checkboxGroup?this.store:void 0!==this.value?this.value:this.selfModel},set:function(e){this._checkboxGroup?(this.isLimitExceeded=!1,void 0!==this._checkboxGroup.min&&e.length<this._checkboxGroup.min&&(this.isLimitExceeded=!0),void 0!==this._checkboxGroup.max&&e.length>this._checkboxGroup.max&&(this.isLimitExceeded=!0),!1===this.isLimitExceeded&&this.dispatch("ElCheckboxGroup","input",[e])):void 0!==this.value?this.$emit("input",e):this.selfModel=e}},isChecked:function(){return"[object Boolean]"==={}.toString.call(this.model)?this.model:Array.isArray(this.model)?this.model.indexOf(this.label)>-1:null!==this.model&&void 0!==this.model?this.model===this.trueLabel:void 0},_checkboxGroup:function(){var e=this.$parent;while(e){if("ElCheckboxGroup"===e.$options.componentName)return e;e=e.$parent}return!1},store:function(){return this._checkboxGroup?this._checkboxGroup.value:this.value},activeStyle:function(){return{backgroundColor:this._checkboxGroup.fill||"",borderColor:this._checkboxGroup.fill||"",color:this._checkboxGroup.textColor||"","box-shadow":"-1px 0 0 0 "+this._checkboxGroup.fill}},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},size:function(){return this._checkboxGroup.checkboxGroupSize||this._elFormItemSize||(this.$ELEMENT||{}).size},isLimitDisabled:function(){var e=this._checkboxGroup,t=e.max,n=e.min;return!(!t&&!n)&&this.model.length>=t&&!this.isChecked||this.model.length<=n&&this.isChecked},isDisabled:function(){return this._checkboxGroup?this._checkboxGroup.disabled||this.disabled||(this.elForm||{}).disabled||this.isLimitDisabled:this.disabled||(this.elForm||{}).disabled}},methods:{addToStore:function(){Array.isArray(this.model)&&-1===this.model.indexOf(this.label)?this.model.push(this.label):this.model=this.trueLabel||!0},handleChange:function(e){var t=this;if(!this.isLimitExceeded){var n=void 0;n=e.target.checked?void 0===this.trueLabel||this.trueLabel:void 0!==this.falseLabel&&this.falseLabel,this.$emit("change",n,e),this.$nextTick((function(){t._checkboxGroup&&t.dispatch("ElCheckboxGroup","change",[t._checkboxGroup.value])}))}}},created:function(){this.checked&&this.addToStore()}},bn=yn,xn=s(bn,vn,gn,!1,null,null,null);xn.options.__file="packages/checkbox/src/checkbox-button.vue";var wn=xn.exports;wn.install=function(e){e.component(wn.name,wn)};var _n=wn,Cn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-checkbox-group",attrs:{role:"group","aria-label":"checkbox-group"}},[e._t("default")],2)},Sn=[];Cn._withStripped=!0;var Nn={name:"ElCheckboxGroup",componentName:"ElCheckboxGroup",mixins:[M.a],inject:{elFormItem:{default:""}},props:{value:{},disabled:Boolean,min:Number,max:Number,size:String,fill:String,textColor:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxGroupSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size}},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",[e])}}},kn=Nn,En=s(kn,Cn,Sn,!1,null,null,null);En.options.__file="packages/checkbox/src/checkbox-group.vue";var Mn=En.exports;Mn.install=function(e){e.component(Mn.name,Mn)};var On=Mn,Dn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-switch",class:{"is-disabled":e.switchDisabled,"is-checked":e.checked},attrs:{role:"switch","aria-checked":e.checked,"aria-disabled":e.switchDisabled},on:{click:function(t){return t.preventDefault(),e.switchValue(t)}}},[n("input",{ref:"input",staticClass:"el-switch__input",attrs:{type:"checkbox",id:e.id,name:e.name,"true-value":e.activeValue,"false-value":e.inactiveValue,disabled:e.switchDisabled},on:{change:e.handleChange,keydown:function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.switchValue(t)}}}),e.inactiveIconClass||e.inactiveText?n("span",{class:["el-switch__label","el-switch__label--left",e.checked?"":"is-active"]},[e.inactiveIconClass?n("i",{class:[e.inactiveIconClass]}):e._e(),!e.inactiveIconClass&&e.inactiveText?n("span",{attrs:{"aria-hidden":e.checked}},[e._v(e._s(e.inactiveText))]):e._e()]):e._e(),n("span",{ref:"core",staticClass:"el-switch__core",style:{width:e.coreWidth+"px"}}),e.activeIconClass||e.activeText?n("span",{class:["el-switch__label","el-switch__label--right",e.checked?"is-active":""]},[e.activeIconClass?n("i",{class:[e.activeIconClass]}):e._e(),!e.activeIconClass&&e.activeText?n("span",{attrs:{"aria-hidden":!e.checked}},[e._v(e._s(e.activeText))]):e._e()]):e._e()])},Tn=[];Dn._withStripped=!0;var An={name:"ElSwitch",mixins:[Z()("input"),k.a,M.a],inject:{elForm:{default:""}},props:{value:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},width:{type:Number,default:40},activeIconClass:{type:String,default:""},inactiveIconClass:{type:String,default:""},activeText:String,inactiveText:String,activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},id:String},data:function(){return{coreWidth:this.width}},created:function(){~[this.activeValue,this.inactiveValue].indexOf(this.value)||this.$emit("input",this.inactiveValue)},computed:{checked:function(){return this.value===this.activeValue},switchDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{checked:function(){this.$refs.input.checked=this.checked,(this.activeColor||this.inactiveColor)&&this.setBackgroundColor(),this.validateEvent&&this.dispatch("ElFormItem","el.form.change",[this.value])}},methods:{handleChange:function(e){var t=this,n=this.checked?this.inactiveValue:this.activeValue;this.$emit("input",n),this.$emit("change",n),this.$nextTick((function(){t.$refs.input&&(t.$refs.input.checked=t.checked)}))},setBackgroundColor:function(){var e=this.checked?this.activeColor:this.inactiveColor;this.$refs.core.style.borderColor=e,this.$refs.core.style.backgroundColor=e},switchValue:function(){!this.switchDisabled&&this.handleChange()},getMigratingConfig:function(){return{props:{"on-color":"on-color is renamed to active-color.","off-color":"off-color is renamed to inactive-color.","on-text":"on-text is renamed to active-text.","off-text":"off-text is renamed to inactive-text.","on-value":"on-value is renamed to active-value.","off-value":"off-value is renamed to inactive-value.","on-icon-class":"on-icon-class is renamed to active-icon-class.","off-icon-class":"off-icon-class is renamed to inactive-icon-class."}}}},mounted:function(){this.coreWidth=this.width||40,(this.activeColor||this.inactiveColor)&&this.setBackgroundColor(),this.$refs.input.checked=this.checked}},In=An,$n=s(In,Dn,Tn,!1,null,null,null);$n.options.__file="packages/switch/src/component.vue";var Pn=$n.exports;Pn.install=function(e){e.component(Pn.name,Pn)};var jn=Pn,Fn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleClose,expression:"handleClose"}],staticClass:"el-select",class:[e.selectSize?"el-select--"+e.selectSize:""],on:{click:function(t){return t.stopPropagation(),e.toggleMenu(t)}}},[e.multiple?n("div",{ref:"tags",staticClass:"el-select__tags",style:{"max-width":e.inputWidth-32+"px",width:"100%"}},[e.collapseTags&&e.selected.length?n("span",[n("el-tag",{attrs:{closable:!e.selectDisabled,size:e.collapseTagSize,hit:e.selected[0].hitState,type:"info","disable-transitions":""},on:{close:function(t){e.deleteTag(t,e.selected[0])}}},[n("span",{staticClass:"el-select__tags-text"},[e._v(e._s(e.selected[0].currentLabel))])]),e.selected.length>1?n("el-tag",{attrs:{closable:!1,size:e.collapseTagSize,type:"info","disable-transitions":""}},[n("span",{staticClass:"el-select__tags-text"},[e._v("+ "+e._s(e.selected.length-1))])]):e._e()],1):e._e(),e.collapseTags?e._e():n("transition-group",{on:{"after-leave":e.resetInputHeight}},e._l(e.selected,(function(t){return n("el-tag",{key:e.getValueKey(t),attrs:{closable:!e.selectDisabled,size:e.collapseTagSize,hit:t.hitState,type:"info","disable-transitions":""},on:{close:function(n){e.deleteTag(n,t)}}},[n("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.currentLabel))])])})),1),e.filterable?n("input",{directives:[{name:"model",rawName:"v-model",value:e.query,expression:"query"}],ref:"input",staticClass:"el-select__input",class:[e.selectSize?"is-"+e.selectSize:""],style:{"flex-grow":"1",width:e.inputLength/(e.inputWidth-32)+"%","max-width":e.inputWidth-42+"px"},attrs:{type:"text",disabled:e.selectDisabled,autocomplete:e.autoComplete||e.autocomplete},domProps:{value:e.query},on:{focus:e.handleFocus,blur:function(t){e.softFocus=!1},keyup:e.managePlaceholder,keydown:[e.resetInputState,function(t){if(!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;t.preventDefault(),e.handleNavigate("next")},function(t){if(!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"]))return null;t.preventDefault(),e.handleNavigate("prev")},function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.selectOption(t))},function(t){if(!("button"in t)&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;t.stopPropagation(),t.preventDefault(),e.visible=!1},function(t){return!("button"in t)&&e._k(t.keyCode,"delete",[8,46],t.key,["Backspace","Delete","Del"])?null:e.deletePrevTag(t)},function(t){if(!("button"in t)&&e._k(t.keyCode,"tab",9,t.key,"Tab"))return null;e.visible=!1}],compositionstart:e.handleComposition,compositionupdate:e.handleComposition,compositionend:e.handleComposition,input:[function(t){t.target.composing||(e.query=t.target.value)},e.debouncedQueryChange]}}):e._e()],1):e._e(),n("el-input",{ref:"reference",class:{"is-focus":e.visible},attrs:{type:"text",placeholder:e.currentPlaceholder,name:e.name,id:e.id,autocomplete:e.autoComplete||e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,tabindex:e.multiple&&e.filterable?"-1":null},on:{focus:e.handleFocus,blur:e.handleBlur,input:e.debouncedOnInputChange,compositionstart:e.handleComposition,compositionupdate:e.handleComposition,compositionend:e.handleComposition},nativeOn:{keydown:[function(t){if(!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;t.stopPropagation(),t.preventDefault(),e.handleNavigate("next")},function(t){if(!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"]))return null;t.stopPropagation(),t.preventDefault(),e.handleNavigate("prev")},function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.selectOption(t))},function(t){if(!("button"in t)&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;t.stopPropagation(),t.preventDefault(),e.visible=!1},function(t){if(!("button"in t)&&e._k(t.keyCode,"tab",9,t.key,"Tab"))return null;e.visible=!1}],mouseenter:function(t){e.inputHovering=!0},mouseleave:function(t){e.inputHovering=!1}},model:{value:e.selectedLabel,callback:function(t){e.selectedLabel=t},expression:"selectedLabel"}},[e.$slots.prefix?n("template",{slot:"prefix"},[e._t("prefix")],2):e._e(),n("template",{slot:"suffix"},[n("i",{directives:[{name:"show",rawName:"v-show",value:!e.showClose,expression:"!showClose"}],class:["el-select__caret","el-input__icon","el-icon-"+e.iconClass]}),e.showClose?n("i",{staticClass:"el-select__caret el-input__icon el-icon-circle-close",on:{click:e.handleClearClick}}):e._e()])],2),n("transition",{attrs:{name:"el-zoom-in-top"},on:{"before-enter":e.handleMenuEnter,"after-leave":e.doDestroy}},[n("el-select-menu",{directives:[{name:"show",rawName:"v-show",value:e.visible&&!1!==e.emptyText,expression:"visible && emptyText !== false"}],ref:"popper",attrs:{"append-to-body":e.popperAppendToBody}},[n("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:e.options.length>0&&!e.loading,expression:"options.length > 0 && !loading"}],ref:"scrollbar",class:{"is-empty":!e.allowCreate&&e.query&&0===e.filteredOptionsCount},attrs:{tag:"ul","wrap-class":"el-select-dropdown__wrap","view-class":"el-select-dropdown__list"}},[e.showNewOption?n("el-option",{attrs:{value:e.query,created:""}}):e._e(),e._t("default")],2),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&0===e.options.length)?[e.$slots.empty?e._t("empty"):n("p",{staticClass:"el-select-dropdown__empty"},[e._v("\n "+e._s(e.emptyText)+"\n ")])]:e._e()],2)],1)],1)},Bn=[];Fn._withStripped=!0;var Ln=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-select-dropdown el-popper",class:[{"is-multiple":e.$parent.multiple},e.popperClass],style:{minWidth:e.minWidth}},[e._t("default")],2)},zn=[];Ln._withStripped=!0;var Rn={name:"ElSelectDropdown",componentName:"ElSelectDropdown",mixins:[q.a],props:{placement:{default:"bottom-start"},boundariesPadding:{default:0},popperOptions:{default:function(){return{gpuAcceleration:!1}}},visibleArrow:{default:!0},appendToBody:{type:Boolean,default:!0}},data:function(){return{minWidth:""}},computed:{popperClass:function(){return this.$parent.popperClass}},watch:{"$parent.inputWidth":function(){this.minWidth=this.$parent.$el.getBoundingClientRect().width+"px"}},mounted:function(){var e=this;this.referenceElm=this.$parent.$refs.reference.$el,this.$parent.popperElm=this.popperElm=this.$el,this.$on("updatePopper",(function(){e.$parent.visible&&e.updatePopper()})),this.$on("destroyPopper",this.destroyPopper)}},Vn=Rn,qn=s(Vn,Ln,zn,!1,null,null,null);qn.options.__file="packages/select/src/select-dropdown.vue";var Hn=qn.exports,Un=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-select-dropdown__item",class:{selected:e.itemSelected,"is-disabled":e.disabled||e.groupDisabled||e.limitReached,hover:e.hover},on:{mouseenter:e.hoverItem,click:function(t){return t.stopPropagation(),e.selectOptionClick(t)}}},[e._t("default",[n("span",[e._v(e._s(e.currentLabel))])])],2)},Wn=[];Un._withStripped=!0;var Yn="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gn={mixins:[M.a],name:"ElOption",componentName:"ElOption",inject:["select"],props:{value:{required:!0},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},data:function(){return{index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}},computed:{isObject:function(){return"[object object]"===Object.prototype.toString.call(this.value).toLowerCase()},currentLabel:function(){return this.label||(this.isObject?"":this.value)},currentValue:function(){return this.value||this.label||""},itemSelected:function(){return this.select.multiple?this.contains(this.select.value,this.value):this.isEqual(this.value,this.select.value)},limitReached:function(){return!!this.select.multiple&&(!this.itemSelected&&(this.select.value||[]).length>=this.select.multipleLimit&&this.select.multipleLimit>0)}},watch:{currentLabel:function(){this.created||this.select.remote||this.dispatch("ElSelect","setSelected")},value:function(e,t){var n=this.select,r=n.remote,i=n.valueKey;if(!this.created&&!r){if(i&&"object"===("undefined"===typeof e?"undefined":Yn(e))&&"object"===("undefined"===typeof t?"undefined":Yn(t))&&e[i]===t[i])return;this.dispatch("ElSelect","setSelected")}}},methods:{isEqual:function(e,t){if(this.isObject){var n=this.select.valueKey;return Object(y["getValueByPath"])(e,n)===Object(y["getValueByPath"])(t,n)}return e===t},contains:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];if(this.isObject){var n=this.select.valueKey;return e&&e.some((function(e){return Object(y["getValueByPath"])(e,n)===Object(y["getValueByPath"])(t,n)}))}return e&&e.indexOf(t)>-1},handleGroupDisabled:function(e){this.groupDisabled=e},hoverItem:function(){this.disabled||this.groupDisabled||(this.select.hoverIndex=this.select.options.indexOf(this))},selectOptionClick:function(){!0!==this.disabled&&!0!==this.groupDisabled&&this.dispatch("ElSelect","handleOptionClick",[this,!0])},queryChange:function(e){this.visible=new RegExp(Object(y["escapeRegexpString"])(e),"i").test(this.currentLabel)||this.created,this.visible||this.select.filteredOptionsCount--}},created:function(){this.select.options.push(this),this.select.cachedOptions.push(this),this.select.optionsCount++,this.select.filteredOptionsCount++,this.$on("queryChange",this.queryChange),this.$on("handleGroupDisabled",this.handleGroupDisabled)},beforeDestroy:function(){var e=this.select,t=e.selected,n=e.multiple,r=n?t:[t],i=this.select.cachedOptions.indexOf(this),a=r.indexOf(this);i>-1&&a<0&&this.select.cachedOptions.splice(i,1),this.select.onOptionDestroy(this.select.options.indexOf(this))}},Kn=Gn,Xn=s(Kn,Un,Wn,!1,null,null,null);Xn.options.__file="packages/select/src/option.vue";var Zn=Xn.exports,Jn=n(29),Qn=n.n(Jn),er=n(15),tr=n(27),nr=n.n(tr),rr={data:function(){return{hoverOption:-1}},computed:{optionsAllDisabled:function(){return this.options.filter((function(e){return e.visible})).every((function(e){return e.disabled}))}},watch:{hoverIndex:function(e){var t=this;"number"===typeof e&&e>-1&&(this.hoverOption=this.options[e]||{}),this.options.forEach((function(e){e.hover=t.hoverOption===e}))}},methods:{navigateOptions:function(e){var t=this;if(this.visible){if(0!==this.options.length&&0!==this.filteredOptionsCount&&!this.optionsAllDisabled){"next"===e?(this.hoverIndex++,this.hoverIndex===this.options.length&&(this.hoverIndex=0)):"prev"===e&&(this.hoverIndex--,this.hoverIndex<0&&(this.hoverIndex=this.options.length-1));var n=this.options[this.hoverIndex];!0!==n.disabled&&!0!==n.groupDisabled&&n.visible||this.navigateOptions(e),this.$nextTick((function(){return t.scrollToOption(t.hoverOption)}))}}else this.visible=!0}}},ir={mixins:[M.a,g.a,Z()("reference"),rr],name:"ElSelect",componentName:"ElSelect",inject:{elForm:{default:""},elFormItem:{default:""}},provide:function(){return{select:this}},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},readonly:function(){return!this.filterable||this.multiple||!Object(y["isIE"])()&&!Object(y["isEdge"])()&&!this.visible},showClose:function(){var e=this.multiple?Array.isArray(this.value)&&this.value.length>0:void 0!==this.value&&null!==this.value&&""!==this.value,t=this.clearable&&!this.selectDisabled&&this.inputHovering&&e;return t},iconClass:function(){return this.remote&&this.filterable?"":this.visible?"arrow-up is-reverse":"arrow-up"},debounce:function(){return this.remote?300:0},emptyText:function(){return this.loading?this.loadingText||this.t("el.select.loading"):(!this.remote||""!==this.query||0!==this.options.length)&&(this.filterable&&this.query&&this.options.length>0&&0===this.filteredOptionsCount?this.noMatchText||this.t("el.select.noMatch"):0===this.options.length?this.noDataText||this.t("el.select.noData"):null)},showNewOption:function(){var e=this,t=this.options.filter((function(e){return!e.created})).some((function(t){return t.currentLabel===e.query}));return this.filterable&&this.allowCreate&&""!==this.query&&!t},selectSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},selectDisabled:function(){return this.disabled||(this.elForm||{}).disabled},collapseTagSize:function(){return["small","mini"].indexOf(this.selectSize)>-1?"mini":"small"},propPlaceholder:function(){return"undefined"!==typeof this.placeholder?this.placeholder:this.t("el.select.placeholder")}},components:{ElInput:m.a,ElSelectMenu:Hn,ElOption:Zn,ElTag:Qn.a,ElScrollbar:U.a},directives:{Clickoutside:L.a},props:{name:String,id:String,value:{required:!0},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(e){return!0}},automaticDropdown:Boolean,size:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:String,remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String,required:!1},defaultFirstOption:Boolean,reserveKeyword:Boolean,valueKey:{type:String,default:"value"},collapseTags:Boolean,popperAppendToBody:{type:Boolean,default:!0}},data:function(){return{options:[],cachedOptions:[],createdLabel:null,createdSelected:!1,selected:this.multiple?[]:{},inputLength:20,inputWidth:0,initialInputHeight:0,cachedPlaceHolder:"",optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,currentPlaceholder:"",menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1}},watch:{selectDisabled:function(){var e=this;this.$nextTick((function(){e.resetInputHeight()}))},propPlaceholder:function(e){this.cachedPlaceHolder=this.currentPlaceholder=e},value:function(e,t){this.multiple&&(this.resetInputHeight(),e&&e.length>0||this.$refs.input&&""!==this.query?this.currentPlaceholder="":this.currentPlaceholder=this.cachedPlaceHolder,this.filterable&&!this.reserveKeyword&&(this.query="",this.handleQueryChange(this.query))),this.setSelected(),this.filterable&&!this.multiple&&(this.inputLength=20),Object(y["valueEquals"])(e,t)||this.dispatch("ElFormItem","el.form.change",e)},visible:function(e){var t=this;e?(this.broadcast("ElSelectDropdown","updatePopper"),this.filterable&&(this.query=this.remote?"":this.selectedLabel,this.handleQueryChange(this.query),this.multiple?this.$refs.input.focus():(this.remote||(this.broadcast("ElOption","queryChange",""),this.broadcast("ElOptionGroup","queryChange")),this.selectedLabel&&(this.currentPlaceholder=this.selectedLabel,this.selectedLabel="")))):(this.broadcast("ElSelectDropdown","destroyPopper"),this.$refs.input&&this.$refs.input.blur(),this.query="",this.previousQuery=null,this.selectedLabel="",this.inputLength=20,this.menuVisibleOnFocus=!1,this.resetHoverIndex(),this.$nextTick((function(){t.$refs.input&&""===t.$refs.input.value&&0===t.selected.length&&(t.currentPlaceholder=t.cachedPlaceHolder)})),this.multiple||(this.selected&&(this.filterable&&this.allowCreate&&this.createdSelected&&this.createdLabel?this.selectedLabel=this.createdLabel:this.selectedLabel=this.selected.currentLabel,this.filterable&&(this.query=this.selectedLabel)),this.filterable&&(this.currentPlaceholder=this.cachedPlaceHolder))),this.$emit("visible-change",e)},options:function(){var e=this;if(!this.$isServer){this.$nextTick((function(){e.broadcast("ElSelectDropdown","updatePopper")})),this.multiple&&this.resetInputHeight();var t=this.$el.querySelectorAll("input");-1===[].indexOf.call(t,document.activeElement)&&this.setSelected(),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()}}},methods:{handleNavigate:function(e){this.isOnComposition||this.navigateOptions(e)},handleComposition:function(e){var t=this,n=e.target.value;if("compositionend"===e.type)this.isOnComposition=!1,this.$nextTick((function(e){return t.handleQueryChange(n)}));else{var r=n[n.length-1]||"";this.isOnComposition=!Object(kt["isKorean"])(r)}},handleQueryChange:function(e){var t=this;this.previousQuery===e||this.isOnComposition||(null!==this.previousQuery||"function"!==typeof this.filterMethod&&"function"!==typeof this.remoteMethod?(this.previousQuery=e,this.$nextTick((function(){t.visible&&t.broadcast("ElSelectDropdown","updatePopper")})),this.hoverIndex=-1,this.multiple&&this.filterable&&this.$nextTick((function(){var e=15*t.$refs.input.value.length+20;t.inputLength=t.collapseTags?Math.min(50,e):e,t.managePlaceholder(),t.resetInputHeight()})),this.remote&&"function"===typeof this.remoteMethod?(this.hoverIndex=-1,this.remoteMethod(e)):"function"===typeof this.filterMethod?(this.filterMethod(e),this.broadcast("ElOptionGroup","queryChange")):(this.filteredOptionsCount=this.optionsCount,this.broadcast("ElOption","queryChange",e),this.broadcast("ElOptionGroup","queryChange")),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()):this.previousQuery=e)},scrollToOption:function(e){var t=Array.isArray(e)&&e[0]?e[0].$el:e.$el;if(this.$refs.popper&&t){var n=this.$refs.popper.$el.querySelector(".el-select-dropdown__wrap");nr()(n,t)}this.$refs.scrollbar&&this.$refs.scrollbar.handleScroll()},handleMenuEnter:function(){var e=this;this.$nextTick((function(){return e.scrollToOption(e.selected)}))},emitChange:function(e){Object(y["valueEquals"])(this.value,e)||this.$emit("change",e)},getOption:function(e){for(var t=void 0,n="[object object]"===Object.prototype.toString.call(e).toLowerCase(),r="[object null]"===Object.prototype.toString.call(e).toLowerCase(),i="[object undefined]"===Object.prototype.toString.call(e).toLowerCase(),a=this.cachedOptions.length-1;a>=0;a--){var o=this.cachedOptions[a],s=n?Object(y["getValueByPath"])(o.value,this.valueKey)===Object(y["getValueByPath"])(e,this.valueKey):o.value===e;if(s){t=o;break}}if(t)return t;var l=n||r||i?"":String(e),u={value:e,currentLabel:l};return this.multiple&&(u.hitState=!1),u},setSelected:function(){var e=this;if(!this.multiple){var t=this.getOption(this.value);return t.created?(this.createdLabel=t.currentLabel,this.createdSelected=!0):this.createdSelected=!1,this.selectedLabel=t.currentLabel,this.selected=t,void(this.filterable&&(this.query=this.selectedLabel))}var n=[];Array.isArray(this.value)&&this.value.forEach((function(t){n.push(e.getOption(t))})),this.selected=n,this.$nextTick((function(){e.resetInputHeight()}))},handleFocus:function(e){this.softFocus?this.softFocus=!1:((this.automaticDropdown||this.filterable)&&(this.filterable&&!this.visible&&(this.menuVisibleOnFocus=!0),this.visible=!0),this.$emit("focus",e))},blur:function(){this.visible=!1,this.$refs.reference.blur()},handleBlur:function(e){var t=this;setTimeout((function(){t.isSilentBlur?t.isSilentBlur=!1:t.$emit("blur",e)}),50),this.softFocus=!1},handleClearClick:function(e){this.deleteSelected(e)},doDestroy:function(){this.$refs.popper&&this.$refs.popper.doDestroy()},handleClose:function(){this.visible=!1},toggleLastOptionHitState:function(e){if(Array.isArray(this.selected)){var t=this.selected[this.selected.length-1];if(t)return!0===e||!1===e?(t.hitState=e,e):(t.hitState=!t.hitState,t.hitState)}},deletePrevTag:function(e){if(e.target.value.length<=0&&!this.toggleLastOptionHitState()){var t=this.value.slice();t.pop(),this.$emit("input",t),this.emitChange(t)}},managePlaceholder:function(){""!==this.currentPlaceholder&&(this.currentPlaceholder=this.$refs.input.value?"":this.cachedPlaceHolder)},resetInputState:function(e){8!==e.keyCode&&this.toggleLastOptionHitState(!1),this.inputLength=15*this.$refs.input.value.length+20,this.resetInputHeight()},resetInputHeight:function(){var e=this;this.collapseTags&&!this.filterable||this.$nextTick((function(){if(e.$refs.reference){var t=e.$refs.reference.$el.childNodes,n=[].filter.call(t,(function(e){return"INPUT"===e.tagName}))[0],r=e.$refs.tags,i=r?Math.round(r.getBoundingClientRect().height):0,a=e.initialInputHeight||40;n.style.height=0===e.selected.length?a+"px":Math.max(r?i+(i>a?6:0):0,a)+"px",e.visible&&!1!==e.emptyText&&e.broadcast("ElSelectDropdown","updatePopper")}}))},resetHoverIndex:function(){var e=this;setTimeout((function(){e.multiple?e.selected.length>0?e.hoverIndex=Math.min.apply(null,e.selected.map((function(t){return e.options.indexOf(t)}))):e.hoverIndex=-1:e.hoverIndex=e.options.indexOf(e.selected)}),300)},handleOptionSelect:function(e,t){var n=this;if(this.multiple){var r=(this.value||[]).slice(),i=this.getValueIndex(r,e.value);i>-1?r.splice(i,1):(this.multipleLimit<=0||r.length<this.multipleLimit)&&r.push(e.value),this.$emit("input",r),this.emitChange(r),e.created&&(this.query="",this.handleQueryChange(""),this.inputLength=20),this.filterable&&this.$refs.input.focus()}else this.$emit("input",e.value),this.emitChange(e.value),this.visible=!1;this.isSilentBlur=t,this.setSoftFocus(),this.visible||this.$nextTick((function(){n.scrollToOption(e)}))},setSoftFocus:function(){this.softFocus=!0;var e=this.$refs.input||this.$refs.reference;e&&e.focus()},getValueIndex:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1],n="[object object]"===Object.prototype.toString.call(t).toLowerCase();if(n){var r=this.valueKey,i=-1;return e.some((function(e,n){return Object(y["getValueByPath"])(e,r)===Object(y["getValueByPath"])(t,r)&&(i=n,!0)})),i}return e.indexOf(t)},toggleMenu:function(){this.selectDisabled||(this.menuVisibleOnFocus?this.menuVisibleOnFocus=!1:this.visible=!this.visible,this.visible&&(this.$refs.input||this.$refs.reference).focus())},selectOption:function(){this.visible?this.options[this.hoverIndex]&&this.handleOptionSelect(this.options[this.hoverIndex]):this.toggleMenu()},deleteSelected:function(e){e.stopPropagation();var t=this.multiple?[]:"";this.$emit("input",t),this.emitChange(t),this.visible=!1,this.$emit("clear")},deleteTag:function(e,t){var n=this.selected.indexOf(t);if(n>-1&&!this.selectDisabled){var r=this.value.slice();r.splice(n,1),this.$emit("input",r),this.emitChange(r),this.$emit("remove-tag",t.value)}e.stopPropagation()},onInputChange:function(){this.filterable&&this.query!==this.selectedLabel&&(this.query=this.selectedLabel,this.handleQueryChange(this.query))},onOptionDestroy:function(e){e>-1&&(this.optionsCount--,this.filteredOptionsCount--,this.options.splice(e,1))},resetInputWidth:function(){this.inputWidth=this.$refs.reference.$el.getBoundingClientRect().width},handleResize:function(){this.resetInputWidth(),this.multiple&&this.resetInputHeight()},checkDefaultFirstOption:function(){this.hoverIndex=-1;for(var e=!1,t=this.options.length-1;t>=0;t--)if(this.options[t].created){e=!0,this.hoverIndex=t;break}if(!e)for(var n=0;n!==this.options.length;++n){var r=this.options[n];if(this.query){if(!r.disabled&&!r.groupDisabled&&r.visible){this.hoverIndex=n;break}}else if(r.itemSelected){this.hoverIndex=n;break}}},getValueKey:function(e){return"[object object]"!==Object.prototype.toString.call(e.value).toLowerCase()?e.value:Object(y["getValueByPath"])(e.value,this.valueKey)}},created:function(){var e=this;this.cachedPlaceHolder=this.currentPlaceholder=this.propPlaceholder,this.multiple&&!Array.isArray(this.value)&&this.$emit("input",[]),!this.multiple&&Array.isArray(this.value)&&this.$emit("input",""),this.debouncedOnInputChange=F()(this.debounce,(function(){e.onInputChange()})),this.debouncedQueryChange=F()(this.debounce,(function(t){e.handleQueryChange(t.target.value)})),this.$on("handleOptionClick",this.handleOptionSelect),this.$on("setSelected",this.setSelected)},mounted:function(){var e=this;this.multiple&&Array.isArray(this.value)&&this.value.length>0&&(this.currentPlaceholder=""),Object(er["addResizeListener"])(this.$el,this.handleResize);var t=this.$refs.reference;if(t&&t.$el){var n={medium:36,small:32,mini:28},r=t.$el.querySelector("input");this.initialInputHeight=r.getBoundingClientRect().height||n[this.selectSize]}this.remote&&this.multiple&&this.resetInputHeight(),this.$nextTick((function(){t&&t.$el&&(e.inputWidth=t.$el.getBoundingClientRect().width)})),this.setSelected()},beforeDestroy:function(){this.$el&&this.handleResize&&Object(er["removeResizeListener"])(this.$el,this.handleResize)}},ar=ir,or=s(ar,Fn,Bn,!1,null,null,null);or.options.__file="packages/select/src/select.vue";var sr=or.exports;sr.install=function(e){e.component(sr.name,sr)};var lr=sr;Zn.install=function(e){e.component(Zn.name,Zn)};var ur=Zn,cr=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("ul",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-select-group__wrap"},[n("li",{staticClass:"el-select-group__title"},[e._v(e._s(e.label))]),n("li",[n("ul",{staticClass:"el-select-group"},[e._t("default")],2)])])},dr=[];cr._withStripped=!0;var hr={mixins:[M.a],name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:{type:Boolean,default:!1}},data:function(){return{visible:!0}},watch:{disabled:function(e){this.broadcast("ElOption","handleGroupDisabled",e)}},methods:{queryChange:function(){this.visible=this.$children&&Array.isArray(this.$children)&&this.$children.some((function(e){return!0===e.visible}))}},created:function(){this.$on("queryChange",this.queryChange)},mounted:function(){this.disabled&&this.broadcast("ElOption","handleGroupDisabled",this.disabled)}},fr=hr,pr=s(fr,cr,dr,!1,null,null,null);pr.options.__file="packages/select/src/option-group.vue";var mr=pr.exports;mr.install=function(e){e.component(mr.name,mr)};var vr=mr,gr=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("button",{staticClass:"el-button",class:[e.type?"el-button--"+e.type:"",e.buttonSize?"el-button--"+e.buttonSize:"",{"is-disabled":e.buttonDisabled,"is-loading":e.loading,"is-plain":e.plain,"is-round":e.round,"is-circle":e.circle}],attrs:{disabled:e.buttonDisabled||e.loading,autofocus:e.autofocus,type:e.nativeType},on:{click:e.handleClick}},[e.loading?n("i",{staticClass:"el-icon-loading"}):e._e(),e.icon&&!e.loading?n("i",{class:e.icon}):e._e(),e.$slots.default?n("span",[e._t("default")],2):e._e()])},yr=[];gr._withStripped=!0;var br={name:"ElButton",inject:{elForm:{default:""},elFormItem:{default:""}},props:{type:{type:String,default:"default"},size:String,icon:{type:String,default:""},nativeType:{type:String,default:"button"},loading:Boolean,disabled:Boolean,plain:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},buttonSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},buttonDisabled:function(){return this.$options.propsData.hasOwnProperty("disabled")?this.disabled:(this.elForm||{}).disabled}},methods:{handleClick:function(e){this.$emit("click",e)}}},xr=br,wr=s(xr,gr,yr,!1,null,null,null);wr.options.__file="packages/button/src/button.vue";var _r=wr.exports;_r.install=function(e){e.component(_r.name,_r)};var Cr=_r,Sr=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-button-group"},[e._t("default")],2)},Nr=[];Sr._withStripped=!0;var kr={name:"ElButtonGroup"},Er=kr,Mr=s(Er,Sr,Nr,!1,null,null,null);Mr.options.__file="packages/button/src/button-group.vue";var Or=Mr.exports;Or.install=function(e){e.component(Or.name,Or)};var Dr=Or,Tr=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-table",class:[{"el-table--fit":e.fit,"el-table--striped":e.stripe,"el-table--border":e.border||e.isGroup,"el-table--hidden":e.isHidden,"el-table--group":e.isGroup,"el-table--fluid-height":e.maxHeight,"el-table--scrollable-x":e.layout.scrollX,"el-table--scrollable-y":e.layout.scrollY,"el-table--enable-row-hover":!e.store.states.isComplex,"el-table--enable-row-transition":0!==(e.store.states.data||[]).length&&(e.store.states.data||[]).length<100},e.tableSize?"el-table--"+e.tableSize:""],on:{mouseleave:function(t){e.handleMouseLeave(t)}}},[n("div",{ref:"hiddenColumns",staticClass:"hidden-columns"},[e._t("default")],2),e.showHeader?n("div",{directives:[{name:"mousewheel",rawName:"v-mousewheel",value:e.handleHeaderFooterMousewheel,expression:"handleHeaderFooterMousewheel"}],ref:"headerWrapper",staticClass:"el-table__header-wrapper"},[n("table-header",{ref:"tableHeader",style:{width:e.layout.bodyWidth?e.layout.bodyWidth+"px":""},attrs:{store:e.store,border:e.border,"default-sort":e.defaultSort}})],1):e._e(),n("div",{ref:"bodyWrapper",staticClass:"el-table__body-wrapper",class:[e.layout.scrollX?"is-scrolling-"+e.scrollPosition:"is-scrolling-none"],style:[e.bodyHeight]},[n("table-body",{style:{width:e.bodyWidth},attrs:{context:e.context,store:e.store,stripe:e.stripe,"row-class-name":e.rowClassName,"row-style":e.rowStyle,highlight:e.highlightCurrentRow}}),e.data&&0!==e.data.length?e._e():n("div",{ref:"emptyBlock",staticClass:"el-table__empty-block",style:e.emptyBlockStyle},[n("span",{staticClass:"el-table__empty-text"},[e._t("empty",[e._v(e._s(e.emptyText||e.t("el.table.emptyText")))])],2)]),e.$slots.append?n("div",{ref:"appendWrapper",staticClass:"el-table__append-wrapper"},[e._t("append")],2):e._e()],1),e.showSummary?n("div",{directives:[{name:"show",rawName:"v-show",value:e.data&&e.data.length>0,expression:"data && data.length > 0"},{name:"mousewheel",rawName:"v-mousewheel",value:e.handleHeaderFooterMousewheel,expression:"handleHeaderFooterMousewheel"}],ref:"footerWrapper",staticClass:"el-table__footer-wrapper"},[n("table-footer",{style:{width:e.layout.bodyWidth?e.layout.bodyWidth+"px":""},attrs:{store:e.store,border:e.border,"sum-text":e.sumText||e.t("el.table.sumText"),"summary-method":e.summaryMethod,"default-sort":e.defaultSort}})],1):e._e(),e.fixedColumns.length>0?n("div",{directives:[{name:"mousewheel",rawName:"v-mousewheel",value:e.handleFixedMousewheel,expression:"handleFixedMousewheel"}],ref:"fixedWrapper",staticClass:"el-table__fixed",style:[{width:e.layout.fixedWidth?e.layout.fixedWidth+"px":""},e.fixedHeight]},[e.showHeader?n("div",{ref:"fixedHeaderWrapper",staticClass:"el-table__fixed-header-wrapper"},[n("table-header",{ref:"fixedTableHeader",style:{width:e.bodyWidth},attrs:{fixed:"left",border:e.border,store:e.store}})],1):e._e(),n("div",{ref:"fixedBodyWrapper",staticClass:"el-table__fixed-body-wrapper",style:[{top:e.layout.headerHeight+"px"},e.fixedBodyHeight]},[n("table-body",{style:{width:e.bodyWidth},attrs:{fixed:"left",store:e.store,stripe:e.stripe,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"row-style":e.rowStyle}}),e.$slots.append?n("div",{staticClass:"el-table__append-gutter",style:{height:e.layout.appendHeight+"px"}}):e._e()],1),e.showSummary?n("div",{directives:[{name:"show",rawName:"v-show",value:e.data&&e.data.length>0,expression:"data && data.length > 0"}],ref:"fixedFooterWrapper",staticClass:"el-table__fixed-footer-wrapper"},[n("table-footer",{style:{width:e.bodyWidth},attrs:{fixed:"left",border:e.border,"sum-text":e.sumText||e.t("el.table.sumText"),"summary-method":e.summaryMethod,store:e.store}})],1):e._e()]):e._e(),e.rightFixedColumns.length>0?n("div",{directives:[{name:"mousewheel",rawName:"v-mousewheel",value:e.handleFixedMousewheel,expression:"handleFixedMousewheel"}],ref:"rightFixedWrapper",staticClass:"el-table__fixed-right",style:[{width:e.layout.rightFixedWidth?e.layout.rightFixedWidth+"px":"",right:e.layout.scrollY?(e.border?e.layout.gutterWidth:e.layout.gutterWidth||0)+"px":""},e.fixedHeight]},[e.showHeader?n("div",{ref:"rightFixedHeaderWrapper",staticClass:"el-table__fixed-header-wrapper"},[n("table-header",{ref:"rightFixedTableHeader",style:{width:e.bodyWidth},attrs:{fixed:"right",border:e.border,store:e.store}})],1):e._e(),n("div",{ref:"rightFixedBodyWrapper",staticClass:"el-table__fixed-body-wrapper",style:[{top:e.layout.headerHeight+"px"},e.fixedBodyHeight]},[n("table-body",{style:{width:e.bodyWidth},attrs:{fixed:"right",store:e.store,stripe:e.stripe,"row-class-name":e.rowClassName,"row-style":e.rowStyle,highlight:e.highlightCurrentRow}}),e.$slots.append?n("div",{staticClass:"el-table__append-gutter",style:{height:e.layout.appendHeight+"px"}}):e._e()],1),e.showSummary?n("div",{directives:[{name:"show",rawName:"v-show",value:e.data&&e.data.length>0,expression:"data && data.length > 0"}],ref:"rightFixedFooterWrapper",staticClass:"el-table__fixed-footer-wrapper"},[n("table-footer",{style:{width:e.bodyWidth},attrs:{fixed:"right",border:e.border,"sum-text":e.sumText||e.t("el.table.sumText"),"summary-method":e.summaryMethod,store:e.store}})],1):e._e()]):e._e(),e.rightFixedColumns.length>0?n("div",{ref:"rightFixedPatch",staticClass:"el-table__fixed-right-patch",style:{width:e.layout.scrollY?e.layout.gutterWidth+"px":"0",height:e.layout.headerHeight+"px"}}):e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:e.resizeProxyVisible,expression:"resizeProxyVisible"}],ref:"resizeProxy",staticClass:"el-table__column-resize-proxy"})])},Ar=[];Tr._withStripped=!0;var Ir=n(14),$r=n.n(Ir),Pr=n(35),jr=n(38),Fr=n.n(jr),Br="undefined"!==typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1,Lr=function(e,t){e&&e.addEventListener&&e.addEventListener(Br?"DOMMouseScroll":"mousewheel",(function(e){var n=Fr()(e);t&&t.apply(this,[e,n])}))},zr={bind:function(e,t){Lr(e,t.value)}},Rr=n(6),Vr=n.n(Rr),qr="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hr=function(e){var t=e.target;while(t&&"HTML"!==t.tagName.toUpperCase()){if("TD"===t.tagName.toUpperCase())return t;t=t.parentNode}return null},Ur=function(e){return null!==e&&"object"===("undefined"===typeof e?"undefined":qr(e))},Wr=function(e,t,n,r,i){if(!t&&!r&&(!i||Array.isArray(i)&&!i.length))return e;n="string"===typeof n?"descending"===n?-1:1:n&&n<0?-1:1;var a=r?null:function(n,r){return i?(Array.isArray(i)||(i=[i]),i.map((function(t){return"string"===typeof t?Object(y["getValueByPath"])(n,t):t(n,r,e)}))):("$key"!==t&&Ur(n)&&"$value"in n&&(n=n.$value),[Ur(n)?Object(y["getValueByPath"])(n,t):n])},o=function(e,t){if(r)return r(e.value,t.value);for(var n=0,i=e.key.length;n<i;n++){if(e.key[n]<t.key[n])return-1;if(e.key[n]>t.key[n])return 1}return 0};return e.map((function(e,t){return{value:e,index:t,key:a?a(e,t):null}})).sort((function(e,t){var r=o(e,t);return r||(r=e.index-t.index),r*n})).map((function(e){return e.value}))},Yr=function(e,t){var n=null;return e.columns.forEach((function(e){e.id===t&&(n=e)})),n},Gr=function(e,t){for(var n=null,r=0;r<e.columns.length;r++){var i=e.columns[r];if(i.columnKey===t){n=i;break}}return n},Kr=function(e,t){var n=(t.className||"").match(/el-table_[^\s]+/gm);return n?Yr(e,n[0]):null},Xr=function(e,t){if(!e)throw new Error("row is required when get row identity");if("string"===typeof t){if(t.indexOf(".")<0)return e[t];for(var n=t.split("."),r=e,i=0;i<n.length;i++)r=r[n[i]];return r}if("function"===typeof t)return t.call(null,e)},Zr=function(e,t){var n={};return(e||[]).forEach((function(e,r){n[Xr(e,t)]={row:e,index:r}})),n};function Jr(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Qr(e,t){var n={},r=void 0;for(r in e)n[r]=e[r];for(r in t)if(Jr(t,r)){var i=t[r];"undefined"!==typeof i&&(n[r]=i)}return n}function ei(e){return void 0!==e&&(e=parseInt(e,10),isNaN(e)&&(e=null)),e}function ti(e){return"undefined"!==typeof e&&(e=ei(e),isNaN(e)&&(e=80)),e}function ni(e){return"number"===typeof e?e:"string"===typeof e?/^\d+(?:px)?$/.test(e)?parseInt(e,10):e:null}function ri(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function ii(e,t,n){var r=!1,i=e.indexOf(t),a=-1!==i,o=function(){e.push(t),r=!0},s=function(){e.splice(i,1),r=!0};return"boolean"===typeof n?n&&!a?o():!n&&a&&s():a?s():o(),r}function ai(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"children",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"hasChildren",i=function(e){return!(Array.isArray(e)&&e.length)};function a(e,o,s){t(e,o,s),o.forEach((function(e){if(e[r])t(e,null,s+1);else{var o=e[n];i(o)||a(e,o,s+1)}}))}e.forEach((function(e){if(e[r])t(e,null,0);else{var o=e[n];i(o)||a(e,o,0)}}))}var oi={data:function(){return{states:{defaultExpandAll:!1,expandRows:[]}}},methods:{updateExpandRows:function(){var e=this.states,t=e.data,n=void 0===t?[]:t,r=e.rowKey,i=e.defaultExpandAll,a=e.expandRows;if(i)this.states.expandRows=n.slice();else if(r){var o=Zr(a,r);this.states.expandRows=n.reduce((function(e,t){var n=Xr(t,r),i=o[n];return i&&e.push(t),e}),[])}else this.states.expandRows=[]},toggleRowExpansion:function(e,t){var n=ii(this.states.expandRows,e,t);n&&(this.table.$emit("expand-change",e,this.states.expandRows.slice()),this.scheduleLayout())},setExpandRowKeys:function(e){this.assertRowKey();var t=this.states,n=t.data,r=t.rowKey,i=Zr(n,r);this.states.expandRows=e.reduce((function(e,t){var n=i[t];return n&&e.push(n.row),e}),[])},isRowExpanded:function(e){var t=this.states,n=t.expandRows,r=void 0===n?[]:n,i=t.rowKey;if(i){var a=Zr(r,i);return!!a[Xr(e,i)]}return-1!==r.indexOf(e)}}},si={data:function(){return{states:{_currentRowKey:null,currentRow:null}}},methods:{setCurrentRowKey:function(e){this.assertRowKey(),this.states._currentRowKey=e,this.setCurrentRowByKey(e)},restoreCurrentRowKey:function(){this.states._currentRowKey=null},setCurrentRowByKey:function(e){var t=this.states,n=t.data,r=void 0===n?[]:n,i=t.rowKey,a=null;i&&(a=Object(y["arrayFind"])(r,(function(t){return Xr(t,i)===e}))),t.currentRow=a},updateCurrentRow:function(e){var t=this.states,n=this.table,r=t.currentRow;if(e&&e!==r)return t.currentRow=e,void n.$emit("current-change",e,r);!e&&r&&(t.currentRow=null,n.$emit("current-change",null,r))},updateCurrentRowData:function(){var e=this.states,t=this.table,n=e.rowKey,r=e._currentRowKey,i=e.data||[],a=e.currentRow;if(-1===i.indexOf(a)&&a){if(n){var o=Xr(a,n);this.setCurrentRowByKey(o)}else e.currentRow=null;null===e.currentRow&&t.$emit("current-change",null,a)}else r&&(this.setCurrentRowByKey(r),this.restoreCurrentRowKey())}}},li=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ui={data:function(){return{states:{expandRowKeys:[],treeData:{},indent:16,lazy:!1,lazyTreeNodeMap:{},lazyColumnIdentifier:"hasChildren",childrenColumnName:"children"}}},computed:{normalizedData:function(){if(!this.states.rowKey)return{};var e=this.states.data||[];return this.normalize(e)},normalizedLazyNode:function(){var e=this.states,t=e.rowKey,n=e.lazyTreeNodeMap,r=e.lazyColumnIdentifier,i=Object.keys(n),a={};return i.length?(i.forEach((function(e){if(n[e].length){var i={children:[]};n[e].forEach((function(e){var n=Xr(e,t);i.children.push(n),e[r]&&!a[n]&&(a[n]={children:[]})})),a[e]=i}})),a):a}},watch:{normalizedData:"updateTreeData",normalizedLazyNode:"updateTreeData"},methods:{normalize:function(e){var t=this.states,n=t.childrenColumnName,r=t.lazyColumnIdentifier,i=t.rowKey,a=t.lazy,o={};return ai(e,(function(e,t,n){var r=Xr(e,i);Array.isArray(t)?o[r]={children:t.map((function(e){return Xr(e,i)})),level:n}:a&&(o[r]={children:[],lazy:!0,level:n})}),n,r),o},updateTreeData:function(){var e=this.normalizedData,t=this.normalizedLazyNode,n=Object.keys(e),r={};if(n.length){var i=this.states,a=i.treeData,o=i.defaultExpandAll,s=i.expandRowKeys,l=i.lazy,u=[],c=function(e,t){var n=o||s&&-1!==s.indexOf(t);return!!(e&&e.expanded||n)};n.forEach((function(t){var n=a[t],i=li({},e[t]);if(i.expanded=c(n,t),i.lazy){var o=n||{},s=o.loaded,l=void 0!==s&&s,d=o.loading,h=void 0!==d&&d;i.loaded=!!l,i.loading=!!h,u.push(t)}r[t]=i}));var d=Object.keys(t);l&&d.length&&u.length&&d.forEach((function(e){var n=a[e],i=t[e].children;if(-1!==u.indexOf(e)){if(0!==r[e].children.length)throw new Error("[ElTable]children must be an empty array.");r[e].children=i}else{var o=n||{},s=o.loaded,l=void 0!==s&&s,d=o.loading,h=void 0!==d&&d;r[e]={lazy:!0,loaded:!!l,loading:!!h,expanded:c(n,e),children:i,level:""}}}))}this.states.treeData=r,this.updateTableScrollY()},updateTreeExpandKeys:function(e){this.states.expandRowKeys=e,this.updateTreeData()},toggleTreeExpansion:function(e,t){this.assertRowKey();var n=this.states,r=n.rowKey,i=n.treeData,a=Xr(e,r),o=a&&i[a];if(a&&o&&"expanded"in o){var s=o.expanded;t="undefined"===typeof t?!o.expanded:t,i[a].expanded=t,s!==t&&this.table.$emit("expand-change",e,t),this.updateTableScrollY()}},loadOrToggle:function(e){this.assertRowKey();var t=this.states,n=t.lazy,r=t.treeData,i=t.rowKey,a=Xr(e,i),o=r[a];n&&o&&"loaded"in o&&!o.loaded?this.loadData(e,a,o):this.toggleTreeExpansion(e)},loadData:function(e,t,n){var r=this,i=this.table.load,a=this.states.treeData;i&&!a[t].loaded&&(a[t].loading=!0,i(e,n,(function(n){if(!Array.isArray(n))throw new Error("[ElTable] data must be an array");var i=r.states,a=i.lazyTreeNodeMap,o=i.treeData;o[t].loading=!1,o[t].loaded=!0,o[t].expanded=!0,n.length&&r.$set(a,t,n),r.table.$emit("expand-change",e,!0)})))}}},ci=function(e,t){var n=t.sortingColumn;return n&&"string"!==typeof n.sortable?Wr(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy):e},di=function e(t){var n=[];return t.forEach((function(t){t.children?n.push.apply(n,e(t.children)):n.push(t)})),n},hi=Vr.a.extend({data:function(){return{states:{rowKey:null,data:[],isComplex:!1,_columns:[],originColumns:[],columns:[],fixedColumns:[],rightFixedColumns:[],leafColumns:[],fixedLeafColumns:[],rightFixedLeafColumns:[],leafColumnsLength:0,fixedLeafColumnsLength:0,rightFixedLeafColumnsLength:0,isAllSelected:!1,selection:[],reserveSelection:!1,selectOnIndeterminate:!1,selectable:null,filters:{},filteredData:null,sortingColumn:null,sortProp:null,sortOrder:null,hoverRow:null}}},mixins:[oi,si,ui],methods:{assertRowKey:function(){var e=this.states.rowKey;if(!e)throw new Error("[ElTable] prop row-key is required")},updateColumns:function(){var e=this.states,t=e._columns||[];e.fixedColumns=t.filter((function(e){return!0===e.fixed||"left"===e.fixed})),e.rightFixedColumns=t.filter((function(e){return"right"===e.fixed})),e.fixedColumns.length>0&&t[0]&&"selection"===t[0].type&&!t[0].fixed&&(t[0].fixed=!0,e.fixedColumns.unshift(t[0]));var n=t.filter((function(e){return!e.fixed}));e.originColumns=[].concat(e.fixedColumns).concat(n).concat(e.rightFixedColumns);var r=di(n),i=di(e.fixedColumns),a=di(e.rightFixedColumns);e.leafColumnsLength=r.length,e.fixedLeafColumnsLength=i.length,e.rightFixedLeafColumnsLength=a.length,e.columns=[].concat(i).concat(r).concat(a),e.isComplex=e.fixedColumns.length>0||e.rightFixedColumns.length>0},scheduleLayout:function(e){e&&this.updateColumns(),this.table.debouncedUpdateLayout()},isSelected:function(e){var t=this.states.selection,n=void 0===t?[]:t;return n.indexOf(e)>-1},clearSelection:function(){var e=this.states;e.isAllSelected=!1;var t=e.selection;t.length&&(e.selection=[],this.table.$emit("selection-change",[]))},cleanSelection:function(){var e=this.states,t=e.data,n=e.rowKey,r=e.selection,i=void 0;if(n){i=[];var a=Zr(r,n),o=Zr(t,n);for(var s in a)a.hasOwnProperty(s)&&!o[s]&&i.push(a[s].row)}else i=r.filter((function(e){return-1===t.indexOf(e)}));if(i.length){var l=r.filter((function(e){return-1===i.indexOf(e)}));e.selection=l,this.table.$emit("selection-change",l.slice())}},toggleRowSelection:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=ii(this.states.selection,e,t);if(r){var i=(this.states.selection||[]).slice();n&&this.table.$emit("select",i,e),this.table.$emit("selection-change",i)}},_toggleAllSelection:function(){var e=this.states,t=e.data,n=void 0===t?[]:t,r=e.selection,i=e.selectOnIndeterminate?!e.isAllSelected:!(e.isAllSelected||r.length);e.isAllSelected=i;var a=!1;n.forEach((function(t,n){e.selectable?e.selectable.call(null,t,n)&&ii(r,t,i)&&(a=!0):ii(r,t,i)&&(a=!0)})),a&&this.table.$emit("selection-change",r?r.slice():[]),this.table.$emit("select-all",r)},updateSelectionByRowKey:function(){var e=this.states,t=e.selection,n=e.rowKey,r=e.data,i=Zr(t,n);r.forEach((function(e){var r=Xr(e,n),a=i[r];a&&(t[a.index]=e)}))},updateAllSelected:function(){var e=this.states,t=e.selection,n=e.rowKey,r=e.selectable,i=e.data||[];if(0!==i.length){var a=void 0;n&&(a=Zr(t,n));for(var o=function(e){return a?!!a[Xr(e,n)]:-1!==t.indexOf(e)},s=!0,l=0,u=0,c=i.length;u<c;u++){var d=i[u],h=r&&r.call(null,d,u);if(o(d))l++;else if(!r||h){s=!1;break}}0===l&&(s=!1),e.isAllSelected=s}else e.isAllSelected=!1},updateFilters:function(e,t){Array.isArray(e)||(e=[e]);var n=this.states,r={};return e.forEach((function(e){n.filters[e.id]=t,r[e.columnKey||e.id]=t})),r},updateSort:function(e,t,n){this.states.sortingColumn&&this.states.sortingColumn!==e&&(this.states.sortingColumn.order=null),this.states.sortingColumn=e,this.states.sortProp=t,this.states.sortOrder=n},execFilter:function(){var e=this,t=this.states,n=t._data,r=t.filters,i=n;Object.keys(r).forEach((function(n){var r=t.filters[n];if(r&&0!==r.length){var a=Yr(e.states,n);a&&a.filterMethod&&(i=i.filter((function(e){return r.some((function(t){return a.filterMethod.call(null,t,e,a)}))})))}})),t.filteredData=i},execSort:function(){var e=this.states;e.data=ci(e.filteredData,e)},execQuery:function(e){e&&e.filter||this.execFilter(),this.execSort()},clearFilter:function(e){var t=this.states,n=this.table.$refs,r=n.tableHeader,i=n.fixedTableHeader,a=n.rightFixedTableHeader,o={};r&&(o=Nt()(o,r.filterPanels)),i&&(o=Nt()(o,i.filterPanels)),a&&(o=Nt()(o,a.filterPanels));var s=Object.keys(o);if(s.length)if("string"===typeof e&&(e=[e]),Array.isArray(e)){var l=e.map((function(e){return Gr(t,e)}));s.forEach((function(e){var t=l.find((function(t){return t.id===e}));t&&(o[e].filteredValue=[])})),this.commit("filterChange",{column:l,values:[],silent:!0,multi:!0})}else s.forEach((function(e){o[e].filteredValue=[]})),t.filters={},this.commit("filterChange",{column:{},values:[],silent:!0})},clearSort:function(){var e=this.states;e.sortingColumn&&(this.updateSort(null,null,null),this.commit("changeSortCondition",{silent:!0}))},setExpandRowKeysAdapter:function(e){this.setExpandRowKeys(e),this.updateTreeExpandKeys(e)},toggleRowExpansionAdapter:function(e,t){var n=this.states.columns.some((function(e){var t=e.type;return"expand"===t}));n?this.toggleRowExpansion(e,t):this.toggleTreeExpansion(e,t)}}});hi.prototype.mutations={setData:function(e,t){var n=e._data!==t;e._data=t,this.execQuery(),this.updateCurrentRowData(),this.updateExpandRows(),e.reserveSelection?(this.assertRowKey(),this.updateSelectionByRowKey()):n?this.clearSelection():this.cleanSelection(),this.updateAllSelected(),this.updateTableScrollY()},insertColumn:function(e,t,n,r){var i=e._columns;r&&(i=r.children,i||(i=r.children=[])),"undefined"!==typeof n?i.splice(n,0,t):i.push(t),"selection"===t.type&&(e.selectable=t.selectable,e.reserveSelection=t.reserveSelection),this.table.$ready&&(this.updateColumns(),this.scheduleLayout())},removeColumn:function(e,t,n){var r=e._columns;n&&(r=n.children,r||(r=n.children=[])),r&&r.splice(r.indexOf(t),1),this.table.$ready&&(this.updateColumns(),this.scheduleLayout())},sort:function(e,t){var n=t.prop,r=t.order,i=t.init;if(n){var a=Object(y["arrayFind"])(e.columns,(function(e){return e.property===n}));a&&(a.order=r,this.updateSort(a,n,r),this.commit("changeSortCondition",{init:i}))}},changeSortCondition:function(e,t){var n=e.sortingColumn,r=e.sortProp,i=e.sortOrder;null===i&&(e.sortingColumn=null,e.sortProp=null);var a={filter:!0};this.execQuery(a),t&&(t.silent||t.init)||this.table.$emit("sort-change",{column:n,prop:r,order:i}),this.updateTableScrollY()},filterChange:function(e,t){var n=t.column,r=t.values,i=t.silent,a=this.updateFilters(n,r);this.execQuery(),i||this.table.$emit("filter-change",a),this.updateTableScrollY()},toggleAllSelection:function(){this.toggleAllSelection()},rowSelectedChanged:function(e,t){this.toggleRowSelection(t),this.updateAllSelected()},setHoverRow:function(e,t){e.hoverRow=t},setCurrentRow:function(e,t){this.updateCurrentRow(t)}},hi.prototype.commit=function(e){var t=this.mutations;if(!t[e])throw new Error("Action not found: "+e);for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];t[e].apply(this,[this.states].concat(r))},hi.prototype.updateTableScrollY=function(){Vr.a.nextTick(this.table.updateScrollY)};var fi=hi;function pi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("Table is required.");var n=new fi;return n.table=e,n.toggleAllSelection=F()(10,n._toggleAllSelection),Object.keys(t).forEach((function(e){n.states[e]=t[e]})),n}function mi(e){var t={};return Object.keys(e).forEach((function(n){var r=e[n],i=void 0;"string"===typeof r?i=function(){return this.store.states[r]}:"function"===typeof r?i=function(){return r.call(this,this.store.states)}:console.error("invalid value type"),i&&(t[n]=i)})),t}var vi=n(30),gi=n.n(vi);function yi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var bi=function(){function e(t){for(var n in yi(this,e),this.observers=[],this.table=null,this.store=null,this.columns=null,this.fit=!0,this.showHeader=!0,this.height=null,this.scrollX=!1,this.scrollY=!1,this.bodyWidth=null,this.fixedWidth=null,this.rightFixedWidth=null,this.tableHeight=null,this.headerHeight=44,this.appendHeight=0,this.footerHeight=44,this.viewportHeight=null,this.bodyHeight=null,this.fixedBodyHeight=null,this.gutterWidth=gi()(),t)t.hasOwnProperty(n)&&(this[n]=t[n]);if(!this.table)throw new Error("table is required for Table Layout");if(!this.store)throw new Error("store is required for Table Layout")}return e.prototype.updateScrollY=function(){var e=this.height;if(null===e)return!1;var t=this.table.bodyWrapper;if(this.table.$el&&t){var n=t.querySelector(".el-table__body"),r=this.scrollY,i=n.offsetHeight>this.bodyHeight;return this.scrollY=i,r!==i}return!1},e.prototype.setHeight=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"height";if(!Vr.a.prototype.$isServer){var r=this.table.$el;if(e=ni(e),this.height=e,!r&&(e||0===e))return Vr.a.nextTick((function(){return t.setHeight(e,n)}));"number"===typeof e?(r.style[n]=e+"px",this.updateElsHeight()):"string"===typeof e&&(r.style[n]=e,this.updateElsHeight())}},e.prototype.setMaxHeight=function(e){this.setHeight(e,"max-height")},e.prototype.getFlattenColumns=function(){var e=[],t=this.table.columns;return t.forEach((function(t){t.isColumnGroup?e.push.apply(e,t.columns):e.push(t)})),e},e.prototype.updateElsHeight=function(){var e=this;if(!this.table.$ready)return Vr.a.nextTick((function(){return e.updateElsHeight()}));var t=this.table.$refs,n=t.headerWrapper,r=t.appendWrapper,i=t.footerWrapper;if(this.appendHeight=r?r.offsetHeight:0,!this.showHeader||n){var a=n?n.querySelector(".el-table__header tr"):null,o=this.headerDisplayNone(a),s=this.headerHeight=this.showHeader?n.offsetHeight:0;if(this.showHeader&&!o&&n.offsetWidth>0&&(this.table.columns||[]).length>0&&s<2)return Vr.a.nextTick((function(){return e.updateElsHeight()}));var l=this.tableHeight=this.table.$el.clientHeight,u=this.footerHeight=i?i.offsetHeight:0;null!==this.height&&(this.bodyHeight=l-s-u+(i?1:0)),this.fixedBodyHeight=this.scrollX?this.bodyHeight-this.gutterWidth:this.bodyHeight;var c=!(this.store.states.data&&this.store.states.data.length);this.viewportHeight=this.scrollX?l-(c?0:this.gutterWidth):l,this.updateScrollY(),this.notifyObservers("scrollable")}},e.prototype.headerDisplayNone=function(e){if(!e)return!0;var t=e;while("DIV"!==t.tagName){if("none"===getComputedStyle(t).display)return!0;t=t.parentElement}return!1},e.prototype.updateColumnsWidth=function(){if(!Vr.a.prototype.$isServer){var e=this.fit,t=this.table.$el.clientWidth,n=0,r=this.getFlattenColumns(),i=r.filter((function(e){return"number"!==typeof e.width}));if(r.forEach((function(e){"number"===typeof e.width&&e.realWidth&&(e.realWidth=null)})),i.length>0&&e){r.forEach((function(e){n+=e.width||e.minWidth||80}));var a=this.scrollY?this.gutterWidth:0;if(n<=t-a){this.scrollX=!1;var o=t-a-n;if(1===i.length)i[0].realWidth=(i[0].minWidth||80)+o;else{var s=i.reduce((function(e,t){return e+(t.minWidth||80)}),0),l=o/s,u=0;i.forEach((function(e,t){if(0!==t){var n=Math.floor((e.minWidth||80)*l);u+=n,e.realWidth=(e.minWidth||80)+n}})),i[0].realWidth=(i[0].minWidth||80)+o-u}}else this.scrollX=!0,i.forEach((function(e){e.realWidth=e.minWidth}));this.bodyWidth=Math.max(n,t),this.table.resizeState.width=this.bodyWidth}else r.forEach((function(e){e.width||e.minWidth?e.realWidth=e.width||e.minWidth:e.realWidth=80,n+=e.realWidth})),this.scrollX=n>t,this.bodyWidth=n;var c=this.store.states.fixedColumns;if(c.length>0){var d=0;c.forEach((function(e){d+=e.realWidth||e.width})),this.fixedWidth=d}var h=this.store.states.rightFixedColumns;if(h.length>0){var f=0;h.forEach((function(e){f+=e.realWidth||e.width})),this.rightFixedWidth=f}this.notifyObservers("columns")}},e.prototype.addObserver=function(e){this.observers.push(e)},e.prototype.removeObserver=function(e){var t=this.observers.indexOf(e);-1!==t&&this.observers.splice(t,1)},e.prototype.notifyObservers=function(e){var t=this,n=this.observers;n.forEach((function(n){switch(e){case"columns":n.onColumnsChange(t);break;case"scrollable":n.onScrollableChange(t);break;default:throw new Error("Table Layout don't have event "+e+".")}}))},e}(),xi=bi,wi={created:function(){this.tableLayout.addObserver(this)},destroyed:function(){this.tableLayout.removeObserver(this)},computed:{tableLayout:function(){var e=this.layout;if(!e&&this.table&&(e=this.table.layout),!e)throw new Error("Can not find table layout.");return e}},mounted:function(){this.onColumnsChange(this.tableLayout),this.onScrollableChange(this.tableLayout)},updated:function(){this.__updated__||(this.onColumnsChange(this.tableLayout),this.onScrollableChange(this.tableLayout),this.__updated__=!0)},methods:{onColumnsChange:function(e){var t=this.$el.querySelectorAll("colgroup > col");if(t.length){var n=e.getFlattenColumns(),r={};n.forEach((function(e){r[e.id]=e}));for(var i=0,a=t.length;i<a;i++){var o=t[i],s=o.getAttribute("name"),l=r[s];l&&o.setAttribute("width",l.realWidth||l.width)}}},onScrollableChange:function(e){for(var t=this.$el.querySelectorAll("colgroup > col[name=gutter]"),n=0,r=t.length;n<r;n++){var i=t[n];i.setAttribute("width",e.scrollY?e.gutterWidth:"0")}for(var a=this.$el.querySelectorAll("th.gutter"),o=0,s=a.length;o<s;o++){var l=a[o];l.style.width=e.scrollY?e.gutterWidth+"px":"0",l.style.display=e.scrollY?"":"none"}}}},_i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ci={name:"ElTableRow",props:["columns","row","index","isSelected","isExpanded","store","context","firstDefaultColumnIndex","treeRowData","treeIndent","columnsHidden","getSpan","getColspanRealWidth","getCellStyle","getCellClass","handleCellMouseLeave","handleCellMouseEnter","fixed"],components:{ElCheckbox:$r.a},render:function(){var e=this,t=arguments[0],n=this.columns,r=this.row,i=this.index,a=this.store,o=this.context,s=this.firstDefaultColumnIndex,l=this.treeRowData,u=this.treeIndent,c=this.columnsHidden,d=void 0===c?[]:c,h=this.isSelected,f=this.isExpanded;return t("tr",[n.map((function(c,p){var m=e.getSpan(r,c,i,p),v=m.rowspan,g=m.colspan;if(!v||!g)return null;var y=_i({},c);y.realWidth=e.getColspanRealWidth(n,g,p);var b={store:a,isSelected:h,isExpanded:f,_self:o,column:y,row:r,$index:i};return p===s&&l&&(b.treeNode={indent:l.level*u,level:l.level},"boolean"===typeof l.expanded&&(b.treeNode.expanded=l.expanded,"loading"in l&&(b.treeNode.loading=l.loading),"noLazyChildren"in l&&(b.treeNode.noLazyChildren=l.noLazyChildren))),t("td",{style:e.getCellStyle(i,p,r,c),class:e.getCellClass(i,p,r,c),attrs:{rowspan:v,colspan:g},on:{mouseenter:function(t){return e.handleCellMouseEnter(t,r)},mouseleave:e.handleCellMouseLeave}},[c.renderCell.call(e._renderProxy,e.$createElement,b,d[p])])}))])}},Si="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ni=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ki={name:"ElTableBody",mixins:[wi],components:{ElCheckbox:$r.a,ElTooltip:it.a,TableRow:Ci},props:{store:{required:!0},stripe:Boolean,context:{},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:String,highlight:Boolean},render:function(e){var t=this,n=this.data||[];return e("table",{class:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[e("colgroup",[this.columns.map((function(t){return e("col",{attrs:{name:t.id},key:t.id})}))]),e("tbody",[n.reduce((function(e,n){return e.concat(t.wrappedRowRender(n,e.length))}),[]),e("el-tooltip",{attrs:{effect:this.table.tooltipEffect,placement:"top",content:this.tooltipContent},ref:"tooltip"})])])},computed:Ni({table:function(){return this.$parent}},mi({data:"data",columns:"columns",treeIndent:"indent",leftFixedLeafCount:"fixedLeafColumnsLength",rightFixedLeafCount:"rightFixedLeafColumnsLength",columnsCount:function(e){return e.columns.length},leftFixedCount:function(e){return e.fixedColumns.length},rightFixedCount:function(e){return e.rightFixedColumns.length},hasExpandColumn:function(e){return e.columns.some((function(e){var t=e.type;return"expand"===t}))}}),{columnsHidden:function(){var e=this;return this.columns.map((function(t,n){return e.isColumnHidden(n)}))},firstDefaultColumnIndex:function(){return Object(y["arrayFindIndex"])(this.columns,(function(e){var t=e.type;return"default"===t}))}}),watch:{"store.states.hoverRow":function(e,t){var n=this;if(this.store.states.isComplex&&!this.$isServer){var r=window.requestAnimationFrame;r||(r=function(e){return setTimeout(e,16)}),r((function(){var r=n.$el.querySelectorAll(".el-table__row"),i=r[t],a=r[e];i&&Object(Be["removeClass"])(i,"hover-row"),a&&Object(Be["addClass"])(a,"hover-row")}))}}},data:function(){return{tooltipContent:""}},created:function(){this.activateTooltip=F()(50,(function(e){return e.handleShowPopper()}))},methods:{getKeyOfRow:function(e,t){var n=this.table.rowKey;return n?Xr(e,n):t},isColumnHidden:function(e){return!0===this.fixed||"left"===this.fixed?e>=this.leftFixedLeafCount:"right"===this.fixed?e<this.columnsCount-this.rightFixedLeafCount:e<this.leftFixedLeafCount||e>=this.columnsCount-this.rightFixedLeafCount},getSpan:function(e,t,n,r){var i=1,a=1,o=this.table.spanMethod;if("function"===typeof o){var s=o({row:e,column:t,rowIndex:n,columnIndex:r});Array.isArray(s)?(i=s[0],a=s[1]):"object"===("undefined"===typeof s?"undefined":Si(s))&&(i=s.rowspan,a=s.colspan)}return{rowspan:i,colspan:a}},getRowStyle:function(e,t){var n=this.table.rowStyle;return"function"===typeof n?n.call(null,{row:e,rowIndex:t}):n||null},getRowClass:function(e,t){var n=["el-table__row"];this.table.highlightCurrentRow&&e===this.store.states.currentRow&&n.push("current-row"),this.stripe&&t%2===1&&n.push("el-table__row--striped");var r=this.table.rowClassName;return"string"===typeof r?n.push(r):"function"===typeof r&&n.push(r.call(null,{row:e,rowIndex:t})),this.store.states.expandRows.indexOf(e)>-1&&n.push("expanded"),n},getCellStyle:function(e,t,n,r){var i=this.table.cellStyle;return"function"===typeof i?i.call(null,{rowIndex:e,columnIndex:t,row:n,column:r}):i},getCellClass:function(e,t,n,r){var i=[r.id,r.align,r.className];this.isColumnHidden(t)&&i.push("is-hidden");var a=this.table.cellClassName;return"string"===typeof a?i.push(a):"function"===typeof a&&i.push(a.call(null,{rowIndex:e,columnIndex:t,row:n,column:r})),i.push("el-table__cell"),i.join(" ")},getColspanRealWidth:function(e,t,n){if(t<1)return e[n].realWidth;var r=e.map((function(e){var t=e.realWidth;return t})).slice(n,n+t);return r.reduce((function(e,t){return e+t}),-1)},handleCellMouseEnter:function(e,t){var n=this.table,r=Hr(e);if(r){var i=Kr(n,r),a=n.hoverState={cell:r,column:i,row:t};n.$emit("cell-mouse-enter",a.row,a.column,a.cell,e)}var o=e.target.querySelector(".cell");if(Object(Be["hasClass"])(o,"el-tooltip")&&o.childNodes.length){var s=document.createRange();s.setStart(o,0),s.setEnd(o,o.childNodes.length);var l=s.getBoundingClientRect().width,u=(parseInt(Object(Be["getStyle"])(o,"paddingLeft"),10)||0)+(parseInt(Object(Be["getStyle"])(o,"paddingRight"),10)||0);if((l+u>o.offsetWidth||o.scrollWidth>o.offsetWidth)&&this.$refs.tooltip){var c=this.$refs.tooltip;this.tooltipContent=r.innerText||r.textContent,c.referenceElm=r,c.$refs.popper&&(c.$refs.popper.style.display="none"),c.doDestroy(),c.setExpectedState(!0),this.activateTooltip(c)}}},handleCellMouseLeave:function(e){var t=this.$refs.tooltip;t&&(t.setExpectedState(!1),t.handleClosePopper());var n=Hr(e);if(n){var r=this.table.hoverState||{};this.table.$emit("cell-mouse-leave",r.row,r.column,r.cell,e)}},handleMouseEnter:F()(30,(function(e){this.store.commit("setHoverRow",e)})),handleMouseLeave:F()(30,(function(){this.store.commit("setHoverRow",null)})),handleContextMenu:function(e,t){this.handleEvent(e,t,"contextmenu")},handleDoubleClick:function(e,t){this.handleEvent(e,t,"dblclick")},handleClick:function(e,t){this.store.commit("setCurrentRow",t),this.handleEvent(e,t,"click")},handleEvent:function(e,t,n){var r=this.table,i=Hr(e),a=void 0;i&&(a=Kr(r,i),a&&r.$emit("cell-"+n,t,a,i,e)),r.$emit("row-"+n,t,a,e)},rowRender:function(e,t,n){var r=this,i=this.$createElement,a=this.treeIndent,o=this.columns,s=this.firstDefaultColumnIndex,l=this.getRowClass(e,t),u=!0;n&&(l.push("el-table__row--level-"+n.level),u=n.display);var c=u?null:{display:"none"};return i(Ci,{style:[c,this.getRowStyle(e,t)],class:l,key:this.getKeyOfRow(e,t),nativeOn:{dblclick:function(t){return r.handleDoubleClick(t,e)},click:function(t){return r.handleClick(t,e)},contextmenu:function(t){return r.handleContextMenu(t,e)},mouseenter:function(e){return r.handleMouseEnter(t)},mouseleave:this.handleMouseLeave},attrs:{columns:o,row:e,index:t,store:this.store,context:this.context||this.table.$vnode.context,firstDefaultColumnIndex:s,treeRowData:n,treeIndent:a,columnsHidden:this.columnsHidden,getSpan:this.getSpan,getColspanRealWidth:this.getColspanRealWidth,getCellStyle:this.getCellStyle,getCellClass:this.getCellClass,handleCellMouseEnter:this.handleCellMouseEnter,handleCellMouseLeave:this.handleCellMouseLeave,isSelected:this.store.isSelected(e),isExpanded:this.store.states.expandRows.indexOf(e)>-1,fixed:this.fixed}})},wrappedRowRender:function(e,t){var n=this,r=this.$createElement,i=this.store,a=i.isRowExpanded,o=i.assertRowKey,s=i.states,l=s.treeData,u=s.lazyTreeNodeMap,c=s.childrenColumnName,d=s.rowKey;if(this.hasExpandColumn&&a(e)){var h=this.table.renderExpanded,f=this.rowRender(e,t);return h?[[f,r("tr",{key:"expanded-row__"+f.key},[r("td",{attrs:{colspan:this.columnsCount},class:"el-table__cell el-table__expanded-cell"},[h(this.$createElement,{row:e,$index:t,store:this.store})])])]]:(console.error("[Element Error]renderExpanded is required."),f)}if(Object.keys(l).length){o();var p=Xr(e,d),m=l[p],v=null;m&&(v={expanded:m.expanded,level:m.level,display:!0},"boolean"===typeof m.lazy&&("boolean"===typeof m.loaded&&m.loaded&&(v.noLazyChildren=!(m.children&&m.children.length)),v.loading=m.loading));var g=[this.rowRender(e,t,v)];if(m){var y=0,b=function e(r,i){r&&r.length&&i&&r.forEach((function(r){var a={display:i.display&&i.expanded,level:i.level+1},o=Xr(r,d);if(void 0===o||null===o)throw new Error("for nested data item, row-key is required.");if(m=Ni({},l[o]),m&&(a.expanded=m.expanded,m.level=m.level||a.level,m.display=!(!m.expanded||!a.display),"boolean"===typeof m.lazy&&("boolean"===typeof m.loaded&&m.loaded&&(a.noLazyChildren=!(m.children&&m.children.length)),a.loading=m.loading)),y++,g.push(n.rowRender(r,t+y,a)),m){var s=u[o]||r[c];e(s,m)}}))};m.display=!0;var x=u[p]||e[c];b(x,m)}return g}return this.rowRender(e,t)}}},Ei=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"}},[e.multiple?n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleOutsideClick,expression:"handleOutsideClick"},{name:"show",rawName:"v-show",value:e.showPopper,expression:"showPopper"}],staticClass:"el-table-filter"},[n("div",{staticClass:"el-table-filter__content"},[n("el-scrollbar",{attrs:{"wrap-class":"el-table-filter__wrap"}},[n("el-checkbox-group",{staticClass:"el-table-filter__checkbox-group",model:{value:e.filteredValue,callback:function(t){e.filteredValue=t},expression:"filteredValue"}},e._l(e.filters,(function(t){return n("el-checkbox",{key:t.value,attrs:{label:t.value}},[e._v(e._s(t.text))])})),1)],1)],1),n("div",{staticClass:"el-table-filter__bottom"},[n("button",{class:{"is-disabled":0===e.filteredValue.length},attrs:{disabled:0===e.filteredValue.length},on:{click:e.handleConfirm}},[e._v(e._s(e.t("el.table.confirmFilter")))]),n("button",{on:{click:e.handleReset}},[e._v(e._s(e.t("el.table.resetFilter")))])])]):n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleOutsideClick,expression:"handleOutsideClick"},{name:"show",rawName:"v-show",value:e.showPopper,expression:"showPopper"}],staticClass:"el-table-filter"},[n("ul",{staticClass:"el-table-filter__list"},[n("li",{staticClass:"el-table-filter__list-item",class:{"is-active":void 0===e.filterValue||null===e.filterValue},on:{click:function(t){e.handleSelect(null)}}},[e._v(e._s(e.t("el.table.clearFilter")))]),e._l(e.filters,(function(t){return n("li",{key:t.value,staticClass:"el-table-filter__list-item",class:{"is-active":e.isActive(t)},attrs:{label:t.value},on:{click:function(n){e.handleSelect(t.value)}}},[e._v(e._s(t.text))])}))],2)])])},Mi=[];Ei._withStripped=!0;var Oi=[];!Vr.a.prototype.$isServer&&document.addEventListener("click",(function(e){Oi.forEach((function(t){var n=e.target;t&&t.$el&&(n===t.$el||t.$el.contains(n)||t.handleOutsideClick&&t.handleOutsideClick(e))}))}));var Di={open:function(e){e&&Oi.push(e)},close:function(e){var t=Oi.indexOf(e);-1!==t&&Oi.splice(e,1)}},Ti=n(31),Ai=n.n(Ti),Ii={name:"ElTableFilterPanel",mixins:[q.a,g.a],directives:{Clickoutside:L.a},components:{ElCheckbox:$r.a,ElCheckboxGroup:Ai.a,ElScrollbar:U.a},props:{placement:{type:String,default:"bottom-end"}},methods:{isActive:function(e){return e.value===this.filterValue},handleOutsideClick:function(){var e=this;setTimeout((function(){e.showPopper=!1}),16)},handleConfirm:function(){this.confirmFilter(this.filteredValue),this.handleOutsideClick()},handleReset:function(){this.filteredValue=[],this.confirmFilter(this.filteredValue),this.handleOutsideClick()},handleSelect:function(e){this.filterValue=e,"undefined"!==typeof e&&null!==e?this.confirmFilter(this.filteredValue):this.confirmFilter([]),this.handleOutsideClick()},confirmFilter:function(e){this.table.store.commit("filterChange",{column:this.column,values:e}),this.table.store.updateAllSelected()}},data:function(){return{table:null,cell:null,column:null}},computed:{filters:function(){return this.column&&this.column.filters},filterValue:{get:function(){return(this.column.filteredValue||[])[0]},set:function(e){this.filteredValue&&("undefined"!==typeof e&&null!==e?this.filteredValue.splice(0,1,e):this.filteredValue.splice(0,1))}},filteredValue:{get:function(){return this.column&&this.column.filteredValue||[]},set:function(e){this.column&&(this.column.filteredValue=e)}},multiple:function(){return!this.column||this.column.filterMultiple}},mounted:function(){var e=this;this.popperElm=this.$el,this.referenceElm=this.cell,this.table.bodyWrapper.addEventListener("scroll",(function(){e.updatePopper()})),this.$watch("showPopper",(function(t){e.column&&(e.column.filterOpened=t),t?Di.open(e):Di.close(e)}))},watch:{showPopper:function(e){!0===e&&parseInt(this.popperJS._popper.style.zIndex,10)<C["PopupManager"].zIndex&&(this.popperJS._popper.style.zIndex=C["PopupManager"].nextZIndex())}}},$i=Ii,Pi=s($i,Ei,Mi,!1,null,null,null);Pi.options.__file="packages/table/src/filter-panel.vue";var ji=Pi.exports,Fi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bi=function e(t){var n=[];return t.forEach((function(t){t.children?(n.push(t),n.push.apply(n,e(t.children))):n.push(t)})),n},Li=function(e){var t=1,n=function e(n,r){if(r&&(n.level=r.level+1,t<n.level&&(t=n.level)),n.children){var i=0;n.children.forEach((function(t){e(t,n),i+=t.colSpan})),n.colSpan=i}else n.colSpan=1};e.forEach((function(e){e.level=1,n(e)}));for(var r=[],i=0;i<t;i++)r.push([]);var a=Bi(e);return a.forEach((function(e){e.children?e.rowSpan=1:e.rowSpan=t-e.level+1,r[e.level-1].push(e)})),r},zi={name:"ElTableHeader",mixins:[wi],render:function(e){var t=this,n=this.store.states.originColumns,r=Li(n,this.columns),i=r.length>1;return i&&(this.$parent.isGroup=!0),e("table",{class:"el-table__header",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[e("colgroup",[this.columns.map((function(t){return e("col",{attrs:{name:t.id},key:t.id})})),this.hasGutter?e("col",{attrs:{name:"gutter"}}):""]),e("thead",{class:[{"is-group":i,"has-gutter":this.hasGutter}]},[this._l(r,(function(n,r){return e("tr",{style:t.getHeaderRowStyle(r),class:t.getHeaderRowClass(r)},[n.map((function(i,a){return e("th",{attrs:{colspan:i.colSpan,rowspan:i.rowSpan},on:{mousemove:function(e){return t.handleMouseMove(e,i)},mouseout:t.handleMouseOut,mousedown:function(e){return t.handleMouseDown(e,i)},click:function(e){return t.handleHeaderClick(e,i)},contextmenu:function(e){return t.handleHeaderContextMenu(e,i)}},style:t.getHeaderCellStyle(r,a,n,i),class:t.getHeaderCellClass(r,a,n,i),key:i.id},[e("div",{class:["cell",i.filteredValue&&i.filteredValue.length>0?"highlight":"",i.labelClassName]},[i.renderHeader?i.renderHeader.call(t._renderProxy,e,{column:i,$index:a,store:t.store,_self:t.$parent.$vnode.context}):i.label,i.sortable?e("span",{class:"caret-wrapper",on:{click:function(e){return t.handleSortClick(e,i)}}},[e("i",{class:"sort-caret ascending",on:{click:function(e){return t.handleSortClick(e,i,"ascending")}}}),e("i",{class:"sort-caret descending",on:{click:function(e){return t.handleSortClick(e,i,"descending")}}})]):"",i.filterable?e("span",{class:"el-table__column-filter-trigger",on:{click:function(e){return t.handleFilterClick(e,i)}}},[e("i",{class:["el-icon-arrow-down",i.filterOpened?"el-icon-arrow-up":""]})]):""])])})),t.hasGutter?e("th",{class:"el-table__cell gutter"}):""])}))])])},props:{fixed:String,store:{required:!0},border:Boolean,defaultSort:{type:Object,default:function(){return{prop:"",order:""}}}},components:{ElCheckbox:$r.a},computed:Fi({table:function(){return this.$parent},hasGutter:function(){return!this.fixed&&this.tableLayout.gutterWidth}},mi({columns:"columns",isAllSelected:"isAllSelected",leftFixedLeafCount:"fixedLeafColumnsLength",rightFixedLeafCount:"rightFixedLeafColumnsLength",columnsCount:function(e){return e.columns.length},leftFixedCount:function(e){return e.fixedColumns.length},rightFixedCount:function(e){return e.rightFixedColumns.length}})),created:function(){this.filterPanels={}},mounted:function(){var e=this;this.$nextTick((function(){var t=e.defaultSort,n=t.prop,r=t.order,i=!0;e.store.commit("sort",{prop:n,order:r,init:i})}))},beforeDestroy:function(){var e=this.filterPanels;for(var t in e)e.hasOwnProperty(t)&&e[t]&&e[t].$destroy(!0)},methods:{isCellHidden:function(e,t){for(var n=0,r=0;r<e;r++)n+=t[r].colSpan;var i=n+t[e].colSpan-1;return!0===this.fixed||"left"===this.fixed?i>=this.leftFixedLeafCount:"right"===this.fixed?n<this.columnsCount-this.rightFixedLeafCount:i<this.leftFixedLeafCount||n>=this.columnsCount-this.rightFixedLeafCount},getHeaderRowStyle:function(e){var t=this.table.headerRowStyle;return"function"===typeof t?t.call(null,{rowIndex:e}):t},getHeaderRowClass:function(e){var t=[],n=this.table.headerRowClassName;return"string"===typeof n?t.push(n):"function"===typeof n&&t.push(n.call(null,{rowIndex:e})),t.join(" ")},getHeaderCellStyle:function(e,t,n,r){var i=this.table.headerCellStyle;return"function"===typeof i?i.call(null,{rowIndex:e,columnIndex:t,row:n,column:r}):i},getHeaderCellClass:function(e,t,n,r){var i=[r.id,r.order,r.headerAlign,r.className,r.labelClassName];0===e&&this.isCellHidden(t,n)&&i.push("is-hidden"),r.children||i.push("is-leaf"),r.sortable&&i.push("is-sortable");var a=this.table.headerCellClassName;return"string"===typeof a?i.push(a):"function"===typeof a&&i.push(a.call(null,{rowIndex:e,columnIndex:t,row:n,column:r})),i.push("el-table__cell"),i.join(" ")},toggleAllSelection:function(){this.store.commit("toggleAllSelection")},handleFilterClick:function(e,t){e.stopPropagation();var n=e.target,r="TH"===n.tagName?n:n.parentNode;if(!Object(Be["hasClass"])(r,"noclick")){r=r.querySelector(".el-table__column-filter-trigger")||r;var i=this.$parent,a=this.filterPanels[t.id];a&&t.filterOpened?a.showPopper=!1:(a||(a=new Vr.a(ji),this.filterPanels[t.id]=a,t.filterPlacement&&(a.placement=t.filterPlacement),a.table=i,a.cell=r,a.column=t,!this.$isServer&&a.$mount(document.createElement("div"))),setTimeout((function(){a.showPopper=!0}),16))}},handleHeaderClick:function(e,t){!t.filters&&t.sortable?this.handleSortClick(e,t):t.filterable&&!t.sortable&&this.handleFilterClick(e,t),this.$parent.$emit("header-click",t,e)},handleHeaderContextMenu:function(e,t){this.$parent.$emit("header-contextmenu",t,e)},handleMouseDown:function(e,t){var n=this;if(!this.$isServer&&!(t.children&&t.children.length>0)&&this.draggingColumn&&this.border){this.dragging=!0,this.$parent.resizeProxyVisible=!0;var r=this.$parent,i=r.$el,a=i.getBoundingClientRect().left,o=this.$el.querySelector("th."+t.id),s=o.getBoundingClientRect(),l=s.left-a+30;Object(Be["addClass"])(o,"noclick"),this.dragState={startMouseLeft:e.clientX,startLeft:s.right-a,startColumnLeft:s.left-a,tableLeft:a};var u=r.$refs.resizeProxy;u.style.left=this.dragState.startLeft+"px",document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};var c=function(e){var t=e.clientX-n.dragState.startMouseLeft,r=n.dragState.startLeft+t;u.style.left=Math.max(l,r)+"px"},d=function i(){if(n.dragging){var a=n.dragState,s=a.startColumnLeft,l=a.startLeft,d=parseInt(u.style.left,10),h=d-s;t.width=t.realWidth=h,r.$emit("header-dragend",t.width,l-s,t,e),n.store.scheduleLayout(),document.body.style.cursor="",n.dragging=!1,n.draggingColumn=null,n.dragState={},r.resizeProxyVisible=!1}document.removeEventListener("mousemove",c),document.removeEventListener("mouseup",i),document.onselectstart=null,document.ondragstart=null,setTimeout((function(){Object(Be["removeClass"])(o,"noclick")}),0)};document.addEventListener("mousemove",c),document.addEventListener("mouseup",d)}},handleMouseMove:function(e,t){if(!(t.children&&t.children.length>0)){var n=e.target;while(n&&"TH"!==n.tagName)n=n.parentNode;if(t&&t.resizable&&!this.dragging&&this.border){var r=n.getBoundingClientRect(),i=document.body.style;r.width>12&&r.right-e.pageX<8?(i.cursor="col-resize",Object(Be["hasClass"])(n,"is-sortable")&&(n.style.cursor="col-resize"),this.draggingColumn=t):this.dragging||(i.cursor="",Object(Be["hasClass"])(n,"is-sortable")&&(n.style.cursor="pointer"),this.draggingColumn=null)}}},handleMouseOut:function(){this.$isServer||(document.body.style.cursor="")},toggleOrder:function(e){var t=e.order,n=e.sortOrders;if(""===t)return n[0];var r=n.indexOf(t||null);return n[r>n.length-2?0:r+1]},handleSortClick:function(e,t,n){e.stopPropagation();var r=t.order===n?null:n||this.toggleOrder(t),i=e.target;while(i&&"TH"!==i.tagName)i=i.parentNode;if(i&&"TH"===i.tagName&&Object(Be["hasClass"])(i,"noclick"))Object(Be["removeClass"])(i,"noclick");else if(t.sortable){var a=this.store.states,o=a.sortProp,s=void 0,l=a.sortingColumn;(l!==t||l===t&&null===l.order)&&(l&&(l.order=null),a.sortingColumn=t,o=t.property),s=t.order=r||null,a.sortProp=o,a.sortOrder=s,this.store.commit("changeSortCondition")}}},data:function(){return{draggingColumn:null,dragging:!1,dragState:{}}}},Ri=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vi={name:"ElTableFooter",mixins:[wi],render:function(e){var t=this,n=[];return this.summaryMethod?n=this.summaryMethod({columns:this.columns,data:this.store.states.data}):this.columns.forEach((function(e,r){if(0!==r){var i=t.store.states.data.map((function(t){return Number(t[e.property])})),a=[],o=!0;i.forEach((function(e){if(!isNaN(e)){o=!1;var t=(""+e).split(".")[1];a.push(t?t.length:0)}}));var s=Math.max.apply(null,a);n[r]=o?"":i.reduce((function(e,t){var n=Number(t);return isNaN(n)?e:parseFloat((e+t).toFixed(Math.min(s,20)))}),0)}else n[r]=t.sumText})),e("table",{class:"el-table__footer",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[e("colgroup",[this.columns.map((function(t){return e("col",{attrs:{name:t.id},key:t.id})})),this.hasGutter?e("col",{attrs:{name:"gutter"}}):""]),e("tbody",{class:[{"has-gutter":this.hasGutter}]},[e("tr",[this.columns.map((function(r,i){return e("td",{key:i,attrs:{colspan:r.colSpan,rowspan:r.rowSpan},class:[].concat(t.getRowClasses(r,i),["el-table__cell"])},[e("div",{class:["cell",r.labelClassName]},[n[i]])])})),this.hasGutter?e("th",{class:"el-table__cell gutter"}):""])])])},props:{fixed:String,store:{required:!0},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:function(){return{prop:"",order:""}}}},computed:Ri({table:function(){return this.$parent},hasGutter:function(){return!this.fixed&&this.tableLayout.gutterWidth}},mi({columns:"columns",isAllSelected:"isAllSelected",leftFixedLeafCount:"fixedLeafColumnsLength",rightFixedLeafCount:"rightFixedLeafColumnsLength",columnsCount:function(e){return e.columns.length},leftFixedCount:function(e){return e.fixedColumns.length},rightFixedCount:function(e){return e.rightFixedColumns.length}})),methods:{isCellHidden:function(e,t,n){if(!0===this.fixed||"left"===this.fixed)return e>=this.leftFixedLeafCount;if("right"===this.fixed){for(var r=0,i=0;i<e;i++)r+=t[i].colSpan;return r<this.columnsCount-this.rightFixedLeafCount}return!(this.fixed||!n.fixed)||(e<this.leftFixedCount||e>=this.columnsCount-this.rightFixedCount)},getRowClasses:function(e,t){var n=[e.id,e.align,e.labelClassName];return e.className&&n.push(e.className),this.isCellHidden(t,this.columns,e)&&n.push("is-hidden"),e.children||n.push("is-leaf"),n}}},qi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hi=1,Ui={name:"ElTable",mixins:[g.a,k.a],directives:{Mousewheel:zr},props:{data:{type:Array,default:function(){return[]}},size:String,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],context:{},showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:function(){return{hasChildren:"hasChildren",children:"children"}}},lazy:Boolean,load:Function},components:{TableHeader:zi,TableFooter:Vi,TableBody:ki,ElCheckbox:$r.a},methods:{getMigratingConfig:function(){return{events:{expand:"expand is renamed to expand-change"}}},setCurrentRow:function(e){this.store.commit("setCurrentRow",e)},toggleRowSelection:function(e,t){this.store.toggleRowSelection(e,t,!1),this.store.updateAllSelected()},toggleRowExpansion:function(e,t){this.store.toggleRowExpansionAdapter(e,t)},clearSelection:function(){this.store.clearSelection()},clearFilter:function(e){this.store.clearFilter(e)},clearSort:function(){this.store.clearSort()},handleMouseLeave:function(){this.store.commit("setHoverRow",null),this.hoverState&&(this.hoverState=null)},updateScrollY:function(){var e=this.layout.updateScrollY();e&&(this.layout.notifyObservers("scrollable"),this.layout.updateColumnsWidth())},handleFixedMousewheel:function(e,t){var n=this.bodyWrapper;if(Math.abs(t.spinY)>0){var r=n.scrollTop;t.pixelY<0&&0!==r&&e.preventDefault(),t.pixelY>0&&n.scrollHeight-n.clientHeight>r&&e.preventDefault(),n.scrollTop+=Math.ceil(t.pixelY/5)}else n.scrollLeft+=Math.ceil(t.pixelX/5)},handleHeaderFooterMousewheel:function(e,t){var n=t.pixelX,r=t.pixelY;Math.abs(n)>=Math.abs(r)&&(this.bodyWrapper.scrollLeft+=t.pixelX/5)},syncPostion:function(){var e=this.bodyWrapper,t=e.scrollLeft,n=e.scrollTop,r=e.offsetWidth,i=e.scrollWidth,a=this.$refs,o=a.headerWrapper,s=a.footerWrapper,l=a.fixedBodyWrapper,u=a.rightFixedBodyWrapper;o&&(o.scrollLeft=t),s&&(s.scrollLeft=t),l&&(l.scrollTop=n),u&&(u.scrollTop=n);var c=i-r-1;this.scrollPosition=t>=c?"right":0===t?"left":"middle"},throttleSyncPostion:Object(Pr["throttle"])(16,(function(){this.syncPostion()})),onScroll:function(e){var t=window.requestAnimationFrame;t?t(this.syncPostion):this.throttleSyncPostion()},bindEvents:function(){this.bodyWrapper.addEventListener("scroll",this.onScroll,{passive:!0}),this.fit&&Object(er["addResizeListener"])(this.$el,this.resizeListener)},unbindEvents:function(){this.bodyWrapper.removeEventListener("scroll",this.onScroll,{passive:!0}),this.fit&&Object(er["removeResizeListener"])(this.$el,this.resizeListener)},resizeListener:function(){if(this.$ready){var e=!1,t=this.$el,n=this.resizeState,r=n.width,i=n.height,a=t.offsetWidth;r!==a&&(e=!0);var o=t.offsetHeight;(this.height||this.shouldUpdateHeight)&&i!==o&&(e=!0),e&&(this.resizeState.width=a,this.resizeState.height=o,this.doLayout())}},doLayout:function(){this.shouldUpdateHeight&&this.layout.updateElsHeight(),this.layout.updateColumnsWidth()},sort:function(e,t){this.store.commit("sort",{prop:e,order:t})},toggleAllSelection:function(){this.store.commit("toggleAllSelection")}},computed:qi({tableSize:function(){return this.size||(this.$ELEMENT||{}).size},bodyWrapper:function(){return this.$refs.bodyWrapper},shouldUpdateHeight:function(){return this.height||this.maxHeight||this.fixedColumns.length>0||this.rightFixedColumns.length>0},bodyWidth:function(){var e=this.layout,t=e.bodyWidth,n=e.scrollY,r=e.gutterWidth;return t?t-(n?r:0)+"px":""},bodyHeight:function(){var e=this.layout,t=e.headerHeight,n=void 0===t?0:t,r=e.bodyHeight,i=e.footerHeight,a=void 0===i?0:i;if(this.height)return{height:r?r+"px":""};if(this.maxHeight){var o=ni(this.maxHeight);if("number"===typeof o)return{"max-height":o-a-(this.showHeader?n:0)+"px"}}return{}},fixedBodyHeight:function(){if(this.height)return{height:this.layout.fixedBodyHeight?this.layout.fixedBodyHeight+"px":""};if(this.maxHeight){var e=ni(this.maxHeight);if("number"===typeof e)return e=this.layout.scrollX?e-this.layout.gutterWidth:e,this.showHeader&&(e-=this.layout.headerHeight),e-=this.layout.footerHeight,{"max-height":e+"px"}}return{}},fixedHeight:function(){return this.maxHeight?this.showSummary?{bottom:0}:{bottom:this.layout.scrollX&&this.data.length?this.layout.gutterWidth+"px":""}:this.showSummary?{height:this.layout.tableHeight?this.layout.tableHeight+"px":""}:{height:this.layout.viewportHeight?this.layout.viewportHeight+"px":""}},emptyBlockStyle:function(){if(this.data&&this.data.length)return null;var e="100%";return this.layout.appendHeight&&(e="calc(100% - "+this.layout.appendHeight+"px)"),{width:this.bodyWidth,height:e}}},mi({selection:"selection",columns:"columns",tableData:"data",fixedColumns:"fixedColumns",rightFixedColumns:"rightFixedColumns"})),watch:{height:{immediate:!0,handler:function(e){this.layout.setHeight(e)}},maxHeight:{immediate:!0,handler:function(e){this.layout.setMaxHeight(e)}},currentRowKey:{immediate:!0,handler:function(e){this.rowKey&&this.store.setCurrentRowKey(e)}},data:{immediate:!0,handler:function(e){this.store.commit("setData",e)}},expandRowKeys:{immediate:!0,handler:function(e){e&&this.store.setExpandRowKeysAdapter(e)}}},created:function(){var e=this;this.tableId="el-table_"+Hi++,this.debouncedUpdateLayout=Object(Pr["debounce"])(50,(function(){return e.doLayout()}))},mounted:function(){var e=this;this.bindEvents(),this.store.updateColumns(),this.doLayout(),this.resizeState={width:this.$el.offsetWidth,height:this.$el.offsetHeight},this.store.states.columns.forEach((function(t){t.filteredValue&&t.filteredValue.length&&e.store.commit("filterChange",{column:t,values:t.filteredValue,silent:!0})})),this.$ready=!0},destroyed:function(){this.unbindEvents()},data:function(){var e=this.treeProps,t=e.hasChildren,n=void 0===t?"hasChildren":t,r=e.children,i=void 0===r?"children":r;this.store=pi(this,{rowKey:this.rowKey,defaultExpandAll:this.defaultExpandAll,selectOnIndeterminate:this.selectOnIndeterminate,indent:this.indent,lazy:this.lazy,lazyColumnIdentifier:n,childrenColumnName:i});var a=new xi({store:this.store,table:this,fit:this.fit,showHeader:this.showHeader});return{layout:a,isHidden:!1,renderExpanded:null,resizeProxyVisible:!1,resizeState:{width:null,height:null},isGroup:!1,scrollPosition:"left"}}},Wi=Ui,Yi=s(Wi,Tr,Ar,!1,null,null,null);Yi.options.__file="packages/table/src/table.vue";var Gi=Yi.exports;Gi.install=function(e){e.component(Gi.name,Gi)};var Ki=Gi,Xi={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:"",className:"el-table-column--selection"},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},Zi={selection:{renderHeader:function(e,t){var n=t.store;return e("el-checkbox",{attrs:{disabled:n.states.data&&0===n.states.data.length,indeterminate:n.states.selection.length>0&&!this.isAllSelected,value:this.isAllSelected},on:{input:this.toggleAllSelection}})},renderCell:function(e,t){var n=t.row,r=t.column,i=t.isSelected,a=t.store,o=t.$index;return e("el-checkbox",{nativeOn:{click:function(e){return e.stopPropagation()}},attrs:{value:i,disabled:!!r.selectable&&!r.selectable.call(null,n,o)},on:{input:function(){a.commit("rowSelectedChanged",n)}}})},sortable:!1,resizable:!1},index:{renderHeader:function(e,t){var n=t.column;return n.label||"#"},renderCell:function(e,t){var n=t.$index,r=t.column,i=n+1,a=r.index;return"number"===typeof a?i=n+a:"function"===typeof a&&(i=a(n)),e("div",[i])},sortable:!1},expand:{renderHeader:function(e,t){var n=t.column;return n.label||""},renderCell:function(e,t){var n=t.row,r=t.store,i=t.isExpanded,a=["el-table__expand-icon"];i&&a.push("el-table__expand-icon--expanded");var o=function(e){e.stopPropagation(),r.toggleRowExpansion(n)};return e("div",{class:a,on:{click:o}},[e("i",{class:"el-icon el-icon-arrow-right"})])},sortable:!1,resizable:!1,className:"el-table__expand-column"}};function Ji(e,t){var n=t.row,r=t.column,i=t.$index,a=r.property,o=a&&Object(y["getPropByPath"])(n,a).v;return r&&r.formatter?r.formatter(n,r,o,i):o}function Qi(e,t){var n=t.row,r=t.treeNode,i=t.store;if(!r)return null;var a=[],o=function(e){e.stopPropagation(),i.loadOrToggle(n)};if(r.indent&&a.push(e("span",{class:"el-table__indent",style:{"padding-left":r.indent+"px"}})),"boolean"!==typeof r.expanded||r.noLazyChildren)a.push(e("span",{class:"el-table__placeholder"}));else{var s=["el-table__expand-icon",r.expanded?"el-table__expand-icon--expanded":""],l=["el-icon-arrow-right"];r.loading&&(l=["el-icon-loading"]),a.push(e("div",{class:s,on:{click:o}},[e("i",{class:l})]))}return a}var ea=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ta=1,na={name:"ElTableColumn",props:{type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{},minWidth:{},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showTooltipWhenOverflow:Boolean,showOverflowTooltip:Boolean,fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},index:[Number,Function],sortOrders:{type:Array,default:function(){return["ascending","descending",null]},validator:function(e){return e.every((function(e){return["ascending","descending",null].indexOf(e)>-1}))}}},data:function(){return{isSubColumn:!1,columns:[]}},computed:{owner:function(){var e=this.$parent;while(e&&!e.tableId)e=e.$parent;return e},columnOrTableParent:function(){var e=this.$parent;while(e&&!e.tableId&&!e.columnId)e=e.$parent;return e},realWidth:function(){return ei(this.width)},realMinWidth:function(){return ti(this.minWidth)},realAlign:function(){return this.align?"is-"+this.align:null},realHeaderAlign:function(){return this.headerAlign?"is-"+this.headerAlign:this.realAlign}},methods:{getPropsData:function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.reduce((function(t,n){return Array.isArray(n)&&n.forEach((function(n){t[n]=e[n]})),t}),{})},getColumnElIndex:function(e,t){return[].indexOf.call(e,t)},setColumnWidth:function(e){return this.realWidth&&(e.width=this.realWidth),this.realMinWidth&&(e.minWidth=this.realMinWidth),e.minWidth||(e.minWidth=80),e.realWidth=void 0===e.width?e.minWidth:e.width,e},setColumnForcedProps:function(e){var t=e.type,n=Zi[t]||{};return Object.keys(n).forEach((function(t){var r=n[t];void 0!==r&&(e[t]="className"===t?e[t]+" "+r:r)})),e},setColumnRenders:function(e){var t=this;this.$createElement;this.renderHeader?console.warn("[Element Warn][TableColumn]Comparing to render-header, scoped-slot header is easier to use. We recommend users to use scoped-slot header."):"selection"!==e.type&&(e.renderHeader=function(n,r){var i=t.$scopedSlots.header;return i?i(r):e.label});var n=e.renderCell;return"expand"===e.type?(e.renderCell=function(e,t){return e("div",{class:"cell"},[n(e,t)])},this.owner.renderExpanded=function(e,n){return t.$scopedSlots.default?t.$scopedSlots.default(n):t.$slots.default}):(n=n||Ji,e.renderCell=function(r,i){var a=null;a=t.$scopedSlots.default?t.$scopedSlots.default(i):n(r,i);var o=Qi(r,i),s={class:"cell",style:{}};return e.showOverflowTooltip&&(s.class+=" el-tooltip",s.style={width:(i.column.realWidth||i.column.width)-1+"px"}),r("div",s,[o,a])}),e},registerNormalWatchers:function(){var e=this,t=["label","property","filters","filterMultiple","sortable","index","formatter","className","labelClassName","showOverflowTooltip"],n={prop:"property",realAlign:"align",realHeaderAlign:"headerAlign",realWidth:"width"},r=t.reduce((function(e,t){return e[t]=t,e}),n);Object.keys(r).forEach((function(t){var r=n[t];e.$watch(t,(function(t){e.columnConfig[r]=t}))}))},registerComplexWatchers:function(){var e=this,t=["fixed"],n={realWidth:"width",realMinWidth:"minWidth"},r=t.reduce((function(e,t){return e[t]=t,e}),n);Object.keys(r).forEach((function(t){var r=n[t];e.$watch(t,(function(t){e.columnConfig[r]=t;var n="fixed"===r;e.owner.store.scheduleLayout(n)}))}))}},components:{ElCheckbox:$r.a},beforeCreate:function(){this.row={},this.column={},this.$index=0,this.columnId=""},created:function(){var e=this.columnOrTableParent;this.isSubColumn=this.owner!==e,this.columnId=(e.tableId||e.columnId)+"_column_"+ta++;var t=this.type||"default",n=""===this.sortable||this.sortable,r=ea({},Xi[t],{id:this.columnId,type:t,property:this.prop||this.property,align:this.realAlign,headerAlign:this.realHeaderAlign,showOverflowTooltip:this.showOverflowTooltip||this.showTooltipWhenOverflow,filterable:this.filters||this.filterMethod,filteredValue:[],filterPlacement:"",isColumnGroup:!1,filterOpened:!1,sortable:n,index:this.index}),i=["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],a=["sortMethod","sortBy","sortOrders"],o=["selectable","reserveSelection"],s=["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"],l=this.getPropsData(i,a,o,s);l=Qr(r,l);var u=ri(this.setColumnRenders,this.setColumnWidth,this.setColumnForcedProps);l=u(l),this.columnConfig=l,this.registerNormalWatchers(),this.registerComplexWatchers()},mounted:function(){var e=this.owner,t=this.columnOrTableParent,n=this.isSubColumn?t.$el.children:t.$refs.hiddenColumns.children,r=this.getColumnElIndex(n,this.$el);e.store.commit("insertColumn",this.columnConfig,r,this.isSubColumn?t.columnConfig:null)},destroyed:function(){if(this.$parent){var e=this.$parent;this.owner.store.commit("removeColumn",this.columnConfig,this.isSubColumn?e.columnConfig:null)}},render:function(e){return e("div",this.$slots.default)},install:function(e){e.component(na.name,na)}},ra=na,ia=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.ranged?n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleClose,expression:"handleClose"}],ref:"reference",staticClass:"el-date-editor el-range-editor el-input__inner",class:["el-date-editor--"+e.type,e.pickerSize?"el-range-editor--"+e.pickerSize:"",e.pickerDisabled?"is-disabled":"",e.pickerVisible?"is-active":""],on:{click:e.handleRangeClick,mouseenter:e.handleMouseEnter,mouseleave:function(t){e.showClose=!1},keydown:e.handleKeydown}},[n("i",{class:["el-input__icon","el-range__icon",e.triggerClass]}),n("input",e._b({staticClass:"el-range-input",attrs:{autocomplete:"off",placeholder:e.startPlaceholder,disabled:e.pickerDisabled,readonly:!e.editable||e.readonly,name:e.name&&e.name[0]},domProps:{value:e.displayValue&&e.displayValue[0]},on:{input:e.handleStartInput,change:e.handleStartChange,focus:e.handleFocus}},"input",e.firstInputId,!1)),e._t("range-separator",[n("span",{staticClass:"el-range-separator"},[e._v(e._s(e.rangeSeparator))])]),n("input",e._b({staticClass:"el-range-input",attrs:{autocomplete:"off",placeholder:e.endPlaceholder,disabled:e.pickerDisabled,readonly:!e.editable||e.readonly,name:e.name&&e.name[1]},domProps:{value:e.displayValue&&e.displayValue[1]},on:{input:e.handleEndInput,change:e.handleEndChange,focus:e.handleFocus}},"input",e.secondInputId,!1)),e.haveTrigger?n("i",{staticClass:"el-input__icon el-range__close-icon",class:[e.showClose?""+e.clearIcon:""],on:{click:e.handleClickIcon}}):e._e()],2):n("el-input",e._b({directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleClose,expression:"handleClose"}],ref:"reference",staticClass:"el-date-editor",class:"el-date-editor--"+e.type,attrs:{readonly:!e.editable||e.readonly||"dates"===e.type||"week"===e.type,disabled:e.pickerDisabled,size:e.pickerSize,name:e.name,placeholder:e.placeholder,value:e.displayValue,validateEvent:!1},on:{focus:e.handleFocus,input:function(t){return e.userInput=t},change:e.handleChange},nativeOn:{keydown:function(t){return e.handleKeydown(t)},mouseenter:function(t){return e.handleMouseEnter(t)},mouseleave:function(t){e.showClose=!1}}},"el-input",e.firstInputId,!1),[n("i",{staticClass:"el-input__icon",class:e.triggerClass,attrs:{slot:"prefix"},on:{click:e.handleFocus},slot:"prefix"}),e.haveTrigger?n("i",{staticClass:"el-input__icon",class:[e.showClose?""+e.clearIcon:""],attrs:{slot:"suffix"},on:{click:e.handleClickIcon},slot:"suffix"}):e._e()])},aa=[];ia._withStripped=!0;var oa=n(0),sa={props:{appendToBody:q.a.props.appendToBody,offset:q.a.props.offset,boundariesPadding:q.a.props.boundariesPadding,arrowOffset:q.a.props.arrowOffset,placement:q.a.props.placement,transformOrigin:q.a.props.transformOrigin},methods:q.a.methods,data:function(){return Nt()({visibleArrow:!0},q.a.data)},beforeDestroy:q.a.beforeDestroy},la={date:"yyyy-MM-dd",month:"yyyy-MM",datetime:"yyyy-MM-dd HH:mm:ss",time:"HH:mm:ss",week:"yyyywWW",timerange:"HH:mm:ss",daterange:"yyyy-MM-dd",monthrange:"yyyy-MM",datetimerange:"yyyy-MM-dd HH:mm:ss",year:"yyyy"},ua=["date","datetime","time","time-select","week","month","year","daterange","monthrange","timerange","datetimerange","dates"],ca=function(e,t){return"timestamp"===t?e.getTime():Object(oa["formatDate"])(e,t)},da=function(e,t){return"timestamp"===t?new Date(Number(e)):Object(oa["parseDate"])(e,t)},ha=function(e,t){if(Array.isArray(e)&&2===e.length){var n=e[0],r=e[1];if(n&&r)return[ca(n,t),ca(r,t)]}return""},fa=function(e,t,n){if(Array.isArray(e)||(e=e.split(n)),2===e.length){var r=e[0],i=e[1];return[da(r,t),da(i,t)]}return[]},pa={default:{formatter:function(e){return e?""+e:""},parser:function(e){return void 0===e||""===e?null:e}},week:{formatter:function(e,t){var n=Object(oa["getWeekNumber"])(e),r=e.getMonth(),i=new Date(e);1===n&&11===r&&(i.setHours(0,0,0,0),i.setDate(i.getDate()+3-(i.getDay()+6)%7));var a=Object(oa["formatDate"])(i,t);return a=/WW/.test(a)?a.replace(/WW/,n<10?"0"+n:n):a.replace(/W/,n),a},parser:function(e,t){return pa.date.parser(e,t)}},date:{formatter:ca,parser:da},datetime:{formatter:ca,parser:da},daterange:{formatter:ha,parser:fa},monthrange:{formatter:ha,parser:fa},datetimerange:{formatter:ha,parser:fa},timerange:{formatter:ha,parser:fa},time:{formatter:ca,parser:da},month:{formatter:ca,parser:da},year:{formatter:ca,parser:da},number:{formatter:function(e){return e?""+e:""},parser:function(e){var t=Number(e);return isNaN(e)?null:t}},dates:{formatter:function(e,t){return e.map((function(e){return ca(e,t)}))},parser:function(e,t){return("string"===typeof e?e.split(", "):e).map((function(e){return e instanceof Date?e:da(e,t)}))}}},ma={left:"bottom-start",center:"bottom",right:"bottom-end"},va=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"-";if(!e)return null;var i=(pa[n]||pa["default"]).parser,a=t||la[n];return i(e,a,r)},ga=function(e,t,n){if(!e)return null;var r=(pa[n]||pa["default"]).formatter,i=t||la[n];return r(e,i)},ya=function(e,t){var n=function(e,t){var n=e instanceof Date,r=t instanceof Date;return n&&r?e.getTime()===t.getTime():!n&&!r&&e===t},r=e instanceof Array,i=t instanceof Array;return r&&i?e.length===t.length&&e.every((function(e,r){return n(e,t[r])})):!r&&!i&&n(e,t)},ba=function(e){return"string"===typeof e||e instanceof String},xa=function(e){return null===e||void 0===e||ba(e)||Array.isArray(e)&&2===e.length&&e.every(ba)},wa={mixins:[M.a,sa],inject:{elForm:{default:""},elFormItem:{default:""}},props:{size:String,format:String,valueFormat:String,readonly:Boolean,placeholder:String,startPlaceholder:String,endPlaceholder:String,prefixIcon:String,clearIcon:{type:String,default:"el-icon-circle-close"},name:{default:"",validator:xa},disabled:Boolean,clearable:{type:Boolean,default:!0},id:{default:"",validator:xa},popperClass:String,editable:{type:Boolean,default:!0},align:{type:String,default:"left"},value:{},defaultValue:{},defaultTime:{},rangeSeparator:{default:"-"},pickerOptions:{},unlinkPanels:Boolean,validateEvent:{type:Boolean,default:!0}},components:{ElInput:m.a},directives:{Clickoutside:L.a},data:function(){return{pickerVisible:!1,showClose:!1,userInput:null,valueOnOpen:null,unwatchPickerOptions:null}},watch:{pickerVisible:function(e){this.readonly||this.pickerDisabled||(e?(this.showPicker(),this.valueOnOpen=Array.isArray(this.value)?[].concat(this.value):this.value):(this.hidePicker(),this.emitChange(this.value),this.userInput=null,this.validateEvent&&this.dispatch("ElFormItem","el.form.blur"),this.$emit("blur",this),this.blur()))},parsedValue:{immediate:!0,handler:function(e){this.picker&&(this.picker.value=e)}},defaultValue:function(e){this.picker&&(this.picker.defaultValue=e)},value:function(e,t){ya(e,t)||this.pickerVisible||!this.validateEvent||this.dispatch("ElFormItem","el.form.change",e)}},computed:{ranged:function(){return this.type.indexOf("range")>-1},reference:function(){var e=this.$refs.reference;return e.$el||e},refInput:function(){return this.reference?[].slice.call(this.reference.querySelectorAll("input")):[]},valueIsEmpty:function(){var e=this.value;if(Array.isArray(e)){for(var t=0,n=e.length;t<n;t++)if(e[t])return!1}else if(e)return!1;return!0},triggerClass:function(){return this.prefixIcon||(-1!==this.type.indexOf("time")?"el-icon-time":"el-icon-date")},selectionMode:function(){return"week"===this.type?"week":"month"===this.type?"month":"year"===this.type?"year":"dates"===this.type?"dates":"day"},haveTrigger:function(){return"undefined"!==typeof this.showTrigger?this.showTrigger:-1!==ua.indexOf(this.type)},displayValue:function(){var e=ga(this.parsedValue,this.format,this.type,this.rangeSeparator);return Array.isArray(this.userInput)?[this.userInput[0]||e&&e[0]||"",this.userInput[1]||e&&e[1]||""]:null!==this.userInput?this.userInput:e?"dates"===this.type?e.join(", "):e:""},parsedValue:function(){if(!this.value)return this.value;if("time-select"===this.type)return this.value;var e=Object(oa["isDateObject"])(this.value)||Array.isArray(this.value)&&this.value.every(oa["isDateObject"]);return e?this.value:this.valueFormat?va(this.value,this.valueFormat,this.type,this.rangeSeparator)||this.value:Array.isArray(this.value)?this.value.map((function(e){return new Date(e)})):new Date(this.value)},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},pickerSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},pickerDisabled:function(){return this.disabled||(this.elForm||{}).disabled},firstInputId:function(){var e={},t=void 0;return t=this.ranged?this.id&&this.id[0]:this.id,t&&(e.id=t),e},secondInputId:function(){var e={},t=void 0;return this.ranged&&(t=this.id&&this.id[1]),t&&(e.id=t),e}},created:function(){this.popperOptions={boundariesPadding:0,gpuAcceleration:!1},this.placement=ma[this.align]||ma.left,this.$on("fieldReset",this.handleFieldReset)},methods:{focus:function(){this.ranged?this.handleFocus():this.$refs.reference.focus()},blur:function(){this.refInput.forEach((function(e){return e.blur()}))},parseValue:function(e){var t=Object(oa["isDateObject"])(e)||Array.isArray(e)&&e.every(oa["isDateObject"]);return this.valueFormat&&!t&&va(e,this.valueFormat,this.type,this.rangeSeparator)||e},formatToValue:function(e){var t=Object(oa["isDateObject"])(e)||Array.isArray(e)&&e.every(oa["isDateObject"]);return this.valueFormat&&t?ga(e,this.valueFormat,this.type,this.rangeSeparator):e},parseString:function(e){var t=Array.isArray(e)?this.type:this.type.replace("range","");return va(e,this.format,t)},formatToString:function(e){var t=Array.isArray(e)?this.type:this.type.replace("range","");return ga(e,this.format,t)},handleMouseEnter:function(){this.readonly||this.pickerDisabled||!this.valueIsEmpty&&this.clearable&&(this.showClose=!0)},handleChange:function(){if(this.userInput){var e=this.parseString(this.displayValue);e&&(this.picker.value=e,this.isValidValue(e)&&(this.emitInput(e),this.userInput=null))}""===this.userInput&&(this.emitInput(null),this.emitChange(null),this.userInput=null)},handleStartInput:function(e){this.userInput?this.userInput=[e.target.value,this.userInput[1]]:this.userInput=[e.target.value,null]},handleEndInput:function(e){this.userInput?this.userInput=[this.userInput[0],e.target.value]:this.userInput=[null,e.target.value]},handleStartChange:function(e){var t=this.parseString(this.userInput&&this.userInput[0]);if(t){this.userInput=[this.formatToString(t),this.displayValue[1]];var n=[t,this.picker.value&&this.picker.value[1]];this.picker.value=n,this.isValidValue(n)&&(this.emitInput(n),this.userInput=null)}},handleEndChange:function(e){var t=this.parseString(this.userInput&&this.userInput[1]);if(t){this.userInput=[this.displayValue[0],this.formatToString(t)];var n=[this.picker.value&&this.picker.value[0],t];this.picker.value=n,this.isValidValue(n)&&(this.emitInput(n),this.userInput=null)}},handleClickIcon:function(e){this.readonly||this.pickerDisabled||(this.showClose?(this.valueOnOpen=this.value,e.stopPropagation(),this.emitInput(null),this.emitChange(null),this.showClose=!1,this.picker&&"function"===typeof this.picker.handleClear&&this.picker.handleClear()):this.pickerVisible=!this.pickerVisible)},handleClose:function(){if(this.pickerVisible&&(this.pickerVisible=!1,"dates"===this.type)){var e=va(this.valueOnOpen,this.valueFormat,this.type,this.rangeSeparator)||this.valueOnOpen;this.emitInput(e)}},handleFieldReset:function(e){this.userInput=""===e?null:e},handleFocus:function(){var e=this.type;-1===ua.indexOf(e)||this.pickerVisible||(this.pickerVisible=!0),this.$emit("focus",this)},handleKeydown:function(e){var t=this,n=e.keyCode;return 27===n?(this.pickerVisible=!1,void e.stopPropagation()):9!==n?13===n?((""===this.userInput||this.isValidValue(this.parseString(this.displayValue)))&&(this.handleChange(),this.pickerVisible=this.picker.visible=!1,this.blur()),void e.stopPropagation()):void(this.userInput?e.stopPropagation():this.picker&&this.picker.handleKeydown&&this.picker.handleKeydown(e)):void(this.ranged?setTimeout((function(){-1===t.refInput.indexOf(document.activeElement)&&(t.pickerVisible=!1,t.blur(),e.stopPropagation())}),0):(this.handleChange(),this.pickerVisible=this.picker.visible=!1,this.blur(),e.stopPropagation()))},handleRangeClick:function(){var e=this.type;-1===ua.indexOf(e)||this.pickerVisible||(this.pickerVisible=!0),this.$emit("focus",this)},hidePicker:function(){this.picker&&(this.picker.resetView&&this.picker.resetView(),this.pickerVisible=this.picker.visible=!1,this.destroyPopper())},showPicker:function(){var e=this;this.$isServer||(this.picker||this.mountPicker(),this.pickerVisible=this.picker.visible=!0,this.updatePopper(),this.picker.value=this.parsedValue,this.picker.resetView&&this.picker.resetView(),this.$nextTick((function(){e.picker.adjustSpinners&&e.picker.adjustSpinners()})))},mountPicker:function(){var e=this;this.picker=new Vr.a(this.panel).$mount(),this.picker.defaultValue=this.defaultValue,this.picker.defaultTime=this.defaultTime,this.picker.popperClass=this.popperClass,this.popperElm=this.picker.$el,this.picker.width=this.reference.getBoundingClientRect().width,this.picker.showTime="datetime"===this.type||"datetimerange"===this.type,this.picker.selectionMode=this.selectionMode,this.picker.unlinkPanels=this.unlinkPanels,this.picker.arrowControl=this.arrowControl||this.timeArrowControl||!1,this.$watch("format",(function(t){e.picker.format=t}));var t=function(){var t=e.pickerOptions;if(t&&t.selectableRange){var n=t.selectableRange,r=pa.datetimerange.parser,i=la.timerange;n=Array.isArray(n)?n:[n],e.picker.selectableRange=n.map((function(t){return r(t,i,e.rangeSeparator)}))}for(var a in t)t.hasOwnProperty(a)&&"selectableRange"!==a&&(e.picker[a]=t[a]);e.format&&(e.picker.format=e.format)};t(),this.unwatchPickerOptions=this.$watch("pickerOptions",(function(){return t()}),{deep:!0}),this.$el.appendChild(this.picker.$el),this.picker.resetView&&this.picker.resetView(),this.picker.$on("dodestroy",this.doDestroy),this.picker.$on("pick",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.userInput=null,e.pickerVisible=e.picker.visible=n,e.emitInput(t),e.picker.resetView&&e.picker.resetView()})),this.picker.$on("select-range",(function(t,n,r){0!==e.refInput.length&&(r&&"min"!==r?"max"===r&&(e.refInput[1].setSelectionRange(t,n),e.refInput[1].focus()):(e.refInput[0].setSelectionRange(t,n),e.refInput[0].focus()))}))},unmountPicker:function(){this.picker&&(this.picker.$destroy(),this.picker.$off(),"function"===typeof this.unwatchPickerOptions&&this.unwatchPickerOptions(),this.picker.$el.parentNode.removeChild(this.picker.$el))},emitChange:function(e){ya(e,this.valueOnOpen)||(this.$emit("change",e),this.valueOnOpen=e,this.validateEvent&&this.dispatch("ElFormItem","el.form.change",e))},emitInput:function(e){var t=this.formatToValue(e);ya(this.value,t)||this.$emit("input",t)},isValidValue:function(e){return this.picker||this.mountPicker(),!this.picker.isValidValue||e&&this.picker.isValidValue(e)}}},_a=wa,Ca=s(_a,ia,aa,!1,null,null,null);Ca.options.__file="packages/date-picker/src/picker.vue";var Sa=Ca.exports,Na=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-enter":e.handleEnter,"after-leave":e.handleLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-picker-panel el-date-picker el-popper",class:[{"has-sidebar":e.$slots.sidebar||e.shortcuts,"has-time":e.showTime},e.popperClass]},[n("div",{staticClass:"el-picker-panel__body-wrapper"},[e._t("sidebar"),e.shortcuts?n("div",{staticClass:"el-picker-panel__sidebar"},e._l(e.shortcuts,(function(t,r){return n("button",{key:r,staticClass:"el-picker-panel__shortcut",attrs:{type:"button"},on:{click:function(n){e.handleShortcutClick(t)}}},[e._v(e._s(t.text))])})),0):e._e(),n("div",{staticClass:"el-picker-panel__body"},[e.showTime?n("div",{staticClass:"el-date-picker__time-header"},[n("span",{staticClass:"el-date-picker__editor-wrap"},[n("el-input",{attrs:{placeholder:e.t("el.datepicker.selectDate"),value:e.visibleDate,size:"small"},on:{input:function(t){return e.userInputDate=t},change:e.handleVisibleDateChange}})],1),n("span",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleTimePickClose,expression:"handleTimePickClose"}],staticClass:"el-date-picker__editor-wrap"},[n("el-input",{ref:"input",attrs:{placeholder:e.t("el.datepicker.selectTime"),value:e.visibleTime,size:"small"},on:{focus:function(t){e.timePickerVisible=!0},input:function(t){return e.userInputTime=t},change:e.handleVisibleTimeChange}}),n("time-picker",{ref:"timepicker",attrs:{"time-arrow-control":e.arrowControl,visible:e.timePickerVisible},on:{pick:e.handleTimePick,mounted:e.proxyTimePickerDataProperties}})],1)]):e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:"time"!==e.currentView,expression:"currentView !== 'time'"}],staticClass:"el-date-picker__header",class:{"el-date-picker__header--bordered":"year"===e.currentView||"month"===e.currentView}},[n("button",{staticClass:"el-picker-panel__icon-btn el-date-picker__prev-btn el-icon-d-arrow-left",attrs:{type:"button","aria-label":e.t("el.datepicker.prevYear")},on:{click:e.prevYear}}),n("button",{directives:[{name:"show",rawName:"v-show",value:"date"===e.currentView,expression:"currentView === 'date'"}],staticClass:"el-picker-panel__icon-btn el-date-picker__prev-btn el-icon-arrow-left",attrs:{type:"button","aria-label":e.t("el.datepicker.prevMonth")},on:{click:e.prevMonth}}),n("span",{staticClass:"el-date-picker__header-label",attrs:{role:"button"},on:{click:e.showYearPicker}},[e._v(e._s(e.yearLabel))]),n("span",{directives:[{name:"show",rawName:"v-show",value:"date"===e.currentView,expression:"currentView === 'date'"}],staticClass:"el-date-picker__header-label",class:{active:"month"===e.currentView},attrs:{role:"button"},on:{click:e.showMonthPicker}},[e._v(e._s(e.t("el.datepicker.month"+(e.month+1))))]),n("button",{staticClass:"el-picker-panel__icon-btn el-date-picker__next-btn el-icon-d-arrow-right",attrs:{type:"button","aria-label":e.t("el.datepicker.nextYear")},on:{click:e.nextYear}}),n("button",{directives:[{name:"show",rawName:"v-show",value:"date"===e.currentView,expression:"currentView === 'date'"}],staticClass:"el-picker-panel__icon-btn el-date-picker__next-btn el-icon-arrow-right",attrs:{type:"button","aria-label":e.t("el.datepicker.nextMonth")},on:{click:e.nextMonth}})]),n("div",{staticClass:"el-picker-panel__content"},[n("date-table",{directives:[{name:"show",rawName:"v-show",value:"date"===e.currentView,expression:"currentView === 'date'"}],attrs:{"selection-mode":e.selectionMode,"first-day-of-week":e.firstDayOfWeek,value:e.value,"default-value":e.defaultValue?new Date(e.defaultValue):null,date:e.date,"cell-class-name":e.cellClassName,"disabled-date":e.disabledDate},on:{pick:e.handleDatePick}}),n("year-table",{directives:[{name:"show",rawName:"v-show",value:"year"===e.currentView,expression:"currentView === 'year'"}],attrs:{value:e.value,"default-value":e.defaultValue?new Date(e.defaultValue):null,date:e.date,"disabled-date":e.disabledDate},on:{pick:e.handleYearPick}}),n("month-table",{directives:[{name:"show",rawName:"v-show",value:"month"===e.currentView,expression:"currentView === 'month'"}],attrs:{value:e.value,"default-value":e.defaultValue?new Date(e.defaultValue):null,date:e.date,"disabled-date":e.disabledDate},on:{pick:e.handleMonthPick}})],1)])],2),n("div",{directives:[{name:"show",rawName:"v-show",value:e.footerVisible&&"date"===e.currentView,expression:"footerVisible && currentView === 'date'"}],staticClass:"el-picker-panel__footer"},[n("el-button",{directives:[{name:"show",rawName:"v-show",value:"dates"!==e.selectionMode,expression:"selectionMode !== 'dates'"}],staticClass:"el-picker-panel__link-btn",attrs:{size:"mini",type:"text"},on:{click:e.changeToNow}},[e._v("\n "+e._s(e.t("el.datepicker.now"))+"\n ")]),n("el-button",{staticClass:"el-picker-panel__link-btn",attrs:{plain:"",size:"mini"},on:{click:e.confirm}},[e._v("\n "+e._s(e.t("el.datepicker.confirm"))+"\n ")])],1)])])},ka=[];Na._withStripped=!0;var Ea=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":function(t){e.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-time-panel el-popper",class:e.popperClass},[n("div",{staticClass:"el-time-panel__content",class:{"has-seconds":e.showSeconds}},[n("time-spinner",{ref:"spinner",attrs:{"arrow-control":e.useArrow,"show-seconds":e.showSeconds,"am-pm-mode":e.amPmMode,date:e.date},on:{change:e.handleChange,"select-range":e.setSelectionRange}})],1),n("div",{staticClass:"el-time-panel__footer"},[n("button",{staticClass:"el-time-panel__btn cancel",attrs:{type:"button"},on:{click:e.handleCancel}},[e._v(e._s(e.t("el.datepicker.cancel")))]),n("button",{staticClass:"el-time-panel__btn",class:{confirm:!e.disabled},attrs:{type:"button"},on:{click:function(t){e.handleConfirm()}}},[e._v(e._s(e.t("el.datepicker.confirm")))])])])])},Ma=[];Ea._withStripped=!0;var Oa=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-time-spinner",class:{"has-seconds":e.showSeconds}},[e.arrowControl?e._e():[n("el-scrollbar",{ref:"hours",staticClass:"el-time-spinner__wrapper",attrs:{"wrap-style":"max-height: inherit;","view-class":"el-time-spinner__list",noresize:"",tag:"ul"},nativeOn:{mouseenter:function(t){e.emitSelectRange("hours")},mousemove:function(t){e.adjustCurrentSpinner("hours")}}},e._l(e.hoursList,(function(t,r){return n("li",{key:r,staticClass:"el-time-spinner__item",class:{active:r===e.hours,disabled:t},on:{click:function(n){e.handleClick("hours",{value:r,disabled:t})}}},[e._v(e._s(("0"+(e.amPmMode?r%12||12:r)).slice(-2))+e._s(e.amPm(r)))])})),0),n("el-scrollbar",{ref:"minutes",staticClass:"el-time-spinner__wrapper",attrs:{"wrap-style":"max-height: inherit;","view-class":"el-time-spinner__list",noresize:"",tag:"ul"},nativeOn:{mouseenter:function(t){e.emitSelectRange("minutes")},mousemove:function(t){e.adjustCurrentSpinner("minutes")}}},e._l(e.minutesList,(function(t,r){return n("li",{key:r,staticClass:"el-time-spinner__item",class:{active:r===e.minutes,disabled:!t},on:{click:function(t){e.handleClick("minutes",{value:r,disabled:!1})}}},[e._v(e._s(("0"+r).slice(-2)))])})),0),n("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:e.showSeconds,expression:"showSeconds"}],ref:"seconds",staticClass:"el-time-spinner__wrapper",attrs:{"wrap-style":"max-height: inherit;","view-class":"el-time-spinner__list",noresize:"",tag:"ul"},nativeOn:{mouseenter:function(t){e.emitSelectRange("seconds")},mousemove:function(t){e.adjustCurrentSpinner("seconds")}}},e._l(60,(function(t,r){return n("li",{key:r,staticClass:"el-time-spinner__item",class:{active:r===e.seconds},on:{click:function(t){e.handleClick("seconds",{value:r,disabled:!1})}}},[e._v(e._s(("0"+r).slice(-2)))])})),0)],e.arrowControl?[n("div",{staticClass:"el-time-spinner__wrapper is-arrow",on:{mouseenter:function(t){e.emitSelectRange("hours")}}},[n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.decrease,expression:"decrease"}],staticClass:"el-time-spinner__arrow el-icon-arrow-up"}),n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.increase,expression:"increase"}],staticClass:"el-time-spinner__arrow el-icon-arrow-down"}),n("ul",{ref:"hours",staticClass:"el-time-spinner__list"},e._l(e.arrowHourList,(function(t,r){return n("li",{key:r,staticClass:"el-time-spinner__item",class:{active:t===e.hours,disabled:e.hoursList[t]}},[e._v(e._s(void 0===t?"":("0"+(e.amPmMode?t%12||12:t)).slice(-2)+e.amPm(t)))])})),0)]),n("div",{staticClass:"el-time-spinner__wrapper is-arrow",on:{mouseenter:function(t){e.emitSelectRange("minutes")}}},[n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.decrease,expression:"decrease"}],staticClass:"el-time-spinner__arrow el-icon-arrow-up"}),n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.increase,expression:"increase"}],staticClass:"el-time-spinner__arrow el-icon-arrow-down"}),n("ul",{ref:"minutes",staticClass:"el-time-spinner__list"},e._l(e.arrowMinuteList,(function(t,r){return n("li",{key:r,staticClass:"el-time-spinner__item",class:{active:t===e.minutes}},[e._v("\n "+e._s(void 0===t?"":("0"+t).slice(-2))+"\n ")])})),0)]),e.showSeconds?n("div",{staticClass:"el-time-spinner__wrapper is-arrow",on:{mouseenter:function(t){e.emitSelectRange("seconds")}}},[n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.decrease,expression:"decrease"}],staticClass:"el-time-spinner__arrow el-icon-arrow-up"}),n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.increase,expression:"increase"}],staticClass:"el-time-spinner__arrow el-icon-arrow-down"}),n("ul",{ref:"seconds",staticClass:"el-time-spinner__list"},e._l(e.arrowSecondList,(function(t,r){return n("li",{key:r,staticClass:"el-time-spinner__item",class:{active:t===e.seconds}},[e._v("\n "+e._s(void 0===t?"":("0"+t).slice(-2))+"\n ")])})),0)]):e._e()]:e._e()],2)},Da=[];Oa._withStripped=!0;var Ta={components:{ElScrollbar:U.a},directives:{repeatClick:$t},props:{date:{},defaultValue:{},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:String,default:""}},computed:{hours:function(){return this.date.getHours()},minutes:function(){return this.date.getMinutes()},seconds:function(){return this.date.getSeconds()},hoursList:function(){return Object(oa["getRangeHours"])(this.selectableRange)},minutesList:function(){return Object(oa["getRangeMinutes"])(this.selectableRange,this.hours)},arrowHourList:function(){var e=this.hours;return[e>0?e-1:void 0,e,e<23?e+1:void 0]},arrowMinuteList:function(){var e=this.minutes;return[e>0?e-1:void 0,e,e<59?e+1:void 0]},arrowSecondList:function(){var e=this.seconds;return[e>0?e-1:void 0,e,e<59?e+1:void 0]}},data:function(){return{selectableRange:[],currentScrollbar:null}},mounted:function(){var e=this;this.$nextTick((function(){!e.arrowControl&&e.bindScrollEvent()}))},methods:{increase:function(){this.scrollDown(1)},decrease:function(){this.scrollDown(-1)},modifyDateField:function(e,t){switch(e){case"hours":this.$emit("change",Object(oa["modifyTime"])(this.date,t,this.minutes,this.seconds));break;case"minutes":this.$emit("change",Object(oa["modifyTime"])(this.date,this.hours,t,this.seconds));break;case"seconds":this.$emit("change",Object(oa["modifyTime"])(this.date,this.hours,this.minutes,t));break}},handleClick:function(e,t){var n=t.value,r=t.disabled;r||(this.modifyDateField(e,n),this.emitSelectRange(e),this.adjustSpinner(e,n))},emitSelectRange:function(e){"hours"===e?this.$emit("select-range",0,2):"minutes"===e?this.$emit("select-range",3,5):"seconds"===e&&this.$emit("select-range",6,8),this.currentScrollbar=e},bindScrollEvent:function(){var e=this,t=function(t){e.$refs[t].wrap.onscroll=function(n){e.handleScroll(t,n)}};t("hours"),t("minutes"),t("seconds")},handleScroll:function(e){var t=Math.min(Math.round((this.$refs[e].wrap.scrollTop-(.5*this.scrollBarHeight(e)-10)/this.typeItemHeight(e)+3)/this.typeItemHeight(e)),"hours"===e?23:59);this.modifyDateField(e,t)},adjustSpinners:function(){this.adjustSpinner("hours",this.hours),this.adjustSpinner("minutes",this.minutes),this.adjustSpinner("seconds",this.seconds)},adjustCurrentSpinner:function(e){this.adjustSpinner(e,this[e])},adjustSpinner:function(e,t){if(!this.arrowControl){var n=this.$refs[e].wrap;n&&(n.scrollTop=Math.max(0,t*this.typeItemHeight(e)))}},scrollDown:function(e){var t=this;this.currentScrollbar||this.emitSelectRange("hours");var n=this.currentScrollbar,r=this.hoursList,i=this[n];if("hours"===this.currentScrollbar){var a=Math.abs(e);e=e>0?1:-1;var o=r.length;while(o--&&a)i=(i+e+r.length)%r.length,r[i]||a--;if(r[i])return}else i=(i+e+60)%60;this.modifyDateField(n,i),this.adjustSpinner(n,i),this.$nextTick((function(){return t.emitSelectRange(t.currentScrollbar)}))},amPm:function(e){var t="a"===this.amPmMode.toLowerCase();if(!t)return"";var n="A"===this.amPmMode,r=e<12?" am":" pm";return n&&(r=r.toUpperCase()),r},typeItemHeight:function(e){return this.$refs[e].$el.querySelector("li").offsetHeight},scrollBarHeight:function(e){return this.$refs[e].$el.offsetHeight}}},Aa=Ta,Ia=s(Aa,Oa,Da,!1,null,null,null);Ia.options.__file="packages/date-picker/src/basic/time-spinner.vue";var $a=Ia.exports,Pa={mixins:[g.a],components:{TimeSpinner:$a},props:{visible:Boolean,timeArrowControl:Boolean},watch:{visible:function(e){var t=this;e?(this.oldValue=this.value,this.$nextTick((function(){return t.$refs.spinner.emitSelectRange("hours")}))):this.needInitAdjust=!0},value:function(e){var t=this,n=void 0;e instanceof Date?n=Object(oa["limitTimeRange"])(e,this.selectableRange,this.format):e||(n=this.defaultValue?new Date(this.defaultValue):new Date),this.date=n,this.visible&&this.needInitAdjust&&(this.$nextTick((function(e){return t.adjustSpinners()})),this.needInitAdjust=!1)},selectableRange:function(e){this.$refs.spinner.selectableRange=e},defaultValue:function(e){Object(oa["isDate"])(this.value)||(this.date=e?new Date(e):new Date)}},data:function(){return{popperClass:"",format:"HH:mm:ss",value:"",defaultValue:null,date:new Date,oldValue:new Date,selectableRange:[],selectionRange:[0,2],disabled:!1,arrowControl:!1,needInitAdjust:!0}},computed:{showSeconds:function(){return-1!==(this.format||"").indexOf("ss")},useArrow:function(){return this.arrowControl||this.timeArrowControl||!1},amPmMode:function(){return-1!==(this.format||"").indexOf("A")?"A":-1!==(this.format||"").indexOf("a")?"a":""}},methods:{handleCancel:function(){this.$emit("pick",this.oldValue,!1)},handleChange:function(e){this.visible&&(this.date=Object(oa["clearMilliseconds"])(e),this.isValidValue(this.date)&&this.$emit("pick",this.date,!0))},setSelectionRange:function(e,t){this.$emit("select-range",e,t),this.selectionRange=[e,t]},handleConfirm:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments[1];if(!t){var n=Object(oa["clearMilliseconds"])(Object(oa["limitTimeRange"])(this.date,this.selectableRange,this.format));this.$emit("pick",n,e,t)}},handleKeydown:function(e){var t=e.keyCode,n={38:-1,40:1,37:-1,39:1};if(37===t||39===t){var r=n[t];return this.changeSelectionRange(r),void e.preventDefault()}if(38===t||40===t){var i=n[t];return this.$refs.spinner.scrollDown(i),void e.preventDefault()}},isValidValue:function(e){return Object(oa["timeWithinRange"])(e,this.selectableRange,this.format)},adjustSpinners:function(){return this.$refs.spinner.adjustSpinners()},changeSelectionRange:function(e){var t=[0,3].concat(this.showSeconds?[6]:[]),n=["hours","minutes"].concat(this.showSeconds?["seconds"]:[]),r=t.indexOf(this.selectionRange[0]),i=(r+e+t.length)%t.length;this.$refs.spinner.emitSelectRange(n[i])}},mounted:function(){var e=this;this.$nextTick((function(){return e.handleConfirm(!0,!0)})),this.$emit("mounted")}},ja=Pa,Fa=s(ja,Ea,Ma,!1,null,null,null);Fa.options.__file="packages/date-picker/src/panel/time.vue";var Ba=Fa.exports,La=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("table",{staticClass:"el-year-table",on:{click:e.handleYearTableClick}},[n("tbody",[n("tr",[n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+0)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+1)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+1))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+2)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+2))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+3)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+3))])])]),n("tr",[n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+4)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+4))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+5)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+5))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+6)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+6))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+7)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+7))])])]),n("tr",[n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+8)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+8))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+9)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+9))])]),n("td"),n("td")])])])},za=[];La._withStripped=!0;var Ra=function(e){var t=Object(oa["getDayCountOfYear"])(e),n=new Date(e,0,1);return Object(oa["range"])(t).map((function(e){return Object(oa["nextDate"])(n,e)}))},Va={props:{disabledDate:{},value:{},defaultValue:{validator:function(e){return null===e||e instanceof Date&&Object(oa["isDate"])(e)}},date:{}},computed:{startYear:function(){return 10*Math.floor(this.date.getFullYear()/10)}},methods:{getCellStyle:function(e){var t={},n=new Date;return t.disabled="function"===typeof this.disabledDate&&Ra(e).every(this.disabledDate),t.current=Object(y["arrayFindIndex"])(Object(y["coerceTruthyValueToArray"])(this.value),(function(t){return t.getFullYear()===e}))>=0,t.today=n.getFullYear()===e,t.default=this.defaultValue&&this.defaultValue.getFullYear()===e,t},handleYearTableClick:function(e){var t=e.target;if("A"===t.tagName){if(Object(Be["hasClass"])(t.parentNode,"disabled"))return;var n=t.textContent||t.innerText;this.$emit("pick",Number(n))}}}},qa=Va,Ha=s(qa,La,za,!1,null,null,null);Ha.options.__file="packages/date-picker/src/basic/year-table.vue";var Ua=Ha.exports,Wa=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("table",{staticClass:"el-month-table",on:{click:e.handleMonthTableClick,mousemove:e.handleMouseMove}},[n("tbody",e._l(e.rows,(function(t,r){return n("tr",{key:r},e._l(t,(function(t,r){return n("td",{key:r,class:e.getCellStyle(t)},[n("div",[n("a",{staticClass:"cell"},[e._v(e._s(e.t("el.datepicker.months."+e.months[t.text])))])])])})),0)})),0)])},Ya=[];Wa._withStripped=!0;var Ga=function(e,t){var n=Object(oa["getDayCountOfMonth"])(e,t),r=new Date(e,t,1);return Object(oa["range"])(n).map((function(e){return Object(oa["nextDate"])(r,e)}))},Ka=function(e){return new Date(e.getFullYear(),e.getMonth())},Xa=function(e){return"number"===typeof e||"string"===typeof e?Ka(new Date(e)).getTime():e instanceof Date?Ka(e).getTime():NaN},Za={props:{disabledDate:{},value:{},selectionMode:{default:"month"},minDate:{},maxDate:{},defaultValue:{validator:function(e){return null===e||Object(oa["isDate"])(e)||Array.isArray(e)&&e.every(oa["isDate"])}},date:{},rangeState:{default:function(){return{endDate:null,selecting:!1}}}},mixins:[g.a],watch:{"rangeState.endDate":function(e){this.markRange(this.minDate,e)},minDate:function(e,t){Xa(e)!==Xa(t)&&this.markRange(this.minDate,this.maxDate)},maxDate:function(e,t){Xa(e)!==Xa(t)&&this.markRange(this.minDate,this.maxDate)}},data:function(){return{months:["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],tableRows:[[],[],[]],lastRow:null,lastColumn:null}},methods:{cellMatchesDate:function(e,t){var n=new Date(t);return this.date.getFullYear()===n.getFullYear()&&Number(e.text)===n.getMonth()},getCellStyle:function(e){var t=this,n={},r=this.date.getFullYear(),i=new Date,a=e.text,o=this.defaultValue?Array.isArray(this.defaultValue)?this.defaultValue:[this.defaultValue]:[];return n.disabled="function"===typeof this.disabledDate&&Ga(r,a).every(this.disabledDate),n.current=Object(y["arrayFindIndex"])(Object(y["coerceTruthyValueToArray"])(this.value),(function(e){return e.getFullYear()===r&&e.getMonth()===a}))>=0,n.today=i.getFullYear()===r&&i.getMonth()===a,n.default=o.some((function(n){return t.cellMatchesDate(e,n)})),e.inRange&&(n["in-range"]=!0,e.start&&(n["start-date"]=!0),e.end&&(n["end-date"]=!0)),n},getMonthOfCell:function(e){var t=this.date.getFullYear();return new Date(t,e,1)},markRange:function(e,t){e=Xa(e),t=Xa(t)||e;var n=[Math.min(e,t),Math.max(e,t)];e=n[0],t=n[1];for(var r=this.rows,i=0,a=r.length;i<a;i++)for(var o=r[i],s=0,l=o.length;s<l;s++){var u=o[s],c=4*i+s,d=new Date(this.date.getFullYear(),c).getTime();u.inRange=e&&d>=e&&d<=t,u.start=e&&d===e,u.end=t&&d===t}},handleMouseMove:function(e){if(this.rangeState.selecting){var t=e.target;if("A"===t.tagName&&(t=t.parentNode.parentNode),"DIV"===t.tagName&&(t=t.parentNode),"TD"===t.tagName){var n=t.parentNode.rowIndex,r=t.cellIndex;this.rows[n][r].disabled||n===this.lastRow&&r===this.lastColumn||(this.lastRow=n,this.lastColumn=r,this.$emit("changerange",{minDate:this.minDate,maxDate:this.maxDate,rangeState:{selecting:!0,endDate:this.getMonthOfCell(4*n+r)}}))}}},handleMonthTableClick:function(e){var t=e.target;if("A"===t.tagName&&(t=t.parentNode.parentNode),"DIV"===t.tagName&&(t=t.parentNode),"TD"===t.tagName&&!Object(Be["hasClass"])(t,"disabled")){var n=t.cellIndex,r=t.parentNode.rowIndex,i=4*r+n,a=this.getMonthOfCell(i);"range"===this.selectionMode?this.rangeState.selecting?(a>=this.minDate?this.$emit("pick",{minDate:this.minDate,maxDate:a}):this.$emit("pick",{minDate:a,maxDate:this.minDate}),this.rangeState.selecting=!1):(this.$emit("pick",{minDate:a,maxDate:null}),this.rangeState.selecting=!0):this.$emit("pick",i)}}},computed:{rows:function(){for(var e=this,t=this.tableRows,n=this.disabledDate,r=[],i=Xa(new Date),a=0;a<3;a++)for(var o=t[a],s=function(t){var s=o[t];s||(s={row:a,column:t,type:"normal",inRange:!1,start:!1,end:!1}),s.type="normal";var l=4*a+t,u=new Date(e.date.getFullYear(),l).getTime();s.inRange=u>=Xa(e.minDate)&&u<=Xa(e.maxDate),s.start=e.minDate&&u===Xa(e.minDate),s.end=e.maxDate&&u===Xa(e.maxDate);var c=u===i;c&&(s.type="today"),s.text=l;var d=new Date(u);s.disabled="function"===typeof n&&n(d),s.selected=Object(y["arrayFind"])(r,(function(e){return e.getTime()===d.getTime()})),e.$set(o,t,s)},l=0;l<4;l++)s(l);return t}}},Ja=Za,Qa=s(Ja,Wa,Ya,!1,null,null,null);Qa.options.__file="packages/date-picker/src/basic/month-table.vue";var eo=Qa.exports,to=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("table",{staticClass:"el-date-table",class:{"is-week-mode":"week"===e.selectionMode},attrs:{cellspacing:"0",cellpadding:"0"},on:{click:e.handleClick,mousemove:e.handleMouseMove}},[n("tbody",[n("tr",[e.showWeekNumber?n("th",[e._v(e._s(e.t("el.datepicker.week")))]):e._e(),e._l(e.WEEKS,(function(t,r){return n("th",{key:r},[e._v(e._s(e.t("el.datepicker.weeks."+t)))])}))],2),e._l(e.rows,(function(t,r){return n("tr",{key:r,staticClass:"el-date-table__row",class:{current:e.isWeekActive(t[1])}},e._l(t,(function(t,r){return n("td",{key:r,class:e.getCellClasses(t)},[n("div",[n("span",[e._v("\n "+e._s(t.text)+"\n ")])])])})),0)}))],2)])},no=[];to._withStripped=!0;var ro=["sun","mon","tue","wed","thu","fri","sat"],io=function(e){return"number"===typeof e||"string"===typeof e?Object(oa["clearTime"])(new Date(e)).getTime():e instanceof Date?Object(oa["clearTime"])(e).getTime():NaN},ao=function(e,t){var n="function"===typeof t?Object(y["arrayFindIndex"])(e,t):e.indexOf(t);return n>=0?[].concat(e.slice(0,n),e.slice(n+1)):e},oo={mixins:[g.a],props:{firstDayOfWeek:{default:7,type:Number,validator:function(e){return e>=1&&e<=7}},value:{},defaultValue:{validator:function(e){return null===e||Object(oa["isDate"])(e)||Array.isArray(e)&&e.every(oa["isDate"])}},date:{},selectionMode:{default:"day"},showWeekNumber:{type:Boolean,default:!1},disabledDate:{},cellClassName:{},minDate:{},maxDate:{},rangeState:{default:function(){return{endDate:null,selecting:!1}}}},computed:{offsetDay:function(){var e=this.firstDayOfWeek;return e>3?7-e:-e},WEEKS:function(){var e=this.firstDayOfWeek;return ro.concat(ro).slice(e,e+7)},year:function(){return this.date.getFullYear()},month:function(){return this.date.getMonth()},startDate:function(){return Object(oa["getStartDateOfMonth"])(this.year,this.month)},rows:function(){var e=this,t=new Date(this.year,this.month,1),n=Object(oa["getFirstDayOfMonth"])(t),r=Object(oa["getDayCountOfMonth"])(t.getFullYear(),t.getMonth()),i=Object(oa["getDayCountOfMonth"])(t.getFullYear(),0===t.getMonth()?11:t.getMonth()-1);n=0===n?7:n;for(var a=this.offsetDay,o=this.tableRows,s=1,l=this.startDate,u=this.disabledDate,c=this.cellClassName,d="dates"===this.selectionMode?Object(y["coerceTruthyValueToArray"])(this.value):[],h=io(new Date),f=0;f<6;f++){var p=o[f];this.showWeekNumber&&(p[0]||(p[0]={type:"week",text:Object(oa["getWeekNumber"])(Object(oa["nextDate"])(l,7*f+1))}));for(var m=function(t){var o=p[e.showWeekNumber?t+1:t];o||(o={row:f,column:t,type:"normal",inRange:!1,start:!1,end:!1}),o.type="normal";var m=7*f+t,v=Object(oa["nextDate"])(l,m-a).getTime();o.inRange=v>=io(e.minDate)&&v<=io(e.maxDate),o.start=e.minDate&&v===io(e.minDate),o.end=e.maxDate&&v===io(e.maxDate);var g=v===h;if(g&&(o.type="today"),f>=0&&f<=1){var b=n+a<0?7+n+a:n+a;t+7*f>=b?o.text=s++:(o.text=i-(b-t%7)+1+7*f,o.type="prev-month")}else s<=r?o.text=s++:(o.text=s++-r,o.type="next-month");var x=new Date(v);o.disabled="function"===typeof u&&u(x),o.selected=Object(y["arrayFind"])(d,(function(e){return e.getTime()===x.getTime()})),o.customClass="function"===typeof c&&c(x),e.$set(p,e.showWeekNumber?t+1:t,o)},v=0;v<7;v++)m(v);if("week"===this.selectionMode){var g=this.showWeekNumber?1:0,b=this.showWeekNumber?7:6,x=this.isWeekActive(p[g+1]);p[g].inRange=x,p[g].start=x,p[b].inRange=x,p[b].end=x}}return o}},watch:{"rangeState.endDate":function(e){this.markRange(this.minDate,e)},minDate:function(e,t){io(e)!==io(t)&&this.markRange(this.minDate,this.maxDate)},maxDate:function(e,t){io(e)!==io(t)&&this.markRange(this.minDate,this.maxDate)}},data:function(){return{tableRows:[[],[],[],[],[],[]],lastRow:null,lastColumn:null}},methods:{cellMatchesDate:function(e,t){var n=new Date(t);return this.year===n.getFullYear()&&this.month===n.getMonth()&&Number(e.text)===n.getDate()},getCellClasses:function(e){var t=this,n=this.selectionMode,r=this.defaultValue?Array.isArray(this.defaultValue)?this.defaultValue:[this.defaultValue]:[],i=[];return"normal"!==e.type&&"today"!==e.type||e.disabled?i.push(e.type):(i.push("available"),"today"===e.type&&i.push("today")),"normal"===e.type&&r.some((function(n){return t.cellMatchesDate(e,n)}))&&i.push("default"),"day"!==n||"normal"!==e.type&&"today"!==e.type||!this.cellMatchesDate(e,this.value)||i.push("current"),!e.inRange||"normal"!==e.type&&"today"!==e.type&&"week"!==this.selectionMode||(i.push("in-range"),e.start&&i.push("start-date"),e.end&&i.push("end-date")),e.disabled&&i.push("disabled"),e.selected&&i.push("selected"),e.customClass&&i.push(e.customClass),i.join(" ")},getDateOfCell:function(e,t){var n=7*e+(t-(this.showWeekNumber?1:0))-this.offsetDay;return Object(oa["nextDate"])(this.startDate,n)},isWeekActive:function(e){if("week"!==this.selectionMode)return!1;var t=new Date(this.year,this.month,1),n=t.getFullYear(),r=t.getMonth();if("prev-month"===e.type&&(t.setMonth(0===r?11:r-1),t.setFullYear(0===r?n-1:n)),"next-month"===e.type&&(t.setMonth(11===r?0:r+1),t.setFullYear(11===r?n+1:n)),t.setDate(parseInt(e.text,10)),Object(oa["isDate"])(this.value)){var i=(this.value.getDay()-this.firstDayOfWeek+7)%7-1,a=Object(oa["prevDate"])(this.value,i);return a.getTime()===t.getTime()}return!1},markRange:function(e,t){e=io(e),t=io(t)||e;var n=[Math.min(e,t),Math.max(e,t)];e=n[0],t=n[1];for(var r=this.startDate,i=this.rows,a=0,o=i.length;a<o;a++)for(var s=i[a],l=0,u=s.length;l<u;l++)if(!this.showWeekNumber||0!==l){var c=s[l],d=7*a+l+(this.showWeekNumber?-1:0),h=Object(oa["nextDate"])(r,d-this.offsetDay).getTime();c.inRange=e&&h>=e&&h<=t,c.start=e&&h===e,c.end=t&&h===t}},handleMouseMove:function(e){if(this.rangeState.selecting){var t=e.target;if("SPAN"===t.tagName&&(t=t.parentNode.parentNode),"DIV"===t.tagName&&(t=t.parentNode),"TD"===t.tagName){var n=t.parentNode.rowIndex-1,r=t.cellIndex;this.rows[n][r].disabled||n===this.lastRow&&r===this.lastColumn||(this.lastRow=n,this.lastColumn=r,this.$emit("changerange",{minDate:this.minDate,maxDate:this.maxDate,rangeState:{selecting:!0,endDate:this.getDateOfCell(n,r)}}))}}},handleClick:function(e){var t=e.target;if("SPAN"===t.tagName&&(t=t.parentNode.parentNode),"DIV"===t.tagName&&(t=t.parentNode),"TD"===t.tagName){var n=t.parentNode.rowIndex-1,r="week"===this.selectionMode?1:t.cellIndex,i=this.rows[n][r];if(!i.disabled&&"week"!==i.type){var a=this.getDateOfCell(n,r);if("range"===this.selectionMode)this.rangeState.selecting?(a>=this.minDate?this.$emit("pick",{minDate:this.minDate,maxDate:a}):this.$emit("pick",{minDate:a,maxDate:this.minDate}),this.rangeState.selecting=!1):(this.$emit("pick",{minDate:a,maxDate:null}),this.rangeState.selecting=!0);else if("day"===this.selectionMode)this.$emit("pick",a);else if("week"===this.selectionMode){var o=Object(oa["getWeekNumber"])(a),s=a.getFullYear()+"w"+o;this.$emit("pick",{year:a.getFullYear(),week:o,value:s,date:a})}else if("dates"===this.selectionMode){var l=this.value||[],u=i.selected?ao(l,(function(e){return e.getTime()===a.getTime()})):[].concat(l,[a]);this.$emit("pick",u)}}}}}},so=oo,lo=s(so,to,no,!1,null,null,null);lo.options.__file="packages/date-picker/src/basic/date-table.vue";var uo=lo.exports,co={mixins:[g.a],directives:{Clickoutside:L.a},watch:{showTime:function(e){var t=this;e&&this.$nextTick((function(e){var n=t.$refs.input.$el;n&&(t.pickerWidth=n.getBoundingClientRect().width+10)}))},value:function(e){"dates"===this.selectionMode&&this.value||(Object(oa["isDate"])(e)?this.date=new Date(e):this.date=this.getDefaultValue())},defaultValue:function(e){Object(oa["isDate"])(this.value)||(this.date=e?new Date(e):new Date)},timePickerVisible:function(e){var t=this;e&&this.$nextTick((function(){return t.$refs.timepicker.adjustSpinners()}))},selectionMode:function(e){"month"===e?"year"===this.currentView&&"month"===this.currentView||(this.currentView="month"):"dates"===e&&(this.currentView="date")}},methods:{proxyTimePickerDataProperties:function(){var e=this,t=function(t){e.$refs.timepicker.format=t},n=function(t){e.$refs.timepicker.value=t},r=function(t){e.$refs.timepicker.date=t},i=function(t){e.$refs.timepicker.selectableRange=t};this.$watch("value",n),this.$watch("date",r),this.$watch("selectableRange",i),t(this.timeFormat),n(this.value),r(this.date),i(this.selectableRange)},handleClear:function(){this.date=this.getDefaultValue(),this.$emit("pick",null)},emit:function(e){for(var t=this,n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];if(e)if(Array.isArray(e)){var a=e.map((function(e){return t.showTime?Object(oa["clearMilliseconds"])(e):Object(oa["clearTime"])(e)}));this.$emit.apply(this,["pick",a].concat(r))}else this.$emit.apply(this,["pick",this.showTime?Object(oa["clearMilliseconds"])(e):Object(oa["clearTime"])(e)].concat(r));else this.$emit.apply(this,["pick",e].concat(r));this.userInputDate=null,this.userInputTime=null},showMonthPicker:function(){this.currentView="month"},showYearPicker:function(){this.currentView="year"},prevMonth:function(){this.date=Object(oa["prevMonth"])(this.date)},nextMonth:function(){this.date=Object(oa["nextMonth"])(this.date)},prevYear:function(){"year"===this.currentView?this.date=Object(oa["prevYear"])(this.date,10):this.date=Object(oa["prevYear"])(this.date)},nextYear:function(){"year"===this.currentView?this.date=Object(oa["nextYear"])(this.date,10):this.date=Object(oa["nextYear"])(this.date)},handleShortcutClick:function(e){e.onClick&&e.onClick(this)},handleTimePick:function(e,t,n){if(Object(oa["isDate"])(e)){var r=this.value?Object(oa["modifyTime"])(this.value,e.getHours(),e.getMinutes(),e.getSeconds()):Object(oa["modifyWithTimeString"])(this.getDefaultValue(),this.defaultTime);this.date=r,this.emit(this.date,!0)}else this.emit(e,!0);n||(this.timePickerVisible=t)},handleTimePickClose:function(){this.timePickerVisible=!1},handleMonthPick:function(e){"month"===this.selectionMode?(this.date=Object(oa["modifyDate"])(this.date,this.year,e,1),this.emit(this.date)):(this.date=Object(oa["changeYearMonthAndClampDate"])(this.date,this.year,e),this.currentView="date")},handleDatePick:function(e){if("day"===this.selectionMode){var t=this.value?Object(oa["modifyDate"])(this.value,e.getFullYear(),e.getMonth(),e.getDate()):Object(oa["modifyWithTimeString"])(e,this.defaultTime);this.checkDateWithinRange(t)||(t=Object(oa["modifyDate"])(this.selectableRange[0][0],e.getFullYear(),e.getMonth(),e.getDate())),this.date=t,this.emit(this.date,this.showTime)}else"week"===this.selectionMode?this.emit(e.date):"dates"===this.selectionMode&&this.emit(e,!0)},handleYearPick:function(e){"year"===this.selectionMode?(this.date=Object(oa["modifyDate"])(this.date,e,0,1),this.emit(this.date)):(this.date=Object(oa["changeYearMonthAndClampDate"])(this.date,e,this.month),this.currentView="month")},changeToNow:function(){this.disabledDate&&this.disabledDate(new Date)||!this.checkDateWithinRange(new Date)||(this.date=new Date,this.emit(this.date))},confirm:function(){if("dates"===this.selectionMode)this.emit(this.value);else{var e=this.value?this.value:Object(oa["modifyWithTimeString"])(this.getDefaultValue(),this.defaultTime);this.date=new Date(e),this.emit(e)}},resetView:function(){"month"===this.selectionMode?this.currentView="month":"year"===this.selectionMode?this.currentView="year":this.currentView="date"},handleEnter:function(){document.body.addEventListener("keydown",this.handleKeydown)},handleLeave:function(){this.$emit("dodestroy"),document.body.removeEventListener("keydown",this.handleKeydown)},handleKeydown:function(e){var t=e.keyCode,n=[38,40,37,39];this.visible&&!this.timePickerVisible&&(-1!==n.indexOf(t)&&(this.handleKeyControl(t),e.stopPropagation(),e.preventDefault()),13===t&&null===this.userInputDate&&null===this.userInputTime&&this.emit(this.date,!1))},handleKeyControl:function(e){var t={year:{38:-4,40:4,37:-1,39:1,offset:function(e,t){return e.setFullYear(e.getFullYear()+t)}},month:{38:-4,40:4,37:-1,39:1,offset:function(e,t){return e.setMonth(e.getMonth()+t)}},week:{38:-1,40:1,37:-1,39:1,offset:function(e,t){return e.setDate(e.getDate()+7*t)}},day:{38:-7,40:7,37:-1,39:1,offset:function(e,t){return e.setDate(e.getDate()+t)}}},n=this.selectionMode,r=31536e6,i=this.date.getTime(),a=new Date(this.date.getTime());while(Math.abs(i-a.getTime())<=r){var o=t[n];if(o.offset(a,o[e]),"function"!==typeof this.disabledDate||!this.disabledDate(a)){this.date=a,this.$emit("pick",a,!0);break}}},handleVisibleTimeChange:function(e){var t=Object(oa["parseDate"])(e,this.timeFormat);t&&this.checkDateWithinRange(t)&&(this.date=Object(oa["modifyDate"])(t,this.year,this.month,this.monthDate),this.userInputTime=null,this.$refs.timepicker.value=this.date,this.timePickerVisible=!1,this.emit(this.date,!0))},handleVisibleDateChange:function(e){var t=Object(oa["parseDate"])(e,this.dateFormat);if(t){if("function"===typeof this.disabledDate&&this.disabledDate(t))return;this.date=Object(oa["modifyTime"])(t,this.date.getHours(),this.date.getMinutes(),this.date.getSeconds()),this.userInputDate=null,this.resetView(),this.emit(this.date,!0)}},isValidValue:function(e){return e&&!isNaN(e)&&("function"!==typeof this.disabledDate||!this.disabledDate(e))&&this.checkDateWithinRange(e)},getDefaultValue:function(){return this.defaultValue?new Date(this.defaultValue):new Date},checkDateWithinRange:function(e){return!(this.selectableRange.length>0)||Object(oa["timeWithinRange"])(e,this.selectableRange,this.format||"HH:mm:ss")}},components:{TimePicker:Ba,YearTable:Ua,MonthTable:eo,DateTable:uo,ElInput:m.a,ElButton:oe.a},data:function(){return{popperClass:"",date:new Date,value:"",defaultValue:null,defaultTime:null,showTime:!1,selectionMode:"day",shortcuts:"",visible:!1,currentView:"date",disabledDate:"",cellClassName:"",selectableRange:[],firstDayOfWeek:7,showWeekNumber:!1,timePickerVisible:!1,format:"",arrowControl:!1,userInputDate:null,userInputTime:null}},computed:{year:function(){return this.date.getFullYear()},month:function(){return this.date.getMonth()},week:function(){return Object(oa["getWeekNumber"])(this.date)},monthDate:function(){return this.date.getDate()},footerVisible:function(){return this.showTime||"dates"===this.selectionMode},visibleTime:function(){return null!==this.userInputTime?this.userInputTime:Object(oa["formatDate"])(this.value||this.defaultValue,this.timeFormat)},visibleDate:function(){return null!==this.userInputDate?this.userInputDate:Object(oa["formatDate"])(this.value||this.defaultValue,this.dateFormat)},yearLabel:function(){var e=this.t("el.datepicker.year");if("year"===this.currentView){var t=10*Math.floor(this.year/10);return e?t+" "+e+" - "+(t+9)+" "+e:t+" - "+(t+9)}return this.year+" "+e},timeFormat:function(){return this.format?Object(oa["extractTimeFormat"])(this.format):"HH:mm:ss"},dateFormat:function(){return this.format?Object(oa["extractDateFormat"])(this.format):"yyyy-MM-dd"}}},ho=co,fo=s(ho,Na,ka,!1,null,null,null);fo.options.__file="packages/date-picker/src/panel/date.vue";var po=fo.exports,mo=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":function(t){e.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-picker-panel el-date-range-picker el-popper",class:[{"has-sidebar":e.$slots.sidebar||e.shortcuts,"has-time":e.showTime},e.popperClass]},[n("div",{staticClass:"el-picker-panel__body-wrapper"},[e._t("sidebar"),e.shortcuts?n("div",{staticClass:"el-picker-panel__sidebar"},e._l(e.shortcuts,(function(t,r){return n("button",{key:r,staticClass:"el-picker-panel__shortcut",attrs:{type:"button"},on:{click:function(n){e.handleShortcutClick(t)}}},[e._v(e._s(t.text))])})),0):e._e(),n("div",{staticClass:"el-picker-panel__body"},[e.showTime?n("div",{staticClass:"el-date-range-picker__time-header"},[n("span",{staticClass:"el-date-range-picker__editors-wrap"},[n("span",{staticClass:"el-date-range-picker__time-picker-wrap"},[n("el-input",{ref:"minInput",staticClass:"el-date-range-picker__editor",attrs:{size:"small",disabled:e.rangeState.selecting,placeholder:e.t("el.datepicker.startDate"),value:e.minVisibleDate},on:{input:function(t){return e.handleDateInput(t,"min")},change:function(t){return e.handleDateChange(t,"min")}}})],1),n("span",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleMinTimeClose,expression:"handleMinTimeClose"}],staticClass:"el-date-range-picker__time-picker-wrap"},[n("el-input",{staticClass:"el-date-range-picker__editor",attrs:{size:"small",disabled:e.rangeState.selecting,placeholder:e.t("el.datepicker.startTime"),value:e.minVisibleTime},on:{focus:function(t){e.minTimePickerVisible=!0},input:function(t){return e.handleTimeInput(t,"min")},change:function(t){return e.handleTimeChange(t,"min")}}}),n("time-picker",{ref:"minTimePicker",attrs:{"time-arrow-control":e.arrowControl,visible:e.minTimePickerVisible},on:{pick:e.handleMinTimePick,mounted:function(t){e.$refs.minTimePicker.format=e.timeFormat}}})],1)]),n("span",{staticClass:"el-icon-arrow-right"}),n("span",{staticClass:"el-date-range-picker__editors-wrap is-right"},[n("span",{staticClass:"el-date-range-picker__time-picker-wrap"},[n("el-input",{staticClass:"el-date-range-picker__editor",attrs:{size:"small",disabled:e.rangeState.selecting,placeholder:e.t("el.datepicker.endDate"),value:e.maxVisibleDate,readonly:!e.minDate},on:{input:function(t){return e.handleDateInput(t,"max")},change:function(t){return e.handleDateChange(t,"max")}}})],1),n("span",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleMaxTimeClose,expression:"handleMaxTimeClose"}],staticClass:"el-date-range-picker__time-picker-wrap"},[n("el-input",{staticClass:"el-date-range-picker__editor",attrs:{size:"small",disabled:e.rangeState.selecting,placeholder:e.t("el.datepicker.endTime"),value:e.maxVisibleTime,readonly:!e.minDate},on:{focus:function(t){e.minDate&&(e.maxTimePickerVisible=!0)},input:function(t){return e.handleTimeInput(t,"max")},change:function(t){return e.handleTimeChange(t,"max")}}}),n("time-picker",{ref:"maxTimePicker",attrs:{"time-arrow-control":e.arrowControl,visible:e.maxTimePickerVisible},on:{pick:e.handleMaxTimePick,mounted:function(t){e.$refs.maxTimePicker.format=e.timeFormat}}})],1)])]):e._e(),n("div",{staticClass:"el-picker-panel__content el-date-range-picker__content is-left"},[n("div",{staticClass:"el-date-range-picker__header"},[n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-left",attrs:{type:"button"},on:{click:e.leftPrevYear}}),n("button",{staticClass:"el-picker-panel__icon-btn el-icon-arrow-left",attrs:{type:"button"},on:{click:e.leftPrevMonth}}),e.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-right",class:{"is-disabled":!e.enableYearArrow},attrs:{type:"button",disabled:!e.enableYearArrow},on:{click:e.leftNextYear}}):e._e(),e.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-arrow-right",class:{"is-disabled":!e.enableMonthArrow},attrs:{type:"button",disabled:!e.enableMonthArrow},on:{click:e.leftNextMonth}}):e._e(),n("div",[e._v(e._s(e.leftLabel))])]),n("date-table",{attrs:{"selection-mode":"range",date:e.leftDate,"default-value":e.defaultValue,"min-date":e.minDate,"max-date":e.maxDate,"range-state":e.rangeState,"disabled-date":e.disabledDate,"cell-class-name":e.cellClassName,"first-day-of-week":e.firstDayOfWeek},on:{changerange:e.handleChangeRange,pick:e.handleRangePick}})],1),n("div",{staticClass:"el-picker-panel__content el-date-range-picker__content is-right"},[n("div",{staticClass:"el-date-range-picker__header"},[e.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-left",class:{"is-disabled":!e.enableYearArrow},attrs:{type:"button",disabled:!e.enableYearArrow},on:{click:e.rightPrevYear}}):e._e(),e.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-arrow-left",class:{"is-disabled":!e.enableMonthArrow},attrs:{type:"button",disabled:!e.enableMonthArrow},on:{click:e.rightPrevMonth}}):e._e(),n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-right",attrs:{type:"button"},on:{click:e.rightNextYear}}),n("button",{staticClass:"el-picker-panel__icon-btn el-icon-arrow-right",attrs:{type:"button"},on:{click:e.rightNextMonth}}),n("div",[e._v(e._s(e.rightLabel))])]),n("date-table",{attrs:{"selection-mode":"range",date:e.rightDate,"default-value":e.defaultValue,"min-date":e.minDate,"max-date":e.maxDate,"range-state":e.rangeState,"disabled-date":e.disabledDate,"cell-class-name":e.cellClassName,"first-day-of-week":e.firstDayOfWeek},on:{changerange:e.handleChangeRange,pick:e.handleRangePick}})],1)])],2),e.showTime?n("div",{staticClass:"el-picker-panel__footer"},[n("el-button",{staticClass:"el-picker-panel__link-btn",attrs:{size:"mini",type:"text"},on:{click:e.handleClear}},[e._v("\n "+e._s(e.t("el.datepicker.clear"))+"\n ")]),n("el-button",{staticClass:"el-picker-panel__link-btn",attrs:{plain:"",size:"mini",disabled:e.btnDisabled},on:{click:function(t){e.handleConfirm(!1)}}},[e._v("\n "+e._s(e.t("el.datepicker.confirm"))+"\n ")])],1):e._e()])])},vo=[];mo._withStripped=!0;var go=function(e){return Array.isArray(e)?[new Date(e[0]),new Date(e[1])]:e?[new Date(e),Object(oa["nextDate"])(new Date(e),1)]:[new Date,Object(oa["nextDate"])(new Date,1)]},yo={mixins:[g.a],directives:{Clickoutside:L.a},computed:{btnDisabled:function(){return!(this.minDate&&this.maxDate&&!this.selecting&&this.isValidValue([this.minDate,this.maxDate]))},leftLabel:function(){return this.leftDate.getFullYear()+" "+this.t("el.datepicker.year")+" "+this.t("el.datepicker.month"+(this.leftDate.getMonth()+1))},rightLabel:function(){return this.rightDate.getFullYear()+" "+this.t("el.datepicker.year")+" "+this.t("el.datepicker.month"+(this.rightDate.getMonth()+1))},leftYear:function(){return this.leftDate.getFullYear()},leftMonth:function(){return this.leftDate.getMonth()},leftMonthDate:function(){return this.leftDate.getDate()},rightYear:function(){return this.rightDate.getFullYear()},rightMonth:function(){return this.rightDate.getMonth()},rightMonthDate:function(){return this.rightDate.getDate()},minVisibleDate:function(){return null!==this.dateUserInput.min?this.dateUserInput.min:this.minDate?Object(oa["formatDate"])(this.minDate,this.dateFormat):""},maxVisibleDate:function(){return null!==this.dateUserInput.max?this.dateUserInput.max:this.maxDate||this.minDate?Object(oa["formatDate"])(this.maxDate||this.minDate,this.dateFormat):""},minVisibleTime:function(){return null!==this.timeUserInput.min?this.timeUserInput.min:this.minDate?Object(oa["formatDate"])(this.minDate,this.timeFormat):""},maxVisibleTime:function(){return null!==this.timeUserInput.max?this.timeUserInput.max:this.maxDate||this.minDate?Object(oa["formatDate"])(this.maxDate||this.minDate,this.timeFormat):""},timeFormat:function(){return this.format?Object(oa["extractTimeFormat"])(this.format):"HH:mm:ss"},dateFormat:function(){return this.format?Object(oa["extractDateFormat"])(this.format):"yyyy-MM-dd"},enableMonthArrow:function(){var e=(this.leftMonth+1)%12,t=this.leftMonth+1>=12?1:0;return this.unlinkPanels&&new Date(this.leftYear+t,e)<new Date(this.rightYear,this.rightMonth)},enableYearArrow:function(){return this.unlinkPanels&&12*this.rightYear+this.rightMonth-(12*this.leftYear+this.leftMonth+1)>=12}},data:function(){return{popperClass:"",value:[],defaultValue:null,defaultTime:null,minDate:"",maxDate:"",leftDate:new Date,rightDate:Object(oa["nextMonth"])(new Date),rangeState:{endDate:null,selecting:!1,row:null,column:null},showTime:!1,shortcuts:"",visible:"",disabledDate:"",cellClassName:"",firstDayOfWeek:7,minTimePickerVisible:!1,maxTimePickerVisible:!1,format:"",arrowControl:!1,unlinkPanels:!1,dateUserInput:{min:null,max:null},timeUserInput:{min:null,max:null}}},watch:{minDate:function(e){var t=this;this.dateUserInput.min=null,this.timeUserInput.min=null,this.$nextTick((function(){if(t.$refs.maxTimePicker&&t.maxDate&&t.maxDate<t.minDate){var e="HH:mm:ss";t.$refs.maxTimePicker.selectableRange=[[Object(oa["parseDate"])(Object(oa["formatDate"])(t.minDate,e),e),Object(oa["parseDate"])("23:59:59",e)]]}})),e&&this.$refs.minTimePicker&&(this.$refs.minTimePicker.date=e,this.$refs.minTimePicker.value=e)},maxDate:function(e){this.dateUserInput.max=null,this.timeUserInput.max=null,e&&this.$refs.maxTimePicker&&(this.$refs.maxTimePicker.date=e,this.$refs.maxTimePicker.value=e)},minTimePickerVisible:function(e){var t=this;e&&this.$nextTick((function(){t.$refs.minTimePicker.date=t.minDate,t.$refs.minTimePicker.value=t.minDate,t.$refs.minTimePicker.adjustSpinners()}))},maxTimePickerVisible:function(e){var t=this;e&&this.$nextTick((function(){t.$refs.maxTimePicker.date=t.maxDate,t.$refs.maxTimePicker.value=t.maxDate,t.$refs.maxTimePicker.adjustSpinners()}))},value:function(e){if(e){if(Array.isArray(e))if(this.minDate=Object(oa["isDate"])(e[0])?new Date(e[0]):null,this.maxDate=Object(oa["isDate"])(e[1])?new Date(e[1]):null,this.minDate)if(this.leftDate=this.minDate,this.unlinkPanels&&this.maxDate){var t=this.minDate.getFullYear(),n=this.minDate.getMonth(),r=this.maxDate.getFullYear(),i=this.maxDate.getMonth();this.rightDate=t===r&&n===i?Object(oa["nextMonth"])(this.maxDate):this.maxDate}else this.rightDate=Object(oa["nextMonth"])(this.leftDate);else this.leftDate=go(this.defaultValue)[0],this.rightDate=Object(oa["nextMonth"])(this.leftDate)}else this.minDate=null,this.maxDate=null},defaultValue:function(e){if(!Array.isArray(this.value)){var t=go(e),n=t[0],r=t[1];this.leftDate=n,this.rightDate=e&&e[1]&&this.unlinkPanels?r:Object(oa["nextMonth"])(this.leftDate)}}},methods:{handleClear:function(){this.minDate=null,this.maxDate=null,this.leftDate=go(this.defaultValue)[0],this.rightDate=Object(oa["nextMonth"])(this.leftDate),this.$emit("pick",null)},handleChangeRange:function(e){this.minDate=e.minDate,this.maxDate=e.maxDate,this.rangeState=e.rangeState},handleDateInput:function(e,t){if(this.dateUserInput[t]=e,e.length===this.dateFormat.length){var n=Object(oa["parseDate"])(e,this.dateFormat);if(n){if("function"===typeof this.disabledDate&&this.disabledDate(new Date(n)))return;"min"===t?(this.minDate=Object(oa["modifyDate"])(this.minDate||new Date,n.getFullYear(),n.getMonth(),n.getDate()),this.leftDate=new Date(n),this.unlinkPanels||(this.rightDate=Object(oa["nextMonth"])(this.leftDate))):(this.maxDate=Object(oa["modifyDate"])(this.maxDate||new Date,n.getFullYear(),n.getMonth(),n.getDate()),this.rightDate=new Date(n),this.unlinkPanels||(this.leftDate=Object(oa["prevMonth"])(n)))}}},handleDateChange:function(e,t){var n=Object(oa["parseDate"])(e,this.dateFormat);n&&("min"===t?(this.minDate=Object(oa["modifyDate"])(this.minDate,n.getFullYear(),n.getMonth(),n.getDate()),this.minDate>this.maxDate&&(this.maxDate=this.minDate)):(this.maxDate=Object(oa["modifyDate"])(this.maxDate,n.getFullYear(),n.getMonth(),n.getDate()),this.maxDate<this.minDate&&(this.minDate=this.maxDate)))},handleTimeInput:function(e,t){var n=this;if(this.timeUserInput[t]=e,e.length===this.timeFormat.length){var r=Object(oa["parseDate"])(e,this.timeFormat);r&&("min"===t?(this.minDate=Object(oa["modifyTime"])(this.minDate,r.getHours(),r.getMinutes(),r.getSeconds()),this.$nextTick((function(e){return n.$refs.minTimePicker.adjustSpinners()}))):(this.maxDate=Object(oa["modifyTime"])(this.maxDate,r.getHours(),r.getMinutes(),r.getSeconds()),this.$nextTick((function(e){return n.$refs.maxTimePicker.adjustSpinners()}))))}},handleTimeChange:function(e,t){var n=Object(oa["parseDate"])(e,this.timeFormat);n&&("min"===t?(this.minDate=Object(oa["modifyTime"])(this.minDate,n.getHours(),n.getMinutes(),n.getSeconds()),this.minDate>this.maxDate&&(this.maxDate=this.minDate),this.$refs.minTimePicker.value=this.minDate,this.minTimePickerVisible=!1):(this.maxDate=Object(oa["modifyTime"])(this.maxDate,n.getHours(),n.getMinutes(),n.getSeconds()),this.maxDate<this.minDate&&(this.minDate=this.maxDate),this.$refs.maxTimePicker.value=this.minDate,this.maxTimePickerVisible=!1))},handleRangePick:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.defaultTime||[],i=Object(oa["modifyWithTimeString"])(e.minDate,r[0]),a=Object(oa["modifyWithTimeString"])(e.maxDate,r[1]);this.maxDate===a&&this.minDate===i||(this.onPick&&this.onPick(e),this.maxDate=a,this.minDate=i,setTimeout((function(){t.maxDate=a,t.minDate=i}),10),n&&!this.showTime&&this.handleConfirm())},handleShortcutClick:function(e){e.onClick&&e.onClick(this)},handleMinTimePick:function(e,t,n){this.minDate=this.minDate||new Date,e&&(this.minDate=Object(oa["modifyTime"])(this.minDate,e.getHours(),e.getMinutes(),e.getSeconds())),n||(this.minTimePickerVisible=t),(!this.maxDate||this.maxDate&&this.maxDate.getTime()<this.minDate.getTime())&&(this.maxDate=new Date(this.minDate))},handleMinTimeClose:function(){this.minTimePickerVisible=!1},handleMaxTimePick:function(e,t,n){this.maxDate&&e&&(this.maxDate=Object(oa["modifyTime"])(this.maxDate,e.getHours(),e.getMinutes(),e.getSeconds())),n||(this.maxTimePickerVisible=t),this.maxDate&&this.minDate&&this.minDate.getTime()>this.maxDate.getTime()&&(this.minDate=new Date(this.maxDate))},handleMaxTimeClose:function(){this.maxTimePickerVisible=!1},leftPrevYear:function(){this.leftDate=Object(oa["prevYear"])(this.leftDate),this.unlinkPanels||(this.rightDate=Object(oa["nextMonth"])(this.leftDate))},leftPrevMonth:function(){this.leftDate=Object(oa["prevMonth"])(this.leftDate),this.unlinkPanels||(this.rightDate=Object(oa["nextMonth"])(this.leftDate))},rightNextYear:function(){this.unlinkPanels?this.rightDate=Object(oa["nextYear"])(this.rightDate):(this.leftDate=Object(oa["nextYear"])(this.leftDate),this.rightDate=Object(oa["nextMonth"])(this.leftDate))},rightNextMonth:function(){this.unlinkPanels?this.rightDate=Object(oa["nextMonth"])(this.rightDate):(this.leftDate=Object(oa["nextMonth"])(this.leftDate),this.rightDate=Object(oa["nextMonth"])(this.leftDate))},leftNextYear:function(){this.leftDate=Object(oa["nextYear"])(this.leftDate)},leftNextMonth:function(){this.leftDate=Object(oa["nextMonth"])(this.leftDate)},rightPrevYear:function(){this.rightDate=Object(oa["prevYear"])(this.rightDate)},rightPrevMonth:function(){this.rightDate=Object(oa["prevMonth"])(this.rightDate)},handleConfirm:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isValidValue([this.minDate,this.maxDate])&&this.$emit("pick",[this.minDate,this.maxDate],e)},isValidValue:function(e){return Array.isArray(e)&&e&&e[0]&&e[1]&&Object(oa["isDate"])(e[0])&&Object(oa["isDate"])(e[1])&&e[0].getTime()<=e[1].getTime()&&("function"!==typeof this.disabledDate||!this.disabledDate(e[0])&&!this.disabledDate(e[1]))},resetView:function(){this.minDate&&null==this.maxDate&&(this.rangeState.selecting=!1),this.minDate=this.value&&Object(oa["isDate"])(this.value[0])?new Date(this.value[0]):null,this.maxDate=this.value&&Object(oa["isDate"])(this.value[0])?new Date(this.value[1]):null}},components:{TimePicker:Ba,DateTable:uo,ElInput:m.a,ElButton:oe.a}},bo=yo,xo=s(bo,mo,vo,!1,null,null,null);xo.options.__file="packages/date-picker/src/panel/date-range.vue";var wo=xo.exports,_o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":function(t){e.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-picker-panel el-date-range-picker el-popper",class:[{"has-sidebar":e.$slots.sidebar||e.shortcuts},e.popperClass]},[n("div",{staticClass:"el-picker-panel__body-wrapper"},[e._t("sidebar"),e.shortcuts?n("div",{staticClass:"el-picker-panel__sidebar"},e._l(e.shortcuts,(function(t,r){return n("button",{key:r,staticClass:"el-picker-panel__shortcut",attrs:{type:"button"},on:{click:function(n){e.handleShortcutClick(t)}}},[e._v(e._s(t.text))])})),0):e._e(),n("div",{staticClass:"el-picker-panel__body"},[n("div",{staticClass:"el-picker-panel__content el-date-range-picker__content is-left"},[n("div",{staticClass:"el-date-range-picker__header"},[n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-left",attrs:{type:"button"},on:{click:e.leftPrevYear}}),e.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-right",class:{"is-disabled":!e.enableYearArrow},attrs:{type:"button",disabled:!e.enableYearArrow},on:{click:e.leftNextYear}}):e._e(),n("div",[e._v(e._s(e.leftLabel))])]),n("month-table",{attrs:{"selection-mode":"range",date:e.leftDate,"default-value":e.defaultValue,"min-date":e.minDate,"max-date":e.maxDate,"range-state":e.rangeState,"disabled-date":e.disabledDate},on:{changerange:e.handleChangeRange,pick:e.handleRangePick}})],1),n("div",{staticClass:"el-picker-panel__content el-date-range-picker__content is-right"},[n("div",{staticClass:"el-date-range-picker__header"},[e.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-left",class:{"is-disabled":!e.enableYearArrow},attrs:{type:"button",disabled:!e.enableYearArrow},on:{click:e.rightPrevYear}}):e._e(),n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-right",attrs:{type:"button"},on:{click:e.rightNextYear}}),n("div",[e._v(e._s(e.rightLabel))])]),n("month-table",{attrs:{"selection-mode":"range",date:e.rightDate,"default-value":e.defaultValue,"min-date":e.minDate,"max-date":e.maxDate,"range-state":e.rangeState,"disabled-date":e.disabledDate},on:{changerange:e.handleChangeRange,pick:e.handleRangePick}})],1)])],2)])])},Co=[];_o._withStripped=!0;var So=function(e){return Array.isArray(e)?[new Date(e[0]),new Date(e[1])]:e?[new Date(e),Object(oa["nextMonth"])(new Date(e))]:[new Date,Object(oa["nextMonth"])(new Date)]},No={mixins:[g.a],directives:{Clickoutside:L.a},computed:{btnDisabled:function(){return!(this.minDate&&this.maxDate&&!this.selecting&&this.isValidValue([this.minDate,this.maxDate]))},leftLabel:function(){return this.leftDate.getFullYear()+" "+this.t("el.datepicker.year")},rightLabel:function(){return this.rightDate.getFullYear()+" "+this.t("el.datepicker.year")},leftYear:function(){return this.leftDate.getFullYear()},rightYear:function(){return this.rightDate.getFullYear()===this.leftDate.getFullYear()?this.leftDate.getFullYear()+1:this.rightDate.getFullYear()},enableYearArrow:function(){return this.unlinkPanels&&this.rightYear>this.leftYear+1}},data:function(){return{popperClass:"",value:[],defaultValue:null,defaultTime:null,minDate:"",maxDate:"",leftDate:new Date,rightDate:Object(oa["nextYear"])(new Date),rangeState:{endDate:null,selecting:!1,row:null,column:null},shortcuts:"",visible:"",disabledDate:"",format:"",arrowControl:!1,unlinkPanels:!1}},watch:{value:function(e){if(e){if(Array.isArray(e))if(this.minDate=Object(oa["isDate"])(e[0])?new Date(e[0]):null,this.maxDate=Object(oa["isDate"])(e[1])?new Date(e[1]):null,this.minDate)if(this.leftDate=this.minDate,this.unlinkPanels&&this.maxDate){var t=this.minDate.getFullYear(),n=this.maxDate.getFullYear();this.rightDate=t===n?Object(oa["nextYear"])(this.maxDate):this.maxDate}else this.rightDate=Object(oa["nextYear"])(this.leftDate);else this.leftDate=So(this.defaultValue)[0],this.rightDate=Object(oa["nextYear"])(this.leftDate)}else this.minDate=null,this.maxDate=null},defaultValue:function(e){if(!Array.isArray(this.value)){var t=So(e),n=t[0],r=t[1];this.leftDate=n,this.rightDate=e&&e[1]&&n.getFullYear()!==r.getFullYear()&&this.unlinkPanels?r:Object(oa["nextYear"])(this.leftDate)}}},methods:{handleClear:function(){this.minDate=null,this.maxDate=null,this.leftDate=So(this.defaultValue)[0],this.rightDate=Object(oa["nextYear"])(this.leftDate),this.$emit("pick",null)},handleChangeRange:function(e){this.minDate=e.minDate,this.maxDate=e.maxDate,this.rangeState=e.rangeState},handleRangePick:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.defaultTime||[],i=Object(oa["modifyWithTimeString"])(e.minDate,r[0]),a=Object(oa["modifyWithTimeString"])(e.maxDate,r[1]);this.maxDate===a&&this.minDate===i||(this.onPick&&this.onPick(e),this.maxDate=a,this.minDate=i,setTimeout((function(){t.maxDate=a,t.minDate=i}),10),n&&this.handleConfirm())},handleShortcutClick:function(e){e.onClick&&e.onClick(this)},leftPrevYear:function(){this.leftDate=Object(oa["prevYear"])(this.leftDate),this.unlinkPanels||(this.rightDate=Object(oa["prevYear"])(this.rightDate))},rightNextYear:function(){this.unlinkPanels||(this.leftDate=Object(oa["nextYear"])(this.leftDate)),this.rightDate=Object(oa["nextYear"])(this.rightDate)},leftNextYear:function(){this.leftDate=Object(oa["nextYear"])(this.leftDate)},rightPrevYear:function(){this.rightDate=Object(oa["prevYear"])(this.rightDate)},handleConfirm:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isValidValue([this.minDate,this.maxDate])&&this.$emit("pick",[this.minDate,this.maxDate],e)},isValidValue:function(e){return Array.isArray(e)&&e&&e[0]&&e[1]&&Object(oa["isDate"])(e[0])&&Object(oa["isDate"])(e[1])&&e[0].getTime()<=e[1].getTime()&&("function"!==typeof this.disabledDate||!this.disabledDate(e[0])&&!this.disabledDate(e[1]))},resetView:function(){this.minDate=this.value&&Object(oa["isDate"])(this.value[0])?new Date(this.value[0]):null,this.maxDate=this.value&&Object(oa["isDate"])(this.value[0])?new Date(this.value[1]):null}},components:{MonthTable:eo,ElInput:m.a,ElButton:oe.a}},ko=No,Eo=s(ko,_o,Co,!1,null,null,null);Eo.options.__file="packages/date-picker/src/panel/month-range.vue";var Mo=Eo.exports,Oo=function(e){return"daterange"===e||"datetimerange"===e?wo:"monthrange"===e?Mo:po},Do={mixins:[Sa],name:"ElDatePicker",props:{type:{type:String,default:"date"},timeArrowControl:Boolean},watch:{type:function(e){this.picker?(this.unmountPicker(),this.panel=Oo(e),this.mountPicker()):this.panel=Oo(e)}},created:function(){this.panel=Oo(this.type)},install:function(e){e.component(Do.name,Do)}},To=Do,Ao=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"before-enter":e.handleMenuEnter,"after-leave":function(t){e.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],ref:"popper",staticClass:"el-picker-panel time-select el-popper",class:e.popperClass,style:{width:e.width+"px"}},[n("el-scrollbar",{attrs:{noresize:"","wrap-class":"el-picker-panel__content"}},e._l(e.items,(function(t){return n("div",{key:t.value,staticClass:"time-select-item",class:{selected:e.value===t.value,disabled:t.disabled,default:t.value===e.defaultValue},attrs:{disabled:t.disabled},on:{click:function(n){e.handleClick(t)}}},[e._v(e._s(t.value))])})),0)],1)])},Io=[];Ao._withStripped=!0;var $o=function(e){var t=(e||"").split(":");if(t.length>=2){var n=parseInt(t[0],10),r=parseInt(t[1],10);return{hours:n,minutes:r}}return null},Po=function(e,t){var n=$o(e),r=$o(t),i=n.minutes+60*n.hours,a=r.minutes+60*r.hours;return i===a?0:i>a?1:-1},jo=function(e){return(e.hours<10?"0"+e.hours:e.hours)+":"+(e.minutes<10?"0"+e.minutes:e.minutes)},Fo=function(e,t){var n=$o(e),r=$o(t),i={hours:n.hours,minutes:n.minutes};return i.minutes+=r.minutes,i.hours+=r.hours,i.hours+=Math.floor(i.minutes/60),i.minutes=i.minutes%60,jo(i)},Bo={components:{ElScrollbar:U.a},watch:{value:function(e){var t=this;e&&this.$nextTick((function(){return t.scrollToOption()}))}},methods:{handleClick:function(e){e.disabled||this.$emit("pick",e.value)},handleClear:function(){this.$emit("pick",null)},scrollToOption:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".selected",t=this.$refs.popper.querySelector(".el-picker-panel__content");nr()(t,t.querySelector(e))},handleMenuEnter:function(){var e=this,t=-1!==this.items.map((function(e){return e.value})).indexOf(this.value),n=-1!==this.items.map((function(e){return e.value})).indexOf(this.defaultValue),r=(t?".selected":n&&".default")||".time-select-item:not(.disabled)";this.$nextTick((function(){return e.scrollToOption(r)}))},scrollDown:function(e){var t=this.items,n=t.length,r=t.length,i=t.map((function(e){return e.value})).indexOf(this.value);while(r--)if(i=(i+e+n)%n,!t[i].disabled)return void this.$emit("pick",t[i].value,!0)},isValidValue:function(e){return-1!==this.items.filter((function(e){return!e.disabled})).map((function(e){return e.value})).indexOf(e)},handleKeydown:function(e){var t=e.keyCode;if(38===t||40===t){var n={40:1,38:-1},r=n[t.toString()];return this.scrollDown(r),void e.stopPropagation()}}},data:function(){return{popperClass:"",start:"09:00",end:"18:00",step:"00:30",value:"",defaultValue:"",visible:!1,minTime:"",maxTime:"",width:0}},computed:{items:function(){var e=this.start,t=this.end,n=this.step,r=[];if(e&&t&&n){var i=e;while(Po(i,t)<=0)r.push({value:i,disabled:Po(i,this.minTime||"-1:-1")<=0||Po(i,this.maxTime||"100:100")>=0}),i=Fo(i,n)}return r}}},Lo=Bo,zo=s(Lo,Ao,Io,!1,null,null,null);zo.options.__file="packages/date-picker/src/panel/time-select.vue";var Ro=zo.exports,Vo={mixins:[Sa],name:"ElTimeSelect",componentName:"ElTimeSelect",props:{type:{type:String,default:"time-select"}},beforeCreate:function(){this.panel=Ro},install:function(e){e.component(Vo.name,Vo)}},qo=Vo,Ho=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":function(t){e.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-time-range-picker el-picker-panel el-popper",class:e.popperClass},[n("div",{staticClass:"el-time-range-picker__content"},[n("div",{staticClass:"el-time-range-picker__cell"},[n("div",{staticClass:"el-time-range-picker__header"},[e._v(e._s(e.t("el.datepicker.startTime")))]),n("div",{staticClass:"el-time-range-picker__body el-time-panel__content",class:{"has-seconds":e.showSeconds,"is-arrow":e.arrowControl}},[n("time-spinner",{ref:"minSpinner",attrs:{"show-seconds":e.showSeconds,"am-pm-mode":e.amPmMode,"arrow-control":e.arrowControl,date:e.minDate},on:{change:e.handleMinChange,"select-range":e.setMinSelectionRange}})],1)]),n("div",{staticClass:"el-time-range-picker__cell"},[n("div",{staticClass:"el-time-range-picker__header"},[e._v(e._s(e.t("el.datepicker.endTime")))]),n("div",{staticClass:"el-time-range-picker__body el-time-panel__content",class:{"has-seconds":e.showSeconds,"is-arrow":e.arrowControl}},[n("time-spinner",{ref:"maxSpinner",attrs:{"show-seconds":e.showSeconds,"am-pm-mode":e.amPmMode,"arrow-control":e.arrowControl,date:e.maxDate},on:{change:e.handleMaxChange,"select-range":e.setMaxSelectionRange}})],1)])]),n("div",{staticClass:"el-time-panel__footer"},[n("button",{staticClass:"el-time-panel__btn cancel",attrs:{type:"button"},on:{click:function(t){e.handleCancel()}}},[e._v(e._s(e.t("el.datepicker.cancel")))]),n("button",{staticClass:"el-time-panel__btn confirm",attrs:{type:"button",disabled:e.btnDisabled},on:{click:function(t){e.handleConfirm()}}},[e._v(e._s(e.t("el.datepicker.confirm")))])])])])},Uo=[];Ho._withStripped=!0;var Wo=Object(oa["parseDate"])("00:00:00","HH:mm:ss"),Yo=Object(oa["parseDate"])("23:59:59","HH:mm:ss"),Go=function(e){return Object(oa["modifyDate"])(Wo,e.getFullYear(),e.getMonth(),e.getDate())},Ko=function(e){return Object(oa["modifyDate"])(Yo,e.getFullYear(),e.getMonth(),e.getDate())},Xo=function(e,t){return new Date(Math.min(e.getTime()+t,Ko(e).getTime()))},Zo={mixins:[g.a],components:{TimeSpinner:$a},computed:{showSeconds:function(){return-1!==(this.format||"").indexOf("ss")},offset:function(){return this.showSeconds?11:8},spinner:function(){return this.selectionRange[0]<this.offset?this.$refs.minSpinner:this.$refs.maxSpinner},btnDisabled:function(){return this.minDate.getTime()>this.maxDate.getTime()},amPmMode:function(){return-1!==(this.format||"").indexOf("A")?"A":-1!==(this.format||"").indexOf("a")?"a":""}},data:function(){return{popperClass:"",minDate:new Date,maxDate:new Date,value:[],oldValue:[new Date,new Date],defaultValue:null,format:"HH:mm:ss",visible:!1,selectionRange:[0,2],arrowControl:!1}},watch:{value:function(e){Array.isArray(e)?(this.minDate=new Date(e[0]),this.maxDate=new Date(e[1])):Array.isArray(this.defaultValue)?(this.minDate=new Date(this.defaultValue[0]),this.maxDate=new Date(this.defaultValue[1])):this.defaultValue?(this.minDate=new Date(this.defaultValue),this.maxDate=Xo(new Date(this.defaultValue),36e5)):(this.minDate=new Date,this.maxDate=Xo(new Date,36e5))},visible:function(e){var t=this;e&&(this.oldValue=this.value,this.$nextTick((function(){return t.$refs.minSpinner.emitSelectRange("hours")})))}},methods:{handleClear:function(){this.$emit("pick",null)},handleCancel:function(){this.$emit("pick",this.oldValue)},handleMinChange:function(e){this.minDate=Object(oa["clearMilliseconds"])(e),this.handleChange()},handleMaxChange:function(e){this.maxDate=Object(oa["clearMilliseconds"])(e),this.handleChange()},handleChange:function(){this.isValidValue([this.minDate,this.maxDate])&&(this.$refs.minSpinner.selectableRange=[[Go(this.minDate),this.maxDate]],this.$refs.maxSpinner.selectableRange=[[this.minDate,Ko(this.maxDate)]],this.$emit("pick",[this.minDate,this.maxDate],!0))},setMinSelectionRange:function(e,t){this.$emit("select-range",e,t,"min"),this.selectionRange=[e,t]},setMaxSelectionRange:function(e,t){this.$emit("select-range",e,t,"max"),this.selectionRange=[e+this.offset,t+this.offset]},handleConfirm:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.$refs.minSpinner.selectableRange,n=this.$refs.maxSpinner.selectableRange;this.minDate=Object(oa["limitTimeRange"])(this.minDate,t,this.format),this.maxDate=Object(oa["limitTimeRange"])(this.maxDate,n,this.format),this.$emit("pick",[this.minDate,this.maxDate],e)},adjustSpinners:function(){this.$refs.minSpinner.adjustSpinners(),this.$refs.maxSpinner.adjustSpinners()},changeSelectionRange:function(e){var t=this.showSeconds?[0,3,6,11,14,17]:[0,3,8,11],n=["hours","minutes"].concat(this.showSeconds?["seconds"]:[]),r=t.indexOf(this.selectionRange[0]),i=(r+e+t.length)%t.length,a=t.length/2;i<a?this.$refs.minSpinner.emitSelectRange(n[i]):this.$refs.maxSpinner.emitSelectRange(n[i-a])},isValidValue:function(e){return Array.isArray(e)&&Object(oa["timeWithinRange"])(this.minDate,this.$refs.minSpinner.selectableRange)&&Object(oa["timeWithinRange"])(this.maxDate,this.$refs.maxSpinner.selectableRange)},handleKeydown:function(e){var t=e.keyCode,n={38:-1,40:1,37:-1,39:1};if(37===t||39===t){var r=n[t];return this.changeSelectionRange(r),void e.preventDefault()}if(38===t||40===t){var i=n[t];return this.spinner.scrollDown(i),void e.preventDefault()}}}},Jo=Zo,Qo=s(Jo,Ho,Uo,!1,null,null,null);Qo.options.__file="packages/date-picker/src/panel/time-range.vue";var es=Qo.exports,ts={mixins:[Sa],name:"ElTimePicker",props:{isRange:Boolean,arrowControl:Boolean},data:function(){return{type:""}},watch:{isRange:function(e){this.picker?(this.unmountPicker(),this.type=e?"timerange":"time",this.panel=e?es:Ba,this.mountPicker()):(this.type=e?"timerange":"time",this.panel=e?es:Ba)}},created:function(){this.type=this.isRange?"timerange":"time",this.panel=this.isRange?es:Ba},install:function(e){e.component(ts.name,ts)}},ns=ts,rs=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",[n("transition",{attrs:{name:e.transition},on:{"after-enter":e.handleAfterEnter,"after-leave":e.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:!e.disabled&&e.showPopper,expression:"!disabled && showPopper"}],ref:"popper",staticClass:"el-popover el-popper",class:[e.popperClass,e.content&&"el-popover--plain"],style:{width:e.width+"px"},attrs:{role:"tooltip",id:e.tooltipId,"aria-hidden":e.disabled||!e.showPopper?"true":"false"}},[e.title?n("div",{staticClass:"el-popover__title",domProps:{textContent:e._s(e.title)}}):e._e(),e._t("default",[e._v(e._s(e.content))])],2)]),n("span",{ref:"wrapper",staticClass:"el-popover__reference-wrapper"},[e._t("reference")],2)],1)},is=[];rs._withStripped=!0;var as={name:"ElPopover",mixins:[q.a],props:{trigger:{type:String,default:"click",validator:function(e){return["click","focus","hover","manual"].indexOf(e)>-1}},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:200},title:String,disabled:Boolean,content:String,reference:{},popperClass:String,width:{},visibleArrow:{default:!0},arrowOffset:{type:Number,default:0},transition:{type:String,default:"fade-in-linear"},tabindex:{type:Number,default:0}},computed:{tooltipId:function(){return"el-popover-"+Object(y["generateId"])()}},watch:{showPopper:function(e){this.disabled||(e?this.$emit("show"):this.$emit("hide"))}},mounted:function(){var e=this,t=this.referenceElm=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!t&&this.$refs.wrapper.children&&(t=this.referenceElm=this.$refs.wrapper.children[0]),t&&(Object(Be["addClass"])(t,"el-popover__reference"),t.setAttribute("aria-describedby",this.tooltipId),t.setAttribute("tabindex",this.tabindex),n.setAttribute("tabindex",0),"click"!==this.trigger&&(Object(Be["on"])(t,"focusin",(function(){e.handleFocus();var n=t.__vue__;n&&"function"===typeof n.focus&&n.focus()})),Object(Be["on"])(n,"focusin",this.handleFocus),Object(Be["on"])(t,"focusout",this.handleBlur),Object(Be["on"])(n,"focusout",this.handleBlur)),Object(Be["on"])(t,"keydown",this.handleKeydown),Object(Be["on"])(t,"click",this.handleClick)),"click"===this.trigger?(Object(Be["on"])(t,"click",this.doToggle),Object(Be["on"])(document,"click",this.handleDocumentClick)):"hover"===this.trigger?(Object(Be["on"])(t,"mouseenter",this.handleMouseEnter),Object(Be["on"])(n,"mouseenter",this.handleMouseEnter),Object(Be["on"])(t,"mouseleave",this.handleMouseLeave),Object(Be["on"])(n,"mouseleave",this.handleMouseLeave)):"focus"===this.trigger&&(this.tabindex<0&&console.warn("[Element Warn][Popover]a negative taindex means that the element cannot be focused by tab key"),t.querySelector("input, textarea")?(Object(Be["on"])(t,"focusin",this.doShow),Object(Be["on"])(t,"focusout",this.doClose)):(Object(Be["on"])(t,"mousedown",this.doShow),Object(Be["on"])(t,"mouseup",this.doClose)))},beforeDestroy:function(){this.cleanup()},deactivated:function(){this.cleanup()},methods:{doToggle:function(){this.showPopper=!this.showPopper},doShow:function(){this.showPopper=!0},doClose:function(){this.showPopper=!1},handleFocus:function(){Object(Be["addClass"])(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!0)},handleClick:function(){Object(Be["removeClass"])(this.referenceElm,"focusing")},handleBlur:function(){Object(Be["removeClass"])(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!1)},handleMouseEnter:function(){var e=this;clearTimeout(this._timer),this.openDelay?this._timer=setTimeout((function(){e.showPopper=!0}),this.openDelay):this.showPopper=!0},handleKeydown:function(e){27===e.keyCode&&"manual"!==this.trigger&&this.doClose()},handleMouseLeave:function(){var e=this;clearTimeout(this._timer),this.closeDelay?this._timer=setTimeout((function(){e.showPopper=!1}),this.closeDelay):this.showPopper=!1},handleDocumentClick:function(e){var t=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!t&&this.$refs.wrapper.children&&(t=this.referenceElm=this.$refs.wrapper.children[0]),this.$el&&t&&!this.$el.contains(e.target)&&!t.contains(e.target)&&n&&!n.contains(e.target)&&(this.showPopper=!1)},handleAfterEnter:function(){this.$emit("after-enter")},handleAfterLeave:function(){this.$emit("after-leave"),this.doDestroy()},cleanup:function(){(this.openDelay||this.closeDelay)&&clearTimeout(this._timer)}},destroyed:function(){var e=this.reference;Object(Be["off"])(e,"click",this.doToggle),Object(Be["off"])(e,"mouseup",this.doClose),Object(Be["off"])(e,"mousedown",this.doShow),Object(Be["off"])(e,"focusin",this.doShow),Object(Be["off"])(e,"focusout",this.doClose),Object(Be["off"])(e,"mousedown",this.doShow),Object(Be["off"])(e,"mouseup",this.doClose),Object(Be["off"])(e,"mouseleave",this.handleMouseLeave),Object(Be["off"])(e,"mouseenter",this.handleMouseEnter),Object(Be["off"])(document,"click",this.handleDocumentClick)}},os=as,ss=s(os,rs,is,!1,null,null,null);ss.options.__file="packages/popover/src/main.vue";var ls=ss.exports,us=function(e,t,n){var r=t.expression?t.value:t.arg,i=n.context.$refs[r];i&&(Array.isArray(i)?i[0].$refs.reference=e:i.$refs.reference=e)},cs={bind:function(e,t,n){us(e,t,n)},inserted:function(e,t,n){us(e,t,n)}};Vr.a.directive("popover",cs),ls.install=function(e){e.directive("popover",cs),e.component(ls.name,ls)},ls.directive=cs;var ds=ls,hs={name:"ElTooltip",mixins:[q.a],props:{openDelay:{type:Number,default:0},disabled:Boolean,manual:Boolean,effect:{type:String,default:"dark"},arrowOffset:{type:Number,default:0},popperClass:String,content:String,visibleArrow:{default:!0},transition:{type:String,default:"el-fade-in-linear"},popperOptions:{default:function(){return{boundariesPadding:10,gpuAcceleration:!1}}},enterable:{type:Boolean,default:!0},hideAfter:{type:Number,default:0},tabindex:{type:Number,default:0}},data:function(){return{tooltipId:"el-tooltip-"+Object(y["generateId"])(),timeoutPending:null,focusing:!1}},beforeCreate:function(){var e=this;this.$isServer||(this.popperVM=new Vr.a({data:{node:""},render:function(e){return this.node}}).$mount(),this.debounceClose=F()(200,(function(){return e.handleClosePopper()})))},render:function(e){var t=this;this.popperVM&&(this.popperVM.node=e("transition",{attrs:{name:this.transition},on:{afterLeave:this.doDestroy}},[e("div",{on:{mouseleave:function(){t.setExpectedState(!1),t.debounceClose()},mouseenter:function(){t.setExpectedState(!0)}},ref:"popper",attrs:{role:"tooltip",id:this.tooltipId,"aria-hidden":this.disabled||!this.showPopper?"true":"false"},directives:[{name:"show",value:!this.disabled&&this.showPopper}],class:["el-tooltip__popper","is-"+this.effect,this.popperClass]},[this.$slots.content||this.content])]));var n=this.getFirstElement();if(!n)return null;var r=n.data=n.data||{};return r.staticClass=this.addTooltipClass(r.staticClass),n},mounted:function(){var e=this;this.referenceElm=this.$el,1===this.$el.nodeType&&(this.$el.setAttribute("aria-describedby",this.tooltipId),this.$el.setAttribute("tabindex",this.tabindex),Object(Be["on"])(this.referenceElm,"mouseenter",this.show),Object(Be["on"])(this.referenceElm,"mouseleave",this.hide),Object(Be["on"])(this.referenceElm,"focus",(function(){if(e.$slots.default&&e.$slots.default.length){var t=e.$slots.default[0].componentInstance;t&&t.focus?t.focus():e.handleFocus()}else e.handleFocus()})),Object(Be["on"])(this.referenceElm,"blur",this.handleBlur),Object(Be["on"])(this.referenceElm,"click",this.removeFocusing)),this.value&&this.popperVM&&this.popperVM.$nextTick((function(){e.value&&e.updatePopper()}))},watch:{focusing:function(e){e?Object(Be["addClass"])(this.referenceElm,"focusing"):Object(Be["removeClass"])(this.referenceElm,"focusing")}},methods:{show:function(){this.setExpectedState(!0),this.handleShowPopper()},hide:function(){this.setExpectedState(!1),this.debounceClose()},handleFocus:function(){this.focusing=!0,this.show()},handleBlur:function(){this.focusing=!1,this.hide()},removeFocusing:function(){this.focusing=!1},addTooltipClass:function(e){return e?"el-tooltip "+e.replace("el-tooltip",""):"el-tooltip"},handleShowPopper:function(){var e=this;this.expectedState&&!this.manual&&(clearTimeout(this.timeout),this.timeout=setTimeout((function(){e.showPopper=!0}),this.openDelay),this.hideAfter>0&&(this.timeoutPending=setTimeout((function(){e.showPopper=!1}),this.hideAfter)))},handleClosePopper:function(){this.enterable&&this.expectedState||this.manual||(clearTimeout(this.timeout),this.timeoutPending&&clearTimeout(this.timeoutPending),this.showPopper=!1,this.disabled&&this.doDestroy())},setExpectedState:function(e){!1===e&&clearTimeout(this.timeoutPending),this.expectedState=e},getFirstElement:function(){var e=this.$slots.default;if(!Array.isArray(e))return null;for(var t=null,n=0;n<e.length;n++)if(e[n]&&e[n].tag){t=e[n];break}return t}},beforeDestroy:function(){this.popperVM&&this.popperVM.$destroy()},destroyed:function(){var e=this.referenceElm;1===e.nodeType&&(Object(Be["off"])(e,"mouseenter",this.show),Object(Be["off"])(e,"mouseleave",this.hide),Object(Be["off"])(e,"focus",this.handleFocus),Object(Be["off"])(e,"blur",this.handleBlur),Object(Be["off"])(e,"click",this.removeFocusing))},install:function(e){e.component(hs.name,hs)}},fs=hs,ps=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"msgbox-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-message-box__wrapper",attrs:{tabindex:"-1",role:"dialog","aria-modal":"true","aria-label":e.title||"dialog"},on:{click:function(t){return t.target!==t.currentTarget?null:e.handleWrapperClick(t)}}},[n("div",{staticClass:"el-message-box",class:[e.customClass,e.center&&"el-message-box--center"]},[null!==e.title?n("div",{staticClass:"el-message-box__header"},[n("div",{staticClass:"el-message-box__title"},[e.icon&&e.center?n("div",{class:["el-message-box__status",e.icon]}):e._e(),n("span",[e._v(e._s(e.title))])]),e.showClose?n("button",{staticClass:"el-message-box__headerbtn",attrs:{type:"button","aria-label":"Close"},on:{click:function(t){e.handleAction(e.distinguishCancelAndClose?"close":"cancel")},keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.handleAction(e.distinguishCancelAndClose?"close":"cancel")}}},[n("i",{staticClass:"el-message-box__close el-icon-close"})]):e._e()]):e._e(),n("div",{staticClass:"el-message-box__content"},[n("div",{staticClass:"el-message-box__container"},[e.icon&&!e.center&&""!==e.message?n("div",{class:["el-message-box__status",e.icon]}):e._e(),""!==e.message?n("div",{staticClass:"el-message-box__message"},[e._t("default",[e.dangerouslyUseHTMLString?n("p",{domProps:{innerHTML:e._s(e.message)}}):n("p",[e._v(e._s(e.message))])])],2):e._e()]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.showInput,expression:"showInput"}],staticClass:"el-message-box__input"},[n("el-input",{ref:"input",attrs:{type:e.inputType,placeholder:e.inputPlaceholder},nativeOn:{keydown:function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleInputEnter(t)}},model:{value:e.inputValue,callback:function(t){e.inputValue=t},expression:"inputValue"}}),n("div",{staticClass:"el-message-box__errormsg",style:{visibility:e.editorErrorMessage?"visible":"hidden"}},[e._v(e._s(e.editorErrorMessage))])],1)]),n("div",{staticClass:"el-message-box__btns"},[e.showCancelButton?n("el-button",{class:[e.cancelButtonClasses],attrs:{loading:e.cancelButtonLoading,round:e.roundButton,size:"small"},on:{keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.handleAction("cancel")}},nativeOn:{click:function(t){e.handleAction("cancel")}}},[e._v("\n "+e._s(e.cancelButtonText||e.t("el.messagebox.cancel"))+"\n ")]):e._e(),n("el-button",{directives:[{name:"show",rawName:"v-show",value:e.showConfirmButton,expression:"showConfirmButton"}],ref:"confirm",class:[e.confirmButtonClasses],attrs:{loading:e.confirmButtonLoading,round:e.roundButton,size:"small"},on:{keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.handleAction("confirm")}},nativeOn:{click:function(t){e.handleAction("confirm")}}},[e._v("\n "+e._s(e.confirmButtonText||e.t("el.messagebox.confirm"))+"\n ")])],1)])])])},ms=[];ps._withStripped=!0;var vs=n(12),gs=n.n(vs),ys=n(39),bs=n.n(ys),xs=void 0,ws={success:"success",info:"info",warning:"warning",error:"error"},_s={mixins:[S.a,g.a],props:{modal:{default:!0},lockScroll:{default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{default:!0},closeOnPressEscape:{default:!0},closeOnHashChange:{default:!0},center:{default:!1,type:Boolean},roundButton:{default:!1,type:Boolean}},components:{ElInput:m.a,ElButton:oe.a},computed:{icon:function(){var e=this.type,t=this.iconClass;return t||(e&&ws[e]?"el-icon-"+ws[e]:"")},confirmButtonClasses:function(){return"el-button--primary "+this.confirmButtonClass},cancelButtonClasses:function(){return""+this.cancelButtonClass}},methods:{getSafeClose:function(){var e=this,t=this.uid;return function(){e.$nextTick((function(){t===e.uid&&e.doClose()}))}},doClose:function(){var e=this;this.visible&&(this.visible=!1,this._closing=!0,this.onClose&&this.onClose(),xs.closeDialog(),this.lockScroll&&setTimeout(this.restoreBodyStyle,200),this.opened=!1,this.doAfterClose(),setTimeout((function(){e.action&&e.callback(e.action,e)})))},handleWrapperClick:function(){this.closeOnClickModal&&this.handleAction(this.distinguishCancelAndClose?"close":"cancel")},handleInputEnter:function(){if("textarea"!==this.inputType)return this.handleAction("confirm")},handleAction:function(e){("prompt"!==this.$type||"confirm"!==e||this.validate())&&(this.action=e,"function"===typeof this.beforeClose?(this.close=this.getSafeClose(),this.beforeClose(e,this,this.close)):this.doClose())},validate:function(){if("prompt"===this.$type){var e=this.inputPattern;if(e&&!e.test(this.inputValue||""))return this.editorErrorMessage=this.inputErrorMessage||Object(vs["t"])("el.messagebox.error"),Object(Be["addClass"])(this.getInputElement(),"invalid"),!1;var t=this.inputValidator;if("function"===typeof t){var n=t(this.inputValue);if(!1===n)return this.editorErrorMessage=this.inputErrorMessage||Object(vs["t"])("el.messagebox.error"),Object(Be["addClass"])(this.getInputElement(),"invalid"),!1;if("string"===typeof n)return this.editorErrorMessage=n,Object(Be["addClass"])(this.getInputElement(),"invalid"),!1}}return this.editorErrorMessage="",Object(Be["removeClass"])(this.getInputElement(),"invalid"),!0},getFirstFocus:function(){var e=this.$el.querySelector(".el-message-box__btns .el-button"),t=this.$el.querySelector(".el-message-box__btns .el-message-box__title");return e||t},getInputElement:function(){var e=this.$refs.input.$refs;return e.input||e.textarea},handleClose:function(){this.handleAction("close")}},watch:{inputValue:{immediate:!0,handler:function(e){var t=this;this.$nextTick((function(n){"prompt"===t.$type&&null!==e&&t.validate()}))}},visible:function(e){var t=this;e&&(this.uid++,"alert"!==this.$type&&"confirm"!==this.$type||this.$nextTick((function(){t.$refs.confirm.$el.focus()})),this.focusAfterClosed=document.activeElement,xs=new bs.a(this.$el,this.focusAfterClosed,this.getFirstFocus())),"prompt"===this.$type&&(e?setTimeout((function(){t.$refs.input&&t.$refs.input.$el&&t.getInputElement().focus()}),500):(this.editorErrorMessage="",Object(Be["removeClass"])(this.getInputElement(),"invalid")))}},mounted:function(){var e=this;this.$nextTick((function(){e.closeOnHashChange&&window.addEventListener("hashchange",e.close)}))},beforeDestroy:function(){this.closeOnHashChange&&window.removeEventListener("hashchange",this.close),setTimeout((function(){xs.closeDialog()}))},data:function(){return{uid:1,title:void 0,message:"",type:"",iconClass:"",customClass:"",showInput:!1,inputValue:null,inputPlaceholder:"",inputType:"text",inputPattern:null,inputValidator:null,inputErrorMessage:"",showConfirmButton:!0,showCancelButton:!1,action:"",confirmButtonText:"",cancelButtonText:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonClass:"",confirmButtonDisabled:!1,cancelButtonClass:"",editorErrorMessage:null,callback:null,dangerouslyUseHTMLString:!1,focusAfterClosed:null,isOnComposition:!1,distinguishCancelAndClose:!1}}},Cs=_s,Ss=s(Cs,ps,ms,!1,null,null,null);Ss.options.__file="packages/message-box/src/main.vue";var Ns=Ss.exports,ks=n(22),Es="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ms={title:null,message:"",type:"",iconClass:"",showInput:!1,showClose:!0,modalFade:!0,lockScroll:!0,closeOnClickModal:!0,closeOnPressEscape:!0,closeOnHashChange:!0,inputValue:null,inputPlaceholder:"",inputType:"text",inputPattern:null,inputValidator:null,inputErrorMessage:"",showConfirmButton:!0,showCancelButton:!1,confirmButtonPosition:"right",confirmButtonHighlight:!1,cancelButtonHighlight:!1,confirmButtonText:"",cancelButtonText:"",confirmButtonClass:"",cancelButtonClass:"",customClass:"",beforeClose:null,dangerouslyUseHTMLString:!1,center:!1,roundButton:!1,distinguishCancelAndClose:!1},Os=Vr.a.extend(Ns),Ds=void 0,Ts=void 0,As=[],Is=function(e){if(Ds){var t=Ds.callback;"function"===typeof t&&(Ts.showInput?t(Ts.inputValue,e):t(e)),Ds.resolve&&("confirm"===e?Ts.showInput?Ds.resolve({value:Ts.inputValue,action:e}):Ds.resolve(e):!Ds.reject||"cancel"!==e&&"close"!==e||Ds.reject(e))}},$s=function(){Ts=new Os({el:document.createElement("div")}),Ts.callback=Is},Ps=function e(){if(Ts||$s(),Ts.action="",(!Ts.visible||Ts.closeTimer)&&As.length>0){Ds=As.shift();var t=Ds.options;for(var n in t)t.hasOwnProperty(n)&&(Ts[n]=t[n]);void 0===t.callback&&(Ts.callback=Is);var r=Ts.callback;Ts.callback=function(t,n){r(t,n),e()},Object(ks["isVNode"])(Ts.message)?(Ts.$slots.default=[Ts.message],Ts.message=null):delete Ts.$slots.default,["modal","showClose","closeOnClickModal","closeOnPressEscape","closeOnHashChange"].forEach((function(e){void 0===Ts[e]&&(Ts[e]=!0)})),document.body.appendChild(Ts.$el),Vr.a.nextTick((function(){Ts.visible=!0}))}},js=function e(t,n){if(!Vr.a.prototype.$isServer){if("string"===typeof t||Object(ks["isVNode"])(t)?(t={message:t},"string"===typeof arguments[1]&&(t.title=arguments[1])):t.callback&&!n&&(n=t.callback),"undefined"!==typeof Promise)return new Promise((function(r,i){As.push({options:Nt()({},Ms,e.defaults,t),callback:n,resolve:r,reject:i}),Ps()}));As.push({options:Nt()({},Ms,e.defaults,t),callback:n}),Ps()}};js.setDefaults=function(e){js.defaults=e},js.alert=function(e,t,n){return"object"===("undefined"===typeof t?"undefined":Es(t))?(n=t,t=""):void 0===t&&(t=""),js(Nt()({title:t,message:e,$type:"alert",closeOnPressEscape:!1,closeOnClickModal:!1},n))},js.confirm=function(e,t,n){return"object"===("undefined"===typeof t?"undefined":Es(t))?(n=t,t=""):void 0===t&&(t=""),js(Nt()({title:t,message:e,$type:"confirm",showCancelButton:!0},n))},js.prompt=function(e,t,n){return"object"===("undefined"===typeof t?"undefined":Es(t))?(n=t,t=""):void 0===t&&(t=""),js(Nt()({title:t,message:e,showCancelButton:!0,showInput:!0,$type:"prompt"},n))},js.close=function(){Ts.doClose(),Ts.visible=!1,As=[],Ds=null};var Fs=js,Bs=Fs,Ls=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-breadcrumb",attrs:{"aria-label":"Breadcrumb",role:"navigation"}},[e._t("default")],2)},zs=[];Ls._withStripped=!0;var Rs={name:"ElBreadcrumb",props:{separator:{type:String,default:"/"},separatorClass:{type:String,default:""}},provide:function(){return{elBreadcrumb:this}},mounted:function(){var e=this.$el.querySelectorAll(".el-breadcrumb__item");e.length&&e[e.length-1].setAttribute("aria-current","page")}},Vs=Rs,qs=s(Vs,Ls,zs,!1,null,null,null);qs.options.__file="packages/breadcrumb/src/breadcrumb.vue";var Hs=qs.exports;Hs.install=function(e){e.component(Hs.name,Hs)};var Us=Hs,Ws=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",{staticClass:"el-breadcrumb__item"},[n("span",{ref:"link",class:["el-breadcrumb__inner",e.to?"is-link":""],attrs:{role:"link"}},[e._t("default")],2),e.separatorClass?n("i",{staticClass:"el-breadcrumb__separator",class:e.separatorClass}):n("span",{staticClass:"el-breadcrumb__separator",attrs:{role:"presentation"}},[e._v(e._s(e.separator))])])},Ys=[];Ws._withStripped=!0;var Gs={name:"ElBreadcrumbItem",props:{to:{},replace:Boolean},data:function(){return{separator:"",separatorClass:""}},inject:["elBreadcrumb"],mounted:function(){var e=this;this.separator=this.elBreadcrumb.separator,this.separatorClass=this.elBreadcrumb.separatorClass;var t=this.$refs.link;t.setAttribute("role","link"),t.addEventListener("click",(function(t){var n=e.to,r=e.$router;n&&r&&(e.replace?r.replace(n):r.push(n))}))}},Ks=Gs,Xs=s(Ks,Ws,Ys,!1,null,null,null);Xs.options.__file="packages/breadcrumb/src/breadcrumb-item.vue";var Zs=Xs.exports;Zs.install=function(e){e.component(Zs.name,Zs)};var Js=Zs,Qs=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form",{staticClass:"el-form",class:[e.labelPosition?"el-form--label-"+e.labelPosition:"",{"el-form--inline":e.inline}]},[e._t("default")],2)},el=[];Qs._withStripped=!0;var tl={name:"ElForm",componentName:"ElForm",provide:function(){return{elForm:this}},props:{model:Object,rules:Object,labelPosition:String,labelWidth:String,labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},size:String,disabled:Boolean,validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:{type:Boolean,default:!1}},watch:{rules:function(){this.fields.forEach((function(e){e.removeValidateEvents(),e.addValidateEvents()})),this.validateOnRuleChange&&this.validate((function(){}))}},computed:{autoLabelWidth:function(){if(!this.potentialLabelWidthArr.length)return 0;var e=Math.max.apply(Math,this.potentialLabelWidthArr);return e?e+"px":""}},data:function(){return{fields:[],potentialLabelWidthArr:[]}},created:function(){var e=this;this.$on("el.form.addField",(function(t){t&&e.fields.push(t)})),this.$on("el.form.removeField",(function(t){t.prop&&e.fields.splice(e.fields.indexOf(t),1)}))},methods:{resetFields:function(){this.model?this.fields.forEach((function(e){e.resetField()})):console.warn("[Element Warn][Form]model is required for resetFields to work.")},clearValidate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e.length?"string"===typeof e?this.fields.filter((function(t){return e===t.prop})):this.fields.filter((function(t){return e.indexOf(t.prop)>-1})):this.fields;t.forEach((function(e){e.clearValidate()}))},validate:function(e){var t=this;if(this.model){var n=void 0;"function"!==typeof e&&window.Promise&&(n=new window.Promise((function(t,n){e=function(e,r){e?t(e):n(r)}})));var r=!0,i=0;0===this.fields.length&&e&&e(!0);var a={};return this.fields.forEach((function(n){n.validate("",(function(n,o){n&&(r=!1),a=Nt()({},a,o),"function"===typeof e&&++i===t.fields.length&&e(r,a)}))})),n||void 0}console.warn("[Element Warn][Form]model is required for validate to work!")},validateField:function(e,t){e=[].concat(e);var n=this.fields.filter((function(t){return-1!==e.indexOf(t.prop)}));n.length?n.forEach((function(e){e.validate("",t)})):console.warn("[Element Warn]please pass correct props!")},getLabelWidthIndex:function(e){var t=this.potentialLabelWidthArr.indexOf(e);if(-1===t)throw new Error("[ElementForm]unpected width ",e);return t},registerLabelWidth:function(e,t){if(e&&t){var n=this.getLabelWidthIndex(t);this.potentialLabelWidthArr.splice(n,1,e)}else e&&this.potentialLabelWidthArr.push(e)},deregisterLabelWidth:function(e){var t=this.getLabelWidthIndex(e);this.potentialLabelWidthArr.splice(t,1)}}},nl=tl,rl=s(nl,Qs,el,!1,null,null,null);rl.options.__file="packages/form/src/form.vue";var il=rl.exports;il.install=function(e){e.component(il.name,il)};var al=il,ol=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-form-item",class:[{"el-form-item--feedback":e.elForm&&e.elForm.statusIcon,"is-error":"error"===e.validateState,"is-validating":"validating"===e.validateState,"is-success":"success"===e.validateState,"is-required":e.isRequired||e.required,"is-no-asterisk":e.elForm&&e.elForm.hideRequiredAsterisk},e.sizeClass?"el-form-item--"+e.sizeClass:""]},[n("label-wrap",{attrs:{"is-auto-width":e.labelStyle&&"auto"===e.labelStyle.width,"update-all":"auto"===e.form.labelWidth}},[e.label||e.$slots.label?n("label",{staticClass:"el-form-item__label",style:e.labelStyle,attrs:{for:e.labelFor}},[e._t("label",[e._v(e._s(e.label+e.form.labelSuffix))])],2):e._e()]),n("div",{staticClass:"el-form-item__content",style:e.contentStyle},[e._t("default"),n("transition",{attrs:{name:"el-zoom-in-top"}},["error"===e.validateState&&e.showMessage&&e.form.showMessage?e._t("error",[n("div",{staticClass:"el-form-item__error",class:{"el-form-item__error--inline":"boolean"===typeof e.inlineMessage?e.inlineMessage:e.elForm&&e.elForm.inlineMessage||!1}},[e._v("\n "+e._s(e.validateMessage)+"\n ")])],{error:e.validateMessage}):e._e()],2)],2)],1)},sl=[];ol._withStripped=!0;var ll,ul,cl=n(40),dl=n.n(cl),hl={props:{isAutoWidth:Boolean,updateAll:Boolean},inject:["elForm","elFormItem"],render:function(){var e=arguments[0],t=this.$slots.default;if(!t)return null;if(this.isAutoWidth){var n=this.elForm.autoLabelWidth,r={};if(n&&"auto"!==n){var i=parseInt(n,10)-this.computedWidth;i&&(r.marginLeft=i+"px")}return e("div",{class:"el-form-item__label-wrap",style:r},[t])}return t[0]},methods:{getLabelWidth:function(){if(this.$el&&this.$el.firstElementChild){var e=window.getComputedStyle(this.$el.firstElementChild).width;return Math.ceil(parseFloat(e))}return 0},updateLabelWidth:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"update";this.$slots.default&&this.isAutoWidth&&this.$el.firstElementChild&&("update"===e?this.computedWidth=this.getLabelWidth():"remove"===e&&this.elForm.deregisterLabelWidth(this.computedWidth))}},watch:{computedWidth:function(e,t){this.updateAll&&(this.elForm.registerLabelWidth(e,t),this.elFormItem.updateComputedLabelWidth(e))}},data:function(){return{computedWidth:0}},mounted:function(){this.updateLabelWidth("update")},updated:function(){this.updateLabelWidth("update")},beforeDestroy:function(){this.updateLabelWidth("remove")}},fl=hl,pl=s(fl,ll,ul,!1,null,null,null);pl.options.__file="packages/form/src/label-wrap.vue";var ml=pl.exports,vl={name:"ElFormItem",componentName:"ElFormItem",mixins:[M.a],provide:function(){return{elFormItem:this}},inject:["elForm"],props:{label:String,labelWidth:String,prop:String,required:{type:Boolean,default:void 0},rules:[Object,Array],error:String,validateStatus:String,for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:String},components:{LabelWrap:ml},watch:{error:{immediate:!0,handler:function(e){this.validateMessage=e,this.validateState=e?"error":""}},validateStatus:function(e){this.validateState=e},rules:function(e){e&&0!==e.length||void 0!==this.required||this.clearValidate()}},computed:{labelFor:function(){return this.for||this.prop},labelStyle:function(){var e={};if("top"===this.form.labelPosition)return e;var t=this.labelWidth||this.form.labelWidth;return t&&(e.width=t),e},contentStyle:function(){var e={},t=this.label;if("top"===this.form.labelPosition||this.form.inline)return e;if(!t&&!this.labelWidth&&this.isNested)return e;var n=this.labelWidth||this.form.labelWidth;return"auto"===n?"auto"===this.labelWidth?e.marginLeft=this.computedLabelWidth:"auto"===this.form.labelWidth&&(e.marginLeft=this.elForm.autoLabelWidth):e.marginLeft=n,e},form:function(){var e=this.$parent,t=e.$options.componentName;while("ElForm"!==t)"ElFormItem"===t&&(this.isNested=!0),e=e.$parent,t=e.$options.componentName;return e},fieldValue:function(){var e=this.form.model;if(e&&this.prop){var t=this.prop;return-1!==t.indexOf(":")&&(t=t.replace(/:/,".")),Object(y["getPropByPath"])(e,t,!0).v}},isRequired:function(){var e=this.getRules(),t=!1;return e&&e.length&&e.every((function(e){return!e.required||(t=!0,!1)})),t},_formSize:function(){return this.elForm.size},elFormItemSize:function(){return this.size||this._formSize},sizeClass:function(){return this.elFormItemSize||(this.$ELEMENT||{}).size}},data:function(){return{validateState:"",validateMessage:"",validateDisabled:!1,validator:{},isNested:!1,computedLabelWidth:""}},methods:{validate:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:y["noop"];this.validateDisabled=!1;var r=this.getFilteredRule(e);if((!r||0===r.length)&&void 0===this.required)return n(),!0;this.validateState="validating";var i={};r&&r.length>0&&r.forEach((function(e){delete e.trigger})),i[this.prop]=r;var a=new dl.a(i),o={};o[this.prop]=this.fieldValue,a.validate(o,{firstFields:!0},(function(e,r){t.validateState=e?"error":"success",t.validateMessage=e?e[0].message:"",n(t.validateMessage,r),t.elForm&&t.elForm.$emit("validate",t.prop,!e,t.validateMessage||null)}))},clearValidate:function(){this.validateState="",this.validateMessage="",this.validateDisabled=!1},resetField:function(){var e=this;this.validateState="",this.validateMessage="";var t=this.form.model,n=this.fieldValue,r=this.prop;-1!==r.indexOf(":")&&(r=r.replace(/:/,"."));var i=Object(y["getPropByPath"])(t,r,!0);this.validateDisabled=!0,Array.isArray(n)?i.o[i.k]=[].concat(this.initialValue):i.o[i.k]=this.initialValue,this.$nextTick((function(){e.validateDisabled=!1})),this.broadcast("ElTimeSelect","fieldReset",this.initialValue)},getRules:function(){var e=this.form.rules,t=this.rules,n=void 0!==this.required?{required:!!this.required}:[],r=Object(y["getPropByPath"])(e,this.prop||"");return e=e?r.o[this.prop||""]||r.v:[],[].concat(t||e||[]).concat(n)},getFilteredRule:function(e){var t=this.getRules();return t.filter((function(t){return!t.trigger||""===e||(Array.isArray(t.trigger)?t.trigger.indexOf(e)>-1:t.trigger===e)})).map((function(e){return Nt()({},e)}))},onFieldBlur:function(){this.validate("blur")},onFieldChange:function(){this.validateDisabled?this.validateDisabled=!1:this.validate("change")},updateComputedLabelWidth:function(e){this.computedLabelWidth=e?e+"px":""},addValidateEvents:function(){var e=this.getRules();(e.length||void 0!==this.required)&&(this.$on("el.form.blur",this.onFieldBlur),this.$on("el.form.change",this.onFieldChange))},removeValidateEvents:function(){this.$off()}},mounted:function(){if(this.prop){this.dispatch("ElForm","el.form.addField",[this]);var e=this.fieldValue;Array.isArray(e)&&(e=[].concat(e)),Object.defineProperty(this,"initialValue",{value:e}),this.addValidateEvents()}},beforeDestroy:function(){this.dispatch("ElForm","el.form.removeField",[this])}},gl=vl,yl=s(gl,ol,sl,!1,null,null,null);yl.options.__file="packages/form/src/form-item.vue";var bl=yl.exports;bl.install=function(e){e.component(bl.name,bl)};var xl=bl,wl=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-tabs__active-bar",class:"is-"+e.rootTabs.tabPosition,style:e.barStyle})},_l=[];wl._withStripped=!0;var Cl={name:"TabBar",props:{tabs:Array},inject:["rootTabs"],computed:{barStyle:{get:function(){var e=this,t={},n=0,r=0,i=-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition)?"width":"height",a="width"===i?"x":"y",o=function(e){return e.toLowerCase().replace(/( |^)[a-z]/g,(function(e){return e.toUpperCase()}))};this.tabs.every((function(t,a){var s=Object(y["arrayFind"])(e.$parent.$refs.tabs||[],(function(e){return e.id.replace("tab-","")===t.paneName}));if(!s)return!1;if(t.active){r=s["client"+o(i)];var l=window.getComputedStyle(s);return"width"===i&&e.tabs.length>1&&(r-=parseFloat(l.paddingLeft)+parseFloat(l.paddingRight)),"width"===i&&(n+=parseFloat(l.paddingLeft)),!1}return n+=s["client"+o(i)],!0}));var s="translate"+o(a)+"("+n+"px)";return t[i]=r+"px",t.transform=s,t.msTransform=s,t.webkitTransform=s,t}}}},Sl=Cl,Nl=s(Sl,wl,_l,!1,null,null,null);Nl.options.__file="packages/tabs/src/tab-bar.vue";var kl=Nl.exports;function El(){}var Ml,Ol,Dl=function(e){return e.toLowerCase().replace(/( |^)[a-z]/g,(function(e){return e.toUpperCase()}))},Tl={name:"TabNav",components:{TabBar:kl},inject:["rootTabs"],props:{panes:Array,currentName:String,editable:Boolean,onTabClick:{type:Function,default:El},onTabRemove:{type:Function,default:El},type:String,stretch:Boolean},data:function(){return{scrollable:!1,navOffset:0,isFocus:!1,focusable:!0}},computed:{navStyle:function(){var e=-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition)?"X":"Y";return{transform:"translate"+e+"(-"+this.navOffset+"px)"}},sizeName:function(){return-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition)?"width":"height"}},methods:{scrollPrev:function(){var e=this.$refs.navScroll["offset"+Dl(this.sizeName)],t=this.navOffset;if(t){var n=t>e?t-e:0;this.navOffset=n}},scrollNext:function(){var e=this.$refs.nav["offset"+Dl(this.sizeName)],t=this.$refs.navScroll["offset"+Dl(this.sizeName)],n=this.navOffset;if(!(e-n<=t)){var r=e-n>2*t?n+t:e-t;this.navOffset=r}},scrollToActiveTab:function(){if(this.scrollable){var e=this.$refs.nav,t=this.$el.querySelector(".is-active");if(t){var n=this.$refs.navScroll,r=-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition),i=t.getBoundingClientRect(),a=n.getBoundingClientRect(),o=r?e.offsetWidth-a.width:e.offsetHeight-a.height,s=this.navOffset,l=s;r?(i.left<a.left&&(l=s-(a.left-i.left)),i.right>a.right&&(l=s+i.right-a.right)):(i.top<a.top&&(l=s-(a.top-i.top)),i.bottom>a.bottom&&(l=s+(i.bottom-a.bottom))),l=Math.max(l,0),this.navOffset=Math.min(l,o)}}},update:function(){if(this.$refs.nav){var e=this.sizeName,t=this.$refs.nav["offset"+Dl(e)],n=this.$refs.navScroll["offset"+Dl(e)],r=this.navOffset;if(n<t){var i=this.navOffset;this.scrollable=this.scrollable||{},this.scrollable.prev=i,this.scrollable.next=i+n<t,t-i<n&&(this.navOffset=t-n)}else this.scrollable=!1,r>0&&(this.navOffset=0)}},changeTab:function(e){var t=e.keyCode,n=void 0,r=void 0,i=void 0;-1!==[37,38,39,40].indexOf(t)&&(i=e.currentTarget.querySelectorAll("[role=tab]"),r=Array.prototype.indexOf.call(i,e.target),n=37===t||38===t?0===r?i.length-1:r-1:r<i.length-1?r+1:0,i[n].focus(),i[n].click(),this.setFocus())},setFocus:function(){this.focusable&&(this.isFocus=!0)},removeFocus:function(){this.isFocus=!1},visibilityChangeHandler:function(){var e=this,t=document.visibilityState;"hidden"===t?this.focusable=!1:"visible"===t&&setTimeout((function(){e.focusable=!0}),50)},windowBlurHandler:function(){this.focusable=!1},windowFocusHandler:function(){var e=this;setTimeout((function(){e.focusable=!0}),50)}},updated:function(){this.update()},render:function(e){var t=this,n=this.type,r=this.panes,i=this.editable,a=this.stretch,o=this.onTabClick,s=this.onTabRemove,l=this.navStyle,u=this.scrollable,c=this.scrollNext,d=this.scrollPrev,h=this.changeTab,f=this.setFocus,p=this.removeFocus,m=u?[e("span",{class:["el-tabs__nav-prev",u.prev?"":"is-disabled"],on:{click:d}},[e("i",{class:"el-icon-arrow-left"})]),e("span",{class:["el-tabs__nav-next",u.next?"":"is-disabled"],on:{click:c}},[e("i",{class:"el-icon-arrow-right"})])]:null,v=this._l(r,(function(n,r){var a,l=n.name||n.index||r,u=n.isClosable||i;n.index=""+r;var c=u?e("span",{class:"el-icon-close",on:{click:function(e){s(n,e)}}}):null,d=n.$slots.label||n.label,h=n.active?0:-1;return e("div",{class:(a={"el-tabs__item":!0},a["is-"+t.rootTabs.tabPosition]=!0,a["is-active"]=n.active,a["is-disabled"]=n.disabled,a["is-closable"]=u,a["is-focus"]=t.isFocus,a),attrs:{id:"tab-"+l,"aria-controls":"pane-"+l,role:"tab","aria-selected":n.active,tabindex:h},key:"tab-"+l,ref:"tabs",refInFor:!0,on:{focus:function(){f()},blur:function(){p()},click:function(e){p(),o(n,l,e)},keydown:function(e){!u||46!==e.keyCode&&8!==e.keyCode||s(n,e)}}},[d,c])}));return e("div",{class:["el-tabs__nav-wrap",u?"is-scrollable":"","is-"+this.rootTabs.tabPosition]},[m,e("div",{class:["el-tabs__nav-scroll"],ref:"navScroll"},[e("div",{class:["el-tabs__nav","is-"+this.rootTabs.tabPosition,a&&-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition)?"is-stretch":""],ref:"nav",style:l,attrs:{role:"tablist"},on:{keydown:h}},[n?null:e("tab-bar",{attrs:{tabs:r}}),v])])])},mounted:function(){var e=this;Object(er["addResizeListener"])(this.$el,this.update),document.addEventListener("visibilitychange",this.visibilityChangeHandler),window.addEventListener("blur",this.windowBlurHandler),window.addEventListener("focus",this.windowFocusHandler),setTimeout((function(){e.scrollToActiveTab()}),0)},beforeDestroy:function(){this.$el&&this.update&&Object(er["removeResizeListener"])(this.$el,this.update),document.removeEventListener("visibilitychange",this.visibilityChangeHandler),window.removeEventListener("blur",this.windowBlurHandler),window.removeEventListener("focus",this.windowFocusHandler)}},Al=Tl,Il=s(Al,Ml,Ol,!1,null,null,null);Il.options.__file="packages/tabs/src/tab-nav.vue";var $l,Pl,jl=Il.exports,Fl={name:"ElTabs",components:{TabNav:jl},props:{type:String,activeName:String,closable:Boolean,addable:Boolean,value:{},editable:Boolean,tabPosition:{type:String,default:"top"},beforeLeave:Function,stretch:Boolean},provide:function(){return{rootTabs:this}},data:function(){return{currentName:this.value||this.activeName,panes:[]}},watch:{activeName:function(e){this.setCurrentName(e)},value:function(e){this.setCurrentName(e)},currentName:function(e){var t=this;this.$refs.nav&&this.$nextTick((function(){t.$refs.nav.$nextTick((function(e){t.$refs.nav.scrollToActiveTab()}))}))}},methods:{calcPaneInstances:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.$slots.default){var n=this.$slots.default.filter((function(e){return e.tag&&e.componentOptions&&"ElTabPane"===e.componentOptions.Ctor.options.name})),r=n.map((function(e){var t=e.componentInstance;return t})),i=!(r.length===this.panes.length&&r.every((function(t,n){return t===e.panes[n]})));(t||i)&&(this.panes=r)}else 0!==this.panes.length&&(this.panes=[])},handleTabClick:function(e,t,n){e.disabled||(this.setCurrentName(t),this.$emit("tab-click",e,n))},handleTabRemove:function(e,t){e.disabled||(t.stopPropagation(),this.$emit("edit",e.name,"remove"),this.$emit("tab-remove",e.name))},handleTabAdd:function(){this.$emit("edit",null,"add"),this.$emit("tab-add")},setCurrentName:function(e){var t=this,n=function(){t.currentName=e,t.$emit("input",e)};if(this.currentName!==e&&this.beforeLeave){var r=this.beforeLeave(e,this.currentName);r&&r.then?r.then((function(){n(),t.$refs.nav&&t.$refs.nav.removeFocus()}),(function(){})):!1!==r&&n()}else n()}},render:function(e){var t,n=this.type,r=this.handleTabClick,i=this.handleTabRemove,a=this.handleTabAdd,o=this.currentName,s=this.panes,l=this.editable,u=this.addable,c=this.tabPosition,d=this.stretch,h=l||u?e("span",{class:"el-tabs__new-tab",on:{click:a,keydown:function(e){13===e.keyCode&&a()}},attrs:{tabindex:"0"}},[e("i",{class:"el-icon-plus"})]):null,f={props:{currentName:o,onTabClick:r,onTabRemove:i,editable:l,type:n,panes:s,stretch:d},ref:"nav"},p=e("div",{class:["el-tabs__header","is-"+c]},[h,e("tab-nav",f)]),m=e("div",{class:"el-tabs__content"},[this.$slots.default]);return e("div",{class:(t={"el-tabs":!0,"el-tabs--card":"card"===n},t["el-tabs--"+c]=!0,t["el-tabs--border-card"]="border-card"===n,t)},["bottom"!==c?[p,m]:[m,p]])},created:function(){this.currentName||this.setCurrentName("0"),this.$on("tab-nav-update",this.calcPaneInstances.bind(null,!0))},mounted:function(){this.calcPaneInstances()},updated:function(){this.calcPaneInstances()}},Bl=Fl,Ll=s(Bl,$l,Pl,!1,null,null,null);Ll.options.__file="packages/tabs/src/tabs.vue";var zl=Ll.exports;zl.install=function(e){e.component(zl.name,zl)};var Rl=zl,Vl=function(){var e=this,t=e.$createElement,n=e._self._c||t;return!e.lazy||e.loaded||e.active?n("div",{directives:[{name:"show",rawName:"v-show",value:e.active,expression:"active"}],staticClass:"el-tab-pane",attrs:{role:"tabpanel","aria-hidden":!e.active,id:"pane-"+e.paneName,"aria-labelledby":"tab-"+e.paneName}},[e._t("default")],2):e._e()},ql=[];Vl._withStripped=!0;var Hl={name:"ElTabPane",componentName:"ElTabPane",props:{label:String,labelContent:Function,name:String,closable:Boolean,disabled:Boolean,lazy:Boolean},data:function(){return{index:null,loaded:!1}},computed:{isClosable:function(){return this.closable||this.$parent.closable},active:function(){var e=this.$parent.currentName===(this.name||this.index);return e&&(this.loaded=!0),e},paneName:function(){return this.name||this.index}},updated:function(){this.$parent.$emit("tab-nav-update")}},Ul=Hl,Wl=s(Ul,Vl,ql,!1,null,null,null);Wl.options.__file="packages/tabs/src/tab-pane.vue";var Yl=Wl.exports;Yl.install=function(e){e.component(Yl.name,Yl)};var Gl,Kl,Xl=Yl,Zl={name:"ElTag",props:{text:String,closable:Boolean,type:String,hit:Boolean,disableTransitions:Boolean,color:String,size:String,effect:{type:String,default:"light",validator:function(e){return-1!==["dark","light","plain"].indexOf(e)}}},methods:{handleClose:function(e){e.stopPropagation(),this.$emit("close",e)},handleClick:function(e){this.$emit("click",e)}},computed:{tagSize:function(){return this.size||(this.$ELEMENT||{}).size}},render:function(e){var t=this.type,n=this.tagSize,r=this.hit,i=this.effect,a=["el-tag",t?"el-tag--"+t:"",n?"el-tag--"+n:"",i?"el-tag--"+i:"",r&&"is-hit"],o=e("span",{class:a,style:{backgroundColor:this.color},on:{click:this.handleClick}},[this.$slots.default,this.closable&&e("i",{class:"el-tag__close el-icon-close",on:{click:this.handleClose}})]);return this.disableTransitions?o:e("transition",{attrs:{name:"el-zoom-in-center"}},[o])}},Jl=Zl,Ql=s(Jl,Gl,Kl,!1,null,null,null);Ql.options.__file="packages/tag/src/tag.vue";var eu=Ql.exports;eu.install=function(e){e.component(eu.name,eu)};var tu=eu,nu=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-tree",class:{"el-tree--highlight-current":e.highlightCurrent,"is-dragging":!!e.dragState.draggingNode,"is-drop-not-allow":!e.dragState.allowDrop,"is-drop-inner":"inner"===e.dragState.dropType},attrs:{role:"tree"}},[e._l(e.root.childNodes,(function(t){return n("el-tree-node",{key:e.getNodeKey(t),attrs:{node:t,props:e.props,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent},on:{"node-expand":e.handleNodeExpand}})})),e.isEmpty?n("div",{staticClass:"el-tree__empty-block"},[n("span",{staticClass:"el-tree__empty-text"},[e._v(e._s(e.emptyText))])]):e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:e.dragState.showDropIndicator,expression:"dragState.showDropIndicator"}],ref:"dropIndicator",staticClass:"el-tree__drop-indicator"})],2)},ru=[];nu._withStripped=!0;var iu="$treeNodeId",au=function(e,t){t&&!t[iu]&&Object.defineProperty(t,iu,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},ou=function(e,t){return e?t[e]:t[iu]},su=function(e,t){var n=e;while(n&&"BODY"!==n.tagName){if(n.__vue__&&n.__vue__.$options.name===t)return n.__vue__;n=n.parentNode}return null},lu=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function uu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var cu=function(e){for(var t=!0,n=!0,r=!0,i=0,a=e.length;i<a;i++){var o=e[i];(!0!==o.checked||o.indeterminate)&&(t=!1,o.disabled||(r=!1)),(!1!==o.checked||o.indeterminate)&&(n=!1)}return{all:t,none:n,allWithoutDisable:r,half:!t&&!n}},du=function e(t){if(0!==t.childNodes.length){var n=cu(t.childNodes),r=n.all,i=n.none,a=n.half;r?(t.checked=!0,t.indeterminate=!1):a?(t.checked=!1,t.indeterminate=!0):i&&(t.checked=!1,t.indeterminate=!1);var o=t.parent;o&&0!==o.level&&(t.store.checkStrictly||e(o))}},hu=function(e,t){var n=e.store.props,r=e.data||{},i=n[t];if("function"===typeof i)return i(r,e);if("string"===typeof i)return r[i];if("undefined"===typeof i){var a=r[t];return void 0===a?"":a}},fu=0,pu=function(){function e(t){for(var n in uu(this,e),this.id=fu++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,t)t.hasOwnProperty(n)&&(this[n]=t[n]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1);var r=this.store;if(!r)throw new Error("[Node]store is required!");r.registerNode(this);var i=r.props;if(i&&"undefined"!==typeof i.isLeaf){var a=hu(this,"isLeaf");"boolean"===typeof a&&(this.isLeafByUser=a)}if(!0!==r.lazy&&this.data?(this.setData(this.data),r.defaultExpandAll&&(this.expanded=!0)):this.level>0&&r.lazy&&r.defaultExpandAll&&this.expand(),Array.isArray(this.data)||au(this,this.data),this.data){var o=r.defaultExpandedKeys,s=r.key;s&&o&&-1!==o.indexOf(this.key)&&this.expand(null,r.autoExpandParent),s&&void 0!==r.currentNodeKey&&this.key===r.currentNodeKey&&(r.currentNode=this,r.currentNode.isCurrent=!0),r.lazy&&r._initDefaultCheckedNode(this),this.updateLeafState()}}return e.prototype.setData=function(e){Array.isArray(e)||au(this,e),this.data=e,this.childNodes=[];var t=void 0;t=0===this.level&&this.data instanceof Array?this.data:hu(this,"children")||[];for(var n=0,r=t.length;n<r;n++)this.insertChild({data:t[n]})},e.prototype.contains=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=function n(r){for(var i=r.childNodes||[],a=!1,o=0,s=i.length;o<s;o++){var l=i[o];if(l===e||t&&n(l)){a=!0;break}}return a};return n(this)},e.prototype.remove=function(){var e=this.parent;e&&e.removeChild(this)},e.prototype.insertChild=function(t,n,r){if(!t)throw new Error("insertChild error: child is required.");if(!(t instanceof e)){if(!r){var i=this.getChildren(!0)||[];-1===i.indexOf(t.data)&&("undefined"===typeof n||n<0?i.push(t.data):i.splice(n,0,t.data))}Nt()(t,{parent:this,store:this.store}),t=new e(t)}t.level=this.level+1,"undefined"===typeof n||n<0?this.childNodes.push(t):this.childNodes.splice(n,0,t),this.updateLeafState()},e.prototype.insertBefore=function(e,t){var n=void 0;t&&(n=this.childNodes.indexOf(t)),this.insertChild(e,n)},e.prototype.insertAfter=function(e,t){var n=void 0;t&&(n=this.childNodes.indexOf(t),-1!==n&&(n+=1)),this.insertChild(e,n)},e.prototype.removeChild=function(e){var t=this.getChildren()||[],n=t.indexOf(e.data);n>-1&&t.splice(n,1);var r=this.childNodes.indexOf(e);r>-1&&(this.store&&this.store.deregisterNode(e),e.parent=null,this.childNodes.splice(r,1)),this.updateLeafState()},e.prototype.removeChildByData=function(e){for(var t=null,n=0;n<this.childNodes.length;n++)if(this.childNodes[n].data===e){t=this.childNodes[n];break}t&&this.removeChild(t)},e.prototype.expand=function(e,t){var n=this,r=function(){if(t){var r=n.parent;while(r.level>0)r.expanded=!0,r=r.parent}n.expanded=!0,e&&e()};this.shouldLoadData()?this.loadData((function(e){e instanceof Array&&(n.checked?n.setChecked(!0,!0):n.store.checkStrictly||du(n),r())})):r()},e.prototype.doCreateChildren=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.forEach((function(e){t.insertChild(Nt()({data:e},n),void 0,!0)}))},e.prototype.collapse=function(){this.expanded=!1},e.prototype.shouldLoadData=function(){return!0===this.store.lazy&&this.store.load&&!this.loaded},e.prototype.updateLeafState=function(){if(!0!==this.store.lazy||!0===this.loaded||"undefined"===typeof this.isLeafByUser){var e=this.childNodes;!this.store.lazy||!0===this.store.lazy&&!0===this.loaded?this.isLeaf=!e||0===e.length:this.isLeaf=!1}else this.isLeaf=this.isLeafByUser},e.prototype.setChecked=function(e,t,n,r){var i=this;if(this.indeterminate="half"===e,this.checked=!0===e,!this.store.checkStrictly){if(!this.shouldLoadData()||this.store.checkDescendants){var a=cu(this.childNodes),o=a.all,s=a.allWithoutDisable;this.isLeaf||o||!s||(this.checked=!1,e=!1);var l=function(){if(t){for(var n=i.childNodes,a=0,o=n.length;a<o;a++){var s=n[a];r=r||!1!==e;var l=s.disabled?s.checked:r;s.setChecked(l,t,!0,r)}var u=cu(n),c=u.half,d=u.all;d||(i.checked=d,i.indeterminate=c)}};if(this.shouldLoadData())return void this.loadData((function(){l(),du(i)}),{checked:!1!==e});l()}var u=this.parent;u&&0!==u.level&&(n||du(u))}},e.prototype.getChildren=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(0===this.level)return this.data;var t=this.data;if(!t)return null;var n=this.store.props,r="children";return n&&(r=n.children||"children"),void 0===t[r]&&(t[r]=null),e&&!t[r]&&(t[r]=[]),t[r]},e.prototype.updateChildren=function(){var e=this,t=this.getChildren()||[],n=this.childNodes.map((function(e){return e.data})),r={},i=[];t.forEach((function(e,t){var a=e[iu],o=!!a&&Object(y["arrayFindIndex"])(n,(function(e){return e[iu]===a}))>=0;o?r[a]={index:t,data:e}:i.push({index:t,data:e})})),this.store.lazy||n.forEach((function(t){r[t[iu]]||e.removeChildByData(t)})),i.forEach((function(t){var n=t.index,r=t.data;e.insertChild({data:r},n)})),this.updateLeafState()},e.prototype.loadData=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!0!==this.store.lazy||!this.store.load||this.loaded||this.loading&&!Object.keys(n).length)e&&e.call(this);else{this.loading=!0;var r=function(r){t.loaded=!0,t.loading=!1,t.childNodes=[],t.doCreateChildren(r,n),t.updateLeafState(),e&&e.call(t,r)};this.store.load(this,r)}},lu(e,[{key:"label",get:function(){return hu(this,"label")}},{key:"key",get:function(){var e=this.store.key;return this.data?this.data[e]:null}},{key:"disabled",get:function(){return hu(this,"disabled")}},{key:"nextSibling",get:function(){var e=this.parent;if(e){var t=e.childNodes.indexOf(this);if(t>-1)return e.childNodes[t+1]}return null}},{key:"previousSibling",get:function(){var e=this.parent;if(e){var t=e.childNodes.indexOf(this);if(t>-1)return t>0?e.childNodes[t-1]:null}return null}}]),e}(),mu=pu,vu="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function gu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var yu=function(){function e(t){var n=this;for(var r in gu(this,e),this.currentNode=null,this.currentNodeKey=null,t)t.hasOwnProperty(r)&&(this[r]=t[r]);if(this.nodesMap={},this.root=new mu({data:this.data,store:this}),this.lazy&&this.load){var i=this.load;i(this.root,(function(e){n.root.doCreateChildren(e),n._initDefaultCheckedNodes()}))}else this._initDefaultCheckedNodes()}return e.prototype.filter=function(e){var t=this.filterNodeMethod,n=this.lazy,r=function r(i){var a=i.root?i.root.childNodes:i.childNodes;if(a.forEach((function(n){n.visible=t.call(n,e,n.data,n),r(n)})),!i.visible&&a.length){var o=!0;o=!a.some((function(e){return e.visible})),i.root?i.root.visible=!1===o:i.visible=!1===o}e&&(!i.visible||i.isLeaf||n||i.expand())};r(this)},e.prototype.setData=function(e){var t=e!==this.root.data;t?(this.root.setData(e),this._initDefaultCheckedNodes()):this.root.updateChildren()},e.prototype.getNode=function(e){if(e instanceof mu)return e;var t="object"!==("undefined"===typeof e?"undefined":vu(e))?e:ou(this.key,e);return this.nodesMap[t]||null},e.prototype.insertBefore=function(e,t){var n=this.getNode(t);n.parent.insertBefore({data:e},n)},e.prototype.insertAfter=function(e,t){var n=this.getNode(t);n.parent.insertAfter({data:e},n)},e.prototype.remove=function(e){var t=this.getNode(e);t&&t.parent&&(t===this.currentNode&&(this.currentNode=null),t.parent.removeChild(t))},e.prototype.append=function(e,t){var n=t?this.getNode(t):this.root;n&&n.insertChild({data:e})},e.prototype._initDefaultCheckedNodes=function(){var e=this,t=this.defaultCheckedKeys||[],n=this.nodesMap;t.forEach((function(t){var r=n[t];r&&r.setChecked(!0,!e.checkStrictly)}))},e.prototype._initDefaultCheckedNode=function(e){var t=this.defaultCheckedKeys||[];-1!==t.indexOf(e.key)&&e.setChecked(!0,!this.checkStrictly)},e.prototype.setDefaultCheckedKey=function(e){e!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=e,this._initDefaultCheckedNodes())},e.prototype.registerNode=function(e){var t=this.key;if(t&&e&&e.data){var n=e.key;void 0!==n&&(this.nodesMap[e.key]=e)}},e.prototype.deregisterNode=function(e){var t=this,n=this.key;n&&e&&e.data&&(e.childNodes.forEach((function(e){t.deregisterNode(e)})),delete this.nodesMap[e.key])},e.prototype.getCheckedNodes=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[],r=function r(i){var a=i.root?i.root.childNodes:i.childNodes;a.forEach((function(i){(i.checked||t&&i.indeterminate)&&(!e||e&&i.isLeaf)&&n.push(i.data),r(i)}))};return r(this),n},e.prototype.getCheckedKeys=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.getCheckedNodes(t).map((function(t){return(t||{})[e.key]}))},e.prototype.getHalfCheckedNodes=function(){var e=[],t=function t(n){var r=n.root?n.root.childNodes:n.childNodes;r.forEach((function(n){n.indeterminate&&e.push(n.data),t(n)}))};return t(this),e},e.prototype.getHalfCheckedKeys=function(){var e=this;return this.getHalfCheckedNodes().map((function(t){return(t||{})[e.key]}))},e.prototype._getAllNodes=function(){var e=[],t=this.nodesMap;for(var n in t)t.hasOwnProperty(n)&&e.push(t[n]);return e},e.prototype.updateChildren=function(e,t){var n=this.nodesMap[e];if(n){for(var r=n.childNodes,i=r.length-1;i>=0;i--){var a=r[i];this.remove(a.data)}for(var o=0,s=t.length;o<s;o++){var l=t[o];this.append(l,n.data)}}},e.prototype._setCheckedKeys=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments[2],r=this._getAllNodes().sort((function(e,t){return t.level-e.level})),i=Object.create(null),a=Object.keys(n);r.forEach((function(e){return e.setChecked(!1,!1)}));for(var o=0,s=r.length;o<s;o++){var l=r[o],u=l.data[e].toString(),c=a.indexOf(u)>-1;if(c){var d=l.parent;while(d&&d.level>0)i[d.data[e]]=!0,d=d.parent;l.isLeaf||this.checkStrictly?l.setChecked(!0,!1):(l.setChecked(!0,!0),t&&function(){l.setChecked(!1,!1);var e=function e(t){var n=t.childNodes;n.forEach((function(t){t.isLeaf||t.setChecked(!1,!1),e(t)}))};e(l)}())}else l.checked&&!i[u]&&l.setChecked(!1,!1)}},e.prototype.setCheckedNodes=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.key,r={};e.forEach((function(e){r[(e||{})[n]]=!0})),this._setCheckedKeys(n,t,r)},e.prototype.setCheckedKeys=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.defaultCheckedKeys=e;var n=this.key,r={};e.forEach((function(e){r[e]=!0})),this._setCheckedKeys(n,t,r)},e.prototype.setDefaultExpandedKeys=function(e){var t=this;e=e||[],this.defaultExpandedKeys=e,e.forEach((function(e){var n=t.getNode(e);n&&n.expand(null,t.autoExpandParent)}))},e.prototype.setChecked=function(e,t,n){var r=this.getNode(e);r&&r.setChecked(!!t,n)},e.prototype.getCurrentNode=function(){return this.currentNode},e.prototype.setCurrentNode=function(e){var t=this.currentNode;t&&(t.isCurrent=!1),this.currentNode=e,this.currentNode.isCurrent=!0},e.prototype.setUserCurrentNode=function(e){var t=e[this.key],n=this.nodesMap[t];this.setCurrentNode(n)},e.prototype.setCurrentNodeKey=function(e){if(null===e||void 0===e)return this.currentNode&&(this.currentNode.isCurrent=!1),void(this.currentNode=null);var t=this.getNode(e);t&&this.setCurrentNode(t)},e}(),bu=yu,xu=function(){var e=this,t=this,n=t.$createElement,r=t._self._c||n;return r("div",{directives:[{name:"show",rawName:"v-show",value:t.node.visible,expression:"node.visible"}],ref:"node",staticClass:"el-tree-node",class:{"is-expanded":t.expanded,"is-current":t.node.isCurrent,"is-hidden":!t.node.visible,"is-focusable":!t.node.disabled,"is-checked":!t.node.disabled&&t.node.checked},attrs:{role:"treeitem",tabindex:"-1","aria-expanded":t.expanded,"aria-disabled":t.node.disabled,"aria-checked":t.node.checked,draggable:t.tree.draggable},on:{click:function(e){return e.stopPropagation(),t.handleClick(e)},contextmenu:function(t){return e.handleContextMenu(t)},dragstart:function(e){return e.stopPropagation(),t.handleDragStart(e)},dragover:function(e){return e.stopPropagation(),t.handleDragOver(e)},dragend:function(e){return e.stopPropagation(),t.handleDragEnd(e)},drop:function(e){return e.stopPropagation(),t.handleDrop(e)}}},[r("div",{staticClass:"el-tree-node__content",style:{"padding-left":(t.node.level-1)*t.tree.indent+"px"}},[r("span",{class:[{"is-leaf":t.node.isLeaf,expanded:!t.node.isLeaf&&t.expanded},"el-tree-node__expand-icon",t.tree.iconClass?t.tree.iconClass:"el-icon-caret-right"],on:{click:function(e){return e.stopPropagation(),t.handleExpandIconClick(e)}}}),t.showCheckbox?r("el-checkbox",{attrs:{indeterminate:t.node.indeterminate,disabled:!!t.node.disabled},on:{change:t.handleCheckChange},nativeOn:{click:function(e){e.stopPropagation()}},model:{value:t.node.checked,callback:function(e){t.$set(t.node,"checked",e)},expression:"node.checked"}}):t._e(),t.node.loading?r("span",{staticClass:"el-tree-node__loading-icon el-icon-loading"}):t._e(),r("node-content",{attrs:{node:t.node}})],1),r("el-collapse-transition",[!t.renderAfterExpand||t.childNodeRendered?r("div",{directives:[{name:"show",rawName:"v-show",value:t.expanded,expression:"expanded"}],staticClass:"el-tree-node__children",attrs:{role:"group","aria-expanded":t.expanded}},t._l(t.node.childNodes,(function(e){return r("el-tree-node",{key:t.getNodeKey(e),attrs:{"render-content":t.renderContent,"render-after-expand":t.renderAfterExpand,"show-checkbox":t.showCheckbox,node:e},on:{"node-expand":t.handleChildNodeExpand}})})),1):t._e()])],1)},wu=[];xu._withStripped=!0;var _u={name:"ElTreeNode",componentName:"ElTreeNode",mixins:[M.a],props:{node:{default:function(){return{}}},props:{},renderContent:Function,renderAfterExpand:{type:Boolean,default:!0},showCheckbox:{type:Boolean,default:!1}},components:{ElCollapseTransition:Ye.a,ElCheckbox:$r.a,NodeContent:{props:{node:{required:!0}},render:function(e){var t=this.$parent,n=t.tree,r=this.node,i=r.data,a=r.store;return t.renderContent?t.renderContent.call(t._renderProxy,e,{_self:n.$vnode.context,node:r,data:i,store:a}):n.$scopedSlots.default?n.$scopedSlots.default({node:r,data:i}):e("span",{class:"el-tree-node__label"},[r.label])}}},data:function(){return{tree:null,expanded:!1,childNodeRendered:!1,oldChecked:null,oldIndeterminate:null}},watch:{"node.indeterminate":function(e){this.handleSelectChange(this.node.checked,e)},"node.checked":function(e){this.handleSelectChange(e,this.node.indeterminate)},"node.expanded":function(e){var t=this;this.$nextTick((function(){return t.expanded=e})),e&&(this.childNodeRendered=!0)}},methods:{getNodeKey:function(e){return ou(this.tree.nodeKey,e.data)},handleSelectChange:function(e,t){this.oldChecked!==e&&this.oldIndeterminate!==t&&this.tree.$emit("check-change",this.node.data,e,t),this.oldChecked=e,this.indeterminate=t},handleClick:function(){var e=this.tree.store;e.setCurrentNode(this.node),this.tree.$emit("current-change",e.currentNode?e.currentNode.data:null,e.currentNode),this.tree.currentNode=this,this.tree.expandOnClickNode&&this.handleExpandIconClick(),this.tree.checkOnClickNode&&!this.node.disabled&&this.handleCheckChange(null,{target:{checked:!this.node.checked}}),this.tree.$emit("node-click",this.node.data,this.node,this)},handleContextMenu:function(e){this.tree._events["node-contextmenu"]&&this.tree._events["node-contextmenu"].length>0&&(e.stopPropagation(),e.preventDefault()),this.tree.$emit("node-contextmenu",e,this.node.data,this.node,this)},handleExpandIconClick:function(){this.node.isLeaf||(this.expanded?(this.tree.$emit("node-collapse",this.node.data,this.node,this),this.node.collapse()):(this.node.expand(),this.$emit("node-expand",this.node.data,this.node,this)))},handleCheckChange:function(e,t){var n=this;this.node.setChecked(t.target.checked,!this.tree.checkStrictly),this.$nextTick((function(){var e=n.tree.store;n.tree.$emit("check",n.node.data,{checkedNodes:e.getCheckedNodes(),checkedKeys:e.getCheckedKeys(),halfCheckedNodes:e.getHalfCheckedNodes(),halfCheckedKeys:e.getHalfCheckedKeys()})}))},handleChildNodeExpand:function(e,t,n){this.broadcast("ElTreeNode","tree-node-expand",t),this.tree.$emit("node-expand",e,t,n)},handleDragStart:function(e){this.tree.draggable&&this.tree.$emit("tree-node-drag-start",e,this)},handleDragOver:function(e){this.tree.draggable&&(this.tree.$emit("tree-node-drag-over",e,this),e.preventDefault())},handleDrop:function(e){e.preventDefault()},handleDragEnd:function(e){this.tree.draggable&&this.tree.$emit("tree-node-drag-end",e,this)}},created:function(){var e=this,t=this.$parent;t.isTree?this.tree=t:this.tree=t.tree;var n=this.tree;n||console.warn("Can not find node's tree.");var r=n.props||{},i=r["children"]||"children";this.$watch("node.data."+i,(function(){e.node.updateChildren()})),this.node.expanded&&(this.expanded=!0,this.childNodeRendered=!0),this.tree.accordion&&this.$on("tree-node-expand",(function(t){e.node!==t&&e.node.collapse()}))}},Cu=_u,Su=s(Cu,xu,wu,!1,null,null,null);Su.options.__file="packages/tree/src/tree-node.vue";var Nu=Su.exports,ku={name:"ElTree",mixins:[M.a],components:{ElTreeNode:Nu},data:function(){return{store:null,root:null,currentNode:null,treeItems:null,checkboxItems:[],dragState:{showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0}}},props:{data:{type:Array},emptyText:{type:String,default:function(){return Object(vs["t"])("el.tree.emptyText")}},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{default:function(){return{children:"children",label:"label",disabled:"disabled"}}},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},iconClass:String},computed:{children:{set:function(e){this.data=e},get:function(){return this.data}},treeItemArray:function(){return Array.prototype.slice.call(this.treeItems)},isEmpty:function(){var e=this.root.childNodes;return!e||0===e.length||e.every((function(e){var t=e.visible;return!t}))}},watch:{defaultCheckedKeys:function(e){this.store.setDefaultCheckedKey(e)},defaultExpandedKeys:function(e){this.store.defaultExpandedKeys=e,this.store.setDefaultExpandedKeys(e)},data:function(e){this.store.setData(e)},checkboxItems:function(e){Array.prototype.forEach.call(e,(function(e){e.setAttribute("tabindex",-1)}))},checkStrictly:function(e){this.store.checkStrictly=e}},methods:{filter:function(e){if(!this.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");this.store.filter(e)},getNodeKey:function(e){return ou(this.nodeKey,e.data)},getNodePath:function(e){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");var t=this.store.getNode(e);if(!t)return[];var n=[t.data],r=t.parent;while(r&&r!==this.root)n.push(r.data),r=r.parent;return n.reverse()},getCheckedNodes:function(e,t){return this.store.getCheckedNodes(e,t)},getCheckedKeys:function(e){return this.store.getCheckedKeys(e)},getCurrentNode:function(){var e=this.store.getCurrentNode();return e?e.data:null},getCurrentKey:function(){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");var e=this.getCurrentNode();return e?e[this.nodeKey]:null},setCheckedNodes:function(e,t){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");this.store.setCheckedNodes(e,t)},setCheckedKeys:function(e,t){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");this.store.setCheckedKeys(e,t)},setChecked:function(e,t,n){this.store.setChecked(e,t,n)},getHalfCheckedNodes:function(){return this.store.getHalfCheckedNodes()},getHalfCheckedKeys:function(){return this.store.getHalfCheckedKeys()},setCurrentNode:function(e){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");this.store.setUserCurrentNode(e)},setCurrentKey:function(e){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");this.store.setCurrentNodeKey(e)},getNode:function(e){return this.store.getNode(e)},remove:function(e){this.store.remove(e)},append:function(e,t){this.store.append(e,t)},insertBefore:function(e,t){this.store.insertBefore(e,t)},insertAfter:function(e,t){this.store.insertAfter(e,t)},handleNodeExpand:function(e,t,n){this.broadcast("ElTreeNode","tree-node-expand",t),this.$emit("node-expand",e,t,n)},updateKeyChildren:function(e,t){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");this.store.updateChildren(e,t)},initTabIndex:function(){this.treeItems=this.$el.querySelectorAll(".is-focusable[role=treeitem]"),this.checkboxItems=this.$el.querySelectorAll("input[type=checkbox]");var e=this.$el.querySelectorAll(".is-checked[role=treeitem]");e.length?e[0].setAttribute("tabindex",0):this.treeItems[0]&&this.treeItems[0].setAttribute("tabindex",0)},handleKeydown:function(e){var t=e.target;if(-1!==t.className.indexOf("el-tree-node")){var n=e.keyCode;this.treeItems=this.$el.querySelectorAll(".is-focusable[role=treeitem]");var r=this.treeItemArray.indexOf(t),i=void 0;[38,40].indexOf(n)>-1&&(e.preventDefault(),i=38===n?0!==r?r-1:0:r<this.treeItemArray.length-1?r+1:0,this.treeItemArray[i].focus()),[37,39].indexOf(n)>-1&&(e.preventDefault(),t.click());var a=t.querySelector('[type="checkbox"]');[13,32].indexOf(n)>-1&&a&&(e.preventDefault(),a.click())}}},created:function(){var e=this;this.isTree=!0,this.store=new bu({key:this.nodeKey,data:this.data,lazy:this.lazy,props:this.props,load:this.load,currentNodeKey:this.currentNodeKey,checkStrictly:this.checkStrictly,checkDescendants:this.checkDescendants,defaultCheckedKeys:this.defaultCheckedKeys,defaultExpandedKeys:this.defaultExpandedKeys,autoExpandParent:this.autoExpandParent,defaultExpandAll:this.defaultExpandAll,filterNodeMethod:this.filterNodeMethod}),this.root=this.store.root;var t=this.dragState;this.$on("tree-node-drag-start",(function(n,r){if("function"===typeof e.allowDrag&&!e.allowDrag(r.node))return n.preventDefault(),!1;n.dataTransfer.effectAllowed="move";try{n.dataTransfer.setData("text/plain","")}catch(i){}t.draggingNode=r,e.$emit("node-drag-start",r.node,n)})),this.$on("tree-node-drag-over",(function(n,r){var i=su(n.target,"ElTreeNode"),a=t.dropNode;a&&a!==i&&Object(Be["removeClass"])(a.$el,"is-drop-inner");var o=t.draggingNode;if(o&&i){var s=!0,l=!0,u=!0,c=!0;"function"===typeof e.allowDrop&&(s=e.allowDrop(o.node,i.node,"prev"),c=l=e.allowDrop(o.node,i.node,"inner"),u=e.allowDrop(o.node,i.node,"next")),n.dataTransfer.dropEffect=l?"move":"none",(s||l||u)&&a!==i&&(a&&e.$emit("node-drag-leave",o.node,a.node,n),e.$emit("node-drag-enter",o.node,i.node,n)),(s||l||u)&&(t.dropNode=i),i.node.nextSibling===o.node&&(u=!1),i.node.previousSibling===o.node&&(s=!1),i.node.contains(o.node,!1)&&(l=!1),(o.node===i.node||o.node.contains(i.node))&&(s=!1,l=!1,u=!1);var d=i.$el.getBoundingClientRect(),h=e.$el.getBoundingClientRect(),f=void 0,p=s?l?.25:u?.45:1:-1,m=u?l?.75:s?.55:0:1,v=-9999,g=n.clientY-d.top;f=g<d.height*p?"before":g>d.height*m?"after":l?"inner":"none";var y=i.$el.querySelector(".el-tree-node__expand-icon").getBoundingClientRect(),b=e.$refs.dropIndicator;"before"===f?v=y.top-h.top:"after"===f&&(v=y.bottom-h.top),b.style.top=v+"px",b.style.left=y.right-h.left+"px","inner"===f?Object(Be["addClass"])(i.$el,"is-drop-inner"):Object(Be["removeClass"])(i.$el,"is-drop-inner"),t.showDropIndicator="before"===f||"after"===f,t.allowDrop=t.showDropIndicator||c,t.dropType=f,e.$emit("node-drag-over",o.node,i.node,n)}})),this.$on("tree-node-drag-end",(function(n){var r=t.draggingNode,i=t.dropType,a=t.dropNode;if(n.preventDefault(),n.dataTransfer.dropEffect="move",r&&a){var o={data:r.node.data};"none"!==i&&r.node.remove(),"before"===i?a.node.parent.insertBefore(o,a.node):"after"===i?a.node.parent.insertAfter(o,a.node):"inner"===i&&a.node.insertChild(o),"none"!==i&&e.store.registerNode(o),Object(Be["removeClass"])(a.$el,"is-drop-inner"),e.$emit("node-drag-end",r.node,a.node,i,n),"none"!==i&&e.$emit("node-drop",r.node,a.node,i,n)}r&&!a&&e.$emit("node-drag-end",r.node,null,i,n),t.showDropIndicator=!1,t.draggingNode=null,t.dropNode=null,t.allowDrop=!0}))},mounted:function(){this.initTabIndex(),this.$el.addEventListener("keydown",this.handleKeydown)},updated:function(){this.treeItems=this.$el.querySelectorAll("[role=treeitem]"),this.checkboxItems=this.$el.querySelectorAll("input[type=checkbox]")}},Eu=ku,Mu=s(Eu,nu,ru,!1,null,null,null);Mu.options.__file="packages/tree/src/tree.vue";var Ou=Mu.exports;Ou.install=function(e){e.component(Ou.name,Ou)};var Du=Ou,Tu=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-alert-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-alert",class:[e.typeClass,e.center?"is-center":"","is-"+e.effect],attrs:{role:"alert"}},[e.showIcon?n("i",{staticClass:"el-alert__icon",class:[e.iconClass,e.isBigIcon]}):e._e(),n("div",{staticClass:"el-alert__content"},[e.title||e.$slots.title?n("span",{staticClass:"el-alert__title",class:[e.isBoldTitle]},[e._t("title",[e._v(e._s(e.title))])],2):e._e(),e.$slots.default&&!e.description?n("p",{staticClass:"el-alert__description"},[e._t("default")],2):e._e(),e.description&&!e.$slots.default?n("p",{staticClass:"el-alert__description"},[e._v(e._s(e.description))]):e._e(),n("i",{directives:[{name:"show",rawName:"v-show",value:e.closable,expression:"closable"}],staticClass:"el-alert__closebtn",class:{"is-customed":""!==e.closeText,"el-icon-close":""===e.closeText},on:{click:function(t){e.close()}}},[e._v(e._s(e.closeText))])])])])},Au=[];Tu._withStripped=!0;var Iu={success:"el-icon-success",warning:"el-icon-warning",error:"el-icon-error"},$u={name:"ElAlert",props:{title:{type:String,default:""},description:{type:String,default:""},type:{type:String,default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,default:"light",validator:function(e){return-1!==["light","dark"].indexOf(e)}}},data:function(){return{visible:!0}},methods:{close:function(){this.visible=!1,this.$emit("close")}},computed:{typeClass:function(){return"el-alert--"+this.type},iconClass:function(){return Iu[this.type]||"el-icon-info"},isBigIcon:function(){return this.description||this.$slots.default?"is-big":""},isBoldTitle:function(){return this.description||this.$slots.default?"is-bold":""}}},Pu=$u,ju=s(Pu,Tu,Au,!1,null,null,null);ju.options.__file="packages/alert/src/main.vue";var Fu=ju.exports;Fu.install=function(e){e.component(Fu.name,Fu)};var Bu=Fu,Lu=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-notification-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],class:["el-notification",e.customClass,e.horizontalClass],style:e.positionStyle,attrs:{role:"alert"},on:{mouseenter:function(t){e.clearTimer()},mouseleave:function(t){e.startTimer()},click:e.click}},[e.type||e.iconClass?n("i",{staticClass:"el-notification__icon",class:[e.typeClass,e.iconClass]}):e._e(),n("div",{staticClass:"el-notification__group",class:{"is-with-icon":e.typeClass||e.iconClass}},[n("h2",{staticClass:"el-notification__title",domProps:{textContent:e._s(e.title)}}),n("div",{directives:[{name:"show",rawName:"v-show",value:e.message,expression:"message"}],staticClass:"el-notification__content"},[e._t("default",[e.dangerouslyUseHTMLString?n("p",{domProps:{innerHTML:e._s(e.message)}}):n("p",[e._v(e._s(e.message))])])],2),e.showClose?n("div",{staticClass:"el-notification__closeBtn el-icon-close",on:{click:function(t){return t.stopPropagation(),e.close(t)}}}):e._e()])])])},zu=[];Lu._withStripped=!0;var Ru={success:"success",info:"info",warning:"warning",error:"error"},Vu={data:function(){return{visible:!1,title:"",message:"",duration:4500,type:"",showClose:!0,customClass:"",iconClass:"",onClose:null,onClick:null,closed:!1,verticalOffset:0,timer:null,dangerouslyUseHTMLString:!1,position:"top-right"}},computed:{typeClass:function(){return this.type&&Ru[this.type]?"el-icon-"+Ru[this.type]:""},horizontalClass:function(){return this.position.indexOf("right")>-1?"right":"left"},verticalProperty:function(){return/^top-/.test(this.position)?"top":"bottom"},positionStyle:function(){var e;return e={},e[this.verticalProperty]=this.verticalOffset+"px",e}},watch:{closed:function(e){e&&(this.visible=!1,this.$el.addEventListener("transitionend",this.destroyElement))}},methods:{destroyElement:function(){this.$el.removeEventListener("transitionend",this.destroyElement),this.$destroy(!0),this.$el.parentNode.removeChild(this.$el)},click:function(){"function"===typeof this.onClick&&this.onClick()},close:function(){this.closed=!0,"function"===typeof this.onClose&&this.onClose()},clearTimer:function(){clearTimeout(this.timer)},startTimer:function(){var e=this;this.duration>0&&(this.timer=setTimeout((function(){e.closed||e.close()}),this.duration))},keydown:function(e){46===e.keyCode||8===e.keyCode?this.clearTimer():27===e.keyCode?this.closed||this.close():this.startTimer()}},mounted:function(){var e=this;this.duration>0&&(this.timer=setTimeout((function(){e.closed||e.close()}),this.duration)),document.addEventListener("keydown",this.keydown)},beforeDestroy:function(){document.removeEventListener("keydown",this.keydown)}},qu=Vu,Hu=s(qu,Lu,zu,!1,null,null,null);Hu.options.__file="packages/notification/src/main.vue";var Uu=Hu.exports,Wu=Vr.a.extend(Uu),Yu=void 0,Gu=[],Ku=1,Xu=function e(t){if(!Vr.a.prototype.$isServer){t=Nt()({},t);var n=t.onClose,r="notification_"+Ku++,i=t.position||"top-right";t.onClose=function(){e.close(r,n)},Yu=new Wu({data:t}),Object(ks["isVNode"])(t.message)&&(Yu.$slots.default=[t.message],t.message="REPLACED_BY_VNODE"),Yu.id=r,Yu.$mount(),document.body.appendChild(Yu.$el),Yu.visible=!0,Yu.dom=Yu.$el,Yu.dom.style.zIndex=C["PopupManager"].nextZIndex();var a=t.offset||0;return Gu.filter((function(e){return e.position===i})).forEach((function(e){a+=e.$el.offsetHeight+16})),a+=16,Yu.verticalOffset=a,Gu.push(Yu),Yu}};["success","warning","info","error"].forEach((function(e){Xu[e]=function(t){return("string"===typeof t||Object(ks["isVNode"])(t))&&(t={message:t}),t.type=e,Xu(t)}})),Xu.close=function(e,t){var n=-1,r=Gu.length,i=Gu.filter((function(t,r){return t.id===e&&(n=r,!0)}))[0];if(i&&("function"===typeof t&&t(i),Gu.splice(n,1),!(r<=1)))for(var a=i.position,o=i.dom.offsetHeight,s=n;s<r-1;s++)Gu[s].position===a&&(Gu[s].dom.style[i.verticalProperty]=parseInt(Gu[s].dom.style[i.verticalProperty],10)-o-16+"px")},Xu.closeAll=function(){for(var e=Gu.length-1;e>=0;e--)Gu[e].close()};var Zu=Xu,Ju=Zu,Qu=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-slider",class:{"is-vertical":e.vertical,"el-slider--with-input":e.showInput},attrs:{role:"slider","aria-valuemin":e.min,"aria-valuemax":e.max,"aria-orientation":e.vertical?"vertical":"horizontal","aria-disabled":e.sliderDisabled}},[e.showInput&&!e.range?n("el-input-number",{ref:"input",staticClass:"el-slider__input",attrs:{step:e.step,disabled:e.sliderDisabled,controls:e.showInputControls,min:e.min,max:e.max,debounce:e.debounce,size:e.inputSize},on:{change:e.emitChange},model:{value:e.firstValue,callback:function(t){e.firstValue=t},expression:"firstValue"}}):e._e(),n("div",{ref:"slider",staticClass:"el-slider__runway",class:{"show-input":e.showInput,disabled:e.sliderDisabled},style:e.runwayStyle,on:{click:e.onSliderClick}},[n("div",{staticClass:"el-slider__bar",style:e.barStyle}),n("slider-button",{ref:"button1",attrs:{vertical:e.vertical,"tooltip-class":e.tooltipClass},model:{value:e.firstValue,callback:function(t){e.firstValue=t},expression:"firstValue"}}),e.range?n("slider-button",{ref:"button2",attrs:{vertical:e.vertical,"tooltip-class":e.tooltipClass},model:{value:e.secondValue,callback:function(t){e.secondValue=t},expression:"secondValue"}}):e._e(),e._l(e.stops,(function(t,r){return e.showStops?n("div",{key:r,staticClass:"el-slider__stop",style:e.getStopStyle(t)}):e._e()})),e.markList.length>0?[n("div",e._l(e.markList,(function(t,r){return n("div",{key:r,staticClass:"el-slider__stop el-slider__marks-stop",style:e.getStopStyle(t.position)})})),0),n("div",{staticClass:"el-slider__marks"},e._l(e.markList,(function(t,r){return n("slider-marker",{key:r,style:e.getStopStyle(t.position),attrs:{mark:t.mark}})})),1)]:e._e()],2)],1)},ec=[];Qu._withStripped=!0;var tc=n(41),nc=n.n(tc),rc=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"button",staticClass:"el-slider__button-wrapper",class:{hover:e.hovering,dragging:e.dragging},style:e.wrapperStyle,attrs:{tabindex:"0"},on:{mouseenter:e.handleMouseEnter,mouseleave:e.handleMouseLeave,mousedown:e.onButtonDown,touchstart:e.onButtonDown,focus:e.handleMouseEnter,blur:e.handleMouseLeave,keydown:[function(t){return!("button"in t)&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:e.onLeftKeyDown(t)},function(t){return!("button"in t)&&e._k(t.keyCode,"right",39,t.key,["Right","ArrowRight"])||"button"in t&&2!==t.button?null:e.onRightKeyDown(t)},function(t){return!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.preventDefault(),e.onLeftKeyDown(t))},function(t){return!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.preventDefault(),e.onRightKeyDown(t))}]}},[n("el-tooltip",{ref:"tooltip",attrs:{placement:"top","popper-class":e.tooltipClass,disabled:!e.showTooltip}},[n("span",{attrs:{slot:"content"},slot:"content"},[e._v(e._s(e.formatValue))]),n("div",{staticClass:"el-slider__button",class:{hover:e.hovering,dragging:e.dragging}})])],1)},ic=[];rc._withStripped=!0;var ac={name:"ElSliderButton",components:{ElTooltip:it.a},props:{value:{type:Number,default:0},vertical:{type:Boolean,default:!1},tooltipClass:String},data:function(){return{hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:null,oldValue:this.value}},computed:{disabled:function(){return this.$parent.sliderDisabled},max:function(){return this.$parent.max},min:function(){return this.$parent.min},step:function(){return this.$parent.step},showTooltip:function(){return this.$parent.showTooltip},precision:function(){return this.$parent.precision},currentPosition:function(){return(this.value-this.min)/(this.max-this.min)*100+"%"},enableFormat:function(){return this.$parent.formatTooltip instanceof Function},formatValue:function(){return this.enableFormat&&this.$parent.formatTooltip(this.value)||this.value},wrapperStyle:function(){return this.vertical?{bottom:this.currentPosition}:{left:this.currentPosition}}},watch:{dragging:function(e){this.$parent.dragging=e}},methods:{displayTooltip:function(){this.$refs.tooltip&&(this.$refs.tooltip.showPopper=!0)},hideTooltip:function(){this.$refs.tooltip&&(this.$refs.tooltip.showPopper=!1)},handleMouseEnter:function(){this.hovering=!0,this.displayTooltip()},handleMouseLeave:function(){this.hovering=!1,this.hideTooltip()},onButtonDown:function(e){this.disabled||(e.preventDefault(),this.onDragStart(e),window.addEventListener("mousemove",this.onDragging),window.addEventListener("touchmove",this.onDragging),window.addEventListener("mouseup",this.onDragEnd),window.addEventListener("touchend",this.onDragEnd),window.addEventListener("contextmenu",this.onDragEnd))},onLeftKeyDown:function(){this.disabled||(this.newPosition=parseFloat(this.currentPosition)-this.step/(this.max-this.min)*100,this.setPosition(this.newPosition),this.$parent.emitChange())},onRightKeyDown:function(){this.disabled||(this.newPosition=parseFloat(this.currentPosition)+this.step/(this.max-this.min)*100,this.setPosition(this.newPosition),this.$parent.emitChange())},onDragStart:function(e){this.dragging=!0,this.isClick=!0,"touchstart"===e.type&&(e.clientY=e.touches[0].clientY,e.clientX=e.touches[0].clientX),this.vertical?this.startY=e.clientY:this.startX=e.clientX,this.startPosition=parseFloat(this.currentPosition),this.newPosition=this.startPosition},onDragging:function(e){if(this.dragging){this.isClick=!1,this.displayTooltip(),this.$parent.resetSize();var t=0;"touchmove"===e.type&&(e.clientY=e.touches[0].clientY,e.clientX=e.touches[0].clientX),this.vertical?(this.currentY=e.clientY,t=(this.startY-this.currentY)/this.$parent.sliderSize*100):(this.currentX=e.clientX,t=(this.currentX-this.startX)/this.$parent.sliderSize*100),this.newPosition=this.startPosition+t,this.setPosition(this.newPosition)}},onDragEnd:function(){var e=this;this.dragging&&(setTimeout((function(){e.dragging=!1,e.hideTooltip(),e.isClick||(e.setPosition(e.newPosition),e.$parent.emitChange())}),0),window.removeEventListener("mousemove",this.onDragging),window.removeEventListener("touchmove",this.onDragging),window.removeEventListener("mouseup",this.onDragEnd),window.removeEventListener("touchend",this.onDragEnd),window.removeEventListener("contextmenu",this.onDragEnd))},setPosition:function(e){var t=this;if(null!==e&&!isNaN(e)){e<0?e=0:e>100&&(e=100);var n=100/((this.max-this.min)/this.step),r=Math.round(e/n),i=r*n*(this.max-this.min)*.01+this.min;i=parseFloat(i.toFixed(this.precision)),this.$emit("input",i),this.$nextTick((function(){t.displayTooltip(),t.$refs.tooltip&&t.$refs.tooltip.updatePopper()})),this.dragging||this.value===this.oldValue||(this.oldValue=this.value)}}}},oc=ac,sc=s(oc,rc,ic,!1,null,null,null);sc.options.__file="packages/slider/src/button.vue";var lc=sc.exports,uc={name:"ElMarker",props:{mark:{type:[String,Object]}},render:function(){var e=arguments[0],t="string"===typeof this.mark?this.mark:this.mark.label;return e("div",{class:"el-slider__marks-text",style:this.mark.style||{}},[t])}},cc={name:"ElSlider",mixins:[M.a],inject:{elForm:{default:""}},props:{min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},value:{type:[Number,Array],default:0},showInput:{type:Boolean,default:!1},showInputControls:{type:Boolean,default:!0},inputSize:{type:String,default:"small"},showStops:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:!0},formatTooltip:Function,disabled:{type:Boolean,default:!1},range:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1},height:{type:String},debounce:{type:Number,default:300},label:{type:String},tooltipClass:String,marks:Object},components:{ElInputNumber:nc.a,SliderButton:lc,SliderMarker:uc},data:function(){return{firstValue:null,secondValue:null,oldValue:null,dragging:!1,sliderSize:1}},watch:{value:function(e,t){this.dragging||Array.isArray(e)&&Array.isArray(t)&&e.every((function(e,n){return e===t[n]}))||this.setValues()},dragging:function(e){e||this.setValues()},firstValue:function(e){this.range?this.$emit("input",[this.minValue,this.maxValue]):this.$emit("input",e)},secondValue:function(){this.range&&this.$emit("input",[this.minValue,this.maxValue])},min:function(){this.setValues()},max:function(){this.setValues()}},methods:{valueChanged:function(){var e=this;return this.range?![this.minValue,this.maxValue].every((function(t,n){return t===e.oldValue[n]})):this.value!==this.oldValue},setValues:function(){if(this.min>this.max)console.error("[Element Error][Slider]min should not be greater than max.");else{var e=this.value;this.range&&Array.isArray(e)?e[1]<this.min?this.$emit("input",[this.min,this.min]):e[0]>this.max?this.$emit("input",[this.max,this.max]):e[0]<this.min?this.$emit("input",[this.min,e[1]]):e[1]>this.max?this.$emit("input",[e[0],this.max]):(this.firstValue=e[0],this.secondValue=e[1],this.valueChanged()&&(this.dispatch("ElFormItem","el.form.change",[this.minValue,this.maxValue]),this.oldValue=e.slice())):this.range||"number"!==typeof e||isNaN(e)||(e<this.min?this.$emit("input",this.min):e>this.max?this.$emit("input",this.max):(this.firstValue=e,this.valueChanged()&&(this.dispatch("ElFormItem","el.form.change",e),this.oldValue=e)))}},setPosition:function(e){var t=this.min+e*(this.max-this.min)/100;if(this.range){var n=void 0;n=Math.abs(this.minValue-t)<Math.abs(this.maxValue-t)?this.firstValue<this.secondValue?"button1":"button2":this.firstValue>this.secondValue?"button1":"button2",this.$refs[n].setPosition(e)}else this.$refs.button1.setPosition(e)},onSliderClick:function(e){if(!this.sliderDisabled&&!this.dragging){if(this.resetSize(),this.vertical){var t=this.$refs.slider.getBoundingClientRect().bottom;this.setPosition((t-e.clientY)/this.sliderSize*100)}else{var n=this.$refs.slider.getBoundingClientRect().left;this.setPosition((e.clientX-n)/this.sliderSize*100)}this.emitChange()}},resetSize:function(){this.$refs.slider&&(this.sliderSize=this.$refs.slider["client"+(this.vertical?"Height":"Width")])},emitChange:function(){var e=this;this.$nextTick((function(){e.$emit("change",e.range?[e.minValue,e.maxValue]:e.value)}))},getStopStyle:function(e){return this.vertical?{bottom:e+"%"}:{left:e+"%"}}},computed:{stops:function(){var e=this;if(!this.showStops||this.min>this.max)return[];if(0===this.step)return[];for(var t=(this.max-this.min)/this.step,n=100*this.step/(this.max-this.min),r=[],i=1;i<t;i++)r.push(i*n);return this.range?r.filter((function(t){return t<100*(e.minValue-e.min)/(e.max-e.min)||t>100*(e.maxValue-e.min)/(e.max-e.min)})):r.filter((function(t){return t>100*(e.firstValue-e.min)/(e.max-e.min)}))},markList:function(){var e=this;if(!this.marks)return[];var t=Object.keys(this.marks);return t.map(parseFloat).sort((function(e,t){return e-t})).filter((function(t){return t<=e.max&&t>=e.min})).map((function(t){return{point:t,position:100*(t-e.min)/(e.max-e.min),mark:e.marks[t]}}))},minValue:function(){return Math.min(this.firstValue,this.secondValue)},maxValue:function(){return Math.max(this.firstValue,this.secondValue)},barSize:function(){return this.range?100*(this.maxValue-this.minValue)/(this.max-this.min)+"%":100*(this.firstValue-this.min)/(this.max-this.min)+"%"},barStart:function(){return this.range?100*(this.minValue-this.min)/(this.max-this.min)+"%":"0%"},precision:function(){var e=[this.min,this.max,this.step].map((function(e){var t=(""+e).split(".")[1];return t?t.length:0}));return Math.max.apply(null,e)},runwayStyle:function(){return this.vertical?{height:this.height}:{}},barStyle:function(){return this.vertical?{height:this.barSize,bottom:this.barStart}:{width:this.barSize,left:this.barStart}},sliderDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},mounted:function(){var e=void 0;this.range?(Array.isArray(this.value)?(this.firstValue=Math.max(this.min,this.value[0]),this.secondValue=Math.min(this.max,this.value[1])):(this.firstValue=this.min,this.secondValue=this.max),this.oldValue=[this.firstValue,this.secondValue],e=this.firstValue+"-"+this.secondValue):("number"!==typeof this.value||isNaN(this.value)?this.firstValue=this.min:this.firstValue=Math.min(this.max,Math.max(this.min,this.value)),this.oldValue=this.firstValue,e=this.firstValue),this.$el.setAttribute("aria-valuetext",e),this.$el.setAttribute("aria-label",this.label?this.label:"slider between "+this.min+" and "+this.max),this.resetSize(),window.addEventListener("resize",this.resetSize)},beforeDestroy:function(){window.removeEventListener("resize",this.resetSize)}},dc=cc,hc=s(dc,Qu,ec,!1,null,null,null);hc.options.__file="packages/slider/src/main.vue";var fc=hc.exports;fc.install=function(e){e.component(fc.name,fc)};var pc=fc,mc=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-loading-fade"},on:{"after-leave":e.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-loading-mask",class:[e.customClass,{"is-fullscreen":e.fullscreen}],style:{backgroundColor:e.background||""}},[n("div",{staticClass:"el-loading-spinner"},[e.spinner?n("i",{class:e.spinner}):n("svg",{staticClass:"circular",attrs:{viewBox:"25 25 50 50"}},[n("circle",{staticClass:"path",attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})]),e.text?n("p",{staticClass:"el-loading-text"},[e._v(e._s(e.text))]):e._e()])])])},vc=[];mc._withStripped=!0;var gc={data:function(){return{text:null,spinner:null,background:null,fullscreen:!0,visible:!1,customClass:""}},methods:{handleAfterLeave:function(){this.$emit("after-leave")},setText:function(e){this.text=e}}},yc=gc,bc=s(yc,mc,vc,!1,null,null,null);bc.options.__file="packages/loading/src/loading.vue";var xc=bc.exports,wc=n(32),_c=n.n(wc),Cc=Vr.a.extend(xc),Sc={install:function(e){if(!e.prototype.$isServer){var t=function(t,r){r.value?e.nextTick((function(){r.modifiers.fullscreen?(t.originalPosition=Object(Be["getStyle"])(document.body,"position"),t.originalOverflow=Object(Be["getStyle"])(document.body,"overflow"),t.maskStyle.zIndex=C["PopupManager"].nextZIndex(),Object(Be["addClass"])(t.mask,"is-fullscreen"),n(document.body,t,r)):(Object(Be["removeClass"])(t.mask,"is-fullscreen"),r.modifiers.body?(t.originalPosition=Object(Be["getStyle"])(document.body,"position"),["top","left"].forEach((function(e){var n="top"===e?"scrollTop":"scrollLeft";t.maskStyle[e]=t.getBoundingClientRect()[e]+document.body[n]+document.documentElement[n]-parseInt(Object(Be["getStyle"])(document.body,"margin-"+e),10)+"px"})),["height","width"].forEach((function(e){t.maskStyle[e]=t.getBoundingClientRect()[e]+"px"})),n(document.body,t,r)):(t.originalPosition=Object(Be["getStyle"])(t,"position"),n(t,t,r)))})):(_c()(t.instance,(function(e){if(t.instance.hiding){t.domVisible=!1;var n=r.modifiers.fullscreen||r.modifiers.body?document.body:t;Object(Be["removeClass"])(n,"el-loading-parent--relative"),Object(Be["removeClass"])(n,"el-loading-parent--hidden"),t.instance.hiding=!1}}),300,!0),t.instance.visible=!1,t.instance.hiding=!0)},n=function(t,n,r){n.domVisible||"none"===Object(Be["getStyle"])(n,"display")||"hidden"===Object(Be["getStyle"])(n,"visibility")?n.domVisible&&!0===n.instance.hiding&&(n.instance.visible=!0,n.instance.hiding=!1):(Object.keys(n.maskStyle).forEach((function(e){n.mask.style[e]=n.maskStyle[e]})),"absolute"!==n.originalPosition&&"fixed"!==n.originalPosition&&Object(Be["addClass"])(t,"el-loading-parent--relative"),r.modifiers.fullscreen&&r.modifiers.lock&&Object(Be["addClass"])(t,"el-loading-parent--hidden"),n.domVisible=!0,t.appendChild(n.mask),e.nextTick((function(){n.instance.hiding?n.instance.$emit("after-leave"):n.instance.visible=!0})),n.domInserted=!0)};e.directive("loading",{bind:function(e,n,r){var i=e.getAttribute("element-loading-text"),a=e.getAttribute("element-loading-spinner"),o=e.getAttribute("element-loading-background"),s=e.getAttribute("element-loading-custom-class"),l=r.context,u=new Cc({el:document.createElement("div"),data:{text:l&&l[i]||i,spinner:l&&l[a]||a,background:l&&l[o]||o,customClass:l&&l[s]||s,fullscreen:!!n.modifiers.fullscreen}});e.instance=u,e.mask=u.$el,e.maskStyle={},n.value&&t(e,n)},update:function(e,n){e.instance.setText(e.getAttribute("element-loading-text")),n.oldValue!==n.value&&t(e,n)},unbind:function(e,n){e.domInserted&&(e.mask&&e.mask.parentNode&&e.mask.parentNode.removeChild(e.mask),t(e,{value:!1,modifiers:n.modifiers})),e.instance&&e.instance.$destroy()}})}}},Nc=Sc,kc=Vr.a.extend(xc),Ec={text:null,fullscreen:!0,body:!1,lock:!1,customClass:""},Mc=void 0;kc.prototype.originalPosition="",kc.prototype.originalOverflow="",kc.prototype.close=function(){var e=this;this.fullscreen&&(Mc=void 0),_c()(this,(function(t){var n=e.fullscreen||e.body?document.body:e.target;Object(Be["removeClass"])(n,"el-loading-parent--relative"),Object(Be["removeClass"])(n,"el-loading-parent--hidden"),e.$el&&e.$el.parentNode&&e.$el.parentNode.removeChild(e.$el),e.$destroy()}),300),this.visible=!1};var Oc=function(e,t,n){var r={};e.fullscreen?(n.originalPosition=Object(Be["getStyle"])(document.body,"position"),n.originalOverflow=Object(Be["getStyle"])(document.body,"overflow"),r.zIndex=C["PopupManager"].nextZIndex()):e.body?(n.originalPosition=Object(Be["getStyle"])(document.body,"position"),["top","left"].forEach((function(t){var n="top"===t?"scrollTop":"scrollLeft";r[t]=e.target.getBoundingClientRect()[t]+document.body[n]+document.documentElement[n]+"px"})),["height","width"].forEach((function(t){r[t]=e.target.getBoundingClientRect()[t]+"px"}))):n.originalPosition=Object(Be["getStyle"])(t,"position"),Object.keys(r).forEach((function(e){n.$el.style[e]=r[e]}))},Dc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Vr.a.prototype.$isServer){if(e=Nt()({},Ec,e),"string"===typeof e.target&&(e.target=document.querySelector(e.target)),e.target=e.target||document.body,e.target!==document.body?e.fullscreen=!1:e.body=!0,e.fullscreen&&Mc)return Mc;var t=e.body?document.body:e.target,n=new kc({el:document.createElement("div"),data:e});return Oc(e,t,n),"absolute"!==n.originalPosition&&"fixed"!==n.originalPosition&&Object(Be["addClass"])(t,"el-loading-parent--relative"),e.fullscreen&&e.lock&&Object(Be["addClass"])(t,"el-loading-parent--hidden"),t.appendChild(n.$el),Vr.a.nextTick((function(){n.visible=!0})),e.fullscreen&&(Mc=n),n}},Tc=Dc,Ac={install:function(e){e.use(Nc),e.prototype.$loading=Tc},directive:Nc,service:Tc},Ic=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("i",{class:"el-icon-"+e.name})},$c=[];Ic._withStripped=!0;var Pc={name:"ElIcon",props:{name:String}},jc=Pc,Fc=s(jc,Ic,$c,!1,null,null,null);Fc.options.__file="packages/icon/src/icon.vue";var Bc=Fc.exports;Bc.install=function(e){e.component(Bc.name,Bc)};var Lc=Bc,zc={name:"ElRow",componentName:"ElRow",props:{tag:{type:String,default:"div"},gutter:Number,type:String,justify:{type:String,default:"start"},align:String},computed:{style:function(){var e={};return this.gutter&&(e.marginLeft="-"+this.gutter/2+"px",e.marginRight=e.marginLeft),e}},render:function(e){return e(this.tag,{class:["el-row","start"!==this.justify?"is-justify-"+this.justify:"",this.align?"is-align-"+this.align:"",{"el-row--flex":"flex"===this.type}],style:this.style},this.$slots.default)},install:function(e){e.component(zc.name,zc)}},Rc=zc,Vc="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qc={name:"ElCol",props:{span:{type:Number,default:24},tag:{type:String,default:"div"},offset:Number,pull:Number,push:Number,xs:[Number,Object],sm:[Number,Object],md:[Number,Object],lg:[Number,Object],xl:[Number,Object]},computed:{gutter:function(){var e=this.$parent;while(e&&"ElRow"!==e.$options.componentName)e=e.$parent;return e?e.gutter:0}},render:function(e){var t=this,n=[],r={};return this.gutter&&(r.paddingLeft=this.gutter/2+"px",r.paddingRight=r.paddingLeft),["span","offset","pull","push"].forEach((function(e){(t[e]||0===t[e])&&n.push("span"!==e?"el-col-"+e+"-"+t[e]:"el-col-"+t[e])})),["xs","sm","md","lg","xl"].forEach((function(e){if("number"===typeof t[e])n.push("el-col-"+e+"-"+t[e]);else if("object"===Vc(t[e])){var r=t[e];Object.keys(r).forEach((function(t){n.push("span"!==t?"el-col-"+e+"-"+t+"-"+r[t]:"el-col-"+e+"-"+r[t])}))}})),e(this.tag,{class:["el-col",n],style:r},this.$slots.default)},install:function(e){e.component(qc.name,qc)}},Hc=qc,Uc=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition-group",{class:["el-upload-list","el-upload-list--"+e.listType,{"is-disabled":e.disabled}],attrs:{tag:"ul",name:"el-list"}},e._l(e.files,(function(t){return n("li",{key:t.uid,class:["el-upload-list__item","is-"+t.status,e.focusing?"focusing":""],attrs:{tabindex:"0"},on:{keydown:function(n){if(!("button"in n)&&e._k(n.keyCode,"delete",[8,46],n.key,["Backspace","Delete","Del"]))return null;!e.disabled&&e.$emit("remove",t)},focus:function(t){e.focusing=!0},blur:function(t){e.focusing=!1},click:function(t){e.focusing=!1}}},[e._t("default",["uploading"!==t.status&&["picture-card","picture"].indexOf(e.listType)>-1?n("img",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:t.url,alt:""}}):e._e(),n("a",{staticClass:"el-upload-list__item-name",on:{click:function(n){e.handleClick(t)}}},[n("i",{staticClass:"el-icon-document"}),e._v(e._s(t.name)+"\n ")]),n("label",{staticClass:"el-upload-list__item-status-label"},[n("i",{class:{"el-icon-upload-success":!0,"el-icon-circle-check":"text"===e.listType,"el-icon-check":["picture-card","picture"].indexOf(e.listType)>-1}})]),e.disabled?e._e():n("i",{staticClass:"el-icon-close",on:{click:function(n){e.$emit("remove",t)}}}),e.disabled?e._e():n("i",{staticClass:"el-icon-close-tip"},[e._v(e._s(e.t("el.upload.deleteTip")))]),"uploading"===t.status?n("el-progress",{attrs:{type:"picture-card"===e.listType?"circle":"line","stroke-width":"picture-card"===e.listType?6:2,percentage:e.parsePercentage(t.percentage)}}):e._e(),"picture-card"===e.listType?n("span",{staticClass:"el-upload-list__item-actions"},[e.handlePreview&&"picture-card"===e.listType?n("span",{staticClass:"el-upload-list__item-preview",on:{click:function(n){e.handlePreview(t)}}},[n("i",{staticClass:"el-icon-zoom-in"})]):e._e(),e.disabled?e._e():n("span",{staticClass:"el-upload-list__item-delete",on:{click:function(n){e.$emit("remove",t)}}},[n("i",{staticClass:"el-icon-delete"})])]):e._e()],{file:t})],2)})),0)},Wc=[];Uc._withStripped=!0;var Yc=n(33),Gc=n.n(Yc),Kc={name:"ElUploadList",mixins:[g.a],data:function(){return{focusing:!1}},components:{ElProgress:Gc.a},props:{files:{type:Array,default:function(){return[]}},disabled:{type:Boolean,default:!1},handlePreview:Function,listType:String},methods:{parsePercentage:function(e){return parseInt(e,10)},handleClick:function(e){this.handlePreview&&this.handlePreview(e)}}},Xc=Kc,Zc=s(Xc,Uc,Wc,!1,null,null,null);Zc.options.__file="packages/upload/src/upload-list.vue";var Jc=Zc.exports,Qc=n(24),ed=n.n(Qc);function td(e,t,n){var r=void 0;r=n.response?""+(n.response.error||n.response):n.responseText?""+n.responseText:"fail to post "+e+" "+n.status;var i=new Error(r);return i.status=n.status,i.method="post",i.url=e,i}function nd(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(n){return t}}function rd(e){if("undefined"!==typeof XMLHttpRequest){var t=new XMLHttpRequest,n=e.action;t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var r=new FormData;e.data&&Object.keys(e.data).forEach((function(t){r.append(t,e.data[t])})),r.append(e.filename,e.file,e.file.name),t.onerror=function(t){e.onError(t)},t.onload=function(){if(t.status<200||t.status>=300)return e.onError(td(n,e,t));e.onSuccess(nd(t))},t.open("post",n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var i=e.headers||{};for(var a in i)i.hasOwnProperty(a)&&null!==i[a]&&t.setRequestHeader(a,i[a]);return t.send(r),t}}var id=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-upload-dragger",class:{"is-dragover":e.dragover},on:{drop:function(t){return t.preventDefault(),e.onDrop(t)},dragover:function(t){return t.preventDefault(),e.onDragover(t)},dragleave:function(t){t.preventDefault(),e.dragover=!1}}},[e._t("default")],2)},ad=[];id._withStripped=!0;var od={name:"ElUploadDrag",props:{disabled:Boolean},inject:{uploader:{default:""}},data:function(){return{dragover:!1}},methods:{onDragover:function(){this.disabled||(this.dragover=!0)},onDrop:function(e){if(!this.disabled&&this.uploader){var t=this.uploader.accept;this.dragover=!1,t?this.$emit("file",[].slice.call(e.dataTransfer.files).filter((function(e){var n=e.type,r=e.name,i=r.indexOf(".")>-1?"."+r.split(".").pop():"",a=n.replace(/\/.*$/,"");return t.split(",").map((function(e){return e.trim()})).filter((function(e){return e})).some((function(e){return/\..+$/.test(e)?i===e:/\/\*$/.test(e)?a===e.replace(/\/\*$/,""):!!/^[^\/]+\/[^\/]+$/.test(e)&&n===e}))}))):this.$emit("file",e.dataTransfer.files)}}}},sd=od,ld=s(sd,id,ad,!1,null,null,null);ld.options.__file="packages/upload/src/upload-dragger.vue";var ud,cd,dd=ld.exports,hd={inject:["uploader"],components:{UploadDragger:dd},props:{type:String,action:{type:String,required:!0},name:{type:String,default:"file"},data:Object,headers:Object,withCredentials:Boolean,multiple:Boolean,accept:String,onStart:Function,onProgress:Function,onSuccess:Function,onError:Function,beforeUpload:Function,drag:Boolean,onPreview:{type:Function,default:function(){}},onRemove:{type:Function,default:function(){}},fileList:Array,autoUpload:Boolean,listType:String,httpRequest:{type:Function,default:rd},disabled:Boolean,limit:Number,onExceed:Function},data:function(){return{mouseover:!1,reqs:{}}},methods:{isImage:function(e){return-1!==e.indexOf("image")},handleChange:function(e){var t=e.target.files;t&&this.uploadFiles(t)},uploadFiles:function(e){var t=this;if(this.limit&&this.fileList.length+e.length>this.limit)this.onExceed&&this.onExceed(e,this.fileList);else{var n=Array.prototype.slice.call(e);this.multiple||(n=n.slice(0,1)),0!==n.length&&n.forEach((function(e){t.onStart(e),t.autoUpload&&t.upload(e)}))}},upload:function(e){var t=this;if(this.$refs.input.value=null,!this.beforeUpload)return this.post(e);var n=this.beforeUpload(e);n&&n.then?n.then((function(n){var r=Object.prototype.toString.call(n);if("[object File]"===r||"[object Blob]"===r){for(var i in"[object Blob]"===r&&(n=new File([n],e.name,{type:e.type})),e)e.hasOwnProperty(i)&&(n[i]=e[i]);t.post(n)}else t.post(e)}),(function(){t.onRemove(null,e)})):!1!==n?this.post(e):this.onRemove(null,e)},abort:function(e){var t=this.reqs;if(e){var n=e;e.uid&&(n=e.uid),t[n]&&t[n].abort()}else Object.keys(t).forEach((function(e){t[e]&&t[e].abort(),delete t[e]}))},post:function(e){var t=this,n=e.uid,r={headers:this.headers,withCredentials:this.withCredentials,file:e,data:this.data,filename:this.name,action:this.action,onProgress:function(n){t.onProgress(n,e)},onSuccess:function(r){t.onSuccess(r,e),delete t.reqs[n]},onError:function(r){t.onError(r,e),delete t.reqs[n]}},i=this.httpRequest(r);this.reqs[n]=i,i&&i.then&&i.then(r.onSuccess,r.onError)},handleClick:function(){this.disabled||(this.$refs.input.value=null,this.$refs.input.click())},handleKeydown:function(e){e.target===e.currentTarget&&(13!==e.keyCode&&32!==e.keyCode||this.handleClick())}},render:function(e){var t=this.handleClick,n=this.drag,r=this.name,i=this.handleChange,a=this.multiple,o=this.accept,s=this.listType,l=this.uploadFiles,u=this.disabled,c=this.handleKeydown,d={class:{"el-upload":!0},on:{click:t,keydown:c}};return d.class["el-upload--"+s]=!0,e("div",ed()([d,{attrs:{tabindex:"0"}}]),[n?e("upload-dragger",{attrs:{disabled:u},on:{file:l}},[this.$slots.default]):this.$slots.default,e("input",{class:"el-upload__input",attrs:{type:"file",name:r,multiple:a,accept:o},ref:"input",on:{change:i}})])}},fd=hd,pd=s(fd,ud,cd,!1,null,null,null);pd.options.__file="packages/upload/src/upload.vue";var md=pd.exports;function vd(){}var gd,yd,bd={name:"ElUpload",mixins:[k.a],components:{ElProgress:Gc.a,UploadList:Jc,Upload:md},provide:function(){return{uploader:this}},inject:{elForm:{default:""}},props:{action:{type:String,required:!0},headers:{type:Object,default:function(){return{}}},data:Object,multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,dragger:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:String,type:{type:String,default:"select"},beforeUpload:Function,beforeRemove:Function,onRemove:{type:Function,default:vd},onChange:{type:Function,default:vd},onPreview:{type:Function},onSuccess:{type:Function,default:vd},onProgress:{type:Function,default:vd},onError:{type:Function,default:vd},fileList:{type:Array,default:function(){return[]}},autoUpload:{type:Boolean,default:!0},listType:{type:String,default:"text"},httpRequest:Function,disabled:Boolean,limit:Number,onExceed:{type:Function,default:vd}},data:function(){return{uploadFiles:[],dragOver:!1,draging:!1,tempIndex:1}},computed:{uploadDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{listType:function(e){"picture-card"!==e&&"picture"!==e||(this.uploadFiles=this.uploadFiles.map((function(e){if(!e.url&&e.raw)try{e.url=URL.createObjectURL(e.raw)}catch(t){console.error("[Element Error][Upload]",t)}return e})))},fileList:{immediate:!0,handler:function(e){var t=this;this.uploadFiles=e.map((function(e){return e.uid=e.uid||Date.now()+t.tempIndex++,e.status=e.status||"success",e}))}}},methods:{handleStart:function(e){e.uid=Date.now()+this.tempIndex++;var t={status:"ready",name:e.name,size:e.size,percentage:0,uid:e.uid,raw:e};if("picture-card"===this.listType||"picture"===this.listType)try{t.url=URL.createObjectURL(e)}catch(n){return void console.error("[Element Error][Upload]",n)}this.uploadFiles.push(t),this.onChange(t,this.uploadFiles)},handleProgress:function(e,t){var n=this.getFile(t);this.onProgress(e,n,this.uploadFiles),n.status="uploading",n.percentage=e.percent||0},handleSuccess:function(e,t){var n=this.getFile(t);n&&(n.status="success",n.response=e,this.onSuccess(e,n,this.uploadFiles),this.onChange(n,this.uploadFiles))},handleError:function(e,t){var n=this.getFile(t),r=this.uploadFiles;n.status="fail",r.splice(r.indexOf(n),1),this.onError(e,n,this.uploadFiles),this.onChange(n,this.uploadFiles)},handleRemove:function(e,t){var n=this;t&&(e=this.getFile(t));var r=function(){n.abort(e);var t=n.uploadFiles;t.splice(t.indexOf(e),1),n.onRemove(e,t)};if(this.beforeRemove){if("function"===typeof this.beforeRemove){var i=this.beforeRemove(e,this.uploadFiles);i&&i.then?i.then((function(){r()}),vd):!1!==i&&r()}}else r()},getFile:function(e){var t=this.uploadFiles,n=void 0;return t.every((function(t){return n=e.uid===t.uid?t:null,!n})),n},abort:function(e){this.$refs["upload-inner"].abort(e)},clearFiles:function(){this.uploadFiles=[]},submit:function(){var e=this;this.uploadFiles.filter((function(e){return"ready"===e.status})).forEach((function(t){e.$refs["upload-inner"].upload(t.raw)}))},getMigratingConfig:function(){return{props:{"default-file-list":"default-file-list is renamed to file-list.","show-upload-list":"show-upload-list is renamed to show-file-list.","thumbnail-mode":"thumbnail-mode has been deprecated, you can implement the same effect according to this case: http://element.eleme.io/#/zh-CN/component/upload#yong-hu-tou-xiang-shang-chuan"}}}},beforeDestroy:function(){this.uploadFiles.forEach((function(e){e.url&&0===e.url.indexOf("blob:")&&URL.revokeObjectURL(e.url)}))},render:function(e){var t=this,n=void 0;this.showFileList&&(n=e(Jc,{attrs:{disabled:this.uploadDisabled,listType:this.listType,files:this.uploadFiles,handlePreview:this.onPreview},on:{remove:this.handleRemove}},[function(e){if(t.$scopedSlots.file)return t.$scopedSlots.file({file:e.file})}]));var r={props:{type:this.type,drag:this.drag,action:this.action,multiple:this.multiple,"before-upload":this.beforeUpload,"with-credentials":this.withCredentials,headers:this.headers,name:this.name,data:this.data,accept:this.accept,fileList:this.uploadFiles,autoUpload:this.autoUpload,listType:this.listType,disabled:this.uploadDisabled,limit:this.limit,"on-exceed":this.onExceed,"on-start":this.handleStart,"on-progress":this.handleProgress,"on-success":this.handleSuccess,"on-error":this.handleError,"on-preview":this.onPreview,"on-remove":this.handleRemove,"http-request":this.httpRequest},ref:"upload-inner"},i=this.$slots.trigger||this.$slots.default,a=e("upload",r,[i]);return e("div",["picture-card"===this.listType?n:"",this.$slots.trigger?[a,this.$slots.default]:a,this.$slots.tip,"picture-card"!==this.listType?n:""])}},xd=bd,wd=s(xd,gd,yd,!1,null,null,null);wd.options.__file="packages/upload/src/index.vue";var _d=wd.exports;_d.install=function(e){e.component(_d.name,_d)};var Cd=_d,Sd=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-progress",class:["el-progress--"+e.type,e.status?"is-"+e.status:"",{"el-progress--without-text":!e.showText,"el-progress--text-inside":e.textInside}],attrs:{role:"progressbar","aria-valuenow":e.percentage,"aria-valuemin":"0","aria-valuemax":"100"}},["line"===e.type?n("div",{staticClass:"el-progress-bar"},[n("div",{staticClass:"el-progress-bar__outer",style:{height:e.strokeWidth+"px"}},[n("div",{staticClass:"el-progress-bar__inner",style:e.barStyle},[e.showText&&e.textInside?n("div",{staticClass:"el-progress-bar__innerText"},[e._v(e._s(e.content))]):e._e()])])]):n("div",{staticClass:"el-progress-circle",style:{height:e.width+"px",width:e.width+"px"}},[n("svg",{attrs:{viewBox:"0 0 100 100"}},[n("path",{staticClass:"el-progress-circle__track",style:e.trailPathStyle,attrs:{d:e.trackPath,stroke:"#e5e9f2","stroke-width":e.relativeStrokeWidth,fill:"none"}}),n("path",{staticClass:"el-progress-circle__path",style:e.circlePathStyle,attrs:{d:e.trackPath,stroke:e.stroke,fill:"none","stroke-linecap":e.strokeLinecap,"stroke-width":e.percentage?e.relativeStrokeWidth:0}})])]),e.showText&&!e.textInside?n("div",{staticClass:"el-progress__text",style:{fontSize:e.progressTextSize+"px"}},[e.status?n("i",{class:e.iconClass}):[e._v(e._s(e.content))]],2):e._e()])},Nd=[];Sd._withStripped=!0;var kd={name:"ElProgress",props:{type:{type:String,default:"line",validator:function(e){return["line","circle","dashboard"].indexOf(e)>-1}},percentage:{type:Number,default:0,required:!0,validator:function(e){return e>=0&&e<=100}},status:{type:String,validator:function(e){return["success","exception","warning"].indexOf(e)>-1}},strokeWidth:{type:Number,default:6},strokeLinecap:{type:String,default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:[String,Array,Function],default:""},format:Function},computed:{barStyle:function(){var e={};return e.width=this.percentage+"%",e.backgroundColor=this.getCurrentColor(this.percentage),e},relativeStrokeWidth:function(){return(this.strokeWidth/this.width*100).toFixed(1)},radius:function(){return"circle"===this.type||"dashboard"===this.type?parseInt(50-parseFloat(this.relativeStrokeWidth)/2,10):0},trackPath:function(){var e=this.radius,t="dashboard"===this.type;return"\n M 50 50\n m 0 "+(t?"":"-")+e+"\n a "+e+" "+e+" 0 1 1 0 "+(t?"-":"")+2*e+"\n a "+e+" "+e+" 0 1 1 0 "+(t?"":"-")+2*e+"\n "},perimeter:function(){return 2*Math.PI*this.radius},rate:function(){return"dashboard"===this.type?.75:1},strokeDashoffset:function(){var e=-1*this.perimeter*(1-this.rate)/2;return e+"px"},trailPathStyle:function(){return{strokeDasharray:this.perimeter*this.rate+"px, "+this.perimeter+"px",strokeDashoffset:this.strokeDashoffset}},circlePathStyle:function(){return{strokeDasharray:this.perimeter*this.rate*(this.percentage/100)+"px, "+this.perimeter+"px",strokeDashoffset:this.strokeDashoffset,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease"}},stroke:function(){var e=void 0;if(this.color)e=this.getCurrentColor(this.percentage);else switch(this.status){case"success":e="#13ce66";break;case"exception":e="#ff4949";break;case"warning":e="#e6a23c";break;default:e="#20a0ff"}return e},iconClass:function(){return"warning"===this.status?"el-icon-warning":"line"===this.type?"success"===this.status?"el-icon-circle-check":"el-icon-circle-close":"success"===this.status?"el-icon-check":"el-icon-close"},progressTextSize:function(){return"line"===this.type?12+.4*this.strokeWidth:.111111*this.width+2},content:function(){return"function"===typeof this.format?this.format(this.percentage)||"":this.percentage+"%"}},methods:{getCurrentColor:function(e){return"function"===typeof this.color?this.color(e):"string"===typeof this.color?this.color:this.getLevelColor(e)},getLevelColor:function(e){for(var t=this.getColorArray().sort((function(e,t){return e.percentage-t.percentage})),n=0;n<t.length;n++)if(t[n].percentage>e)return t[n].color;return t[t.length-1].color},getColorArray:function(){var e=this.color,t=100/e.length;return e.map((function(e,n){return"string"===typeof e?{color:e,percentage:(n+1)*t}:e}))}}},Ed=kd,Md=s(Ed,Sd,Nd,!1,null,null,null);Md.options.__file="packages/progress/src/progress.vue";var Od=Md.exports;Od.install=function(e){e.component(Od.name,Od)};var Dd=Od,Td=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",{staticClass:"el-spinner"},[n("svg",{staticClass:"el-spinner-inner",style:{width:e.radius/2+"px",height:e.radius/2+"px"},attrs:{viewBox:"0 0 50 50"}},[n("circle",{staticClass:"path",attrs:{cx:"25",cy:"25",r:"20",fill:"none",stroke:e.strokeColor,"stroke-width":e.strokeWidth}})])])},Ad=[];Td._withStripped=!0;var Id={name:"ElSpinner",props:{type:String,radius:{type:Number,default:100},strokeWidth:{type:Number,default:5},strokeColor:{type:String,default:"#efefef"}}},$d=Id,Pd=s($d,Td,Ad,!1,null,null,null);Pd.options.__file="packages/spinner/src/spinner.vue";var jd=Pd.exports;jd.install=function(e){e.component(jd.name,jd)};var Fd=jd,Bd=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-message-fade"},on:{"after-leave":e.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],class:["el-message",e.type&&!e.iconClass?"el-message--"+e.type:"",e.center?"is-center":"",e.showClose?"is-closable":"",e.customClass],style:e.positionStyle,attrs:{role:"alert"},on:{mouseenter:e.clearTimer,mouseleave:e.startTimer}},[e.iconClass?n("i",{class:e.iconClass}):n("i",{class:e.typeClass}),e._t("default",[e.dangerouslyUseHTMLString?n("p",{staticClass:"el-message__content",domProps:{innerHTML:e._s(e.message)}}):n("p",{staticClass:"el-message__content"},[e._v(e._s(e.message))])]),e.showClose?n("i",{staticClass:"el-message__closeBtn el-icon-close",on:{click:e.close}}):e._e()],2)])},Ld=[];Bd._withStripped=!0;var zd={success:"success",info:"info",warning:"warning",error:"error"},Rd={data:function(){return{visible:!1,message:"",duration:3e3,type:"info",iconClass:"",customClass:"",onClose:null,showClose:!1,closed:!1,verticalOffset:20,timer:null,dangerouslyUseHTMLString:!1,center:!1}},computed:{typeClass:function(){return this.type&&!this.iconClass?"el-message__icon el-icon-"+zd[this.type]:""},positionStyle:function(){return{top:this.verticalOffset+"px"}}},watch:{closed:function(e){e&&(this.visible=!1)}},methods:{handleAfterLeave:function(){this.$destroy(!0),this.$el.parentNode.removeChild(this.$el)},close:function(){this.closed=!0,"function"===typeof this.onClose&&this.onClose(this)},clearTimer:function(){clearTimeout(this.timer)},startTimer:function(){var e=this;this.duration>0&&(this.timer=setTimeout((function(){e.closed||e.close()}),this.duration))},keydown:function(e){27===e.keyCode&&(this.closed||this.close())}},mounted:function(){this.startTimer(),document.addEventListener("keydown",this.keydown)},beforeDestroy:function(){document.removeEventListener("keydown",this.keydown)}},Vd=Rd,qd=s(Vd,Bd,Ld,!1,null,null,null);qd.options.__file="packages/message/src/main.vue";var Hd=qd.exports,Ud=n(16),Wd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yd=Vr.a.extend(Hd),Gd=void 0,Kd=[],Xd=1,Zd=function e(t){if(!Vr.a.prototype.$isServer){t=t||{},"string"===typeof t&&(t={message:t});var n=t.onClose,r="message_"+Xd++;t.onClose=function(){e.close(r,n)},Gd=new Yd({data:t}),Gd.id=r,Object(ks["isVNode"])(Gd.message)&&(Gd.$slots.default=[Gd.message],Gd.message=null),Gd.$mount(),document.body.appendChild(Gd.$el);var i=t.offset||20;return Kd.forEach((function(e){i+=e.$el.offsetHeight+16})),Gd.verticalOffset=i,Gd.visible=!0,Gd.$el.style.zIndex=C["PopupManager"].nextZIndex(),Kd.push(Gd),Gd}};["success","warning","info","error"].forEach((function(e){Zd[e]=function(t){return Object(Ud["isObject"])(t)&&!Object(ks["isVNode"])(t)?Zd(Wd({},t,{type:e})):Zd({type:e,message:t})}})),Zd.close=function(e,t){for(var n=Kd.length,r=-1,i=void 0,a=0;a<n;a++)if(e===Kd[a].id){i=Kd[a].$el.offsetHeight,r=a,"function"===typeof t&&t(Kd[a]),Kd.splice(a,1);break}if(!(n<=1||-1===r||r>Kd.length-1))for(var o=r;o<n-1;o++){var s=Kd[o].$el;s.style["top"]=parseInt(s.style["top"],10)-i-16+"px"}},Zd.closeAll=function(){for(var e=Kd.length-1;e>=0;e--)Kd[e].close()};var Jd=Zd,Qd=Jd,eh=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-badge"},[e._t("default"),n("transition",{attrs:{name:"el-zoom-in-center"}},[n("sup",{directives:[{name:"show",rawName:"v-show",value:!e.hidden&&(e.content||0===e.content||e.isDot),expression:"!hidden && (content || content === 0 || isDot)"}],staticClass:"el-badge__content",class:[e.type?"el-badge__content--"+e.type:null,{"is-fixed":e.$slots.default,"is-dot":e.isDot}],domProps:{textContent:e._s(e.content)}})])],2)},th=[];eh._withStripped=!0;var nh={name:"ElBadge",props:{value:[String,Number],max:Number,isDot:Boolean,hidden:Boolean,type:{type:String,validator:function(e){return["primary","success","warning","info","danger"].indexOf(e)>-1}}},computed:{content:function(){if(!this.isDot){var e=this.value,t=this.max;return"number"===typeof e&&"number"===typeof t&&t<e?t+"+":e}}}},rh=nh,ih=s(rh,eh,th,!1,null,null,null);ih.options.__file="packages/badge/src/main.vue";var ah=ih.exports;ah.install=function(e){e.component(ah.name,ah)};var oh=ah,sh=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-card",class:e.shadow?"is-"+e.shadow+"-shadow":"is-always-shadow"},[e.$slots.header||e.header?n("div",{staticClass:"el-card__header"},[e._t("header",[e._v(e._s(e.header))])],2):e._e(),n("div",{staticClass:"el-card__body",style:e.bodyStyle},[e._t("default")],2)])},lh=[];sh._withStripped=!0;var uh={name:"ElCard",props:{header:{},bodyStyle:{},shadow:{type:String}}},ch=uh,dh=s(ch,sh,lh,!1,null,null,null);dh.options.__file="packages/card/src/main.vue";var hh=dh.exports;hh.install=function(e){e.component(hh.name,hh)};var fh=hh,ph=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-rate",attrs:{role:"slider","aria-valuenow":e.currentValue,"aria-valuetext":e.text,"aria-valuemin":"0","aria-valuemax":e.max,tabindex:"0"},on:{keydown:e.handleKey}},[e._l(e.max,(function(t,r){return n("span",{key:r,staticClass:"el-rate__item",style:{cursor:e.rateDisabled?"auto":"pointer"},on:{mousemove:function(n){e.setCurrentValue(t,n)},mouseleave:e.resetCurrentValue,click:function(n){e.selectValue(t)}}},[n("i",{staticClass:"el-rate__icon",class:[e.classes[t-1],{hover:e.hoverIndex===t}],style:e.getIconStyle(t)},[e.showDecimalIcon(t)?n("i",{staticClass:"el-rate__decimal",class:e.decimalIconClass,style:e.decimalStyle}):e._e()])])})),e.showText||e.showScore?n("span",{staticClass:"el-rate__text",style:{color:e.textColor}},[e._v(e._s(e.text))]):e._e()],2)},mh=[];ph._withStripped=!0;var vh={name:"ElRate",mixins:[k.a],inject:{elForm:{default:""}},data:function(){return{pointerAtLeftHalf:!0,currentValue:this.value,hoverIndex:-1}},props:{value:{type:Number,default:0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:[Array,Object],default:function(){return["#F7BA2A","#F7BA2A","#F7BA2A"]}},voidColor:{type:String,default:"#C6D1DE"},disabledVoidColor:{type:String,default:"#EFF2F7"},iconClasses:{type:[Array,Object],default:function(){return["el-icon-star-on","el-icon-star-on","el-icon-star-on"]}},voidIconClass:{type:String,default:"el-icon-star-off"},disabledVoidIconClass:{type:String,default:"el-icon-star-on"},disabled:{type:Boolean,default:!1},allowHalf:{type:Boolean,default:!1},showText:{type:Boolean,default:!1},showScore:{type:Boolean,default:!1},textColor:{type:String,default:"#1f2d3d"},texts:{type:Array,default:function(){return["极差","失望","一般","满意","惊喜"]}},scoreTemplate:{type:String,default:"{value}"}},computed:{text:function(){var e="";return this.showScore?e=this.scoreTemplate.replace(/\{\s*value\s*\}/,this.rateDisabled?this.value:this.currentValue):this.showText&&(e=this.texts[Math.ceil(this.currentValue)-1]),e},decimalStyle:function(){var e="";return this.rateDisabled?e=this.valueDecimal+"%":this.allowHalf&&(e="50%"),{color:this.activeColor,width:e}},valueDecimal:function(){return 100*this.value-100*Math.floor(this.value)},classMap:function(){var e;return Array.isArray(this.iconClasses)?(e={},e[this.lowThreshold]=this.iconClasses[0],e[this.highThreshold]={value:this.iconClasses[1],excluded:!0},e[this.max]=this.iconClasses[2],e):this.iconClasses},decimalIconClass:function(){return this.getValueFromMap(this.value,this.classMap)},voidClass:function(){return this.rateDisabled?this.disabledVoidIconClass:this.voidIconClass},activeClass:function(){return this.getValueFromMap(this.currentValue,this.classMap)},colorMap:function(){var e;return Array.isArray(this.colors)?(e={},e[this.lowThreshold]=this.colors[0],e[this.highThreshold]={value:this.colors[1],excluded:!0},e[this.max]=this.colors[2],e):this.colors},activeColor:function(){return this.getValueFromMap(this.currentValue,this.colorMap)},classes:function(){var e=[],t=0,n=this.currentValue;for(this.allowHalf&&this.currentValue!==Math.floor(this.currentValue)&&n--;t<n;t++)e.push(this.activeClass);for(;t<this.max;t++)e.push(this.voidClass);return e},rateDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{value:function(e){this.currentValue=e,this.pointerAtLeftHalf=this.value!==Math.floor(this.value)}},methods:{getMigratingConfig:function(){return{props:{"text-template":"text-template is renamed to score-template."}}},getValueFromMap:function(e,t){var n=Object.keys(t).filter((function(n){var r=t[n],i=!!Object(Ud["isObject"])(r)&&r.excluded;return i?e<n:e<=n})).sort((function(e,t){return e-t})),r=t[n[0]];return Object(Ud["isObject"])(r)?r.value:r||""},showDecimalIcon:function(e){var t=this.rateDisabled&&this.valueDecimal>0&&e-1<this.value&&e>this.value,n=this.allowHalf&&this.pointerAtLeftHalf&&e-.5<=this.currentValue&&e>this.currentValue;return t||n},getIconStyle:function(e){var t=this.rateDisabled?this.disabledVoidColor:this.voidColor;return{color:e<=this.currentValue?this.activeColor:t}},selectValue:function(e){this.rateDisabled||(this.allowHalf&&this.pointerAtLeftHalf?(this.$emit("input",this.currentValue),this.$emit("change",this.currentValue)):(this.$emit("input",e),this.$emit("change",e)))},handleKey:function(e){if(!this.rateDisabled){var t=this.currentValue,n=e.keyCode;38===n||39===n?(this.allowHalf?t+=.5:t+=1,e.stopPropagation(),e.preventDefault()):37!==n&&40!==n||(this.allowHalf?t-=.5:t-=1,e.stopPropagation(),e.preventDefault()),t=t<0?0:t,t=t>this.max?this.max:t,this.$emit("input",t),this.$emit("change",t)}},setCurrentValue:function(e,t){if(!this.rateDisabled){if(this.allowHalf){var n=t.target;Object(Be["hasClass"])(n,"el-rate__item")&&(n=n.querySelector(".el-rate__icon")),Object(Be["hasClass"])(n,"el-rate__decimal")&&(n=n.parentNode),this.pointerAtLeftHalf=2*t.offsetX<=n.clientWidth,this.currentValue=this.pointerAtLeftHalf?e-.5:e}else this.currentValue=e;this.hoverIndex=e}},resetCurrentValue:function(){this.rateDisabled||(this.allowHalf&&(this.pointerAtLeftHalf=this.value!==Math.floor(this.value)),this.currentValue=this.value,this.hoverIndex=-1)}},created:function(){this.value||this.$emit("input",0)}},gh=vh,yh=s(gh,ph,mh,!1,null,null,null);yh.options.__file="packages/rate/src/main.vue";var bh=yh.exports;bh.install=function(e){e.component(bh.name,bh)};var xh=bh,wh=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-steps",class:[!e.simple&&"el-steps--"+e.direction,e.simple&&"el-steps--simple"]},[e._t("default")],2)},_h=[];wh._withStripped=!0;var Ch={name:"ElSteps",mixins:[k.a],props:{space:[Number,String],active:Number,direction:{type:String,default:"horizontal"},alignCenter:Boolean,simple:Boolean,finishStatus:{type:String,default:"finish"},processStatus:{type:String,default:"process"}},data:function(){return{steps:[],stepOffset:0}},methods:{getMigratingConfig:function(){return{props:{center:"center is removed."}}}},watch:{active:function(e,t){this.$emit("change",e,t)},steps:function(e){e.forEach((function(e,t){e.index=t}))}}},Sh=Ch,Nh=s(Sh,wh,_h,!1,null,null,null);Nh.options.__file="packages/steps/src/steps.vue";var kh=Nh.exports;kh.install=function(e){e.component(kh.name,kh)};var Eh=kh,Mh=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-step",class:[!e.isSimple&&"is-"+e.$parent.direction,e.isSimple&&"is-simple",e.isLast&&!e.space&&!e.isCenter&&"is-flex",e.isCenter&&!e.isVertical&&!e.isSimple&&"is-center"],style:e.style},[n("div",{staticClass:"el-step__head",class:"is-"+e.currentStatus},[n("div",{staticClass:"el-step__line",style:e.isLast?"":{marginRight:e.$parent.stepOffset+"px"}},[n("i",{staticClass:"el-step__line-inner",style:e.lineStyle})]),n("div",{staticClass:"el-step__icon",class:"is-"+(e.icon?"icon":"text")},["success"!==e.currentStatus&&"error"!==e.currentStatus?e._t("icon",[e.icon?n("i",{staticClass:"el-step__icon-inner",class:[e.icon]}):e._e(),e.icon||e.isSimple?e._e():n("div",{staticClass:"el-step__icon-inner"},[e._v(e._s(e.index+1))])]):n("i",{staticClass:"el-step__icon-inner is-status",class:["el-icon-"+("success"===e.currentStatus?"check":"close")]})],2)]),n("div",{staticClass:"el-step__main"},[n("div",{ref:"title",staticClass:"el-step__title",class:["is-"+e.currentStatus]},[e._t("title",[e._v(e._s(e.title))])],2),e.isSimple?n("div",{staticClass:"el-step__arrow"}):n("div",{staticClass:"el-step__description",class:["is-"+e.currentStatus]},[e._t("description",[e._v(e._s(e.description))])],2)])])},Oh=[];Mh._withStripped=!0;var Dh={name:"ElStep",props:{title:String,icon:String,description:String,status:String},data:function(){return{index:-1,lineStyle:{},internalStatus:""}},beforeCreate:function(){this.$parent.steps.push(this)},beforeDestroy:function(){var e=this.$parent.steps,t=e.indexOf(this);t>=0&&e.splice(t,1)},computed:{currentStatus:function(){return this.status||this.internalStatus},prevStatus:function(){var e=this.$parent.steps[this.index-1];return e?e.currentStatus:"wait"},isCenter:function(){return this.$parent.alignCenter},isVertical:function(){return"vertical"===this.$parent.direction},isSimple:function(){return this.$parent.simple},isLast:function(){var e=this.$parent;return e.steps[e.steps.length-1]===this},stepsCount:function(){return this.$parent.steps.length},space:function(){var e=this.isSimple,t=this.$parent.space;return e?"":t},style:function(){var e={},t=this.$parent,n=t.steps.length,r="number"===typeof this.space?this.space+"px":this.space?this.space:100/(n-(this.isCenter?0:1))+"%";return e.flexBasis=r,this.isVertical||(this.isLast?e.maxWidth=100/this.stepsCount+"%":e.marginRight=-this.$parent.stepOffset+"px"),e}},methods:{updateStatus:function(e){var t=this.$parent.$children[this.index-1];e>this.index?this.internalStatus=this.$parent.finishStatus:e===this.index&&"error"!==this.prevStatus?this.internalStatus=this.$parent.processStatus:this.internalStatus="wait",t&&t.calcProgress(this.internalStatus)},calcProgress:function(e){var t=100,n={};n.transitionDelay=150*this.index+"ms",e===this.$parent.processStatus?(this.currentStatus,t=0):"wait"===e&&(t=0,n.transitionDelay=-150*this.index+"ms"),n.borderWidth=t&&!this.isSimple?"1px":0,"vertical"===this.$parent.direction?n.height=t+"%":n.width=t+"%",this.lineStyle=n}},mounted:function(){var e=this,t=this.$watch("index",(function(n){e.$watch("$parent.active",e.updateStatus,{immediate:!0}),e.$watch("$parent.processStatus",(function(){var t=e.$parent.active;e.updateStatus(t)}),{immediate:!0}),t()}))}},Th=Dh,Ah=s(Th,Mh,Oh,!1,null,null,null);Ah.options.__file="packages/steps/src/step.vue";var Ih=Ah.exports;Ih.install=function(e){e.component(Ih.name,Ih)};var $h=Ih,Ph=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.carouselClasses,on:{mouseenter:function(t){return t.stopPropagation(),e.handleMouseEnter(t)},mouseleave:function(t){return t.stopPropagation(),e.handleMouseLeave(t)}}},[n("div",{staticClass:"el-carousel__container",style:{height:e.height}},[e.arrowDisplay?n("transition",{attrs:{name:"carousel-arrow-left"}},[n("button",{directives:[{name:"show",rawName:"v-show",value:("always"===e.arrow||e.hover)&&(e.loop||e.activeIndex>0),expression:"(arrow === 'always' || hover) && (loop || activeIndex > 0)"}],staticClass:"el-carousel__arrow el-carousel__arrow--left",attrs:{type:"button"},on:{mouseenter:function(t){e.handleButtonEnter("left")},mouseleave:e.handleButtonLeave,click:function(t){t.stopPropagation(),e.throttledArrowClick(e.activeIndex-1)}}},[n("i",{staticClass:"el-icon-arrow-left"})])]):e._e(),e.arrowDisplay?n("transition",{attrs:{name:"carousel-arrow-right"}},[n("button",{directives:[{name:"show",rawName:"v-show",value:("always"===e.arrow||e.hover)&&(e.loop||e.activeIndex<e.items.length-1),expression:"(arrow === 'always' || hover) && (loop || activeIndex < items.length - 1)"}],staticClass:"el-carousel__arrow el-carousel__arrow--right",attrs:{type:"button"},on:{mouseenter:function(t){e.handleButtonEnter("right")},mouseleave:e.handleButtonLeave,click:function(t){t.stopPropagation(),e.throttledArrowClick(e.activeIndex+1)}}},[n("i",{staticClass:"el-icon-arrow-right"})])]):e._e(),e._t("default")],2),"none"!==e.indicatorPosition?n("ul",{class:e.indicatorsClasses},e._l(e.items,(function(t,r){return n("li",{key:r,class:["el-carousel__indicator","el-carousel__indicator--"+e.direction,{"is-active":r===e.activeIndex}],on:{mouseenter:function(t){e.throttledIndicatorHover(r)},click:function(t){t.stopPropagation(),e.handleIndicatorClick(r)}}},[n("button",{staticClass:"el-carousel__button"},[e.hasLabel?n("span",[e._v(e._s(t.label))]):e._e()])])})),0):e._e()])},jh=[];Ph._withStripped=!0;var Fh=n(25),Bh=n.n(Fh),Lh={name:"ElCarousel",props:{initialIndex:{type:Number,default:0},height:String,trigger:{type:String,default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:String,indicator:{type:Boolean,default:!0},arrow:{type:String,default:"hover"},type:String,loop:{type:Boolean,default:!0},direction:{type:String,default:"horizontal",validator:function(e){return-1!==["horizontal","vertical"].indexOf(e)}}},data:function(){return{items:[],activeIndex:-1,containerWidth:0,timer:null,hover:!1}},computed:{arrowDisplay:function(){return"never"!==this.arrow&&"vertical"!==this.direction},hasLabel:function(){return this.items.some((function(e){return e.label.toString().length>0}))},carouselClasses:function(){var e=["el-carousel","el-carousel--"+this.direction];return"card"===this.type&&e.push("el-carousel--card"),e},indicatorsClasses:function(){var e=["el-carousel__indicators","el-carousel__indicators--"+this.direction];return this.hasLabel&&e.push("el-carousel__indicators--labels"),"outside"!==this.indicatorPosition&&"card"!==this.type||e.push("el-carousel__indicators--outside"),e}},watch:{items:function(e){e.length>0&&this.setActiveItem(this.initialIndex)},activeIndex:function(e,t){this.resetItemPosition(t),t>-1&&this.$emit("change",e,t)},autoplay:function(e){e?this.startTimer():this.pauseTimer()},loop:function(){this.setActiveItem(this.activeIndex)},interval:function(){this.pauseTimer(),this.startTimer()}},methods:{handleMouseEnter:function(){this.hover=!0,this.pauseTimer()},handleMouseLeave:function(){this.hover=!1,this.startTimer()},itemInStage:function(e,t){var n=this.items.length;return t===n-1&&e.inStage&&this.items[0].active||e.inStage&&this.items[t+1]&&this.items[t+1].active?"left":!!(0===t&&e.inStage&&this.items[n-1].active||e.inStage&&this.items[t-1]&&this.items[t-1].active)&&"right"},handleButtonEnter:function(e){var t=this;"vertical"!==this.direction&&this.items.forEach((function(n,r){e===t.itemInStage(n,r)&&(n.hover=!0)}))},handleButtonLeave:function(){"vertical"!==this.direction&&this.items.forEach((function(e){e.hover=!1}))},updateItems:function(){this.items=this.$children.filter((function(e){return"ElCarouselItem"===e.$options.name}))},resetItemPosition:function(e){var t=this;this.items.forEach((function(n,r){n.translateItem(r,t.activeIndex,e)}))},playSlides:function(){this.activeIndex<this.items.length-1?this.activeIndex++:this.loop&&(this.activeIndex=0)},pauseTimer:function(){this.timer&&(clearInterval(this.timer),this.timer=null)},startTimer:function(){this.interval<=0||!this.autoplay||this.timer||(this.timer=setInterval(this.playSlides,this.interval))},resetTimer:function(){this.pauseTimer(),this.startTimer()},setActiveItem:function(e){if("string"===typeof e){var t=this.items.filter((function(t){return t.name===e}));t.length>0&&(e=this.items.indexOf(t[0]))}if(e=Number(e),isNaN(e)||e!==Math.floor(e))console.warn("[Element Warn][Carousel]index must be an integer.");else{var n=this.items.length,r=this.activeIndex;this.activeIndex=e<0?this.loop?n-1:0:e>=n?this.loop?0:n-1:e,r===this.activeIndex&&this.resetItemPosition(r),this.resetTimer()}},prev:function(){this.setActiveItem(this.activeIndex-1)},next:function(){this.setActiveItem(this.activeIndex+1)},handleIndicatorClick:function(e){this.activeIndex=e},handleIndicatorHover:function(e){"hover"===this.trigger&&e!==this.activeIndex&&(this.activeIndex=e)}},created:function(){var e=this;this.throttledArrowClick=Bh()(300,!0,(function(t){e.setActiveItem(t)})),this.throttledIndicatorHover=Bh()(300,(function(t){e.handleIndicatorHover(t)}))},mounted:function(){var e=this;this.updateItems(),this.$nextTick((function(){Object(er["addResizeListener"])(e.$el,e.resetItemPosition),e.initialIndex<e.items.length&&e.initialIndex>=0&&(e.activeIndex=e.initialIndex),e.startTimer()}))},beforeDestroy:function(){this.$el&&Object(er["removeResizeListener"])(this.$el,this.resetItemPosition),this.pauseTimer()}},zh=Lh,Rh=s(zh,Ph,jh,!1,null,null,null);Rh.options.__file="packages/carousel/src/main.vue";var Vh=Rh.exports;Vh.install=function(e){e.component(Vh.name,Vh)};var qh=Vh,Hh={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}};function Uh(e){var t=e.move,n=e.size,r=e.bar,i={},a="translate"+r.axis+"("+t+"%)";return i[r.size]=n,i.transform=a,i.msTransform=a,i.webkitTransform=a,i}var Wh={name:"Bar",props:{vertical:Boolean,size:String,move:Number},computed:{bar:function(){return Hh[this.vertical?"vertical":"horizontal"]},wrap:function(){return this.$parent.wrap}},render:function(e){var t=this.size,n=this.move,r=this.bar;return e("div",{class:["el-scrollbar__bar","is-"+r.key],on:{mousedown:this.clickTrackHandler}},[e("div",{ref:"thumb",class:"el-scrollbar__thumb",on:{mousedown:this.clickThumbHandler},style:Uh({size:t,move:n,bar:r})})])},methods:{clickThumbHandler:function(e){e.ctrlKey||2===e.button||(this.startDrag(e),this[this.bar.axis]=e.currentTarget[this.bar.offset]-(e[this.bar.client]-e.currentTarget.getBoundingClientRect()[this.bar.direction]))},clickTrackHandler:function(e){var t=Math.abs(e.target.getBoundingClientRect()[this.bar.direction]-e[this.bar.client]),n=this.$refs.thumb[this.bar.offset]/2,r=100*(t-n)/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=r*this.wrap[this.bar.scrollSize]/100},startDrag:function(e){e.stopImmediatePropagation(),this.cursorDown=!0,Object(Be["on"])(document,"mousemove",this.mouseMoveDocumentHandler),Object(Be["on"])(document,"mouseup",this.mouseUpDocumentHandler),document.onselectstart=function(){return!1}},mouseMoveDocumentHandler:function(e){if(!1!==this.cursorDown){var t=this[this.bar.axis];if(t){var n=-1*(this.$el.getBoundingClientRect()[this.bar.direction]-e[this.bar.client]),r=this.$refs.thumb[this.bar.offset]-t,i=100*(n-r)/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=i*this.wrap[this.bar.scrollSize]/100}}},mouseUpDocumentHandler:function(e){this.cursorDown=!1,this[this.bar.axis]=0,Object(Be["off"])(document,"mousemove",this.mouseMoveDocumentHandler),document.onselectstart=null}},destroyed:function(){Object(Be["off"])(document,"mouseup",this.mouseUpDocumentHandler)}},Yh={name:"ElScrollbar",components:{Bar:Wh},props:{native:Boolean,wrapStyle:{},wrapClass:{},viewClass:{},viewStyle:{},noresize:Boolean,tag:{type:String,default:"div"}},data:function(){return{sizeWidth:"0",sizeHeight:"0",moveX:0,moveY:0}},computed:{wrap:function(){return this.$refs.wrap}},render:function(e){var t=gi()(),n=this.wrapStyle;if(t){var r="-"+t+"px",i="margin-bottom: "+r+"; margin-right: "+r+";";Array.isArray(this.wrapStyle)?(n=Object(y["toObject"])(this.wrapStyle),n.marginRight=n.marginBottom=r):"string"===typeof this.wrapStyle?n+=i:n=i}var a=e(this.tag,{class:["el-scrollbar__view",this.viewClass],style:this.viewStyle,ref:"resize"},this.$slots.default),o=e("div",{ref:"wrap",style:n,on:{scroll:this.handleScroll},class:[this.wrapClass,"el-scrollbar__wrap",t?"":"el-scrollbar__wrap--hidden-default"]},[[a]]),s=void 0;return s=this.native?[e("div",{ref:"wrap",class:[this.wrapClass,"el-scrollbar__wrap"],style:n},[[a]])]:[o,e(Wh,{attrs:{move:this.moveX,size:this.sizeWidth}}),e(Wh,{attrs:{vertical:!0,move:this.moveY,size:this.sizeHeight}})],e("div",{class:"el-scrollbar"},s)},methods:{handleScroll:function(){var e=this.wrap;this.moveY=100*e.scrollTop/e.clientHeight,this.moveX=100*e.scrollLeft/e.clientWidth},update:function(){var e=void 0,t=void 0,n=this.wrap;n&&(e=100*n.clientHeight/n.scrollHeight,t=100*n.clientWidth/n.scrollWidth,this.sizeHeight=e<100?e+"%":"",this.sizeWidth=t<100?t+"%":"")}},mounted:function(){this.native||(this.$nextTick(this.update),!this.noresize&&Object(er["addResizeListener"])(this.$refs.resize,this.update))},beforeDestroy:function(){this.native||!this.noresize&&Object(er["removeResizeListener"])(this.$refs.resize,this.update)},install:function(e){e.component(Yh.name,Yh)}},Gh=Yh,Kh=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"show",rawName:"v-show",value:e.ready,expression:"ready"}],staticClass:"el-carousel__item",class:{"is-active":e.active,"el-carousel__item--card":"card"===e.$parent.type,"is-in-stage":e.inStage,"is-hover":e.hover,"is-animating":e.animating},style:e.itemStyle,on:{click:e.handleItemClick}},["card"===e.$parent.type?n("div",{directives:[{name:"show",rawName:"v-show",value:!e.active,expression:"!active"}],staticClass:"el-carousel__mask"}):e._e(),e._t("default")],2)},Xh=[];Kh._withStripped=!0;var Zh=.83,Jh={name:"ElCarouselItem",props:{name:String,label:{type:[String,Number],default:""}},data:function(){return{hover:!1,translate:0,scale:1,active:!1,ready:!1,inStage:!1,animating:!1}},methods:{processIndex:function(e,t,n){return 0===t&&e===n-1?-1:t===n-1&&0===e?n:e<t-1&&t-e>=n/2?n+1:e>t+1&&e-t>=n/2?-2:e},calcCardTranslate:function(e,t){var n=this.$parent.$el.offsetWidth;return this.inStage?n*((2-Zh)*(e-t)+1)/4:e<t?-(1+Zh)*n/4:(3+Zh)*n/4},calcTranslate:function(e,t,n){var r=this.$parent.$el[n?"offsetHeight":"offsetWidth"];return r*(e-t)},translateItem:function(e,t,n){var r=this.$parent.type,i=this.parentDirection,a=this.$parent.items.length;if("card"!==r&&void 0!==n&&(this.animating=e===t||e===n),e!==t&&a>2&&this.$parent.loop&&(e=this.processIndex(e,t,a)),"card"===r)"vertical"===i&&console.warn("[Element Warn][Carousel]vertical direction is not supported in card mode"),this.inStage=Math.round(Math.abs(e-t))<=1,this.active=e===t,this.translate=this.calcCardTranslate(e,t),this.scale=this.active?1:Zh;else{this.active=e===t;var o="vertical"===i;this.translate=this.calcTranslate(e,t,o),this.scale=1}this.ready=!0},handleItemClick:function(){var e=this.$parent;if(e&&"card"===e.type){var t=e.items.indexOf(this);e.setActiveItem(t)}}},computed:{parentDirection:function(){return this.$parent.direction},itemStyle:function(){var e="vertical"===this.parentDirection?"translateY":"translateX",t=e+"("+this.translate+"px) scale("+this.scale+")",n={transform:t};return Object(y["autoprefixer"])(n)}},created:function(){this.$parent&&this.$parent.updateItems()},destroyed:function(){this.$parent&&this.$parent.updateItems()}},Qh=Jh,ef=s(Qh,Kh,Xh,!1,null,null,null);ef.options.__file="packages/carousel/src/item.vue";var tf=ef.exports;tf.install=function(e){e.component(tf.name,tf)};var nf=tf,rf=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-collapse",attrs:{role:"tablist","aria-multiselectable":"true"}},[e._t("default")],2)},af=[];rf._withStripped=!0;var of={name:"ElCollapse",componentName:"ElCollapse",props:{accordion:Boolean,value:{type:[Array,String,Number],default:function(){return[]}}},data:function(){return{activeNames:[].concat(this.value)}},provide:function(){return{collapse:this}},watch:{value:function(e){this.activeNames=[].concat(e)}},methods:{setActiveNames:function(e){e=[].concat(e);var t=this.accordion?e[0]:e;this.activeNames=e,this.$emit("input",t),this.$emit("change",t)},handleItemClick:function(e){if(this.accordion)this.setActiveNames(!this.activeNames[0]&&0!==this.activeNames[0]||this.activeNames[0]!==e.name?e.name:"");else{var t=this.activeNames.slice(0),n=t.indexOf(e.name);n>-1?t.splice(n,1):t.push(e.name),this.setActiveNames(t)}}},created:function(){this.$on("item-click",this.handleItemClick)}},sf=of,lf=s(sf,rf,af,!1,null,null,null);lf.options.__file="packages/collapse/src/collapse.vue";var uf=lf.exports;uf.install=function(e){e.component(uf.name,uf)};var cf=uf,df=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-collapse-item",class:{"is-active":e.isActive,"is-disabled":e.disabled}},[n("div",{attrs:{role:"tab","aria-expanded":e.isActive,"aria-controls":"el-collapse-content-"+e.id,"aria-describedby":"el-collapse-content-"+e.id}},[n("div",{staticClass:"el-collapse-item__header",class:{focusing:e.focusing,"is-active":e.isActive},attrs:{role:"button",id:"el-collapse-head-"+e.id,tabindex:e.disabled?void 0:0},on:{click:e.handleHeaderClick,keyup:function(t){return!("button"in t)&&e._k(t.keyCode,"space",32,t.key,[" ","Spacebar"])&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.stopPropagation(),e.handleEnterClick(t))},focus:e.handleFocus,blur:function(t){e.focusing=!1}}},[e._t("title",[e._v(e._s(e.title))]),n("i",{staticClass:"el-collapse-item__arrow el-icon-arrow-right",class:{"is-active":e.isActive}})],2)]),n("el-collapse-transition",[n("div",{directives:[{name:"show",rawName:"v-show",value:e.isActive,expression:"isActive"}],staticClass:"el-collapse-item__wrap",attrs:{role:"tabpanel","aria-hidden":!e.isActive,"aria-labelledby":"el-collapse-head-"+e.id,id:"el-collapse-content-"+e.id}},[n("div",{staticClass:"el-collapse-item__content"},[e._t("default")],2)])])],1)},hf=[];df._withStripped=!0;var ff={name:"ElCollapseItem",componentName:"ElCollapseItem",mixins:[M.a],components:{ElCollapseTransition:Ye.a},data:function(){return{contentWrapStyle:{height:"auto",display:"block"},contentHeight:0,focusing:!1,isClick:!1,id:Object(y["generateId"])()}},inject:["collapse"],props:{title:String,name:{type:[String,Number],default:function(){return this._uid}},disabled:Boolean},computed:{isActive:function(){return this.collapse.activeNames.indexOf(this.name)>-1}},methods:{handleFocus:function(){var e=this;setTimeout((function(){e.isClick?e.isClick=!1:e.focusing=!0}),50)},handleHeaderClick:function(){this.disabled||(this.dispatch("ElCollapse","item-click",this),this.focusing=!1,this.isClick=!0)},handleEnterClick:function(){this.dispatch("ElCollapse","item-click",this)}}},pf=ff,mf=s(pf,df,hf,!1,null,null,null);mf.options.__file="packages/collapse/src/collapse-item.vue";var vf=mf.exports;vf.install=function(e){e.component(vf.name,vf)};var gf=vf,yf=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:function(){return e.toggleDropDownVisible(!1)},expression:"() => toggleDropDownVisible(false)"}],ref:"reference",class:["el-cascader",e.realSize&&"el-cascader--"+e.realSize,{"is-disabled":e.isDisabled}],on:{mouseenter:function(t){e.inputHover=!0},mouseleave:function(t){e.inputHover=!1},click:function(){return e.toggleDropDownVisible(!e.readonly||void 0)},keydown:e.handleKeyDown}},[n("el-input",{ref:"input",class:{"is-focus":e.dropDownVisible},attrs:{size:e.realSize,placeholder:e.placeholder,readonly:e.readonly,disabled:e.isDisabled,"validate-event":!1},on:{focus:e.handleFocus,blur:e.handleBlur,input:e.handleInput},model:{value:e.multiple?e.presentText:e.inputValue,callback:function(t){e.multiple?e.presentText:e.inputValue=t},expression:"multiple ? presentText : inputValue"}},[n("template",{slot:"suffix"},[e.clearBtnVisible?n("i",{key:"clear",staticClass:"el-input__icon el-icon-circle-close",on:{click:function(t){return t.stopPropagation(),e.handleClear(t)}}}):n("i",{key:"arrow-down",class:["el-input__icon","el-icon-arrow-down",e.dropDownVisible&&"is-reverse"],on:{click:function(t){t.stopPropagation(),e.toggleDropDownVisible()}}})])],2),e.multiple?n("div",{staticClass:"el-cascader__tags"},[e._l(e.presentTags,(function(t){return n("el-tag",{key:t.key,attrs:{type:"info",size:e.tagSize,hit:t.hitState,closable:t.closable,"disable-transitions":""},on:{close:function(n){e.deleteTag(t)}}},[n("span",[e._v(e._s(t.text))])])})),e.filterable&&!e.isDisabled?n("input",{directives:[{name:"model",rawName:"v-model.trim",value:e.inputValue,expression:"inputValue",modifiers:{trim:!0}}],staticClass:"el-cascader__search-input",attrs:{type:"text",placeholder:e.presentTags.length?"":e.placeholder},domProps:{value:e.inputValue},on:{input:[function(t){t.target.composing||(e.inputValue=t.target.value.trim())},function(t){return e.handleInput(e.inputValue,t)}],click:function(t){t.stopPropagation(),e.toggleDropDownVisible(!0)},keydown:function(t){return!("button"in t)&&e._k(t.keyCode,"delete",[8,46],t.key,["Backspace","Delete","Del"])?null:e.handleDelete(t)},blur:function(t){e.$forceUpdate()}}}):e._e()],2):e._e(),n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":e.handleDropdownLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.dropDownVisible,expression:"dropDownVisible"}],ref:"popper",class:["el-popper","el-cascader__dropdown",e.popperClass]},[n("el-cascader-panel",{directives:[{name:"show",rawName:"v-show",value:!e.filtering,expression:"!filtering"}],ref:"panel",attrs:{options:e.options,props:e.config,border:!1,"render-label":e.$scopedSlots.default},on:{"expand-change":e.handleExpandChange,close:function(t){e.toggleDropDownVisible(!1)}},model:{value:e.checkedValue,callback:function(t){e.checkedValue=t},expression:"checkedValue"}}),e.filterable?n("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:e.filtering,expression:"filtering"}],ref:"suggestionPanel",staticClass:"el-cascader__suggestion-panel",attrs:{tag:"ul","view-class":"el-cascader__suggestion-list"},nativeOn:{keydown:function(t){return e.handleSuggestionKeyDown(t)}}},[e.suggestions.length?e._l(e.suggestions,(function(t,r){return n("li",{key:t.uid,class:["el-cascader__suggestion-item",t.checked&&"is-checked"],attrs:{tabindex:-1},on:{click:function(t){e.handleSuggestionClick(r)}}},[n("span",[e._v(e._s(t.text))]),t.checked?n("i",{staticClass:"el-icon-check"}):e._e()])})):e._t("empty",[n("li",{staticClass:"el-cascader__empty-text"},[e._v(e._s(e.t("el.cascader.noMatch")))])])],2):e._e()],1)])],1)},bf=[];yf._withStripped=!0;var xf=n(42),wf=n.n(xf),_f=n(34),Cf=n.n(_f),Sf=Cf.a.keys,Nf={expandTrigger:{newProp:"expandTrigger",type:String},changeOnSelect:{newProp:"checkStrictly",type:Boolean},hoverThreshold:{newProp:"hoverThreshold",type:Number}},kf={props:{placement:{type:String,default:"bottom-start"},appendToBody:q.a.props.appendToBody,visibleArrow:{type:Boolean,default:!0},arrowOffset:q.a.props.arrowOffset,offset:q.a.props.offset,boundariesPadding:q.a.props.boundariesPadding,popperOptions:q.a.props.popperOptions,transformOrigin:q.a.props.transformOrigin},methods:q.a.methods,data:q.a.data,beforeDestroy:q.a.beforeDestroy},Ef={medium:36,small:32,mini:28},Mf={name:"ElCascader",directives:{Clickoutside:L.a},mixins:[kf,M.a,g.a,k.a],inject:{elForm:{default:""},elFormItem:{default:""}},components:{ElInput:m.a,ElTag:Qn.a,ElScrollbar:U.a,ElCascaderPanel:wf.a},props:{value:{},options:Array,props:Object,size:String,placeholder:{type:String,default:function(){return Object(vs["t"])("el.cascader.placeholder")}},disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:Function,separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,debounce:{type:Number,default:300},beforeFilter:{type:Function,default:function(){return function(){}}},popperClass:String},data:function(){return{dropDownVisible:!1,checkedValue:this.value,inputHover:!1,inputValue:null,presentText:null,presentTags:[],checkedNodes:[],filtering:!1,suggestions:[],inputInitialHeight:0,pressDeleteCount:0}},computed:{realSize:function(){var e=(this.elFormItem||{}).elFormItemSize;return this.size||e||(this.$ELEMENT||{}).size},tagSize:function(){return["small","mini"].indexOf(this.realSize)>-1?"mini":"small"},isDisabled:function(){return this.disabled||(this.elForm||{}).disabled},config:function(){var e=this.props||{},t=this.$attrs;return Object.keys(Nf).forEach((function(n){var r=Nf[n],i=r.newProp,a=r.type,o=t[n]||t[Object(y["kebabCase"])(n)];Object(kt["isDef"])(n)&&!Object(kt["isDef"])(e[i])&&(a===Boolean&&""===o&&(o=!0),e[i]=o)})),e},multiple:function(){return this.config.multiple},leafOnly:function(){return!this.config.checkStrictly},readonly:function(){return!this.filterable||this.multiple},clearBtnVisible:function(){return!(!this.clearable||this.isDisabled||this.filtering||!this.inputHover)&&(this.multiple?!!this.checkedNodes.filter((function(e){return!e.isDisabled})).length:!!this.presentText)},panel:function(){return this.$refs.panel}},watch:{disabled:function(){this.computePresentContent()},value:function(e){Object(y["isEqual"])(e,this.checkedValue)||(this.checkedValue=e,this.computePresentContent())},checkedValue:function(e){var t=this.value,n=this.dropDownVisible,r=this.config,i=r.checkStrictly,a=r.multiple;Object(y["isEqual"])(e,t)&&!Object(Ud["isUndefined"])(t)||(this.computePresentContent(),a||i||!n||this.toggleDropDownVisible(!1),this.$emit("input",e),this.$emit("change",e),this.dispatch("ElFormItem","el.form.change",[e]))},options:{handler:function(){this.$nextTick(this.computePresentContent)},deep:!0},presentText:function(e){this.inputValue=e},presentTags:function(e,t){this.multiple&&(e.length||t.length)&&this.$nextTick(this.updateStyle)},filtering:function(e){this.$nextTick(this.updatePopper)}},mounted:function(){var e=this,t=this.$refs.input;t&&t.$el&&(this.inputInitialHeight=t.$el.offsetHeight||Ef[this.realSize]||40),this.isEmptyValue(this.value)||this.computePresentContent(),this.filterHandler=F()(this.debounce,(function(){var t=e.inputValue;if(t){var n=e.beforeFilter(t);n&&n.then?n.then(e.getSuggestions):!1!==n?e.getSuggestions():e.filtering=!1}else e.filtering=!1})),Object(er["addResizeListener"])(this.$el,this.updateStyle)},beforeDestroy:function(){Object(er["removeResizeListener"])(this.$el,this.updateStyle)},methods:{getMigratingConfig:function(){return{props:{"expand-trigger":"expand-trigger is removed, use `props.expandTrigger` instead.","change-on-select":"change-on-select is removed, use `props.checkStrictly` instead.","hover-threshold":"hover-threshold is removed, use `props.hoverThreshold` instead"},events:{"active-item-change":"active-item-change is renamed to expand-change"}}},toggleDropDownVisible:function(e){var t=this;if(!this.isDisabled){var n=this.dropDownVisible,r=this.$refs.input;e=Object(kt["isDef"])(e)?e:!n,e!==n&&(this.dropDownVisible=e,e&&this.$nextTick((function(){t.updatePopper(),t.panel.scrollIntoView()})),r.$refs.input.setAttribute("aria-expanded",e),this.$emit("visible-change",e))}},handleDropdownLeave:function(){this.filtering=!1,this.inputValue=this.presentText,this.doDestroy()},handleKeyDown:function(e){switch(e.keyCode){case Sf.enter:this.toggleDropDownVisible();break;case Sf.down:this.toggleDropDownVisible(!0),this.focusFirstNode(),e.preventDefault();break;case Sf.esc:case Sf.tab:this.toggleDropDownVisible(!1);break}},handleFocus:function(e){this.$emit("focus",e)},handleBlur:function(e){this.$emit("blur",e)},handleInput:function(e,t){!this.dropDownVisible&&this.toggleDropDownVisible(!0),t&&t.isComposing||(e?this.filterHandler():this.filtering=!1)},handleClear:function(){this.presentText="",this.panel.clearCheckedNodes()},handleExpandChange:function(e){this.$nextTick(this.updatePopper.bind(this)),this.$emit("expand-change",e),this.$emit("active-item-change",e)},focusFirstNode:function(){var e=this;this.$nextTick((function(){var t=e.filtering,n=e.$refs,r=n.popper,i=n.suggestionPanel,a=null;if(t&&i)a=i.$el.querySelector(".el-cascader__suggestion-item");else{var o=r.querySelector(".el-cascader-menu");a=o.querySelector('.el-cascader-node[tabindex="-1"]')}a&&(a.focus(),!t&&a.click())}))},computePresentContent:function(){var e=this;this.$nextTick((function(){e.config.multiple?(e.computePresentTags(),e.presentText=e.presentTags.length?" ":null):e.computePresentText()}))},isEmptyValue:function(e){var t=this.multiple,n=this.panel.config.emitPath;return!(!t&&!n)&&Object(y["isEmpty"])(e)},computePresentText:function(){var e=this.checkedValue,t=this.config;if(!this.isEmptyValue(e)){var n=this.panel.getNodeByValue(e);if(n&&(t.checkStrictly||n.isLeaf))return void(this.presentText=n.getText(this.showAllLevels,this.separator))}this.presentText=null},computePresentTags:function(){var e=this.isDisabled,t=this.leafOnly,n=this.showAllLevels,r=this.separator,i=this.collapseTags,a=this.getCheckedNodes(t),o=[],s=function(t){return{node:t,key:t.uid,text:t.getText(n,r),hitState:!1,closable:!e&&!t.isDisabled}};if(a.length){var l=a[0],u=a.slice(1),c=u.length;o.push(s(l)),c&&(i?o.push({key:-1,text:"+ "+c,closable:!1}):u.forEach((function(e){return o.push(s(e))})))}this.checkedNodes=a,this.presentTags=o},getSuggestions:function(){var e=this,t=this.filterMethod;Object(Ud["isFunction"])(t)||(t=function(e,t){return e.text.includes(t)});var n=this.panel.getFlattedNodes(this.leafOnly).filter((function(n){return!n.isDisabled&&(n.text=n.getText(e.showAllLevels,e.separator)||"",t(n,e.inputValue))}));this.multiple?this.presentTags.forEach((function(e){e.hitState=!1})):n.forEach((function(t){t.checked=Object(y["isEqual"])(e.checkedValue,t.getValueByOption())})),this.filtering=!0,this.suggestions=n,this.$nextTick(this.updatePopper)},handleSuggestionKeyDown:function(e){var t=e.keyCode,n=e.target;switch(t){case Sf.enter:n.click();break;case Sf.up:var r=n.previousElementSibling;r&&r.focus();break;case Sf.down:var i=n.nextElementSibling;i&&i.focus();break;case Sf.esc:case Sf.tab:this.toggleDropDownVisible(!1);break}},handleDelete:function(){var e=this.inputValue,t=this.pressDeleteCount,n=this.presentTags,r=n.length-1,i=n[r];this.pressDeleteCount=e?0:t+1,i&&this.pressDeleteCount&&(i.hitState?this.deleteTag(i):i.hitState=!0)},handleSuggestionClick:function(e){var t=this.multiple,n=this.suggestions[e];if(t){var r=n.checked;n.doCheck(!r),this.panel.calculateMultiCheckedValue()}else this.checkedValue=n.getValueByOption(),this.toggleDropDownVisible(!1)},deleteTag:function(e){var t=this.checkedValue,n=e.node.getValueByOption(),r=t.find((function(e){return Object(y["isEqual"])(e,n)}));this.checkedValue=t.filter((function(e){return!Object(y["isEqual"])(e,n)})),this.$emit("remove-tag",r)},updateStyle:function(){var e=this.$el,t=this.inputInitialHeight;if(!this.$isServer&&e){var n=this.$refs.suggestionPanel,r=e.querySelector(".el-input__inner");if(r){var i=e.querySelector(".el-cascader__tags"),a=null;if(n&&(a=n.$el)){var o=a.querySelector(".el-cascader__suggestion-list");o.style.minWidth=r.offsetWidth+"px"}if(i){var s=Math.round(i.getBoundingClientRect().height),l=Math.max(s+6,t)+"px";r.style.height=l,this.dropDownVisible&&this.updatePopper()}}}},getCheckedNodes:function(e){return this.panel.getCheckedNodes(e)}}},Of=Mf,Df=s(Of,yf,bf,!1,null,null,null);Df.options.__file="packages/cascader/src/cascader.vue";var Tf=Df.exports;Tf.install=function(e){e.component(Tf.name,Tf)};var Af=Tf,If=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.hide,expression:"hide"}],class:["el-color-picker",e.colorDisabled?"is-disabled":"",e.colorSize?"el-color-picker--"+e.colorSize:""]},[e.colorDisabled?n("div",{staticClass:"el-color-picker__mask"}):e._e(),n("div",{staticClass:"el-color-picker__trigger",on:{click:e.handleTrigger}},[n("span",{staticClass:"el-color-picker__color",class:{"is-alpha":e.showAlpha}},[n("span",{staticClass:"el-color-picker__color-inner",style:{backgroundColor:e.displayedColor}}),e.value||e.showPanelColor?e._e():n("span",{staticClass:"el-color-picker__empty el-icon-close"})]),n("span",{directives:[{name:"show",rawName:"v-show",value:e.value||e.showPanelColor,expression:"value || showPanelColor"}],staticClass:"el-color-picker__icon el-icon-arrow-down"})]),n("picker-dropdown",{ref:"dropdown",class:["el-color-picker__panel",e.popperClass||""],attrs:{color:e.color,"show-alpha":e.showAlpha,predefine:e.predefine},on:{pick:e.confirmValue,clear:e.clearValue},model:{value:e.showPicker,callback:function(t){e.showPicker=t},expression:"showPicker"}})],1)},$f=[];If._withStripped=!0;var Pf="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function jf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Ff=function(e,t,n){return[e,t*n/((e=(2-t)*n)<1?e:2-e)||0,e/2]},Bf=function(e){return"string"===typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)},Lf=function(e){return"string"===typeof e&&-1!==e.indexOf("%")},zf=function(e,t){Bf(e)&&(e="100%");var n=Lf(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)},Rf={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},Vf=function(e){var t=e.r,n=e.g,r=e.b,i=function(e){e=Math.min(Math.round(e),255);var t=Math.floor(e/16),n=e%16;return""+(Rf[t]||t)+(Rf[n]||n)};return isNaN(t)||isNaN(n)||isNaN(r)?"":"#"+i(t)+i(n)+i(r)},qf={A:10,B:11,C:12,D:13,E:14,F:15},Hf=function(e){return 2===e.length?16*(qf[e[0].toUpperCase()]||+e[0])+(qf[e[1].toUpperCase()]||+e[1]):qf[e[1].toUpperCase()]||+e[1]},Uf=function(e,t,n){t/=100,n/=100;var r=t,i=Math.max(n,.01),a=void 0,o=void 0;return n*=2,t*=n<=1?n:2-n,r*=i<=1?i:2-i,o=(n+t)/2,a=0===n?2*r/(i+r):2*t/(n+t),{h:e,s:100*a,v:100*o}},Wf=function(e,t,n){e=zf(e,255),t=zf(t,255),n=zf(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a=void 0,o=void 0,s=r,l=r-i;if(o=0===r?0:l/r,r===i)a=0;else{switch(r){case e:a=(t-n)/l+(t<n?6:0);break;case t:a=(n-e)/l+2;break;case n:a=(e-t)/l+4;break}a/=6}return{h:360*a,s:100*o,v:100*s}},Yf=function(e,t,n){e=6*zf(e,360),t=zf(t,100),n=zf(n,100);var r=Math.floor(e),i=e-r,a=n*(1-t),o=n*(1-i*t),s=n*(1-(1-i)*t),l=r%6,u=[n,o,a,a,s,n][l],c=[s,n,n,o,a,a][l],d=[a,a,s,n,n,o][l];return{r:Math.round(255*u),g:Math.round(255*c),b:Math.round(255*d)}},Gf=function(){function e(t){for(var n in jf(this,e),this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this.enableAlpha=!1,this.format="hex",this.value="",t=t||{},t)t.hasOwnProperty(n)&&(this[n]=t[n]);this.doOnChange()}return e.prototype.set=function(e,t){if(1!==arguments.length||"object"!==("undefined"===typeof e?"undefined":Pf(e)))this["_"+e]=t,this.doOnChange();else for(var n in e)e.hasOwnProperty(n)&&this.set(n,e[n])},e.prototype.get=function(e){return this["_"+e]},e.prototype.toRgb=function(){return Yf(this._hue,this._saturation,this._value)},e.prototype.fromString=function(e){var t=this;if(!e)return this._hue=0,this._saturation=100,this._value=100,void this.doOnChange();var n=function(e,n,r){t._hue=Math.max(0,Math.min(360,e)),t._saturation=Math.max(0,Math.min(100,n)),t._value=Math.max(0,Math.min(100,r)),t.doOnChange()};if(-1!==e.indexOf("hsl")){var r=e.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter((function(e){return""!==e})).map((function(e,t){return t>2?parseFloat(e):parseInt(e,10)}));if(4===r.length?this._alpha=Math.floor(100*parseFloat(r[3])):3===r.length&&(this._alpha=100),r.length>=3){var i=Uf(r[0],r[1],r[2]),a=i.h,o=i.s,s=i.v;n(a,o,s)}}else if(-1!==e.indexOf("hsv")){var l=e.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter((function(e){return""!==e})).map((function(e,t){return t>2?parseFloat(e):parseInt(e,10)}));4===l.length?this._alpha=Math.floor(100*parseFloat(l[3])):3===l.length&&(this._alpha=100),l.length>=3&&n(l[0],l[1],l[2])}else if(-1!==e.indexOf("rgb")){var u=e.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter((function(e){return""!==e})).map((function(e,t){return t>2?parseFloat(e):parseInt(e,10)}));if(4===u.length?this._alpha=Math.floor(100*parseFloat(u[3])):3===u.length&&(this._alpha=100),u.length>=3){var c=Wf(u[0],u[1],u[2]),d=c.h,h=c.s,f=c.v;n(d,h,f)}}else if(-1!==e.indexOf("#")){var p=e.replace("#","").trim();if(!/^(?:[0-9a-fA-F]{3}){1,2}|[0-9a-fA-F]{8}$/.test(p))return;var m=void 0,v=void 0,g=void 0;3===p.length?(m=Hf(p[0]+p[0]),v=Hf(p[1]+p[1]),g=Hf(p[2]+p[2])):6!==p.length&&8!==p.length||(m=Hf(p.substring(0,2)),v=Hf(p.substring(2,4)),g=Hf(p.substring(4,6))),8===p.length?this._alpha=Math.floor(Hf(p.substring(6))/255*100):3!==p.length&&6!==p.length||(this._alpha=100);var y=Wf(m,v,g),b=y.h,x=y.s,w=y.v;n(b,x,w)}},e.prototype.compare=function(e){return Math.abs(e._hue-this._hue)<2&&Math.abs(e._saturation-this._saturation)<1&&Math.abs(e._value-this._value)<1&&Math.abs(e._alpha-this._alpha)<1},e.prototype.doOnChange=function(){var e=this._hue,t=this._saturation,n=this._value,r=this._alpha,i=this.format;if(this.enableAlpha)switch(i){case"hsl":var a=Ff(e,t/100,n/100);this.value="hsla("+e+", "+Math.round(100*a[1])+"%, "+Math.round(100*a[2])+"%, "+r/100+")";break;case"hsv":this.value="hsva("+e+", "+Math.round(t)+"%, "+Math.round(n)+"%, "+r/100+")";break;default:var o=Yf(e,t,n),s=o.r,l=o.g,u=o.b;this.value="rgba("+s+", "+l+", "+u+", "+r/100+")"}else switch(i){case"hsl":var c=Ff(e,t/100,n/100);this.value="hsl("+e+", "+Math.round(100*c[1])+"%, "+Math.round(100*c[2])+"%)";break;case"hsv":this.value="hsv("+e+", "+Math.round(t)+"%, "+Math.round(n)+"%)";break;case"rgb":var d=Yf(e,t,n),h=d.r,f=d.g,p=d.b;this.value="rgb("+h+", "+f+", "+p+")";break;default:this.value=Vf(Yf(e,t,n))}},e}(),Kf=Gf,Xf=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":e.doDestroy}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.showPopper,expression:"showPopper"}],staticClass:"el-color-dropdown"},[n("div",{staticClass:"el-color-dropdown__main-wrapper"},[n("hue-slider",{ref:"hue",staticStyle:{float:"right"},attrs:{color:e.color,vertical:""}}),n("sv-panel",{ref:"sl",attrs:{color:e.color}})],1),e.showAlpha?n("alpha-slider",{ref:"alpha",attrs:{color:e.color}}):e._e(),e.predefine?n("predefine",{attrs:{color:e.color,colors:e.predefine}}):e._e(),n("div",{staticClass:"el-color-dropdown__btns"},[n("span",{staticClass:"el-color-dropdown__value"},[n("el-input",{attrs:{"validate-event":!1,size:"mini"},on:{blur:e.handleConfirm},nativeOn:{keyup:function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleConfirm(t)}},model:{value:e.customInput,callback:function(t){e.customInput=t},expression:"customInput"}})],1),n("el-button",{staticClass:"el-color-dropdown__link-btn",attrs:{size:"mini",type:"text"},on:{click:function(t){e.$emit("clear")}}},[e._v("\n "+e._s(e.t("el.colorpicker.clear"))+"\n ")]),n("el-button",{staticClass:"el-color-dropdown__btn",attrs:{plain:"",size:"mini"},on:{click:e.confirmValue}},[e._v("\n "+e._s(e.t("el.colorpicker.confirm"))+"\n ")])],1)],1)])},Zf=[];Xf._withStripped=!0;var Jf=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-color-svpanel",style:{backgroundColor:e.background}},[n("div",{staticClass:"el-color-svpanel__white"}),n("div",{staticClass:"el-color-svpanel__black"}),n("div",{staticClass:"el-color-svpanel__cursor",style:{top:e.cursorTop+"px",left:e.cursorLeft+"px"}},[n("div")])])},Qf=[];Jf._withStripped=!0;var ep=!1,tp=function(e,t){if(!Vr.a.prototype.$isServer){var n=function(e){t.drag&&t.drag(e)},r=function e(r){document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",e),document.onselectstart=null,document.ondragstart=null,ep=!1,t.end&&t.end(r)};e.addEventListener("mousedown",(function(e){ep||(document.onselectstart=function(){return!1},document.ondragstart=function(){return!1},document.addEventListener("mousemove",n),document.addEventListener("mouseup",r),ep=!0,t.start&&t.start(e))}))}},np={name:"el-sl-panel",props:{color:{required:!0}},computed:{colorValue:function(){var e=this.color.get("hue"),t=this.color.get("value");return{hue:e,value:t}}},watch:{colorValue:function(){this.update()}},methods:{update:function(){var e=this.color.get("saturation"),t=this.color.get("value"),n=this.$el,r=n.clientWidth,i=n.clientHeight;this.cursorLeft=e*r/100,this.cursorTop=(100-t)*i/100,this.background="hsl("+this.color.get("hue")+", 100%, 50%)"},handleDrag:function(e){var t=this.$el,n=t.getBoundingClientRect(),r=e.clientX-n.left,i=e.clientY-n.top;r=Math.max(0,r),r=Math.min(r,n.width),i=Math.max(0,i),i=Math.min(i,n.height),this.cursorLeft=r,this.cursorTop=i,this.color.set({saturation:r/n.width*100,value:100-i/n.height*100})}},mounted:function(){var e=this;tp(this.$el,{drag:function(t){e.handleDrag(t)},end:function(t){e.handleDrag(t)}}),this.update()},data:function(){return{cursorTop:0,cursorLeft:0,background:"hsl(0, 100%, 50%)"}}},rp=np,ip=s(rp,Jf,Qf,!1,null,null,null);ip.options.__file="packages/color-picker/src/components/sv-panel.vue";var ap=ip.exports,op=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-color-hue-slider",class:{"is-vertical":e.vertical}},[n("div",{ref:"bar",staticClass:"el-color-hue-slider__bar",on:{click:e.handleClick}}),n("div",{ref:"thumb",staticClass:"el-color-hue-slider__thumb",style:{left:e.thumbLeft+"px",top:e.thumbTop+"px"}})])},sp=[];op._withStripped=!0;var lp={name:"el-color-hue-slider",props:{color:{required:!0},vertical:Boolean},data:function(){return{thumbLeft:0,thumbTop:0}},computed:{hueValue:function(){var e=this.color.get("hue");return e}},watch:{hueValue:function(){this.update()}},methods:{handleClick:function(e){var t=this.$refs.thumb,n=e.target;n!==t&&this.handleDrag(e)},handleDrag:function(e){var t=this.$el.getBoundingClientRect(),n=this.$refs.thumb,r=void 0;if(this.vertical){var i=e.clientY-t.top;i=Math.min(i,t.height-n.offsetHeight/2),i=Math.max(n.offsetHeight/2,i),r=Math.round((i-n.offsetHeight/2)/(t.height-n.offsetHeight)*360)}else{var a=e.clientX-t.left;a=Math.min(a,t.width-n.offsetWidth/2),a=Math.max(n.offsetWidth/2,a),r=Math.round((a-n.offsetWidth/2)/(t.width-n.offsetWidth)*360)}this.color.set("hue",r)},getThumbLeft:function(){if(this.vertical)return 0;var e=this.$el,t=this.color.get("hue");if(!e)return 0;var n=this.$refs.thumb;return Math.round(t*(e.offsetWidth-n.offsetWidth/2)/360)},getThumbTop:function(){if(!this.vertical)return 0;var e=this.$el,t=this.color.get("hue");if(!e)return 0;var n=this.$refs.thumb;return Math.round(t*(e.offsetHeight-n.offsetHeight/2)/360)},update:function(){this.thumbLeft=this.getThumbLeft(),this.thumbTop=this.getThumbTop()}},mounted:function(){var e=this,t=this.$refs,n=t.bar,r=t.thumb,i={drag:function(t){e.handleDrag(t)},end:function(t){e.handleDrag(t)}};tp(n,i),tp(r,i),this.update()}},up=lp,cp=s(up,op,sp,!1,null,null,null);cp.options.__file="packages/color-picker/src/components/hue-slider.vue";var dp=cp.exports,hp=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-color-alpha-slider",class:{"is-vertical":e.vertical}},[n("div",{ref:"bar",staticClass:"el-color-alpha-slider__bar",style:{background:e.background},on:{click:e.handleClick}}),n("div",{ref:"thumb",staticClass:"el-color-alpha-slider__thumb",style:{left:e.thumbLeft+"px",top:e.thumbTop+"px"}})])},fp=[];hp._withStripped=!0;var pp={name:"el-color-alpha-slider",props:{color:{required:!0},vertical:Boolean},watch:{"color._alpha":function(){this.update()},"color.value":function(){this.update()}},methods:{handleClick:function(e){var t=this.$refs.thumb,n=e.target;n!==t&&this.handleDrag(e)},handleDrag:function(e){var t=this.$el.getBoundingClientRect(),n=this.$refs.thumb;if(this.vertical){var r=e.clientY-t.top;r=Math.max(n.offsetHeight/2,r),r=Math.min(r,t.height-n.offsetHeight/2),this.color.set("alpha",Math.round((r-n.offsetHeight/2)/(t.height-n.offsetHeight)*100))}else{var i=e.clientX-t.left;i=Math.max(n.offsetWidth/2,i),i=Math.min(i,t.width-n.offsetWidth/2),this.color.set("alpha",Math.round((i-n.offsetWidth/2)/(t.width-n.offsetWidth)*100))}},getThumbLeft:function(){if(this.vertical)return 0;var e=this.$el,t=this.color._alpha;if(!e)return 0;var n=this.$refs.thumb;return Math.round(t*(e.offsetWidth-n.offsetWidth/2)/100)},getThumbTop:function(){if(!this.vertical)return 0;var e=this.$el,t=this.color._alpha;if(!e)return 0;var n=this.$refs.thumb;return Math.round(t*(e.offsetHeight-n.offsetHeight/2)/100)},getBackground:function(){if(this.color&&this.color.value){var e=this.color.toRgb(),t=e.r,n=e.g,r=e.b;return"linear-gradient(to right, rgba("+t+", "+n+", "+r+", 0) 0%, rgba("+t+", "+n+", "+r+", 1) 100%)"}return null},update:function(){this.thumbLeft=this.getThumbLeft(),this.thumbTop=this.getThumbTop(),this.background=this.getBackground()}},data:function(){return{thumbLeft:0,thumbTop:0,background:null}},mounted:function(){var e=this,t=this.$refs,n=t.bar,r=t.thumb,i={drag:function(t){e.handleDrag(t)},end:function(t){e.handleDrag(t)}};tp(n,i),tp(r,i),this.update()}},mp=pp,vp=s(mp,hp,fp,!1,null,null,null);vp.options.__file="packages/color-picker/src/components/alpha-slider.vue";var gp=vp.exports,yp=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-color-predefine"},[n("div",{staticClass:"el-color-predefine__colors"},e._l(e.rgbaColors,(function(t,r){return n("div",{key:e.colors[r],staticClass:"el-color-predefine__color-selector",class:{selected:t.selected,"is-alpha":t._alpha<100},on:{click:function(t){e.handleSelect(r)}}},[n("div",{style:{"background-color":t.value}})])})),0)])},bp=[];yp._withStripped=!0;var xp={props:{colors:{type:Array,required:!0},color:{required:!0}},data:function(){return{rgbaColors:this.parseColors(this.colors,this.color)}},methods:{handleSelect:function(e){this.color.fromString(this.colors[e])},parseColors:function(e,t){return e.map((function(e){var n=new Kf;return n.enableAlpha=!0,n.format="rgba",n.fromString(e),n.selected=n.value===t.value,n}))}},watch:{"$parent.currentColor":function(e){var t=new Kf;t.fromString(e),this.rgbaColors.forEach((function(e){e.selected=t.compare(e)}))},colors:function(e){this.rgbaColors=this.parseColors(e,this.color)},color:function(e){this.rgbaColors=this.parseColors(this.colors,e)}}},wp=xp,_p=s(wp,yp,bp,!1,null,null,null);_p.options.__file="packages/color-picker/src/components/predefine.vue";var Cp=_p.exports,Sp={name:"el-color-picker-dropdown",mixins:[q.a,g.a],components:{SvPanel:ap,HueSlider:dp,AlphaSlider:gp,ElInput:m.a,ElButton:oe.a,Predefine:Cp},props:{color:{required:!0},showAlpha:Boolean,predefine:Array},data:function(){return{customInput:""}},computed:{currentColor:function(){var e=this.$parent;return e.value||e.showPanelColor?e.color.value:""}},methods:{confirmValue:function(){this.$emit("pick")},handleConfirm:function(){this.color.fromString(this.customInput)}},mounted:function(){this.$parent.popperElm=this.popperElm=this.$el,this.referenceElm=this.$parent.$el},watch:{showPopper:function(e){var t=this;!0===e&&this.$nextTick((function(){var e=t.$refs,n=e.sl,r=e.hue,i=e.alpha;n&&n.update(),r&&r.update(),i&&i.update()}))},currentColor:{immediate:!0,handler:function(e){this.customInput=e}}}},Np=Sp,kp=s(Np,Xf,Zf,!1,null,null,null);kp.options.__file="packages/color-picker/src/components/picker-dropdown.vue";var Ep=kp.exports,Mp={name:"ElColorPicker",mixins:[M.a],props:{value:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:String,popperClass:String,predefine:Array},inject:{elForm:{default:""},elFormItem:{default:""}},directives:{Clickoutside:L.a},computed:{displayedColor:function(){return this.value||this.showPanelColor?this.displayedRgb(this.color,this.showAlpha):"transparent"},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},colorSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},colorDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{value:function(e){e?e&&e!==this.color.value&&this.color.fromString(e):this.showPanelColor=!1},color:{deep:!0,handler:function(){this.showPanelColor=!0}},displayedColor:function(e){if(this.showPicker){var t=new Kf({enableAlpha:this.showAlpha,format:this.colorFormat});t.fromString(this.value);var n=this.displayedRgb(t,this.showAlpha);e!==n&&this.$emit("active-change",e)}}},methods:{handleTrigger:function(){this.colorDisabled||(this.showPicker=!this.showPicker)},confirmValue:function(){var e=this.color.value;this.$emit("input",e),this.$emit("change",e),this.dispatch("ElFormItem","el.form.change",e),this.showPicker=!1},clearValue:function(){this.$emit("input",null),this.$emit("change",null),null!==this.value&&this.dispatch("ElFormItem","el.form.change",null),this.showPanelColor=!1,this.showPicker=!1,this.resetColor()},hide:function(){this.showPicker=!1,this.resetColor()},resetColor:function(){var e=this;this.$nextTick((function(t){e.value?e.color.fromString(e.value):e.showPanelColor=!1}))},displayedRgb:function(e,t){if(!(e instanceof Kf))throw Error("color should be instance of Color Class");var n=e.toRgb(),r=n.r,i=n.g,a=n.b;return t?"rgba("+r+", "+i+", "+a+", "+e.get("alpha")/100+")":"rgb("+r+", "+i+", "+a+")"}},mounted:function(){var e=this.value;e&&this.color.fromString(e),this.popperElm=this.$refs.dropdown.$el},data:function(){var e=new Kf({enableAlpha:this.showAlpha,format:this.colorFormat});return{color:e,showPicker:!1,showPanelColor:!1}},components:{PickerDropdown:Ep}},Op=Mp,Dp=s(Op,If,$f,!1,null,null,null);Dp.options.__file="packages/color-picker/src/main.vue";var Tp=Dp.exports;Tp.install=function(e){e.component(Tp.name,Tp)};var Ap=Tp,Ip=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-transfer"},[n("transfer-panel",e._b({ref:"leftPanel",attrs:{data:e.sourceData,title:e.titles[0]||e.t("el.transfer.titles.0"),"default-checked":e.leftDefaultChecked,placeholder:e.filterPlaceholder||e.t("el.transfer.filterPlaceholder")},on:{"checked-change":e.onSourceCheckedChange}},"transfer-panel",e.$props,!1),[e._t("left-footer")],2),n("div",{staticClass:"el-transfer__buttons"},[n("el-button",{class:["el-transfer__button",e.hasButtonTexts?"is-with-texts":""],attrs:{type:"primary",disabled:0===e.rightChecked.length},nativeOn:{click:function(t){return e.addToLeft(t)}}},[n("i",{staticClass:"el-icon-arrow-left"}),void 0!==e.buttonTexts[0]?n("span",[e._v(e._s(e.buttonTexts[0]))]):e._e()]),n("el-button",{class:["el-transfer__button",e.hasButtonTexts?"is-with-texts":""],attrs:{type:"primary",disabled:0===e.leftChecked.length},nativeOn:{click:function(t){return e.addToRight(t)}}},[void 0!==e.buttonTexts[1]?n("span",[e._v(e._s(e.buttonTexts[1]))]):e._e(),n("i",{staticClass:"el-icon-arrow-right"})])],1),n("transfer-panel",e._b({ref:"rightPanel",attrs:{data:e.targetData,title:e.titles[1]||e.t("el.transfer.titles.1"),"default-checked":e.rightDefaultChecked,placeholder:e.filterPlaceholder||e.t("el.transfer.filterPlaceholder")},on:{"checked-change":e.onTargetCheckedChange}},"transfer-panel",e.$props,!1),[e._t("right-footer")],2)],1)},$p=[];Ip._withStripped=!0;var Pp=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-transfer-panel"},[n("p",{staticClass:"el-transfer-panel__header"},[n("el-checkbox",{attrs:{indeterminate:e.isIndeterminate},on:{change:e.handleAllCheckedChange},model:{value:e.allChecked,callback:function(t){e.allChecked=t},expression:"allChecked"}},[e._v("\n "+e._s(e.title)+"\n "),n("span",[e._v(e._s(e.checkedSummary))])])],1),n("div",{class:["el-transfer-panel__body",e.hasFooter?"is-with-footer":""]},[e.filterable?n("el-input",{staticClass:"el-transfer-panel__filter",attrs:{size:"small",placeholder:e.placeholder},nativeOn:{mouseenter:function(t){e.inputHover=!0},mouseleave:function(t){e.inputHover=!1}},model:{value:e.query,callback:function(t){e.query=t},expression:"query"}},[n("i",{class:["el-input__icon","el-icon-"+e.inputIcon],attrs:{slot:"prefix"},on:{click:e.clearQuery},slot:"prefix"})]):e._e(),n("el-checkbox-group",{directives:[{name:"show",rawName:"v-show",value:!e.hasNoMatch&&e.data.length>0,expression:"!hasNoMatch && data.length > 0"}],staticClass:"el-transfer-panel__list",class:{"is-filterable":e.filterable},model:{value:e.checked,callback:function(t){e.checked=t},expression:"checked"}},e._l(e.filteredData,(function(t){return n("el-checkbox",{key:t[e.keyProp],staticClass:"el-transfer-panel__item",attrs:{label:t[e.keyProp],disabled:t[e.disabledProp]}},[n("option-content",{attrs:{option:t}})],1)})),1),n("p",{directives:[{name:"show",rawName:"v-show",value:e.hasNoMatch,expression:"hasNoMatch"}],staticClass:"el-transfer-panel__empty"},[e._v(e._s(e.t("el.transfer.noMatch")))]),n("p",{directives:[{name:"show",rawName:"v-show",value:0===e.data.length&&!e.hasNoMatch,expression:"data.length === 0 && !hasNoMatch"}],staticClass:"el-transfer-panel__empty"},[e._v(e._s(e.t("el.transfer.noData")))])],1),e.hasFooter?n("p",{staticClass:"el-transfer-panel__footer"},[e._t("default")],2):e._e()])},jp=[];Pp._withStripped=!0;var Fp={mixins:[g.a],name:"ElTransferPanel",componentName:"ElTransferPanel",components:{ElCheckboxGroup:Ai.a,ElCheckbox:$r.a,ElInput:m.a,OptionContent:{props:{option:Object},render:function(e){var t=function e(t){return"ElTransferPanel"===t.$options.componentName?t:t.$parent?e(t.$parent):t},n=t(this),r=n.$parent||n;return n.renderContent?n.renderContent(e,this.option):r.$scopedSlots.default?r.$scopedSlots.default({option:this.option}):e("span",[this.option[n.labelProp]||this.option[n.keyProp]])}}},props:{data:{type:Array,default:function(){return[]}},renderContent:Function,placeholder:String,title:String,filterable:Boolean,format:Object,filterMethod:Function,defaultChecked:Array,props:Object},data:function(){return{checked:[],allChecked:!1,query:"",inputHover:!1,checkChangeByUser:!0}},watch:{checked:function(e,t){if(this.updateAllChecked(),this.checkChangeByUser){var n=e.concat(t).filter((function(n){return-1===e.indexOf(n)||-1===t.indexOf(n)}));this.$emit("checked-change",e,n)}else this.$emit("checked-change",e),this.checkChangeByUser=!0},data:function(){var e=this,t=[],n=this.filteredData.map((function(t){return t[e.keyProp]}));this.checked.forEach((function(e){n.indexOf(e)>-1&&t.push(e)})),this.checkChangeByUser=!1,this.checked=t},checkableData:function(){this.updateAllChecked()},defaultChecked:{immediate:!0,handler:function(e,t){var n=this;if(!t||e.length!==t.length||!e.every((function(e){return t.indexOf(e)>-1}))){var r=[],i=this.checkableData.map((function(e){return e[n.keyProp]}));e.forEach((function(e){i.indexOf(e)>-1&&r.push(e)})),this.checkChangeByUser=!1,this.checked=r}}}},computed:{filteredData:function(){var e=this;return this.data.filter((function(t){if("function"===typeof e.filterMethod)return e.filterMethod(e.query,t);var n=t[e.labelProp]||t[e.keyProp].toString();return n.toLowerCase().indexOf(e.query.toLowerCase())>-1}))},checkableData:function(){var e=this;return this.filteredData.filter((function(t){return!t[e.disabledProp]}))},checkedSummary:function(){var e=this.checked.length,t=this.data.length,n=this.format,r=n.noChecked,i=n.hasChecked;return r&&i?e>0?i.replace(/\${checked}/g,e).replace(/\${total}/g,t):r.replace(/\${total}/g,t):e+"/"+t},isIndeterminate:function(){var e=this.checked.length;return e>0&&e<this.checkableData.length},hasNoMatch:function(){return this.query.length>0&&0===this.filteredData.length},inputIcon:function(){return this.query.length>0&&this.inputHover?"circle-close":"search"},labelProp:function(){return this.props.label||"label"},keyProp:function(){return this.props.key||"key"},disabledProp:function(){return this.props.disabled||"disabled"},hasFooter:function(){return!!this.$slots.default}},methods:{updateAllChecked:function(){var e=this,t=this.checkableData.map((function(t){return t[e.keyProp]}));this.allChecked=t.length>0&&t.every((function(t){return e.checked.indexOf(t)>-1}))},handleAllCheckedChange:function(e){var t=this;this.checked=e?this.checkableData.map((function(e){return e[t.keyProp]})):[]},clearQuery:function(){"circle-close"===this.inputIcon&&(this.query="")}}},Bp=Fp,Lp=s(Bp,Pp,jp,!1,null,null,null);Lp.options.__file="packages/transfer/src/transfer-panel.vue";var zp=Lp.exports,Rp={name:"ElTransfer",mixins:[M.a,g.a,k.a],components:{TransferPanel:zp,ElButton:oe.a},props:{data:{type:Array,default:function(){return[]}},titles:{type:Array,default:function(){return[]}},buttonTexts:{type:Array,default:function(){return[]}},filterPlaceholder:{type:String,default:""},filterMethod:Function,leftDefaultChecked:{type:Array,default:function(){return[]}},rightDefaultChecked:{type:Array,default:function(){return[]}},renderContent:Function,value:{type:Array,default:function(){return[]}},format:{type:Object,default:function(){return{}}},filterable:Boolean,props:{type:Object,default:function(){return{label:"label",key:"key",disabled:"disabled"}}},targetOrder:{type:String,default:"original"}},data:function(){return{leftChecked:[],rightChecked:[]}},computed:{dataObj:function(){var e=this.props.key;return this.data.reduce((function(t,n){return(t[n[e]]=n)&&t}),{})},sourceData:function(){var e=this;return this.data.filter((function(t){return-1===e.value.indexOf(t[e.props.key])}))},targetData:function(){var e=this;return"original"===this.targetOrder?this.data.filter((function(t){return e.value.indexOf(t[e.props.key])>-1})):this.value.reduce((function(t,n){var r=e.dataObj[n];return r&&t.push(r),t}),[])},hasButtonTexts:function(){return 2===this.buttonTexts.length}},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",e)}},methods:{getMigratingConfig:function(){return{props:{"footer-format":"footer-format is renamed to format."}}},onSourceCheckedChange:function(e,t){this.leftChecked=e,void 0!==t&&this.$emit("left-check-change",e,t)},onTargetCheckedChange:function(e,t){this.rightChecked=e,void 0!==t&&this.$emit("right-check-change",e,t)},addToLeft:function(){var e=this.value.slice();this.rightChecked.forEach((function(t){var n=e.indexOf(t);n>-1&&e.splice(n,1)})),this.$emit("input",e),this.$emit("change",e,"left",this.rightChecked)},addToRight:function(){var e=this,t=this.value.slice(),n=[],r=this.props.key;this.data.forEach((function(t){var i=t[r];e.leftChecked.indexOf(i)>-1&&-1===e.value.indexOf(i)&&n.push(i)})),t="unshift"===this.targetOrder?n.concat(t):t.concat(n),this.$emit("input",t),this.$emit("change",t,"right",this.leftChecked)},clearQuery:function(e){"left"===e?this.$refs.leftPanel.query="":"right"===e&&(this.$refs.rightPanel.query="")}}},Vp=Rp,qp=s(Vp,Ip,$p,!1,null,null,null);qp.options.__file="packages/transfer/src/main.vue";var Hp=qp.exports;Hp.install=function(e){e.component(Hp.name,Hp)};var Up=Hp,Wp=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("section",{staticClass:"el-container",class:{"is-vertical":e.isVertical}},[e._t("default")],2)},Yp=[];Wp._withStripped=!0;var Gp={name:"ElContainer",componentName:"ElContainer",props:{direction:String},computed:{isVertical:function(){return"vertical"===this.direction||"horizontal"!==this.direction&&(!(!this.$slots||!this.$slots.default)&&this.$slots.default.some((function(e){var t=e.componentOptions&&e.componentOptions.tag;return"el-header"===t||"el-footer"===t})))}}},Kp=Gp,Xp=s(Kp,Wp,Yp,!1,null,null,null);Xp.options.__file="packages/container/src/main.vue";var Zp=Xp.exports;Zp.install=function(e){e.component(Zp.name,Zp)};var Jp=Zp,Qp=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("header",{staticClass:"el-header",style:{height:e.height}},[e._t("default")],2)},em=[];Qp._withStripped=!0;var tm={name:"ElHeader",componentName:"ElHeader",props:{height:{type:String,default:"60px"}}},nm=tm,rm=s(nm,Qp,em,!1,null,null,null);rm.options.__file="packages/header/src/main.vue";var im=rm.exports;im.install=function(e){e.component(im.name,im)};var am=im,om=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("aside",{staticClass:"el-aside",style:{width:e.width}},[e._t("default")],2)},sm=[];om._withStripped=!0;var lm={name:"ElAside",componentName:"ElAside",props:{width:{type:String,default:"300px"}}},um=lm,cm=s(um,om,sm,!1,null,null,null);cm.options.__file="packages/aside/src/main.vue";var dm=cm.exports;dm.install=function(e){e.component(dm.name,dm)};var hm=dm,fm=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("main",{staticClass:"el-main"},[e._t("default")],2)},pm=[];fm._withStripped=!0;var mm={name:"ElMain",componentName:"ElMain"},vm=mm,gm=s(vm,fm,pm,!1,null,null,null);gm.options.__file="packages/main/src/main.vue";var ym=gm.exports;ym.install=function(e){e.component(ym.name,ym)};var bm=ym,xm=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("footer",{staticClass:"el-footer",style:{height:e.height}},[e._t("default")],2)},wm=[];xm._withStripped=!0;var _m={name:"ElFooter",componentName:"ElFooter",props:{height:{type:String,default:"60px"}}},Cm=_m,Sm=s(Cm,xm,wm,!1,null,null,null);Sm.options.__file="packages/footer/src/main.vue";var Nm=Sm.exports;Nm.install=function(e){e.component(Nm.name,Nm)};var km,Em,Mm=Nm,Om={name:"ElTimeline",props:{reverse:{type:Boolean,default:!1}},provide:function(){return{timeline:this}},render:function(){var e=arguments[0],t=this.reverse,n={"el-timeline":!0,"is-reverse":t},r=this.$slots.default||[];return t&&(r=r.reverse()),e("ul",{class:n},[r])}},Dm=Om,Tm=s(Dm,km,Em,!1,null,null,null);Tm.options.__file="packages/timeline/src/main.vue";var Am=Tm.exports;Am.install=function(e){e.component(Am.name,Am)};var Im=Am,$m=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{staticClass:"el-timeline-item"},[n("div",{staticClass:"el-timeline-item__tail"}),e.$slots.dot?e._e():n("div",{staticClass:"el-timeline-item__node",class:["el-timeline-item__node--"+(e.size||""),"el-timeline-item__node--"+(e.type||"")],style:{backgroundColor:e.color}},[e.icon?n("i",{staticClass:"el-timeline-item__icon",class:e.icon}):e._e()]),e.$slots.dot?n("div",{staticClass:"el-timeline-item__dot"},[e._t("dot")],2):e._e(),n("div",{staticClass:"el-timeline-item__wrapper"},[e.hideTimestamp||"top"!==e.placement?e._e():n("div",{staticClass:"el-timeline-item__timestamp is-top"},[e._v("\n "+e._s(e.timestamp)+"\n ")]),n("div",{staticClass:"el-timeline-item__content"},[e._t("default")],2),e.hideTimestamp||"bottom"!==e.placement?e._e():n("div",{staticClass:"el-timeline-item__timestamp is-bottom"},[e._v("\n "+e._s(e.timestamp)+"\n ")])])])},Pm=[];$m._withStripped=!0;var jm={name:"ElTimelineItem",inject:["timeline"],props:{timestamp:String,hideTimestamp:{type:Boolean,default:!1},placement:{type:String,default:"bottom"},type:String,color:String,size:{type:String,default:"normal"},icon:String}},Fm=jm,Bm=s(Fm,$m,Pm,!1,null,null,null);Bm.options.__file="packages/timeline/src/item.vue";var Lm=Bm.exports;Lm.install=function(e){e.component(Lm.name,Lm)};var zm=Lm,Rm=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a",e._b({class:["el-link",e.type?"el-link--"+e.type:"",e.disabled&&"is-disabled",e.underline&&!e.disabled&&"is-underline"],attrs:{href:e.disabled?null:e.href},on:{click:e.handleClick}},"a",e.$attrs,!1),[e.icon?n("i",{class:e.icon}):e._e(),e.$slots.default?n("span",{staticClass:"el-link--inner"},[e._t("default")],2):e._e(),e.$slots.icon?[e.$slots.icon?e._t("icon"):e._e()]:e._e()],2)},Vm=[];Rm._withStripped=!0;var qm={name:"ElLink",props:{type:{type:String,default:"default"},underline:{type:Boolean,default:!0},disabled:Boolean,href:String,icon:String},methods:{handleClick:function(e){this.disabled||this.href||this.$emit("click",e)}}},Hm=qm,Um=s(Hm,Rm,Vm,!1,null,null,null);Um.options.__file="packages/link/src/main.vue";var Wm=Um.exports;Wm.install=function(e){e.component(Wm.name,Wm)};var Ym=Wm,Gm=function(e,t){var n=t._c;return n("div",t._g(t._b({class:[t.data.staticClass,"el-divider","el-divider--"+t.props.direction]},"div",t.data.attrs,!1),t.listeners),[t.slots().default&&"vertical"!==t.props.direction?n("div",{class:["el-divider__text","is-"+t.props.contentPosition]},[t._t("default")],2):t._e()])},Km=[];Gm._withStripped=!0;var Xm={name:"ElDivider",props:{direction:{type:String,default:"horizontal",validator:function(e){return-1!==["horizontal","vertical"].indexOf(e)}},contentPosition:{type:String,default:"center",validator:function(e){return-1!==["left","center","right"].indexOf(e)}}}},Zm=Xm,Jm=s(Zm,Gm,Km,!0,null,null,null);Jm.options.__file="packages/divider/src/main.vue";var Qm=Jm.exports;Qm.install=function(e){e.component(Qm.name,Qm)};var ev=Qm,tv=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-image"},[e.loading?e._t("placeholder",[n("div",{staticClass:"el-image__placeholder"})]):e.error?e._t("error",[n("div",{staticClass:"el-image__error"},[e._v(e._s(e.t("el.image.error")))])]):n("img",e._g(e._b({staticClass:"el-image__inner",class:{"el-image__inner--center":e.alignCenter,"el-image__preview":e.preview},style:e.imageStyle,attrs:{src:e.src},on:{click:e.clickHandler}},"img",e.$attrs,!1),e.$listeners)),e.preview?[e.showViewer?n("image-viewer",{attrs:{"z-index":e.zIndex,"initial-index":e.imageIndex,"on-close":e.closeViewer,"url-list":e.previewSrcList}}):e._e()]:e._e()],2)},nv=[];tv._withStripped=!0;var rv=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"viewer-fade"}},[n("div",{ref:"el-image-viewer__wrapper",staticClass:"el-image-viewer__wrapper",style:{"z-index":e.viewerZIndex},attrs:{tabindex:"-1"}},[n("div",{staticClass:"el-image-viewer__mask",on:{click:function(t){return t.target!==t.currentTarget?null:e.handleMaskClick(t)}}}),n("span",{staticClass:"el-image-viewer__btn el-image-viewer__close",on:{click:e.hide}},[n("i",{staticClass:"el-icon-close"})]),e.isSingle?e._e():[n("span",{staticClass:"el-image-viewer__btn el-image-viewer__prev",class:{"is-disabled":!e.infinite&&e.isFirst},on:{click:e.prev}},[n("i",{staticClass:"el-icon-arrow-left"})]),n("span",{staticClass:"el-image-viewer__btn el-image-viewer__next",class:{"is-disabled":!e.infinite&&e.isLast},on:{click:e.next}},[n("i",{staticClass:"el-icon-arrow-right"})])],n("div",{staticClass:"el-image-viewer__btn el-image-viewer__actions"},[n("div",{staticClass:"el-image-viewer__actions__inner"},[n("i",{staticClass:"el-icon-zoom-out",on:{click:function(t){e.handleActions("zoomOut")}}}),n("i",{staticClass:"el-icon-zoom-in",on:{click:function(t){e.handleActions("zoomIn")}}}),n("i",{staticClass:"el-image-viewer__actions__divider"}),n("i",{class:e.mode.icon,on:{click:e.toggleMode}}),n("i",{staticClass:"el-image-viewer__actions__divider"}),n("i",{staticClass:"el-icon-refresh-left",on:{click:function(t){e.handleActions("anticlocelise")}}}),n("i",{staticClass:"el-icon-refresh-right",on:{click:function(t){e.handleActions("clocelise")}}})])]),n("div",{staticClass:"el-image-viewer__canvas"},e._l(e.urlList,(function(t,r){return r===e.index?n("img",{key:t,ref:"img",refInFor:!0,staticClass:"el-image-viewer__img",style:e.imgStyle,attrs:{src:e.currentImg},on:{load:e.handleImgLoad,error:e.handleImgError,mousedown:e.handleMouseDown}}):e._e()})),0)],2)])},iv=[];rv._withStripped=!0;var av=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ov={CONTAIN:{name:"contain",icon:"el-icon-full-screen"},ORIGINAL:{name:"original",icon:"el-icon-c-scale-to-original"}},sv=Object(y["isFirefox"])()?"DOMMouseScroll":"mousewheel",lv={name:"elImageViewer",props:{urlList:{type:Array,default:function(){return[]}},zIndex:{type:Number,default:2e3},onSwitch:{type:Function,default:function(){}},onClose:{type:Function,default:function(){}},initialIndex:{type:Number,default:0},appendToBody:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0}},data:function(){return{index:this.initialIndex,isShow:!1,infinite:!0,loading:!1,mode:ov.CONTAIN,transform:{scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}},computed:{isSingle:function(){return this.urlList.length<=1},isFirst:function(){return 0===this.index},isLast:function(){return this.index===this.urlList.length-1},currentImg:function(){return this.urlList[this.index]},imgStyle:function(){var e=this.transform,t=e.scale,n=e.deg,r=e.offsetX,i=e.offsetY,a=e.enableTransition,o={transform:"scale("+t+") rotate("+n+"deg)",transition:a?"transform .3s":"","margin-left":r+"px","margin-top":i+"px"};return this.mode===ov.CONTAIN&&(o.maxWidth=o.maxHeight="100%"),o},viewerZIndex:function(){var e=C["PopupManager"].nextZIndex();return this.zIndex>e?this.zIndex:e}},watch:{index:{handler:function(e){this.reset(),this.onSwitch(e)}},currentImg:function(e){var t=this;this.$nextTick((function(e){var n=t.$refs.img[0];n.complete||(t.loading=!0)}))}},methods:{hide:function(){this.deviceSupportUninstall(),this.onClose()},deviceSupportInstall:function(){var e=this;this._keyDownHandler=function(t){t.stopPropagation();var n=t.keyCode;switch(n){case 27:e.hide();break;case 32:e.toggleMode();break;case 37:e.prev();break;case 38:e.handleActions("zoomIn");break;case 39:e.next();break;case 40:e.handleActions("zoomOut");break}},this._mouseWheelHandler=Object(y["rafThrottle"])((function(t){var n=t.wheelDelta?t.wheelDelta:-t.detail;n>0?e.handleActions("zoomIn",{zoomRate:.015,enableTransition:!1}):e.handleActions("zoomOut",{zoomRate:.015,enableTransition:!1})})),Object(Be["on"])(document,"keydown",this._keyDownHandler),Object(Be["on"])(document,sv,this._mouseWheelHandler)},deviceSupportUninstall:function(){Object(Be["off"])(document,"keydown",this._keyDownHandler),Object(Be["off"])(document,sv,this._mouseWheelHandler),this._keyDownHandler=null,this._mouseWheelHandler=null},handleImgLoad:function(e){this.loading=!1},handleImgError:function(e){this.loading=!1,e.target.alt="加载失败"},handleMouseDown:function(e){var t=this;if(!this.loading&&0===e.button){var n=this.transform,r=n.offsetX,i=n.offsetY,a=e.pageX,o=e.pageY;this._dragHandler=Object(y["rafThrottle"])((function(e){t.transform.offsetX=r+e.pageX-a,t.transform.offsetY=i+e.pageY-o})),Object(Be["on"])(document,"mousemove",this._dragHandler),Object(Be["on"])(document,"mouseup",(function(e){Object(Be["off"])(document,"mousemove",t._dragHandler)})),e.preventDefault()}},handleMaskClick:function(){this.maskClosable&&this.hide()},reset:function(){this.transform={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}},toggleMode:function(){if(!this.loading){var e=Object.keys(ov),t=Object.values(ov),n=t.indexOf(this.mode),r=(n+1)%e.length;this.mode=ov[e[r]],this.reset()}},prev:function(){if(!this.isFirst||this.infinite){var e=this.urlList.length;this.index=(this.index-1+e)%e}},next:function(){if(!this.isLast||this.infinite){var e=this.urlList.length;this.index=(this.index+1)%e}},handleActions:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.loading){var n=av({zoomRate:.2,rotateDeg:90,enableTransition:!0},t),r=n.zoomRate,i=n.rotateDeg,a=n.enableTransition,o=this.transform;switch(e){case"zoomOut":o.scale>.2&&(o.scale=parseFloat((o.scale-r).toFixed(3)));break;case"zoomIn":o.scale=parseFloat((o.scale+r).toFixed(3));break;case"clocelise":o.deg+=i;break;case"anticlocelise":o.deg-=i;break}o.enableTransition=a}}},mounted:function(){this.deviceSupportInstall(),this.appendToBody&&document.body.appendChild(this.$el),this.$refs["el-image-viewer__wrapper"].focus()},destroyed:function(){this.appendToBody&&this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)}},uv=lv,cv=s(uv,rv,iv,!1,null,null,null);cv.options.__file="packages/image/src/image-viewer.vue";var dv=cv.exports,hv=function(){return void 0!==document.documentElement.style.objectFit},fv={NONE:"none",CONTAIN:"contain",COVER:"cover",FILL:"fill",SCALE_DOWN:"scale-down"},pv="",mv={name:"ElImage",mixins:[g.a],inheritAttrs:!1,components:{ImageViewer:dv},props:{src:String,fit:String,lazy:Boolean,scrollContainer:{},previewSrcList:{type:Array,default:function(){return[]}},zIndex:{type:Number,default:2e3}},data:function(){return{loading:!0,error:!1,show:!this.lazy,imageWidth:0,imageHeight:0,showViewer:!1}},computed:{imageStyle:function(){var e=this.fit;return!this.$isServer&&e?hv()?{"object-fit":e}:this.getImageStyle(e):{}},alignCenter:function(){return!this.$isServer&&!hv()&&this.fit!==fv.FILL},preview:function(){var e=this.previewSrcList;return Array.isArray(e)&&e.length>0},imageIndex:function(){var e=0,t=this.previewSrcList.indexOf(this.src);return t>=0&&(e=t),e}},watch:{src:function(e){this.show&&this.loadImage()},show:function(e){e&&this.loadImage()}},mounted:function(){this.lazy?this.addLazyLoadListener():this.loadImage()},beforeDestroy:function(){this.lazy&&this.removeLazyLoadListener()},methods:{loadImage:function(){var e=this;if(!this.$isServer){this.loading=!0,this.error=!1;var t=new Image;t.onload=function(n){return e.handleLoad(n,t)},t.onerror=this.handleError.bind(this),Object.keys(this.$attrs).forEach((function(n){var r=e.$attrs[n];t.setAttribute(n,r)})),t.src=this.src}},handleLoad:function(e,t){this.imageWidth=t.width,this.imageHeight=t.height,this.loading=!1,this.error=!1},handleError:function(e){this.loading=!1,this.error=!0,this.$emit("error",e)},handleLazyLoad:function(){Object(Be["isInContainer"])(this.$el,this._scrollContainer)&&(this.show=!0,this.removeLazyLoadListener())},addLazyLoadListener:function(){if(!this.$isServer){var e=this.scrollContainer,t=null;t=Object(Ud["isHtmlElement"])(e)?e:Object(Ud["isString"])(e)?document.querySelector(e):Object(Be["getScrollContainer"])(this.$el),t&&(this._scrollContainer=t,this._lazyLoadHandler=Bh()(200,this.handleLazyLoad),Object(Be["on"])(t,"scroll",this._lazyLoadHandler),this.handleLazyLoad())}},removeLazyLoadListener:function(){var e=this._scrollContainer,t=this._lazyLoadHandler;!this.$isServer&&e&&t&&(Object(Be["off"])(e,"scroll",t),this._scrollContainer=null,this._lazyLoadHandler=null)},getImageStyle:function(e){var t=this.imageWidth,n=this.imageHeight,r=this.$el,i=r.clientWidth,a=r.clientHeight;if(!t||!n||!i||!a)return{};var o=t/n,s=i/a;if(e===fv.SCALE_DOWN){var l=t<i&&n<a;e=l?fv.NONE:fv.CONTAIN}switch(e){case fv.NONE:return{width:"auto",height:"auto"};case fv.CONTAIN:return o<s?{width:"auto"}:{height:"auto"};case fv.COVER:return o<s?{height:"auto"}:{width:"auto"};default:return{}}},clickHandler:function(){this.preview&&(pv=document.body.style.overflow,document.body.style.overflow="hidden",this.showViewer=!0)},closeViewer:function(){document.body.style.overflow=pv,this.showViewer=!1}}},vv=mv,gv=s(vv,tv,nv,!1,null,null,null);gv.options.__file="packages/image/src/main.vue";var yv=gv.exports;yv.install=function(e){e.component(yv.name,yv)};var bv=yv,xv=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-calendar"},[n("div",{staticClass:"el-calendar__header"},[n("div",{staticClass:"el-calendar__title"},[e._v("\n "+e._s(e.i18nDate)+"\n ")]),0===e.validatedRange.length?n("div",{staticClass:"el-calendar__button-group"},[n("el-button-group",[n("el-button",{attrs:{type:"plain",size:"mini"},on:{click:function(t){e.selectDate("prev-month")}}},[e._v("\n "+e._s(e.t("el.datepicker.prevMonth"))+"\n ")]),n("el-button",{attrs:{type:"plain",size:"mini"},on:{click:function(t){e.selectDate("today")}}},[e._v("\n "+e._s(e.t("el.datepicker.today"))+"\n ")]),n("el-button",{attrs:{type:"plain",size:"mini"},on:{click:function(t){e.selectDate("next-month")}}},[e._v("\n "+e._s(e.t("el.datepicker.nextMonth"))+"\n ")])],1)],1):e._e()]),0===e.validatedRange.length?n("div",{key:"no-range",staticClass:"el-calendar__body"},[n("date-table",{attrs:{date:e.date,"selected-day":e.realSelectedDay,"first-day-of-week":e.realFirstDayOfWeek},on:{pick:e.pickDay}})],1):n("div",{key:"has-range",staticClass:"el-calendar__body"},e._l(e.validatedRange,(function(t,r){return n("date-table",{key:r,attrs:{date:t[0],"selected-day":e.realSelectedDay,range:t,"hide-header":0!==r,"first-day-of-week":e.realFirstDayOfWeek},on:{pick:e.pickDay}})})),1)])},wv=[];xv._withStripped=!0;var _v,Cv,Sv=n(20),Nv=n.n(Sv),kv={props:{selectedDay:String,range:{type:Array,validator:function(e){if(!e||!e.length)return!0;var t=e[0],n=e[1];return Object(oa["validateRangeInOneMonth"])(t,n)}},date:Date,hideHeader:Boolean,firstDayOfWeek:Number},inject:["elCalendar"],methods:{toNestedArr:function(e){return Object(oa["range"])(e.length/7).map((function(t,n){var r=7*n;return e.slice(r,r+7)}))},getFormateDate:function(e,t){if(!e||-1===["prev","current","next"].indexOf(t))throw new Error("invalid day or type");var n=this.curMonthDatePrefix;return"prev"===t?n=this.prevMonthDatePrefix:"next"===t&&(n=this.nextMonthDatePrefix),e=("00"+e).slice(-2),n+"-"+e},getCellClass:function(e){var t=e.text,n=e.type,r=[n];if("current"===n){var i=this.getFormateDate(t,n);i===this.selectedDay&&r.push("is-selected"),i===this.formatedToday&&r.push("is-today")}return r},pickDay:function(e){var t=e.text,n=e.type,r=this.getFormateDate(t,n);this.$emit("pick",r)},cellRenderProxy:function(e){var t=e.text,n=e.type,r=this.$createElement,i=this.elCalendar.$scopedSlots.dateCell;if(!i)return r("span",[t]);var a=this.getFormateDate(t,n),o=new Date(a),s={isSelected:this.selectedDay===a,type:n+"-month",day:a};return i({date:o,data:s})}},computed:{WEEK_DAYS:function(){return Object(oa["getI18nSettings"])().dayNames},prevMonthDatePrefix:function(){var e=new Date(this.date.getTime());return e.setDate(0),Nv.a.format(e,"yyyy-MM")},curMonthDatePrefix:function(){return Nv.a.format(this.date,"yyyy-MM")},nextMonthDatePrefix:function(){var e=new Date(this.date.getFullYear(),this.date.getMonth()+1,1);return Nv.a.format(e,"yyyy-MM")},formatedToday:function(){return this.elCalendar.formatedToday},isInRange:function(){return this.range&&this.range.length},rows:function(){var e=[];if(this.isInRange){var t=this.range,n=t[0],r=t[1],i=Object(oa["range"])(r.getDate()-n.getDate()+1).map((function(e,t){return{text:n.getDate()+t,type:"current"}})),a=i.length%7;a=0===a?0:7-a;var o=Object(oa["range"])(a).map((function(e,t){return{text:t+1,type:"next"}}));e=i.concat(o)}else{var s=this.date,l=Object(oa["getFirstDayOfMonth"])(s);l=0===l?7:l;var u="number"===typeof this.firstDayOfWeek?this.firstDayOfWeek:1,c=(7+l-u)%7,d=Object(oa["getPrevMonthLastDays"])(s,c).map((function(e){return{text:e,type:"prev"}})),h=Object(oa["getMonthDays"])(s).map((function(e){return{text:e,type:"current"}}));e=[].concat(d,h);var f=Object(oa["range"])(42-e.length).map((function(e,t){return{text:t+1,type:"next"}}));e=e.concat(f)}return this.toNestedArr(e)},weekDays:function(){var e=this.firstDayOfWeek,t=this.WEEK_DAYS;return"number"!==typeof e||0===e?t.slice():t.slice(e).concat(t.slice(0,e))}},render:function(){var e=this,t=arguments[0],n=this.hideHeader?null:t("thead",[this.weekDays.map((function(e){return t("th",{key:e},[e])}))]);return t("table",{class:{"el-calendar-table":!0,"is-range":this.isInRange},attrs:{cellspacing:"0",cellpadding:"0"}},[n,t("tbody",[this.rows.map((function(n,r){return t("tr",{class:{"el-calendar-table__row":!0,"el-calendar-table__row--hide-border":0===r&&e.hideHeader},key:r},[n.map((function(n,r){return t("td",{key:r,class:e.getCellClass(n),on:{click:e.pickDay.bind(e,n)}},[t("div",{class:"el-calendar-day"},[e.cellRenderProxy(n)])])}))])}))])])}},Ev=kv,Mv=s(Ev,_v,Cv,!1,null,null,null);Mv.options.__file="packages/calendar/src/date-table.vue";var Ov=Mv.exports,Dv=["prev-month","today","next-month"],Tv=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Av=864e5,Iv={name:"ElCalendar",mixins:[g.a],components:{DateTable:Ov,ElButton:oe.a,ElButtonGroup:le.a},props:{value:[Date,String,Number],range:{type:Array,validator:function(e){return!Array.isArray(e)||2===e.length&&e.every((function(e){return"string"===typeof e||"number"===typeof e||e instanceof Date}))}},firstDayOfWeek:{type:Number,default:1}},provide:function(){return{elCalendar:this}},methods:{pickDay:function(e){this.realSelectedDay=e},selectDate:function(e){if(-1===Dv.indexOf(e))throw new Error("invalid type "+e);var t="";t="prev-month"===e?this.prevMonthDatePrefix+"-01":"next-month"===e?this.nextMonthDatePrefix+"-01":this.formatedToday,t!==this.formatedDate&&this.pickDay(t)},toDate:function(e){if(!e)throw new Error("invalid val");return e instanceof Date?e:new Date(e)},rangeValidator:function(e,t){var n=this.realFirstDayOfWeek,r=t?n:0===n?6:n-1,i=(t?"start":"end")+" of range should be "+Tv[r]+".";return e.getDay()===r||(console.warn("[ElementCalendar]",i,"Invalid range will be ignored."),!1)}},computed:{prevMonthDatePrefix:function(){var e=new Date(this.date.getTime());return e.setDate(0),Nv.a.format(e,"yyyy-MM")},curMonthDatePrefix:function(){return Nv.a.format(this.date,"yyyy-MM")},nextMonthDatePrefix:function(){var e=new Date(this.date.getFullYear(),this.date.getMonth()+1,1);return Nv.a.format(e,"yyyy-MM")},formatedDate:function(){return Nv.a.format(this.date,"yyyy-MM-dd")},i18nDate:function(){var e=this.date.getFullYear(),t=this.date.getMonth()+1;return e+" "+this.t("el.datepicker.year")+" "+this.t("el.datepicker.month"+t)},formatedToday:function(){return Nv.a.format(this.now,"yyyy-MM-dd")},realSelectedDay:{get:function(){return this.value?this.formatedDate:this.selectedDay},set:function(e){this.selectedDay=e;var t=new Date(e);this.$emit("input",t)}},date:function(){if(this.value)return this.toDate(this.value);if(this.realSelectedDay){var e=this.selectedDay.split("-");return new Date(e[0],e[1]-1,e[2])}return this.validatedRange.length?this.validatedRange[0][0]:this.now},validatedRange:function(){var e=this,t=this.range;if(!t)return[];if(t=t.reduce((function(t,n,r){var i=e.toDate(n);return e.rangeValidator(i,0===r)&&(t=t.concat(i)),t}),[]),2===t.length){var n=t,r=n[0],i=n[1];if(r>i)return console.warn("[ElementCalendar]end time should be greater than start time"),[];if(Object(oa["validateRangeInOneMonth"])(r,i))return[[r,i]];var a=[],o=new Date(r.getFullYear(),r.getMonth()+1,1),s=this.toDate(o.getTime()-Av);if(!Object(oa["validateRangeInOneMonth"])(o,i))return console.warn("[ElementCalendar]start time and end time interval must not exceed two months"),[];a.push([r,s]);var l=this.realFirstDayOfWeek,u=o.getDay(),c=0;return u!==l&&(0===l?c=7-u:(c=l-u,c=c>0?c:7+c)),o=this.toDate(o.getTime()+c*Av),o.getDate()<i.getDate()&&a.push([o,i]),a}return[]},realFirstDayOfWeek:function(){return this.firstDayOfWeek<1||this.firstDayOfWeek>6?0:Math.floor(this.firstDayOfWeek)}},data:function(){return{selectedDay:"",now:new Date}}},$v=Iv,Pv=s($v,xv,wv,!1,null,null,null);Pv.options.__file="packages/calendar/src/main.vue";var jv=Pv.exports;jv.install=function(e){e.component(jv.name,jv)};var Fv=jv,Bv=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-fade-in"}},[e.visible?n("div",{staticClass:"el-backtop",style:{right:e.styleRight,bottom:e.styleBottom},on:{click:function(t){return t.stopPropagation(),e.handleClick(t)}}},[e._t("default",[n("el-icon",{attrs:{name:"caret-top"}})])],2):e._e()])},Lv=[];Bv._withStripped=!0;var zv=function(e){return Math.pow(e,3)},Rv=function(e){return e<.5?zv(2*e)/2:1-zv(2*(1-e))/2},Vv={name:"ElBacktop",props:{visibilityHeight:{type:Number,default:200},target:[String],right:{type:Number,default:40},bottom:{type:Number,default:40}},data:function(){return{el:null,container:null,visible:!1}},computed:{styleBottom:function(){return this.bottom+"px"},styleRight:function(){return this.right+"px"}},mounted:function(){this.init(),this.throttledScrollHandler=Bh()(300,this.onScroll),this.container.addEventListener("scroll",this.throttledScrollHandler)},methods:{init:function(){if(this.container=document,this.el=document.documentElement,this.target){if(this.el=document.querySelector(this.target),!this.el)throw new Error("target is not existed: "+this.target);this.container=this.el}},onScroll:function(){var e=this.el.scrollTop;this.visible=e>=this.visibilityHeight},handleClick:function(e){this.scrollToTop(),this.$emit("click",e)},scrollToTop:function(){var e=this.el,t=Date.now(),n=e.scrollTop,r=window.requestAnimationFrame||function(e){return setTimeout(e,16)},i=function i(){var a=(Date.now()-t)/500;a<1?(e.scrollTop=n*(1-Rv(a)),r(i)):e.scrollTop=0};r(i)}},beforeDestroy:function(){this.container.removeEventListener("scroll",this.throttledScrollHandler)}},qv=Vv,Hv=s(qv,Bv,Lv,!1,null,null,null);Hv.options.__file="packages/backtop/src/main.vue";var Uv=Hv.exports;Uv.install=function(e){e.component(Uv.name,Uv)};var Wv=Uv,Yv=function(e,t){if(e===window&&(e=document.documentElement),1!==e.nodeType)return[];var n=window.getComputedStyle(e,null);return t?n[t]:n},Gv=function(e){return Object.keys(e||{}).map((function(t){return[t,e[t]]}))},Kv=function(e,t){return e===window||e===document?document.documentElement[t]:e[t]},Xv=function(e){return Kv(e,"offsetHeight")},Zv=function(e){return Kv(e,"clientHeight")},Jv="ElInfiniteScroll",Qv={delay:{type:Number,default:200},distance:{type:Number,default:0},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},eg=function(e,t){return Object(Ud["isHtmlElement"])(e)?Gv(Qv).reduce((function(n,r){var i=r[0],a=r[1],o=a.type,s=a.default,l=e.getAttribute("infinite-scroll-"+i);switch(l=Object(Ud["isUndefined"])(t[l])?l:t[l],o){case Number:l=Number(l),l=Number.isNaN(l)?s:l;break;case Boolean:l=Object(Ud["isDefined"])(l)?"false"!==l&&Boolean(l):s;break;default:l=o(l)}return n[i]=l,n}),{}):{}},tg=function(e){return e.getBoundingClientRect().top},ng=function(e){var t=this[Jv],n=t.el,r=t.vm,i=t.container,a=t.observer,o=eg(n,r),s=o.distance,l=o.disabled;if(!l){var u=i.getBoundingClientRect();if(u.width||u.height){var c=!1;if(i===n){var d=i.scrollTop+Zv(i);c=i.scrollHeight-d<=s}else{var h=Xv(n)+tg(n)-tg(i),f=Xv(i),p=Number.parseFloat(Yv(i,"borderBottomWidth"));c=h-f+p<=s}c&&Object(Ud["isFunction"])(e)?e.call(r):a&&(a.disconnect(),this[Jv].observer=null)}}},rg={name:"InfiniteScroll",inserted:function(e,t,n){var r=t.value,i=n.context,a=Object(Be["getScrollContainer"])(e,!0),o=eg(e,i),s=o.delay,l=o.immediate,u=F()(s,ng.bind(e,r));if(e[Jv]={el:e,vm:i,container:a,onScroll:u},a&&(a.addEventListener("scroll",u),l)){var c=e[Jv].observer=new MutationObserver(u);c.observe(a,{childList:!0,subtree:!0}),u()}},unbind:function(e){var t=e[Jv],n=t.container,r=t.onScroll;n&&n.removeEventListener("scroll",r)},install:function(e){e.directive(rg.name,rg)}},ig=rg,ag=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-page-header"},[n("div",{staticClass:"el-page-header__left",on:{click:function(t){e.$emit("back")}}},[n("i",{staticClass:"el-icon-back"}),n("div",{staticClass:"el-page-header__title"},[e._t("title",[e._v(e._s(e.title))])],2)]),n("div",{staticClass:"el-page-header__content"},[e._t("content",[e._v(e._s(e.content))])],2)])},og=[];ag._withStripped=!0;var sg={name:"ElPageHeader",props:{title:{type:String,default:function(){return Object(vs["t"])("el.pageHeader.title")}},content:String}},lg=sg,ug=s(lg,ag,og,!1,null,null,null);ug.options.__file="packages/page-header/src/main.vue";var cg=ug.exports;cg.install=function(e){e.component(cg.name,cg)};var dg=cg,hg=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["el-cascader-panel",e.border&&"is-bordered"],on:{keydown:e.handleKeyDown}},e._l(e.menus,(function(e,t){return n("cascader-menu",{key:t,ref:"menu",refInFor:!0,attrs:{index:t,nodes:e}})})),1)},fg=[];hg._withStripped=!0;var pg,mg,vg=n(43),gg=n.n(vg),yg=function(e){return e.stopPropagation()},bg={inject:["panel"],components:{ElCheckbox:$r.a,ElRadio:gg.a},props:{node:{required:!0},nodeId:String},computed:{config:function(){return this.panel.config},isLeaf:function(){return this.node.isLeaf},isDisabled:function(){return this.node.isDisabled},checkedValue:function(){return this.panel.checkedValue},isChecked:function(){return this.node.isSameNode(this.checkedValue)},inActivePath:function(){return this.isInPath(this.panel.activePath)},inCheckedPath:function(){var e=this;return!!this.config.checkStrictly&&this.panel.checkedNodePaths.some((function(t){return e.isInPath(t)}))},value:function(){return this.node.getValueByOption()}},methods:{handleExpand:function(){var e=this,t=this.panel,n=this.node,r=this.isDisabled,i=this.config,a=i.multiple,o=i.checkStrictly;!o&&r||n.loading||(i.lazy&&!n.loaded?t.lazyLoad(n,(function(){var t=e.isLeaf;if(t||e.handleExpand(),a){var r=!!t&&n.checked;e.handleMultiCheckChange(r)}})):t.handleExpand(n))},handleCheckChange:function(){var e=this.panel,t=this.value,n=this.node;e.handleCheckChange(t),e.handleExpand(n)},handleMultiCheckChange:function(e){this.node.doCheck(e),this.panel.calculateMultiCheckedValue()},isInPath:function(e){var t=this.node,n=e[t.level-1]||{};return n.uid===t.uid},renderPrefix:function(e){var t=this.isLeaf,n=this.isChecked,r=this.config,i=r.checkStrictly,a=r.multiple;return a?this.renderCheckbox(e):i?this.renderRadio(e):t&&n?this.renderCheckIcon(e):null},renderPostfix:function(e){var t=this.node,n=this.isLeaf;return t.loading?this.renderLoadingIcon(e):n?null:this.renderExpandIcon(e)},renderCheckbox:function(e){var t=this.node,n=this.config,r=this.isDisabled,i={on:{change:this.handleMultiCheckChange},nativeOn:{}};return n.checkStrictly&&(i.nativeOn.click=yg),e("el-checkbox",ed()([{attrs:{value:t.checked,indeterminate:t.indeterminate,disabled:r}},i]))},renderRadio:function(e){var t=this.checkedValue,n=this.value,r=this.isDisabled;return Object(y["isEqual"])(n,t)&&(n=t),e("el-radio",{attrs:{value:t,label:n,disabled:r},on:{change:this.handleCheckChange},nativeOn:{click:yg}},[e("span")])},renderCheckIcon:function(e){return e("i",{class:"el-icon-check el-cascader-node__prefix"})},renderLoadingIcon:function(e){return e("i",{class:"el-icon-loading el-cascader-node__postfix"})},renderExpandIcon:function(e){return e("i",{class:"el-icon-arrow-right el-cascader-node__postfix"})},renderContent:function(e){var t=this.panel,n=this.node,r=t.renderLabelFn,i=r?r({node:n,data:n.data}):null;return e("span",{class:"el-cascader-node__label"},[i||n.label])}},render:function(e){var t=this,n=this.inActivePath,r=this.inCheckedPath,i=this.isChecked,a=this.isLeaf,o=this.isDisabled,s=this.config,l=this.nodeId,u=s.expandTrigger,c=s.checkStrictly,d=s.multiple,h=!c&&o,f={on:{}};return"click"===u?f.on.click=this.handleExpand:(f.on.mouseenter=function(e){t.handleExpand(),t.$emit("expand",e)},f.on.focus=function(e){t.handleExpand(),t.$emit("expand",e)}),!a||o||c||d||(f.on.click=this.handleCheckChange),e("li",ed()([{attrs:{role:"menuitem",id:l,"aria-expanded":n,tabindex:h?null:-1},class:{"el-cascader-node":!0,"is-selectable":c,"in-active-path":n,"in-checked-path":r,"is-active":i,"is-disabled":h}},f]),[this.renderPrefix(e),this.renderContent(e),this.renderPostfix(e)])}},xg=bg,wg=s(xg,pg,mg,!1,null,null,null);wg.options.__file="packages/cascader-panel/src/cascader-node.vue";var _g,Cg,Sg=wg.exports,Ng={name:"ElCascaderMenu",mixins:[g.a],inject:["panel"],components:{ElScrollbar:U.a,CascaderNode:Sg},props:{nodes:{type:Array,required:!0},index:Number},data:function(){return{activeNode:null,hoverTimer:null,id:Object(y["generateId"])()}},computed:{isEmpty:function(){return!this.nodes.length},menuId:function(){return"cascader-menu-"+this.id+"-"+this.index}},methods:{handleExpand:function(e){this.activeNode=e.target},handleMouseMove:function(e){var t=this.activeNode,n=this.hoverTimer,r=this.$refs.hoverZone;if(t&&r)if(t.contains(e.target)){clearTimeout(n);var i=this.$el.getBoundingClientRect(),a=i.left,o=e.clientX-a,s=this.$el,l=s.offsetWidth,u=s.offsetHeight,c=t.offsetTop,d=c+t.offsetHeight;r.innerHTML='\n <path style="pointer-events: auto;" fill="transparent" d="M'+o+" "+c+" L"+l+" 0 V"+c+' Z" />\n <path style="pointer-events: auto;" fill="transparent" d="M'+o+" "+d+" L"+l+" "+u+" V"+d+' Z" />\n '}else n||(this.hoverTimer=setTimeout(this.clearHoverZone,this.panel.config.hoverThreshold))},clearHoverZone:function(){var e=this.$refs.hoverZone;e&&(e.innerHTML="")},renderEmptyText:function(e){return e("div",{class:"el-cascader-menu__empty-text"},[this.t("el.cascader.noData")])},renderNodeList:function(e){var t=this.menuId,n=this.panel.isHoverMenu,r={on:{}};n&&(r.on.expand=this.handleExpand);var i=this.nodes.map((function(n,i){var a=n.hasChildren;return e("cascader-node",ed()([{key:n.uid,attrs:{node:n,"node-id":t+"-"+i,"aria-haspopup":a,"aria-owns":a?t:null}},r]))}));return[].concat(i,[n?e("svg",{ref:"hoverZone",class:"el-cascader-menu__hover-zone"}):null])}},render:function(e){var t=this.isEmpty,n=this.menuId,r={nativeOn:{}};return this.panel.isHoverMenu&&(r.nativeOn.mousemove=this.handleMouseMove),e("el-scrollbar",ed()([{attrs:{tag:"ul",role:"menu",id:n,"wrap-class":"el-cascader-menu__wrap","view-class":{"el-cascader-menu__list":!0,"is-empty":t}},class:"el-cascader-menu"},r]),[t?this.renderEmptyText(e):this.renderNodeList(e)])}},kg=Ng,Eg=s(kg,_g,Cg,!1,null,null,null);Eg.options.__file="packages/cascader-panel/src/cascader-menu.vue";var Mg=Eg.exports,Og=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function Dg(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Tg=0,Ag=function(){function e(t,n,r){Dg(this,e),this.data=t,this.config=n,this.parent=r||null,this.level=this.parent?this.parent.level+1:1,this.uid=Tg++,this.initState(),this.initChildren()}return e.prototype.initState=function(){var e=this.config,t=e.value,n=e.label;this.value=this.data[t],this.label=this.data[n],this.pathNodes=this.calculatePathNodes(),this.path=this.pathNodes.map((function(e){return e.value})),this.pathLabels=this.pathNodes.map((function(e){return e.label})),this.loading=!1,this.loaded=!1},e.prototype.initChildren=function(){var t=this,n=this.config,r=n.children,i=this.data[r];this.hasChildren=Array.isArray(i),this.children=(i||[]).map((function(r){return new e(r,n,t)}))},e.prototype.calculatePathNodes=function(){var e=[this],t=this.parent;while(t)e.unshift(t),t=t.parent;return e},e.prototype.getPath=function(){return this.path},e.prototype.getValue=function(){return this.value},e.prototype.getValueByOption=function(){return this.config.emitPath?this.getPath():this.getValue()},e.prototype.getText=function(e,t){return e?this.pathLabels.join(t):this.label},e.prototype.isSameNode=function(e){var t=this.getValueByOption();return this.config.multiple&&Array.isArray(e)?e.some((function(e){return Object(y["isEqual"])(e,t)})):Object(y["isEqual"])(e,t)},e.prototype.broadcast=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i="onParent"+Object(y["capitalize"])(e);this.children.forEach((function(t){t&&(t.broadcast.apply(t,[e].concat(n)),t[i]&&t[i].apply(t,n))}))},e.prototype.emit=function(e){var t=this.parent,n="onChild"+Object(y["capitalize"])(e);if(t){for(var r=arguments.length,i=Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];t[n]&&t[n].apply(t,i),t.emit.apply(t,[e].concat(i))}},e.prototype.onParentCheck=function(e){this.isDisabled||this.setCheckState(e)},e.prototype.onChildCheck=function(){var e=this.children,t=e.filter((function(e){return!e.isDisabled})),n=!!t.length&&t.every((function(e){return e.checked}));this.setCheckState(n)},e.prototype.setCheckState=function(e){var t=this.children.length,n=this.children.reduce((function(e,t){var n=t.checked?1:t.indeterminate?.5:0;return e+n}),0);this.checked=e,this.indeterminate=n!==t&&n>0},e.prototype.syncCheckState=function(e){var t=this.getValueByOption(),n=this.isSameNode(e,t);this.doCheck(n)},e.prototype.doCheck=function(e){this.checked!==e&&(this.config.checkStrictly?this.checked=e:(this.broadcast("check",e),this.setCheckState(e),this.emit("check")))},Og(e,[{key:"isDisabled",get:function(){var e=this.data,t=this.parent,n=this.config,r=n.disabled,i=n.checkStrictly;return e[r]||!i&&t&&t.isDisabled}},{key:"isLeaf",get:function(){var e=this.data,t=this.loaded,n=this.hasChildren,r=this.children,i=this.config,a=i.lazy,o=i.leaf;if(a){var s=Object(kt["isDef"])(e[o])?e[o]:!!t&&!r.length;return this.hasChildren=!s,s}return!n}}]),e}(),Ig=Ag;function $g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Pg=function e(t,n){return t.reduce((function(t,r){return r.isLeaf?t.push(r):(!n&&t.push(r),t=t.concat(e(r.children,n))),t}),[])},jg=function(){function e(t,n){$g(this,e),this.config=n,this.initNodes(t)}return e.prototype.initNodes=function(e){var t=this;e=Object(y["coerceTruthyValueToArray"])(e),this.nodes=e.map((function(e){return new Ig(e,t.config)})),this.flattedNodes=this.getFlattedNodes(!1,!1),this.leafNodes=this.getFlattedNodes(!0,!1)},e.prototype.appendNode=function(e,t){var n=new Ig(e,this.config,t),r=t?t.children:this.nodes;r.push(n)},e.prototype.appendNodes=function(e,t){var n=this;e=Object(y["coerceTruthyValueToArray"])(e),e.forEach((function(e){return n.appendNode(e,t)}))},e.prototype.getNodes=function(){return this.nodes},e.prototype.getFlattedNodes=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e?this.leafNodes:this.flattedNodes;return t?n:Pg(this.nodes,e)},e.prototype.getNodeByValue=function(e){var t=this.getFlattedNodes(!1,!this.config.lazy).filter((function(t){return Object(y["valueEquals"])(t.path,e)||t.value===e}));return t&&t.length?t[0]:null},e}(),Fg=jg,Bg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lg=Cf.a.keys,zg={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:y["noop"],value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},Rg=function(e){return!e.getAttribute("aria-owns")},Vg=function(e,t){var n=e.parentNode;if(n){var r=n.querySelectorAll('.el-cascader-node[tabindex="-1"]'),i=Array.prototype.indexOf.call(r,e);return r[i+t]||null}return null},qg=function(e,t){if(e){var n=e.id.split("-");return Number(n[n.length-2])}},Hg=function(e){e&&(e.focus(),!Rg(e)&&e.click())},Ug=function(e){if(e){var t=e.querySelector("input");t?t.click():Rg(e)&&e.click()}},Wg={name:"ElCascaderPanel",components:{CascaderMenu:Mg},props:{value:{},options:Array,props:Object,border:{type:Boolean,default:!0},renderLabel:Function},provide:function(){return{panel:this}},data:function(){return{checkedValue:null,checkedNodePaths:[],store:[],menus:[],activePath:[],loadCount:0}},computed:{config:function(){return Nt()(Bg({},zg),this.props||{})},multiple:function(){return this.config.multiple},checkStrictly:function(){return this.config.checkStrictly},leafOnly:function(){return!this.checkStrictly},isHoverMenu:function(){return"hover"===this.config.expandTrigger},renderLabelFn:function(){return this.renderLabel||this.$scopedSlots.default}},watch:{value:function(){this.syncCheckedValue(),this.checkStrictly&&this.calculateCheckedNodePaths()},options:{handler:function(){this.initStore()},immediate:!0,deep:!0},checkedValue:function(e){Object(y["isEqual"])(e,this.value)||(this.checkStrictly&&this.calculateCheckedNodePaths(),this.$emit("input",e),this.$emit("change",e))}},mounted:function(){this.isEmptyValue(this.value)||this.syncCheckedValue()},methods:{initStore:function(){var e=this.config,t=this.options;e.lazy&&Object(y["isEmpty"])(t)?this.lazyLoad():(this.store=new Fg(t,e),this.menus=[this.store.getNodes()],this.syncMenuState())},syncCheckedValue:function(){var e=this.value,t=this.checkedValue;Object(y["isEqual"])(e,t)||(this.activePath=[],this.checkedValue=e,this.syncMenuState())},syncMenuState:function(){var e=this.multiple,t=this.checkStrictly;this.syncActivePath(),e&&this.syncMultiCheckState(),t&&this.calculateCheckedNodePaths(),this.$nextTick(this.scrollIntoView)},syncMultiCheckState:function(){var e=this,t=this.getFlattedNodes(this.leafOnly);t.forEach((function(t){t.syncCheckState(e.checkedValue)}))},isEmptyValue:function(e){var t=this.multiple,n=this.config,r=n.emitPath;return!(!t&&!r)&&Object(y["isEmpty"])(e)},syncActivePath:function(){var e=this,t=this.store,n=this.multiple,r=this.activePath,i=this.checkedValue;if(Object(y["isEmpty"])(r))if(this.isEmptyValue(i))this.activePath=[],this.menus=[t.getNodes()];else{var a=n?i[0]:i,o=this.getNodeByValue(a)||{},s=(o.pathNodes||[]).slice(0,-1);this.expandNodes(s)}else{var l=r.map((function(t){return e.getNodeByValue(t.getValue())}));this.expandNodes(l)}},expandNodes:function(e){var t=this;e.forEach((function(e){return t.handleExpand(e,!0)}))},calculateCheckedNodePaths:function(){var e=this,t=this.checkedValue,n=this.multiple,r=n?Object(y["coerceTruthyValueToArray"])(t):[t];this.checkedNodePaths=r.map((function(t){var n=e.getNodeByValue(t);return n?n.pathNodes:[]}))},handleKeyDown:function(e){var t=e.target,n=e.keyCode;switch(n){case Lg.up:var r=Vg(t,-1);Hg(r);break;case Lg.down:var i=Vg(t,1);Hg(i);break;case Lg.left:var a=this.$refs.menu[qg(t)-1];if(a){var o=a.$el.querySelector('.el-cascader-node[aria-expanded="true"]');Hg(o)}break;case Lg.right:var s=this.$refs.menu[qg(t)+1];if(s){var l=s.$el.querySelector('.el-cascader-node[tabindex="-1"]');Hg(l)}break;case Lg.enter:Ug(t);break;case Lg.esc:case Lg.tab:this.$emit("close");break;default:return}},handleExpand:function(e,t){var n=this.activePath,r=e.level,i=n.slice(0,r-1),a=this.menus.slice(0,r);if(e.isLeaf||(i.push(e),a.push(e.children)),this.activePath=i,this.menus=a,!t){var o=i.map((function(e){return e.getValue()})),s=n.map((function(e){return e.getValue()}));Object(y["valueEquals"])(o,s)||(this.$emit("active-item-change",o),this.$emit("expand-change",o))}},handleCheckChange:function(e){this.checkedValue=e},lazyLoad:function(e,t){var n=this,r=this.config;e||(e=e||{root:!0,level:0},this.store=new Fg([],r),this.menus=[this.store.getNodes()]),e.loading=!0;var i=function(r){var i=e.root?null:e;if(r&&r.length&&n.store.appendNodes(r,i),e.loading=!1,e.loaded=!0,Array.isArray(n.checkedValue)){var a=n.checkedValue[n.loadCount++],o=n.config.value,s=n.config.leaf;if(Array.isArray(r)&&r.filter((function(e){return e[o]===a})).length>0){var l=n.store.getNodeByValue(a);l.data[s]||n.lazyLoad(l,(function(){n.handleExpand(l)})),n.loadCount===n.checkedValue.length&&n.$parent.computePresentText()}}t&&t(r)};r.lazyLoad(e,i)},calculateMultiCheckedValue:function(){this.checkedValue=this.getCheckedNodes(this.leafOnly).map((function(e){return e.getValueByOption()}))},scrollIntoView:function(){if(!this.$isServer){var e=this.$refs.menu||[];e.forEach((function(e){var t=e.$el;if(t){var n=t.querySelector(".el-scrollbar__wrap"),r=t.querySelector(".el-cascader-node.is-active")||t.querySelector(".el-cascader-node.in-active-path");nr()(n,r)}}))}},getNodeByValue:function(e){return this.store.getNodeByValue(e)},getFlattedNodes:function(e){var t=!this.config.lazy;return this.store.getFlattedNodes(e,t)},getCheckedNodes:function(e){var t=this.checkedValue,n=this.multiple;if(n){var r=this.getFlattedNodes(e);return r.filter((function(e){return e.checked}))}return this.isEmptyValue(t)?[]:[this.getNodeByValue(t)]},clearCheckedNodes:function(){var e=this.config,t=this.leafOnly,n=e.multiple,r=e.emitPath;n?(this.getCheckedNodes(t).filter((function(e){return!e.isDisabled})).forEach((function(e){return e.doCheck(!1)})),this.calculateMultiCheckedValue()):this.checkedValue=r?[]:null}}},Yg=Wg,Gg=s(Yg,hg,fg,!1,null,null,null);Gg.options.__file="packages/cascader-panel/src/cascader-panel.vue";var Kg=Gg.exports;Kg.install=function(e){e.component(Kg.name,Kg)};var Xg,Zg,Jg=Kg,Qg={name:"ElAvatar",props:{size:{type:[Number,String],validator:function(e){return"string"===typeof e?["large","medium","small"].includes(e):"number"===typeof e}},shape:{type:String,default:"circle",validator:function(e){return["circle","square"].includes(e)}},icon:String,src:String,alt:String,srcSet:String,error:Function,fit:{type:String,default:"cover"}},data:function(){return{isImageExist:!0}},computed:{avatarClass:function(){var e=this.size,t=this.icon,n=this.shape,r=["el-avatar"];return e&&"string"===typeof e&&r.push("el-avatar--"+e),t&&r.push("el-avatar--icon"),n&&r.push("el-avatar--"+n),r.join(" ")}},methods:{handleError:function(){var e=this.error,t=e?e():void 0;!1!==t&&(this.isImageExist=!1)},renderAvatar:function(){var e=this.$createElement,t=this.icon,n=this.src,r=this.alt,i=this.isImageExist,a=this.srcSet,o=this.fit;return i&&n?e("img",{attrs:{src:n,alt:r,srcSet:a},on:{error:this.handleError},style:{"object-fit":o}}):t?e("i",{class:t}):this.$slots.default}},render:function(){var e=arguments[0],t=this.avatarClass,n=this.size,r="number"===typeof n?{height:n+"px",width:n+"px",lineHeight:n+"px"}:{};return e("span",{class:t,style:r},[this.renderAvatar()])}},ey=Qg,ty=s(ey,Xg,Zg,!1,null,null,null);ty.options.__file="packages/avatar/src/main.vue";var ny=ty.exports;ny.install=function(e){e.component(ny.name,ny)};var ry=ny,iy=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-drawer-fade"},on:{"after-enter":e.afterEnter,"after-leave":e.afterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-drawer__wrapper",attrs:{tabindex:"-1"}},[n("div",{staticClass:"el-drawer__container",class:e.visible&&"el-drawer__open",attrs:{role:"document",tabindex:"-1"},on:{click:function(t){return t.target!==t.currentTarget?null:e.handleWrapperClick(t)}}},[n("div",{ref:"drawer",staticClass:"el-drawer",class:[e.direction,e.customClass],style:e.isHorizontal?"width: "+e.drawerSize:"height: "+e.drawerSize,attrs:{"aria-modal":"true","aria-labelledby":"el-drawer__title","aria-label":e.title,role:"dialog",tabindex:"-1"}},[e.withHeader?n("header",{staticClass:"el-drawer__header",attrs:{id:"el-drawer__title"}},[e._t("title",[n("span",{attrs:{role:"heading",title:e.title}},[e._v(e._s(e.title))])]),e.showClose?n("button",{staticClass:"el-drawer__close-btn",attrs:{"aria-label":"close "+(e.title||"drawer"),type:"button"},on:{click:e.closeDrawer}},[n("i",{staticClass:"el-dialog__close el-icon el-icon-close"})]):e._e()],2):e._e(),e.rendered?n("section",{staticClass:"el-drawer__body"},[e._t("default")],2):e._e()])])])])},ay=[];iy._withStripped=!0;var oy={name:"ElDrawer",mixins:[S.a,M.a],props:{appendToBody:{type:Boolean,default:!1},beforeClose:{type:Function},customClass:{type:String,default:""},closeOnPressEscape:{type:Boolean,default:!0},destroyOnClose:{type:Boolean,default:!1},modal:{type:Boolean,default:!0},direction:{type:String,default:"rtl",validator:function(e){return-1!==["ltr","rtl","ttb","btt"].indexOf(e)}},modalAppendToBody:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},size:{type:[Number,String],default:"30%"},title:{type:String,default:""},visible:{type:Boolean},wrapperClosable:{type:Boolean,default:!0},withHeader:{type:Boolean,default:!0}},computed:{isHorizontal:function(){return"rtl"===this.direction||"ltr"===this.direction},drawerSize:function(){return"number"===typeof this.size?this.size+"px":this.size}},data:function(){return{closed:!1,prevActiveElement:null}},watch:{visible:function(e){var t=this;e?(this.closed=!1,this.$emit("open"),this.appendToBody&&document.body.appendChild(this.$el),this.prevActiveElement=document.activeElement):(this.closed||(this.$emit("close"),!0===this.destroyOnClose&&(this.rendered=!1)),this.$nextTick((function(){t.prevActiveElement&&t.prevActiveElement.focus()})))}},methods:{afterEnter:function(){this.$emit("opened")},afterLeave:function(){this.$emit("closed")},hide:function(e){!1!==e&&(this.$emit("update:visible",!1),this.$emit("close"),!0===this.destroyOnClose&&(this.rendered=!1),this.closed=!0)},handleWrapperClick:function(){this.wrapperClosable&&this.closeDrawer()},closeDrawer:function(){"function"===typeof this.beforeClose?this.beforeClose(this.hide):this.hide()},handleClose:function(){this.closeDrawer()}},mounted:function(){this.visible&&(this.rendered=!0,this.open(),this.appendToBody&&document.body.appendChild(this.$el))},destroyed:function(){this.appendToBody&&this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)}},sy=oy,ly=s(sy,iy,ay,!1,null,null,null);ly.options.__file="packages/drawer/src/main.vue";var uy=ly.exports;uy.install=function(e){e.component(uy.name,uy)};var cy=uy,dy=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-popover",e._b({attrs:{trigger:"click"},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},"el-popover",e.$attrs,!1),[n("div",{staticClass:"el-popconfirm"},[n("p",{staticClass:"el-popconfirm__main"},[e.hideIcon?e._e():n("i",{staticClass:"el-popconfirm__icon",class:e.icon,style:{color:e.iconColor}}),e._v("\n "+e._s(e.title)+"\n ")]),n("div",{staticClass:"el-popconfirm__action"},[n("el-button",{attrs:{size:"mini",type:e.cancelButtonType},on:{click:e.cancel}},[e._v("\n "+e._s(e.displayCancelButtonText)+"\n ")]),n("el-button",{attrs:{size:"mini",type:e.confirmButtonType},on:{click:e.confirm}},[e._v("\n "+e._s(e.displayConfirmButtonText)+"\n ")])],1)]),e._t("reference",null,{slot:"reference"})],2)},hy=[];dy._withStripped=!0;var fy=n(44),py=n.n(fy),my={name:"ElPopconfirm",props:{title:{type:String},confirmButtonText:{type:String},cancelButtonText:{type:String},confirmButtonType:{type:String,default:"primary"},cancelButtonType:{type:String,default:"text"},icon:{type:String,default:"el-icon-question"},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1}},components:{ElPopover:py.a,ElButton:oe.a},data:function(){return{visible:!1}},computed:{displayConfirmButtonText:function(){return this.confirmButtonText||Object(vs["t"])("el.popconfirm.confirmButtonText")},displayCancelButtonText:function(){return this.cancelButtonText||Object(vs["t"])("el.popconfirm.cancelButtonText")}},methods:{confirm:function(){this.visible=!1,this.$emit("confirm")},cancel:function(){this.visible=!1,this.$emit("cancel")}}},vy=my,gy=s(vy,dy,hy,!1,null,null,null);gy.options.__file="packages/popconfirm/src/main.vue";var yy=gy.exports;yy.install=function(e){e.component(yy.name,yy)};var by=yy,xy=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.uiLoading?[n("div",e._b({class:["el-skeleton",e.animated?"is-animated":""]},"div",e.$attrs,!1),[e._l(e.count,(function(t){return[e.loading?e._t("template",e._l(e.rows,(function(r){return n("el-skeleton-item",{key:t+"-"+r,class:{"el-skeleton__paragraph":1!==r,"is-first":1===r,"is-last":r===e.rows&&e.rows>1},attrs:{variant:"p"}})}))):e._e()]}))],2)]:[e._t("default",null,null,e.$attrs)]],2)},wy=[];xy._withStripped=!0;var _y={name:"ElSkeleton",props:{animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:4},loading:{type:Boolean,default:!0},throttle:{type:Number,default:0}},watch:{loading:{handler:function(e){var t=this;this.throttle<=0?this.uiLoading=e:e?(clearTimeout(this.timeoutHandle),this.timeoutHandle=setTimeout((function(){t.uiLoading=t.loading}),this.throttle)):this.uiLoading=e},immediate:!0}},data:function(){return{uiLoading:this.throttle<=0&&this.loading}}},Cy=_y,Sy=s(Cy,xy,wy,!1,null,null,null);Sy.options.__file="packages/skeleton/src/index.vue";var Ny=Sy.exports;Ny.install=function(e){e.component(Ny.name,Ny)};var ky=Ny,Ey=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["el-skeleton__item","el-skeleton__"+e.variant]},["image"===e.variant?n("img-placeholder"):e._e()],1)},My=[];Ey._withStripped=!0;var Oy=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M64 896V128h896v768H64z m64-128l192-192 116.352 116.352L640 448l256 307.2V192H128v576z m224-480a96 96 0 1 1-0.064 192.064A96 96 0 0 1 352 288z"}})])},Dy=[];Oy._withStripped=!0;var Ty={name:"ImgPlaceholder"},Ay=Ty,Iy=s(Ay,Oy,Dy,!1,null,null,null);Iy.options.__file="packages/skeleton/src/img-placeholder.vue";var $y,Py=Iy.exports,jy={name:"ElSkeletonItem",props:{variant:{type:String,default:"text"}},components:($y={},$y[Py.name]=Py,$y)},Fy=jy,By=s(Fy,Ey,My,!1,null,null,null);By.options.__file="packages/skeleton/src/item.vue";var Ly=By.exports;Ly.install=function(e){e.component(Ly.name,Ly)};var zy=Ly,Ry=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-empty"},[n("div",{staticClass:"el-empty__image",style:e.imageStyle},[e.image?n("img",{attrs:{src:e.image,ondragstart:"return false"}}):e._t("image",[n("img-empty")])],2),n("div",{staticClass:"el-empty__description"},[e.$slots.description?e._t("description"):n("p",[e._v(e._s(e.emptyDescription))])],2),e.$slots.default?n("div",{staticClass:"el-empty__bottom"},[e._t("default")],2):e._e()])},Vy=[];Ry._withStripped=!0;var qy=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[n("defs",[n("linearGradient",{attrs:{id:"linearGradient-1-"+e.id,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"}},[n("stop",{attrs:{"stop-color":"#FCFCFD",offset:"0%"}}),n("stop",{attrs:{"stop-color":"#EEEFF3",offset:"100%"}})],1),n("linearGradient",{attrs:{id:"linearGradient-2-"+e.id,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"}},[n("stop",{attrs:{"stop-color":"#FCFCFD",offset:"0%"}}),n("stop",{attrs:{"stop-color":"#E9EBEF",offset:"100%"}})],1),n("rect",{attrs:{id:"path-3-"+e.id,x:"0",y:"0",width:"17",height:"36"}})],1),n("g",{attrs:{id:"Illustrations",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"}},[n("g",{attrs:{id:"B-type",transform:"translate(-1268.000000, -535.000000)"}},[n("g",{attrs:{id:"Group-2",transform:"translate(1268.000000, 535.000000)"}},[n("path",{attrs:{id:"Oval-Copy-2",d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:"#F7F8FC"}}),n("polygon",{attrs:{id:"Rectangle-Copy-14",fill:"#E5E7E9",transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"}}),n("g",{attrs:{id:"Group-Copy",transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"}},[n("polygon",{attrs:{id:"Rectangle-Copy-10",fill:"#E5E7E9",transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"}}),n("polygon",{attrs:{id:"Rectangle-Copy-11",fill:"#EDEEF2",points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"}}),n("rect",{attrs:{id:"Rectangle-Copy-12",fill:"url(#linearGradient-1-"+e.id+")",transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"}}),n("polygon",{attrs:{id:"Rectangle-Copy-13",fill:"#F8F9FB",transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"}})]),n("rect",{attrs:{id:"Rectangle-Copy-15",fill:"url(#linearGradient-2-"+e.id+")",x:"13",y:"45",width:"40",height:"36"}}),n("g",{attrs:{id:"Rectangle-Copy-17",transform:"translate(53.000000, 45.000000)"}},[n("mask",{attrs:{id:"mask-4-"+e.id,fill:"white"}},[n("use",{attrs:{"xlink:href":"#path-3-"+e.id}})]),n("use",{attrs:{id:"Mask",fill:"#E0E3E9",transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":"#path-3-"+e.id}}),n("polygon",{attrs:{id:"Rectangle-Copy",fill:"#D5D7DE",mask:"url(#mask-4-"+e.id+")",transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 -1.70530257e-13 16"}})]),n("polygon",{attrs:{id:"Rectangle-Copy-18",fill:"#F8F9FB",transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"}})])])])])},Hy=[];qy._withStripped=!0;var Uy=0,Wy={name:"ImgEmpty",data:function(){return{id:++Uy}}},Yy=Wy,Gy=s(Yy,qy,Hy,!1,null,null,null);Gy.options.__file="packages/empty/src/img-empty.vue";var Ky,Xy=Gy.exports,Zy={name:"ElEmpty",components:(Ky={},Ky[Xy.name]=Xy,Ky),props:{image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}},computed:{emptyDescription:function(){return this.description||Object(vs["t"])("el.empty.description")},imageStyle:function(){return{width:this.imageSize?this.imageSize+"px":""}}}},Jy=Zy,Qy=s(Jy,Ry,Vy,!1,null,null,null);Qy.options.__file="packages/empty/src/index.vue";var eb=Qy.exports;eb.install=function(e){e.component(eb.name,eb)};var tb,nb=eb,rb=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ib={name:"ElDescriptionsRow",props:{row:{type:Array}},inject:["elDescriptions"],render:function(e){var t=this.elDescriptions,n=(this.row||[]).map((function(e){return rb({},e,{label:e.slots.label||e.props.label},["labelClassName","contentClassName","labelStyle","contentStyle"].reduce((function(n,r){return n[r]=e.props[r]||t[r],n}),{}))}));return"vertical"===t.direction?e("tbody",[e("tr",{class:"el-descriptions-row"},[n.map((function(n){var r;return e("th",{class:(r={"el-descriptions-item__cell":!0,"el-descriptions-item__label":!0,"has-colon":!t.border&&t.colon,"is-bordered-label":t.border},r[n.labelClassName]=!0,r),style:n.labelStyle,attrs:{colSpan:n.props.span}},[n.label])}))]),e("tr",{class:"el-descriptions-row"},[n.map((function(t){return e("td",{class:["el-descriptions-item__cell","el-descriptions-item__content",t.contentClassName],style:t.contentStyle,attrs:{colSpan:t.props.span}},[t.slots.default])}))])]):t.border?e("tbody",[e("tr",{class:"el-descriptions-row"},[n.map((function(n){var r;return[e("th",{class:(r={"el-descriptions-item__cell":!0,"el-descriptions-item__label":!0,"is-bordered-label":t.border},r[n.labelClassName]=!0,r),style:n.labelStyle,attrs:{colSpan:"1"}},[n.label]),e("td",{class:["el-descriptions-item__cell","el-descriptions-item__content",n.contentClassName],style:n.contentStyle,attrs:{colSpan:2*n.props.span-1}},[n.slots.default])]}))])]):e("tbody",[e("tr",{class:"el-descriptions-row"},[n.map((function(n){var r;return e("td",{class:"el-descriptions-item el-descriptions-item__cell",attrs:{colSpan:n.props.span}},[e("div",{class:"el-descriptions-item__container"},[e("span",{class:(r={"el-descriptions-item__label":!0,"has-colon":t.colon},r[n.labelClassName]=!0,r),style:n.labelStyle},[n.label]),e("span",{class:["el-descriptions-item__content",n.contentClassName],style:n.contentStyle},[n.slots.default])])])}))])])}},ab=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ob={name:"ElDescriptions",components:(tb={},tb[ib.name]=ib,tb),props:{border:{type:Boolean,default:!1},column:{type:Number,default:3},direction:{type:String,default:"horizontal"},size:{type:String},title:{type:String,default:""},extra:{type:String,default:""},labelStyle:{type:Object},contentStyle:{type:Object},labelClassName:{type:String,default:""},contentClassName:{type:String,default:""},colon:{type:Boolean,default:!0}},computed:{descriptionsSize:function(){return this.size||(this.$ELEMENT||{}).size}},provide:function(){return{elDescriptions:this}},methods:{getOptionProps:function(e){if(e.componentOptions){var t=e.componentOptions,n=t.propsData,r=void 0===n?{}:n,i=t.Ctor,a=void 0===i?{}:i,o=(a.options||{}).props||{},s={};for(var l in o){var u=o[l],c=u.default;void 0!==c&&(s[l]=Object(Ud["isFunction"])(c)?c.call(e):c)}return ab({},s,r)}return{}},getSlots:function(e){var t=this,n=e.componentOptions||{},r=e.children||n.children||[],i={};return r.forEach((function(e){if(!t.isEmptyElement(e)){var n=e.data&&e.data.slot||"default";i[n]=i[n]||[],"template"===e.tag?i[n].push(e.children):i[n].push(e)}})),ab({},i)},isEmptyElement:function(e){return!(e.tag||e.text&&""!==e.text.trim())},filledNode:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return e.props||(e.props={}),t>n&&(e.props.span=n),r&&(e.props.span=n),e},getRows:function(){var e=this,t=(this.$slots.default||[]).filter((function(e){return e.tag&&e.componentOptions&&"ElDescriptionsItem"===e.componentOptions.Ctor.options.name})),n=t.map((function(t){return{props:e.getOptionProps(t),slots:e.getSlots(t),vnode:t}})),r=[],i=[],a=this.column;return n.forEach((function(n,o){var s=n.props.span||1;if(o===t.length-1)return i.push(e.filledNode(n,s,a,!0)),void r.push(i);s<a?(a-=s,i.push(n)):(i.push(e.filledNode(n,s,a)),r.push(i),a=e.column,i=[])})),r}},render:function(){var e=arguments[0],t=this.title,n=this.extra,r=this.border,i=this.descriptionsSize,a=this.$slots,o=this.getRows();return e("div",{class:"el-descriptions"},[t||n||a.title||a.extra?e("div",{class:"el-descriptions__header"},[e("div",{class:"el-descriptions__title"},[a.title?a.title:t]),e("div",{class:"el-descriptions__extra"},[a.extra?a.extra:n])]):null,e("div",{class:"el-descriptions__body"},[e("table",{class:["el-descriptions__table",{"is-bordered":r},i?"el-descriptions--"+i:""]},[o.map((function(t){return e(ib,{attrs:{row:t}})}))])])])},install:function(e){e.component(ob.name,ob)}},sb=ob,lb={name:"ElDescriptionsItem",props:{label:{type:String,default:""},span:{type:Number,default:1},contentClassName:{type:String,default:""},contentStyle:{type:Object},labelClassName:{type:String,default:""},labelStyle:{type:Object}},render:function(){return null},install:function(e){e.component(lb.name,lb)}},ub=lb,cb=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-result"},[n("div",{staticClass:"el-result__icon"},[e._t("icon",[n(e.iconElement,{tag:"component",class:e.iconElement})])],2),e.title||e.$slots.title?n("div",{staticClass:"el-result__title"},[e._t("title",[n("p",[e._v(e._s(e.title))])])],2):e._e(),e.subTitle||e.$slots.subTitle?n("div",{staticClass:"el-result__subtitle"},[e._t("subTitle",[n("p",[e._v(e._s(e.subTitle))])])],2):e._e(),e.$slots.extra?n("div",{staticClass:"el-result__extra"},[e._t("extra")],2):e._e()])},db=[];cb._withStripped=!0;var hb=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M34.5548098,16.4485711 C33.9612228,15.8504763 32.9988282,15.8504763 32.4052412,16.4485711 L32.4052412,16.4485711 L21.413757,27.5805811 L21.413757,27.5805811 L21.4034642,27.590855 C21.0097542,27.9781674 20.3766105,27.9729811 19.9892981,27.5792711 L19.9892981,27.5792711 L15.5947588,23.1121428 C15.0011718,22.514048 14.0387772,22.514048 13.4451902,23.1121428 C12.8516033,23.7102376 12.8516033,24.6799409 13.4451902,25.2780357 L13.4451902,25.2780357 L19.6260786,31.5514289 C20.2196656,32.1495237 21.1820602,32.1495237 21.7756472,31.5514289 L21.7756472,31.5514289 L34.5548098,18.614464 C35.1483967,18.0163692 35.1483967,17.0466659 34.5548098,16.4485711 Z"}})])},fb=[];hb._withStripped=!0;var pb={name:"IconSuccess"},mb=pb,vb=s(mb,hb,fb,!1,null,null,null);vb.options.__file="packages/result/src/icon-success.vue";var gb=vb.exports,yb=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M32.57818,15.42182 C32.0157534,14.8593933 31.1038797,14.8593933 30.541453,15.42182 L30.541453,15.42182 L24.0006789,21.9625941 L17.458547,15.42182 C16.8961203,14.8593933 15.9842466,14.8593933 15.42182,15.42182 C14.8593933,15.9842466 14.8593933,16.8961203 15.42182,17.458547 L15.42182,17.458547 L21.9639519,23.9993211 L15.42182,30.541453 C14.8593933,31.1038797 14.8593933,32.0157534 15.42182,32.57818 C15.9842466,33.1406067 16.8961203,33.1406067 17.458547,32.57818 L17.458547,32.57818 L24.0006789,26.0360481 L30.541453,32.57818 C31.1038797,33.1406067 32.0157534,33.1406067 32.57818,32.57818 C33.1406067,32.0157534 33.1406067,31.1038797 32.57818,30.541453 L32.57818,30.541453 L26.0374059,23.9993211 L32.57818,17.458547 C33.1406067,16.8961203 33.1406067,15.9842466 32.57818,15.42182 Z"}})])},bb=[];yb._withStripped=!0;var xb={name:"IconError"},wb=xb,_b=s(wb,yb,bb,!1,null,null,null);_b.options.__file="packages/result/src/icon-error.vue";var Cb=_b.exports,Sb=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M24,31 C22.8954305,31 22,31.8954305 22,33 C22,34.1045695 22.8954305,35 24,35 C25.1045695,35 26,34.1045695 26,33 C26,31.8954305 25.1045695,31 24,31 Z M24,14 C23.1715729,14 22.5,14.6715729 22.5,15.5 L22.5,15.5 L22.5,27.5 C22.5,28.3284271 23.1715729,29 24,29 C24.8284271,29 25.5,28.3284271 25.5,27.5 L25.5,27.5 L25.5,15.5 C25.5,14.6715729 24.8284271,14 24,14 Z"}})])},Nb=[];Sb._withStripped=!0;var kb={name:"IconWarning"},Eb=kb,Mb=s(Eb,Sb,Nb,!1,null,null,null);Mb.options.__file="packages/result/src/icon-warning.vue";var Ob=Mb.exports,Db=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M24,19 L21,19 C20.1715729,19 19.5,19.6715729 19.5,20.5 C19.5,21.3284271 20.1715729,22 21,22 L21,22 L22.5,22 L22.5,31 L21,31 C20.1715729,31 19.5,31.6715729 19.5,32.5 C19.5,33.3284271 20.1715729,34 21,34 L21,34 L27,34 C27.8284271,34 28.5,33.3284271 28.5,32.5 C28.5,31.6715729 27.8284271,31 27,31 L27,31 L25.5,31 L25.5,20.5 C25.5,19.6715729 24.8284271,19 24,19 L24,19 Z M24,13 C22.8954305,13 22,13.8954305 22,15 C22,16.1045695 22.8954305,17 24,17 C25.1045695,17 26,16.1045695 26,15 C26,13.8954305 25.1045695,13 24,13 Z"}})])},Tb=[];Db._withStripped=!0;var Ab={name:"IconInfo"},Ib=Ab,$b=s(Ib,Db,Tb,!1,null,null,null);$b.options.__file="packages/result/src/icon-info.vue";var Pb,jb=$b.exports,Fb={success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},Bb={name:"ElResult",components:(Pb={},Pb[gb.name]=gb,Pb[Cb.name]=Cb,Pb[Ob.name]=Ob,Pb[jb.name]=jb,Pb),props:{title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,default:"info"}},computed:{iconElement:function(){var e=this.icon;return e&&Fb[e]?Fb[e]:"icon-info"}}},Lb=Bb,zb=s(Lb,cb,db,!1,null,null,null);zb.options.__file="packages/result/src/index.vue";var Rb=zb.exports;Rb.install=function(e){e.component(Rb.name,Rb)};var Vb=Rb,qb=[x,I,ie,fe,xe,Ee,Ue,et,ut,vt,Tt,Lt,Wt,en,ln,mn,_n,On,jn,lr,ur,vr,Cr,Dr,Ki,ra,To,qo,ns,ds,fs,Us,Js,al,xl,Rl,Xl,tu,Du,Bu,pc,Lc,Rc,Hc,Cd,Dd,Fd,oh,fh,xh,Eh,$h,qh,Gh,nf,cf,gf,Af,Ap,Up,Jp,am,hm,bm,Mm,Im,zm,Ym,ev,bv,Fv,Wv,dg,Jg,ry,cy,by,ky,zy,nb,sb,ub,Vb,Ye.a],Hb=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};gs.a.use(t.locale),gs.a.i18n(t.i18n),qb.forEach((function(t){e.component(t.name,t)})),e.use(ig),e.use(Ac.directive),e.prototype.$ELEMENT={size:t.size||"",zIndex:t.zIndex||2e3},e.prototype.$loading=Ac.service,e.prototype.$msgbox=Bs,e.prototype.$alert=Bs.alert,e.prototype.$confirm=Bs.confirm,e.prototype.$prompt=Bs.prompt,e.prototype.$notify=Ju,e.prototype.$message=Qd};"undefined"!==typeof window&&window.Vue&&Hb(window.Vue);t["default"]={version:"2.15.9",locale:gs.a.use,i18n:gs.a.i18n,install:Hb,CollapseTransition:Ye.a,Loading:Ac,Pagination:x,Dialog:I,Autocomplete:ie,Dropdown:fe,DropdownMenu:xe,DropdownItem:Ee,Menu:Ue,Submenu:et,MenuItem:ut,MenuItemGroup:vt,Input:Tt,InputNumber:Lt,Radio:Wt,RadioGroup:en,RadioButton:ln,Checkbox:mn,CheckboxButton:_n,CheckboxGroup:On,Switch:jn,Select:lr,Option:ur,OptionGroup:vr,Button:Cr,ButtonGroup:Dr,Table:Ki,TableColumn:ra,DatePicker:To,TimeSelect:qo,TimePicker:ns,Popover:ds,Tooltip:fs,MessageBox:Bs,Breadcrumb:Us,BreadcrumbItem:Js,Form:al,FormItem:xl,Tabs:Rl,TabPane:Xl,Tag:tu,Tree:Du,Alert:Bu,Notification:Ju,Slider:pc,Icon:Lc,Row:Rc,Col:Hc,Upload:Cd,Progress:Dd,Spinner:Fd,Message:Qd,Badge:oh,Card:fh,Rate:xh,Steps:Eh,Step:$h,Carousel:qh,Scrollbar:Gh,CarouselItem:nf,Collapse:cf,CollapseItem:gf,Cascader:Af,ColorPicker:Ap,Transfer:Up,Container:Jp,Header:am,Aside:hm,Main:bm,Footer:Mm,Timeline:Im,TimelineItem:zm,Link:Ym,Divider:ev,Image:bv,Calendar:Fv,Backtop:Wv,InfiniteScroll:ig,PageHeader:dg,CascaderPanel:Jg,Avatar:ry,Drawer:cy,Popconfirm:by,Skeleton:ky,SkeletonItem:zy,Empty:nb,Descriptions:sb,DescriptionsItem:ub,Result:Vb}}])["default"]},7987:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=86)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,a,o,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),a&&(u._scopeId="data-v-"+a),o?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},10:function(e,t){e.exports=n(7626)},2:function(e,t){e.exports=n(4594)},22:function(e,t){e.exports=n(8618)},30:function(e,t,n){"use strict";var r=n(2);t["a"]={bind:function(e,t,n){var i=null,a=void 0,o=function(){return n.context[t.expression].apply()},s=function(){Date.now()-a<100&&o(),clearInterval(i),i=null};Object(r["on"])(e,"mousedown",(function(e){0===e.button&&(a=Date.now(),Object(r["once"])(document,"mouseup",s),clearInterval(i),i=setInterval(o,100))}))}}},86:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["el-input-number",e.inputNumberSize?"el-input-number--"+e.inputNumberSize:"",{"is-disabled":e.inputNumberDisabled},{"is-without-controls":!e.controls},{"is-controls-right":e.controlsAtRight}],on:{dragstart:function(e){e.preventDefault()}}},[e.controls?n("span",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.decrease,expression:"decrease"}],staticClass:"el-input-number__decrease",class:{"is-disabled":e.minDisabled},attrs:{role:"button"},on:{keydown:function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.decrease(t)}}},[n("i",{class:"el-icon-"+(e.controlsAtRight?"arrow-down":"minus")})]):e._e(),e.controls?n("span",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.increase,expression:"increase"}],staticClass:"el-input-number__increase",class:{"is-disabled":e.maxDisabled},attrs:{role:"button"},on:{keydown:function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.increase(t)}}},[n("i",{class:"el-icon-"+(e.controlsAtRight?"arrow-up":"plus")})]):e._e(),n("el-input",{ref:"input",attrs:{value:e.displayValue,placeholder:e.placeholder,disabled:e.inputNumberDisabled,size:e.inputNumberSize,max:e.max,min:e.min,name:e.name,label:e.label},on:{blur:e.handleBlur,focus:e.handleFocus,input:e.handleInput,change:e.handleInputChange},nativeOn:{keydown:[function(t){return!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.preventDefault(),e.increase(t))},function(t){return!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.preventDefault(),e.decrease(t))}]}})],1)},i=[];r._withStripped=!0;var a=n(10),o=n.n(a),s=n(22),l=n.n(s),u=n(30),c={name:"ElInputNumber",mixins:[l()("input")],inject:{elForm:{default:""},elFormItem:{default:""}},directives:{repeatClick:u["a"]},components:{ElInput:o.a},props:{step:{type:Number,default:1},stepStrictly:{type:Boolean,default:!1},max:{type:Number,default:1/0},min:{type:Number,default:-1/0},value:{},disabled:Boolean,size:String,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:""},name:String,label:String,placeholder:String,precision:{type:Number,validator:function(e){return e>=0&&e===parseInt(e,10)}}},data:function(){return{currentValue:0,userInput:null}},watch:{value:{immediate:!0,handler:function(e){var t=void 0===e?e:Number(e);if(void 0!==t){if(isNaN(t))return;if(this.stepStrictly){var n=this.getPrecision(this.step),r=Math.pow(10,n);t=Math.round(t/this.step)*r*this.step/r}void 0!==this.precision&&(t=this.toPrecision(t,this.precision))}t>=this.max&&(t=this.max),t<=this.min&&(t=this.min),this.currentValue=t,this.userInput=null,this.$emit("input",t)}}},computed:{minDisabled:function(){return this._decrease(this.value,this.step)<this.min},maxDisabled:function(){return this._increase(this.value,this.step)>this.max},numPrecision:function(){var e=this.value,t=this.step,n=this.getPrecision,r=this.precision,i=n(t);return void 0!==r?(i>r&&console.warn("[Element Warn][InputNumber]precision should not be less than the decimal places of step"),r):Math.max(n(e),i)},controlsAtRight:function(){return this.controls&&"right"===this.controlsPosition},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},inputNumberSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputNumberDisabled:function(){return this.disabled||!!(this.elForm||{}).disabled},displayValue:function(){if(null!==this.userInput)return this.userInput;var e=this.currentValue;if("number"===typeof e){if(this.stepStrictly){var t=this.getPrecision(this.step),n=Math.pow(10,t);e=Math.round(e/this.step)*n*this.step/n}void 0!==this.precision&&(e=e.toFixed(this.precision))}return e}},methods:{toPrecision:function(e,t){return void 0===t&&(t=this.numPrecision),parseFloat(Math.round(e*Math.pow(10,t))/Math.pow(10,t))},getPrecision:function(e){if(void 0===e)return 0;var t=e.toString(),n=t.indexOf("."),r=0;return-1!==n&&(r=t.length-n-1),r},_increase:function(e,t){if("number"!==typeof e&&void 0!==e)return this.currentValue;var n=Math.pow(10,this.numPrecision);return this.toPrecision((n*e+n*t)/n)},_decrease:function(e,t){if("number"!==typeof e&&void 0!==e)return this.currentValue;var n=Math.pow(10,this.numPrecision);return this.toPrecision((n*e-n*t)/n)},increase:function(){if(!this.inputNumberDisabled&&!this.maxDisabled){var e=this.value||0,t=this._increase(e,this.step);this.setCurrentValue(t)}},decrease:function(){if(!this.inputNumberDisabled&&!this.minDisabled){var e=this.value||0,t=this._decrease(e,this.step);this.setCurrentValue(t)}},handleBlur:function(e){this.$emit("blur",e)},handleFocus:function(e){this.$emit("focus",e)},setCurrentValue:function(e){var t=this.currentValue;"number"===typeof e&&void 0!==this.precision&&(e=this.toPrecision(e,this.precision)),e>=this.max&&(e=this.max),e<=this.min&&(e=this.min),t!==e&&(this.userInput=null,this.$emit("input",e),this.$emit("change",e,t),this.currentValue=e)},handleInput:function(e){this.userInput=e},handleInputChange:function(e){var t=""===e?void 0:Number(e);isNaN(t)&&""!==e||this.setCurrentValue(t),this.userInput=null},select:function(){this.$refs.input.select()}},mounted:function(){var e=this.$refs.input.$refs.input;e.setAttribute("role","spinbutton"),e.setAttribute("aria-valuemax",this.max),e.setAttribute("aria-valuemin",this.min),e.setAttribute("aria-valuenow",this.currentValue),e.setAttribute("aria-disabled",this.inputNumberDisabled)},updated:function(){if(this.$refs&&this.$refs.input){var e=this.$refs.input.$refs.input;e.setAttribute("aria-valuenow",this.currentValue)}}},d=c,h=n(0),f=Object(h["a"])(d,r,i,!1,null,null,null);f.options.__file="packages/input-number/src/input-number.vue";var p=f.exports;p.install=function(e){e.component(p.name,p)};t["default"]=p}})},7626:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=74)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,a,o,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),a&&(u._scopeId="data-v-"+a),o?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},11:function(e,t){e.exports=n(4222)},21:function(e,t){e.exports=n(167)},4:function(e,t){e.exports=n(2477)},74:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["textarea"===e.type?"el-textarea":"el-input",e.inputSize?"el-input--"+e.inputSize:"",{"is-disabled":e.inputDisabled,"is-exceed":e.inputExceed,"el-input-group":e.$slots.prepend||e.$slots.append,"el-input-group--append":e.$slots.append,"el-input-group--prepend":e.$slots.prepend,"el-input--prefix":e.$slots.prefix||e.prefixIcon,"el-input--suffix":e.$slots.suffix||e.suffixIcon||e.clearable||e.showPassword}],on:{mouseenter:function(t){e.hovering=!0},mouseleave:function(t){e.hovering=!1}}},["textarea"!==e.type?[e.$slots.prepend?n("div",{staticClass:"el-input-group__prepend"},[e._t("prepend")],2):e._e(),"textarea"!==e.type?n("input",e._b({ref:"input",staticClass:"el-input__inner",attrs:{tabindex:e.tabindex,type:e.showPassword?e.passwordVisible?"text":"password":e.type,disabled:e.inputDisabled,readonly:e.readonly,autocomplete:e.autoComplete||e.autocomplete,"aria-label":e.label},on:{compositionstart:e.handleCompositionStart,compositionupdate:e.handleCompositionUpdate,compositionend:e.handleCompositionEnd,input:e.handleInput,focus:e.handleFocus,blur:e.handleBlur,change:e.handleChange}},"input",e.$attrs,!1)):e._e(),e.$slots.prefix||e.prefixIcon?n("span",{staticClass:"el-input__prefix"},[e._t("prefix"),e.prefixIcon?n("i",{staticClass:"el-input__icon",class:e.prefixIcon}):e._e()],2):e._e(),e.getSuffixVisible()?n("span",{staticClass:"el-input__suffix"},[n("span",{staticClass:"el-input__suffix-inner"},[e.showClear&&e.showPwdVisible&&e.isWordLimitVisible?e._e():[e._t("suffix"),e.suffixIcon?n("i",{staticClass:"el-input__icon",class:e.suffixIcon}):e._e()],e.showClear?n("i",{staticClass:"el-input__icon el-icon-circle-close el-input__clear",on:{mousedown:function(e){e.preventDefault()},click:e.clear}}):e._e(),e.showPwdVisible?n("i",{staticClass:"el-input__icon el-icon-view el-input__clear",on:{click:e.handlePasswordVisible}}):e._e(),e.isWordLimitVisible?n("span",{staticClass:"el-input__count"},[n("span",{staticClass:"el-input__count-inner"},[e._v("\n "+e._s(e.textLength)+"/"+e._s(e.upperLimit)+"\n ")])]):e._e()],2),e.validateState?n("i",{staticClass:"el-input__icon",class:["el-input__validateIcon",e.validateIcon]}):e._e()]):e._e(),e.$slots.append?n("div",{staticClass:"el-input-group__append"},[e._t("append")],2):e._e()]:n("textarea",e._b({ref:"textarea",staticClass:"el-textarea__inner",style:e.textareaStyle,attrs:{tabindex:e.tabindex,disabled:e.inputDisabled,readonly:e.readonly,autocomplete:e.autoComplete||e.autocomplete,"aria-label":e.label},on:{compositionstart:e.handleCompositionStart,compositionupdate:e.handleCompositionUpdate,compositionend:e.handleCompositionEnd,input:e.handleInput,focus:e.handleFocus,blur:e.handleBlur,change:e.handleChange}},"textarea",e.$attrs,!1)),e.isWordLimitVisible&&"textarea"===e.type?n("span",{staticClass:"el-input__count"},[e._v(e._s(e.textLength)+"/"+e._s(e.upperLimit))]):e._e()],2)},i=[];r._withStripped=!0;var a=n(4),o=n.n(a),s=n(11),l=n.n(s),u=void 0,c="\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n",d=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function h(e){var t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=parseFloat(t.getPropertyValue("padding-bottom"))+parseFloat(t.getPropertyValue("padding-top")),i=parseFloat(t.getPropertyValue("border-bottom-width"))+parseFloat(t.getPropertyValue("border-top-width")),a=d.map((function(e){return e+":"+t.getPropertyValue(e)})).join(";");return{contextStyle:a,paddingSize:r,borderSize:i,boxSizing:n}}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;u||(u=document.createElement("textarea"),document.body.appendChild(u));var r=h(e),i=r.paddingSize,a=r.borderSize,o=r.boxSizing,s=r.contextStyle;u.setAttribute("style",s+";"+c),u.value=e.value||e.placeholder||"";var l=u.scrollHeight,d={};"border-box"===o?l+=a:"content-box"===o&&(l-=i),u.value="";var f=u.scrollHeight-i;if(null!==t){var p=f*t;"border-box"===o&&(p=p+i+a),l=Math.max(p,l),d.minHeight=p+"px"}if(null!==n){var m=f*n;"border-box"===o&&(m=m+i+a),l=Math.min(m,l)}return d.height=l+"px",u.parentNode&&u.parentNode.removeChild(u),u=null,d}var p=n(9),m=n.n(p),v=n(21),g={name:"ElInput",componentName:"ElInput",mixins:[o.a,l.a],inheritAttrs:!1,inject:{elForm:{default:""},elFormItem:{default:""}},data:function(){return{textareaCalcStyle:{},hovering:!1,focused:!1,isComposing:!1,passwordVisible:!1}},props:{value:[String,Number],size:String,resize:String,form:String,disabled:Boolean,readonly:Boolean,type:{type:String,default:"text"},autosize:{type:[Boolean,Object],default:!1},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(e){return!0}},validateEvent:{type:Boolean,default:!0},suffixIcon:String,prefixIcon:String,label:String,clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},tabindex:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},validateState:function(){return this.elFormItem?this.elFormItem.validateState:""},needStatusIcon:function(){return!!this.elForm&&this.elForm.statusIcon},validateIcon:function(){return{validating:"el-icon-loading",success:"el-icon-circle-check",error:"el-icon-circle-close"}[this.validateState]},textareaStyle:function(){return m()({},this.textareaCalcStyle,{resize:this.resize})},inputSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputDisabled:function(){return this.disabled||(this.elForm||{}).disabled},nativeInputValue:function(){return null===this.value||void 0===this.value?"":String(this.value)},showClear:function(){return this.clearable&&!this.inputDisabled&&!this.readonly&&this.nativeInputValue&&(this.focused||this.hovering)},showPwdVisible:function(){return this.showPassword&&!this.inputDisabled&&!this.readonly&&(!!this.nativeInputValue||this.focused)},isWordLimitVisible:function(){return this.showWordLimit&&this.$attrs.maxlength&&("text"===this.type||"textarea"===this.type)&&!this.inputDisabled&&!this.readonly&&!this.showPassword},upperLimit:function(){return this.$attrs.maxlength},textLength:function(){return"number"===typeof this.value?String(this.value).length:(this.value||"").length},inputExceed:function(){return this.isWordLimitVisible&&this.textLength>this.upperLimit}},watch:{value:function(e){this.$nextTick(this.resizeTextarea),this.validateEvent&&this.dispatch("ElFormItem","el.form.change",[e])},nativeInputValue:function(){this.setNativeInputValue()},type:function(){var e=this;this.$nextTick((function(){e.setNativeInputValue(),e.resizeTextarea(),e.updateIconOffset()}))}},methods:{focus:function(){this.getInput().focus()},blur:function(){this.getInput().blur()},getMigratingConfig:function(){return{props:{icon:"icon is removed, use suffix-icon / prefix-icon instead.","on-icon-click":"on-icon-click is removed."},events:{click:"click is removed."}}},handleBlur:function(e){this.focused=!1,this.$emit("blur",e),this.validateEvent&&this.dispatch("ElFormItem","el.form.blur",[this.value])},select:function(){this.getInput().select()},resizeTextarea:function(){if(!this.$isServer){var e=this.autosize,t=this.type;if("textarea"===t)if(e){var n=e.minRows,r=e.maxRows;this.textareaCalcStyle=f(this.$refs.textarea,n,r)}else this.textareaCalcStyle={minHeight:f(this.$refs.textarea).minHeight}}},setNativeInputValue:function(){var e=this.getInput();e&&e.value!==this.nativeInputValue&&(e.value=this.nativeInputValue)},handleFocus:function(e){this.focused=!0,this.$emit("focus",e)},handleCompositionStart:function(e){this.$emit("compositionstart",e),this.isComposing=!0},handleCompositionUpdate:function(e){this.$emit("compositionupdate",e);var t=e.target.value,n=t[t.length-1]||"";this.isComposing=!Object(v["isKorean"])(n)},handleCompositionEnd:function(e){this.$emit("compositionend",e),this.isComposing&&(this.isComposing=!1,this.handleInput(e))},handleInput:function(e){this.isComposing||e.target.value!==this.nativeInputValue&&(this.$emit("input",e.target.value),this.$nextTick(this.setNativeInputValue))},handleChange:function(e){this.$emit("change",e.target.value)},calcIconOffset:function(e){var t=[].slice.call(this.$el.querySelectorAll(".el-input__"+e)||[]);if(t.length){for(var n=null,r=0;r<t.length;r++)if(t[r].parentNode===this.$el){n=t[r];break}if(n){var i={suffix:"append",prefix:"prepend"},a=i[e];this.$slots[a]?n.style.transform="translateX("+("suffix"===e?"-":"")+this.$el.querySelector(".el-input-group__"+a).offsetWidth+"px)":n.removeAttribute("style")}}},updateIconOffset:function(){this.calcIconOffset("prefix"),this.calcIconOffset("suffix")},clear:function(){this.$emit("input",""),this.$emit("change",""),this.$emit("clear")},handlePasswordVisible:function(){var e=this;this.passwordVisible=!this.passwordVisible,this.$nextTick((function(){e.focus()}))},getInput:function(){return this.$refs.input||this.$refs.textarea},getSuffixVisible:function(){return this.$slots.suffix||this.suffixIcon||this.showClear||this.showPassword||this.isWordLimitVisible||this.validateState&&this.needStatusIcon}},created:function(){this.$on("inputSelect",this.select)},mounted:function(){this.setNativeInputValue(),this.resizeTextarea(),this.updateIconOffset()},updated:function(){this.$nextTick(this.updateIconOffset)}},y=g,b=n(0),x=Object(b["a"])(y,r,i,!1,null,null,null);x.options.__file="packages/input/src/input.vue";var w=x.exports;w.install=function(e){e.component(w.name,w)};t["default"]=w},9:function(e,t){e.exports=n(1615)}})},6445:function(e,t,n){"use strict";t.__esModule=!0;var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t["default"]=function(e){function t(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return 1===n.length&&"object"===r(n[0])&&(n=n[0]),n&&n.hasOwnProperty||(n={}),e.replace(a,(function(t,r,a,o){var s=void 0;return"{"===e[o-1]&&"}"===e[o+t.length]?a:(s=(0,i.hasOwn)(n,a)?n[a]:null,null===s||void 0===s?"":s)}))}return t};var i=n(3104),a=/(%|)\{([0-9a-zA-Z_]+)\}/g},1802:function(e,t,n){"use strict";t.__esModule=!0,t.i18n=t.use=t.t=void 0;var r=n(1877),i=d(r),a=n(144),o=d(a),s=n(9996),l=d(s),u=n(6445),c=d(u);function d(e){return e&&e.__esModule?e:{default:e}}var h=(0,c.default)(o.default),f=i.default,p=!1,m=function(){var e=Object.getPrototypeOf(this||o.default).$t;if("function"===typeof e&&o.default.locale)return p||(p=!0,o.default.locale(o.default.config.lang,(0,l.default)(f,o.default.locale(o.default.config.lang)||{},{clone:!0}))),e.apply(this,arguments)},v=t.t=function(e,t){var n=m.apply(this,arguments);if(null!==n&&void 0!==n)return n;for(var r=e.split("."),i=f,a=0,o=r.length;a<o;a++){var s=r[a];if(n=i[s],a===o-1)return h(n,t);if(!n)return"";i=n}return""},g=t.use=function(e){f=e||f},y=t.i18n=function(e){m=e||m};t["default"]={use:g,t:v,i18n:y}},1877:function(e,t){"use strict";t.__esModule=!0,t["default"]={el:{colorpicker:{confirm:"确定",clear:"清空"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},empty:{description:"暂无数据"}}}},2477:function(e,t){"use strict";function n(e,t,r){this.$children.forEach((function(i){var a=i.$options.componentName;a===e?i.$emit.apply(i,[t].concat(r)):n.apply(i,[e,t].concat([r]))}))}t.__esModule=!0,t["default"]={methods:{dispatch:function(e,t,n){var r=this.$parent||this.$root,i=r.$options.componentName;while(r&&(!i||i!==e))r=r.$parent,r&&(i=r.$options.componentName);r&&r.$emit.apply(r,[t].concat(n))},broadcast:function(e,t,r){n.call(this,e,t,r)}}}},8618:function(e,t){"use strict";t.__esModule=!0,t["default"]=function(e){return{methods:{focus:function(){this.$refs[e].focus()}}}}},2084:function(e,t,n){"use strict";t.__esModule=!0;var r=n(1802);t["default"]={methods:{t:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.t.apply(this,t)}}}},4222:function(e,t,n){"use strict";t.__esModule=!0;n(3104);t["default"]={mounted:function(){},methods:{getMigratingConfig:function(){return{props:{},events:{}}}}}},5614:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=53)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,a,o,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),a&&(u._scopeId="data-v-"+a),o?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},3:function(e,t){e.exports=n(3104)},33:function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-select-dropdown__item",class:{selected:e.itemSelected,"is-disabled":e.disabled||e.groupDisabled||e.limitReached,hover:e.hover},on:{mouseenter:e.hoverItem,click:function(t){return t.stopPropagation(),e.selectOptionClick(t)}}},[e._t("default",[n("span",[e._v(e._s(e.currentLabel))])])],2)},i=[];r._withStripped=!0;var a=n(4),o=n.n(a),s=n(3),l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u={mixins:[o.a],name:"ElOption",componentName:"ElOption",inject:["select"],props:{value:{required:!0},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},data:function(){return{index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}},computed:{isObject:function(){return"[object object]"===Object.prototype.toString.call(this.value).toLowerCase()},currentLabel:function(){return this.label||(this.isObject?"":this.value)},currentValue:function(){return this.value||this.label||""},itemSelected:function(){return this.select.multiple?this.contains(this.select.value,this.value):this.isEqual(this.value,this.select.value)},limitReached:function(){return!!this.select.multiple&&(!this.itemSelected&&(this.select.value||[]).length>=this.select.multipleLimit&&this.select.multipleLimit>0)}},watch:{currentLabel:function(){this.created||this.select.remote||this.dispatch("ElSelect","setSelected")},value:function(e,t){var n=this.select,r=n.remote,i=n.valueKey;if(!this.created&&!r){if(i&&"object"===("undefined"===typeof e?"undefined":l(e))&&"object"===("undefined"===typeof t?"undefined":l(t))&&e[i]===t[i])return;this.dispatch("ElSelect","setSelected")}}},methods:{isEqual:function(e,t){if(this.isObject){var n=this.select.valueKey;return Object(s["getValueByPath"])(e,n)===Object(s["getValueByPath"])(t,n)}return e===t},contains:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];if(this.isObject){var n=this.select.valueKey;return e&&e.some((function(e){return Object(s["getValueByPath"])(e,n)===Object(s["getValueByPath"])(t,n)}))}return e&&e.indexOf(t)>-1},handleGroupDisabled:function(e){this.groupDisabled=e},hoverItem:function(){this.disabled||this.groupDisabled||(this.select.hoverIndex=this.select.options.indexOf(this))},selectOptionClick:function(){!0!==this.disabled&&!0!==this.groupDisabled&&this.dispatch("ElSelect","handleOptionClick",[this,!0])},queryChange:function(e){this.visible=new RegExp(Object(s["escapeRegexpString"])(e),"i").test(this.currentLabel)||this.created,this.visible||this.select.filteredOptionsCount--}},created:function(){this.select.options.push(this),this.select.cachedOptions.push(this),this.select.optionsCount++,this.select.filteredOptionsCount++,this.$on("queryChange",this.queryChange),this.$on("handleGroupDisabled",this.handleGroupDisabled)},beforeDestroy:function(){var e=this.select,t=e.selected,n=e.multiple,r=n?t:[t],i=this.select.cachedOptions.indexOf(this),a=r.indexOf(this);i>-1&&a<0&&this.select.cachedOptions.splice(i,1),this.select.onOptionDestroy(this.select.options.indexOf(this))}},c=u,d=n(0),h=Object(d["a"])(c,r,i,!1,null,null,null);h.options.__file="packages/select/src/option.vue";t["a"]=h.exports},4:function(e,t){e.exports=n(2477)},53:function(e,t,n){"use strict";n.r(t);var r=n(33);r["a"].install=function(e){e.component(r["a"].name,r["a"])},t["default"]=r["a"]}})},4650:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=77)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,a,o,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),a&&(u._scopeId="data-v-"+a),o?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},2:function(e,t){e.exports=n(4594)},3:function(e,t){e.exports=n(3104)},5:function(e,t){e.exports=n(499)},7:function(e,t){e.exports=n(144)},77:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",[n("transition",{attrs:{name:e.transition},on:{"after-enter":e.handleAfterEnter,"after-leave":e.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:!e.disabled&&e.showPopper,expression:"!disabled && showPopper"}],ref:"popper",staticClass:"el-popover el-popper",class:[e.popperClass,e.content&&"el-popover--plain"],style:{width:e.width+"px"},attrs:{role:"tooltip",id:e.tooltipId,"aria-hidden":e.disabled||!e.showPopper?"true":"false"}},[e.title?n("div",{staticClass:"el-popover__title",domProps:{textContent:e._s(e.title)}}):e._e(),e._t("default",[e._v(e._s(e.content))])],2)]),n("span",{ref:"wrapper",staticClass:"el-popover__reference-wrapper"},[e._t("reference")],2)],1)},i=[];r._withStripped=!0;var a=n(5),o=n.n(a),s=n(2),l=n(3),u={name:"ElPopover",mixins:[o.a],props:{trigger:{type:String,default:"click",validator:function(e){return["click","focus","hover","manual"].indexOf(e)>-1}},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:200},title:String,disabled:Boolean,content:String,reference:{},popperClass:String,width:{},visibleArrow:{default:!0},arrowOffset:{type:Number,default:0},transition:{type:String,default:"fade-in-linear"},tabindex:{type:Number,default:0}},computed:{tooltipId:function(){return"el-popover-"+Object(l["generateId"])()}},watch:{showPopper:function(e){this.disabled||(e?this.$emit("show"):this.$emit("hide"))}},mounted:function(){var e=this,t=this.referenceElm=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!t&&this.$refs.wrapper.children&&(t=this.referenceElm=this.$refs.wrapper.children[0]),t&&(Object(s["addClass"])(t,"el-popover__reference"),t.setAttribute("aria-describedby",this.tooltipId),t.setAttribute("tabindex",this.tabindex),n.setAttribute("tabindex",0),"click"!==this.trigger&&(Object(s["on"])(t,"focusin",(function(){e.handleFocus();var n=t.__vue__;n&&"function"===typeof n.focus&&n.focus()})),Object(s["on"])(n,"focusin",this.handleFocus),Object(s["on"])(t,"focusout",this.handleBlur),Object(s["on"])(n,"focusout",this.handleBlur)),Object(s["on"])(t,"keydown",this.handleKeydown),Object(s["on"])(t,"click",this.handleClick)),"click"===this.trigger?(Object(s["on"])(t,"click",this.doToggle),Object(s["on"])(document,"click",this.handleDocumentClick)):"hover"===this.trigger?(Object(s["on"])(t,"mouseenter",this.handleMouseEnter),Object(s["on"])(n,"mouseenter",this.handleMouseEnter),Object(s["on"])(t,"mouseleave",this.handleMouseLeave),Object(s["on"])(n,"mouseleave",this.handleMouseLeave)):"focus"===this.trigger&&(this.tabindex<0&&console.warn("[Element Warn][Popover]a negative taindex means that the element cannot be focused by tab key"),t.querySelector("input, textarea")?(Object(s["on"])(t,"focusin",this.doShow),Object(s["on"])(t,"focusout",this.doClose)):(Object(s["on"])(t,"mousedown",this.doShow),Object(s["on"])(t,"mouseup",this.doClose)))},beforeDestroy:function(){this.cleanup()},deactivated:function(){this.cleanup()},methods:{doToggle:function(){this.showPopper=!this.showPopper},doShow:function(){this.showPopper=!0},doClose:function(){this.showPopper=!1},handleFocus:function(){Object(s["addClass"])(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!0)},handleClick:function(){Object(s["removeClass"])(this.referenceElm,"focusing")},handleBlur:function(){Object(s["removeClass"])(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!1)},handleMouseEnter:function(){var e=this;clearTimeout(this._timer),this.openDelay?this._timer=setTimeout((function(){e.showPopper=!0}),this.openDelay):this.showPopper=!0},handleKeydown:function(e){27===e.keyCode&&"manual"!==this.trigger&&this.doClose()},handleMouseLeave:function(){var e=this;clearTimeout(this._timer),this.closeDelay?this._timer=setTimeout((function(){e.showPopper=!1}),this.closeDelay):this.showPopper=!1},handleDocumentClick:function(e){var t=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!t&&this.$refs.wrapper.children&&(t=this.referenceElm=this.$refs.wrapper.children[0]),this.$el&&t&&!this.$el.contains(e.target)&&!t.contains(e.target)&&n&&!n.contains(e.target)&&(this.showPopper=!1)},handleAfterEnter:function(){this.$emit("after-enter")},handleAfterLeave:function(){this.$emit("after-leave"),this.doDestroy()},cleanup:function(){(this.openDelay||this.closeDelay)&&clearTimeout(this._timer)}},destroyed:function(){var e=this.reference;Object(s["off"])(e,"click",this.doToggle),Object(s["off"])(e,"mouseup",this.doClose),Object(s["off"])(e,"mousedown",this.doShow),Object(s["off"])(e,"focusin",this.doShow),Object(s["off"])(e,"focusout",this.doClose),Object(s["off"])(e,"mousedown",this.doShow),Object(s["off"])(e,"mouseup",this.doClose),Object(s["off"])(e,"mouseleave",this.handleMouseLeave),Object(s["off"])(e,"mouseenter",this.handleMouseEnter),Object(s["off"])(document,"click",this.handleDocumentClick)}},c=u,d=n(0),h=Object(d["a"])(c,r,i,!1,null,null,null);h.options.__file="packages/popover/src/main.vue";var f=h.exports,p=function(e,t,n){var r=t.expression?t.value:t.arg,i=n.context.$refs[r];i&&(Array.isArray(i)?i[0].$refs.reference=e:i.$refs.reference=e)},m={bind:function(e,t,n){p(e,t,n)},inserted:function(e,t,n){p(e,t,n)}},v=n(7),g=n.n(v);g.a.directive("popover",m),f.install=function(e){e.directive("popover",m),e.component(f.name,f)},f.directive=m;t["default"]=f}})},2271:function(e){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=103)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,a,o,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),a&&(u._scopeId="data-v-"+a),o?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},103:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-progress",class:["el-progress--"+e.type,e.status?"is-"+e.status:"",{"el-progress--without-text":!e.showText,"el-progress--text-inside":e.textInside}],attrs:{role:"progressbar","aria-valuenow":e.percentage,"aria-valuemin":"0","aria-valuemax":"100"}},["line"===e.type?n("div",{staticClass:"el-progress-bar"},[n("div",{staticClass:"el-progress-bar__outer",style:{height:e.strokeWidth+"px"}},[n("div",{staticClass:"el-progress-bar__inner",style:e.barStyle},[e.showText&&e.textInside?n("div",{staticClass:"el-progress-bar__innerText"},[e._v(e._s(e.content))]):e._e()])])]):n("div",{staticClass:"el-progress-circle",style:{height:e.width+"px",width:e.width+"px"}},[n("svg",{attrs:{viewBox:"0 0 100 100"}},[n("path",{staticClass:"el-progress-circle__track",style:e.trailPathStyle,attrs:{d:e.trackPath,stroke:"#e5e9f2","stroke-width":e.relativeStrokeWidth,fill:"none"}}),n("path",{staticClass:"el-progress-circle__path",style:e.circlePathStyle,attrs:{d:e.trackPath,stroke:e.stroke,fill:"none","stroke-linecap":e.strokeLinecap,"stroke-width":e.percentage?e.relativeStrokeWidth:0}})])]),e.showText&&!e.textInside?n("div",{staticClass:"el-progress__text",style:{fontSize:e.progressTextSize+"px"}},[e.status?n("i",{class:e.iconClass}):[e._v(e._s(e.content))]],2):e._e()])},i=[];r._withStripped=!0;var a={name:"ElProgress",props:{type:{type:String,default:"line",validator:function(e){return["line","circle","dashboard"].indexOf(e)>-1}},percentage:{type:Number,default:0,required:!0,validator:function(e){return e>=0&&e<=100}},status:{type:String,validator:function(e){return["success","exception","warning"].indexOf(e)>-1}},strokeWidth:{type:Number,default:6},strokeLinecap:{type:String,default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:[String,Array,Function],default:""},format:Function},computed:{barStyle:function(){var e={};return e.width=this.percentage+"%",e.backgroundColor=this.getCurrentColor(this.percentage),e},relativeStrokeWidth:function(){return(this.strokeWidth/this.width*100).toFixed(1)},radius:function(){return"circle"===this.type||"dashboard"===this.type?parseInt(50-parseFloat(this.relativeStrokeWidth)/2,10):0},trackPath:function(){var e=this.radius,t="dashboard"===this.type;return"\n M 50 50\n m 0 "+(t?"":"-")+e+"\n a "+e+" "+e+" 0 1 1 0 "+(t?"-":"")+2*e+"\n a "+e+" "+e+" 0 1 1 0 "+(t?"":"-")+2*e+"\n "},perimeter:function(){return 2*Math.PI*this.radius},rate:function(){return"dashboard"===this.type?.75:1},strokeDashoffset:function(){var e=-1*this.perimeter*(1-this.rate)/2;return e+"px"},trailPathStyle:function(){return{strokeDasharray:this.perimeter*this.rate+"px, "+this.perimeter+"px",strokeDashoffset:this.strokeDashoffset}},circlePathStyle:function(){return{strokeDasharray:this.perimeter*this.rate*(this.percentage/100)+"px, "+this.perimeter+"px",strokeDashoffset:this.strokeDashoffset,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease"}},stroke:function(){var e=void 0;if(this.color)e=this.getCurrentColor(this.percentage);else switch(this.status){case"success":e="#13ce66";break;case"exception":e="#ff4949";break;case"warning":e="#e6a23c";break;default:e="#20a0ff"}return e},iconClass:function(){return"warning"===this.status?"el-icon-warning":"line"===this.type?"success"===this.status?"el-icon-circle-check":"el-icon-circle-close":"success"===this.status?"el-icon-check":"el-icon-close"},progressTextSize:function(){return"line"===this.type?12+.4*this.strokeWidth:.111111*this.width+2},content:function(){return"function"===typeof this.format?this.format(this.percentage)||"":this.percentage+"%"}},methods:{getCurrentColor:function(e){return"function"===typeof this.color?this.color(e):"string"===typeof this.color?this.color:this.getLevelColor(e)},getLevelColor:function(e){for(var t=this.getColorArray().sort((function(e,t){return e.percentage-t.percentage})),n=0;n<t.length;n++)if(t[n].percentage>e)return t[n].color;return t[t.length-1].color},getColorArray:function(){var e=this.color,t=100/e.length;return e.map((function(e,n){return"string"===typeof e?{color:e,percentage:(n+1)*t}:e}))}}},o=a,s=n(0),l=Object(s["a"])(o,r,i,!1,null,null,null);l.options.__file="packages/progress/src/progress.vue";var u=l.exports;u.install=function(e){e.component(u.name,u)};t["default"]=u}})},1955:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=87)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,a,o,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),a&&(u._scopeId="data-v-"+a),o?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},4:function(e,t){e.exports=n(2477)},87:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"el-radio",class:[e.border&&e.radioSize?"el-radio--"+e.radioSize:"",{"is-disabled":e.isDisabled},{"is-focus":e.focus},{"is-bordered":e.border},{"is-checked":e.model===e.label}],attrs:{role:"radio","aria-checked":e.model===e.label,"aria-disabled":e.isDisabled,tabindex:e.tabIndex},on:{keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"space",32,t.key,[" ","Spacebar"]))return null;t.stopPropagation(),t.preventDefault(),e.model=e.isDisabled?e.model:e.label}}},[n("span",{staticClass:"el-radio__input",class:{"is-disabled":e.isDisabled,"is-checked":e.model===e.label}},[n("span",{staticClass:"el-radio__inner"}),n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],ref:"radio",staticClass:"el-radio__original",attrs:{type:"radio","aria-hidden":"true",name:e.name,disabled:e.isDisabled,tabindex:"-1",autocomplete:"off"},domProps:{value:e.label,checked:e._q(e.model,e.label)},on:{focus:function(t){e.focus=!0},blur:function(t){e.focus=!1},change:[function(t){e.model=e.label},e.handleChange]}})]),n("span",{staticClass:"el-radio__label",on:{keydown:function(e){e.stopPropagation()}}},[e._t("default"),e.$slots.default?e._e():[e._v(e._s(e.label))]],2)])},i=[];r._withStripped=!0;var a=n(4),o=n.n(a),s={name:"ElRadio",mixins:[o.a],inject:{elForm:{default:""},elFormItem:{default:""}},componentName:"ElRadio",props:{value:{},label:{},disabled:Boolean,name:String,border:Boolean,size:String},data:function(){return{focus:!1}},computed:{isGroup:function(){var e=this.$parent;while(e){if("ElRadioGroup"===e.$options.componentName)return this._radioGroup=e,!0;e=e.$parent}return!1},model:{get:function(){return this.isGroup?this._radioGroup.value:this.value},set:function(e){this.isGroup?this.dispatch("ElRadioGroup","input",[e]):this.$emit("input",e),this.$refs.radio&&(this.$refs.radio.checked=this.model===this.label)}},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},radioSize:function(){var e=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup&&this._radioGroup.radioGroupSize||e},isDisabled:function(){return this.isGroup?this._radioGroup.disabled||this.disabled||(this.elForm||{}).disabled:this.disabled||(this.elForm||{}).disabled},tabIndex:function(){return this.isDisabled||this.isGroup&&this.model!==this.label?-1:0}},methods:{handleChange:function(){var e=this;this.$nextTick((function(){e.$emit("change",e.model),e.isGroup&&e.dispatch("ElRadioGroup","handleChange",e.model)}))}}},l=s,u=n(0),c=Object(u["a"])(l,r,i,!1,null,null,null);c.options.__file="packages/radio/src/radio.vue";var d=c.exports;d.install=function(e){e.component(d.name,d)};t["default"]=d}})},7122:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=131)}({131:function(e,t,n){"use strict";n.r(t);var r=n(16),i=n(38),a=n.n(i),o=n(3),s=n(2),l={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}};function u(e){var t=e.move,n=e.size,r=e.bar,i={},a="translate"+r.axis+"("+t+"%)";return i[r.size]=n,i.transform=a,i.msTransform=a,i.webkitTransform=a,i}var c={name:"Bar",props:{vertical:Boolean,size:String,move:Number},computed:{bar:function(){return l[this.vertical?"vertical":"horizontal"]},wrap:function(){return this.$parent.wrap}},render:function(e){var t=this.size,n=this.move,r=this.bar;return e("div",{class:["el-scrollbar__bar","is-"+r.key],on:{mousedown:this.clickTrackHandler}},[e("div",{ref:"thumb",class:"el-scrollbar__thumb",on:{mousedown:this.clickThumbHandler},style:u({size:t,move:n,bar:r})})])},methods:{clickThumbHandler:function(e){e.ctrlKey||2===e.button||(this.startDrag(e),this[this.bar.axis]=e.currentTarget[this.bar.offset]-(e[this.bar.client]-e.currentTarget.getBoundingClientRect()[this.bar.direction]))},clickTrackHandler:function(e){var t=Math.abs(e.target.getBoundingClientRect()[this.bar.direction]-e[this.bar.client]),n=this.$refs.thumb[this.bar.offset]/2,r=100*(t-n)/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=r*this.wrap[this.bar.scrollSize]/100},startDrag:function(e){e.stopImmediatePropagation(),this.cursorDown=!0,Object(s["on"])(document,"mousemove",this.mouseMoveDocumentHandler),Object(s["on"])(document,"mouseup",this.mouseUpDocumentHandler),document.onselectstart=function(){return!1}},mouseMoveDocumentHandler:function(e){if(!1!==this.cursorDown){var t=this[this.bar.axis];if(t){var n=-1*(this.$el.getBoundingClientRect()[this.bar.direction]-e[this.bar.client]),r=this.$refs.thumb[this.bar.offset]-t,i=100*(n-r)/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=i*this.wrap[this.bar.scrollSize]/100}}},mouseUpDocumentHandler:function(e){this.cursorDown=!1,this[this.bar.axis]=0,Object(s["off"])(document,"mousemove",this.mouseMoveDocumentHandler),document.onselectstart=null}},destroyed:function(){Object(s["off"])(document,"mouseup",this.mouseUpDocumentHandler)}},d={name:"ElScrollbar",components:{Bar:c},props:{native:Boolean,wrapStyle:{},wrapClass:{},viewClass:{},viewStyle:{},noresize:Boolean,tag:{type:String,default:"div"}},data:function(){return{sizeWidth:"0",sizeHeight:"0",moveX:0,moveY:0}},computed:{wrap:function(){return this.$refs.wrap}},render:function(e){var t=a()(),n=this.wrapStyle;if(t){var r="-"+t+"px",i="margin-bottom: "+r+"; margin-right: "+r+";";Array.isArray(this.wrapStyle)?(n=Object(o["toObject"])(this.wrapStyle),n.marginRight=n.marginBottom=r):"string"===typeof this.wrapStyle?n+=i:n=i}var s=e(this.tag,{class:["el-scrollbar__view",this.viewClass],style:this.viewStyle,ref:"resize"},this.$slots.default),l=e("div",{ref:"wrap",style:n,on:{scroll:this.handleScroll},class:[this.wrapClass,"el-scrollbar__wrap",t?"":"el-scrollbar__wrap--hidden-default"]},[[s]]),u=void 0;return u=this.native?[e("div",{ref:"wrap",class:[this.wrapClass,"el-scrollbar__wrap"],style:n},[[s]])]:[l,e(c,{attrs:{move:this.moveX,size:this.sizeWidth}}),e(c,{attrs:{vertical:!0,move:this.moveY,size:this.sizeHeight}})],e("div",{class:"el-scrollbar"},u)},methods:{handleScroll:function(){var e=this.wrap;this.moveY=100*e.scrollTop/e.clientHeight,this.moveX=100*e.scrollLeft/e.clientWidth},update:function(){var e=void 0,t=void 0,n=this.wrap;n&&(e=100*n.clientHeight/n.scrollHeight,t=100*n.clientWidth/n.scrollWidth,this.sizeHeight=e<100?e+"%":"",this.sizeWidth=t<100?t+"%":"")}},mounted:function(){this.native||(this.$nextTick(this.update),!this.noresize&&Object(r["addResizeListener"])(this.$refs.resize,this.update))},beforeDestroy:function(){this.native||!this.noresize&&Object(r["removeResizeListener"])(this.$refs.resize,this.update)},install:function(e){e.component(d.name,d)}};t["default"]=d},16:function(e,t){e.exports=n(6567)},2:function(e,t){e.exports=n(4594)},3:function(e,t){e.exports=n(3104)},38:function(e,t){e.exports=n(1301)}})},7186:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=61)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,a,o,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),a&&(u._scopeId="data-v-"+a),o?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},10:function(e,t){e.exports=n(7626)},12:function(e,t){e.exports=n(1080)},15:function(e,t){e.exports=n(7122)},16:function(e,t){e.exports=n(6567)},19:function(e,t){e.exports=n(2823)},21:function(e,t){e.exports=n(167)},22:function(e,t){e.exports=n(8618)},3:function(e,t){e.exports=n(3104)},31:function(e,t){e.exports=n(8275)},33:function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-select-dropdown__item",class:{selected:e.itemSelected,"is-disabled":e.disabled||e.groupDisabled||e.limitReached,hover:e.hover},on:{mouseenter:e.hoverItem,click:function(t){return t.stopPropagation(),e.selectOptionClick(t)}}},[e._t("default",[n("span",[e._v(e._s(e.currentLabel))])])],2)},i=[];r._withStripped=!0;var a=n(4),o=n.n(a),s=n(3),l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u={mixins:[o.a],name:"ElOption",componentName:"ElOption",inject:["select"],props:{value:{required:!0},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},data:function(){return{index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}},computed:{isObject:function(){return"[object object]"===Object.prototype.toString.call(this.value).toLowerCase()},currentLabel:function(){return this.label||(this.isObject?"":this.value)},currentValue:function(){return this.value||this.label||""},itemSelected:function(){return this.select.multiple?this.contains(this.select.value,this.value):this.isEqual(this.value,this.select.value)},limitReached:function(){return!!this.select.multiple&&(!this.itemSelected&&(this.select.value||[]).length>=this.select.multipleLimit&&this.select.multipleLimit>0)}},watch:{currentLabel:function(){this.created||this.select.remote||this.dispatch("ElSelect","setSelected")},value:function(e,t){var n=this.select,r=n.remote,i=n.valueKey;if(!this.created&&!r){if(i&&"object"===("undefined"===typeof e?"undefined":l(e))&&"object"===("undefined"===typeof t?"undefined":l(t))&&e[i]===t[i])return;this.dispatch("ElSelect","setSelected")}}},methods:{isEqual:function(e,t){if(this.isObject){var n=this.select.valueKey;return Object(s["getValueByPath"])(e,n)===Object(s["getValueByPath"])(t,n)}return e===t},contains:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];if(this.isObject){var n=this.select.valueKey;return e&&e.some((function(e){return Object(s["getValueByPath"])(e,n)===Object(s["getValueByPath"])(t,n)}))}return e&&e.indexOf(t)>-1},handleGroupDisabled:function(e){this.groupDisabled=e},hoverItem:function(){this.disabled||this.groupDisabled||(this.select.hoverIndex=this.select.options.indexOf(this))},selectOptionClick:function(){!0!==this.disabled&&!0!==this.groupDisabled&&this.dispatch("ElSelect","handleOptionClick",[this,!0])},queryChange:function(e){this.visible=new RegExp(Object(s["escapeRegexpString"])(e),"i").test(this.currentLabel)||this.created,this.visible||this.select.filteredOptionsCount--}},created:function(){this.select.options.push(this),this.select.cachedOptions.push(this),this.select.optionsCount++,this.select.filteredOptionsCount++,this.$on("queryChange",this.queryChange),this.$on("handleGroupDisabled",this.handleGroupDisabled)},beforeDestroy:function(){var e=this.select,t=e.selected,n=e.multiple,r=n?t:[t],i=this.select.cachedOptions.indexOf(this),a=r.indexOf(this);i>-1&&a<0&&this.select.cachedOptions.splice(i,1),this.select.onOptionDestroy(this.select.options.indexOf(this))}},c=u,d=n(0),h=Object(d["a"])(c,r,i,!1,null,null,null);h.options.__file="packages/select/src/option.vue";t["a"]=h.exports},37:function(e,t){e.exports=n(7698)},4:function(e,t){e.exports=n(2477)},5:function(e,t){e.exports=n(499)},6:function(e,t){e.exports=n(2084)},61:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleClose,expression:"handleClose"}],staticClass:"el-select",class:[e.selectSize?"el-select--"+e.selectSize:""],on:{click:function(t){return t.stopPropagation(),e.toggleMenu(t)}}},[e.multiple?n("div",{ref:"tags",staticClass:"el-select__tags",style:{"max-width":e.inputWidth-32+"px",width:"100%"}},[e.collapseTags&&e.selected.length?n("span",[n("el-tag",{attrs:{closable:!e.selectDisabled,size:e.collapseTagSize,hit:e.selected[0].hitState,type:"info","disable-transitions":""},on:{close:function(t){e.deleteTag(t,e.selected[0])}}},[n("span",{staticClass:"el-select__tags-text"},[e._v(e._s(e.selected[0].currentLabel))])]),e.selected.length>1?n("el-tag",{attrs:{closable:!1,size:e.collapseTagSize,type:"info","disable-transitions":""}},[n("span",{staticClass:"el-select__tags-text"},[e._v("+ "+e._s(e.selected.length-1))])]):e._e()],1):e._e(),e.collapseTags?e._e():n("transition-group",{on:{"after-leave":e.resetInputHeight}},e._l(e.selected,(function(t){return n("el-tag",{key:e.getValueKey(t),attrs:{closable:!e.selectDisabled,size:e.collapseTagSize,hit:t.hitState,type:"info","disable-transitions":""},on:{close:function(n){e.deleteTag(n,t)}}},[n("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.currentLabel))])])})),1),e.filterable?n("input",{directives:[{name:"model",rawName:"v-model",value:e.query,expression:"query"}],ref:"input",staticClass:"el-select__input",class:[e.selectSize?"is-"+e.selectSize:""],style:{"flex-grow":"1",width:e.inputLength/(e.inputWidth-32)+"%","max-width":e.inputWidth-42+"px"},attrs:{type:"text",disabled:e.selectDisabled,autocomplete:e.autoComplete||e.autocomplete},domProps:{value:e.query},on:{focus:e.handleFocus,blur:function(t){e.softFocus=!1},keyup:e.managePlaceholder,keydown:[e.resetInputState,function(t){if(!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;t.preventDefault(),e.handleNavigate("next")},function(t){if(!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"]))return null;t.preventDefault(),e.handleNavigate("prev")},function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.selectOption(t))},function(t){if(!("button"in t)&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;t.stopPropagation(),t.preventDefault(),e.visible=!1},function(t){return!("button"in t)&&e._k(t.keyCode,"delete",[8,46],t.key,["Backspace","Delete","Del"])?null:e.deletePrevTag(t)},function(t){if(!("button"in t)&&e._k(t.keyCode,"tab",9,t.key,"Tab"))return null;e.visible=!1}],compositionstart:e.handleComposition,compositionupdate:e.handleComposition,compositionend:e.handleComposition,input:[function(t){t.target.composing||(e.query=t.target.value)},e.debouncedQueryChange]}}):e._e()],1):e._e(),n("el-input",{ref:"reference",class:{"is-focus":e.visible},attrs:{type:"text",placeholder:e.currentPlaceholder,name:e.name,id:e.id,autocomplete:e.autoComplete||e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,tabindex:e.multiple&&e.filterable?"-1":null},on:{focus:e.handleFocus,blur:e.handleBlur,input:e.debouncedOnInputChange,compositionstart:e.handleComposition,compositionupdate:e.handleComposition,compositionend:e.handleComposition},nativeOn:{keydown:[function(t){if(!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;t.stopPropagation(),t.preventDefault(),e.handleNavigate("next")},function(t){if(!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"]))return null;t.stopPropagation(),t.preventDefault(),e.handleNavigate("prev")},function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.selectOption(t))},function(t){if(!("button"in t)&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;t.stopPropagation(),t.preventDefault(),e.visible=!1},function(t){if(!("button"in t)&&e._k(t.keyCode,"tab",9,t.key,"Tab"))return null;e.visible=!1}],mouseenter:function(t){e.inputHovering=!0},mouseleave:function(t){e.inputHovering=!1}},model:{value:e.selectedLabel,callback:function(t){e.selectedLabel=t},expression:"selectedLabel"}},[e.$slots.prefix?n("template",{slot:"prefix"},[e._t("prefix")],2):e._e(),n("template",{slot:"suffix"},[n("i",{directives:[{name:"show",rawName:"v-show",value:!e.showClose,expression:"!showClose"}],class:["el-select__caret","el-input__icon","el-icon-"+e.iconClass]}),e.showClose?n("i",{staticClass:"el-select__caret el-input__icon el-icon-circle-close",on:{click:e.handleClearClick}}):e._e()])],2),n("transition",{attrs:{name:"el-zoom-in-top"},on:{"before-enter":e.handleMenuEnter,"after-leave":e.doDestroy}},[n("el-select-menu",{directives:[{name:"show",rawName:"v-show",value:e.visible&&!1!==e.emptyText,expression:"visible && emptyText !== false"}],ref:"popper",attrs:{"append-to-body":e.popperAppendToBody}},[n("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:e.options.length>0&&!e.loading,expression:"options.length > 0 && !loading"}],ref:"scrollbar",class:{"is-empty":!e.allowCreate&&e.query&&0===e.filteredOptionsCount},attrs:{tag:"ul","wrap-class":"el-select-dropdown__wrap","view-class":"el-select-dropdown__list"}},[e.showNewOption?n("el-option",{attrs:{value:e.query,created:""}}):e._e(),e._t("default")],2),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&0===e.options.length)?[e.$slots.empty?e._t("empty"):n("p",{staticClass:"el-select-dropdown__empty"},[e._v("\n "+e._s(e.emptyText)+"\n ")])]:e._e()],2)],1)],1)},i=[];r._withStripped=!0;var a=n(4),o=n.n(a),s=n(22),l=n.n(s),u=n(6),c=n.n(u),d=n(10),h=n.n(d),f=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-select-dropdown el-popper",class:[{"is-multiple":e.$parent.multiple},e.popperClass],style:{minWidth:e.minWidth}},[e._t("default")],2)},p=[];f._withStripped=!0;var m=n(5),v=n.n(m),g={name:"ElSelectDropdown",componentName:"ElSelectDropdown",mixins:[v.a],props:{placement:{default:"bottom-start"},boundariesPadding:{default:0},popperOptions:{default:function(){return{gpuAcceleration:!1}}},visibleArrow:{default:!0},appendToBody:{type:Boolean,default:!0}},data:function(){return{minWidth:""}},computed:{popperClass:function(){return this.$parent.popperClass}},watch:{"$parent.inputWidth":function(){this.minWidth=this.$parent.$el.getBoundingClientRect().width+"px"}},mounted:function(){var e=this;this.referenceElm=this.$parent.$refs.reference.$el,this.$parent.popperElm=this.popperElm=this.$el,this.$on("updatePopper",(function(){e.$parent.visible&&e.updatePopper()})),this.$on("destroyPopper",this.destroyPopper)}},y=g,b=n(0),x=Object(b["a"])(y,f,p,!1,null,null,null);x.options.__file="packages/select/src/select-dropdown.vue";var w=x.exports,_=n(33),C=n(37),S=n.n(C),N=n(15),k=n.n(N),E=n(19),M=n.n(E),O=n(12),D=n.n(O),T=n(16),A=n(31),I=n.n(A),$=n(3),P={data:function(){return{hoverOption:-1}},computed:{optionsAllDisabled:function(){return this.options.filter((function(e){return e.visible})).every((function(e){return e.disabled}))}},watch:{hoverIndex:function(e){var t=this;"number"===typeof e&&e>-1&&(this.hoverOption=this.options[e]||{}),this.options.forEach((function(e){e.hover=t.hoverOption===e}))}},methods:{navigateOptions:function(e){var t=this;if(this.visible){if(0!==this.options.length&&0!==this.filteredOptionsCount&&!this.optionsAllDisabled){"next"===e?(this.hoverIndex++,this.hoverIndex===this.options.length&&(this.hoverIndex=0)):"prev"===e&&(this.hoverIndex--,this.hoverIndex<0&&(this.hoverIndex=this.options.length-1));var n=this.options[this.hoverIndex];!0!==n.disabled&&!0!==n.groupDisabled&&n.visible||this.navigateOptions(e),this.$nextTick((function(){return t.scrollToOption(t.hoverOption)}))}}else this.visible=!0}}},j=n(21),F={mixins:[o.a,c.a,l()("reference"),P],name:"ElSelect",componentName:"ElSelect",inject:{elForm:{default:""},elFormItem:{default:""}},provide:function(){return{select:this}},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},readonly:function(){return!this.filterable||this.multiple||!Object($["isIE"])()&&!Object($["isEdge"])()&&!this.visible},showClose:function(){var e=this.multiple?Array.isArray(this.value)&&this.value.length>0:void 0!==this.value&&null!==this.value&&""!==this.value,t=this.clearable&&!this.selectDisabled&&this.inputHovering&&e;return t},iconClass:function(){return this.remote&&this.filterable?"":this.visible?"arrow-up is-reverse":"arrow-up"},debounce:function(){return this.remote?300:0},emptyText:function(){return this.loading?this.loadingText||this.t("el.select.loading"):(!this.remote||""!==this.query||0!==this.options.length)&&(this.filterable&&this.query&&this.options.length>0&&0===this.filteredOptionsCount?this.noMatchText||this.t("el.select.noMatch"):0===this.options.length?this.noDataText||this.t("el.select.noData"):null)},showNewOption:function(){var e=this,t=this.options.filter((function(e){return!e.created})).some((function(t){return t.currentLabel===e.query}));return this.filterable&&this.allowCreate&&""!==this.query&&!t},selectSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},selectDisabled:function(){return this.disabled||(this.elForm||{}).disabled},collapseTagSize:function(){return["small","mini"].indexOf(this.selectSize)>-1?"mini":"small"},propPlaceholder:function(){return"undefined"!==typeof this.placeholder?this.placeholder:this.t("el.select.placeholder")}},components:{ElInput:h.a,ElSelectMenu:w,ElOption:_["a"],ElTag:S.a,ElScrollbar:k.a},directives:{Clickoutside:D.a},props:{name:String,id:String,value:{required:!0},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(e){return!0}},automaticDropdown:Boolean,size:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:String,remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String,required:!1},defaultFirstOption:Boolean,reserveKeyword:Boolean,valueKey:{type:String,default:"value"},collapseTags:Boolean,popperAppendToBody:{type:Boolean,default:!0}},data:function(){return{options:[],cachedOptions:[],createdLabel:null,createdSelected:!1,selected:this.multiple?[]:{},inputLength:20,inputWidth:0,initialInputHeight:0,cachedPlaceHolder:"",optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,currentPlaceholder:"",menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1}},watch:{selectDisabled:function(){var e=this;this.$nextTick((function(){e.resetInputHeight()}))},propPlaceholder:function(e){this.cachedPlaceHolder=this.currentPlaceholder=e},value:function(e,t){this.multiple&&(this.resetInputHeight(),e&&e.length>0||this.$refs.input&&""!==this.query?this.currentPlaceholder="":this.currentPlaceholder=this.cachedPlaceHolder,this.filterable&&!this.reserveKeyword&&(this.query="",this.handleQueryChange(this.query))),this.setSelected(),this.filterable&&!this.multiple&&(this.inputLength=20),Object($["valueEquals"])(e,t)||this.dispatch("ElFormItem","el.form.change",e)},visible:function(e){var t=this;e?(this.broadcast("ElSelectDropdown","updatePopper"),this.filterable&&(this.query=this.remote?"":this.selectedLabel,this.handleQueryChange(this.query),this.multiple?this.$refs.input.focus():(this.remote||(this.broadcast("ElOption","queryChange",""),this.broadcast("ElOptionGroup","queryChange")),this.selectedLabel&&(this.currentPlaceholder=this.selectedLabel,this.selectedLabel="")))):(this.broadcast("ElSelectDropdown","destroyPopper"),this.$refs.input&&this.$refs.input.blur(),this.query="",this.previousQuery=null,this.selectedLabel="",this.inputLength=20,this.menuVisibleOnFocus=!1,this.resetHoverIndex(),this.$nextTick((function(){t.$refs.input&&""===t.$refs.input.value&&0===t.selected.length&&(t.currentPlaceholder=t.cachedPlaceHolder)})),this.multiple||(this.selected&&(this.filterable&&this.allowCreate&&this.createdSelected&&this.createdLabel?this.selectedLabel=this.createdLabel:this.selectedLabel=this.selected.currentLabel,this.filterable&&(this.query=this.selectedLabel)),this.filterable&&(this.currentPlaceholder=this.cachedPlaceHolder))),this.$emit("visible-change",e)},options:function(){var e=this;if(!this.$isServer){this.$nextTick((function(){e.broadcast("ElSelectDropdown","updatePopper")})),this.multiple&&this.resetInputHeight();var t=this.$el.querySelectorAll("input");-1===[].indexOf.call(t,document.activeElement)&&this.setSelected(),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()}}},methods:{handleNavigate:function(e){this.isOnComposition||this.navigateOptions(e)},handleComposition:function(e){var t=this,n=e.target.value;if("compositionend"===e.type)this.isOnComposition=!1,this.$nextTick((function(e){return t.handleQueryChange(n)}));else{var r=n[n.length-1]||"";this.isOnComposition=!Object(j["isKorean"])(r)}},handleQueryChange:function(e){var t=this;this.previousQuery===e||this.isOnComposition||(null!==this.previousQuery||"function"!==typeof this.filterMethod&&"function"!==typeof this.remoteMethod?(this.previousQuery=e,this.$nextTick((function(){t.visible&&t.broadcast("ElSelectDropdown","updatePopper")})),this.hoverIndex=-1,this.multiple&&this.filterable&&this.$nextTick((function(){var e=15*t.$refs.input.value.length+20;t.inputLength=t.collapseTags?Math.min(50,e):e,t.managePlaceholder(),t.resetInputHeight()})),this.remote&&"function"===typeof this.remoteMethod?(this.hoverIndex=-1,this.remoteMethod(e)):"function"===typeof this.filterMethod?(this.filterMethod(e),this.broadcast("ElOptionGroup","queryChange")):(this.filteredOptionsCount=this.optionsCount,this.broadcast("ElOption","queryChange",e),this.broadcast("ElOptionGroup","queryChange")),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()):this.previousQuery=e)},scrollToOption:function(e){var t=Array.isArray(e)&&e[0]?e[0].$el:e.$el;if(this.$refs.popper&&t){var n=this.$refs.popper.$el.querySelector(".el-select-dropdown__wrap");I()(n,t)}this.$refs.scrollbar&&this.$refs.scrollbar.handleScroll()},handleMenuEnter:function(){var e=this;this.$nextTick((function(){return e.scrollToOption(e.selected)}))},emitChange:function(e){Object($["valueEquals"])(this.value,e)||this.$emit("change",e)},getOption:function(e){for(var t=void 0,n="[object object]"===Object.prototype.toString.call(e).toLowerCase(),r="[object null]"===Object.prototype.toString.call(e).toLowerCase(),i="[object undefined]"===Object.prototype.toString.call(e).toLowerCase(),a=this.cachedOptions.length-1;a>=0;a--){var o=this.cachedOptions[a],s=n?Object($["getValueByPath"])(o.value,this.valueKey)===Object($["getValueByPath"])(e,this.valueKey):o.value===e;if(s){t=o;break}}if(t)return t;var l=n||r||i?"":String(e),u={value:e,currentLabel:l};return this.multiple&&(u.hitState=!1),u},setSelected:function(){var e=this;if(!this.multiple){var t=this.getOption(this.value);return t.created?(this.createdLabel=t.currentLabel,this.createdSelected=!0):this.createdSelected=!1,this.selectedLabel=t.currentLabel,this.selected=t,void(this.filterable&&(this.query=this.selectedLabel))}var n=[];Array.isArray(this.value)&&this.value.forEach((function(t){n.push(e.getOption(t))})),this.selected=n,this.$nextTick((function(){e.resetInputHeight()}))},handleFocus:function(e){this.softFocus?this.softFocus=!1:((this.automaticDropdown||this.filterable)&&(this.filterable&&!this.visible&&(this.menuVisibleOnFocus=!0),this.visible=!0),this.$emit("focus",e))},blur:function(){this.visible=!1,this.$refs.reference.blur()},handleBlur:function(e){var t=this;setTimeout((function(){t.isSilentBlur?t.isSilentBlur=!1:t.$emit("blur",e)}),50),this.softFocus=!1},handleClearClick:function(e){this.deleteSelected(e)},doDestroy:function(){this.$refs.popper&&this.$refs.popper.doDestroy()},handleClose:function(){this.visible=!1},toggleLastOptionHitState:function(e){if(Array.isArray(this.selected)){var t=this.selected[this.selected.length-1];if(t)return!0===e||!1===e?(t.hitState=e,e):(t.hitState=!t.hitState,t.hitState)}},deletePrevTag:function(e){if(e.target.value.length<=0&&!this.toggleLastOptionHitState()){var t=this.value.slice();t.pop(),this.$emit("input",t),this.emitChange(t)}},managePlaceholder:function(){""!==this.currentPlaceholder&&(this.currentPlaceholder=this.$refs.input.value?"":this.cachedPlaceHolder)},resetInputState:function(e){8!==e.keyCode&&this.toggleLastOptionHitState(!1),this.inputLength=15*this.$refs.input.value.length+20,this.resetInputHeight()},resetInputHeight:function(){var e=this;this.collapseTags&&!this.filterable||this.$nextTick((function(){if(e.$refs.reference){var t=e.$refs.reference.$el.childNodes,n=[].filter.call(t,(function(e){return"INPUT"===e.tagName}))[0],r=e.$refs.tags,i=r?Math.round(r.getBoundingClientRect().height):0,a=e.initialInputHeight||40;n.style.height=0===e.selected.length?a+"px":Math.max(r?i+(i>a?6:0):0,a)+"px",e.visible&&!1!==e.emptyText&&e.broadcast("ElSelectDropdown","updatePopper")}}))},resetHoverIndex:function(){var e=this;setTimeout((function(){e.multiple?e.selected.length>0?e.hoverIndex=Math.min.apply(null,e.selected.map((function(t){return e.options.indexOf(t)}))):e.hoverIndex=-1:e.hoverIndex=e.options.indexOf(e.selected)}),300)},handleOptionSelect:function(e,t){var n=this;if(this.multiple){var r=(this.value||[]).slice(),i=this.getValueIndex(r,e.value);i>-1?r.splice(i,1):(this.multipleLimit<=0||r.length<this.multipleLimit)&&r.push(e.value),this.$emit("input",r),this.emitChange(r),e.created&&(this.query="",this.handleQueryChange(""),this.inputLength=20),this.filterable&&this.$refs.input.focus()}else this.$emit("input",e.value),this.emitChange(e.value),this.visible=!1;this.isSilentBlur=t,this.setSoftFocus(),this.visible||this.$nextTick((function(){n.scrollToOption(e)}))},setSoftFocus:function(){this.softFocus=!0;var e=this.$refs.input||this.$refs.reference;e&&e.focus()},getValueIndex:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1],n="[object object]"===Object.prototype.toString.call(t).toLowerCase();if(n){var r=this.valueKey,i=-1;return e.some((function(e,n){return Object($["getValueByPath"])(e,r)===Object($["getValueByPath"])(t,r)&&(i=n,!0)})),i}return e.indexOf(t)},toggleMenu:function(){this.selectDisabled||(this.menuVisibleOnFocus?this.menuVisibleOnFocus=!1:this.visible=!this.visible,this.visible&&(this.$refs.input||this.$refs.reference).focus())},selectOption:function(){this.visible?this.options[this.hoverIndex]&&this.handleOptionSelect(this.options[this.hoverIndex]):this.toggleMenu()},deleteSelected:function(e){e.stopPropagation();var t=this.multiple?[]:"";this.$emit("input",t),this.emitChange(t),this.visible=!1,this.$emit("clear")},deleteTag:function(e,t){var n=this.selected.indexOf(t);if(n>-1&&!this.selectDisabled){var r=this.value.slice();r.splice(n,1),this.$emit("input",r),this.emitChange(r),this.$emit("remove-tag",t.value)}e.stopPropagation()},onInputChange:function(){this.filterable&&this.query!==this.selectedLabel&&(this.query=this.selectedLabel,this.handleQueryChange(this.query))},onOptionDestroy:function(e){e>-1&&(this.optionsCount--,this.filteredOptionsCount--,this.options.splice(e,1))},resetInputWidth:function(){this.inputWidth=this.$refs.reference.$el.getBoundingClientRect().width},handleResize:function(){this.resetInputWidth(),this.multiple&&this.resetInputHeight()},checkDefaultFirstOption:function(){this.hoverIndex=-1;for(var e=!1,t=this.options.length-1;t>=0;t--)if(this.options[t].created){e=!0,this.hoverIndex=t;break}if(!e)for(var n=0;n!==this.options.length;++n){var r=this.options[n];if(this.query){if(!r.disabled&&!r.groupDisabled&&r.visible){this.hoverIndex=n;break}}else if(r.itemSelected){this.hoverIndex=n;break}}},getValueKey:function(e){return"[object object]"!==Object.prototype.toString.call(e.value).toLowerCase()?e.value:Object($["getValueByPath"])(e.value,this.valueKey)}},created:function(){var e=this;this.cachedPlaceHolder=this.currentPlaceholder=this.propPlaceholder,this.multiple&&!Array.isArray(this.value)&&this.$emit("input",[]),!this.multiple&&Array.isArray(this.value)&&this.$emit("input",""),this.debouncedOnInputChange=M()(this.debounce,(function(){e.onInputChange()})),this.debouncedQueryChange=M()(this.debounce,(function(t){e.handleQueryChange(t.target.value)})),this.$on("handleOptionClick",this.handleOptionSelect),this.$on("setSelected",this.setSelected)},mounted:function(){var e=this;this.multiple&&Array.isArray(this.value)&&this.value.length>0&&(this.currentPlaceholder=""),Object(T["addResizeListener"])(this.$el,this.handleResize);var t=this.$refs.reference;if(t&&t.$el){var n={medium:36,small:32,mini:28},r=t.$el.querySelector("input");this.initialInputHeight=r.getBoundingClientRect().height||n[this.selectSize]}this.remote&&this.multiple&&this.resetInputHeight(),this.$nextTick((function(){t&&t.$el&&(e.inputWidth=t.$el.getBoundingClientRect().width)})),this.setSelected()},beforeDestroy:function(){this.$el&&this.handleResize&&Object(T["removeResizeListener"])(this.$el,this.handleResize)}},B=F,L=Object(b["a"])(B,r,i,!1,null,null,null);L.options.__file="packages/select/src/select.vue";var z=L.exports;z.install=function(e){e.component(z.name,z)};t["default"]=z}})},7698:function(e){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=130)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,a,o,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),a&&(u._scopeId="data-v-"+a),o?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},130:function(e,t,n){"use strict";n.r(t);var r,i,a={name:"ElTag",props:{text:String,closable:Boolean,type:String,hit:Boolean,disableTransitions:Boolean,color:String,size:String,effect:{type:String,default:"light",validator:function(e){return-1!==["dark","light","plain"].indexOf(e)}}},methods:{handleClose:function(e){e.stopPropagation(),this.$emit("close",e)},handleClick:function(e){this.$emit("click",e)}},computed:{tagSize:function(){return this.size||(this.$ELEMENT||{}).size}},render:function(e){var t=this.type,n=this.tagSize,r=this.hit,i=this.effect,a=["el-tag",t?"el-tag--"+t:"",n?"el-tag--"+n:"",i?"el-tag--"+i:"",r&&"is-hit"],o=e("span",{class:a,style:{backgroundColor:this.color},on:{click:this.handleClick}},[this.$slots.default,this.closable&&e("i",{class:"el-tag__close el-icon-close",on:{click:this.handleClose}})]);return this.disableTransitions?o:e("transition",{attrs:{name:"el-zoom-in-center"}},[o])}},o=a,s=n(0),l=Object(s["a"])(o,r,i,!1,null,null,null);l.options.__file="packages/tag/src/tag.vue";var u=l.exports;u.install=function(e){e.component(u.name,u)};t["default"]=u}})},4561:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=136)}({136:function(e,t,n){"use strict";n.r(t);var r=n(5),i=n.n(r),a=n(19),o=n.n(a),s=n(2),l=n(3),u=n(7),c=n.n(u),d={name:"ElTooltip",mixins:[i.a],props:{openDelay:{type:Number,default:0},disabled:Boolean,manual:Boolean,effect:{type:String,default:"dark"},arrowOffset:{type:Number,default:0},popperClass:String,content:String,visibleArrow:{default:!0},transition:{type:String,default:"el-fade-in-linear"},popperOptions:{default:function(){return{boundariesPadding:10,gpuAcceleration:!1}}},enterable:{type:Boolean,default:!0},hideAfter:{type:Number,default:0},tabindex:{type:Number,default:0}},data:function(){return{tooltipId:"el-tooltip-"+Object(l["generateId"])(),timeoutPending:null,focusing:!1}},beforeCreate:function(){var e=this;this.$isServer||(this.popperVM=new c.a({data:{node:""},render:function(e){return this.node}}).$mount(),this.debounceClose=o()(200,(function(){return e.handleClosePopper()})))},render:function(e){var t=this;this.popperVM&&(this.popperVM.node=e("transition",{attrs:{name:this.transition},on:{afterLeave:this.doDestroy}},[e("div",{on:{mouseleave:function(){t.setExpectedState(!1),t.debounceClose()},mouseenter:function(){t.setExpectedState(!0)}},ref:"popper",attrs:{role:"tooltip",id:this.tooltipId,"aria-hidden":this.disabled||!this.showPopper?"true":"false"},directives:[{name:"show",value:!this.disabled&&this.showPopper}],class:["el-tooltip__popper","is-"+this.effect,this.popperClass]},[this.$slots.content||this.content])]));var n=this.getFirstElement();if(!n)return null;var r=n.data=n.data||{};return r.staticClass=this.addTooltipClass(r.staticClass),n},mounted:function(){var e=this;this.referenceElm=this.$el,1===this.$el.nodeType&&(this.$el.setAttribute("aria-describedby",this.tooltipId),this.$el.setAttribute("tabindex",this.tabindex),Object(s["on"])(this.referenceElm,"mouseenter",this.show),Object(s["on"])(this.referenceElm,"mouseleave",this.hide),Object(s["on"])(this.referenceElm,"focus",(function(){if(e.$slots.default&&e.$slots.default.length){var t=e.$slots.default[0].componentInstance;t&&t.focus?t.focus():e.handleFocus()}else e.handleFocus()})),Object(s["on"])(this.referenceElm,"blur",this.handleBlur),Object(s["on"])(this.referenceElm,"click",this.removeFocusing)),this.value&&this.popperVM&&this.popperVM.$nextTick((function(){e.value&&e.updatePopper()}))},watch:{focusing:function(e){e?Object(s["addClass"])(this.referenceElm,"focusing"):Object(s["removeClass"])(this.referenceElm,"focusing")}},methods:{show:function(){this.setExpectedState(!0),this.handleShowPopper()},hide:function(){this.setExpectedState(!1),this.debounceClose()},handleFocus:function(){this.focusing=!0,this.show()},handleBlur:function(){this.focusing=!1,this.hide()},removeFocusing:function(){this.focusing=!1},addTooltipClass:function(e){return e?"el-tooltip "+e.replace("el-tooltip",""):"el-tooltip"},handleShowPopper:function(){var e=this;this.expectedState&&!this.manual&&(clearTimeout(this.timeout),this.timeout=setTimeout((function(){e.showPopper=!0}),this.openDelay),this.hideAfter>0&&(this.timeoutPending=setTimeout((function(){e.showPopper=!1}),this.hideAfter)))},handleClosePopper:function(){this.enterable&&this.expectedState||this.manual||(clearTimeout(this.timeout),this.timeoutPending&&clearTimeout(this.timeoutPending),this.showPopper=!1,this.disabled&&this.doDestroy())},setExpectedState:function(e){!1===e&&clearTimeout(this.timeoutPending),this.expectedState=e},getFirstElement:function(){var e=this.$slots.default;if(!Array.isArray(e))return null;for(var t=null,n=0;n<e.length;n++)if(e[n]&&e[n].tag){t=e[n];break}return t}},beforeDestroy:function(){this.popperVM&&this.popperVM.$destroy()},destroyed:function(){var e=this.referenceElm;1===e.nodeType&&(Object(s["off"])(e,"mouseenter",this.show),Object(s["off"])(e,"mouseleave",this.hide),Object(s["off"])(e,"focus",this.handleFocus),Object(s["off"])(e,"blur",this.handleBlur),Object(s["off"])(e,"click",this.removeFocusing))},install:function(e){e.component(d.name,d)}};t["default"]=d},19:function(e,t){e.exports=n(2823)},2:function(e,t){e.exports=n(4594)},3:function(e,t){e.exports=n(3104)},5:function(e,t){e.exports=n(499)},7:function(e,t){e.exports=n(144)}})},2743:function(e,t,n){"use strict";t.__esModule=!0;var r=n(4594);function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=function(){function e(){i(this,e)}return e.prototype.beforeEnter=function(e){(0,r.addClass)(e,"collapse-transition"),e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.style.height="0",e.style.paddingTop=0,e.style.paddingBottom=0},e.prototype.enter=function(e){e.dataset.oldOverflow=e.style.overflow,0!==e.scrollHeight?(e.style.height=e.scrollHeight+"px",e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom):(e.style.height="",e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom),e.style.overflow="hidden"},e.prototype.afterEnter=function(e){(0,r.removeClass)(e,"collapse-transition"),e.style.height="",e.style.overflow=e.dataset.oldOverflow},e.prototype.beforeLeave=function(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.dataset.oldOverflow=e.style.overflow,e.style.height=e.scrollHeight+"px",e.style.overflow="hidden"},e.prototype.leave=function(e){0!==e.scrollHeight&&((0,r.addClass)(e,"collapse-transition"),e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0)},e.prototype.afterLeave=function(e){(0,r.removeClass)(e,"collapse-transition"),e.style.height="",e.style.overflow=e.dataset.oldOverflow,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom},e}();t["default"]={name:"ElCollapseTransition",functional:!0,render:function(e,t){var n=t.children,r={on:new a};return e("transition",r,n)}}},9634:function(e,t){"use strict";t.__esModule=!0,t["default"]=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e||!t)throw new Error("instance & callback is required");var i=!1,a=function(){i||(i=!0,t&&t.apply(null,arguments))};r?e.$once("after-leave",a):e.$on("after-leave",a),setTimeout((function(){a()}),n+100)}},4677:function(e,t,n){"use strict";t.__esModule=!0;var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=n(6583),a=o(i);function o(e){return e&&e.__esModule?e:{default:e}}var s,l=l||{};l.Dialog=function(e,t,n){var i=this;if(this.dialogNode=e,null===this.dialogNode||"dialog"!==this.dialogNode.getAttribute("role"))throw new Error("Dialog() requires a DOM element with ARIA role of dialog.");"string"===typeof t?this.focusAfterClosed=document.getElementById(t):"object"===("undefined"===typeof t?"undefined":r(t))?this.focusAfterClosed=t:this.focusAfterClosed=null,"string"===typeof n?this.focusFirst=document.getElementById(n):"object"===("undefined"===typeof n?"undefined":r(n))?this.focusFirst=n:this.focusFirst=null,this.focusFirst?this.focusFirst.focus():a.default.focusFirstDescendant(this.dialogNode),this.lastFocus=document.activeElement,s=function(e){i.trapFocus(e)},this.addListeners()},l.Dialog.prototype.addListeners=function(){document.addEventListener("focus",s,!0)},l.Dialog.prototype.removeListeners=function(){document.removeEventListener("focus",s,!0)},l.Dialog.prototype.closeDialog=function(){var e=this;this.removeListeners(),this.focusAfterClosed&&setTimeout((function(){e.focusAfterClosed.focus()}))},l.Dialog.prototype.trapFocus=function(e){a.default.IgnoreUtilFocusChanges||(this.dialogNode.contains(e.target)?this.lastFocus=e.target:(a.default.focusFirstDescendant(this.dialogNode),this.lastFocus===document.activeElement&&a.default.focusLastDescendant(this.dialogNode),this.lastFocus=document.activeElement))},t["default"]=l.Dialog},6583:function(e,t){"use strict";t.__esModule=!0;var n=n||{};n.Utils=n.Utils||{},n.Utils.focusFirstDescendant=function(e){for(var t=0;t<e.childNodes.length;t++){var r=e.childNodes[t];if(n.Utils.attemptFocus(r)||n.Utils.focusFirstDescendant(r))return!0}return!1},n.Utils.focusLastDescendant=function(e){for(var t=e.childNodes.length-1;t>=0;t--){var r=e.childNodes[t];if(n.Utils.attemptFocus(r)||n.Utils.focusLastDescendant(r))return!0}return!1},n.Utils.attemptFocus=function(e){if(!n.Utils.isFocusable(e))return!1;n.Utils.IgnoreUtilFocusChanges=!0;try{e.focus()}catch(t){}return n.Utils.IgnoreUtilFocusChanges=!1,document.activeElement===e},n.Utils.isFocusable=function(e){if(e.tabIndex>0||0===e.tabIndex&&null!==e.getAttribute("tabIndex"))return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!==e.rel;case"INPUT":return"hidden"!==e.type&&"file"!==e.type;case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},n.Utils.triggerEvent=function(e,t){var n=void 0;n=/^mouse|click/.test(t)?"MouseEvents":/^key/.test(t)?"KeyboardEvent":"HTMLEvents";for(var r=document.createEvent(n),i=arguments.length,a=Array(i>2?i-2:0),o=2;o<i;o++)a[o-2]=arguments[o];return r.initEvent.apply(r,[t].concat(a)),e.dispatchEvent?e.dispatchEvent(r):e.fireEvent("on"+t,r),e},n.Utils.keys={tab:9,enter:13,space:32,left:37,up:38,right:39,down:40,esc:27},t["default"]=n.Utils},1080:function(e,t,n){"use strict";t.__esModule=!0;var r=n(144),i=o(r),a=n(4594);function o(e){return e&&e.__esModule?e:{default:e}}var s=[],l="@@clickoutsideContext",u=void 0,c=0;function d(e,t,n){return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!(n&&n.context&&r.target&&i.target)||e.contains(r.target)||e.contains(i.target)||e===r.target||n.context.popperElm&&(n.context.popperElm.contains(r.target)||n.context.popperElm.contains(i.target))||(t.expression&&e[l].methodName&&n.context[e[l].methodName]?n.context[e[l].methodName]():e[l].bindingFn&&e[l].bindingFn())}}!i.default.prototype.$isServer&&(0,a.on)(document,"mousedown",(function(e){return u=e})),!i.default.prototype.$isServer&&(0,a.on)(document,"mouseup",(function(e){s.forEach((function(t){return t[l].documentHandler(e,u)}))})),t["default"]={bind:function(e,t,n){s.push(e);var r=c++;e[l]={id:r,documentHandler:d(e,t,n),methodName:t.expression,bindingFn:t.value}},update:function(e,t,n){e[l].documentHandler=d(e,t,n),e[l].methodName=t.expression,e[l].bindingFn=t.value},unbind:function(e){for(var t=s.length,n=0;n<t;n++)if(s[n][l].id===e[l].id){s.splice(n,1);break}delete e[l]}}},1338:function(e,t,n){"use strict";t.__esModule=!0,t.validateRangeInOneMonth=t.extractTimeFormat=t.extractDateFormat=t.nextYear=t.prevYear=t.nextMonth=t.prevMonth=t.changeYearMonthAndClampDate=t.timeWithinRange=t.limitTimeRange=t.clearMilliseconds=t.clearTime=t.modifyWithTimeString=t.modifyTime=t.modifyDate=t.range=t.getRangeMinutes=t.getMonthDays=t.getPrevMonthLastDays=t.getRangeHours=t.getWeekNumber=t.getStartDateOfMonth=t.nextDate=t.prevDate=t.getFirstDayOfMonth=t.getDayCountOfYear=t.getDayCountOfMonth=t.parseDate=t.formatDate=t.isDateObject=t.isDate=t.toDate=t.getI18nSettings=void 0;var r=n(8648),i=o(r),a=n(1802);function o(e){return e&&e.__esModule?e:{default:e}}var s=["sun","mon","tue","wed","thu","fri","sat"],l=["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],u=function(e,t){for(var n=[],r=e;r<=t;r++)n.push(r);return n},c=t.getI18nSettings=function(){return{dayNamesShort:s.map((function(e){return(0,a.t)("el.datepicker.weeks."+e)})),dayNames:s.map((function(e){return(0,a.t)("el.datepicker.weeks."+e)})),monthNamesShort:l.map((function(e){return(0,a.t)("el.datepicker.months."+e)})),monthNames:l.map((function(e,t){return(0,a.t)("el.datepicker.month"+(t+1))})),amPm:["am","pm"]}},d=t.toDate=function(e){return h(e)?new Date(e):null},h=t.isDate=function(e){return null!==e&&void 0!==e&&(!isNaN(new Date(e).getTime())&&!Array.isArray(e))},f=(t.isDateObject=function(e){return e instanceof Date},t.formatDate=function(e,t){return e=d(e),e?i.default.format(e,t||"yyyy-MM-dd",c()):""},t.parseDate=function(e,t){return i.default.parse(e,t||"yyyy-MM-dd",c())}),p=t.getDayCountOfMonth=function(e,t){return 3===t||5===t||8===t||10===t?30:1===t?e%4===0&&e%100!==0||e%400===0?29:28:31},m=(t.getDayCountOfYear=function(e){var t=e%400===0||e%100!==0&&e%4===0;return t?366:365},t.getFirstDayOfMonth=function(e){var t=new Date(e.getTime());return t.setDate(1),t.getDay()},t.prevDate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Date(e.getFullYear(),e.getMonth(),e.getDate()-t)});t.nextDate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Date(e.getFullYear(),e.getMonth(),e.getDate()+t)},t.getStartDateOfMonth=function(e,t){var n=new Date(e,t,1),r=n.getDay();return m(n,0===r?7:r)},t.getWeekNumber=function(e){if(!h(e))return null;var t=new Date(e.getTime());t.setHours(0,0,0,0),t.setDate(t.getDate()+3-(t.getDay()+6)%7);var n=new Date(t.getFullYear(),0,4);return 1+Math.round(((t.getTime()-n.getTime())/864e5-3+(n.getDay()+6)%7)/7)},t.getRangeHours=function(e){var t=[],n=[];if((e||[]).forEach((function(e){var t=e.map((function(e){return e.getHours()}));n=n.concat(u(t[0],t[1]))})),n.length)for(var r=0;r<24;r++)t[r]=-1===n.indexOf(r);else for(var i=0;i<24;i++)t[i]=!1;return t},t.getPrevMonthLastDays=function(e,t){if(t<=0)return[];var n=new Date(e.getTime());n.setDate(0);var r=n.getDate();return g(t).map((function(e,n){return r-(t-n-1)}))},t.getMonthDays=function(e){var t=new Date(e.getFullYear(),e.getMonth()+1,0),n=t.getDate();return g(n).map((function(e,t){return t+1}))};function v(e,t,n,r){for(var i=t;i<n;i++)e[i]=r}t.getRangeMinutes=function(e,t){var n=new Array(60);return e.length>0?e.forEach((function(e){var r=e[0],i=e[1],a=r.getHours(),o=r.getMinutes(),s=i.getHours(),l=i.getMinutes();a===t&&s!==t?v(n,o,60,!0):a===t&&s===t?v(n,o,l+1,!0):a!==t&&s===t?v(n,0,l+1,!0):a<t&&s>t&&v(n,0,60,!0)})):v(n,0,60,!0),n};var g=t.range=function(e){return Array.apply(null,{length:e}).map((function(e,t){return t}))},y=t.modifyDate=function(e,t,n,r){return new Date(t,n,r,e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())},b=t.modifyTime=function(e,t,n,r){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),t,n,r,e.getMilliseconds())},x=(t.modifyWithTimeString=function(e,t){return null!=e&&t?(t=f(t,"HH:mm:ss"),b(e,t.getHours(),t.getMinutes(),t.getSeconds())):e},t.clearTime=function(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())},t.clearMilliseconds=function(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),0)},t.limitTimeRange=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"HH:mm:ss";if(0===t.length)return e;var r=function(e){return i.default.parse(i.default.format(e,n),n)},a=r(e),o=t.map((function(e){return e.map(r)}));if(o.some((function(e){return a>=e[0]&&a<=e[1]})))return e;var s=o[0][0],l=o[0][0];o.forEach((function(e){s=new Date(Math.min(e[0],s)),l=new Date(Math.max(e[1],s))}));var u=a<s?s:l;return y(u,e.getFullYear(),e.getMonth(),e.getDate())}),w=(t.timeWithinRange=function(e,t,n){var r=x(e,t,n);return r.getTime()===e.getTime()},t.changeYearMonthAndClampDate=function(e,t,n){var r=Math.min(e.getDate(),p(t,n));return y(e,t,n,r)});t.prevMonth=function(e){var t=e.getFullYear(),n=e.getMonth();return 0===n?w(e,t-1,11):w(e,t,n-1)},t.nextMonth=function(e){var t=e.getFullYear(),n=e.getMonth();return 11===n?w(e,t+1,0):w(e,t,n+1)},t.prevYear=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=e.getFullYear(),r=e.getMonth();return w(e,n-t,r)},t.nextYear=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=e.getFullYear(),r=e.getMonth();return w(e,n+t,r)},t.extractDateFormat=function(e){return e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim()},t.extractTimeFormat=function(e){return e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g,"").trim()},t.validateRangeInOneMonth=function(e,t){return e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}},8648:function(e,t,n){"use strict";var r;(function(i){var a={},o=/d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,s="\\d\\d?",l="\\d{3}",u="\\d{4}",c="[^\\s]+",d=/\[([^]*?)\]/gm,h=function(){};function f(e){return e.replace(/[|\\{()[^$+*?.-]/g,"\\$&")}function p(e,t){for(var n=[],r=0,i=e.length;r<i;r++)n.push(e[r].substr(0,t));return n}function m(e){return function(t,n,r){var i=r[e].indexOf(n.charAt(0).toUpperCase()+n.substr(1).toLowerCase());~i&&(t.month=i)}}function v(e,t){e=String(e),t=t||2;while(e.length<t)e="0"+e;return e}var g=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],y=["January","February","March","April","May","June","July","August","September","October","November","December"],b=p(y,3),x=p(g,3);a.i18n={dayNamesShort:x,dayNames:g,monthNamesShort:b,monthNames:y,amPm:["am","pm"],DoFn:function(e){return e+["th","st","nd","rd"][e%10>3?0:(e-e%10!==10)*e%10]}};var w={D:function(e){return e.getDay()},DD:function(e){return v(e.getDay())},Do:function(e,t){return t.DoFn(e.getDate())},d:function(e){return e.getDate()},dd:function(e){return v(e.getDate())},ddd:function(e,t){return t.dayNamesShort[e.getDay()]},dddd:function(e,t){return t.dayNames[e.getDay()]},M:function(e){return e.getMonth()+1},MM:function(e){return v(e.getMonth()+1)},MMM:function(e,t){return t.monthNamesShort[e.getMonth()]},MMMM:function(e,t){return t.monthNames[e.getMonth()]},yy:function(e){return v(String(e.getFullYear()),4).substr(2)},yyyy:function(e){return v(e.getFullYear(),4)},h:function(e){return e.getHours()%12||12},hh:function(e){return v(e.getHours()%12||12)},H:function(e){return e.getHours()},HH:function(e){return v(e.getHours())},m:function(e){return e.getMinutes()},mm:function(e){return v(e.getMinutes())},s:function(e){return e.getSeconds()},ss:function(e){return v(e.getSeconds())},S:function(e){return Math.round(e.getMilliseconds()/100)},SS:function(e){return v(Math.round(e.getMilliseconds()/10),2)},SSS:function(e){return v(e.getMilliseconds(),3)},a:function(e,t){return e.getHours()<12?t.amPm[0]:t.amPm[1]},A:function(e,t){return e.getHours()<12?t.amPm[0].toUpperCase():t.amPm[1].toUpperCase()},ZZ:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+v(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4)}},_={d:[s,function(e,t){e.day=t}],Do:[s+c,function(e,t){e.day=parseInt(t,10)}],M:[s,function(e,t){e.month=t-1}],yy:[s,function(e,t){var n=new Date,r=+(""+n.getFullYear()).substr(0,2);e.year=""+(t>68?r-1:r)+t}],h:[s,function(e,t){e.hour=t}],m:[s,function(e,t){e.minute=t}],s:[s,function(e,t){e.second=t}],yyyy:[u,function(e,t){e.year=t}],S:["\\d",function(e,t){e.millisecond=100*t}],SS:["\\d{2}",function(e,t){e.millisecond=10*t}],SSS:[l,function(e,t){e.millisecond=t}],D:[s,h],ddd:[c,h],MMM:[c,m("monthNamesShort")],MMMM:[c,m("monthNames")],a:[c,function(e,t,n){var r=t.toLowerCase();r===n.amPm[0]?e.isPm=!1:r===n.amPm[1]&&(e.isPm=!0)}],ZZ:["[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z",function(e,t){var n,r=(t+"").match(/([+-]|\d\d)/gi);r&&(n=60*r[1]+parseInt(r[2],10),e.timezoneOffset="+"===r[0]?n:-n)}]};_.dd=_.d,_.dddd=_.ddd,_.DD=_.D,_.mm=_.m,_.hh=_.H=_.HH=_.h,_.MM=_.M,_.ss=_.s,_.A=_.a,a.masks={default:"ddd MMM dd yyyy HH:mm:ss",shortDate:"M/D/yy",mediumDate:"MMM d, yyyy",longDate:"MMMM d, yyyy",fullDate:"dddd, MMMM d, yyyy",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},a.format=function(e,t,n){var r=n||a.i18n;if("number"===typeof e&&(e=new Date(e)),"[object Date]"!==Object.prototype.toString.call(e)||isNaN(e.getTime()))throw new Error("Invalid Date in fecha.format");t=a.masks[t]||t||a.masks["default"];var i=[];return t=t.replace(d,(function(e,t){return i.push(t),"@@@"})),t=t.replace(o,(function(t){return t in w?w[t](e,r):t.slice(1,t.length-1)})),t.replace(/@@@/g,(function(){return i.shift()}))},a.parse=function(e,t,n){var r=n||a.i18n;if("string"!==typeof t)throw new Error("Invalid format in fecha.parse");if(t=a.masks[t]||t,e.length>1e3)return null;var i={},s=[],l=[];t=t.replace(d,(function(e,t){return l.push(t),"@@@"}));var u=f(t).replace(o,(function(e){if(_[e]){var t=_[e];return s.push(t[1]),"("+t[0]+")"}return e}));u=u.replace(/@@@/g,(function(){return l.shift()}));var c=e.match(new RegExp(u,"i"));if(!c)return null;for(var h=1;h<c.length;h++)s[h-1](i,c[h],r);var p,m=new Date;return!0===i.isPm&&null!=i.hour&&12!==+i.hour?i.hour=+i.hour+12:!1===i.isPm&&12===+i.hour&&(i.hour=0),null!=i.timezoneOffset?(i.minute=+(i.minute||0)-+i.timezoneOffset,p=new Date(Date.UTC(i.year||m.getFullYear(),i.month||0,i.day||1,i.hour||0,i.minute||0,i.second||0,i.millisecond||0))):p=new Date(i.year||m.getFullYear(),i.month||0,i.day||1,i.hour||0,i.minute||0,i.second||0,i.millisecond||0),p},e.exports?e.exports=a:(r=function(){return a}.call(t,n,t,e),void 0===r||(e.exports=r))})()},4594:function(e,t,n){"use strict";t.__esModule=!0,t.isInContainer=t.getScrollContainer=t.isScroll=t.getStyle=t.once=t.off=t.on=void 0;var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.hasClass=m,t.addClass=v,t.removeClass=g,t.setStyle=b;var i=n(144),a=o(i);function o(e){return e&&e.__esModule?e:{default:e}}var s=a.default.prototype.$isServer,l=/([\:\-\_]+(.))/g,u=/^moz([A-Z])/,c=s?0:Number(document.documentMode),d=function(e){return(e||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")},h=function(e){return e.replace(l,(function(e,t,n,r){return r?n.toUpperCase():n})).replace(u,"Moz$1")},f=t.on=function(){return!s&&document.addEventListener?function(e,t,n){e&&t&&n&&e.addEventListener(t,n,!1)}:function(e,t,n){e&&t&&n&&e.attachEvent("on"+t,n)}}(),p=t.off=function(){return!s&&document.removeEventListener?function(e,t,n){e&&t&&e.removeEventListener(t,n,!1)}:function(e,t,n){e&&t&&e.detachEvent("on"+t,n)}}();t.once=function(e,t,n){var r=function r(){n&&n.apply(this,arguments),p(e,t,r)};f(e,t,r)};function m(e,t){if(!e||!t)return!1;if(-1!==t.indexOf(" "))throw new Error("className should not contain space.");return e.classList?e.classList.contains(t):(" "+e.className+" ").indexOf(" "+t+" ")>-1}function v(e,t){if(e){for(var n=e.className,r=(t||"").split(" "),i=0,a=r.length;i<a;i++){var o=r[i];o&&(e.classList?e.classList.add(o):m(e,o)||(n+=" "+o))}e.classList||e.setAttribute("class",n)}}function g(e,t){if(e&&t){for(var n=t.split(" "),r=" "+e.className+" ",i=0,a=n.length;i<a;i++){var o=n[i];o&&(e.classList?e.classList.remove(o):m(e,o)&&(r=r.replace(" "+o+" "," ")))}e.classList||e.setAttribute("class",d(r))}}var y=t.getStyle=c<9?function(e,t){if(!s){if(!e||!t)return null;t=h(t),"float"===t&&(t="styleFloat");try{switch(t){case"opacity":try{return e.filters.item("alpha").opacity/100}catch(n){return 1}default:return e.style[t]||e.currentStyle?e.currentStyle[t]:null}}catch(n){return e.style[t]}}}:function(e,t){if(!s){if(!e||!t)return null;t=h(t),"float"===t&&(t="cssFloat");try{var n=document.defaultView.getComputedStyle(e,"");return e.style[t]||n?n[t]:null}catch(r){return e.style[t]}}};function b(e,t,n){if(e&&t)if("object"===("undefined"===typeof t?"undefined":r(t)))for(var i in t)t.hasOwnProperty(i)&&b(e,i,t[i]);else t=h(t),"opacity"===t&&c<9?e.style.filter=isNaN(n)?"":"alpha(opacity="+100*n+")":e.style[t]=n}var x=t.isScroll=function(e,t){if(!s){var n=null!==t&&void 0!==t,r=y(e,n?t?"overflow-y":"overflow-x":"overflow");return r.match(/(scroll|auto|overlay)/)}};t.getScrollContainer=function(e,t){if(!s){var n=e;while(n){if([window,document,document.documentElement].includes(n))return window;if(x(n,t))return n;n=n.parentNode}return n}},t.isInContainer=function(e,t){if(s||!e||!t)return!1;var n=e.getBoundingClientRect(),r=void 0;return r=[window,document,document.documentElement,null,void 0].includes(t)?{top:0,right:window.innerWidth,bottom:window.innerHeight,left:0}:t.getBoundingClientRect(),n.top<r.bottom&&n.bottom>r.top&&n.right>r.left&&n.left<r.right}},1615:function(e,t){"use strict";t.__esModule=!0,t["default"]=function(e){for(var t=1,n=arguments.length;t<n;t++){var r=arguments[t]||{};for(var i in r)if(r.hasOwnProperty(i)){var a=r[i];void 0!==a&&(e[i]=a)}}return e}},8335:function(e,t,n){"use strict";var r,i;"function"===typeof Symbol&&Symbol.iterator;(function(a,o){r=o,i="function"===typeof r?r.call(t,n,t,e):r,void 0===i||(e.exports=i)})(0,(function(){var e=window,t={placement:"bottom",gpuAcceleration:!0,offset:0,boundariesElement:"viewport",boundariesPadding:5,preventOverflowOrder:["left","right","top","bottom"],flipBehavior:"flip",arrowElement:"[x-arrow]",arrowOffset:0,modifiers:["shift","offset","preventOverflow","keepTogether","arrow","flip","applyStyle"],modifiersIgnored:[],forceAbsolute:!1};function n(e,n,r){this._reference=e.jquery?e[0]:e,this.state={};var i="undefined"===typeof n||null===n,a=n&&"[object Object]"===Object.prototype.toString.call(n);return this._popper=i||a?this.parse(a?n:{}):n.jquery?n[0]:n,this._options=Object.assign({},t,r),this._options.modifiers=this._options.modifiers.map(function(e){if(-1===this._options.modifiersIgnored.indexOf(e))return"applyStyle"===e&&this._popper.setAttribute("x-placement",this._options.placement),this.modifiers[e]||e}.bind(this)),this.state.position=this._getPosition(this._popper,this._reference),d(this._popper,{position:this.state.position,top:0}),this.update(),this._setupEventListeners(),this}function r(t){var n=t.style.display,r=t.style.visibility;t.style.display="block",t.style.visibility="hidden";t.offsetWidth;var i=e.getComputedStyle(t),a=parseFloat(i.marginTop)+parseFloat(i.marginBottom),o=parseFloat(i.marginLeft)+parseFloat(i.marginRight),s={width:t.offsetWidth+o,height:t.offsetHeight+a};return t.style.display=n,t.style.visibility=r,s}function i(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function a(e){var t=Object.assign({},e);return t.right=t.left+t.width,t.bottom=t.top+t.height,t}function o(e,t){var n,r=0;for(n in e){if(e[n]===t)return r;r++}return null}function s(t,n){var r=e.getComputedStyle(t,null);return r[n]}function l(t){var n=t.offsetParent;return n!==e.document.body&&n?n:e.document.documentElement}function u(t){var n=t.parentNode;return n?n===e.document?e.document.body.scrollTop||e.document.body.scrollLeft?e.document.body:e.document.documentElement:-1!==["scroll","auto"].indexOf(s(n,"overflow"))||-1!==["scroll","auto"].indexOf(s(n,"overflow-x"))||-1!==["scroll","auto"].indexOf(s(n,"overflow-y"))?n:u(t.parentNode):t}function c(t){return t!==e.document.body&&("fixed"===s(t,"position")||(t.parentNode?c(t.parentNode):t))}function d(e,t){function n(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}Object.keys(t).forEach((function(r){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(r)&&n(t[r])&&(i="px"),e.style[r]=t[r]+i}))}function h(e){var t={};return e&&"[object Function]"===t.toString.call(e)}function f(e){var t={width:e.offsetWidth,height:e.offsetHeight,left:e.offsetLeft,top:e.offsetTop};return t.right=t.left+t.width,t.bottom=t.top+t.height,t}function p(e){var t=e.getBoundingClientRect(),n=-1!=navigator.userAgent.indexOf("MSIE"),r=n&&"HTML"===e.tagName?-e.scrollTop:t.top;return{left:t.left,top:r,right:t.right,bottom:t.bottom,width:t.right-t.left,height:t.bottom-r}}function m(e,t,n){var r=p(e),i=p(t);if(n){var a=u(t);i.top+=a.scrollTop,i.bottom+=a.scrollTop,i.left+=a.scrollLeft,i.right+=a.scrollLeft}var o={top:r.top-i.top,left:r.left-i.left,bottom:r.top-i.top+r.height,right:r.left-i.left+r.width,width:r.width,height:r.height};return o}function v(t){for(var n=["","ms","webkit","moz","o"],r=0;r<n.length;r++){var i=n[r]?n[r]+t.charAt(0).toUpperCase()+t.slice(1):t;if("undefined"!==typeof e.document.body.style[i])return i}return null}return n.prototype.destroy=function(){return this._popper.removeAttribute("x-placement"),this._popper.style.left="",this._popper.style.position="",this._popper.style.top="",this._popper.style[v("transform")]="",this._removeEventListeners(),this._options.removeOnDestroy&&this._popper.remove(),this},n.prototype.update=function(){var e={instance:this,styles:{}};e.placement=this._options.placement,e._originalPlacement=this._options.placement,e.offsets=this._getOffsets(this._popper,this._reference,e.placement),e.boundaries=this._getBoundaries(e,this._options.boundariesPadding,this._options.boundariesElement),e=this.runModifiers(e,this._options.modifiers),"function"===typeof this.state.updateCallback&&this.state.updateCallback(e)},n.prototype.onCreate=function(e){return e(this),this},n.prototype.onUpdate=function(e){return this.state.updateCallback=e,this},n.prototype.parse=function(t){var n={tagName:"div",classNames:["popper"],attributes:[],parent:e.document.body,content:"",contentType:"text",arrowTagName:"div",arrowClassNames:["popper__arrow"],arrowAttributes:["x-arrow"]};t=Object.assign({},n,t);var r=e.document,i=r.createElement(t.tagName);if(s(i,t.classNames),l(i,t.attributes),"node"===t.contentType?i.appendChild(t.content.jquery?t.content[0]:t.content):"html"===t.contentType?i.innerHTML=t.content:i.textContent=t.content,t.arrowTagName){var a=r.createElement(t.arrowTagName);s(a,t.arrowClassNames),l(a,t.arrowAttributes),i.appendChild(a)}var o=t.parent.jquery?t.parent[0]:t.parent;if("string"===typeof o){if(o=r.querySelectorAll(t.parent),o.length>1&&console.warn("WARNING: the given `parent` query("+t.parent+") matched more than one element, the first one will be used"),0===o.length)throw"ERROR: the given `parent` doesn't exists!";o=o[0]}return o.length>1&&o instanceof Element===!1&&(console.warn("WARNING: you have passed as parent a list of elements, the first one will be used"),o=o[0]),o.appendChild(i),i;function s(e,t){t.forEach((function(t){e.classList.add(t)}))}function l(e,t){t.forEach((function(t){e.setAttribute(t.split(":")[0],t.split(":")[1]||"")}))}},n.prototype._getPosition=function(e,t){var n=l(t);if(this._options.forceAbsolute)return"absolute";var r=c(t,n);return r?"fixed":"absolute"},n.prototype._getOffsets=function(e,t,n){n=n.split("-")[0];var i={};i.position=this.state.position;var a="fixed"===i.position,o=m(t,l(e),a),s=r(e);return-1!==["right","left"].indexOf(n)?(i.top=o.top+o.height/2-s.height/2,i.left="left"===n?o.left-s.width:o.right):(i.left=o.left+o.width/2-s.width/2,i.top="top"===n?o.top-s.height:o.bottom),i.width=s.width,i.height=s.height,{popper:i,reference:o}},n.prototype._setupEventListeners=function(){if(this.state.updateBound=this.update.bind(this),e.addEventListener("resize",this.state.updateBound),"window"!==this._options.boundariesElement){var t=u(this._reference);t!==e.document.body&&t!==e.document.documentElement||(t=e),t.addEventListener("scroll",this.state.updateBound),this.state.scrollTarget=t}},n.prototype._removeEventListeners=function(){e.removeEventListener("resize",this.state.updateBound),"window"!==this._options.boundariesElement&&this.state.scrollTarget&&(this.state.scrollTarget.removeEventListener("scroll",this.state.updateBound),this.state.scrollTarget=null),this.state.updateBound=null},n.prototype._getBoundaries=function(t,n,r){var i,a,o={};if("window"===r){var s=e.document.body,c=e.document.documentElement;a=Math.max(s.scrollHeight,s.offsetHeight,c.clientHeight,c.scrollHeight,c.offsetHeight),i=Math.max(s.scrollWidth,s.offsetWidth,c.clientWidth,c.scrollWidth,c.offsetWidth),o={top:0,right:i,bottom:a,left:0}}else if("viewport"===r){var d=l(this._popper),h=u(this._popper),p=f(d),m=function(e){return e==document.body?Math.max(document.documentElement.scrollTop,document.body.scrollTop):e.scrollTop},v=function(e){return e==document.body?Math.max(document.documentElement.scrollLeft,document.body.scrollLeft):e.scrollLeft},g="fixed"===t.offsets.popper.position?0:m(h),y="fixed"===t.offsets.popper.position?0:v(h);o={top:0-(p.top-g),right:e.document.documentElement.clientWidth-(p.left-y),bottom:e.document.documentElement.clientHeight-(p.top-g),left:0-(p.left-y)}}else o=l(this._popper)===r?{top:0,left:0,right:r.clientWidth,bottom:r.clientHeight}:f(r);return o.left+=n,o.right-=n,o.top=o.top+n,o.bottom=o.bottom-n,o},n.prototype.runModifiers=function(e,t,n){var r=t.slice();return void 0!==n&&(r=this._options.modifiers.slice(0,o(this._options.modifiers,n))),r.forEach(function(t){h(t)&&(e=t.call(this,e))}.bind(this)),e},n.prototype.isModifierRequired=function(e,t){var n=o(this._options.modifiers,e);return!!this._options.modifiers.slice(0,n).filter((function(e){return e===t})).length},n.prototype.modifiers={},n.prototype.modifiers.applyStyle=function(e){var t,n={position:e.offsets.popper.position},r=Math.round(e.offsets.popper.left),i=Math.round(e.offsets.popper.top);return this._options.gpuAcceleration&&(t=v("transform"))?(n[t]="translate3d("+r+"px, "+i+"px, 0)",n.top=0,n.left=0):(n.left=r,n.top=i),Object.assign(n,e.styles),d(this._popper,n),this._popper.setAttribute("x-placement",e.placement),this.isModifierRequired(this.modifiers.applyStyle,this.modifiers.arrow)&&e.offsets.arrow&&d(e.arrowElement,e.offsets.arrow),e},n.prototype.modifiers.shift=function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets.reference,o=a(e.offsets.popper),s={y:{start:{top:i.top},end:{top:i.top+i.height-o.height}},x:{start:{left:i.left},end:{left:i.left+i.width-o.width}}},l=-1!==["bottom","top"].indexOf(n)?"x":"y";e.offsets.popper=Object.assign(o,s[l][r])}return e},n.prototype.modifiers.preventOverflow=function(e){var t=this._options.preventOverflowOrder,n=a(e.offsets.popper),r={left:function(){var t=n.left;return n.left<e.boundaries.left&&(t=Math.max(n.left,e.boundaries.left)),{left:t}},right:function(){var t=n.left;return n.right>e.boundaries.right&&(t=Math.min(n.left,e.boundaries.right-n.width)),{left:t}},top:function(){var t=n.top;return n.top<e.boundaries.top&&(t=Math.max(n.top,e.boundaries.top)),{top:t}},bottom:function(){var t=n.top;return n.bottom>e.boundaries.bottom&&(t=Math.min(n.top,e.boundaries.bottom-n.height)),{top:t}}};return t.forEach((function(t){e.offsets.popper=Object.assign(n,r[t]())})),e},n.prototype.modifiers.keepTogether=function(e){var t=a(e.offsets.popper),n=e.offsets.reference,r=Math.floor;return t.right<r(n.left)&&(e.offsets.popper.left=r(n.left)-t.width),t.left>r(n.right)&&(e.offsets.popper.left=r(n.right)),t.bottom<r(n.top)&&(e.offsets.popper.top=r(n.top)-t.height),t.top>r(n.bottom)&&(e.offsets.popper.top=r(n.bottom)),e},n.prototype.modifiers.flip=function(e){if(!this.isModifierRequired(this.modifiers.flip,this.modifiers.preventOverflow))return console.warn("WARNING: preventOverflow modifier is required by flip modifier in order to work, be sure to include it before flip!"),e;if(e.flipped&&e.placement===e._originalPlacement)return e;var t=e.placement.split("-")[0],n=i(t),r=e.placement.split("-")[1]||"",o=[];return o="flip"===this._options.flipBehavior?[t,n]:this._options.flipBehavior,o.forEach(function(s,l){if(t===s&&o.length!==l+1){t=e.placement.split("-")[0],n=i(t);var u=a(e.offsets.popper),c=-1!==["right","bottom"].indexOf(t);(c&&Math.floor(e.offsets.reference[t])>Math.floor(u[n])||!c&&Math.floor(e.offsets.reference[t])<Math.floor(u[n]))&&(e.flipped=!0,e.placement=o[l+1],r&&(e.placement+="-"+r),e.offsets.popper=this._getOffsets(this._popper,this._reference,e.placement).popper,e=this.runModifiers(e,this._options.modifiers,this._flip))}}.bind(this)),e},n.prototype.modifiers.offset=function(e){var t=this._options.offset,n=e.offsets.popper;return-1!==e.placement.indexOf("left")?n.top-=t:-1!==e.placement.indexOf("right")?n.top+=t:-1!==e.placement.indexOf("top")?n.left-=t:-1!==e.placement.indexOf("bottom")&&(n.left+=t),e},n.prototype.modifiers.arrow=function(e){var t=this._options.arrowElement,n=this._options.arrowOffset;if("string"===typeof t&&(t=this._popper.querySelector(t)),!t)return e;if(!this._popper.contains(t))return console.warn("WARNING: `arrowElement` must be child of its popper element!"),e;if(!this.isModifierRequired(this.modifiers.arrow,this.modifiers.keepTogether))return console.warn("WARNING: keepTogether modifier is required by arrow modifier in order to work, be sure to include it before arrow!"),e;var i={},o=e.placement.split("-")[0],s=a(e.offsets.popper),l=e.offsets.reference,u=-1!==["left","right"].indexOf(o),c=u?"height":"width",d=u?"top":"left",h=u?"left":"top",f=u?"bottom":"right",p=r(t)[c];l[f]-p<s[d]&&(e.offsets.popper[d]-=s[d]-(l[f]-p)),l[d]+p>s[f]&&(e.offsets.popper[d]+=l[d]+p-s[f]);var m=l[d]+(n||l[c]/2-p/2),v=m-s[d];return v=Math.max(Math.min(s[c]-p-8,v),8),i[d]=v,i[h]="",e.offsets.arrow=i,e.arrowElement=t,e},Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(void 0===e||null===e)throw new TypeError("Cannot convert first argument to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(void 0!==r&&null!==r){r=Object(r);for(var i=Object.keys(r),a=0,o=i.length;a<o;a++){var s=i[a],l=Object.getOwnPropertyDescriptor(r,s);void 0!==l&&l.enumerable&&(t[s]=r[s])}}}return t}}),n}))},2680:function(e,t,n){"use strict";t.__esModule=!0,t.PopupManager=void 0;var r=n(144),i=h(r),a=n(1615),o=h(a),s=n(7562),l=h(s),u=n(1301),c=h(u),d=n(4594);function h(e){return e&&e.__esModule?e:{default:e}}var f=1,p=void 0;t["default"]={props:{visible:{type:Boolean,default:!1},openDelay:{},closeDelay:{},zIndex:{},modal:{type:Boolean,default:!1},modalFade:{type:Boolean,default:!0},modalClass:{},modalAppendToBody:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!1}},beforeMount:function(){this._popupId="popup-"+f++,l.default.register(this._popupId,this)},beforeDestroy:function(){l.default.deregister(this._popupId),l.default.closeModal(this._popupId),this.restoreBodyStyle()},data:function(){return{opened:!1,bodyPaddingRight:null,computedBodyPaddingRight:0,withoutHiddenClass:!0,rendered:!1}},watch:{visible:function(e){var t=this;if(e){if(this._opening)return;this.rendered?this.open():(this.rendered=!0,i.default.nextTick((function(){t.open()})))}else this.close()}},methods:{open:function(e){var t=this;this.rendered||(this.rendered=!0);var n=(0,o.default)({},this.$props||this,e);this._closeTimer&&(clearTimeout(this._closeTimer),this._closeTimer=null),clearTimeout(this._openTimer);var r=Number(n.openDelay);r>0?this._openTimer=setTimeout((function(){t._openTimer=null,t.doOpen(n)}),r):this.doOpen(n)},doOpen:function(e){if(!this.$isServer&&(!this.willOpen||this.willOpen())&&!this.opened){this._opening=!0;var t=this.$el,n=e.modal,r=e.zIndex;if(r&&(l.default.zIndex=r),n&&(this._closing&&(l.default.closeModal(this._popupId),this._closing=!1),l.default.openModal(this._popupId,l.default.nextZIndex(),this.modalAppendToBody?void 0:t,e.modalClass,e.modalFade),e.lockScroll)){this.withoutHiddenClass=!(0,d.hasClass)(document.body,"el-popup-parent--hidden"),this.withoutHiddenClass&&(this.bodyPaddingRight=document.body.style.paddingRight,this.computedBodyPaddingRight=parseInt((0,d.getStyle)(document.body,"paddingRight"),10)),p=(0,c.default)();var i=document.documentElement.clientHeight<document.body.scrollHeight,a=(0,d.getStyle)(document.body,"overflowY");p>0&&(i||"scroll"===a)&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.computedBodyPaddingRight+p+"px"),(0,d.addClass)(document.body,"el-popup-parent--hidden")}"static"===getComputedStyle(t).position&&(t.style.position="absolute"),t.style.zIndex=l.default.nextZIndex(),this.opened=!0,this.onOpen&&this.onOpen(),this.doAfterOpen()}},doAfterOpen:function(){this._opening=!1},close:function(){var e=this;if(!this.willClose||this.willClose()){null!==this._openTimer&&(clearTimeout(this._openTimer),this._openTimer=null),clearTimeout(this._closeTimer);var t=Number(this.closeDelay);t>0?this._closeTimer=setTimeout((function(){e._closeTimer=null,e.doClose()}),t):this.doClose()}},doClose:function(){this._closing=!0,this.onClose&&this.onClose(),this.lockScroll&&setTimeout(this.restoreBodyStyle,200),this.opened=!1,this.doAfterClose()},doAfterClose:function(){l.default.closeModal(this._popupId),this._closing=!1},restoreBodyStyle:function(){this.modal&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.bodyPaddingRight,(0,d.removeClass)(document.body,"el-popup-parent--hidden")),this.withoutHiddenClass=!0}}},t.PopupManager=l.default},7562:function(e,t,n){"use strict";t.__esModule=!0;var r=n(144),i=o(r),a=n(4594);function o(e){return e&&e.__esModule?e:{default:e}}var s=!1,l=!1,u=void 0,c=function(){if(!i.default.prototype.$isServer){var e=h.modalDom;return e?s=!0:(s=!1,e=document.createElement("div"),h.modalDom=e,e.addEventListener("touchmove",(function(e){e.preventDefault(),e.stopPropagation()})),e.addEventListener("click",(function(){h.doOnModalClick&&h.doOnModalClick()}))),e}},d={},h={modalFade:!0,getInstance:function(e){return d[e]},register:function(e,t){e&&t&&(d[e]=t)},deregister:function(e){e&&(d[e]=null,delete d[e])},nextZIndex:function(){return h.zIndex++},modalStack:[],doOnModalClick:function(){var e=h.modalStack[h.modalStack.length-1];if(e){var t=h.getInstance(e.id);t&&t.closeOnClickModal&&t.close()}},openModal:function(e,t,n,r,o){if(!i.default.prototype.$isServer&&e&&void 0!==t){this.modalFade=o;for(var l=this.modalStack,u=0,d=l.length;u<d;u++){var h=l[u];if(h.id===e)return}var f=c();if((0,a.addClass)(f,"v-modal"),this.modalFade&&!s&&(0,a.addClass)(f,"v-modal-enter"),r){var p=r.trim().split(/\s+/);p.forEach((function(e){return(0,a.addClass)(f,e)}))}setTimeout((function(){(0,a.removeClass)(f,"v-modal-enter")}),200),n&&n.parentNode&&11!==n.parentNode.nodeType?n.parentNode.appendChild(f):document.body.appendChild(f),t&&(f.style.zIndex=t),f.tabIndex=0,f.style.display="",this.modalStack.push({id:e,zIndex:t,modalClass:r})}},closeModal:function(e){var t=this.modalStack,n=c();if(t.length>0){var r=t[t.length-1];if(r.id===e){if(r.modalClass){var i=r.modalClass.trim().split(/\s+/);i.forEach((function(e){return(0,a.removeClass)(n,e)}))}t.pop(),t.length>0&&(n.style.zIndex=t[t.length-1].zIndex)}else for(var o=t.length-1;o>=0;o--)if(t[o].id===e){t.splice(o,1);break}}0===t.length&&(this.modalFade&&(0,a.addClass)(n,"v-modal-leave"),setTimeout((function(){0===t.length&&(n.parentNode&&n.parentNode.removeChild(n),n.style.display="none",h.modalDom=void 0),(0,a.removeClass)(n,"v-modal-leave")}),200))}};Object.defineProperty(h,"zIndex",{configurable:!0,get:function(){return l||(u=u||(i.default.prototype.$ELEMENT||{}).zIndex||2e3,l=!0),u},set:function(e){u=e}});var f=function(){if(!i.default.prototype.$isServer&&h.modalStack.length>0){var e=h.modalStack[h.modalStack.length-1];if(!e)return;var t=h.getInstance(e.id);return t}};i.default.prototype.$isServer||window.addEventListener("keydown",(function(e){if(27===e.keyCode){var t=f();t&&t.closeOnPressEscape&&(t.handleClose?t.handleClose():t.handleAction?t.handleAction("cancel"):t.close())}})),t["default"]=h},6567:function(e,t,n){"use strict";t.__esModule=!0,t.removeResizeListener=t.addResizeListener=void 0;var r=n(1033),i=o(r),a=n(4592);function o(e){return e&&e.__esModule?e:{default:e}}var s="undefined"===typeof window,l=function(e){var t=e,n=Array.isArray(t),r=0;for(t=n?t:t[Symbol.iterator]();;){var i;if(n){if(r>=t.length)break;i=t[r++]}else{if(r=t.next(),r.done)break;i=r.value}var a=i,o=a.target.__resizeListeners__||[];o.length&&o.forEach((function(e){e()}))}};t.addResizeListener=function(e,t){s||(e.__resizeListeners__||(e.__resizeListeners__=[],e.__ro__=new i.default((0,a.debounce)(16,l)),e.__ro__.observe(e)),e.__resizeListeners__.push(t))},t.removeResizeListener=function(e,t){e&&e.__resizeListeners__&&(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),e.__resizeListeners__.length||e.__ro__.disconnect())}},8275:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=o;var r=n(144),i=a(r);function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!i.default.prototype.$isServer)if(t){var n=[],r=t.offsetParent;while(r&&e!==r&&e.contains(r))n.push(r),r=r.offsetParent;var a=t.offsetTop+n.reduce((function(e,t){return e+t.offsetTop}),0),o=a+t.offsetHeight,s=e.scrollTop,l=s+e.clientHeight;a<s?e.scrollTop=a:o>l&&(e.scrollTop=o-e.clientHeight)}else e.scrollTop=0}},1301:function(e,t,n){"use strict";t.__esModule=!0,t["default"]=function(){if(i.default.prototype.$isServer)return 0;if(void 0!==o)return o;var e=document.createElement("div");e.className="el-scrollbar__wrap",e.style.visibility="hidden",e.style.width="100px",e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e);var t=e.offsetWidth;e.style.overflow="scroll";var n=document.createElement("div");n.style.width="100%",e.appendChild(n);var r=n.offsetWidth;return e.parentNode.removeChild(e),o=t-r,o};var r=n(144),i=a(r);function a(e){return e&&e.__esModule?e:{default:e}}var o=void 0},167:function(e,t){"use strict";function n(e){return void 0!==e&&null!==e}function r(e){var t=/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi;return t.test(e)}t.__esModule=!0,t.isDef=n,t.isKorean=r},5389:function(e,t,n){"use strict";t.__esModule=!0,t.isDefined=t.isUndefined=t.isFunction=void 0;var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.isString=s,t.isObject=l,t.isHtmlElement=u;var i=n(144),a=o(i);function o(e){return e&&e.__esModule?e:{default:e}}function s(e){return"[object String]"===Object.prototype.toString.call(e)}function l(e){return"[object Object]"===Object.prototype.toString.call(e)}function u(e){return e&&e.nodeType===Node.ELEMENT_NODE}var c=function(e){var t={};return e&&"[object Function]"===t.toString.call(e)};"object"===("undefined"===typeof Int8Array?"undefined":r(Int8Array))||!a.default.prototype.$isServer&&"function"===typeof document.childNodes||(t.isFunction=c=function(e){return"function"===typeof e||!1}),t.isFunction=c;t.isUndefined=function(e){return void 0===e},t.isDefined=function(e){return void 0!==e&&null!==e}},3104:function(e,t,n){"use strict";t.__esModule=!0,t.isEmpty=t.isEqual=t.arrayEquals=t.looseEqual=t.capitalize=t.kebabCase=t.autoprefixer=t.isFirefox=t.isEdge=t.isIE=t.coerceTruthyValueToArray=t.arrayFind=t.arrayFindIndex=t.escapeRegexpString=t.valueEquals=t.generateId=t.getValueByPath=void 0;var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.noop=u,t.hasOwn=c,t.toObject=h,t.getPropByPath=f,t.rafThrottle=y,t.objToArray=b;var i=n(144),a=s(i),o=n(5389);function s(e){return e&&e.__esModule?e:{default:e}}var l=Object.prototype.hasOwnProperty;function u(){}function c(e,t){return l.call(e,t)}function d(e,t){for(var n in t)e[n]=t[n];return e}function h(e){for(var t={},n=0;n<e.length;n++)e[n]&&d(t,e[n]);return t}t.getValueByPath=function(e,t){t=t||"";for(var n=t.split("."),r=e,i=null,a=0,o=n.length;a<o;a++){var s=n[a];if(!r)break;if(a===o-1){i=r[s];break}r=r[s]}return i};function f(e,t,n){var r=e;t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,"");for(var i=t.split("."),a=0,o=i.length;a<o-1;++a){if(!r&&!n)break;var s=i[a];if(!(s in r)){if(n)throw new Error("please transfer a valid prop path to form item!");break}r=r[s]}return{o:r,k:i[a],v:r?r[i[a]]:null}}t.generateId=function(){return Math.floor(1e4*Math.random())},t.valueEquals=function(e,t){if(e===t)return!0;if(!(e instanceof Array))return!1;if(!(t instanceof Array))return!1;if(e.length!==t.length)return!1;for(var n=0;n!==e.length;++n)if(e[n]!==t[n])return!1;return!0},t.escapeRegexpString=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return String(e).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")};var p=t.arrayFindIndex=function(e,t){for(var n=0;n!==e.length;++n)if(t(e[n]))return n;return-1},m=(t.arrayFind=function(e,t){var n=p(e,t);return-1!==n?e[n]:void 0},t.coerceTruthyValueToArray=function(e){return Array.isArray(e)?e:e?[e]:[]},t.isIE=function(){return!a.default.prototype.$isServer&&!isNaN(Number(document.documentMode))},t.isEdge=function(){return!a.default.prototype.$isServer&&navigator.userAgent.indexOf("Edge")>-1},t.isFirefox=function(){return!a.default.prototype.$isServer&&!!window.navigator.userAgent.match(/firefox/i)},t.autoprefixer=function(e){if("object"!==("undefined"===typeof e?"undefined":r(e)))return e;var t=["transform","transition","animation"],n=["ms-","webkit-"];return t.forEach((function(t){var r=e[t];t&&r&&n.forEach((function(n){e[n+t]=r}))})),e},t.kebabCase=function(e){var t=/([^-])([A-Z])/g;return e.replace(t,"$1-$2").replace(t,"$1-$2").toLowerCase()},t.capitalize=function(e){return(0,o.isString)(e)?e.charAt(0).toUpperCase()+e.slice(1):e},t.looseEqual=function(e,t){var n=(0,o.isObject)(e),r=(0,o.isObject)(t);return n&&r?JSON.stringify(e)===JSON.stringify(t):!n&&!r&&String(e)===String(t)}),v=t.arrayEquals=function(e,t){if(e=e||[],t=t||[],e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!m(e[n],t[n]))return!1;return!0},g=(t.isEqual=function(e,t){return Array.isArray(e)&&Array.isArray(t)?v(e,t):m(e,t)},t.isEmpty=function(e){if(null==e)return!0;if("boolean"===typeof e)return!1;if("number"===typeof e)return!e;if(e instanceof Error)return""===e.message;switch(Object.prototype.toString.call(e)){case"[object String]":case"[object Array]":return!e.length;case"[object File]":case"[object Map]":case"[object Set]":return!e.size;case"[object Object]":return!Object.keys(e).length}return!1});function y(e){var t=!1;return function(){for(var n=this,r=arguments.length,i=Array(r),a=0;a<r;a++)i[a]=arguments[a];t||(t=!0,window.requestAnimationFrame((function(r){e.apply(n,i),t=!1})))}}function b(e){return Array.isArray(e)?e:g(e)?[]:[e]}},4823:function(e,t,n){"use strict";t.__esModule=!0;var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.isVNode=a;var i=n(3104);function a(e){return null!==e&&"object"===("undefined"===typeof e?"undefined":r(e))&&(0,i.hasOwn)(e,"componentOptions")}},499:function(e,t,n){"use strict";t.__esModule=!0;var r=n(144),i=o(r),a=n(2680);function o(e){return e&&e.__esModule?e:{default:e}}var s=i.default.prototype.$isServer?function(){}:n(8335),l=function(e){return e.stopPropagation()};t["default"]={props:{transformOrigin:{type:[Boolean,String],default:!0},placement:{type:String,default:"bottom"},boundariesPadding:{type:Number,default:5},reference:{},popper:{},offset:{default:0},value:Boolean,visibleArrow:Boolean,arrowOffset:{type:Number,default:35},appendToBody:{type:Boolean,default:!0},popperOptions:{type:Object,default:function(){return{gpuAcceleration:!1}}}},data:function(){return{showPopper:!1,currentPlacement:""}},watch:{value:{immediate:!0,handler:function(e){this.showPopper=e,this.$emit("input",e)}},showPopper:function(e){this.disabled||(e?this.updatePopper():this.destroyPopper(),this.$emit("input",e))}},methods:{createPopper:function(){var e=this;if(!this.$isServer&&(this.currentPlacement=this.currentPlacement||this.placement,/^(top|bottom|left|right)(-start|-end)?$/g.test(this.currentPlacement))){var t=this.popperOptions,n=this.popperElm=this.popperElm||this.popper||this.$refs.popper,r=this.referenceElm=this.referenceElm||this.reference||this.$refs.reference;!r&&this.$slots.reference&&this.$slots.reference[0]&&(r=this.referenceElm=this.$slots.reference[0].elm),n&&r&&(this.visibleArrow&&this.appendArrow(n),this.appendToBody&&document.body.appendChild(this.popperElm),this.popperJS&&this.popperJS.destroy&&this.popperJS.destroy(),t.placement=this.currentPlacement,t.offset=this.offset,t.arrowOffset=this.arrowOffset,this.popperJS=new s(r,n,t),this.popperJS.onCreate((function(t){e.$emit("created",e),e.resetTransformOrigin(),e.$nextTick(e.updatePopper)})),"function"===typeof t.onUpdate&&this.popperJS.onUpdate(t.onUpdate),this.popperJS._popper.style.zIndex=a.PopupManager.nextZIndex(),this.popperElm.addEventListener("click",l))}},updatePopper:function(){var e=this.popperJS;e?(e.update(),e._popper&&(e._popper.style.zIndex=a.PopupManager.nextZIndex())):this.createPopper()},doDestroy:function(e){!this.popperJS||this.showPopper&&!e||(this.popperJS.destroy(),this.popperJS=null)},destroyPopper:function(){this.popperJS&&this.resetTransformOrigin()},resetTransformOrigin:function(){if(this.transformOrigin){var e={top:"bottom",bottom:"top",left:"right",right:"left"},t=this.popperJS._popper.getAttribute("x-placement").split("-")[0],n=e[t];this.popperJS._popper.style.transformOrigin="string"===typeof this.transformOrigin?this.transformOrigin:["top","bottom"].indexOf(t)>-1?"center "+n:n+" center"}},appendArrow:function(e){var t=void 0;if(!this.appended){for(var n in this.appended=!0,e.attributes)if(/^_v-/.test(e.attributes[n].name)){t=e.attributes[n].name;break}var r=document.createElement("div");t&&r.setAttribute(t,""),r.setAttribute("x-arrow",""),r.className="popper__arrow",e.appendChild(r)}}},beforeDestroy:function(){this.doDestroy(!0),this.popperElm&&this.popperElm.parentNode===document.body&&(this.popperElm.removeEventListener("click",l),document.body.removeChild(this.popperElm))},deactivated:function(){this.$options.beforeDestroy[0].call(this)}}},6410:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(144);const i=r["default"].prototype.$isServer,a=(i||Number(document.documentMode),function(){return!i&&document.addEventListener?function(e,t,n){e&&t&&n&&e.addEventListener(t,n,!1)}:function(e,t,n){e&&t&&n&&e.attachEvent("on"+t,n)}}());(function(){!i&&document.removeEventListener})();const o=[],s="@@clickoutsideContext";let l,u=0;function c(e,t,n){return function(r={},i={}){!(n&&n.context&&r.target&&i.target)||e.contains(r.target)||e.contains(i.target)||e===r.target||n.context.popperElm&&(n.context.popperElm.contains(r.target)||n.context.popperElm.contains(i.target))||(t.expression&&e[s].methodName&&n.context[e[s].methodName]?n.context[e[s].methodName]():e[s].bindingFn&&e[s].bindingFn())}}!r["default"].prototype.$isServer&&a(document,"mousedown",(e=>l=e)),!r["default"].prototype.$isServer&&a(document,"mouseup",(e=>{o.forEach((t=>t[s].documentHandler(e,l)))}));var d={bind(e,t,n){o.push(e);const r=u++;e[s]={id:r,documentHandler:c(e,t,n),methodName:t.expression,bindingFn:t.value}},update(e,t,n){e[s].documentHandler=c(e,t,n),e[s].methodName=t.expression,e[s].bindingFn=t.value},unbind(e){let t=o.length;for(let n=0;n<t;n++)if(o[n][s].id===e[s].id){o.splice(n,1);break}delete e[s]}}},7928:function(e){"use strict";var t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n={"{":"\\{","}":"\\}","\\":"\\textbackslash{}","#":"\\#",$:"\\$","%":"\\%","&":"\\&","^":"\\textasciicircum{}",_:"\\_","~":"\\textasciitilde{}"},r={"–":"\\--","—":"\\---"," ":"~","\t":"\\qquad{}","\r\n":"\\newline{}","\n":"\\newline{}"},i=function(e,n){return t({},e,n)};e.exports=function(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=a.preserveFormatting,s=void 0!==o&&o,l=a.escapeMapFn,u=void 0===l?i:l,c=String(e),d="",h=u(t({},n),s?t({},r):{}),f=Object.keys(h),p=function(){var e=!1;f.forEach((function(t,n){e||c.length>=t.length&&c.slice(0,t.length)===t&&(d+=h[f[n]],c=c.slice(t.length,c.length),e=!0)})),e||(d+=c.slice(0,1),c=c.slice(1,c.length))};while(c)p();return d}},5628:function(e,t){var n,r;
|
|
8
|
+
/**
|
|
9
|
+
* @license Fraction.js v4.2.0 05/03/2022
|
|
10
|
+
* https://www.xarg.org/2014/03/rational-numbers-in-javascript/
|
|
11
|
+
*
|
|
12
|
+
* Copyright (c) 2021, Robert Eisele (robert@xarg.org)
|
|
13
|
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
|
14
|
+
**/(function(i){"use strict";var a=2e3,o={s:1,n:0,d:1};function s(e,t){if(isNaN(e=parseInt(e,10)))throw m["InvalidParameter"];return e*t}function l(e,t){if(0===t)throw m["DivisionByZero"];var n=Object.create(m.prototype);n["s"]=e<0?-1:1,e=e<0?-e:e;var r=p(e,t);return n["n"]=e/r,n["d"]=t/r,n}function u(e){var t={},n=e,r=2,i=4;while(i<=n){while(n%r===0)n/=r,t[r]=(t[r]||0)+1;i+=1+2*r++}return n!==e?n>1&&(t[n]=(t[n]||0)+1):t[e]=(t[e]||0)+1,t}var c=function(e,t){var n,r=0,i=1,a=1,l=0,u=0,c=0,d=1,h=1,f=0,p=1,v=1,g=1,y=1e7;if(void 0===e||null===e);else if(void 0!==t){if(r=e,i=t,a=r*i,r%1!==0||i%1!==0)throw m["NonIntegerParameter"]}else switch(typeof e){case"object":if("d"in e&&"n"in e)r=e["n"],i=e["d"],"s"in e&&(r*=e["s"]);else{if(!(0 in e))throw m["InvalidParameter"];r=e[0],1 in e&&(i=e[1])}a=r*i;break;case"number":if(e<0&&(a=e,e=-e),e%1===0)r=e;else if(e>0){e>=1&&(h=Math.pow(10,Math.floor(1+Math.log(e)/Math.LN10)),e/=h);while(p<=y&&g<=y){if(n=(f+v)/(p+g),e===n){p+g<=y?(r=f+v,i=p+g):g>p?(r=v,i=g):(r=f,i=p);break}e>n?(f+=v,p+=g):(v+=f,g+=p),p>y?(r=v,i=g):(r=f,i=p)}r*=h}else(isNaN(e)||isNaN(t))&&(i=r=NaN);break;case"string":if(p=e.match(/\d+|./g),null===p)throw m["InvalidParameter"];if("-"===p[f]?(a=-1,f++):"+"===p[f]&&f++,p.length===f+1?u=s(p[f++],a):"."===p[f+1]||"."===p[f]?("."!==p[f]&&(l=s(p[f++],a)),f++,(f+1===p.length||"("===p[f+1]&&")"===p[f+3]||"'"===p[f+1]&&"'"===p[f+3])&&(u=s(p[f],a),d=Math.pow(10,p[f].length),f++),("("===p[f]&&")"===p[f+2]||"'"===p[f]&&"'"===p[f+2])&&(c=s(p[f+1],a),h=Math.pow(10,p[f+1].length)-1,f+=3)):"/"===p[f+1]||":"===p[f+1]?(u=s(p[f],a),d=s(p[f+2],1),f+=3):"/"===p[f+3]&&" "===p[f+1]&&(l=s(p[f],a),u=s(p[f+2],a),d=s(p[f+4],1),f+=5),p.length<=f){i=d*h,a=r=c+i*l+h*u;break}default:throw m["InvalidParameter"]}if(0===i)throw m["DivisionByZero"];o["s"]=a<0?-1:1,o["n"]=Math.abs(r),o["d"]=Math.abs(i)};function d(e,t,n){for(var r=1;t>0;e=e*e%n,t>>=1)1&t&&(r=r*e%n);return r}function h(e,t){for(;t%2===0;t/=2);for(;t%5===0;t/=5);if(1===t)return 0;for(var n=10%t,r=1;1!==n;r++)if(n=10*n%t,r>a)return 0;return r}function f(e,t,n){for(var r=1,i=d(10,n,t),a=0;a<300;a++){if(r===i)return a;r=10*r%t,i=10*i%t}return 0}function p(e,t){if(!e)return t;if(!t)return e;while(1){if(e%=t,!e)return t;if(t%=e,!t)return e}}function m(e,t){if(c(e,t),!(this instanceof m))return l(o["s"]*o["n"],o["d"]);e=p(o["d"],o["n"]),this["s"]=o["s"],this["n"]=o["n"]/e,this["d"]=o["d"]/e}m["DivisionByZero"]=new Error("Division by Zero"),m["InvalidParameter"]=new Error("Invalid argument"),m["NonIntegerParameter"]=new Error("Parameters must be integer"),m.prototype={s:1,n:0,d:1,abs:function(){return l(this["n"],this["d"])},neg:function(){return l(-this["s"]*this["n"],this["d"])},add:function(e,t){return c(e,t),l(this["s"]*this["n"]*o["d"]+o["s"]*this["d"]*o["n"],this["d"]*o["d"])},sub:function(e,t){return c(e,t),l(this["s"]*this["n"]*o["d"]-o["s"]*this["d"]*o["n"],this["d"]*o["d"])},mul:function(e,t){return c(e,t),l(this["s"]*o["s"]*this["n"]*o["n"],this["d"]*o["d"])},div:function(e,t){return c(e,t),l(this["s"]*o["s"]*this["n"]*o["d"],this["d"]*o["n"])},clone:function(){return l(this["s"]*this["n"],this["d"])},mod:function(e,t){if(isNaN(this["n"])||isNaN(this["d"]))return new m(NaN);if(void 0===e)return l(this["s"]*this["n"]%this["d"],1);if(c(e,t),0===o["n"]&&0===this["d"])throw m["DivisionByZero"];return l(this["s"]*(o["d"]*this["n"])%(o["n"]*this["d"]),o["d"]*this["d"])},gcd:function(e,t){return c(e,t),l(p(o["n"],this["n"])*p(o["d"],this["d"]),o["d"]*this["d"])},lcm:function(e,t){return c(e,t),0===o["n"]&&0===this["n"]?l(0,1):l(o["n"]*this["n"],p(o["n"],this["n"])*p(o["d"],this["d"]))},ceil:function(e){return e=Math.pow(10,e||0),isNaN(this["n"])||isNaN(this["d"])?new m(NaN):l(Math.ceil(e*this["s"]*this["n"]/this["d"]),e)},floor:function(e){return e=Math.pow(10,e||0),isNaN(this["n"])||isNaN(this["d"])?new m(NaN):l(Math.floor(e*this["s"]*this["n"]/this["d"]),e)},round:function(e){return e=Math.pow(10,e||0),isNaN(this["n"])||isNaN(this["d"])?new m(NaN):l(Math.round(e*this["s"]*this["n"]/this["d"]),e)},inverse:function(){return l(this["s"]*this["d"],this["n"])},pow:function(e,t){if(c(e,t),1===o["d"])return o["s"]<0?l(Math.pow(this["s"]*this["d"],o["n"]),Math.pow(this["n"],o["n"])):l(Math.pow(this["s"]*this["n"],o["n"]),Math.pow(this["d"],o["n"]));if(this["s"]<0)return null;var n=u(this["n"]),r=u(this["d"]),i=1,a=1;for(var s in n)if("1"!==s){if("0"===s){i=0;break}if(n[s]*=o["n"],n[s]%o["d"]!==0)return null;n[s]/=o["d"],i*=Math.pow(s,n[s])}for(var s in r)if("1"!==s){if(r[s]*=o["n"],r[s]%o["d"]!==0)return null;r[s]/=o["d"],a*=Math.pow(s,r[s])}return o["s"]<0?l(a,i):l(i,a)},equals:function(e,t){return c(e,t),this["s"]*this["n"]*o["d"]===o["s"]*o["n"]*this["d"]},compare:function(e,t){c(e,t);var n=this["s"]*this["n"]*o["d"]-o["s"]*o["n"]*this["d"];return(0<n)-(n<0)},simplify:function(e){if(isNaN(this["n"])||isNaN(this["d"]))return this;e=e||.001;for(var t=this["abs"](),n=t["toContinued"](),r=1;r<n.length;r++){for(var i=l(n[r-1],1),a=r-2;a>=0;a--)i=i["inverse"]()["add"](n[a]);if(i["sub"](t)["abs"]().valueOf()<e)return i["mul"](this["s"])}return this},divisible:function(e,t){return c(e,t),!(!(o["n"]*this["d"])||this["n"]*o["d"]%(o["n"]*this["d"]))},valueOf:function(){return this["s"]*this["n"]/this["d"]},toFraction:function(e){var t,n="",r=this["n"],i=this["d"];return this["s"]<0&&(n+="-"),1===i?n+=r:(e&&(t=Math.floor(r/i))>0&&(n+=t,n+=" ",r%=i),n+=r,n+="/",n+=i),n},toLatex:function(e){var t,n="",r=this["n"],i=this["d"];return this["s"]<0&&(n+="-"),1===i?n+=r:(e&&(t=Math.floor(r/i))>0&&(n+=t,r%=i),n+="\\frac{",n+=r,n+="}{",n+=i,n+="}"),n},toContinued:function(){var e,t=this["n"],n=this["d"],r=[];if(isNaN(t)||isNaN(n))return r;do{r.push(Math.floor(t/n)),e=t%n,t=n,n=e}while(1!==t);return r},toString:function(e){var t=this["n"],n=this["d"];if(isNaN(t)||isNaN(n))return"NaN";e=e||15;var r=h(t,n),i=f(t,n,r),a=this["s"]<0?"-":"";if(a+=t/n|0,t%=n,t*=10,t&&(a+="."),r){for(var o=i;o--;)a+=t/n|0,t%=n,t*=10;a+="(";for(o=r;o--;)a+=t/n|0,t%=n,t*=10;a+=")"}else for(o=e;t&&o--;)a+=t/n|0,t%=n,t*=10;return a}},n=[],r=function(){return m}.apply(t,n),void 0===r||(e.exports=r)})()},3228:function(e){e.exports=function e(t,n){"use strict";var r,i,a=/(^([+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,o=/(^[ ]*|[ ]*$)/g,s=/(^([\w ]+,?[\w ]+)?[\w ]+,?[\w ]+\d+:\d+(:\d+)?[\w ]?|^\d{1,4}[\/\-]\d{1,4}[\/\-]\d{1,4}|^\w+, \w+ \d+, \d{4})/,l=/^0x[0-9a-f]+$/i,u=/^0/,c=function(t){return e.insensitive&&(""+t).toLowerCase()||""+t},d=c(t).replace(o,"")||"",h=c(n).replace(o,"")||"",f=d.replace(a,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),p=h.replace(a,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),m=parseInt(d.match(l),16)||1!==f.length&&d.match(s)&&Date.parse(d),v=parseInt(h.match(l),16)||m&&h.match(s)&&Date.parse(h)||null;if(v){if(m<v)return-1;if(m>v)return 1}for(var g=0,y=Math.max(f.length,p.length);g<y;g++){if(r=!(f[g]||"").match(u)&&parseFloat(f[g])||f[g]||0,i=!(p[g]||"").match(u)&&parseFloat(p[g])||p[g]||0,isNaN(r)!==isNaN(i))return isNaN(r)?1:-1;if(typeof r!==typeof i&&(r+="",i+=""),r<i)return-1;if(r>i)return 1}return 0}},2796:function(e,t,n){e.exports=n(643)},3264:function(e){"use strict";var t=!("undefined"===typeof window||!window.document||!window.document.createElement),n={canUseDOM:t,canUseWorkers:"undefined"!==typeof Worker,canUseEventListeners:t&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:t&&!!window.screen,isInWorker:!t};e.exports=n},4518:function(e){var t,n,r,i,a,o,s,l,u,c,d,h,f,p,m,v=!1;function g(){if(!v){v=!0;var e=navigator.userAgent,g=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),y=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(h=/\b(iPhone|iP[ao]d)/.exec(e),f=/\b(iP[ao]d)/.exec(e),c=/Android/i.exec(e),p=/FBAN\/\w+;/i.exec(e),m=/Mobile/i.exec(e),d=!!/Win64/.exec(e),g){t=g[1]?parseFloat(g[1]):g[5]?parseFloat(g[5]):NaN,t&&document&&document.documentMode&&(t=document.documentMode);var b=/(?:Trident\/(\d+.\d+))/.exec(e);o=b?parseFloat(b[1])+4:t,n=g[2]?parseFloat(g[2]):NaN,r=g[3]?parseFloat(g[3]):NaN,i=g[4]?parseFloat(g[4]):NaN,i?(g=/(?:Chrome\/(\d+\.\d+))/.exec(e),a=g&&g[1]?parseFloat(g[1]):NaN):a=NaN}else t=n=r=a=i=NaN;if(y){if(y[1]){var x=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);s=!x||parseFloat(x[1].replace("_","."))}else s=!1;l=!!y[2],u=!!y[3]}else s=l=u=!1}}var y={ie:function(){return g()||t},ieCompatibilityMode:function(){return g()||o>t},ie64:function(){return y.ie()&&d},firefox:function(){return g()||n},opera:function(){return g()||r},webkit:function(){return g()||i},safari:function(){return y.webkit()},chrome:function(){return g()||a},windows:function(){return g()||l},osx:function(){return g()||s},linux:function(){return g()||u},iphone:function(){return g()||h},mobile:function(){return g()||h||f||c||m},nativeApp:function(){return g()||p},android:function(){return g()||c},ipad:function(){return g()||f}};e.exports=y},6534:function(e,t,n){"use strict";var r,i=n(3264);
|
|
15
|
+
/**
|
|
16
|
+
* Checks if an event is supported in the current execution environment.
|
|
17
|
+
*
|
|
18
|
+
* NOTE: This will not work correctly for non-generic events such as `change`,
|
|
19
|
+
* `reset`, `load`, `error`, and `select`.
|
|
20
|
+
*
|
|
21
|
+
* Borrows from Modernizr.
|
|
22
|
+
*
|
|
23
|
+
* @param {string} eventNameSuffix Event name, e.g. "click".
|
|
24
|
+
* @param {?boolean} capture Check if the capture phase is supported.
|
|
25
|
+
* @return {boolean} True if the event is supported.
|
|
26
|
+
* @internal
|
|
27
|
+
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
28
|
+
*/
|
|
29
|
+
function a(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,a=n in document;if(!a){var o=document.createElement("div");o.setAttribute(n,"return;"),a="function"===typeof o[n]}return!a&&r&&"wheel"===e&&(a=document.implementation.hasFeature("Events.wheel","3.0")),a}i.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=a},643:function(e,t,n){"use strict";var r=n(4518),i=n(6534),a=10,o=40,s=800;function l(e){var t=0,n=0,r=0,i=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=t*a,i=n*a,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||i)&&e.deltaMode&&(1==e.deltaMode?(r*=o,i*=o):(r*=s,i*=s)),r&&!t&&(t=r<1?-1:1),i&&!n&&(n=i<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:i}}l.getEventType=function(){return r.firefox()?"DOMMouseScroll":i("wheel")?"wheel":"mousewheel"},e.exports=l},1033:function(e,t,n){"use strict";n.r(t);var r=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()}(),i="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,a=function(){return"undefined"!==typeof n.g&&n.g.Math===Math?n.g:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")()}(),o=function(){return"function"===typeof requestAnimationFrame?requestAnimationFrame.bind(a):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)}}(),s=2;function l(e,t){var n=!1,r=!1,i=0;function a(){n&&(n=!1,e()),r&&u()}function l(){o(a)}function u(){var e=Date.now();if(n){if(e-i<s)return;r=!0}else n=!0,r=!1,setTimeout(l,t);i=e}return u}var u=20,c=["top","right","bottom","left","width","height","size","weight"],d="undefined"!==typeof MutationObserver,h=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=l(this.refresh.bind(this),u)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var e=this.updateObservers_();e&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){i&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),d?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){i&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t,r=c.some((function(e){return!!~n.indexOf(e)}));r&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),f=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},p=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||a},m=N(0,0,0,0);function v(e){return parseFloat(e)||0}function g(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){var r=e["border-"+n+"-width"];return t+v(r)}),0)}function y(e){for(var t=["top","right","bottom","left"],n={},r=0,i=t;r<i.length;r++){var a=i[r],o=e["padding-"+a];n[a]=v(o)}return n}function b(e){var t=e.getBBox();return N(0,0,t.width,t.height)}function x(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return m;var r=p(e).getComputedStyle(e),i=y(r),a=i.left+i.right,o=i.top+i.bottom,s=v(r.width),l=v(r.height);if("border-box"===r.boxSizing&&(Math.round(s+a)!==t&&(s-=g(r,"left","right")+a),Math.round(l+o)!==n&&(l-=g(r,"top","bottom")+o)),!_(e)){var u=Math.round(s+a)-t,c=Math.round(l+o)-n;1!==Math.abs(u)&&(s-=u),1!==Math.abs(c)&&(l-=c)}return N(i.left,i.top,s,l)}var w=function(){return"undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof p(e).SVGGraphicsElement}:function(e){return e instanceof p(e).SVGElement&&"function"===typeof e.getBBox}}();function _(e){return e===p(e).document.documentElement}function C(e){return i?w(e)?b(e):x(e):m}function S(e){var t=e.x,n=e.y,r=e.width,i=e.height,a="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,o=Object.create(a.prototype);return f(o,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),o}function N(e,t,n,r){return{x:e,y:t,width:n,height:r}}var k=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=N(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=C(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),E=function(){function e(e,t){var n=S(t);f(this,{target:e,contentRect:n})}return e}(),M=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new r,"function"!==typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof p(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new k(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof p(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new E(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),O="undefined"!==typeof WeakMap?new WeakMap:new r,D=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=h.getInstance(),r=new M(t,n,this);O.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach((function(e){D.prototype[e]=function(){var t;return(t=O.get(this))[e].apply(t,arguments)}}));var T=function(){return"undefined"!==typeof a.ResizeObserver?a.ResizeObserver:D}();t["default"]=T},6377:function(e,t,n){var r=n(4832),i=n(8652),a=n(801),o=n(2030),s=n(3618),l=n(9049),u=n(1971);u.alea=r,u.xor128=i,u.xorwow=a,u.xorshift7=o,u.xor4096=s,u.tychei=l,e.exports=u},4832:function(e,t,n){var r;e=n.nmd(e),function(e,i,a){function o(e){var t=this,n=u();t.next=function(){var e=2091639*t.s0+2.3283064365386963e-10*t.c;return t.s0=t.s1,t.s1=t.s2,t.s2=e-(t.c=0|e)},t.c=1,t.s0=n(" "),t.s1=n(" "),t.s2=n(" "),t.s0-=n(e),t.s0<0&&(t.s0+=1),t.s1-=n(e),t.s1<0&&(t.s1+=1),t.s2-=n(e),t.s2<0&&(t.s2+=1),n=null}function s(e,t){return t.c=e.c,t.s0=e.s0,t.s1=e.s1,t.s2=e.s2,t}function l(e,t){var n=new o(e),r=t&&t.state,i=n.next;return i.int32=function(){return 4294967296*n.next()|0},i.double=function(){return i()+11102230246251565e-32*(2097152*i()|0)},i.quick=i,r&&("object"==typeof r&&s(r,n),i.state=function(){return s(n,{})}),i}function u(){var e=4022871197,t=function(t){t=String(t);for(var n=0;n<t.length;n++){e+=t.charCodeAt(n);var r=.02519603282416938*e;e=r>>>0,r-=e,r*=e,e=r>>>0,r-=e,e+=4294967296*r}return 2.3283064365386963e-10*(e>>>0)};return t}i&&i.exports?i.exports=l:n.amdD&&n.amdO?(r=function(){return l}.call(t,n,t,i),void 0===r||(i.exports=r)):this.alea=l}(0,e,n.amdD)},9049:function(e,t,n){var r;e=n.nmd(e),function(e,i,a){function o(e){var t=this,n="";t.next=function(){var e=t.b,n=t.c,r=t.d,i=t.a;return e=e<<25^e>>>7^n,n=n-r|0,r=r<<24^r>>>8^i,i=i-e|0,t.b=e=e<<20^e>>>12^n,t.c=n=n-r|0,t.d=r<<16^n>>>16^i,t.a=i-e|0},t.a=0,t.b=0,t.c=-1640531527,t.d=1367130551,e===Math.floor(e)?(t.a=e/4294967296|0,t.b=0|e):n+=e;for(var r=0;r<n.length+20;r++)t.b^=0|n.charCodeAt(r),t.next()}function s(e,t){return t.a=e.a,t.b=e.b,t.c=e.c,t.d=e.d,t}function l(e,t){var n=new o(e),r=t&&t.state,i=function(){return(n.next()>>>0)/4294967296};return i.double=function(){do{var e=n.next()>>>11,t=(n.next()>>>0)/4294967296,r=(e+t)/(1<<21)}while(0===r);return r},i.int32=n.next,i.quick=i,r&&("object"==typeof r&&s(r,n),i.state=function(){return s(n,{})}),i}i&&i.exports?i.exports=l:n.amdD&&n.amdO?(r=function(){return l}.call(t,n,t,i),void 0===r||(i.exports=r)):this.tychei=l}(0,e,n.amdD)},8652:function(e,t,n){var r;e=n.nmd(e),function(e,i,a){function o(e){var t=this,n="";t.x=0,t.y=0,t.z=0,t.w=0,t.next=function(){var e=t.x^t.x<<11;return t.x=t.y,t.y=t.z,t.z=t.w,t.w^=t.w>>>19^e^e>>>8},e===(0|e)?t.x=e:n+=e;for(var r=0;r<n.length+64;r++)t.x^=0|n.charCodeAt(r),t.next()}function s(e,t){return t.x=e.x,t.y=e.y,t.z=e.z,t.w=e.w,t}function l(e,t){var n=new o(e),r=t&&t.state,i=function(){return(n.next()>>>0)/4294967296};return i.double=function(){do{var e=n.next()>>>11,t=(n.next()>>>0)/4294967296,r=(e+t)/(1<<21)}while(0===r);return r},i.int32=n.next,i.quick=i,r&&("object"==typeof r&&s(r,n),i.state=function(){return s(n,{})}),i}i&&i.exports?i.exports=l:n.amdD&&n.amdO?(r=function(){return l}.call(t,n,t,i),void 0===r||(i.exports=r)):this.xor128=l}(0,e,n.amdD)},3618:function(e,t,n){var r;e=n.nmd(e),function(e,i,a){function o(e){var t=this;function n(e,t){var n,r,i,a,o,s=[],l=128;for(t===(0|t)?(r=t,t=null):(t+="\0",r=0,l=Math.max(l,t.length)),i=0,a=-32;a<l;++a)t&&(r^=t.charCodeAt((a+32)%t.length)),0===a&&(o=r),r^=r<<10,r^=r>>>15,r^=r<<4,r^=r>>>13,a>=0&&(o=o+1640531527|0,n=s[127&a]^=r+o,i=0==n?i+1:0);for(i>=128&&(s[127&(t&&t.length||0)]=-1),i=127,a=512;a>0;--a)r=s[i+34&127],n=s[i=i+1&127],r^=r<<13,n^=n<<17,r^=r>>>15,n^=n>>>12,s[i]=r^n;e.w=o,e.X=s,e.i=i}t.next=function(){var e,n,r=t.w,i=t.X,a=t.i;return t.w=r=r+1640531527|0,n=i[a+34&127],e=i[a=a+1&127],n^=n<<13,e^=e<<17,n^=n>>>15,e^=e>>>12,n=i[a]=n^e,t.i=a,n+(r^r>>>16)|0},n(t,e)}function s(e,t){return t.i=e.i,t.w=e.w,t.X=e.X.slice(),t}function l(e,t){null==e&&(e=+new Date);var n=new o(e),r=t&&t.state,i=function(){return(n.next()>>>0)/4294967296};return i.double=function(){do{var e=n.next()>>>11,t=(n.next()>>>0)/4294967296,r=(e+t)/(1<<21)}while(0===r);return r},i.int32=n.next,i.quick=i,r&&(r.X&&s(r,n),i.state=function(){return s(n,{})}),i}i&&i.exports?i.exports=l:n.amdD&&n.amdO?(r=function(){return l}.call(t,n,t,i),void 0===r||(i.exports=r)):this.xor4096=l}(0,e,n.amdD)},2030:function(e,t,n){var r;e=n.nmd(e),function(e,i,a){function o(e){var t=this;function n(e,t){var n,r=[];if(t===(0|t))r[0]=t;else for(t=""+t,n=0;n<t.length;++n)r[7&n]=r[7&n]<<15^t.charCodeAt(n)+r[n+1&7]<<13;while(r.length<8)r.push(0);for(n=0;n<8&&0===r[n];++n);for(8==n?r[7]=-1:r[n],e.x=r,e.i=0,n=256;n>0;--n)e.next()}t.next=function(){var e,n,r=t.x,i=t.i;return e=r[i],e^=e>>>7,n=e^e<<24,e=r[i+1&7],n^=e^e>>>10,e=r[i+3&7],n^=e^e>>>3,e=r[i+4&7],n^=e^e<<7,e=r[i+7&7],e^=e<<13,n^=e^e<<9,r[i]=n,t.i=i+1&7,n},n(t,e)}function s(e,t){return t.x=e.x.slice(),t.i=e.i,t}function l(e,t){null==e&&(e=+new Date);var n=new o(e),r=t&&t.state,i=function(){return(n.next()>>>0)/4294967296};return i.double=function(){do{var e=n.next()>>>11,t=(n.next()>>>0)/4294967296,r=(e+t)/(1<<21)}while(0===r);return r},i.int32=n.next,i.quick=i,r&&(r.x&&s(r,n),i.state=function(){return s(n,{})}),i}i&&i.exports?i.exports=l:n.amdD&&n.amdO?(r=function(){return l}.call(t,n,t,i),void 0===r||(i.exports=r)):this.xorshift7=l}(0,e,n.amdD)},801:function(e,t,n){var r;e=n.nmd(e),function(e,i,a){function o(e){var t=this,n="";t.next=function(){var e=t.x^t.x>>>2;return t.x=t.y,t.y=t.z,t.z=t.w,t.w=t.v,(t.d=t.d+362437|0)+(t.v=t.v^t.v<<4^e^e<<1)|0},t.x=0,t.y=0,t.z=0,t.w=0,t.v=0,e===(0|e)?t.x=e:n+=e;for(var r=0;r<n.length+64;r++)t.x^=0|n.charCodeAt(r),r==n.length&&(t.d=t.x<<10^t.x>>>4),t.next()}function s(e,t){return t.x=e.x,t.y=e.y,t.z=e.z,t.w=e.w,t.v=e.v,t.d=e.d,t}function l(e,t){var n=new o(e),r=t&&t.state,i=function(){return(n.next()>>>0)/4294967296};return i.double=function(){do{var e=n.next()>>>11,t=(n.next()>>>0)/4294967296,r=(e+t)/(1<<21)}while(0===r);return r},i.int32=n.next,i.quick=i,r&&("object"==typeof r&&s(r,n),i.state=function(){return s(n,{})}),i}i&&i.exports?i.exports=l:n.amdD&&n.amdO?(r=function(){return l}.call(t,n,t,i),void 0===r||(i.exports=r)):this.xorwow=l}(0,e,n.amdD)},1971:function(e,t,n){var r;(function(i,a,o){var s,l=256,u=6,c=52,d="random",h=o.pow(l,u),f=o.pow(2,c),p=2*f,m=l-1;function v(e,t,n){var r=[];t=1==t?{entropy:!0}:t||{};var i=x(b(t.entropy?[e,_(a)]:null==e?w():e,3),r),s=new g(r),c=function(){var e=s.g(u),t=h,n=0;while(e<f)e=(e+n)*l,t*=l,n=s.g(1);while(e>=p)e/=2,t/=2,n>>>=1;return(e+n)/t};return c.int32=function(){return 0|s.g(4)},c.quick=function(){return s.g(4)/4294967296},c.double=c,x(_(s.S),a),(t.pass||n||function(e,t,n,r){return r&&(r.S&&y(r,s),e.state=function(){return y(s,{})}),n?(o[d]=e,t):e})(c,i,"global"in t?t.global:this==o,t.state)}function g(e){var t,n=e.length,r=this,i=0,a=r.i=r.j=0,o=r.S=[];n||(e=[n++]);while(i<l)o[i]=i++;for(i=0;i<l;i++)o[i]=o[a=m&a+e[i%n]+(t=o[i])],o[a]=t;(r.g=function(e){var t,n=0,i=r.i,a=r.j,o=r.S;while(e--)t=o[i=m&i+1],n=n*l+o[m&(o[i]=o[a=m&a+t])+(o[a]=t)];return r.i=i,r.j=a,n})(l)}function y(e,t){return t.i=e.i,t.j=e.j,t.S=e.S.slice(),t}function b(e,t){var n,r=[],i=typeof e;if(t&&"object"==i)for(n in e)try{r.push(b(e[n],t-1))}catch(a){}return r.length?r:"string"==i?e:e+"\0"}function x(e,t){var n,r=e+"",i=0;while(i<r.length)t[m&i]=m&(n^=19*t[m&i])+r.charCodeAt(i++);return _(t)}function w(){try{var e;return s&&(e=s.randomBytes)?e=e(l):(e=new Uint8Array(l),(i.crypto||i.msCrypto).getRandomValues(e)),_(e)}catch(r){var t=i.navigator,n=t&&t.plugins;return[+new Date,i,n,i.screen,_(a)]}}function _(e){return String.fromCharCode.apply(0,e)}if(x(o.random(),a),e.exports){e.exports=v;try{s=n(5042)}catch(C){}}else r=function(){return v}.call(t,n,t,e),void 0===r||(e.exports=r)})("undefined"!==typeof self?self:this,[],Math)},2418:function(e,t,n){"use strict";
|
|
30
|
+
/**!
|
|
31
|
+
* Sortable 1.15.0
|
|
32
|
+
* @author RubaXa <trash@rubaxa.org>
|
|
33
|
+
* @author owenm <owen23355@gmail.com>
|
|
34
|
+
* @license MIT
|
|
35
|
+
*/function r(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 i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e){return a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}function l(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function u(e,t){if(null==e)return{};var n,r,i=l(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var c="1.15.0";function d(e){if("undefined"!==typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var h=d(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),f=d(/Edge/i),p=d(/firefox/i),m=d(/safari/i)&&!d(/chrome/i)&&!d(/android/i),v=d(/iP(ad|od|hone)/i),g=d(/chrome/i)&&d(/android/i),y={capture:!1,passive:!1};function b(e,t,n){e.addEventListener(t,n,!h&&y)}function x(e,t,n){e.removeEventListener(t,n,!h&&y)}function w(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(n){return!1}return!1}}function _(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function C(e,t,n,r){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&w(e,t):w(e,t))||r&&e===n)return e;if(e===n)break}while(e=_(e))}return null}var S,N=/\s+/g;function k(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(N," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(N," ")}}function E(e,t,n){var r=e&&e.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in r||-1!==t.indexOf("webkit")||(t="-webkit-"+t),r[t]=n+("string"===typeof n?"":"px")}}function M(e,t){var n="";if("string"===typeof e)n=e;else do{var r=E(e,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function O(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,a=r.length;if(n)for(;i<a;i++)n(r[i],i);return r}return[]}function D(){var e=document.scrollingElement;return e||document.documentElement}function T(e,t,n,r,i){if(e.getBoundingClientRect||e===window){var a,o,s,l,u,c,d;if(e!==window&&e.parentNode&&e!==D()?(a=e.getBoundingClientRect(),o=a.top,s=a.left,l=a.bottom,u=a.right,c=a.height,d=a.width):(o=0,s=0,l=window.innerHeight,u=window.innerWidth,c=window.innerHeight,d=window.innerWidth),(t||n)&&e!==window&&(i=i||e.parentNode,!h))do{if(i&&i.getBoundingClientRect&&("none"!==E(i,"transform")||n&&"static"!==E(i,"position"))){var f=i.getBoundingClientRect();o-=f.top+parseInt(E(i,"border-top-width")),s-=f.left+parseInt(E(i,"border-left-width")),l=o+a.height,u=s+a.width;break}}while(i=i.parentNode);if(r&&e!==window){var p=M(i||e),m=p&&p.a,v=p&&p.d;p&&(o/=v,s/=m,d/=m,c/=v,l=o+c,u=s+d)}return{top:o,left:s,bottom:l,right:u,width:d,height:c}}}function A(e,t,n){var r=B(e,!0),i=T(e)[t];while(r){var a=T(r)[n],o=void 0;if(o="top"===n||"left"===n?i>=a:i<=a,!o)return r;if(r===D())break;r=B(r,!1)}return!1}function I(e,t,n,r){var i=0,a=0,o=e.children;while(a<o.length){if("none"!==o[a].style.display&&o[a]!==Ye.ghost&&(r||o[a]!==Ye.dragged)&&C(o[a],n.draggable,e,!1)){if(i===t)return o[a];i++}a++}return null}function $(e,t){var n=e.lastElementChild;while(n&&(n===Ye.ghost||"none"===E(n,"display")||t&&!w(n,t)))n=n.previousElementSibling;return n||null}function P(e,t){var n=0;if(!e||!e.parentNode)return-1;while(e=e.previousElementSibling)"TEMPLATE"===e.nodeName.toUpperCase()||e===Ye.clone||t&&!w(e,t)||n++;return n}function j(e){var t=0,n=0,r=D();if(e)do{var i=M(e),a=i.a,o=i.d;t+=e.scrollLeft*a,n+=e.scrollTop*o}while(e!==r&&(e=e.parentNode));return[t,n]}function F(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n);return-1}function B(e,t){if(!e||!e.getBoundingClientRect)return D();var n=e,r=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=E(n);if(n.clientWidth<n.scrollWidth&&("auto"==i.overflowX||"scroll"==i.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==i.overflowY||"scroll"==i.overflowY)){if(!n.getBoundingClientRect||n===document.body)return D();if(r||t)return n;r=!0}}}while(n=n.parentNode);return D()}function L(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function z(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function R(e,t){return function(){if(!S){var n=arguments,r=this;1===n.length?e.call(r,n[0]):e.apply(r,n),S=setTimeout((function(){S=void 0}),t)}}}function V(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function q(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}var H="Sortable"+(new Date).getTime();function U(){var e,t=[];return{captureAnimationState:function(){if(t=[],this.options.animation){var e=[].slice.call(this.el.children);e.forEach((function(e){if("none"!==E(e,"display")&&e!==Ye.ghost){t.push({target:e,rect:T(e)});var n=i({},t[t.length-1].rect);if(e.thisAnimationDuration){var r=M(e,!0);r&&(n.top-=r.f,n.left-=r.e)}e.fromRect=n}}))}},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(F(t,{target:e}),1)},animateAll:function(n){var r=this;if(!this.options.animation)return clearTimeout(e),void("function"===typeof n&&n());var i=!1,a=0;t.forEach((function(e){var t=0,n=e.target,o=n.fromRect,s=T(n),l=n.prevFromRect,u=n.prevToRect,c=e.rect,d=M(n,!0);d&&(s.top-=d.f,s.left-=d.e),n.toRect=s,n.thisAnimationDuration&&z(l,s)&&!z(o,s)&&(c.top-s.top)/(c.left-s.left)===(o.top-s.top)/(o.left-s.left)&&(t=Y(c,l,u,r.options)),z(s,o)||(n.prevFromRect=o,n.prevToRect=s,t||(t=r.options.animation),r.animate(n,c,s,t)),t&&(i=!0,a=Math.max(a,t),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),t),n.thisAnimationDuration=t)})),clearTimeout(e),i?e=setTimeout((function(){"function"===typeof n&&n()}),a):"function"===typeof n&&n(),t=[]},animate:function(e,t,n,r){if(r){E(e,"transition",""),E(e,"transform","");var i=M(this.el),a=i&&i.a,o=i&&i.d,s=(t.left-n.left)/(a||1),l=(t.top-n.top)/(o||1);e.animatingX=!!s,e.animatingY=!!l,E(e,"transform","translate3d("+s+"px,"+l+"px,0)"),this.forRepaintDummy=W(e),E(e,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),E(e,"transform","translate3d(0,0,0)"),"number"===typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){E(e,"transition",""),E(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),r)}}}}function W(e){return e.offsetWidth}function Y(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}var G=[],K={initializeByDefault:!0},X={mount:function(e){for(var t in K)K.hasOwnProperty(t)&&!(t in e)&&(e[t]=K[t]);G.forEach((function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")})),G.push(e)},pluginEvent:function(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var a=e+"Global";G.forEach((function(r){t[r.pluginName]&&(t[r.pluginName][a]&&t[r.pluginName][a](i({sortable:t},n)),t.options[r.pluginName]&&t[r.pluginName][e]&&t[r.pluginName][e](i({sortable:t},n)))}))},initializePlugins:function(e,t,n,r){for(var i in G.forEach((function(r){var i=r.pluginName;if(e.options[i]||r.initializeByDefault){var a=new r(e,t,e.options);a.sortable=e,a.options=e.options,e[i]=a,s(n,a.defaults)}})),e.options)if(e.options.hasOwnProperty(i)){var a=this.modifyOption(e,i,e.options[i]);"undefined"!==typeof a&&(e.options[i]=a)}},getEventProperties:function(e,t){var n={};return G.forEach((function(r){"function"===typeof r.eventProperties&&s(n,r.eventProperties.call(t[r.pluginName],e))})),n},modifyOption:function(e,t,n){var r;return G.forEach((function(i){e[i.pluginName]&&i.optionListeners&&"function"===typeof i.optionListeners[t]&&(r=i.optionListeners[t].call(e[i.pluginName],n))})),r}};function Z(e){var t=e.sortable,n=e.rootEl,r=e.name,a=e.targetEl,o=e.cloneEl,s=e.toEl,l=e.fromEl,u=e.oldIndex,c=e.newIndex,d=e.oldDraggableIndex,p=e.newDraggableIndex,m=e.originalEvent,v=e.putSortable,g=e.extraEventProperties;if(t=t||n&&n[H],t){var y,b=t.options,x="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||h||f?(y=document.createEvent("Event"),y.initEvent(r,!0,!0)):y=new CustomEvent(r,{bubbles:!0,cancelable:!0}),y.to=s||n,y.from=l||n,y.item=a||n,y.clone=o,y.oldIndex=u,y.newIndex=c,y.oldDraggableIndex=d,y.newDraggableIndex=p,y.originalEvent=m,y.pullMode=v?v.lastPutMode:void 0;var w=i(i({},g),X.getEventProperties(r,t));for(var _ in w)y[_]=w[_];n&&n.dispatchEvent(y),b[x]&&b[x].call(t,y)}}var J=["evt"],Q=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,a=u(n,J);X.pluginEvent.bind(Ye)(e,t,i({dragEl:te,parentEl:ne,ghostEl:re,rootEl:ie,nextEl:ae,lastDownEl:oe,cloneEl:se,cloneHidden:le,dragStarted:we,putSortable:pe,activeSortable:Ye.active,originalEvent:r,oldIndex:ue,oldDraggableIndex:de,newIndex:ce,newDraggableIndex:he,hideGhostForTarget:qe,unhideGhostForTarget:He,cloneNowHidden:function(){le=!0},cloneNowShown:function(){le=!1},dispatchSortableEvent:function(e){ee({sortable:t,name:e,originalEvent:r})}},a))};function ee(e){Z(i({putSortable:pe,cloneEl:se,targetEl:te,rootEl:ie,oldIndex:ue,oldDraggableIndex:de,newIndex:ce,newDraggableIndex:he},e))}var te,ne,re,ie,ae,oe,se,le,ue,ce,de,he,fe,pe,me,ve,ge,ye,be,xe,we,_e,Ce,Se,Ne,ke=!1,Ee=!1,Me=[],Oe=!1,De=!1,Te=[],Ae=!1,Ie=[],$e="undefined"!==typeof document,Pe=v,je=f||h?"cssFloat":"float",Fe=$e&&!g&&!v&&"draggable"in document.createElement("div"),Be=function(){if($e){if(h)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Le=function(e,t){var n=E(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=I(e,0,t),a=I(e,1,t),o=i&&E(i),s=a&&E(a),l=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+T(i).width,u=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+T(a).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&o["float"]&&"none"!==o["float"]){var c="left"===o["float"]?"left":"right";return!a||"both"!==s.clear&&s.clear!==c?"horizontal":"vertical"}return i&&("block"===o.display||"flex"===o.display||"table"===o.display||"grid"===o.display||l>=r&&"none"===n[je]||a&&"none"===n[je]&&l+u>r)?"vertical":"horizontal"},ze=function(e,t,n){var r=n?e.left:e.top,i=n?e.right:e.bottom,a=n?e.width:e.height,o=n?t.left:t.top,s=n?t.right:t.bottom,l=n?t.width:t.height;return r===o||i===s||r+a/2===o+l/2},Re=function(e,t){var n;return Me.some((function(r){var i=r[H].options.emptyInsertThreshold;if(i&&!$(r)){var a=T(r),o=e>=a.left-i&&e<=a.right+i,s=t>=a.top-i&&t<=a.bottom+i;return o&&s?n=r:void 0}})),n},Ve=function(e){function t(e,n){return function(r,i,a,o){var s=r.options.group.name&&i.options.group.name&&r.options.group.name===i.options.group.name;if(null==e&&(n||s))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"===typeof e)return t(e(r,i,a,o),n)(r,i,a,o);var l=(n?r:i).options.group.name;return!0===e||"string"===typeof e&&e===l||e.join&&e.indexOf(l)>-1}}var n={},r=e.group;r&&"object"==a(r)||(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},qe=function(){!Be&&re&&E(re,"display","none")},He=function(){!Be&&re&&E(re,"display","")};$e&&!g&&document.addEventListener("click",(function(e){if(Ee)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Ee=!1,!1}),!0);var Ue=function(e){if(te){e=e.touches?e.touches[0]:e;var t=Re(e.clientX,e.clientY);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[H]._onDragOver(n)}}},We=function(e){te&&te.parentNode[H]._isOutsideThisEl(e.target)};function Ye(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=s({},t),e[H]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Le(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Ye.supportPointer&&"PointerEvent"in window&&!m,emptyInsertThreshold:5};for(var r in X.initializePlugins(this,e,n),n)!(r in t)&&(t[r]=n[r]);for(var i in Ve(t),this)"_"===i.charAt(0)&&"function"===typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!t.forceFallback&&Fe,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?b(e,"pointerdown",this._onTapStart):(b(e,"mousedown",this._onTapStart),b(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(b(e,"dragover",this),b(e,"dragenter",this)),Me.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),s(this,U())}function Ge(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function Ke(e,t,n,r,i,a,o,s){var l,u,c=e[H],d=c.options.onMove;return!window.CustomEvent||h||f?(l=document.createEvent("Event"),l.initEvent("move",!0,!0)):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=t,l.from=e,l.dragged=n,l.draggedRect=r,l.related=i||t,l.relatedRect=a||T(t),l.willInsertAfter=s,l.originalEvent=o,e.dispatchEvent(l),d&&(u=d.call(c,l,o)),u}function Xe(e){e.draggable=!1}function Ze(){Ae=!1}function Je(e,t,n){var r=T(I(n.el,0,n.options,!0)),i=10;return t?e.clientX<r.left-i||e.clientY<r.top&&e.clientX<r.right:e.clientY<r.top-i||e.clientY<r.bottom&&e.clientX<r.left}function Qe(e,t,n){var r=T($(n.el,n.options.draggable)),i=10;return t?e.clientX>r.right+i||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+i}function et(e,t,n,r,i,a,o,s){var l=r?e.clientY:e.clientX,u=r?n.height:n.width,c=r?n.top:n.left,d=r?n.bottom:n.right,h=!1;if(!o)if(s&&Se<u*i){if(!Oe&&(1===Ce?l>c+u*a/2:l<d-u*a/2)&&(Oe=!0),Oe)h=!0;else if(1===Ce?l<c+Se:l>d-Se)return-Ce}else if(l>c+u*(1-i)/2&&l<d-u*(1-i)/2)return tt(t);return h=h||o,h&&(l<c+u*a/2||l>d-u*a/2)?l>c+u/2?1:-1:0}function tt(e){return P(te)<P(e)?1:-1}function nt(e){var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;while(n--)r+=t.charCodeAt(n);return r.toString(36)}function rt(e){Ie.length=0;var t=e.getElementsByTagName("input"),n=t.length;while(n--){var r=t[n];r.checked&&Ie.push(r)}}function it(e){return setTimeout(e,0)}function at(e){return clearTimeout(e)}Ye.prototype={constructor:Ye,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(_e=null)},_getDirection:function(e,t){return"function"===typeof this.options.direction?this.options.direction.call(this,e,t,te):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,i=r.preventOnFilter,a=e.type,o=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,s=(o||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,u=r.filter;if(rt(n),!te&&!(/mousedown|pointerdown/.test(a)&&0!==e.button||r.disabled)&&!l.isContentEditable&&(this.nativeDraggable||!m||!s||"SELECT"!==s.tagName.toUpperCase())&&(s=C(s,r.draggable,n,!1),(!s||!s.animated)&&oe!==s)){if(ue=P(s),de=P(s,r.draggable),"function"===typeof u){if(u.call(this,e,s,this))return ee({sortable:t,rootEl:l,name:"filter",targetEl:s,toEl:n,fromEl:n}),Q("filter",t,{evt:e}),void(i&&e.cancelable&&e.preventDefault())}else if(u&&(u=u.split(",").some((function(r){if(r=C(l,r.trim(),n,!1),r)return ee({sortable:t,rootEl:r,name:"filter",targetEl:s,fromEl:n,toEl:n}),Q("filter",t,{evt:e}),!0})),u))return void(i&&e.cancelable&&e.preventDefault());r.handle&&!C(l,r.handle,n,!1)||this._prepareDragStart(e,o,s)}}},_prepareDragStart:function(e,t,n){var r,i=this,a=i.el,o=i.options,s=a.ownerDocument;if(n&&!te&&n.parentNode===a){var l=T(n);if(ie=a,te=n,ne=te.parentNode,ae=te.nextSibling,oe=n,fe=o.group,Ye.dragged=te,me={target:te,clientX:(t||e).clientX,clientY:(t||e).clientY},be=me.clientX-l.left,xe=me.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,te.style["will-change"]="all",r=function(){Q("delayEnded",i,{evt:e}),Ye.eventCanceled?i._onDrop():(i._disableDelayedDragEvents(),!p&&i.nativeDraggable&&(te.draggable=!0),i._triggerDragStart(e,t),ee({sortable:i,name:"choose",originalEvent:e}),k(te,o.chosenClass,!0))},o.ignore.split(",").forEach((function(e){O(te,e.trim(),Xe)})),b(s,"dragover",Ue),b(s,"mousemove",Ue),b(s,"touchmove",Ue),b(s,"mouseup",i._onDrop),b(s,"touchend",i._onDrop),b(s,"touchcancel",i._onDrop),p&&this.nativeDraggable&&(this.options.touchStartThreshold=4,te.draggable=!0),Q("delayStart",this,{evt:e}),!o.delay||o.delayOnTouchOnly&&!t||this.nativeDraggable&&(f||h))r();else{if(Ye.eventCanceled)return void this._onDrop();b(s,"mouseup",i._disableDelayedDrag),b(s,"touchend",i._disableDelayedDrag),b(s,"touchcancel",i._disableDelayedDrag),b(s,"mousemove",i._delayedDragTouchMoveHandler),b(s,"touchmove",i._delayedDragTouchMoveHandler),o.supportPointer&&b(s,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(r,o.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){te&&Xe(te),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;x(e,"mouseup",this._disableDelayedDrag),x(e,"touchend",this._disableDelayedDrag),x(e,"touchcancel",this._disableDelayedDrag),x(e,"mousemove",this._delayedDragTouchMoveHandler),x(e,"touchmove",this._delayedDragTouchMoveHandler),x(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?b(document,"pointermove",this._onTouchMove):b(document,t?"touchmove":"mousemove",this._onTouchMove):(b(te,"dragend",this),b(ie,"dragstart",this._onDragStart));try{document.selection?it((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(e,t){if(ke=!1,ie&&te){Q("dragStarted",this,{evt:t}),this.nativeDraggable&&b(document,"dragover",We);var n=this.options;!e&&k(te,n.dragClass,!1),k(te,n.ghostClass,!0),Ye.active=this,e&&this._appendGhost(),ee({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(ve){this._lastX=ve.clientX,this._lastY=ve.clientY,qe();var e=document.elementFromPoint(ve.clientX,ve.clientY),t=e;while(e&&e.shadowRoot){if(e=e.shadowRoot.elementFromPoint(ve.clientX,ve.clientY),e===t)break;t=e}if(te.parentNode[H]._isOutsideThisEl(e),t)do{if(t[H]){var n=void 0;if(n=t[H]._onDragOver({clientX:ve.clientX,clientY:ve.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);He()}},_onTouchMove:function(e){if(me){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,i=e.touches?e.touches[0]:e,a=re&&M(re,!0),o=re&&a&&a.a,s=re&&a&&a.d,l=Pe&&Ne&&j(Ne),u=(i.clientX-me.clientX+r.x)/(o||1)+(l?l[0]-Te[0]:0)/(o||1),c=(i.clientY-me.clientY+r.y)/(s||1)+(l?l[1]-Te[1]:0)/(s||1);if(!Ye.active&&!ke){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(re){a?(a.e+=u-(ge||0),a.f+=c-(ye||0)):a={a:1,b:0,c:0,d:1,e:u,f:c};var d="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");E(re,"webkitTransform",d),E(re,"mozTransform",d),E(re,"msTransform",d),E(re,"transform",d),ge=u,ye=c,ve=i}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!re){var e=this.options.fallbackOnBody?document.body:ie,t=T(te,!0,Pe,!0,e),n=this.options;if(Pe){Ne=e;while("static"===E(Ne,"position")&&"none"===E(Ne,"transform")&&Ne!==document)Ne=Ne.parentNode;Ne!==document.body&&Ne!==document.documentElement?(Ne===document&&(Ne=D()),t.top+=Ne.scrollTop,t.left+=Ne.scrollLeft):Ne=D(),Te=j(Ne)}re=te.cloneNode(!0),k(re,n.ghostClass,!1),k(re,n.fallbackClass,!0),k(re,n.dragClass,!0),E(re,"transition",""),E(re,"transform",""),E(re,"box-sizing","border-box"),E(re,"margin",0),E(re,"top",t.top),E(re,"left",t.left),E(re,"width",t.width),E(re,"height",t.height),E(re,"opacity","0.8"),E(re,"position",Pe?"absolute":"fixed"),E(re,"zIndex","100000"),E(re,"pointerEvents","none"),Ye.ghost=re,e.appendChild(re),E(re,"transform-origin",be/parseInt(re.style.width)*100+"% "+xe/parseInt(re.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,i=n.options;Q("dragStart",this,{evt:e}),Ye.eventCanceled?this._onDrop():(Q("setupClone",this),Ye.eventCanceled||(se=q(te),se.removeAttribute("id"),se.draggable=!1,se.style["will-change"]="",this._hideClone(),k(se,this.options.chosenClass,!1),Ye.clone=se),n.cloneId=it((function(){Q("clone",n),Ye.eventCanceled||(n.options.removeCloneOnHide||ie.insertBefore(se,te),n._hideClone(),ee({sortable:n,name:"clone"}))})),!t&&k(te,i.dragClass,!0),t?(Ee=!0,n._loopId=setInterval(n._emulateDragOver,50)):(x(document,"mouseup",n._onDrop),x(document,"touchend",n._onDrop),x(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",i.setData&&i.setData.call(n,r,te)),b(document,"drop",n),E(te,"transform","translateZ(0)")),ke=!0,n._dragStartId=it(n._dragStarted.bind(n,t,e)),b(document,"selectstart",n),we=!0,m&&E(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,r,a,o=this.el,s=e.target,l=this.options,u=l.group,c=Ye.active,d=fe===u,h=l.sort,f=pe||c,p=this,m=!1;if(!Ae){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),s=C(s,l.draggable,o,!0),B("dragOver"),Ye.eventCanceled)return m;if(te.contains(e.target)||s.animated&&s.animatingX&&s.animatingY||p._ignoreWhileAnimating===s)return z(!1);if(Ee=!1,c&&!l.disabled&&(d?h||(r=ne!==ie):pe===this||(this.lastPutMode=fe.checkPull(this,c,te,e))&&u.checkPut(this,c,te,e))){if(a="vertical"===this._getDirection(e,s),t=T(te),B("dragOverValid"),Ye.eventCanceled)return m;if(r)return ne=ie,L(),this._hideClone(),B("revert"),Ye.eventCanceled||(ae?ie.insertBefore(te,ae):ie.appendChild(te)),z(!0);var v=$(o,l.draggable);if(!v||Qe(e,a,this)&&!v.animated){if(v===te)return z(!1);if(v&&o===e.target&&(s=v),s&&(n=T(s)),!1!==Ke(ie,o,te,t,s,n,e,!!s))return L(),v&&v.nextSibling?o.insertBefore(te,v.nextSibling):o.appendChild(te),ne=o,R(),z(!0)}else if(v&&Je(e,a,this)){var g=I(o,0,l,!0);if(g===te)return z(!1);if(s=g,n=T(s),!1!==Ke(ie,o,te,t,s,n,e,!1))return L(),o.insertBefore(te,g),ne=o,R(),z(!0)}else if(s.parentNode===o){n=T(s);var y,b,x=0,w=te.parentNode!==o,_=!ze(te.animated&&te.toRect||t,s.animated&&s.toRect||n,a),S=a?"top":"left",N=A(s,"top","top")||A(te,"top","top"),M=N?N.scrollTop:void 0;if(_e!==s&&(y=n[S],Oe=!1,De=!_&&l.invertSwap||w),x=et(e,s,n,a,_?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,De,_e===s),0!==x){var O=P(te);do{O-=x,b=ne.children[O]}while(b&&("none"===E(b,"display")||b===re))}if(0===x||b===s)return z(!1);_e=s,Ce=x;var D=s.nextElementSibling,j=!1;j=1===x;var F=Ke(ie,o,te,t,s,n,e,j);if(!1!==F)return 1!==F&&-1!==F||(j=1===F),Ae=!0,setTimeout(Ze,30),L(),j&&!D?o.appendChild(te):s.parentNode.insertBefore(te,j?D:s),N&&V(N,0,M-N.scrollTop),ne=te.parentNode,void 0===y||De||(Se=Math.abs(y-T(s)[S])),R(),z(!0)}if(o.contains(te))return z(!1)}return!1}function B(l,u){Q(l,p,i({evt:e,isOwner:d,axis:a?"vertical":"horizontal",revert:r,dragRect:t,targetRect:n,canSort:h,fromSortable:f,target:s,completed:z,onMove:function(n,r){return Ke(ie,o,te,t,n,T(n),e,r)},changed:R},u))}function L(){B("dragOverAnimationCapture"),p.captureAnimationState(),p!==f&&f.captureAnimationState()}function z(t){return B("dragOverCompleted",{insertion:t}),t&&(d?c._hideClone():c._showClone(p),p!==f&&(k(te,pe?pe.options.ghostClass:c.options.ghostClass,!1),k(te,l.ghostClass,!0)),pe!==p&&p!==Ye.active?pe=p:p===Ye.active&&pe&&(pe=null),f===p&&(p._ignoreWhileAnimating=s),p.animateAll((function(){B("dragOverAnimationComplete"),p._ignoreWhileAnimating=null})),p!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(s===te&&!te.animated||s===o&&!s.animated)&&(_e=null),l.dragoverBubble||e.rootEl||s===document||(te.parentNode[H]._isOutsideThisEl(e.target),!t&&Ue(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),m=!0}function R(){ce=P(te),he=P(te,l.draggable),ee({sortable:p,name:"change",toEl:o,newIndex:ce,newDraggableIndex:he,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){x(document,"mousemove",this._onTouchMove),x(document,"touchmove",this._onTouchMove),x(document,"pointermove",this._onTouchMove),x(document,"dragover",Ue),x(document,"mousemove",Ue),x(document,"touchmove",Ue)},_offUpEvents:function(){var e=this.el.ownerDocument;x(e,"mouseup",this._onDrop),x(e,"touchend",this._onDrop),x(e,"pointerup",this._onDrop),x(e,"touchcancel",this._onDrop),x(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;ce=P(te),he=P(te,n.draggable),Q("drop",this,{evt:e}),ne=te&&te.parentNode,ce=P(te),he=P(te,n.draggable),Ye.eventCanceled||(ke=!1,De=!1,Oe=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),at(this.cloneId),at(this._dragStartId),this.nativeDraggable&&(x(document,"drop",this),x(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),m&&E(document.body,"user-select",""),E(te,"transform",""),e&&(we&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),re&&re.parentNode&&re.parentNode.removeChild(re),(ie===ne||pe&&"clone"!==pe.lastPutMode)&&se&&se.parentNode&&se.parentNode.removeChild(se),te&&(this.nativeDraggable&&x(te,"dragend",this),Xe(te),te.style["will-change"]="",we&&!ke&&k(te,pe?pe.options.ghostClass:this.options.ghostClass,!1),k(te,this.options.chosenClass,!1),ee({sortable:this,name:"unchoose",toEl:ne,newIndex:null,newDraggableIndex:null,originalEvent:e}),ie!==ne?(ce>=0&&(ee({rootEl:ne,name:"add",toEl:ne,fromEl:ie,originalEvent:e}),ee({sortable:this,name:"remove",toEl:ne,originalEvent:e}),ee({rootEl:ne,name:"sort",toEl:ne,fromEl:ie,originalEvent:e}),ee({sortable:this,name:"sort",toEl:ne,originalEvent:e})),pe&&pe.save()):ce!==ue&&ce>=0&&(ee({sortable:this,name:"update",toEl:ne,originalEvent:e}),ee({sortable:this,name:"sort",toEl:ne,originalEvent:e})),Ye.active&&(null!=ce&&-1!==ce||(ce=ue,he=de),ee({sortable:this,name:"end",toEl:ne,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){Q("nulling",this),ie=te=ne=re=ae=se=oe=le=me=ve=we=ce=he=ue=de=_e=Ce=pe=fe=Ye.dragged=Ye.ghost=Ye.clone=Ye.active=null,Ie.forEach((function(e){e.checked=!0})),Ie.length=ge=ye=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":te&&(this._onDragOver(e),Ge(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e,t=[],n=this.el.children,r=0,i=n.length,a=this.options;r<i;r++)e=n[r],C(e,a.draggable,this.el,!1)&&t.push(e.getAttribute(a.dataIdAttr)||nt(e));return t},sort:function(e,t){var n={},r=this.el;this.toArray().forEach((function(e,t){var i=r.children[t];C(i,this.options.draggable,r,!1)&&(n[e]=i)}),this),t&&this.captureAnimationState(),e.forEach((function(e){n[e]&&(r.removeChild(n[e]),r.appendChild(n[e]))})),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return C(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var r=X.modifyOption(this,e,t);n[e]="undefined"!==typeof r?r:t,"group"===e&&Ve(n)},destroy:function(){Q("destroy",this);var e=this.el;e[H]=null,x(e,"mousedown",this._onTapStart),x(e,"touchstart",this._onTapStart),x(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(x(e,"dragover",this),x(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Me.splice(Me.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!le){if(Q("hideClone",this),Ye.eventCanceled)return;E(se,"display","none"),this.options.removeCloneOnHide&&se.parentNode&&se.parentNode.removeChild(se),le=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(le){if(Q("showClone",this),Ye.eventCanceled)return;te.parentNode!=ie||this.options.group.revertClone?ae?ie.insertBefore(se,ae):ie.appendChild(se):ie.insertBefore(se,te),this.options.group.revertClone&&this.animate(te,se),E(se,"display",""),le=!1}}else this._hideClone()}},$e&&b(document,"touchmove",(function(e){(Ye.active||ke)&&e.cancelable&&e.preventDefault()})),Ye.utils={on:b,off:x,css:E,find:O,is:function(e,t){return!!C(e,t,e,!1)},extend:L,throttle:R,closest:C,toggleClass:k,clone:q,index:P,nextTick:it,cancelNextTick:at,detectDirection:Le,getChild:I},Ye.get=function(e){return e[H]},Ye.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(Ye.utils=i(i({},Ye.utils),e.utils)),X.mount(e)}))},Ye.create=function(e,t){return new Ye(e,t)},Ye.version=c;var ot,st,lt,ut=[];function ct(){ut.forEach((function(e){clearInterval(e.pid)})),ut=[]}R((function(e,t,n,r){if(t.scroll){var i,a=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,l=t.scrollSpeed,u=D(),c=!1;st!==n&&(st=n,ct(),ot=t.scroll,i=t.scrollFn,!0===ot&&(ot=B(n,!0)));var d=0,h=ot;do{var f=h,p=T(f),m=p.top,v=p.bottom,g=p.left,y=p.right,b=p.width,x=p.height,w=void 0,_=void 0,C=f.scrollWidth,S=f.scrollHeight,N=E(f),k=f.scrollLeft,M=f.scrollTop;f===u?(w=b<C&&("auto"===N.overflowX||"scroll"===N.overflowX||"visible"===N.overflowX),_=x<S&&("auto"===N.overflowY||"scroll"===N.overflowY||"visible"===N.overflowY)):(w=b<C&&("auto"===N.overflowX||"scroll"===N.overflowX),_=x<S&&("auto"===N.overflowY||"scroll"===N.overflowY));var O=w&&(Math.abs(y-a)<=s&&k+b<C)-(Math.abs(g-a)<=s&&!!k),A=_&&(Math.abs(v-o)<=s&&M+x<S)-(Math.abs(m-o)<=s&&!!M);if(!ut[d])for(var I=0;I<=d;I++)ut[I]||(ut[I]={});ut[d].vx==O&&ut[d].vy==A&&ut[d].el===f||(ut[d].el=f,ut[d].vx=O,ut[d].vy=A,clearInterval(ut[d].pid),0==O&&0==A||(c=!0,ut[d].pid=setInterval(function(){r&&0===this.layer&&Ye.active._onTouchMove(lt);var t=ut[this.layer].vy?ut[this.layer].vy*l:0,n=ut[this.layer].vx?ut[this.layer].vx*l:0;"function"===typeof i&&"continue"!==i.call(Ye.dragged.parentNode[H],n,t,e,lt,ut[this.layer].el)||V(ut[this.layer].el,n,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&h!==u&&(h=B(h,!1)));c}}),30);var dt=function(e){var t=e.originalEvent,n=e.putSortable,r=e.dragEl,i=e.activeSortable,a=e.dispatchSortableEvent,o=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(t){var l=n||i;o();var u=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,c=document.elementFromPoint(u.clientX,u.clientY);s(),l&&!l.el.contains(c)&&(a("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function ht(){}function ft(){}ht.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=I(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(t,r):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:dt},s(ht,{pluginName:"revertOnSpill"}),ft.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable,r=n||this.sortable;r.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),r.animateAll()},drop:dt},s(ft,{pluginName:"removeOnSpill"});t["ZP"]=Ye},7854:function(e,t,n){(function(t,n){e.exports=n()})(0,(function(){"use strict";var e=function(e){var t=e.id,n=e.viewBox,r=e.content;this.id=t,this.viewBox=n,this.content=r};e.prototype.stringify=function(){return this.content},e.prototype.toString=function(){return this.stringify()},e.prototype.destroy=function(){var e=this;["id","viewBox","content"].forEach((function(t){return delete e[t]}))};var t=function(e){var t=!!document.importNode,n=(new DOMParser).parseFromString(e,"image/svg+xml").documentElement;return t?document.importNode(n,!0):n};"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self&&self;function r(e,t){return t={exports:{}},e(t,t.exports),t.exports}var i=r((function(e,t){(function(t,n){e.exports=n()})(0,(function(){function e(e){var t=e&&"object"===typeof e;return t&&"[object RegExp]"!==Object.prototype.toString.call(e)&&"[object Date]"!==Object.prototype.toString.call(e)}function t(e){return Array.isArray(e)?[]:{}}function n(n,r){var i=r&&!0===r.clone;return i&&e(n)?a(t(n),n,r):n}function r(t,r,i){var o=t.slice();return r.forEach((function(r,s){"undefined"===typeof o[s]?o[s]=n(r,i):e(r)?o[s]=a(t[s],r,i):-1===t.indexOf(r)&&o.push(n(r,i))})),o}function i(t,r,i){var o={};return e(t)&&Object.keys(t).forEach((function(e){o[e]=n(t[e],i)})),Object.keys(r).forEach((function(s){e(r[s])&&t[s]?o[s]=a(t[s],r[s],i):o[s]=n(r[s],i)})),o}function a(e,t,a){var o=Array.isArray(t),s=a||{arrayMerge:r},l=s.arrayMerge||r;return o?Array.isArray(e)?l(e,t,a):n(t,a):i(e,t,a)}return a.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce((function(e,n){return a(e,n,t)}))},a}))})),a=r((function(e,t){var n={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}};t.default=n,e.exports=t.default})),o=function(e){return Object.keys(e).map((function(t){var n=e[t].toString().replace(/"/g,""");return t+'="'+n+'"'})).join(" ")},s=a.svg,l=a.xlink,u={};u[s.name]=s.uri,u[l.name]=l.uri;var c=function(e,t){void 0===e&&(e="");var n=i(u,t||{}),r=o(n);return"<svg "+r+">"+e+"</svg>"},d=function(e){function n(){e.apply(this,arguments)}e&&(n.__proto__=e),n.prototype=Object.create(e&&e.prototype),n.prototype.constructor=n;var r={isMounted:{}};return r.isMounted.get=function(){return!!this.node},n.createFromExistingNode=function(e){return new n({id:e.getAttribute("id"),viewBox:e.getAttribute("viewBox"),content:e.outerHTML})},n.prototype.destroy=function(){this.isMounted&&this.unmount(),e.prototype.destroy.call(this)},n.prototype.mount=function(e){if(this.isMounted)return this.node;var t="string"===typeof e?document.querySelector(e):e,n=this.render();return this.node=n,t.appendChild(n),n},n.prototype.render=function(){var e=this.stringify();return t(c(e)).childNodes[0]},n.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(n.prototype,r),n}(e);return d}))},5348:function(e,t,n){(function(t,n){e.exports=n()})(0,(function(){"use strict";"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self&&self;function e(e,t){return t={exports:{}},e(t,t.exports),t.exports}var t=e((function(e,t){(function(t,n){e.exports=n()})(0,(function(){function e(e){var t=e&&"object"===typeof e;return t&&"[object RegExp]"!==Object.prototype.toString.call(e)&&"[object Date]"!==Object.prototype.toString.call(e)}function t(e){return Array.isArray(e)?[]:{}}function n(n,r){var i=r&&!0===r.clone;return i&&e(n)?a(t(n),n,r):n}function r(t,r,i){var o=t.slice();return r.forEach((function(r,s){"undefined"===typeof o[s]?o[s]=n(r,i):e(r)?o[s]=a(t[s],r,i):-1===t.indexOf(r)&&o.push(n(r,i))})),o}function i(t,r,i){var o={};return e(t)&&Object.keys(t).forEach((function(e){o[e]=n(t[e],i)})),Object.keys(r).forEach((function(s){e(r[s])&&t[s]?o[s]=a(t[s],r[s],i):o[s]=n(r[s],i)})),o}function a(e,t,a){var o=Array.isArray(t),s=a||{arrayMerge:r},l=s.arrayMerge||r;return o?Array.isArray(e)?l(e,t,a):n(t,a):i(e,t,a)}return a.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce((function(e,n){return a(e,n,t)}))},a}))}));function r(e){return e=e||Object.create(null),{on:function(t,n){(e[t]||(e[t]=[])).push(n)},off:function(t,n){e[t]&&e[t].splice(e[t].indexOf(n)>>>0,1)},emit:function(t,n){(e[t]||[]).map((function(e){e(n)})),(e["*"]||[]).map((function(e){e(t,n)}))}}}var i=e((function(e,t){var n={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}};t.default=n,e.exports=t.default})),a=function(e){return Object.keys(e).map((function(t){var n=e[t].toString().replace(/"/g,""");return t+'="'+n+'"'})).join(" ")},o=i.svg,s=i.xlink,l={};l[o.name]=o.uri,l[s.name]=s.uri;var u,c=function(e,n){void 0===e&&(e="");var r=t(l,n||{}),i=a(r);return"<svg "+i+">"+e+"</svg>"},d=i.svg,h=i.xlink,f={attrs:(u={style:["position: absolute","width: 0","height: 0"].join("; "),"aria-hidden":"true"},u[d.name]=d.uri,u[h.name]=h.uri,u)},p=function(e){this.config=t(f,e||{}),this.symbols=[]};p.prototype.add=function(e){var t=this,n=t.symbols,r=this.find(e.id);return r?(n[n.indexOf(r)]=e,!1):(n.push(e),!0)},p.prototype.remove=function(e){var t=this,n=t.symbols,r=this.find(e);return!!r&&(n.splice(n.indexOf(r),1),r.destroy(),!0)},p.prototype.find=function(e){return this.symbols.filter((function(t){return t.id===e}))[0]||null},p.prototype.has=function(e){return null!==this.find(e)},p.prototype.stringify=function(){var e=this.config,t=e.attrs,n=this.symbols.map((function(e){return e.stringify()})).join("");return c(n,t)},p.prototype.toString=function(){return this.stringify()},p.prototype.destroy=function(){this.symbols.forEach((function(e){return e.destroy()}))};var m=function(e){var t=e.id,n=e.viewBox,r=e.content;this.id=t,this.viewBox=n,this.content=r};m.prototype.stringify=function(){return this.content},m.prototype.toString=function(){return this.stringify()},m.prototype.destroy=function(){var e=this;["id","viewBox","content"].forEach((function(t){return delete e[t]}))};var v=function(e){var t=!!document.importNode,n=(new DOMParser).parseFromString(e,"image/svg+xml").documentElement;return t?document.importNode(n,!0):n},g=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={isMounted:{}};return n.isMounted.get=function(){return!!this.node},t.createFromExistingNode=function(e){return new t({id:e.getAttribute("id"),viewBox:e.getAttribute("viewBox"),content:e.outerHTML})},t.prototype.destroy=function(){this.isMounted&&this.unmount(),e.prototype.destroy.call(this)},t.prototype.mount=function(e){if(this.isMounted)return this.node;var t="string"===typeof e?document.querySelector(e):e,n=this.render();return this.node=n,t.appendChild(n),n},t.prototype.render=function(){var e=this.stringify();return v(c(e)).childNodes[0]},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(t.prototype,n),t}(m),y={autoConfigure:!0,mountTo:"body",syncUrlsWithBaseTag:!1,listenLocationChangeEvent:!0,locationChangeEvent:"locationChange",locationChangeAngularEmitter:!1,usagesToUpdate:"use[*|href]",moveGradientsOutsideSymbol:!1},b=function(e){return Array.prototype.slice.call(e,0)},x={isChrome:function(){return/chrome/i.test(navigator.userAgent)},isFirefox:function(){return/firefox/i.test(navigator.userAgent)},isIE:function(){return/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)},isEdge:function(){return/edge/i.test(navigator.userAgent)}},w=function(e,t){var n=document.createEvent("CustomEvent");n.initCustomEvent(e,!1,!1,t),window.dispatchEvent(n)},_=function(e){var t=[];return b(e.querySelectorAll("style")).forEach((function(e){e.textContent+="",t.push(e)})),t},C=function(e){return(e||window.location.href).split("#")[0]},S=function(e){angular.module("ng").run(["$rootScope",function(t){t.$on("$locationChangeSuccess",(function(t,n,r){w(e,{oldUrl:r,newUrl:n})}))}])},N="linearGradient, radialGradient, pattern, mask, clipPath",k=function(e,t){return void 0===t&&(t=N),b(e.querySelectorAll("symbol")).forEach((function(e){b(e.querySelectorAll(t)).forEach((function(t){e.parentNode.insertBefore(t,e)}))})),e};function E(e,t){var n=b(e).reduce((function(e,n){if(!n.attributes)return e;var r=b(n.attributes),i=t?r.filter(t):r;return e.concat(i)}),[]);return n}var M=i.xlink.uri,O="xlink:href",D=/[{}|\\\^\[\]`"<>]/g;function T(e){return e.replace(D,(function(e){return"%"+e[0].charCodeAt(0).toString(16).toUpperCase()}))}function A(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function I(e,t,n){return b(e).forEach((function(e){var r=e.getAttribute(O);if(r&&0===r.indexOf(t)){var i=r.replace(t,n);e.setAttributeNS(M,O,i)}})),e}var $,P=["clipPath","colorProfile","src","cursor","fill","filter","marker","markerStart","markerMid","markerEnd","mask","stroke","style"],j=P.map((function(e){return"["+e+"]"})).join(","),F=function(e,t,n,r){var i=T(n),a=T(r),o=e.querySelectorAll(j),s=E(o,(function(e){var t=e.localName,n=e.value;return-1!==P.indexOf(t)&&-1!==n.indexOf("url("+i)}));s.forEach((function(e){return e.value=e.value.replace(new RegExp(A(i),"g"),a)})),I(t,i,a)},B={MOUNT:"mount",SYMBOL_MOUNT:"symbol_mount"},L=function(e){function n(n){var i=this;void 0===n&&(n={}),e.call(this,t(y,n));var a=r();this._emitter=a,this.node=null;var o=this,s=o.config;if(s.autoConfigure&&this._autoConfigure(n),s.syncUrlsWithBaseTag){var l=document.getElementsByTagName("base")[0].getAttribute("href");a.on(B.MOUNT,(function(){return i.updateUrls("#",l)}))}var u=this._handleLocationChange.bind(this);this._handleLocationChange=u,s.listenLocationChangeEvent&&window.addEventListener(s.locationChangeEvent,u),s.locationChangeAngularEmitter&&S(s.locationChangeEvent),a.on(B.MOUNT,(function(e){s.moveGradientsOutsideSymbol&&k(e)})),a.on(B.SYMBOL_MOUNT,(function(e){s.moveGradientsOutsideSymbol&&k(e.parentNode),(x.isIE()||x.isEdge())&&_(e)}))}e&&(n.__proto__=e),n.prototype=Object.create(e&&e.prototype),n.prototype.constructor=n;var i={isMounted:{}};return i.isMounted.get=function(){return!!this.node},n.prototype._autoConfigure=function(e){var t=this,n=t.config;"undefined"===typeof e.syncUrlsWithBaseTag&&(n.syncUrlsWithBaseTag="undefined"!==typeof document.getElementsByTagName("base")[0]),"undefined"===typeof e.locationChangeAngularEmitter&&(n.locationChangeAngularEmitter="undefined"!==typeof window.angular),"undefined"===typeof e.moveGradientsOutsideSymbol&&(n.moveGradientsOutsideSymbol=x.isFirefox())},n.prototype._handleLocationChange=function(e){var t=e.detail,n=t.oldUrl,r=t.newUrl;this.updateUrls(n,r)},n.prototype.add=function(t){var n=this,r=e.prototype.add.call(this,t);return this.isMounted&&r&&(t.mount(n.node),this._emitter.emit(B.SYMBOL_MOUNT,t.node)),r},n.prototype.attach=function(e){var t=this,n=this;if(n.isMounted)return n.node;var r="string"===typeof e?document.querySelector(e):e;return n.node=r,this.symbols.forEach((function(e){e.mount(n.node),t._emitter.emit(B.SYMBOL_MOUNT,e.node)})),b(r.querySelectorAll("symbol")).forEach((function(e){var t=g.createFromExistingNode(e);t.node=e,n.add(t)})),this._emitter.emit(B.MOUNT,r),r},n.prototype.destroy=function(){var e=this,t=e.config,n=e.symbols,r=e._emitter;n.forEach((function(e){return e.destroy()})),r.off("*"),window.removeEventListener(t.locationChangeEvent,this._handleLocationChange),this.isMounted&&this.unmount()},n.prototype.mount=function(e,t){void 0===e&&(e=this.config.mountTo),void 0===t&&(t=!1);var n=this;if(n.isMounted)return n.node;var r="string"===typeof e?document.querySelector(e):e,i=n.render();return this.node=i,t&&r.childNodes[0]?r.insertBefore(i,r.childNodes[0]):r.appendChild(i),this._emitter.emit(B.MOUNT,i),i},n.prototype.render=function(){return v(this.stringify())},n.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},n.prototype.updateUrls=function(e,t){if(!this.isMounted)return!1;var n=document.querySelectorAll(this.config.usagesToUpdate);return F(this.node,n,C(e)+"#",C(t)+"#"),!0},Object.defineProperties(n.prototype,i),n}(p),z=e((function(e){
|
|
36
|
+
/*!
|
|
37
|
+
* domready (c) Dustin Diaz 2014 - License MIT
|
|
38
|
+
*/
|
|
39
|
+
!function(t,n){e.exports=n()}(0,(function(){var e,t=[],n=document,r=n.documentElement.doScroll,i="DOMContentLoaded",a=(r?/^loaded|^c/:/^loaded|^i|^c/).test(n.readyState);return a||n.addEventListener(i,e=function(){n.removeEventListener(i,e),a=1;while(e=t.shift())e()}),function(e){a?setTimeout(e,0):t.push(e)}}))})),R="__SVG_SPRITE_NODE__",V="__SVG_SPRITE__",q=!!window[V];q?$=window[V]:($=new L({attrs:{id:R,"aria-hidden":"true"}}),window[V]=$);var H=function(){var e=document.getElementById(R);e?$.attach(e):$.mount(document.body,!0)};document.body?H():z(H);var U=$;return U}))},2823:function(e,t,n){var r=n(8563);e.exports=function(e,t,n){return void 0===n?r(e,t,!1):r(e,n,!1!==t)}},4592:function(e,t,n){var r=n(8563),i=n(2823);e.exports={throttle:r,debounce:i}},8563:function(e){e.exports=function(e,t,n,r){var i,a=0;function o(){var o=this,s=Number(new Date)-a,l=arguments;function u(){a=Number(new Date),n.apply(o,l)}function c(){i=void 0}r&&!i&&u(),i&&clearTimeout(i),void 0===r&&s>e?u():!0!==t&&(i=setTimeout(r?c:u,void 0===r?e-s:e))}return"boolean"!==typeof t&&(r=n,n=t,t=void 0),o}},2287:function(e,t){"use strict";var n,r,i;(function(a,o){r=[],n=o,i="function"===typeof n?n.apply(t,r):n,void 0===i||(e.exports=i)})(0,(function(){function e(){return!0}function t(){return!1}function n(){}function r(){var i=[{name:"number",test:function(e){return"number"===typeof e}},{name:"string",test:function(e){return"string"===typeof e}},{name:"boolean",test:function(e){return"boolean"===typeof e}},{name:"Function",test:function(e){return"function"===typeof e}},{name:"Array",test:Array.isArray},{name:"Date",test:function(e){return e instanceof Date}},{name:"RegExp",test:function(e){return e instanceof RegExp}},{name:"Object",test:function(e){return"object"===typeof e&&null!==e&&e.constructor===Object}},{name:"null",test:function(e){return null===e}},{name:"undefined",test:function(e){return void 0===e}}],a={name:"any",test:e},o=[],s=[],l={types:i,conversions:s,ignore:o};function u(e){var t=K(l.types,(function(t){return t.name===e}));if(t)return t;if("any"===e)return a;var n=K(l.types,(function(t){return t.name.toLowerCase()===e.toLowerCase()}));throw new TypeError('Unknown type "'+e+'"'+(n?'. Did you mean "'+n.name+'"?':""))}function c(e){return e===a?999:l.types.indexOf(e)}function d(e){var t=K(l.types,(function(t){return t.test(e)}));if(t)return t.name;throw new TypeError("Value has unknown type. Value: "+e)}function h(e,t){if(!e.signatures)throw new TypeError("Function is no typed-function");var n;if("string"===typeof t){n=t.split(",");for(var r=0;r<n.length;r++)n[r]=n[r].trim()}else{if(!Array.isArray(t))throw new TypeError("String array or a comma separated string expected");n=t}var i=n.join(","),a=e.signatures[i];if(a)return a;throw new TypeError("Signature not found (signature: "+(e.name||"unnamed")+"("+n.join(", ")+"))")}function f(e,t){var n=d(e);if(t===n)return e;for(var r=0;r<l.conversions.length;r++){var i=l.conversions[r];if(i.from===n&&i.to===t)return i.convert(e)}throw new Error("Cannot convert from "+n+" to "+t)}function p(e){return e.map((function(e){var t=e.types.map(C);return(e.restParam?"...":"")+t.join("|")})).join(",")}function m(e,t){var n=0===e.indexOf("..."),r=n?e.length>3?e.slice(3):"any":e,i=r.split("|").map(z).filter(R).filter(L),a=T(t,i),o=i.map((function(e){var t=u(e);return{name:e,typeIndex:c(t),test:t.test,conversion:null,conversionIndex:-1}})),s=a.map((function(e){var n=u(e.from);return{name:e.from,typeIndex:c(n),test:n.test,conversion:e,conversionIndex:t.indexOf(e)}}));return{types:o.concat(s),restParam:n}}function v(e,t,n){var r=[];return""!==e.trim()&&(r=e.split(",").map(z).map((function(e,t,r){var i=m(e,n);if(i.restParam&&t!==r.length-1)throw new SyntaxError('Unexpected rest parameter "'+e+'": only allowed for the last parameter');return i}))),r.some(q)?null:{params:r,fn:t}}function g(e){var t=U(e);return!!t&&t.restParam}function y(e){return e.types.some((function(e){return null!=e.conversion}))}function b(t){if(t&&0!==t.types.length){if(1===t.types.length)return u(t.types[0].name).test;if(2===t.types.length){var n=u(t.types[0].name).test,r=u(t.types[1].name).test;return function(e){return n(e)||r(e)}}var i=t.types.map((function(e){return u(e.name).test}));return function(e){for(var t=0;t<i.length;t++)if(i[t](e))return!0;return!1}}return e}function x(e){var t,n,r;if(g(e)){t=H(e).map(b);var i=t.length,a=b(U(e)),o=function(e){for(var t=i;t<e.length;t++)if(!a(e[t]))return!1;return!0};return function(e){for(var n=0;n<t.length;n++)if(!t[n](e[n]))return!1;return o(e)&&e.length>=i+1}}return 0===e.length?function(e){return 0===e.length}:1===e.length?(n=b(e[0]),function(e){return n(e[0])&&1===e.length}):2===e.length?(n=b(e[0]),r=b(e[1]),function(e){return n(e[0])&&r(e[1])&&2===e.length}):(t=e.map(b),function(e){for(var n=0;n<t.length;n++)if(!t[n](e[n]))return!1;return e.length===t.length})}function w(e,t){return t<e.params.length?e.params[t]:g(e.params)?U(e.params):null}function _(e,t,n){var r=w(e,t),i=r?n?r.types.filter(S):r.types:[];return i.map(C)}function C(e){return e.name}function S(e){return null===e.conversion||void 0===e.conversion}function N(e,t){var n=X(Z(e,(function(e){return _(e,t,!1)})));return-1!==n.indexOf("any")?["any"]:n}function k(e,t,n){var r,i,a,o=e||"unnamed",s=n;for(a=0;a<t.length;a++){var l=s.filter((function(e){var n=b(w(e,a));return(a<e.params.length||g(e.params))&&n(t[a])}));if(0===l.length){if(i=N(s,a),i.length>0){var u=d(t[a]);return r=new TypeError("Unexpected type of argument in function "+o+" (expected: "+i.join(" or ")+", actual: "+u+", index: "+a+")"),r.data={category:"wrongType",fn:o,index:a,actual:u,expected:i},r}}else s=l}var c=s.map((function(e){return g(e.params)?1/0:e.params.length}));if(t.length<Math.min.apply(null,c))return i=N(s,a),r=new TypeError("Too few arguments in function "+o+" (expected: "+i.join(" or ")+", index: "+t.length+")"),r.data={category:"tooFewArgs",fn:o,index:t.length,expected:i},r;var h=Math.max.apply(null,c);return t.length>h?(r=new TypeError("Too many arguments in function "+o+" (expected: "+h+", actual: "+t.length+")"),r.data={category:"tooManyArgs",fn:o,index:t.length,expectedLength:h},r):(r=new TypeError('Arguments of type "'+t.join(", ")+'" do not match any of the defined signatures of function '+o+"."),r.data={category:"mismatch",actual:t.map(d)},r)}function E(e){for(var t=999,n=0;n<e.types.length;n++)S(e.types[n])&&(t=Math.min(t,e.types[n].typeIndex));return t}function M(e){for(var t=999,n=0;n<e.types.length;n++)S(e.types[n])||(t=Math.min(t,e.types[n].conversionIndex));return t}function O(e,t){var n;return n=e.restParam-t.restParam,0!==n?n:(n=y(e)-y(t),0!==n?n:(n=E(e)-E(t),0!==n?n:M(e)-M(t)))}function D(e,t){var n,r,i=Math.min(e.params.length,t.params.length);if(r=e.params.some(y)-t.params.some(y),0!==r)return r;for(n=0;n<i;n++)if(r=y(e.params[n])-y(t.params[n]),0!==r)return r;for(n=0;n<i;n++)if(r=O(e.params[n],t.params[n]),0!==r)return r;return e.params.length-t.params.length}function T(e,t){var n={};return e.forEach((function(e){-1!==t.indexOf(e.from)||-1===t.indexOf(e.to)||n[e.from]||(n[e.from]=e)})),Object.keys(n).map((function(e){return n[e]}))}function A(e,t){var n=t;if(e.some(y)){var r=g(e),i=e.map(I);n=function(){for(var e=[],n=r?arguments.length-1:arguments.length,a=0;a<n;a++)e[a]=i[a](arguments[a]);return r&&(e[n]=arguments[n].map(i[n])),t.apply(this,e)}}var a=n;if(g(e)){var o=e.length-1;a=function(){return n.apply(this,W(arguments,0,o).concat([W(arguments,o)]))}}return a}function I(e){var t,n,r,i,a=[],o=[];switch(e.types.forEach((function(e){e.conversion&&(a.push(u(e.conversion.from).test),o.push(e.conversion.convert))})),o.length){case 0:return function(e){return e};case 1:return t=a[0],r=o[0],function(e){return t(e)?r(e):e};case 2:return t=a[0],n=a[1],r=o[0],i=o[1],function(e){return t(e)?r(e):n(e)?i(e):e};default:return function(e){for(var t=0;t<o.length;t++)if(a[t](e))return o[t](e);return e}}}function $(e){var t={};return e.forEach((function(e){e.params.some(y)||P(e.params,!0).forEach((function(n){t[p(n)]=e.fn}))})),t}function P(e,t){function n(e,r,i){if(r<e.length){var a,o=e[r],s=t?o.types.filter(S):o.types;if(o.restParam){var l=s.filter(S);a=l.length<s.length?[l,s]:[s]}else a=s.map((function(e){return[e]}));return Z(a,(function(t){return n(e,r+1,i.concat([t]))}))}var u=i.map((function(t,n){return{types:t,restParam:n===e.length-1&&g(e)}}));return[u]}return n(e,0,[])}function j(e,t){for(var n=Math.max(e.params.length,t.params.length),r=0;r<n;r++){var i=_(e,r,!0),a=_(t,r,!0);if(!G(i,a))return!1}var o=e.params.length,s=t.params.length,l=g(e.params),u=g(t.params);return l?u?o===s:s>=o:u?o>=s:o===s}function F(e,r){if(0===Object.keys(r).length)throw new SyntaxError("No signatures provided");var i=[];Object.keys(r).map((function(e){return v(e,r[e],l.conversions)})).filter(V).forEach((function(e){var t=K(i,(function(t){return j(t,e)}));if(t)throw new TypeError('Conflicting signatures "'+p(t.params)+'" and "'+p(e.params)+'".');i.push(e)}));var a=Z(i,(function(e){var t=e?P(e.params,!1):[];return t.map((function(t){return{params:t,fn:e.fn}}))})).filter(V);a.sort(D);var o=a[0]&&a[0].params.length<=2&&!g(a[0].params),s=a[1]&&a[1].params.length<=2&&!g(a[1].params),u=a[2]&&a[2].params.length<=2&&!g(a[2].params),c=a[3]&&a[3].params.length<=2&&!g(a[3].params),d=a[4]&&a[4].params.length<=2&&!g(a[4].params),h=a[5]&&a[5].params.length<=2&&!g(a[5].params),f=o&&s&&u&&c&&d&&h,m=a.map((function(e){return x(e.params)})),y=o?b(a[0].params[0]):t,w=s?b(a[1].params[0]):t,_=u?b(a[2].params[0]):t,C=c?b(a[3].params[0]):t,S=d?b(a[4].params[0]):t,N=h?b(a[5].params[0]):t,k=o?b(a[0].params[1]):t,E=s?b(a[1].params[1]):t,M=u?b(a[2].params[1]):t,O=c?b(a[3].params[1]):t,T=d?b(a[4].params[1]):t,I=h?b(a[5].params[1]):t,F=a.map((function(e){return A(e.params,e.fn)})),B=o?F[0]:n,L=s?F[1]:n,z=u?F[2]:n,R=c?F[3]:n,q=d?F[4]:n,H=h?F[5]:n,U=o?a[0].params.length:-1,W=s?a[1].params.length:-1,Y=u?a[2].params.length:-1,G=c?a[3].params.length:-1,X=d?a[4].params.length:-1,J=h?a[5].params.length:-1,Q=f?6:0,ee=a.length,te=function(){for(var t=Q;t<ee;t++)if(m[t](arguments))return F[t].apply(this,arguments);return l.onMismatch(e,arguments,a)},ne=function e(t,n){return arguments.length===U&&y(t)&&k(n)?B.apply(e,arguments):arguments.length===W&&w(t)&&E(n)?L.apply(e,arguments):arguments.length===Y&&_(t)&&M(n)?z.apply(e,arguments):arguments.length===G&&C(t)&&O(n)?R.apply(e,arguments):arguments.length===X&&S(t)&&T(n)?q.apply(e,arguments):arguments.length===J&&N(t)&&I(n)?H.apply(e,arguments):te.apply(e,arguments)};try{Object.defineProperty(ne,"name",{value:e})}catch(re){}return ne.signatures=$(a),ne}function B(e,t,n){throw k(e,t,n)}function L(e){return-1===l.ignore.indexOf(e)}function z(e){return e.trim()}function R(e){return!!e}function V(e){return null!==e}function q(e){return 0===e.types.length}function H(e){return e.slice(0,e.length-1)}function U(e){return e[e.length-1]}function W(e,t,n){return Array.prototype.slice.call(e,t,n)}function Y(e,t){return-1!==e.indexOf(t)}function G(e,t){for(var n=0;n<e.length;n++)if(Y(t,e[n]))return!0;return!1}function K(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return e[n]}function X(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=!0;return Object.keys(t)}function Z(e,t){return Array.prototype.concat.apply([],e.map(t))}function J(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(("object"===typeof r.signatures||"string"===typeof r.signature)&&""!==r.name)if(""===t)t=r.name;else if(t!==r.name){var i=new Error("Function names do not match (expected: "+t+", actual: "+r.name+")");throw i.data={actual:r.name,expected:t},i}}return t}function Q(e){var t,n={};function r(e,r){if(n.hasOwnProperty(e)&&r!==n[e])throw t=new Error('Signature "'+e+'" is defined twice'),t.data={signature:e},t}for(var i=0;i<e.length;i++){var a=e[i];if("object"===typeof a.signatures)for(var o in a.signatures)a.signatures.hasOwnProperty(o)&&(r(o,a.signatures[o]),n[o]=a.signatures[o]);else{if("string"!==typeof a.signature)throw t=new TypeError("Function is no typed-function (index: "+i+")"),t.data={index:i},t;r(a.signature,a),n[a.signature]=a}}return n}return l=F("typed",{"string, Object":F,Object:function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(e[n]);var r=J(t);return F(r,e)},"...Function":function(e){return F(J(e),Q(e))},"string, ...Function":function(e,t){return F(e,Q(t))}}),l.create=r,l.types=i,l.conversions=s,l.ignore=o,l.onMismatch=B,l.throwMismatchError=B,l.createError=k,l.convert=f,l.find=h,l.addType=function(e,t){if(!e||"string"!==typeof e.name||"function"!==typeof e.test)throw new TypeError("Object with properties {name: string, test: function} expected");if(!1!==t)for(var n=0;n<l.types.length;n++)if("Object"===l.types[n].name)return void l.types.splice(n,0,e);l.types.push(e)},l.addConversion=function(e){if(!e||"string"!==typeof e.from||"string"!==typeof e.to||"function"!==typeof e.convert)throw new TypeError("Object with properties {from: string, to: string, convert: function} expected");l.conversions.push(e)},l}return r()}))},796:function(e,t,n){"use strict";function r(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function i(e){return r(e)?new Date(e.getTime()):null==e?new Date(NaN):new Date(e)}function a(e){return r(e)&&!isNaN(e.getTime())}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!(t>=0&&t<=6))throw new RangeError("weekStartsOn must be between 0 and 6");var n=i(e),r=n.getDay(),a=(r+7-t)%7;return n.setDate(n.getDate()-a),n.setHours(0,0,0,0),n}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.firstDayOfWeek,r=void 0===n?0:n,a=t.firstWeekContainsDate,s=void 0===a?1:a;if(!(s>=1&&s<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7");for(var l=i(e),u=l.getFullYear(),c=new Date(0),d=u+1;d>=u-1;d--)if(c.setFullYear(d,0,s),c.setHours(0,0,0,0),c=o(c,r),l.getTime()>=c.getTime())break;return c}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.firstDayOfWeek,r=void 0===n?0:n,a=t.firstWeekContainsDate,l=void 0===a?1:a,u=i(e),c=o(u,r),d=s(u,{firstDayOfWeek:r,firstWeekContainsDate:l}),h=c.getTime()-d.getTime();return Math.round(h/6048e5)+1}n.r(t),n.d(t,{default:function(){return dr}});var u={months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],weekdaysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],firstDayOfWeek:0,firstWeekContainsDate:1},c=u,d=/\[([^\]]+)]|YYYY|YY?|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|m{1,2}|s{1,2}|Z{1,2}|S{1,3}|w{1,2}|x|X|a|A/g;function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n="".concat(Math.abs(e)),r=e<0?"-":"";while(n.length<t)n="0".concat(n);return r+n}function f(e){return 15*Math.round(e.getTimezoneOffset()/15)}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),a=r%60;return n+h(i,2)+t+h(a,2)}var m=function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLocaleLowerCase():r},v={Y:function(e){var t=e.getFullYear();return t<=9999?"".concat(t):"+".concat(t)},YY:function(e){return h(e.getFullYear(),4).substr(2)},YYYY:function(e){return h(e.getFullYear(),4)},M:function(e){return e.getMonth()+1},MM:function(e){return h(e.getMonth()+1,2)},MMM:function(e,t){return t.monthsShort[e.getMonth()]},MMMM:function(e,t){return t.months[e.getMonth()]},D:function(e){return e.getDate()},DD:function(e){return h(e.getDate(),2)},H:function(e){return e.getHours()},HH:function(e){return h(e.getHours(),2)},h:function(e){var t=e.getHours();return 0===t?12:t>12?t%12:t},hh:function(){var e=v.h.apply(v,arguments);return h(e,2)},m:function(e){return e.getMinutes()},mm:function(e){return h(e.getMinutes(),2)},s:function(e){return e.getSeconds()},ss:function(e){return h(e.getSeconds(),2)},S:function(e){return Math.floor(e.getMilliseconds()/100)},SS:function(e){return h(Math.floor(e.getMilliseconds()/10),2)},SSS:function(e){return h(e.getMilliseconds(),3)},d:function(e){return e.getDay()},dd:function(e,t){return t.weekdaysMin[e.getDay()]},ddd:function(e,t){return t.weekdaysShort[e.getDay()]},dddd:function(e,t){return t.weekdays[e.getDay()]},A:function(e,t){var n=t.meridiem||m;return n(e.getHours(),e.getMinutes(),!1)},a:function(e,t){var n=t.meridiem||m;return n(e.getHours(),e.getMinutes(),!0)},Z:function(e){return p(f(e),":")},ZZ:function(e){return p(f(e))},X:function(e){return Math.floor(e.getTime()/1e3)},x:function(e){return e.getTime()},w:function(e,t){return l(e,{firstDayOfWeek:t.firstDayOfWeek,firstWeekContainsDate:t.firstWeekContainsDate})},ww:function(e,t){return h(v.w(e,t),2)}};function g(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t?String(t):"YYYY-MM-DDTHH:mm:ss.SSSZ",o=i(e);if(!a(o))return"Invalid Date";var s=n.locale||c;return r.replace(d,(function(e,t){return t||("function"===typeof v[e]?"".concat(v[e](o,s)):e)}))}function y(e){return w(e)||x(e)||b()}function b(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function x(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function w(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function _(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 C(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(n,!0).forEach((function(t){M(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function S(e,t){return E(e)||k(e,t)||N()}function N(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function k(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done);r=!0)if(n.push(o.value),t&&n.length===t)break}catch(l){i=!0,a=l}finally{try{r||null==s["return"]||s["return"]()}finally{if(i)throw a}}return n}}function E(e){if(Array.isArray(e))return e}function M(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var O=/(\[[^\[]*\])|(MM?M?M?|Do|DD?|ddd?d?|w[o|w]?|YYYY|YY|a|A|hh?|HH?|mm?|ss?|S{1,3}|x|X|ZZ?|.)/g,D=/\d/,T=/\d\d/,A=/\d{3}/,I=/\d{4}/,$=/\d\d?/,P=/[+-]\d\d:?\d\d/,j=/[+-]?\d+/,F=/[+-]?\d+(\.\d{1,3})?/,B="year",L="month",z="day",R="hour",V="minute",q="second",H="millisecond",U={},W=function(e,t,n){var r,i=Array.isArray(e)?e:[e];r="string"===typeof n?function(e){var t=parseInt(e,10);return M({},n,t)}:n,i.forEach((function(e){U[e]=[t,r]}))},Y=function(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")},G=function(e){return function(t){var n=t[e];if(!Array.isArray(n))throw new Error("Locale[".concat(e,"] need an array"));return new RegExp(n.map(Y).join("|"))}},K=function(e,t){return function(n,r){var i=r[e];if(!Array.isArray(i))throw new Error("Locale[".concat(e,"] need an array"));var a=i.indexOf(n);if(a<0)throw new Error("Invalid Word");return M({},t,a)}};function X(e){return e.meridiemParse||/[ap]\.?m?\.?/i}function Z(e){return"p"==="".concat(e).toLowerCase().charAt(0)}function J(e){var t=e.match(/([+-]|\d\d)/g)||["-","0","0"],n=S(t,3),r=n[0],i=n[1],a=n[2],o=60*parseInt(i,10)+parseInt(a,10);return 0===o?0:"+"===r?-o:+o}function Q(e,t){if(void 0!==e&&void 0!==t)if(t){if(e<12)return e+12}else if(12===e)return 0;return e}function ee(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,n=[0,0,1,0,0,0,0],r=[t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()],i=!0,a=0;a<7;a++)void 0===e[a]?n[a]=i?r[a]:n[a]:(n[a]=e[a],i=!1);return n}function te(e,t,n,r,i,a,o){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,i,a,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,a,o),s}function ne(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0];return i<100&&i>=0?(n[0]+=400,e=new Date(Date.UTC.apply(Date,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(i)):e=new Date(Date.UTC.apply(Date,n)),e}function re(e,t,n){var r=t.match(O);if(!r)throw new Error;for(var i=r.length,a={},o=0;o<i;o+=1){var s=r[o],l=U[s];if(l){var u="function"===typeof l[0]?l[0](n):l[0],c=l[1],d=(u.exec(e)||[])[0],h=c(d,n);a=C({},a,{},h),e=e.replace(d,"")}else{var f=s.replace(/^\[|\]$/g,"");if(0!==e.indexOf(f))throw new Error("not match");e=e.substr(f.length)}}return a}function ie(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{var r=n.locale,i=void 0===r?c:r,a=n.backupDate,o=void 0===a?new Date:a,l=re(e,t,i),u=l.year,d=l.month,h=l.day,f=l.hour,p=l.minute,m=l.second,v=l.millisecond,g=l.isPM,b=l.date,x=l.offset,w=l.weekday,_=l.week;if(b)return b;var C,S=[u,d,h,f,p,m,v];if(S[3]=Q(S[3],g),void 0!==_&&void 0===d&&void 0===h){var N=s(void 0===u?o:new Date(u,3),{firstDayOfWeek:i.firstDayOfWeek,firstWeekContainsDate:i.firstWeekContainsDate});return new Date(N.getTime()+7*(_-1)*24*3600*1e3)}var k=ee(S,o);return void 0!==x?(k[6]+=60*x*1e3,C=ne.apply(void 0,y(k))):C=te.apply(void 0,y(k)),void 0!==w&&C.getDay()!==w?new Date(NaN):C}catch(E){return new Date(NaN)}}function ae(e){return ae="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ae(e)}function oe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function se(){return se=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},se.apply(this,arguments)}function le(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 ue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?le(Object(n),!0).forEach((function(t){oe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):le(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ce(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function de(e,t){if(null==e)return{};var n,r,i=ce(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function he(e,t){return fe(e)||pe(e,t)||me(e,t)||ge()}function fe(e){if(Array.isArray(e))return e}function pe(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done);r=!0)if(n.push(o.value),t&&n.length===t)break}catch(l){i=!0,a=l}finally{try{r||null==s["return"]||s["return"]()}finally{if(i)throw a}}return n}}function me(e,t){if(e){if("string"===typeof e)return ve(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ve(e,t):void 0}}function ve(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ge(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ye(){return ye=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},ye.apply(this,arguments)}W("Y",j,B),W("YY",T,(function(e){var t=(new Date).getFullYear(),n=Math.floor(t/100),r=parseInt(e,10);return r=100*(r>68?n-1:n)+r,M({},B,r)})),W("YYYY",I,B),W("M",$,(function(e){return M({},L,parseInt(e,10)-1)})),W("MM",T,(function(e){return M({},L,parseInt(e,10)-1)})),W("MMM",G("monthsShort"),K("monthsShort",L)),W("MMMM",G("months"),K("months",L)),W("D",$,z),W("DD",T,z),W(["H","h"],$,R),W(["HH","hh"],T,R),W("m",$,V),W("mm",T,V),W("s",$,q),W("ss",T,q),W("S",D,(function(e){return M({},H,100*parseInt(e,10))})),W("SS",T,(function(e){return M({},H,10*parseInt(e,10))})),W("SSS",A,H),W(["A","a"],X,(function(e,t){var n="function"===typeof t.isPM?t.isPM(e):Z(e);return{isPM:n}})),W(["Z","ZZ"],P,(function(e){return{offset:J(e)}})),W("x",j,(function(e){return{date:new Date(parseInt(e,10))}})),W("X",F,(function(e){return{date:new Date(1e3*parseFloat(e))}})),W("d",D,"weekday"),W("dd",G("weekdaysMin"),K("weekdaysMin","weekday")),W("ddd",G("weekdaysShort"),K("weekdaysShort","weekday")),W("dddd",G("weekdays"),K("weekdays","weekday")),W("w",$,"week"),W("ww",T,"week");var be=["attrs","props","domProps"],xe=["class","style","directives"],we=["on","nativeOn"],_e=function(e){return e.reduce((function(e,t){for(var n in t)if(e[n])if(-1!==be.indexOf(n))e[n]=ye({},e[n],t[n]);else if(-1!==xe.indexOf(n)){var r=e[n]instanceof Array?e[n]:[e[n]],i=t[n]instanceof Array?t[n]:[t[n]];e[n]=r.concat(i)}else if(-1!==we.indexOf(n))for(var a in t[n])if(e[n][a]){var o=e[n][a]instanceof Array?e[n][a]:[e[n][a]],s=t[n][a]instanceof Array?t[n][a]:[t[n][a]];e[n][a]=o.concat(s)}else e[n][a]=t[n][a];else if("hook"==n)for(var l in t[n])e[n][l]=e[n][l]?Ce(e[n][l],t[n][l]):t[n][l];else e[n]=t[n];else e[n]=t[n];return e}),{})},Ce=function(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}},Se=_e;function Ne(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,s=new Date(e,t,n,r,i,a,o);return e<100&&e>=0&&s.setFullYear(e),s}function ke(e){return e instanceof Date&&!isNaN(e)}function Ee(e){return Array.isArray(e)&&2===e.length&&e.every(ke)&&e[0]<=e[1]}function Me(e){return Array.isArray(e)&&e.every(ke)}function Oe(e){var t=new Date(e);if(ke(t))return t;for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.length?Oe.apply(void 0,r):new Date}function De(e){var t=new Date(e);return t.setMonth(0,1),t.setHours(0,0,0,0),t}function Te(e){var t=new Date(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Ae(e){var t=new Date(e);return t.setHours(0,0,0,0),t}function Ie(e){for(var t=e.firstDayOfWeek,n=e.year,r=e.month,i=[],a=Ne(n,r,0),o=a.getDate(),s=o-(a.getDay()+7-t)%7,l=s;l<=o;l++)i.push(Ne(n,r,l-o));a.setMonth(r+1,0);for(var u=a.getDate(),c=1;c<=u;c++)i.push(Ne(n,r,c));for(var d=o-s+1,h=42-d-u,f=1;f<=h;f++)i.push(Ne(n,r,u+f));return i}function $e(e,t){var n=new Date(e),r="function"===typeof t?t(n.getMonth()):Number(t),i=n.getFullYear(),a=Ne(i,r+1,0).getDate(),o=n.getDate();return n.setMonth(r,Math.min(o,a)),n}function Pe(e,t){var n=new Date(e),r="function"===typeof t?t(n.getFullYear()):t;return n.setFullYear(r),n}function je(e,t){var n=new Date(e),r=new Date(t);return n.setHours(r.getHours(),r.getMinutes(),r.getSeconds()),n}function Fe(e,t){if(!Array.isArray(e))return[];var n=[],r=e.length,i=0;t=t||r;while(i<r)n.push(e.slice(i,i+=t));return n}function Be(e){return"[object Object]"===Object.prototype.toString.call(e)}function Le(e,t){if(!Be(e))return{};Array.isArray(t)||(t=[t]);var n={};return t.forEach((function(t){t in e&&(n[t]=e[t])})),n}function ze(e,t){if(!Be(e))return{};var n=e;return Be(t)&&Object.keys(t).forEach((function(r){var i=t[r];Be(i)&&Be(e[r])&&(i=ze(e[r],i)),n=ue({},n,oe({},r,i))})),n}function Re(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function Ve(e,t){return t={exports:{}},e(t,t.exports),t.exports}var qe=Ve((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var n={months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],weekdaysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],firstDayOfWeek:0,firstWeekContainsDate:1},r=n;t["default"]=r,e.exports=t.default})),He=Re(qe),Ue={formatLocale:He,yearFormat:"YYYY",monthFormat:"MMM",monthBeforeYear:!0},We="en",Ye={};function Ge(e,t,n){if("string"!==typeof e)return Ye[We];var r=We;return Ye[e]&&(r=e),t&&(Ye[e]=t,r=e),n||(We=r),Ye[e]||Ye[We]}function Ke(e){return Ge(e,null,!0)}function Xe(e){var t=!1;return function(){for(var n=this,r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];t||(t=!0,requestAnimationFrame((function(){t=!1,e.apply(n,i)})))}}function Ze(e){var t=e.style.display,n=e.style.visibility;e.style.display="block",e.style.visibility="hidden";var r=window.getComputedStyle(e),i=e.offsetWidth+parseInt(r.marginLeft,10)+parseInt(r.marginRight,10),a=e.offsetHeight+parseInt(r.marginTop,10)+parseInt(r.marginBottom,10);return e.style.display=t,e.style.visibility=n,{width:i,height:a}}function Je(e,t,n,r){var i=0,a=0,o=0,s=0,l=e.getBoundingClientRect(),u=document.documentElement.clientWidth,c=document.documentElement.clientHeight;return r&&(o=window.pageXOffset+l.left,s=window.pageYOffset+l.top),i=u-l.left<t&&l.right<t?o-l.left+1:l.left+l.width/2<=u/2?o:o+l.width-t,a=l.top<=n&&c-l.bottom<=n?s+c-l.top-n:l.top+l.height/2<=c/2?s+l.height:s-n,{left:"".concat(i,"px"),top:"".concat(a,"px")}}function Qe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body;if(!e||e===t)return null;var n=function(e,t){return getComputedStyle(e,null).getPropertyValue(t)},r=/(auto|scroll)/,i=r.test(n(e,"overflow")+n(e,"overflow-y")+n(e,"overflow-x"));return i?e:Qe(e.parentNode,t)}Ye[We]=Ue;var et={name:"Popup",inject:{prefixClass:{default:"mx"}},props:{visible:{type:Boolean,default:!1},appendToBody:{type:Boolean,default:!0}},data:function(){return{top:"",left:""}},watch:{visible:{immediate:!0,handler:function(e){var t=this;this.$nextTick((function(){e&&t.displayPopup()}))}}},mounted:function(){var e=this;this.appendToBody&&document.body.appendChild(this.$el),this._clickoutEvent="ontouchend"in document?"touchstart":"mousedown",document.addEventListener(this._clickoutEvent,this.handleClickOutside);var t=this.$parent.$el;this._displayPopup=Xe((function(){return e.displayPopup()})),this._scrollParent=Qe(t)||window,this._scrollParent.addEventListener("scroll",this._displayPopup),window.addEventListener("resize",this._displayPopup)},beforeDestroy:function(){this.appendToBody&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el),document.removeEventListener(this._clickoutEvent,this.handleClickOutside),this._scrollParent.removeEventListener("scroll",this._displayPopup),window.removeEventListener("resize",this._displayPopup)},methods:{handleClickOutside:function(e){if(this.visible){var t=e.target,n=this.$el;n&&!n.contains(t)&&this.$emit("clickoutside",e)}},displayPopup:function(){if(this.visible){var e=this.$el,t=this.$parent.$el,n=this.appendToBody;this._popupRect||(this._popupRect=Ze(e));var r=this._popupRect,i=r.width,a=r.height,o=Je(t,i,a,n),s=o.left,l=o.top;this.left=s,this.top=l}}}};function tt(e,t,n,r,i,a,o,s,l,u){"boolean"!==typeof o&&(l=s,s=o,o=!1);var c,d="function"===typeof n?n.options:n;if(e&&e.render&&(d.render=e.render,d.staticRenderFns=e.staticRenderFns,d._compiled=!0,i&&(d.functional=!0)),r&&(d._scopeId=r),a?(c=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,l(e)),e&&e._registeredComponents&&e._registeredComponents.add(a)},d._ssrRegister=c):t&&(c=o?function(e){t.call(this,u(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,s(e))}),c)if(d.functional){var h=d.render;d.render=function(e,t){return c.call(t),h(e,t)}}else{var f=d.beforeCreate;d.beforeCreate=f?[].concat(f,c):[c]}return n}var nt,rt=et,it=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:e.prefixClass+"-zoom-in-down"}},[e.visible?n("div",{class:e.prefixClass+"-datepicker-main "+e.prefixClass+"-datepicker-popup",style:{top:e.top,left:e.left,position:"absolute"}},[e._t("default")],2):e._e()])},at=[],ot=void 0,st=void 0,lt=void 0,ut=!1,ct=tt({render:it,staticRenderFns:at},ot,rt,st,ut,lt,!1,void 0,void 0,void 0),dt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:"1em",height:"1em"}},[n("path",{attrs:{d:"M940.218182 107.054545h-209.454546V46.545455h-65.163636v60.50909H363.054545V46.545455H297.890909v60.50909H83.781818c-18.618182 0-32.581818 13.963636-32.581818 32.581819v805.236363c0 18.618182 13.963636 32.581818 32.581818 32.581818h861.090909c18.618182 0 32.581818-13.963636 32.581818-32.581818V139.636364c-4.654545-18.618182-18.618182-32.581818-37.236363-32.581819zM297.890909 172.218182V232.727273h65.163636V172.218182h307.2V232.727273h65.163637V172.218182h176.872727v204.8H116.363636V172.218182h181.527273zM116.363636 912.290909V442.181818h795.927273v470.109091H116.363636z"}})])},ht=[],ft=void 0,pt=void 0,mt=void 0,vt=!1,gt=tt({render:dt,staticRenderFns:ht},ft,{},pt,vt,mt,!1,void 0,void 0,void 0),yt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"1em",height:"1em"}},[n("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}}),e._v(" "),n("path",{attrs:{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}}),e._v(" "),n("path",{attrs:{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"}})])},bt=[],xt=void 0,wt=void 0,_t=void 0,Ct=!1,St=tt({render:yt,staticRenderFns:bt},xt,{},wt,Ct,_t,!1,void 0,void 0,void 0),Nt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:"1em",height:"1em"}},[n("path",{attrs:{d:"M810.005333 274.005333l-237.994667 237.994667 237.994667 237.994667-60.010667 60.010667-237.994667-237.994667-237.994667 237.994667-60.010667-60.010667 237.994667-237.994667-237.994667-237.994667 60.010667-60.010667 237.994667 237.994667 237.994667-237.994667z"}})])},kt=[],Et=void 0,Mt=void 0,Ot=void 0,Dt=!1,Tt=tt({render:Nt,staticRenderFns:kt},Et,{},Mt,Dt,Ot,!1,void 0,void 0,void 0),At={props:{type:String,disabled:Boolean},inject:{prefixClass:{default:"mx"}}},It=At,$t=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("button",e._g({class:[e.prefixClass+"-btn "+e.prefixClass+"-btn-text "+e.prefixClass+"-btn-icon-"+e.type,{disabled:e.disabled}],attrs:{type:"button",disabled:e.disabled}},e.$listeners),[n("i",{class:e.prefixClass+"-icon-"+e.type})])},Pt=[],jt=void 0,Ft=void 0,Bt=void 0,Lt=!1,zt=tt({render:$t,staticRenderFns:Pt},jt,It,Ft,Lt,Bt,!1,void 0,void 0,void 0),Rt={name:"TableDate",components:{IconButton:zt},inject:{getLocale:{default:function(){return Ke}},getWeek:{default:function(){return l}},prefixClass:{default:"mx"},onDateMouseEnter:{default:void 0},onDateMouseLeave:{default:void 0}},props:{disabledCalendarChanger:{type:Function,default:function(){return!1}},calendar:{type:Date,default:function(){return new Date}},showWeekNumber:{type:Boolean,default:!1},titleFormat:{type:String,default:"YYYY-MM-DD"},getRowClasses:{type:Function,default:function(){return[]}},getCellClasses:{type:Function,default:function(){return[]}}},computed:{firstDayOfWeek:function(){return this.getLocale().formatLocale.firstDayOfWeek||0},yearMonth:function(){var e=this.getLocale(),t=e.yearFormat,n=e.monthBeforeYear,r=e.monthFormat,i=void 0===r?"MMM":r,a={panel:"year",label:this.formatDate(this.calendar,t)},o={panel:"month",label:this.formatDate(this.calendar,i)};return n?[o,a]:[a,o]},days:function(){var e=this.getLocale(),t=e.days||e.formatLocale.weekdaysMin;return t.concat(t).slice(this.firstDayOfWeek,this.firstDayOfWeek+7)},dates:function(){var e=this.calendar.getFullYear(),t=this.calendar.getMonth(),n=Ie({firstDayOfWeek:this.firstDayOfWeek,year:e,month:t});return Fe(n,7)}},methods:{isDisabledArrows:function(e){var t=new Date(this.calendar);switch(e){case"last-year":t.setFullYear(t.getFullYear()-1,t.getMonth()+1,0),t.setHours(23,59,59,999);break;case"next-year":t.setFullYear(t.getFullYear()+1);break;case"last-month":t.setMonth(t.getMonth(),0),t.setHours(23,59,59,999);break;case"next-month":t.setMonth(t.getMonth()+1);break}return this.disabledCalendarChanger(t,e)},handleIconLeftClick:function(){this.$emit("changecalendar",$e(this.calendar,(function(e){return e-1})),"last-month")},handleIconRightClick:function(){this.$emit("changecalendar",$e(this.calendar,(function(e){return e+1})),"next-month")},handleIconDoubleLeftClick:function(){this.$emit("changecalendar",Pe(this.calendar,(function(e){return e-1})),"last-year")},handleIconDoubleRightClick:function(){this.$emit("changecalendar",Pe(this.calendar,(function(e){return e+1})),"next-year")},handlePanelChange:function(e){this.$emit("changepanel",e)},handleMouseEnter:function(e){"function"===typeof this.onDateMouseEnter&&this.onDateMouseEnter(e)},handleMouseLeave:function(e){"function"===typeof this.onDateMouseLeave&&this.onDateMouseLeave(e)},handleCellClick:function(e){var t=e.target;"DIV"===t.tagName.toUpperCase()&&(t=t.parentNode);var n=t.getAttribute("data-row-col");if(n){var r=n.split(",").map((function(e){return parseInt(e,10)})),i=he(r,2),a=i[0],o=i[1],s=this.dates[a][o];this.$emit("select",new Date(s))}},formatDate:function(e,t){return g(e,t,{locale:this.getLocale().formatLocale})},getCellTitle:function(e){var t=this.titleFormat;return this.formatDate(e,t)},getWeekNumber:function(e){return this.getWeek(e,this.getLocale().formatLocale)}}},Vt=Rt,qt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.prefixClass+"-calendar "+e.prefixClass+"-calendar-panel-date"},[n("div",{class:e.prefixClass+"-calendar-header"},[n("icon-button",{attrs:{type:"double-left",disabled:e.isDisabledArrows("last-year")},on:{click:e.handleIconDoubleLeftClick}}),e._v(" "),n("icon-button",{attrs:{type:"left",disabled:e.isDisabledArrows("last-month")},on:{click:e.handleIconLeftClick}}),e._v(" "),n("icon-button",{attrs:{type:"double-right",disabled:e.isDisabledArrows("next-year")},on:{click:e.handleIconDoubleRightClick}}),e._v(" "),n("icon-button",{attrs:{type:"right",disabled:e.isDisabledArrows("next-month")},on:{click:e.handleIconRightClick}}),e._v(" "),n("span",{class:e.prefixClass+"-calendar-header-label"},e._l(e.yearMonth,(function(t){return n("button",{key:t.panel,class:e.prefixClass+"-btn "+e.prefixClass+"-btn-text "+e.prefixClass+"-btn-current-"+t.panel,attrs:{type:"button"},on:{click:function(n){return e.handlePanelChange(t.panel)}}},[e._v("\n "+e._s(t.label)+"\n ")])})),0)],1),e._v(" "),n("div",{class:e.prefixClass+"-calendar-content"},[n("table",{class:e.prefixClass+"-table "+e.prefixClass+"-table-date"},[n("thead",[n("tr",[e.showWeekNumber?n("th",{class:e.prefixClass+"-week-number-header"}):e._e(),e._v(" "),e._l(e.days,(function(t){return n("th",{key:t},[e._v(e._s(t))])}))],2)]),e._v(" "),n("tbody",{on:{click:e.handleCellClick}},e._l(e.dates,(function(t,r){return n("tr",{key:r,class:[e.prefixClass+"-date-row",e.getRowClasses(t)]},[e.showWeekNumber?n("td",{class:e.prefixClass+"-week-number",attrs:{"data-row-col":r+",0"}},[e._v("\n "+e._s(e.getWeekNumber(t[0]))+"\n ")]):e._e(),e._v(" "),e._l(t,(function(t,i){return n("td",{key:i,staticClass:"cell",class:e.getCellClasses(t),attrs:{"data-row-col":r+","+i,title:e.getCellTitle(t)},on:{mouseenter:function(n){return e.handleMouseEnter(t)},mouseleave:function(n){return e.handleMouseLeave(t)}}},[n("div",[e._v(e._s(t.getDate()))])])}))],2)})),0)])])])},Ht=[],Ut=void 0,Wt=void 0,Yt=void 0,Gt=!1,Kt=tt({render:qt,staticRenderFns:Ht},Ut,Vt,Wt,Gt,Yt,!1,void 0,void 0,void 0),Xt={name:"TableMonth",components:{IconButton:zt},inject:{getLocale:{default:function(){return Ke}},prefixClass:{default:"mx"}},props:{disabledCalendarChanger:{type:Function,default:function(){return!1}},calendar:{type:Date,default:function(){return new Date}},getCellClasses:{type:Function,default:function(){return[]}}},computed:{calendarYear:function(){return this.calendar.getFullYear()},months:function(){var e=this.getLocale(),t=e.months||e.formatLocale.monthsShort,n=t.map((function(e,t){return{text:e,month:t}}));return Fe(n,3)}},methods:{isDisabledArrows:function(e){var t=new Date(this.calendar);switch(e){case"last-year":t.setFullYear(t.getFullYear()-1,11,31),t.setHours(23,59,59,999);break;case"next-year":t.setFullYear(t.getFullYear()+1,0,1);break}return this.disabledCalendarChanger(t,e)},handleIconDoubleLeftClick:function(){this.$emit("changecalendar",Pe(this.calendar,(function(e){return e-1})),"last-year")},handleIconDoubleRightClick:function(){this.$emit("changecalendar",Pe(this.calendar,(function(e){return e+1})),"next-year")},handlePanelChange:function(){this.$emit("changepanel","year")},handleClick:function(e){var t=e.target;"DIV"===t.tagName.toUpperCase()&&(t=t.parentNode);var n=t.getAttribute("data-month");n&&!t.classList.contains("disabled")&&this.$emit("select",parseInt(n,10))}}},Zt=Xt,Jt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.prefixClass+"-calendar "+e.prefixClass+"-calendar-panel-month"},[n("div",{class:e.prefixClass+"-calendar-header"},[n("icon-button",{attrs:{type:"double-left",disabled:e.isDisabledArrows("last-year")},on:{click:e.handleIconDoubleLeftClick}}),e._v(" "),n("icon-button",{attrs:{type:"double-right",disabled:e.isDisabledArrows("next-year")},on:{click:e.handleIconDoubleRightClick}}),e._v(" "),n("span",{class:e.prefixClass+"-calendar-header-label"},[n("button",{class:e.prefixClass+"-btn "+e.prefixClass+"-btn-text",attrs:{type:"button"},on:{click:e.handlePanelChange}},[e._v("\n "+e._s(e.calendarYear)+"\n ")])])],1),e._v(" "),n("div",{class:e.prefixClass+"-calendar-content"},[n("table",{class:e.prefixClass+"-table "+e.prefixClass+"-table-month",on:{click:e.handleClick}},e._l(e.months,(function(t,r){return n("tr",{key:r},e._l(t,(function(t,r){return n("td",{key:r,staticClass:"cell",class:e.getCellClasses(t.month),attrs:{"data-month":t.month}},[n("div",[e._v(e._s(t.text))])])})),0)})),0)])])},Qt=[],en=void 0,tn=void 0,nn=void 0,rn=!1,an=tt({render:Jt,staticRenderFns:Qt},en,Zt,tn,rn,nn,!1,void 0,void 0,void 0),on={name:"TableYear",components:{IconButton:zt},inject:{prefixClass:{default:"mx"}},props:{disabledCalendarChanger:{type:Function,default:function(){return!1}},calendar:{type:Date,default:function(){return new Date}},getCellClasses:{type:Function,default:function(){return[]}},getYearPanel:{type:Function}},computed:{years:function(){var e=new Date(this.calendar);return"function"===typeof this.getYearPanel?this.getYearPanel(e):this.getYears(e)},firstYear:function(){return this.years[0][0]},lastYear:function(){var e=function(e){return e[e.length-1]};return e(e(this.years))}},methods:{isDisabledArrows:function(e){var t=new Date(this.calendar);switch(e){case"last-decade":t.setFullYear(this.firstYear-1,11,31),t.setHours(23,59,59,999);break;case"next-decade":t.setFullYear(this.lastYear+1,0,1);break}return this.disabledCalendarChanger(t,e)},getYears:function(e){for(var t=10*Math.floor(e.getFullYear()/10),n=[],r=0;r<10;r++)n.push(t+r);return Fe(n,2)},handleIconDoubleLeftClick:function(){this.$emit("changecalendar",Pe(this.calendar,(function(e){return e-10})),"last-decade")},handleIconDoubleRightClick:function(){this.$emit("changecalendar",Pe(this.calendar,(function(e){return e+10})),"next-decade")},handleClick:function(e){var t=e.target;"DIV"===t.tagName.toUpperCase()&&(t=t.parentNode);var n=t.getAttribute("data-year");n&&!t.classList.contains("disabled")&&this.$emit("select",parseInt(n,10))}}},sn=on,ln=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.prefixClass+"-calendar "+e.prefixClass+"-calendar-panel-year"},[n("div",{class:e.prefixClass+"-calendar-header"},[n("icon-button",{attrs:{type:"double-left",disabled:e.isDisabledArrows("last-decade")},on:{click:e.handleIconDoubleLeftClick}}),e._v(" "),n("icon-button",{attrs:{type:"double-right",disabled:e.isDisabledArrows("next-decade")},on:{click:e.handleIconDoubleRightClick}}),e._v(" "),n("span",{class:e.prefixClass+"-calendar-header-label"},[n("span",[e._v(e._s(e.firstYear))]),e._v(" "),n("span",{class:e.prefixClass+"-calendar-decade-separator"}),e._v(" "),n("span",[e._v(e._s(e.lastYear))])])],1),e._v(" "),n("div",{class:e.prefixClass+"-calendar-content"},[n("table",{class:e.prefixClass+"-table "+e.prefixClass+"-table-year",on:{click:e.handleClick}},e._l(e.years,(function(t,r){return n("tr",{key:r},e._l(t,(function(t,r){return n("td",{key:r,staticClass:"cell",class:e.getCellClasses(t),attrs:{"data-year":t}},[n("div",[e._v(e._s(t))])])})),0)})),0)])])},un=[],cn=void 0,dn=void 0,hn=void 0,fn=!1,pn=tt({render:ln,staticRenderFns:un},cn,sn,dn,fn,hn,!1,void 0,void 0,void 0),mn={name:"CalendarPanel",inject:{prefixClass:{default:"mx"},dispatchDatePicker:{default:function(){return function(){}}}},props:{value:{},defaultValue:{default:function(){var e=new Date;return e.setHours(0,0,0,0),e}},defaultPanel:{type:String},disabledCalendarChanger:{type:Function,default:function(){return!1}},disabledDate:{type:Function,default:function(){return!1}},type:{type:String,default:"date"},getClasses:{type:Function,default:function(){return[]}},showWeekNumber:{type:Boolean,default:void 0},getYearPanel:{type:Function},titleFormat:{type:String,default:"YYYY-MM-DD"},calendar:Date,partialUpdate:{type:Boolean,default:!1}},data:function(){var e=["date","month","year"],t=Math.max(e.indexOf(this.type),e.indexOf(this.defaultPanel)),n=-1!==t?e[t]:"date";return{panel:n,innerCalendar:new Date}},computed:{innerValue:function(){var e=Array.isArray(this.value)?this.value:[this.value],t={year:De,month:Te,date:Ae},n=t[this.type]||t.date;return e.filter(ke).map((function(e){return n(e)}))},calendarYear:function(){return this.innerCalendar.getFullYear()},calendarMonth:function(){return this.innerCalendar.getMonth()}},watch:{value:{immediate:!0,handler:"initCalendar"},calendar:{handler:"initCalendar"},defaultValue:{handler:"initCalendar"}},methods:{initCalendar:function(){var e=this.calendar;if(!ke(e)){var t=this.innerValue.length;e=Oe(t>0?this.innerValue[t-1]:this.defaultValue)}this.innerCalendar=Te(e)},isDisabled:function(e){return this.disabledDate(new Date(e),this.innerValue)},emitDate:function(e,t){this.isDisabled(e)||(this.$emit("select",e,t,this.innerValue),this.dispatchDatePicker("pick",e,t))},handleCalendarChange:function(e,t){var n=new Date(this.innerCalendar);this.innerCalendar=e,this.$emit("update:calendar",e),this.dispatchDatePicker("calendar-change",e,n,t)},handelPanelChange:function(e){var t=this.panel;this.panel=e,this.dispatchDatePicker("panel-change",e,t)},handleSelectYear:function(e){if("year"===this.type){var t=this.getYearCellDate(e);this.emitDate(t,"year")}else if(this.handleCalendarChange(Ne(e,this.calendarMonth),"year"),this.handelPanelChange("month"),this.partialUpdate&&1===this.innerValue.length){var n=new Date(this.innerValue[0]);n.setFullYear(e),this.emitDate(n,"year")}},handleSelectMonth:function(e){if("month"===this.type){var t=this.getMonthCellDate(e);this.emitDate(t,"month")}else if(this.handleCalendarChange(Ne(this.calendarYear,e),"month"),this.handelPanelChange("date"),this.partialUpdate&&1===this.innerValue.length){var n=new Date(this.innerValue[0]);n.setFullYear(this.calendarYear),this.emitDate($e(n,e),"month")}},handleSelectDate:function(e){this.emitDate(e,"week"===this.type?"week":"date")},getMonthCellDate:function(e){return Ne(this.calendarYear,e)},getYearCellDate:function(e){return Ne(e,0)},getDateClasses:function(e){var t=e.getMonth()!==this.calendarMonth,n=[];e.getTime()===(new Date).setHours(0,0,0,0)&&n.push("today"),t&&n.push("not-current-month");var r=this.getStateClass(e);return"active"===r&&t||n.push(r),n.concat(this.getClasses(e,this.innerValue,n.join(" ")))},getMonthClasses:function(e){var t=[];if("month"!==this.type){this.calendarMonth===e&&t.push("active");var n=this.getMonthCellDate(e);return this.disabledCalendarChanger(n,"month")&&t.push("disabled"),t}var r=this.getMonthCellDate(e);return t.push(this.getStateClass(r)),t.concat(this.getClasses(r,this.innerValue,t.join(" ")))},getYearClasses:function(e){var t=[];if("year"!==this.type){this.calendarYear===e&&t.push("active");var n=this.getYearCellDate(e);return this.disabledCalendarChanger(n,"year")&&t.push("disabled"),t}var r=this.getYearCellDate(e);return t.push(this.getStateClass(r)),t.concat(this.getClasses(r,this.innerValue,t.join(" ")))},getStateClass:function(e){return this.isDisabled(e)?"disabled":this.innerValue.some((function(t){return t.getTime()===e.getTime()}))?"active":""},getWeekState:function(e){if("week"!==this.type)return"";var t=e[0].getTime(),n=e[6].getTime(),r=this.innerValue.some((function(e){var r=e.getTime();return r>=t&&r<=n}));return r?"".concat(this.prefixClass,"-active-week"):""}},render:function(){var e=arguments[0],t=this.panel,n=this.innerCalendar;return"year"===t?e(pn,{attrs:{disabledCalendarChanger:this.disabledCalendarChanger,calendar:n,getCellClasses:this.getYearClasses,getYearPanel:this.getYearPanel},on:{select:this.handleSelectYear,changecalendar:this.handleCalendarChange}}):"month"===t?e(an,{attrs:{disabledCalendarChanger:this.disabledCalendarChanger,calendar:n,getCellClasses:this.getMonthClasses},on:{select:this.handleSelectMonth,changepanel:this.handelPanelChange,changecalendar:this.handleCalendarChange}}):e(Kt,{attrs:{disabledCalendarChanger:this.disabledCalendarChanger,calendar:n,getCellClasses:this.getDateClasses,getRowClasses:this.getWeekState,titleFormat:this.titleFormat,showWeekNumber:"boolean"===typeof this.showWeekNumber?this.showWeekNumber:"week"===this.type},class:oe({},"".concat(this.prefixClass,"-calendar-week-mode"),"week"===this.type),on:{select:this.handleSelectDate,changepanel:this.handelPanelChange,changecalendar:this.handleCalendarChange}})}},vn={name:"CalendarRange",components:{CalendarPanel:mn},provide:function(){return{onDateMouseEnter:this.onDateMouseEnter,onDateMouseLeave:this.onDateMouseLeave}},inject:{prefixClass:{default:"mx"}},props:ue({},mn.props),data:function(){return{innerValue:[],calendars:[],hoveredValue:null}},computed:{calendarMinDiff:function(){var e={date:1,month:12,year:120};return e[this.type]||e.date},calendarMaxDiff:function(){return 1/0},defaultValues:function(){return Array.isArray(this.defaultValue)?this.defaultValue:[this.defaultValue,this.defaultValue]}},watch:{value:{immediate:!0,handler:function(){var e=this;this.innerValue=Ee(this.value)?this.value:[new Date(NaN),new Date(NaN)];var t=this.innerValue.map((function(t,n){return Te(Oe(t,e.defaultValues[n]))}));this.updateCalendars(t)}}},methods:{handleSelect:function(e,t){var n=he(this.innerValue,2),r=n[0],i=n[1];ke(r)&&!ke(i)?(r.getTime()>e.getTime()?this.innerValue=[e,r]:this.innerValue=[r,e],this.emitDate(this.innerValue,t)):this.innerValue=[e,new Date(NaN)]},onDateMouseEnter:function(e){this.hoveredValue=e},onDateMouseLeave:function(){this.hoveredValue=null},emitDate:function(e,t){this.$emit("select",e,t)},updateStartCalendar:function(e){this.updateCalendars([e,this.calendars[1]],1)},updateEndCalendar:function(e){this.updateCalendars([this.calendars[0],e],0)},updateCalendars:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.getCalendarGap(e);if(n){var r=new Date(e[t]);r.setMonth(r.getMonth()+(0===t?-n:n)),e[t]=r}this.calendars=e},getCalendarGap:function(e){var t=he(e,2),n=t[0],r=t[1],i=r.getFullYear()-n.getFullYear(),a=r.getMonth()-n.getMonth(),o=12*i+a,s=this.calendarMinDiff,l=this.calendarMaxDiff;return o<s?s-o:o>l?l-o:0},getRangeClasses:function(e,t,n){var r=[].concat(this.getClasses(e,t,n));if(/disabled|active/.test(n))return r;var i=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e.getTime()},r=n(e),i=t.map(n),a=he(i,2),o=a[0],s=a[1];if(o>s){var l=[s,o];o=l[0],s=l[1]}return r>o&&r<s};return 2===t.length&&i(e,t)?r.concat("in-range"):1===t.length&&this.hoveredValue&&i(e,[t[0],this.hoveredValue])?r.concat("hover-in-range"):r}},render:function(){var e=this,t=arguments[0],n=this.calendars.map((function(n,r){var i=ue({},e.$props,{calendar:n,value:e.innerValue,defaultValue:e.defaultValues[r],getClasses:e.getRangeClasses,partialUpdate:!1}),a={select:e.handleSelect,"update:calendar":0===r?e.updateStartCalendar:e.updateEndCalendar};return t("calendar-panel",{props:ue({},i),on:ue({},a)})})),r=this.prefixClass;return t("div",{class:"".concat(r,"-range-wrapper")},[n])}};function gn(){if("undefined"===typeof window)return 0;if(void 0!==nt)return nt;var e=document.createElement("div");e.style.visibility="hidden",e.style.overflow="scroll",e.style.width="100px",e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e);var t=document.createElement("div");return t.style.width="100%",e.appendChild(t),nt=e.offsetWidth-t.offsetWidth,e.parentNode.removeChild(e),nt}var yn={inject:{prefixClass:{default:"mx"}},data:function(){return{scrollbarWidth:0,thumbTop:"",thumbHeight:""}},created:function(){this.scrollbarWidth=gn(),document.addEventListener("mouseup",this.handleDragend)},beforeDestroy:function(){document.addEventListener("mouseup",this.handleDragend)},mounted:function(){this.$nextTick(this.getThumbSize)},methods:{getThumbSize:function(){var e=this.$refs.wrap;if(e){var t=100*e.clientHeight/e.scrollHeight;this.thumbHeight=t<100?"".concat(t,"%"):""}},handleScroll:function(e){var t=e.currentTarget,n=t.scrollHeight,r=t.scrollTop;this.thumbTop="".concat(100*r/n,"%")},handleDragstart:function(e){e.stopImmediatePropagation(),this._draggable=!0;var t=this.$refs.thumb.offsetTop;this._prevY=e.clientY-t,document.addEventListener("mousemove",this.handleDraging)},handleDraging:function(e){if(this._draggable){var t=e.clientY,n=this.$refs.wrap,r=n.scrollHeight,i=n.clientHeight,a=t-this._prevY,o=a*r/i;n.scrollTop=o}},handleDragend:function(){this._draggable&&(this._draggable=!1,document.removeEventListener("mousemove",this.handleDraging))}}},bn=yn,xn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.prefixClass+"-scrollbar",style:{position:"relative",overflow:"hidden"}},[n("div",{ref:"wrap",class:e.prefixClass+"-scrollbar-wrap",style:{marginRight:"-"+e.scrollbarWidth+"px"},on:{scroll:e.handleScroll}},[e._t("default")],2),e._v(" "),n("div",{class:e.prefixClass+"-scrollbar-track"},[n("div",{ref:"thumb",class:e.prefixClass+"-scrollbar-thumb",style:{height:e.thumbHeight,top:e.thumbTop},on:{mousedown:e.handleDragstart}})])])},wn=[],_n=void 0,Cn=void 0,Sn=void 0,Nn=!1,kn=tt({render:xn,staticRenderFns:wn},_n,bn,Cn,Nn,Sn,!1,void 0,void 0,void 0),En=function(e){return e=parseInt(e,10),e<10?"0".concat(e):"".concat(e)},Mn=function(e,t,n){if(Array.isArray(n))return n.filter((function(t){return t>=0&&t<e}));t<=0&&(t=1);for(var r=[],i=0;i<e;i+=t)r.push(i);return r},On=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(r<=0)requestAnimationFrame((function(){t.scrollTop=n}));else{var i=n-t.scrollTop,a=i/r*10;requestAnimationFrame((function(){var i=t.scrollTop+a;i>=n?t.scrollTop=n:(t.scrollTop=i,e(t,n,r-10))}))}},Dn={name:"ListColumns",components:{ScrollbarVertical:kn},inject:{prefixClass:{default:"mx"}},props:{date:Date,scrollDuration:{type:Number,default:100},getClasses:{type:Function,default:function(){return[]}},hourOptions:Array,minuteOptions:Array,secondOptions:Array,showHour:{type:Boolean,default:!0},showMinute:{type:Boolean,default:!0},showSecond:{type:Boolean,default:!0},hourStep:{type:Number,default:1},minuteStep:{type:Number,default:1},secondStep:{type:Number,default:1},use12h:{type:Boolean,default:!1}},computed:{columns:function(){var e=[];return this.showHour&&e.push({type:"hour",list:this.getHoursList()}),this.showMinute&&e.push({type:"minute",list:this.getMinutesList()}),this.showSecond&&e.push({type:"second",list:this.getSecondsList()}),this.use12h&&e.push({type:"ampm",list:this.getAMPMList()}),e.filter((function(e){return e.list.length>0}))}},watch:{date:{handler:function(){var e=this;this.$nextTick((function(){e.scrollToSelected(e.scrollDuration)}))}}},mounted:function(){this.scrollToSelected(0)},methods:{getHoursList:function(){var e=this;return Mn(this.use12h?12:24,this.hourStep,this.hourOptions).map((function(t){var n=new Date(e.date),r=En(t);e.use12h&&(0===t&&(r="12"),n.getHours()>=12&&(t+=12));var i=n.setHours(t);return{value:i,text:r}}))},getMinutesList:function(){var e=this;return Mn(60,this.minuteStep,this.minuteOptions).map((function(t){var n=new Date(e.date).setMinutes(t);return{value:n,text:En(t)}}))},getSecondsList:function(){var e=this;return Mn(60,this.secondStep,this.secondOptions).map((function(t){var n=new Date(e.date).setSeconds(t);return{value:n,text:En(t)}}))},getAMPMList:function(){var e=this;return["AM","PM"].map((function(t,n){var r=new Date(e.date),i=r.setHours(r.getHours()%12+12*n);return{text:t,value:i}}))},scrollToSelected:function(e){for(var t=this.$el.querySelectorAll(".active"),n=0;n<t.length;n++){var r=t[n],i=Qe(r,this.$el);if(i){var a=r.offsetTop;On(i,a,e)}}},handleSelect:function(e){var t=e.target,n=e.currentTarget;if("LI"===t.tagName.toUpperCase()){var r=n.getAttribute("data-type"),i=parseInt(n.getAttribute("data-index"),10),a=parseInt(t.getAttribute("data-index"),10),o=this.columns[i].list[a].value;this.$emit("select",o,r)}}}},Tn=Dn,An=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.prefixClass+"-time-columns"},e._l(e.columns,(function(t,r){return n("scrollbar-vertical",{key:r,class:e.prefixClass+"-time-column"},[n("ul",{class:e.prefixClass+"-time-list",attrs:{"data-type":t.type,"data-index":r},on:{click:e.handleSelect}},e._l(t.list,(function(r,i){return n("li",{key:r.value,class:[e.prefixClass+"-time-item",e.getClasses(r.value,t.type)],attrs:{"data-index":i}},[e._v("\n "+e._s(r.text)+"\n ")])})),0)])})),1)},In=[],$n=void 0,Pn=void 0,jn=void 0,Fn=!1,Bn=tt({render:An,staticRenderFns:In},$n,Tn,Pn,Fn,jn,!1,void 0,void 0,void 0);function Ln(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split(":");if(t.length>=2){var n=parseInt(t[0],10),r=parseInt(t[1],10);return{hours:n,minutes:r}}return null}var zn=function(e,t){e&&(e.scrollTop=t)},Rn={name:"ListOptions",components:{ScrollbarVertical:kn},inject:{getLocale:{default:function(){return Ke}},prefixClass:{default:"mx"}},props:{date:Date,options:{type:[Object,Function],default:function(){return[]}},format:{type:String,default:"HH:mm:ss"},getClasses:{type:Function,default:function(){return[]}}},computed:{list:function(){var e=[],t=this.options;if("function"===typeof t)return t()||[];var n=Ln(t.start),r=Ln(t.end),i=Ln(t.step),a=t.format||this.format;if(n&&r&&i)for(var o=n.minutes+60*n.hours,s=r.minutes+60*r.hours,l=i.minutes+60*i.hours,u=Math.floor((s-o)/l),c=0;c<=u;c++){var d=o+c*l,h=Math.floor(d/60),f=d%60,p=new Date(this.date).setHours(h,f,0);e.push({value:p,text:this.formatDate(p,a)})}return e}},mounted:function(){this.scrollToSelected()},methods:{formatDate:function(e,t){return g(e,t,{locale:this.getLocale().formatLocale})},scrollToSelected:function(){var e=this.$el.querySelector(".active");if(e){var t=Qe(e,this.$el);if(t){var n=e.offsetTop;zn(t,n)}}},handleSelect:function(e){this.$emit("select",e,"time")}}},Vn=Rn,qn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("scrollbar-vertical",e._l(e.list,(function(t){return n("div",{key:t.value,class:[e.prefixClass+"-time-option",e.getClasses(t.value)],on:{click:function(n){return e.handleSelect(t.value)}}},[e._v("\n "+e._s(t.text)+"\n ")])})),0)},Hn=[],Un=void 0,Wn=void 0,Yn=void 0,Gn=!1,Kn=tt({render:qn,staticRenderFns:Hn},Un,Vn,Wn,Gn,Yn,!1,void 0,void 0,void 0),Xn={name:"TimePanel",components:{ListColumns:Bn,ListOptions:Kn},inject:{getLocale:{default:function(){return Ke}},prefixClass:{default:"mx"}},props:{value:{},defaultValue:{default:function(){var e=new Date;return e.setHours(0,0,0,0),e}},format:{default:"HH:mm:ss"},timeTitleFormat:{type:String,default:"YYYY-MM-DD"},showTimeHeader:{type:Boolean,default:!1},disabledTime:{type:Function,default:function(){return!1}},timePickerOptions:{type:[Object,Function],default:function(){return null}},hourOptions:Array,minuteOptions:Array,secondOptions:Array,hourStep:{type:Number,default:1},minuteStep:{type:Number,default:1},secondStep:{type:Number,default:1},showHour:{type:Boolean,default:void 0},showMinute:{type:Boolean,default:void 0},showSecond:{type:Boolean,default:void 0},use12h:{type:Boolean,default:void 0},scrollDuration:{type:Number,default:100}},data:function(){return{innerValue:Oe(this.value,this.defaultValue)}},computed:{title:function(){var e=this.timeTitleFormat,t=new Date(this.innerValue);return this.formatDate(t,e)},innerForamt:function(){return"string"===typeof this.format?this.format:"HH:mm:ss"},ShowHourMinuteSecondAMPM:function(){var e=this,t=this.innerForamt,n={showHour:/[HhKk]/.test(t),showMinute:/m/.test(t),showSecond:/s/.test(t),use12h:/a/i.test(t)},r={};return Object.keys(n).forEach((function(t){r[t]="boolean"===typeof e[t]?e[t]:n[t]})),r}},watch:{value:{immediate:!0,handler:function(){this.innerValue=Oe(this.value,this.defaultValue)}}},methods:{formatDate:function(e,t){return g(e,t,{locale:this.getLocale().formatLocale})},isDisabledTime:function(e){return this.disabledTime(new Date(e))},isDisabledHour:function(e){var t=new Date(e);return this.isDisabledTime(t)&&this.isDisabledTime(t.setMinutes(0,0,0))&&this.isDisabledTime(t.setMinutes(59,59,999))},isDisabledMinute:function(e){var t=new Date(e);return this.isDisabledTime(t)&&this.isDisabledTime(t.setSeconds(0,0))&&this.isDisabledTime(t.setSeconds(59,999))},isDisabledAMPM:function(e){var t=new Date(e),n=t.getHours()<12?0:12,r=n+11;return this.isDisabledTime(t)&&this.isDisabledTime(t.setHours(n,0,0,0))&&this.isDisabledTime(t.setHours(r,59,59,999))},isDisabled:function(e,t){return"hour"===t?this.isDisabledHour(e):"minute"===t?this.isDisabledMinute(e):"ampm"===t?this.isDisabledAMPM(e):this.isDisabledTime(e)},handleSelect:function(e,t){var n=new Date(e);this.isDisabled(e,t)||(this.innerValue=n,this.isDisabledTime(n)||this.$emit("select",n,t))},handleClickTitle:function(){this.$emit("clicktitle")},getClasses:function(e,t){var n=new Date(e);return this.isDisabled(e,t)?"disabled":n.getTime()===this.innerValue.getTime()?"active":""}}},Zn=Xn,Jn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.prefixClass+"-time"},[e.showTimeHeader?n("div",{class:e.prefixClass+"-time-header"},[n("button",{class:e.prefixClass+"-btn "+e.prefixClass+"-btn-text "+e.prefixClass+"-time-header-title",attrs:{type:"button"},on:{click:e.handleClickTitle}},[e._v("\n "+e._s(e.title)+"\n ")])]):e._e(),e._v(" "),n("div",{class:e.prefixClass+"-time-content"},[e.timePickerOptions?n("list-options",{attrs:{date:e.innerValue,"get-classes":e.getClasses,options:e.timePickerOptions,format:e.innerForamt},on:{select:e.handleSelect}}):n("list-columns",e._b({attrs:{date:e.innerValue,"get-classes":e.getClasses,"hour-options":e.hourOptions,"minute-options":e.minuteOptions,"second-options":e.secondOptions,"hour-step":e.hourStep,"minute-step":e.minuteStep,"second-step":e.secondStep,"scroll-duration":e.scrollDuration},on:{select:e.handleSelect}},"list-columns",e.ShowHourMinuteSecondAMPM,!1))],1)])},Qn=[],er=void 0,tr=void 0,nr=void 0,rr=!1,ir=tt({render:Jn,staticRenderFns:Qn},er,Zn,tr,rr,nr,!1,void 0,void 0,void 0),ar={name:"TimeRange",inject:{prefixClass:{default:"mx"}},props:ue({},ir.props),data:function(){return{startValue:new Date(NaN),endValue:new Date(NaN)}},watch:{value:{immediate:!0,handler:function(){if(Ee(this.value)){var e=he(this.value,2),t=e[0],n=e[1];this.startValue=t,this.endValue=n}else this.startValue=new Date(NaN),this.endValue=new Date(NaN)}}},methods:{emitChange:function(e,t){var n=[this.startValue,this.endValue];this.$emit("select",n,"time"===e?"time-range":e,t)},handleSelectStart:function(e,t){this.startValue=e,this.endValue.getTime()>=e.getTime()||(this.endValue=e),this.emitChange(t,0)},handleSelectEnd:function(e,t){this.endValue=e,this.startValue.getTime()<=e.getTime()||(this.startValue=e),this.emitChange(t,1)},disabledStartTime:function(e){return this.disabledTime(e,0)},disabledEndTime:function(e){return e.getTime()<this.startValue.getTime()||this.disabledTime(e,1)}},render:function(){var e=arguments[0],t=Array.isArray(this.defaultValue)?this.defaultValue:[this.defaultValue,this.defaultValue],n=this.prefixClass;return e("div",{class:"".concat(n,"-range-wrapper")},[e(ir,{props:ue({},ue({},this.$props,{value:this.startValue,defaultValue:t[0],disabledTime:this.disabledStartTime})),on:ue({},ue({},this.$listeners,{select:this.handleSelectStart}))}),e(ir,{props:ue({},ue({},this.$props,{value:this.endValue,defaultValue:t[1],disabledTime:this.disabledEndTime})),on:ue({},ue({},this.$listeners,{select:this.handleSelectEnd}))})])}},or={name:"DatetimePanel",inject:{prefixClass:{default:"mx"}},emits:["select","update:show-time-panel"],props:ue({},mn.props,{},ir.props,{showTimePanel:{type:Boolean,default:void 0}}),data:function(){return{defaultTimeVisible:!1,currentValue:this.value}},computed:{timeVisible:function(){return"boolean"===typeof this.showTimePanel?this.showTimePanel:this.defaultTimeVisible}},watch:{value:function(e){this.currentValue=e}},methods:{closeTimePanel:function(){this.defaultTimeVisible=!1,this.$emit("update:show-time-panel",!1)},openTimePanel:function(){this.defaultTimeVisible=!0,this.$emit("update:show-time-panel",!0)},emitDate:function(e,t){this.$emit("select",e,t)},handleSelect:function(e,t){"date"===t&&this.openTimePanel();var n=je(e,Oe(this.value,this.defaultValue));this.disabledTime(new Date(n))&&(n=je(e,this.defaultValue),this.disabledTime(new Date(n)))?this.currentValue=n:this.emitDate(n,t)}},render:function(){var e=arguments[0],t={props:ue({},Le(this.$props,Object.keys(mn.props)),{type:"date",value:this.currentValue}),on:{select:this.handleSelect}},n={props:ue({},Le(this.$props,Object.keys(ir.props)),{showTimeHeader:!0,value:this.currentValue}),on:{select:this.emitDate,clicktitle:this.closeTimePanel}},r=this.prefixClass;return e("div",[e(mn,Se([{},t])),this.timeVisible&&e(ir,Se([{class:"".concat(r,"-calendar-time")},n]))])}},sr={name:"DatetimeRange",inject:{prefixClass:{default:"mx"}},emits:["select","update:show-time-panel"],props:ue({},vn.props,{},ar.props,{showTimePanel:{type:Boolean,default:void 0}}),data:function(){return{defaultTimeVisible:!1,currentValue:this.value}},computed:{timeVisible:function(){return"boolean"===typeof this.showTimePanel?this.showTimePanel:this.defaultTimeVisible}},watch:{value:function(e){this.currentValue=e}},methods:{closeTimePanel:function(){this.defaultTimeVisible=!1,this.$emit("update:show-time-panel",!1)},openTimePanel:function(){this.defaultTimeVisible=!0,this.$emit("update:show-time-panel",!0)},emitDate:function(e,t){this.$emit("select",e,t)},handleSelect:function(e,t){var n=this;"date"===t&&this.openTimePanel();var r=Array.isArray(this.defaultValue)?this.defaultValue:[this.defaultValue,this.defaultValue],i=e.map((function(e,t){var i=Ee(n.value)?n.value[t]:r[t];return je(e,i)}));i[1].getTime()<i[0].getTime()&&(i=[i[0],i[0]]),i.some(this.disabledTime)&&(i=e.map((function(e,t){return je(e,r[t])})),i.some(this.disabledTime))?this.currentValue=i:this.emitDate(i,t)}},render:function(){var e=arguments[0],t={props:ue({},Le(this.$props,Object.keys(vn.props)),{type:"date",value:this.currentValue}),on:{select:this.handleSelect}},n={props:ue({},Le(this.$props,Object.keys(ar.props)),{value:this.currentValue,showTimeHeader:!0}),on:{select:this.emitDate,clicktitle:this.closeTimePanel}},r=this.prefixClass;return e("div",[e(vn,Se([{},t])),this.timeVisible&&e(ar,Se([{class:"".concat(r,"-calendar-time")},n]))])}},lr={default:mn,time:ir,datetime:or},ur={default:vn,time:ar,datetime:sr},cr={name:"DatePicker",provide:function(){var e=this;return{getLocale:function(){return e.locale},getWeek:this.getWeek,prefixClass:this.prefixClass,dispatchDatePicker:this.$emit.bind(this)}},props:ue({},or.props,{value:{},valueType:{type:String,default:"date"},type:{type:String,default:"date"},format:{type:String},formatter:{type:Object},range:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},rangeSeparator:{type:String},lang:{type:[String,Object]},placeholder:{type:String,default:""},editable:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},prefixClass:{type:String,default:"mx"},inputClass:{},inputAttr:{type:Object,default:function(){return{}}},appendToBody:{type:Boolean,default:!0},open:{type:Boolean,default:void 0},popupClass:{},popupStyle:{type:Object,default:function(){return{}}},inline:{type:Boolean,default:!1},confirm:{type:Boolean,default:!1},confirmText:{type:String,default:"OK"},renderInputText:{type:Function},shortcuts:{type:Array,validator:function(e){return Array.isArray(e)&&e.every((function(e){return Be(e)&&"string"===typeof e.text&&"function"===typeof e.onClick}))},default:function(){return[]}}}),data:function(){return{currentValue:null,userInput:null,defaultOpen:!1}},computed:{popupVisible:function(){return!this.disabled&&("boolean"===typeof this.open?this.open:this.defaultOpen)},innerRangeSeparator:function(){return this.rangeSeparator||(this.multiple?",":" ~ ")},innerFormat:function(){var e={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss",year:"YYYY",month:"YYYY-MM",time:"HH:mm:ss",week:"w"};return this.format||e[this.type]||e.date},innerValue:function(){var e=this.value;return this.validMultipleType?(e=Array.isArray(e)?e:[],e.map(this.value2date)):this.range?(e=Array.isArray(e)?e.slice(0,2):[null,null],e.map(this.value2date)):this.value2date(e)},text:function(){var e=this;return null!==this.userInput?this.userInput:"function"===typeof this.renderInputText?this.renderInputText(this.innerValue):this.isValidValue(this.innerValue)?Array.isArray(this.innerValue)?this.innerValue.map((function(t){return e.formatDate(t)})).join(this.innerRangeSeparator):this.formatDate(this.innerValue):""},showClearIcon:function(){return!this.disabled&&this.clearable&&this.text},locale:function(){return Be(this.lang)?ze(Ke(),this.lang):Ke(this.lang)},validMultipleType:function(){var e=["date","month","year"];return this.multiple&&!this.range&&-1!==e.indexOf(this.type)}},watch:{innerValue:{immediate:!0,handler:function(e){this.currentValue=e}},popupVisible:{handler:function(e){e&&(this.currentValue=this.innerValue)}}},created:function(){"object"===ae(this.format)&&console.warn("[vue2-datepicker]: The prop `format` don't support Object any more. You can use the new prop `formatter` to replace it")},methods:{handleClickOutSide:function(e){var t=e.target;this.$el.contains(t)||this.closePopup()},getFormatter:function(e){return Be(this.formatter)&&this.formatter[e]||Be(this.format)&&this.format[e]},getWeek:function(e,t){return"function"===typeof this.getFormatter("getWeek")?this.getFormatter("getWeek")(e,t):l(e,t)},parseDate:function(e,t){if(t=t||this.innerFormat,"function"===typeof this.getFormatter("parse"))return this.getFormatter("parse")(e,t);var n=new Date;return ie(e,t,{locale:this.locale.formatLocale,backupDate:n})},formatDate:function(e,t){return t=t||this.innerFormat,"function"===typeof this.getFormatter("stringify")?this.getFormatter("stringify")(e,t):g(e,t,{locale:this.locale.formatLocale})},value2date:function(e){switch(this.valueType){case"date":return e instanceof Date?new Date(e.getTime()):new Date(NaN);case"timestamp":return"number"===typeof e?new Date(e):new Date(NaN);case"format":return"string"===typeof e?this.parseDate(e):new Date(NaN);default:return"string"===typeof e?this.parseDate(e,this.valueType):new Date(NaN)}},date2value:function(e){if(!ke(e))return null;switch(this.valueType){case"date":return e;case"timestamp":return e.getTime();case"format":return this.formatDate(e);default:return this.formatDate(e,this.valueType)}},emitValue:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this.userInput=null;var r=Array.isArray(e)?e.map(this.date2value):this.date2value(e);return this.$emit("input",r),this.$emit("change",r,t),n&&this.closePopup(),r},isValidValue:function(e){return this.validMultipleType?Me(e):this.range?Ee(e):ke(e)},isValidValueAndNotDisabled:function(e){if(!this.isValidValue(e))return!1;var t="function"===typeof this.disabledDate?this.disabledDate:function(){return!1},n="function"===typeof this.disabledTime?this.disabledTime:function(){return!1};return Array.isArray(e)||(e=[e]),e.every((function(e){return!t(e)&&!n(e)}))},handleMultipleDates:function(e,t){if(this.validMultipleType&&t){var n=t.filter((function(t){return t.getTime()!==e.getTime()}));return n.length===t.length&&n.push(e),n}return e},handleSelectDate:function(e,t,n){e=this.handleMultipleDates(e,n),this.confirm?this.currentValue=e:this.emitValue(e,t,!this.validMultipleType&&(t===this.type||"time"===t))},clear:function(){this.emitValue(this.range?[null,null]:null),this.$emit("clear")},handleClear:function(e){e.stopPropagation(),this.clear()},handleConfirmDate:function(){var e=this.emitValue(this.currentValue);this.$emit("confirm",e)},handleSelectShortcut:function(e){var t=e.currentTarget.getAttribute("data-index"),n=this.shortcuts[parseInt(t,10)];if(Be(n)&&"function"===typeof n.onClick){var r=n.onClick(this);r&&this.emitValue(r)}},openPopup:function(e){this.popupVisible||this.disabled||(this.defaultOpen=!0,this.$emit("open",e),this.$emit("update:open",!0))},closePopup:function(){this.popupVisible&&(this.defaultOpen=!1,this.$emit("close"),this.$emit("update:open",!1))},blur:function(){this.$refs.input&&this.$refs.input.blur()},focus:function(){this.$refs.input&&this.$refs.input.focus()},handleInputChange:function(){var e=this;if(this.editable&&null!==this.userInput){var t=this.userInput.trim();if(this.userInput=null,""!==t){var n;if(this.validMultipleType)n=t.split(this.innerRangeSeparator).map((function(t){return e.parseDate(t.trim())}));else if(this.range){var r=t.split(this.innerRangeSeparator);2!==r.length&&(r=t.split(this.innerRangeSeparator.trim())),n=r.map((function(t){return e.parseDate(t.trim())}))}else n=this.parseDate(t);this.isValidValueAndNotDisabled(n)?(this.emitValue(n),this.blur()):this.$emit("input-error",t)}else this.clear()}},handleInputInput:function(e){this.userInput="string"===typeof e?e:e.target.value},handleInputKeydown:function(e){var t=e.keyCode;9===t?this.closePopup():13===t&&this.handleInputChange()},handleInputBlur:function(e){this.$emit("blur",e)},handleInputFocus:function(e){this.openPopup(e),this.$emit("focus",e)},hasSlot:function(e){return!(!this.$slots[e]&&!this.$scopedSlots[e])},renderSlot:function(e,t,n){var r=this.$scopedSlots[e];return r?r(n)||t:this.$slots[e]||t},renderInput:function(){var e=this.$createElement,t=this.prefixClass,n=ue({name:"date",type:"text",autocomplete:"off",value:this.text,class:this.inputClass||"".concat(this.prefixClass,"-input"),readonly:!this.editable,disabled:this.disabled,placeholder:this.placeholder},this.inputAttr),r=n.value,i=n.class,a=de(n,["value","class"]),o={keydown:this.handleInputKeydown,focus:this.handleInputFocus,blur:this.handleInputBlur,input:this.handleInputInput,change:this.handleInputChange},s=this.renderSlot("input",e("input",{domProps:{value:r},class:i,attrs:ue({},a),on:ue({},o),ref:"input"}),{props:n,events:o}),l="time"===this.type?e(St):e(gt);return e("div",{class:"".concat(t,"-input-wrapper"),on:{mousedown:this.openPopup,touchstart:this.openPopup}},[s,this.showClearIcon?e("i",{class:"".concat(t,"-icon-clear"),on:{mousedown:this.handleClear,touchstart:this.handleClear}},[this.renderSlot("icon-clear",e(Tt))]):null,e("i",{class:"".concat(t,"-icon-calendar")},[this.renderSlot("icon-calendar",l)])])},renderContent:function(){var e=this.$createElement,t=this.range?ur:lr,n=t[this.type]||t.default,r=ue({},Le(this.$props,Object.keys(n.props)),{value:this.currentValue}),i=ue({},Le(this.$listeners,n.emits||[]),{select:this.handleSelectDate}),a=e(n,Se([{},{props:r,on:i,ref:"picker"}]));return e("div",{class:"".concat(this.prefixClass,"-datepicker-body")},[this.renderSlot("content",a,{value:this.currentValue,emit:this.handleSelectDate})])},renderSidebar:function(){var e=this,t=this.$createElement,n=this.prefixClass;return t("div",{class:"".concat(n,"-datepicker-sidebar")},[this.renderSlot("sidebar",null,{value:this.currentValue,emit:this.handleSelectDate}),this.shortcuts.map((function(r,i){return t("button",{key:i,attrs:{"data-index":i,type:"button"},class:"".concat(n,"-btn ").concat(n,"-btn-text ").concat(n,"-btn-shortcut"),on:{click:e.handleSelectShortcut}},[r.text])}))])},renderHeader:function(){var e=this.$createElement;return e("div",{class:"".concat(this.prefixClass,"-datepicker-header")},[this.renderSlot("header",null,{value:this.currentValue,emit:this.handleSelectDate})])},renderFooter:function(){var e=this.$createElement,t=this.prefixClass;return e("div",{class:"".concat(t,"-datepicker-footer")},[this.renderSlot("footer",null,{value:this.currentValue,emit:this.handleSelectDate}),this.confirm?e("button",{attrs:{type:"button"},class:"".concat(t,"-btn ").concat(t,"-datepicker-btn-confirm"),on:{click:this.handleConfirmDate}},[this.confirmText]):null])}},render:function(){var e,t=arguments[0],n=this.prefixClass,r=this.inline,i=this.disabled,a=this.hasSlot("sidebar")||this.shortcuts.length?this.renderSidebar():null,o=t("div",{class:"".concat(n,"-datepicker-content")},[this.hasSlot("header")?this.renderHeader():null,this.renderContent(),this.hasSlot("footer")||this.confirm?this.renderFooter():null]);return t("div",{class:(e={},oe(e,"".concat(n,"-datepicker"),!0),oe(e,"".concat(n,"-datepicker-range"),this.range),oe(e,"".concat(n,"-datepicker-inline"),r),oe(e,"disabled",i),e)},[r?null:this.renderInput(),r?t("div",{class:"".concat(n,"-datepicker-main")},[a,o]):t(ct,{ref:"popup",class:this.popupClass,style:this.popupStyle,attrs:{visible:this.popupVisible,appendToBody:this.appendToBody},on:{clickoutside:this.handleClickOutSide}},[a,o])])}};cr.locale=Ge,cr.install=function(e){e.component(cr.name,cr)},"undefined"!==typeof window&&window.Vue&&cr.install(window.Vue),se(cr,{CalendarPanel:mn,CalendarRange:vn,TimePanel:ir,TimeRange:ar,DatetimePanel:or,DatetimeRange:sr});var dr=cr},4339:function(e,t,n){(function(t,r){e.exports=r(n(796))})(0,(function(e){"use strict";function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function n(e,t){return t={exports:{}},e(t,t.exports),t.exports}e=e&&e.hasOwnProperty("default")?e["default"]:e;var r=n((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var n={months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthsShort:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],weekdays:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],weekdaysShort:["周日","周一","周二","周三","周四","周五","周六"],weekdaysMin:["日","一","二","三","四","五","六"],firstDayOfWeek:1,firstWeekContainsDate:4,meridiemParse:/上午|下午/,meridiem:function(e){return e<12?"上午":"下午"},isPM:function(e){return"下午"===e}},r=n;t["default"]=r,e.exports=t.default})),i=t(r),a={formatLocale:i,yearFormat:"YYYY年",monthFormat:"MMM",monthBeforeYear:!1};return e.locale("zh-cn",a),a}))},144:function(e,t,n){"use strict";n.r(t);
|
|
40
|
+
/*!
|
|
41
|
+
* Vue.js v2.6.14
|
|
42
|
+
* (c) 2014-2021 Evan You
|
|
43
|
+
* Released under the MIT License.
|
|
44
|
+
*/
|
|
45
|
+
var r=Object.freeze({});function i(e){return void 0===e||null===e}function a(e){return void 0!==e&&null!==e}function o(e){return!0===e}function s(e){return!1===e}function l(e){return"string"===typeof e||"number"===typeof e||"symbol"===typeof e||"boolean"===typeof e}function u(e){return null!==e&&"object"===typeof e}var c=Object.prototype.toString;function d(e){return"[object Object]"===c.call(e)}function h(e){return"[object RegExp]"===c.call(e)}function f(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function p(e){return a(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function m(e){return null==e?"":Array.isArray(e)||d(e)&&e.toString===c?JSON.stringify(e,null,2):String(e)}function v(e){var t=parseFloat(e);return isNaN(t)?e:t}function g(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}g("slot,component",!0);var y=g("key,ref,slot,slot-scope,is");function b(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}var x=Object.prototype.hasOwnProperty;function w(e,t){return x.call(e,t)}function _(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}var C=/-(\w)/g,S=_((function(e){return e.replace(C,(function(e,t){return t?t.toUpperCase():""}))})),N=_((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),k=/\B([A-Z])/g,E=_((function(e){return e.replace(k,"-$1").toLowerCase()}));function M(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function O(e,t){return e.bind(t)}var D=Function.prototype.bind?O:M;function T(e,t){t=t||0;var n=e.length-t,r=new Array(n);while(n--)r[n]=e[n+t];return r}function A(e,t){for(var n in t)e[n]=t[n];return e}function I(e){for(var t={},n=0;n<e.length;n++)e[n]&&A(t,e[n]);return t}function $(e,t,n){}var P=function(e,t,n){return!1},j=function(e){return e};function F(e,t){if(e===t)return!0;var n=u(e),r=u(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var i=Array.isArray(e),a=Array.isArray(t);if(i&&a)return e.length===t.length&&e.every((function(e,n){return F(e,t[n])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(i||a)return!1;var o=Object.keys(e),s=Object.keys(t);return o.length===s.length&&o.every((function(n){return F(e[n],t[n])}))}catch(l){return!1}}function B(e,t){for(var n=0;n<e.length;n++)if(F(e[n],t))return n;return-1}function L(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var z="data-server-rendered",R=["component","directive","filter"],V=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],q={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:P,isReservedAttr:P,isUnknownElement:P,getTagNamespace:$,parsePlatformTagName:j,mustUseProp:P,async:!0,_lifecycleHooks:V},H=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function U(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function W(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var Y=new RegExp("[^"+H.source+".$_\\d]");function G(e){if(!Y.test(e)){var t=e.split(".");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}var K,X="__proto__"in{},Z="undefined"!==typeof window,J="undefined"!==typeof WXEnvironment&&!!WXEnvironment.platform,Q=J&&WXEnvironment.platform.toLowerCase(),ee=Z&&window.navigator.userAgent.toLowerCase(),te=ee&&/msie|trident/.test(ee),ne=ee&&ee.indexOf("msie 9.0")>0,re=ee&&ee.indexOf("edge/")>0,ie=(ee&&ee.indexOf("android"),ee&&/iphone|ipad|ipod|ios/.test(ee)||"ios"===Q),ae=(ee&&/chrome\/\d+/.test(ee),ee&&/phantomjs/.test(ee),ee&&ee.match(/firefox\/(\d+)/)),oe={}.watch,se=!1;if(Z)try{var le={};Object.defineProperty(le,"passive",{get:function(){se=!0}}),window.addEventListener("test-passive",null,le)}catch(No){}var ue=function(){return void 0===K&&(K=!Z&&!J&&"undefined"!==typeof n.g&&(n.g["process"]&&"server"===n.g["process"].env.VUE_ENV)),K},ce=Z&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function de(e){return"function"===typeof e&&/native code/.test(e.toString())}var he,fe="undefined"!==typeof Symbol&&de(Symbol)&&"undefined"!==typeof Reflect&&de(Reflect.ownKeys);he="undefined"!==typeof Set&&de(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var pe=$,me=0,ve=function(){this.id=me++,this.subs=[]};ve.prototype.addSub=function(e){this.subs.push(e)},ve.prototype.removeSub=function(e){b(this.subs,e)},ve.prototype.depend=function(){ve.target&&ve.target.addDep(this)},ve.prototype.notify=function(){var e=this.subs.slice();for(var t=0,n=e.length;t<n;t++)e[t].update()},ve.target=null;var ge=[];function ye(e){ge.push(e),ve.target=e}function be(){ge.pop(),ve.target=ge[ge.length-1]}var xe=function(e,t,n,r,i,a,o,s){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=a,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=o,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},we={child:{configurable:!0}};we.child.get=function(){return this.componentInstance},Object.defineProperties(xe.prototype,we);var _e=function(e){void 0===e&&(e="");var t=new xe;return t.text=e,t.isComment=!0,t};function Ce(e){return new xe(void 0,void 0,void 0,String(e))}function Se(e){var t=new xe(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var Ne=Array.prototype,ke=Object.create(Ne),Ee=["push","pop","shift","unshift","splice","sort","reverse"];Ee.forEach((function(e){var t=Ne[e];W(ke,e,(function(){var n=[],r=arguments.length;while(r--)n[r]=arguments[r];var i,a=t.apply(this,n),o=this.__ob__;switch(e){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2);break}return i&&o.observeArray(i),o.dep.notify(),a}))}));var Me=Object.getOwnPropertyNames(ke),Oe=!0;function De(e){Oe=e}var Te=function(e){this.value=e,this.dep=new ve,this.vmCount=0,W(e,"__ob__",this),Array.isArray(e)?(X?Ae(e,ke):Ie(e,ke,Me),this.observeArray(e)):this.walk(e)};function Ae(e,t){e.__proto__=t}function Ie(e,t,n){for(var r=0,i=n.length;r<i;r++){var a=n[r];W(e,a,t[a])}}function $e(e,t){var n;if(u(e)&&!(e instanceof xe))return w(e,"__ob__")&&e.__ob__ instanceof Te?n=e.__ob__:Oe&&!ue()&&(Array.isArray(e)||d(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new Te(e)),t&&n&&n.vmCount++,n}function Pe(e,t,n,r,i){var a=new ve,o=Object.getOwnPropertyDescriptor(e,t);if(!o||!1!==o.configurable){var s=o&&o.get,l=o&&o.set;s&&!l||2!==arguments.length||(n=e[t]);var u=!i&&$e(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=s?s.call(e):n;return ve.target&&(a.depend(),u&&(u.dep.depend(),Array.isArray(t)&&Be(t))),t},set:function(t){var r=s?s.call(e):n;t===r||t!==t&&r!==r||s&&!l||(l?l.call(e,t):n=t,u=!i&&$e(t),a.notify())}})}}function je(e,t,n){if(Array.isArray(e)&&f(t))return e.length=Math.max(e.length,t),e.splice(t,1,n),n;if(t in e&&!(t in Object.prototype))return e[t]=n,n;var r=e.__ob__;return e._isVue||r&&r.vmCount?n:r?(Pe(r.value,t,n),r.dep.notify(),n):(e[t]=n,n)}function Fe(e,t){if(Array.isArray(e)&&f(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||w(e,t)&&(delete e[t],n&&n.dep.notify())}}function Be(e){for(var t=void 0,n=0,r=e.length;n<r;n++)t=e[n],t&&t.__ob__&&t.__ob__.dep.depend(),Array.isArray(t)&&Be(t)}Te.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)Pe(e,t[n])},Te.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)$e(e[t])};var Le=q.optionMergeStrategies;function ze(e,t){if(!t)return e;for(var n,r,i,a=fe?Reflect.ownKeys(t):Object.keys(t),o=0;o<a.length;o++)n=a[o],"__ob__"!==n&&(r=e[n],i=t[n],w(e,n)?r!==i&&d(r)&&d(i)&&ze(r,i):je(e,n,i));return e}function Re(e,t,n){return n?function(){var r="function"===typeof t?t.call(n,n):t,i="function"===typeof e?e.call(n,n):e;return r?ze(r,i):i}:t?e?function(){return ze("function"===typeof t?t.call(this,this):t,"function"===typeof e?e.call(this,this):e)}:t:e}function Ve(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?qe(n):n}function qe(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}function He(e,t,n,r){var i=Object.create(e||null);return t?A(i,t):i}Le.data=function(e,t,n){return n?Re(e,t,n):t&&"function"!==typeof t?e:Re(e,t)},V.forEach((function(e){Le[e]=Ve})),R.forEach((function(e){Le[e+"s"]=He})),Le.watch=function(e,t,n,r){if(e===oe&&(e=void 0),t===oe&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var i={};for(var a in A(i,e),t){var o=i[a],s=t[a];o&&!Array.isArray(o)&&(o=[o]),i[a]=o?o.concat(s):Array.isArray(s)?s:[s]}return i},Le.props=Le.methods=Le.inject=Le.computed=function(e,t,n,r){if(!e)return t;var i=Object.create(null);return A(i,e),t&&A(i,t),i},Le.provide=Re;var Ue=function(e,t){return void 0===t?e:t};function We(e,t){var n=e.props;if(n){var r,i,a,o={};if(Array.isArray(n)){r=n.length;while(r--)i=n[r],"string"===typeof i&&(a=S(i),o[a]={type:null})}else if(d(n))for(var s in n)i=n[s],a=S(s),o[a]=d(i)?i:{type:i};else 0;e.props=o}}function Ye(e,t){var n=e.inject;if(n){var r=e.inject={};if(Array.isArray(n))for(var i=0;i<n.length;i++)r[n[i]]={from:n[i]};else if(d(n))for(var a in n){var o=n[a];r[a]=d(o)?A({from:a},o):{from:o}}else 0}}function Ge(e){var t=e.directives;if(t)for(var n in t){var r=t[n];"function"===typeof r&&(t[n]={bind:r,update:r})}}function Ke(e,t,n){if("function"===typeof t&&(t=t.options),We(t,n),Ye(t,n),Ge(t),!t._base&&(t.extends&&(e=Ke(e,t.extends,n)),t.mixins))for(var r=0,i=t.mixins.length;r<i;r++)e=Ke(e,t.mixins[r],n);var a,o={};for(a in e)s(a);for(a in t)w(e,a)||s(a);function s(r){var i=Le[r]||Ue;o[r]=i(e[r],t[r],n,r)}return o}function Xe(e,t,n,r){if("string"===typeof n){var i=e[t];if(w(i,n))return i[n];var a=S(n);if(w(i,a))return i[a];var o=N(a);if(w(i,o))return i[o];var s=i[n]||i[a]||i[o];return s}}function Ze(e,t,n,r){var i=t[e],a=!w(n,e),o=n[e],s=nt(Boolean,i.type);if(s>-1)if(a&&!w(i,"default"))o=!1;else if(""===o||o===E(e)){var l=nt(String,i.type);(l<0||s<l)&&(o=!0)}if(void 0===o){o=Je(r,i,e);var u=Oe;De(!0),$e(o),De(u)}return o}function Je(e,t,n){if(w(t,"default")){var r=t.default;return e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n]?e._props[n]:"function"===typeof r&&"Function"!==et(t.type)?r.call(e):r}}var Qe=/^\s*function (\w+)/;function et(e){var t=e&&e.toString().match(Qe);return t?t[1]:""}function tt(e,t){return et(e)===et(t)}function nt(e,t){if(!Array.isArray(t))return tt(t,e)?0:-1;for(var n=0,r=t.length;n<r;n++)if(tt(t[n],e))return n;return-1}function rt(e,t,n){ye();try{if(t){var r=t;while(r=r.$parent){var i=r.$options.errorCaptured;if(i)for(var a=0;a<i.length;a++)try{var o=!1===i[a].call(r,e,t,n);if(o)return}catch(No){at(No,r,"errorCaptured hook")}}}at(e,t,n)}finally{be()}}function it(e,t,n,r,i){var a;try{a=n?e.apply(t,n):e.call(t),a&&!a._isVue&&p(a)&&!a._handled&&(a.catch((function(e){return rt(e,r,i+" (Promise/async)")})),a._handled=!0)}catch(No){rt(No,r,i)}return a}function at(e,t,n){if(q.errorHandler)try{return q.errorHandler.call(null,e,t,n)}catch(No){No!==e&&ot(No,null,"config.errorHandler")}ot(e,t,n)}function ot(e,t,n){if(!Z&&!J||"undefined"===typeof console)throw e;console.error(e)}var st,lt=!1,ut=[],ct=!1;function dt(){ct=!1;var e=ut.slice(0);ut.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!==typeof Promise&&de(Promise)){var ht=Promise.resolve();st=function(){ht.then(dt),ie&&setTimeout($)},lt=!0}else if(te||"undefined"===typeof MutationObserver||!de(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())st="undefined"!==typeof setImmediate&&de(setImmediate)?function(){setImmediate(dt)}:function(){setTimeout(dt,0)};else{var ft=1,pt=new MutationObserver(dt),mt=document.createTextNode(String(ft));pt.observe(mt,{characterData:!0}),st=function(){ft=(ft+1)%2,mt.data=String(ft)},lt=!0}function vt(e,t){var n;if(ut.push((function(){if(e)try{e.call(t)}catch(No){rt(No,t,"nextTick")}else n&&n(t)})),ct||(ct=!0,st()),!e&&"undefined"!==typeof Promise)return new Promise((function(e){n=e}))}var gt=new he;function yt(e){bt(e,gt),gt.clear()}function bt(e,t){var n,r,i=Array.isArray(e);if(!(!i&&!u(e)||Object.isFrozen(e)||e instanceof xe)){if(e.__ob__){var a=e.__ob__.dep.id;if(t.has(a))return;t.add(a)}if(i){n=e.length;while(n--)bt(e[n],t)}else{r=Object.keys(e),n=r.length;while(n--)bt(e[r[n]],t)}}}var xt=_((function(e){var t="&"===e.charAt(0);e=t?e.slice(1):e;var n="~"===e.charAt(0);e=n?e.slice(1):e;var r="!"===e.charAt(0);return e=r?e.slice(1):e,{name:e,once:n,capture:r,passive:t}}));function wt(e,t){function n(){var e=arguments,r=n.fns;if(!Array.isArray(r))return it(r,null,arguments,t,"v-on handler");for(var i=r.slice(),a=0;a<i.length;a++)it(i[a],null,e,t,"v-on handler")}return n.fns=e,n}function _t(e,t,n,r,a,s){var l,u,c,d;for(l in e)u=e[l],c=t[l],d=xt(l),i(u)||(i(c)?(i(u.fns)&&(u=e[l]=wt(u,s)),o(d.once)&&(u=e[l]=a(d.name,u,d.capture)),n(d.name,u,d.capture,d.passive,d.params)):u!==c&&(c.fns=u,e[l]=c));for(l in t)i(e[l])&&(d=xt(l),r(d.name,t[l],d.capture))}function Ct(e,t,n){var r;e instanceof xe&&(e=e.data.hook||(e.data.hook={}));var s=e[t];function l(){n.apply(this,arguments),b(r.fns,l)}i(s)?r=wt([l]):a(s.fns)&&o(s.merged)?(r=s,r.fns.push(l)):r=wt([s,l]),r.merged=!0,e[t]=r}function St(e,t,n){var r=t.options.props;if(!i(r)){var o={},s=e.attrs,l=e.props;if(a(s)||a(l))for(var u in r){var c=E(u);Nt(o,l,u,c,!0)||Nt(o,s,u,c,!1)}return o}}function Nt(e,t,n,r,i){if(a(t)){if(w(t,n))return e[n]=t[n],i||delete t[n],!0;if(w(t,r))return e[n]=t[r],i||delete t[r],!0}return!1}function kt(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}function Et(e){return l(e)?[Ce(e)]:Array.isArray(e)?Ot(e):void 0}function Mt(e){return a(e)&&a(e.text)&&s(e.isComment)}function Ot(e,t){var n,r,s,u,c=[];for(n=0;n<e.length;n++)r=e[n],i(r)||"boolean"===typeof r||(s=c.length-1,u=c[s],Array.isArray(r)?r.length>0&&(r=Ot(r,(t||"")+"_"+n),Mt(r[0])&&Mt(u)&&(c[s]=Ce(u.text+r[0].text),r.shift()),c.push.apply(c,r)):l(r)?Mt(u)?c[s]=Ce(u.text+r):""!==r&&c.push(Ce(r)):Mt(r)&&Mt(u)?c[s]=Ce(u.text+r.text):(o(e._isVList)&&a(r.tag)&&i(r.key)&&a(t)&&(r.key="__vlist"+t+"_"+n+"__"),c.push(r)));return c}function Dt(e){var t=e.$options.provide;t&&(e._provided="function"===typeof t?t.call(e):t)}function Tt(e){var t=At(e.$options.inject,e);t&&(De(!1),Object.keys(t).forEach((function(n){Pe(e,n,t[n])})),De(!0))}function At(e,t){if(e){for(var n=Object.create(null),r=fe?Reflect.ownKeys(e):Object.keys(e),i=0;i<r.length;i++){var a=r[i];if("__ob__"!==a){var o=e[a].from,s=t;while(s){if(s._provided&&w(s._provided,o)){n[a]=s._provided[o];break}s=s.$parent}if(!s)if("default"in e[a]){var l=e[a].default;n[a]="function"===typeof l?l.call(t):l}else 0}}return n}}function It(e,t){if(!e||!e.length)return{};for(var n={},r=0,i=e.length;r<i;r++){var a=e[r],o=a.data;if(o&&o.attrs&&o.attrs.slot&&delete o.attrs.slot,a.context!==t&&a.fnContext!==t||!o||null==o.slot)(n.default||(n.default=[])).push(a);else{var s=o.slot,l=n[s]||(n[s]=[]);"template"===a.tag?l.push.apply(l,a.children||[]):l.push(a)}}for(var u in n)n[u].every($t)&&delete n[u];return n}function $t(e){return e.isComment&&!e.asyncFactory||" "===e.text}function Pt(e){return e.isComment&&e.asyncFactory}function jt(e,t,n){var i,a=Object.keys(t).length>0,o=e?!!e.$stable:!a,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(o&&n&&n!==r&&s===n.$key&&!a&&!n.$hasNormal)return n;for(var l in i={},e)e[l]&&"$"!==l[0]&&(i[l]=Ft(t,l,e[l]))}else i={};for(var u in t)u in i||(i[u]=Bt(t,u));return e&&Object.isExtensible(e)&&(e._normalized=i),W(i,"$stable",o),W(i,"$key",s),W(i,"$hasNormal",a),i}function Ft(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({});e=e&&"object"===typeof e&&!Array.isArray(e)?[e]:Et(e);var t=e&&e[0];return e&&(!t||1===e.length&&t.isComment&&!Pt(t))?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function Bt(e,t){return function(){return e[t]}}function Lt(e,t){var n,r,i,o,s;if(Array.isArray(e)||"string"===typeof e)for(n=new Array(e.length),r=0,i=e.length;r<i;r++)n[r]=t(e[r],r);else if("number"===typeof e)for(n=new Array(e),r=0;r<e;r++)n[r]=t(r+1,r);else if(u(e))if(fe&&e[Symbol.iterator]){n=[];var l=e[Symbol.iterator](),c=l.next();while(!c.done)n.push(t(c.value,n.length)),c=l.next()}else for(o=Object.keys(e),n=new Array(o.length),r=0,i=o.length;r<i;r++)s=o[r],n[r]=t(e[s],s,r);return a(n)||(n=[]),n._isVList=!0,n}function zt(e,t,n,r){var i,a=this.$scopedSlots[e];a?(n=n||{},r&&(n=A(A({},r),n)),i=a(n)||("function"===typeof t?t():t)):i=this.$slots[e]||("function"===typeof t?t():t);var o=n&&n.slot;return o?this.$createElement("template",{slot:o},i):i}function Rt(e){return Xe(this.$options,"filters",e,!0)||j}function Vt(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function qt(e,t,n,r,i){var a=q.keyCodes[t]||n;return i&&r&&!q.keyCodes[t]?Vt(i,r):a?Vt(a,e):r?E(r)!==t:void 0===e}function Ht(e,t,n,r,i){if(n)if(u(n)){var a;Array.isArray(n)&&(n=I(n));var o=function(o){if("class"===o||"style"===o||y(o))a=e;else{var s=e.attrs&&e.attrs.type;a=r||q.mustUseProp(t,s,o)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var l=S(o),u=E(o);if(!(l in a)&&!(u in a)&&(a[o]=n[o],i)){var c=e.on||(e.on={});c["update:"+o]=function(e){n[o]=e}}};for(var s in n)o(s)}else;return e}function Ut(e,t){var n=this._staticTrees||(this._staticTrees=[]),r=n[e];return r&&!t||(r=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),Yt(r,"__static__"+e,!1)),r}function Wt(e,t,n){return Yt(e,"__once__"+t+(n?"_"+n:""),!0),e}function Yt(e,t,n){if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&"string"!==typeof e[r]&&Gt(e[r],t+"_"+r,n);else Gt(e,t,n)}function Gt(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function Kt(e,t){if(t)if(d(t)){var n=e.on=e.on?A({},e.on):{};for(var r in t){var i=n[r],a=t[r];n[r]=i?[].concat(i,a):a}}else;return e}function Xt(e,t,n,r){t=t||{$stable:!n};for(var i=0;i<e.length;i++){var a=e[i];Array.isArray(a)?Xt(a,t,n):a&&(a.proxy&&(a.fn.proxy=!0),t[a.key]=a.fn)}return r&&(t.$key=r),t}function Zt(e,t){for(var n=0;n<t.length;n+=2){var r=t[n];"string"===typeof r&&r&&(e[t[n]]=t[n+1])}return e}function Jt(e,t){return"string"===typeof e?t+e:e}function Qt(e){e._o=Wt,e._n=v,e._s=m,e._l=Lt,e._t=zt,e._q=F,e._i=B,e._m=Ut,e._f=Rt,e._k=qt,e._b=Ht,e._v=Ce,e._e=_e,e._u=Xt,e._g=Kt,e._d=Zt,e._p=Jt}function en(e,t,n,i,a){var s,l=this,u=a.options;w(i,"_uid")?(s=Object.create(i),s._original=i):(s=i,i=i._original);var c=o(u._compiled),d=!c;this.data=e,this.props=t,this.children=n,this.parent=i,this.listeners=e.on||r,this.injections=At(u.inject,i),this.slots=function(){return l.$slots||jt(e.scopedSlots,l.$slots=It(n,i)),l.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return jt(e.scopedSlots,this.slots())}}),c&&(this.$options=u,this.$slots=this.slots(),this.$scopedSlots=jt(e.scopedSlots,this.$slots)),u._scopeId?this._c=function(e,t,n,r){var a=pn(s,e,t,n,r,d);return a&&!Array.isArray(a)&&(a.fnScopeId=u._scopeId,a.fnContext=i),a}:this._c=function(e,t,n,r){return pn(s,e,t,n,r,d)}}function tn(e,t,n,i,o){var s=e.options,l={},u=s.props;if(a(u))for(var c in u)l[c]=Ze(c,u,t||r);else a(n.attrs)&&rn(l,n.attrs),a(n.props)&&rn(l,n.props);var d=new en(n,l,o,i,e),h=s.render.call(null,d._c,d);if(h instanceof xe)return nn(h,n,d.parent,s,d);if(Array.isArray(h)){for(var f=Et(h)||[],p=new Array(f.length),m=0;m<f.length;m++)p[m]=nn(f[m],n,d.parent,s,d);return p}}function nn(e,t,n,r,i){var a=Se(e);return a.fnContext=n,a.fnOptions=r,t.slot&&((a.data||(a.data={})).slot=t.slot),a}function rn(e,t){for(var n in t)e[S(n)]=t[n]}Qt(en.prototype);var an={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var n=e;an.prepatch(n,n)}else{var r=e.componentInstance=ln(e,An);r.$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var n=t.componentOptions,r=t.componentInstance=e.componentInstance;Fn(r,n.propsData,n.listeners,t,n.children)},insert:function(e){var t=e.context,n=e.componentInstance;n._isMounted||(n._isMounted=!0,Rn(n,"mounted")),e.data.keepAlive&&(t._isMounted?er(n):Ln(n,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?zn(t,!0):t.$destroy())}},on=Object.keys(an);function sn(e,t,n,r,s){if(!i(e)){var l=n.$options._base;if(u(e)&&(e=l.extend(e)),"function"===typeof e){var c;if(i(e.cid)&&(c=e,e=Sn(c,l),void 0===e))return Cn(c,t,n,r,s);t=t||{},Cr(e),a(t.model)&&dn(e.options,t);var d=St(t,e,s);if(o(e.options.functional))return tn(e,d,t,n,r);var h=t.on;if(t.on=t.nativeOn,o(e.options.abstract)){var f=t.slot;t={},f&&(t.slot=f)}un(t);var p=e.options.name||s,m=new xe("vue-component-"+e.cid+(p?"-"+p:""),t,void 0,void 0,void 0,n,{Ctor:e,propsData:d,listeners:h,tag:s,children:r},c);return m}}}function ln(e,t){var n={_isComponent:!0,_parentVnode:e,parent:t},r=e.data.inlineTemplate;return a(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns),new e.componentOptions.Ctor(n)}function un(e){for(var t=e.hook||(e.hook={}),n=0;n<on.length;n++){var r=on[n],i=t[r],a=an[r];i===a||i&&i._merged||(t[r]=i?cn(a,i):a)}}function cn(e,t){var n=function(n,r){e(n,r),t(n,r)};return n._merged=!0,n}function dn(e,t){var n=e.model&&e.model.prop||"value",r=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;var i=t.on||(t.on={}),o=i[r],s=t.model.callback;a(o)?(Array.isArray(o)?-1===o.indexOf(s):o!==s)&&(i[r]=[s].concat(o)):i[r]=s}var hn=1,fn=2;function pn(e,t,n,r,i,a){return(Array.isArray(n)||l(n))&&(i=r,r=n,n=void 0),o(a)&&(i=fn),mn(e,t,n,r,i)}function mn(e,t,n,r,i){if(a(n)&&a(n.__ob__))return _e();if(a(n)&&a(n.is)&&(t=n.is),!t)return _e();var o,s,l;(Array.isArray(r)&&"function"===typeof r[0]&&(n=n||{},n.scopedSlots={default:r[0]},r.length=0),i===fn?r=Et(r):i===hn&&(r=kt(r)),"string"===typeof t)?(s=e.$vnode&&e.$vnode.ns||q.getTagNamespace(t),o=q.isReservedTag(t)?new xe(q.parsePlatformTagName(t),n,r,void 0,void 0,e):n&&n.pre||!a(l=Xe(e.$options,"components",t))?new xe(t,n,r,void 0,void 0,e):sn(l,n,e,r,t)):o=sn(t,n,e,r);return Array.isArray(o)?o:a(o)?(a(s)&&vn(o,s),a(n)&&gn(n),o):_e()}function vn(e,t,n){if(e.ns=t,"foreignObject"===e.tag&&(t=void 0,n=!0),a(e.children))for(var r=0,s=e.children.length;r<s;r++){var l=e.children[r];a(l.tag)&&(i(l.ns)||o(n)&&"svg"!==l.tag)&&vn(l,t,n)}}function gn(e){u(e.style)&&yt(e.style),u(e.class)&&yt(e.class)}function yn(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,i=n&&n.context;e.$slots=It(t._renderChildren,i),e.$scopedSlots=r,e._c=function(t,n,r,i){return pn(e,t,n,r,i,!1)},e.$createElement=function(t,n,r,i){return pn(e,t,n,r,i,!0)};var a=n&&n.data;Pe(e,"$attrs",a&&a.attrs||r,null,!0),Pe(e,"$listeners",t._parentListeners||r,null,!0)}var bn,xn=null;function wn(e){Qt(e.prototype),e.prototype.$nextTick=function(e){return vt(e,this)},e.prototype._render=function(){var e,t=this,n=t.$options,r=n.render,i=n._parentVnode;i&&(t.$scopedSlots=jt(i.data.scopedSlots,t.$slots,t.$scopedSlots)),t.$vnode=i;try{xn=t,e=r.call(t._renderProxy,t.$createElement)}catch(No){rt(No,t,"render"),e=t._vnode}finally{xn=null}return Array.isArray(e)&&1===e.length&&(e=e[0]),e instanceof xe||(e=_e()),e.parent=i,e}}function _n(e,t){return(e.__esModule||fe&&"Module"===e[Symbol.toStringTag])&&(e=e.default),u(e)?t.extend(e):e}function Cn(e,t,n,r,i){var a=_e();return a.asyncFactory=e,a.asyncMeta={data:t,context:n,children:r,tag:i},a}function Sn(e,t){if(o(e.error)&&a(e.errorComp))return e.errorComp;if(a(e.resolved))return e.resolved;var n=xn;if(n&&a(e.owners)&&-1===e.owners.indexOf(n)&&e.owners.push(n),o(e.loading)&&a(e.loadingComp))return e.loadingComp;if(n&&!a(e.owners)){var r=e.owners=[n],s=!0,l=null,c=null;n.$on("hook:destroyed",(function(){return b(r,n)}));var d=function(e){for(var t=0,n=r.length;t<n;t++)r[t].$forceUpdate();e&&(r.length=0,null!==l&&(clearTimeout(l),l=null),null!==c&&(clearTimeout(c),c=null))},h=L((function(n){e.resolved=_n(n,t),s?r.length=0:d(!0)})),f=L((function(t){a(e.errorComp)&&(e.error=!0,d(!0))})),m=e(h,f);return u(m)&&(p(m)?i(e.resolved)&&m.then(h,f):p(m.component)&&(m.component.then(h,f),a(m.error)&&(e.errorComp=_n(m.error,t)),a(m.loading)&&(e.loadingComp=_n(m.loading,t),0===m.delay?e.loading=!0:l=setTimeout((function(){l=null,i(e.resolved)&&i(e.error)&&(e.loading=!0,d(!1))}),m.delay||200)),a(m.timeout)&&(c=setTimeout((function(){c=null,i(e.resolved)&&f(null)}),m.timeout)))),s=!1,e.loading?e.loadingComp:e.resolved}}function Nn(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];if(a(n)&&(a(n.componentOptions)||Pt(n)))return n}}function kn(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Dn(e,t)}function En(e,t){bn.$on(e,t)}function Mn(e,t){bn.$off(e,t)}function On(e,t){var n=bn;return function r(){var i=t.apply(null,arguments);null!==i&&n.$off(e,r)}}function Dn(e,t,n){bn=e,_t(t,n||{},En,Mn,On,e),bn=void 0}function Tn(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(Array.isArray(e))for(var i=0,a=e.length;i<a;i++)r.$on(e[i],n);else(r._events[e]||(r._events[e]=[])).push(n),t.test(e)&&(r._hasHookEvent=!0);return r},e.prototype.$once=function(e,t){var n=this;function r(){n.$off(e,r),t.apply(n,arguments)}return r.fn=t,n.$on(e,r),n},e.prototype.$off=function(e,t){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(e)){for(var r=0,i=e.length;r<i;r++)n.$off(e[r],t);return n}var a,o=n._events[e];if(!o)return n;if(!t)return n._events[e]=null,n;var s=o.length;while(s--)if(a=o[s],a===t||a.fn===t){o.splice(s,1);break}return n},e.prototype.$emit=function(e){var t=this,n=t._events[e];if(n){n=n.length>1?T(n):n;for(var r=T(arguments,1),i='event handler for "'+e+'"',a=0,o=n.length;a<o;a++)it(n[a],t,r,t,i)}return t}}var An=null;function In(e){var t=An;return An=e,function(){An=t}}function $n(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){while(n.$options.abstract&&n.$parent)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}function Pn(e){e.prototype._update=function(e,t){var n=this,r=n.$el,i=n._vnode,a=In(n);n._vnode=e,n.$el=i?n.__patch__(i,e):n.__patch__(n.$el,e,t,!1),a(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},e.prototype.$forceUpdate=function(){var e=this;e._watcher&&e._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){Rn(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||b(t.$children,e),e._watcher&&e._watcher.teardown();var n=e._watchers.length;while(n--)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),Rn(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}function jn(e,t,n){var r;return e.$el=t,e.$options.render||(e.$options.render=_e),Rn(e,"beforeMount"),r=function(){e._update(e._render(),n)},new ir(e,r,$,{before:function(){e._isMounted&&!e._isDestroyed&&Rn(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,Rn(e,"mounted")),e}function Fn(e,t,n,i,a){var o=i.data.scopedSlots,s=e.$scopedSlots,l=!!(o&&!o.$stable||s!==r&&!s.$stable||o&&e.$scopedSlots.$key!==o.$key||!o&&e.$scopedSlots.$key),u=!!(a||e.$options._renderChildren||l);if(e.$options._parentVnode=i,e.$vnode=i,e._vnode&&(e._vnode.parent=i),e.$options._renderChildren=a,e.$attrs=i.data.attrs||r,e.$listeners=n||r,t&&e.$options.props){De(!1);for(var c=e._props,d=e.$options._propKeys||[],h=0;h<d.length;h++){var f=d[h],p=e.$options.props;c[f]=Ze(f,p,t,e)}De(!0),e.$options.propsData=t}n=n||r;var m=e.$options._parentListeners;e.$options._parentListeners=n,Dn(e,n,m),u&&(e.$slots=It(a,i.context),e.$forceUpdate())}function Bn(e){while(e&&(e=e.$parent))if(e._inactive)return!0;return!1}function Ln(e,t){if(t){if(e._directInactive=!1,Bn(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)Ln(e.$children[n]);Rn(e,"activated")}}function zn(e,t){if((!t||(e._directInactive=!0,!Bn(e)))&&!e._inactive){e._inactive=!0;for(var n=0;n<e.$children.length;n++)zn(e.$children[n]);Rn(e,"deactivated")}}function Rn(e,t){ye();var n=e.$options[t],r=t+" hook";if(n)for(var i=0,a=n.length;i<a;i++)it(n[i],e,null,e,r);e._hasHookEvent&&e.$emit("hook:"+t),be()}var Vn=[],qn=[],Hn={},Un=!1,Wn=!1,Yn=0;function Gn(){Yn=Vn.length=qn.length=0,Hn={},Un=Wn=!1}var Kn=0,Xn=Date.now;if(Z&&!te){var Zn=window.performance;Zn&&"function"===typeof Zn.now&&Xn()>document.createEvent("Event").timeStamp&&(Xn=function(){return Zn.now()})}function Jn(){var e,t;for(Kn=Xn(),Wn=!0,Vn.sort((function(e,t){return e.id-t.id})),Yn=0;Yn<Vn.length;Yn++)e=Vn[Yn],e.before&&e.before(),t=e.id,Hn[t]=null,e.run();var n=qn.slice(),r=Vn.slice();Gn(),tr(n),Qn(r),ce&&q.devtools&&ce.emit("flush")}function Qn(e){var t=e.length;while(t--){var n=e[t],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&Rn(r,"updated")}}function er(e){e._inactive=!1,qn.push(e)}function tr(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,Ln(e[t],!0)}function nr(e){var t=e.id;if(null==Hn[t]){if(Hn[t]=!0,Wn){var n=Vn.length-1;while(n>Yn&&Vn[n].id>e.id)n--;Vn.splice(n+1,0,e)}else Vn.push(e);Un||(Un=!0,vt(Jn))}}var rr=0,ir=function(e,t,n,r,i){this.vm=e,i&&(e._watcher=this),e._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++rr,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new he,this.newDepIds=new he,this.expression="","function"===typeof t?this.getter=t:(this.getter=G(t),this.getter||(this.getter=$)),this.value=this.lazy?void 0:this.get()};ir.prototype.get=function(){var e;ye(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(No){if(!this.user)throw No;rt(No,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&yt(e),be(),this.cleanupDeps()}return e},ir.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},ir.prototype.cleanupDeps=function(){var e=this.deps.length;while(e--){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},ir.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():nr(this)},ir.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||u(e)||this.deep){var t=this.value;if(this.value=e,this.user){var n='callback for watcher "'+this.expression+'"';it(this.cb,this.vm,[e,t],this.vm,n)}else this.cb.call(this.vm,e,t)}}},ir.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},ir.prototype.depend=function(){var e=this.deps.length;while(e--)this.deps[e].depend()},ir.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||b(this.vm._watchers,this);var e=this.deps.length;while(e--)this.deps[e].removeSub(this);this.active=!1}};var ar={enumerable:!0,configurable:!0,get:$,set:$};function or(e,t,n){ar.get=function(){return this[t][n]},ar.set=function(e){this[t][n]=e},Object.defineProperty(e,n,ar)}function sr(e){e._watchers=[];var t=e.$options;t.props&&lr(e,t.props),t.methods&&vr(e,t.methods),t.data?ur(e):$e(e._data={},!0),t.computed&&hr(e,t.computed),t.watch&&t.watch!==oe&&gr(e,t.watch)}function lr(e,t){var n=e.$options.propsData||{},r=e._props={},i=e.$options._propKeys=[],a=!e.$parent;a||De(!1);var o=function(a){i.push(a);var o=Ze(a,t,n,e);Pe(r,a,o),a in e||or(e,"_props",a)};for(var s in t)o(s);De(!0)}function ur(e){var t=e.$options.data;t=e._data="function"===typeof t?cr(t,e):t||{},d(t)||(t={});var n=Object.keys(t),r=e.$options.props,i=(e.$options.methods,n.length);while(i--){var a=n[i];0,r&&w(r,a)||U(a)||or(e,"_data",a)}$e(t,!0)}function cr(e,t){ye();try{return e.call(t,t)}catch(No){return rt(No,t,"data()"),{}}finally{be()}}var dr={lazy:!0};function hr(e,t){var n=e._computedWatchers=Object.create(null),r=ue();for(var i in t){var a=t[i],o="function"===typeof a?a:a.get;0,r||(n[i]=new ir(e,o||$,$,dr)),i in e||fr(e,i,a)}}function fr(e,t,n){var r=!ue();"function"===typeof n?(ar.get=r?pr(t):mr(n),ar.set=$):(ar.get=n.get?r&&!1!==n.cache?pr(t):mr(n.get):$,ar.set=n.set||$),Object.defineProperty(e,t,ar)}function pr(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),ve.target&&t.depend(),t.value}}function mr(e){return function(){return e.call(this,this)}}function vr(e,t){e.$options.props;for(var n in t)e[n]="function"!==typeof t[n]?$:D(t[n],e)}function gr(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)yr(e,n,r[i]);else yr(e,n,r)}}function yr(e,t,n,r){return d(n)&&(r=n,n=n.handler),"string"===typeof n&&(n=e[n]),e.$watch(t,n,r)}function br(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=je,e.prototype.$delete=Fe,e.prototype.$watch=function(e,t,n){var r=this;if(d(t))return yr(r,e,t,n);n=n||{},n.user=!0;var i=new ir(r,e,t,n);if(n.immediate){var a='callback for immediate watcher "'+i.expression+'"';ye(),it(t,r,[i.value],r,a),be()}return function(){i.teardown()}}}var xr=0;function wr(e){e.prototype._init=function(e){var t=this;t._uid=xr++,t._isVue=!0,e&&e._isComponent?_r(t,e):t.$options=Ke(Cr(t.constructor),e||{},t),t._renderProxy=t,t._self=t,$n(t),kn(t),yn(t),Rn(t,"beforeCreate"),Tt(t),sr(t),Dt(t),Rn(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}function _r(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}function Cr(e){var t=e.options;if(e.super){var n=Cr(e.super),r=e.superOptions;if(n!==r){e.superOptions=n;var i=Sr(e);i&&A(e.extendOptions,i),t=e.options=Ke(n,e.extendOptions),t.name&&(t.components[t.name]=e)}}return t}function Sr(e){var t,n=e.options,r=e.sealedOptions;for(var i in n)n[i]!==r[i]&&(t||(t={}),t[i]=n[i]);return t}function Nr(e){this._init(e)}function kr(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=T(arguments,1);return n.unshift(this),"function"===typeof e.install?e.install.apply(e,n):"function"===typeof e&&e.apply(null,n),t.push(e),this}}function Er(e){e.mixin=function(e){return this.options=Ke(this.options,e),this}}function Mr(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,i=e._Ctor||(e._Ctor={});if(i[r])return i[r];var a=e.name||n.options.name;var o=function(e){this._init(e)};return o.prototype=Object.create(n.prototype),o.prototype.constructor=o,o.cid=t++,o.options=Ke(n.options,e),o["super"]=n,o.options.props&&Or(o),o.options.computed&&Dr(o),o.extend=n.extend,o.mixin=n.mixin,o.use=n.use,R.forEach((function(e){o[e]=n[e]})),a&&(o.options.components[a]=o),o.superOptions=n.options,o.extendOptions=e,o.sealedOptions=A({},o.options),i[r]=o,o}}function Or(e){var t=e.options.props;for(var n in t)or(e.prototype,"_props",n)}function Dr(e){var t=e.options.computed;for(var n in t)fr(e.prototype,n,t[n])}function Tr(e){R.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&d(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"===typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}function Ar(e){return e&&(e.Ctor.options.name||e.tag)}function Ir(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"===typeof e?e.split(",").indexOf(t)>-1:!!h(e)&&e.test(t)}function $r(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var a in n){var o=n[a];if(o){var s=o.name;s&&!t(s)&&Pr(n,a,r,i)}}}function Pr(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,b(n,t)}wr(Nr),br(Nr),Tn(Nr),Pn(Nr),wn(Nr);var jr=[String,RegExp,Array],Fr={name:"keep-alive",abstract:!0,props:{include:jr,exclude:jr,max:[String,Number]},methods:{cacheVNode:function(){var e=this,t=e.cache,n=e.keys,r=e.vnodeToCache,i=e.keyToCache;if(r){var a=r.tag,o=r.componentInstance,s=r.componentOptions;t[i]={name:Ar(s),tag:a,componentInstance:o},n.push(i),this.max&&n.length>parseInt(this.max)&&Pr(t,n[0],n,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)Pr(this.cache,e,this.keys)},mounted:function(){var e=this;this.cacheVNode(),this.$watch("include",(function(t){$r(e,(function(e){return Ir(t,e)}))})),this.$watch("exclude",(function(t){$r(e,(function(e){return!Ir(t,e)}))}))},updated:function(){this.cacheVNode()},render:function(){var e=this.$slots.default,t=Nn(e),n=t&&t.componentOptions;if(n){var r=Ar(n),i=this,a=i.include,o=i.exclude;if(a&&(!r||!Ir(a,r))||o&&r&&Ir(o,r))return t;var s=this,l=s.cache,u=s.keys,c=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;l[c]?(t.componentInstance=l[c].componentInstance,b(u,c),u.push(c)):(this.vnodeToCache=t,this.keyToCache=c),t.data.keepAlive=!0}return t||e&&e[0]}},Br={KeepAlive:Fr};function Lr(e){var t={get:function(){return q}};Object.defineProperty(e,"config",t),e.util={warn:pe,extend:A,mergeOptions:Ke,defineReactive:Pe},e.set=je,e.delete=Fe,e.nextTick=vt,e.observable=function(e){return $e(e),e},e.options=Object.create(null),R.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,A(e.options.components,Br),kr(e),Er(e),Mr(e),Tr(e)}Lr(Nr),Object.defineProperty(Nr.prototype,"$isServer",{get:ue}),Object.defineProperty(Nr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Nr,"FunctionalRenderContext",{value:en}),Nr.version="2.6.14";var zr=g("style,class"),Rr=g("input,textarea,option,select,progress"),Vr=function(e,t,n){return"value"===n&&Rr(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},qr=g("contenteditable,draggable,spellcheck"),Hr=g("events,caret,typing,plaintext-only"),Ur=function(e,t){return Xr(t)||"false"===t?"false":"contenteditable"===e&&Hr(t)?t:"true"},Wr=g("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),Yr="http://www.w3.org/1999/xlink",Gr=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Kr=function(e){return Gr(e)?e.slice(6,e.length):""},Xr=function(e){return null==e||!1===e};function Zr(e){var t=e.data,n=e,r=e;while(a(r.componentInstance))r=r.componentInstance._vnode,r&&r.data&&(t=Jr(r.data,t));while(a(n=n.parent))n&&n.data&&(t=Jr(t,n.data));return Qr(t.staticClass,t.class)}function Jr(e,t){return{staticClass:ei(e.staticClass,t.staticClass),class:a(e.class)?[e.class,t.class]:t.class}}function Qr(e,t){return a(e)||a(t)?ei(e,ti(t)):""}function ei(e,t){return e?t?e+" "+t:e:t||""}function ti(e){return Array.isArray(e)?ni(e):u(e)?ri(e):"string"===typeof e?e:""}function ni(e){for(var t,n="",r=0,i=e.length;r<i;r++)a(t=ti(e[r]))&&""!==t&&(n&&(n+=" "),n+=t);return n}function ri(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}var ii={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},ai=g("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),oi=g("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),si=function(e){return ai(e)||oi(e)};function li(e){return oi(e)?"svg":"math"===e?"math":void 0}var ui=Object.create(null);function ci(e){if(!Z)return!0;if(si(e))return!1;if(e=e.toLowerCase(),null!=ui[e])return ui[e];var t=document.createElement(e);return e.indexOf("-")>-1?ui[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:ui[e]=/HTMLUnknownElement/.test(t.toString())}var di=g("text,number,password,search,email,tel,url");function hi(e){if("string"===typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}function fi(e,t){var n=document.createElement(e);return"select"!==e||t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n}function pi(e,t){return document.createElementNS(ii[e],t)}function mi(e){return document.createTextNode(e)}function vi(e){return document.createComment(e)}function gi(e,t,n){e.insertBefore(t,n)}function yi(e,t){e.removeChild(t)}function bi(e,t){e.appendChild(t)}function xi(e){return e.parentNode}function wi(e){return e.nextSibling}function _i(e){return e.tagName}function Ci(e,t){e.textContent=t}function Si(e,t){e.setAttribute(t,"")}var Ni=Object.freeze({createElement:fi,createElementNS:pi,createTextNode:mi,createComment:vi,insertBefore:gi,removeChild:yi,appendChild:bi,parentNode:xi,nextSibling:wi,tagName:_i,setTextContent:Ci,setStyleScope:Si}),ki={create:function(e,t){Ei(t)},update:function(e,t){e.data.ref!==t.data.ref&&(Ei(e,!0),Ei(t))},destroy:function(e){Ei(e,!0)}};function Ei(e,t){var n=e.data.ref;if(a(n)){var r=e.context,i=e.componentInstance||e.elm,o=r.$refs;t?Array.isArray(o[n])?b(o[n],i):o[n]===i&&(o[n]=void 0):e.data.refInFor?Array.isArray(o[n])?o[n].indexOf(i)<0&&o[n].push(i):o[n]=[i]:o[n]=i}}var Mi=new xe("",{},[]),Oi=["create","activate","update","remove","destroy"];function Di(e,t){return e.key===t.key&&e.asyncFactory===t.asyncFactory&&(e.tag===t.tag&&e.isComment===t.isComment&&a(e.data)===a(t.data)&&Ti(e,t)||o(e.isAsyncPlaceholder)&&i(t.asyncFactory.error))}function Ti(e,t){if("input"!==e.tag)return!0;var n,r=a(n=e.data)&&a(n=n.attrs)&&n.type,i=a(n=t.data)&&a(n=n.attrs)&&n.type;return r===i||di(r)&&di(i)}function Ai(e,t,n){var r,i,o={};for(r=t;r<=n;++r)i=e[r].key,a(i)&&(o[i]=r);return o}function Ii(e){var t,n,r={},s=e.modules,u=e.nodeOps;for(t=0;t<Oi.length;++t)for(r[Oi[t]]=[],n=0;n<s.length;++n)a(s[n][Oi[t]])&&r[Oi[t]].push(s[n][Oi[t]]);function c(e){return new xe(u.tagName(e).toLowerCase(),{},[],void 0,e)}function d(e,t){function n(){0===--n.listeners&&h(e)}return n.listeners=t,n}function h(e){var t=u.parentNode(e);a(t)&&u.removeChild(t,e)}function f(e,t,n,r,i,s,l){if(a(e.elm)&&a(s)&&(e=s[l]=Se(e)),e.isRootInsert=!i,!p(e,t,n,r)){var c=e.data,d=e.children,h=e.tag;a(h)?(e.elm=e.ns?u.createElementNS(e.ns,h):u.createElement(h,e),_(e),b(e,d,t),a(c)&&w(e,t),y(n,e.elm,r)):o(e.isComment)?(e.elm=u.createComment(e.text),y(n,e.elm,r)):(e.elm=u.createTextNode(e.text),y(n,e.elm,r))}}function p(e,t,n,r){var i=e.data;if(a(i)){var s=a(e.componentInstance)&&i.keepAlive;if(a(i=i.hook)&&a(i=i.init)&&i(e,!1),a(e.componentInstance))return m(e,t),y(n,e.elm,r),o(s)&&v(e,t,n,r),!0}}function m(e,t){a(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,x(e)?(w(e,t),_(e)):(Ei(e),t.push(e))}function v(e,t,n,i){var o,s=e;while(s.componentInstance)if(s=s.componentInstance._vnode,a(o=s.data)&&a(o=o.transition)){for(o=0;o<r.activate.length;++o)r.activate[o](Mi,s);t.push(s);break}y(n,e.elm,i)}function y(e,t,n){a(e)&&(a(n)?u.parentNode(n)===e&&u.insertBefore(e,t,n):u.appendChild(e,t))}function b(e,t,n){if(Array.isArray(t)){0;for(var r=0;r<t.length;++r)f(t[r],n,e.elm,null,!0,t,r)}else l(e.text)&&u.appendChild(e.elm,u.createTextNode(String(e.text)))}function x(e){while(e.componentInstance)e=e.componentInstance._vnode;return a(e.tag)}function w(e,n){for(var i=0;i<r.create.length;++i)r.create[i](Mi,e);t=e.data.hook,a(t)&&(a(t.create)&&t.create(Mi,e),a(t.insert)&&n.push(e))}function _(e){var t;if(a(t=e.fnScopeId))u.setStyleScope(e.elm,t);else{var n=e;while(n)a(t=n.context)&&a(t=t.$options._scopeId)&&u.setStyleScope(e.elm,t),n=n.parent}a(t=An)&&t!==e.context&&t!==e.fnContext&&a(t=t.$options._scopeId)&&u.setStyleScope(e.elm,t)}function C(e,t,n,r,i,a){for(;r<=i;++r)f(n[r],a,e,t,!1,n,r)}function S(e){var t,n,i=e.data;if(a(i))for(a(t=i.hook)&&a(t=t.destroy)&&t(e),t=0;t<r.destroy.length;++t)r.destroy[t](e);if(a(t=e.children))for(n=0;n<e.children.length;++n)S(e.children[n])}function N(e,t,n){for(;t<=n;++t){var r=e[t];a(r)&&(a(r.tag)?(k(r),S(r)):h(r.elm))}}function k(e,t){if(a(t)||a(e.data)){var n,i=r.remove.length+1;for(a(t)?t.listeners+=i:t=d(e.elm,i),a(n=e.componentInstance)&&a(n=n._vnode)&&a(n.data)&&k(n,t),n=0;n<r.remove.length;++n)r.remove[n](e,t);a(n=e.data.hook)&&a(n=n.remove)?n(e,t):t()}else h(e.elm)}function E(e,t,n,r,o){var s,l,c,d,h=0,p=0,m=t.length-1,v=t[0],g=t[m],y=n.length-1,b=n[0],x=n[y],w=!o;while(h<=m&&p<=y)i(v)?v=t[++h]:i(g)?g=t[--m]:Di(v,b)?(O(v,b,r,n,p),v=t[++h],b=n[++p]):Di(g,x)?(O(g,x,r,n,y),g=t[--m],x=n[--y]):Di(v,x)?(O(v,x,r,n,y),w&&u.insertBefore(e,v.elm,u.nextSibling(g.elm)),v=t[++h],x=n[--y]):Di(g,b)?(O(g,b,r,n,p),w&&u.insertBefore(e,g.elm,v.elm),g=t[--m],b=n[++p]):(i(s)&&(s=Ai(t,h,m)),l=a(b.key)?s[b.key]:M(b,t,h,m),i(l)?f(b,r,e,v.elm,!1,n,p):(c=t[l],Di(c,b)?(O(c,b,r,n,p),t[l]=void 0,w&&u.insertBefore(e,c.elm,v.elm)):f(b,r,e,v.elm,!1,n,p)),b=n[++p]);h>m?(d=i(n[y+1])?null:n[y+1].elm,C(e,d,n,p,y,r)):p>y&&N(t,h,m)}function M(e,t,n,r){for(var i=n;i<r;i++){var o=t[i];if(a(o)&&Di(e,o))return i}}function O(e,t,n,s,l,c){if(e!==t){a(t.elm)&&a(s)&&(t=s[l]=Se(t));var d=t.elm=e.elm;if(o(e.isAsyncPlaceholder))a(t.asyncFactory.resolved)?A(e.elm,t,n):t.isAsyncPlaceholder=!0;else if(o(t.isStatic)&&o(e.isStatic)&&t.key===e.key&&(o(t.isCloned)||o(t.isOnce)))t.componentInstance=e.componentInstance;else{var h,f=t.data;a(f)&&a(h=f.hook)&&a(h=h.prepatch)&&h(e,t);var p=e.children,m=t.children;if(a(f)&&x(t)){for(h=0;h<r.update.length;++h)r.update[h](e,t);a(h=f.hook)&&a(h=h.update)&&h(e,t)}i(t.text)?a(p)&&a(m)?p!==m&&E(d,p,m,n,c):a(m)?(a(e.text)&&u.setTextContent(d,""),C(d,null,m,0,m.length-1,n)):a(p)?N(p,0,p.length-1):a(e.text)&&u.setTextContent(d,""):e.text!==t.text&&u.setTextContent(d,t.text),a(f)&&a(h=f.hook)&&a(h=h.postpatch)&&h(e,t)}}}function D(e,t,n){if(o(n)&&a(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r<t.length;++r)t[r].data.hook.insert(t[r])}var T=g("attrs,class,staticClass,staticStyle,key");function A(e,t,n,r){var i,s=t.tag,l=t.data,u=t.children;if(r=r||l&&l.pre,t.elm=e,o(t.isComment)&&a(t.asyncFactory))return t.isAsyncPlaceholder=!0,!0;if(a(l)&&(a(i=l.hook)&&a(i=i.init)&&i(t,!0),a(i=t.componentInstance)))return m(t,n),!0;if(a(s)){if(a(u))if(e.hasChildNodes())if(a(i=l)&&a(i=i.domProps)&&a(i=i.innerHTML)){if(i!==e.innerHTML)return!1}else{for(var c=!0,d=e.firstChild,h=0;h<u.length;h++){if(!d||!A(d,u[h],n,r)){c=!1;break}d=d.nextSibling}if(!c||d)return!1}else b(t,u,n);if(a(l)){var f=!1;for(var p in l)if(!T(p)){f=!0,w(t,n);break}!f&&l["class"]&&yt(l["class"])}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,n,s){if(!i(t)){var l=!1,d=[];if(i(e))l=!0,f(t,d);else{var h=a(e.nodeType);if(!h&&Di(e,t))O(e,t,d,null,null,s);else{if(h){if(1===e.nodeType&&e.hasAttribute(z)&&(e.removeAttribute(z),n=!0),o(n)&&A(e,t,d))return D(t,d,!0),e;e=c(e)}var p=e.elm,m=u.parentNode(p);if(f(t,d,p._leaveCb?null:m,u.nextSibling(p)),a(t.parent)){var v=t.parent,g=x(t);while(v){for(var y=0;y<r.destroy.length;++y)r.destroy[y](v);if(v.elm=t.elm,g){for(var b=0;b<r.create.length;++b)r.create[b](Mi,v);var w=v.data.hook.insert;if(w.merged)for(var _=1;_<w.fns.length;_++)w.fns[_]()}else Ei(v);v=v.parent}}a(m)?N([e],0,0):a(e.tag)&&S(e)}}return D(t,d,l),t.elm}a(e)&&S(e)}}var $i={create:Pi,update:Pi,destroy:function(e){Pi(e,Mi)}};function Pi(e,t){(e.data.directives||t.data.directives)&&ji(e,t)}function ji(e,t){var n,r,i,a=e===Mi,o=t===Mi,s=Bi(e.data.directives,e.context),l=Bi(t.data.directives,t.context),u=[],c=[];for(n in l)r=s[n],i=l[n],r?(i.oldValue=r.value,i.oldArg=r.arg,zi(i,"update",t,e),i.def&&i.def.componentUpdated&&c.push(i)):(zi(i,"bind",t,e),i.def&&i.def.inserted&&u.push(i));if(u.length){var d=function(){for(var n=0;n<u.length;n++)zi(u[n],"inserted",t,e)};a?Ct(t,"insert",d):d()}if(c.length&&Ct(t,"postpatch",(function(){for(var n=0;n<c.length;n++)zi(c[n],"componentUpdated",t,e)})),!a)for(n in s)l[n]||zi(s[n],"unbind",e,e,o)}var Fi=Object.create(null);function Bi(e,t){var n,r,i=Object.create(null);if(!e)return i;for(n=0;n<e.length;n++)r=e[n],r.modifiers||(r.modifiers=Fi),i[Li(r)]=r,r.def=Xe(t.$options,"directives",r.name,!0);return i}function Li(e){return e.rawName||e.name+"."+Object.keys(e.modifiers||{}).join(".")}function zi(e,t,n,r,i){var a=e.def&&e.def[t];if(a)try{a(n.elm,e,n,r,i)}catch(No){rt(No,n.context,"directive "+e.name+" "+t+" hook")}}var Ri=[ki,$i];function Vi(e,t){var n=t.componentOptions;if((!a(n)||!1!==n.Ctor.options.inheritAttrs)&&(!i(e.data.attrs)||!i(t.data.attrs))){var r,o,s,l=t.elm,u=e.data.attrs||{},c=t.data.attrs||{};for(r in a(c.__ob__)&&(c=t.data.attrs=A({},c)),c)o=c[r],s=u[r],s!==o&&qi(l,r,o,t.data.pre);for(r in(te||re)&&c.value!==u.value&&qi(l,"value",c.value),u)i(c[r])&&(Gr(r)?l.removeAttributeNS(Yr,Kr(r)):qr(r)||l.removeAttribute(r))}}function qi(e,t,n,r){r||e.tagName.indexOf("-")>-1?Hi(e,t,n):Wr(t)?Xr(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):qr(t)?e.setAttribute(t,Ur(t,n)):Gr(t)?Xr(n)?e.removeAttributeNS(Yr,Kr(t)):e.setAttributeNS(Yr,t,n):Hi(e,t,n)}function Hi(e,t,n){if(Xr(n))e.removeAttribute(t);else{if(te&&!ne&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var Ui={create:Vi,update:Vi};function Wi(e,t){var n=t.elm,r=t.data,o=e.data;if(!(i(r.staticClass)&&i(r.class)&&(i(o)||i(o.staticClass)&&i(o.class)))){var s=Zr(t),l=n._transitionClasses;a(l)&&(s=ei(s,ti(l))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var Yi,Gi={create:Wi,update:Wi},Ki="__r",Xi="__c";function Zi(e){if(a(e[Ki])){var t=te?"change":"input";e[t]=[].concat(e[Ki],e[t]||[]),delete e[Ki]}a(e[Xi])&&(e.change=[].concat(e[Xi],e.change||[]),delete e[Xi])}function Ji(e,t,n){var r=Yi;return function i(){var a=t.apply(null,arguments);null!==a&&ta(e,i,n,r)}}var Qi=lt&&!(ae&&Number(ae[1])<=53);function ea(e,t,n,r){if(Qi){var i=Kn,a=t;t=a._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return a.apply(this,arguments)}}Yi.addEventListener(e,t,se?{capture:n,passive:r}:n)}function ta(e,t,n,r){(r||Yi).removeEventListener(e,t._wrapper||t,n)}function na(e,t){if(!i(e.data.on)||!i(t.data.on)){var n=t.data.on||{},r=e.data.on||{};Yi=t.elm,Zi(n),_t(n,r,ea,ta,Ji,t.context),Yi=void 0}}var ra,ia={create:na,update:na};function aa(e,t){if(!i(e.data.domProps)||!i(t.data.domProps)){var n,r,o=t.elm,s=e.data.domProps||{},l=t.data.domProps||{};for(n in a(l.__ob__)&&(l=t.data.domProps=A({},l)),s)n in l||(o[n]="");for(n in l){if(r=l[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),r===s[n])continue;1===o.childNodes.length&&o.removeChild(o.childNodes[0])}if("value"===n&&"PROGRESS"!==o.tagName){o._value=r;var u=i(r)?"":String(r);oa(o,u)&&(o.value=u)}else if("innerHTML"===n&&oi(o.tagName)&&i(o.innerHTML)){ra=ra||document.createElement("div"),ra.innerHTML="<svg>"+r+"</svg>";var c=ra.firstChild;while(o.firstChild)o.removeChild(o.firstChild);while(c.firstChild)o.appendChild(c.firstChild)}else if(r!==s[n])try{o[n]=r}catch(No){}}}}function oa(e,t){return!e.composing&&("OPTION"===e.tagName||sa(e,t)||la(e,t))}function sa(e,t){var n=!0;try{n=document.activeElement!==e}catch(No){}return n&&e.value!==t}function la(e,t){var n=e.value,r=e._vModifiers;if(a(r)){if(r.number)return v(n)!==v(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}var ua={create:aa,update:aa},ca=_((function(e){var t={},n=/;(?![^(]*\))/g,r=/:(.+)/;return e.split(n).forEach((function(e){if(e){var n=e.split(r);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}));function da(e){var t=ha(e.style);return e.staticStyle?A(e.staticStyle,t):t}function ha(e){return Array.isArray(e)?I(e):"string"===typeof e?ca(e):e}function fa(e,t){var n,r={};if(t){var i=e;while(i.componentInstance)i=i.componentInstance._vnode,i&&i.data&&(n=da(i.data))&&A(r,n)}(n=da(e.data))&&A(r,n);var a=e;while(a=a.parent)a.data&&(n=da(a.data))&&A(r,n);return r}var pa,ma=/^--/,va=/\s*!important$/,ga=function(e,t,n){if(ma.test(t))e.style.setProperty(t,n);else if(va.test(n))e.style.setProperty(E(t),n.replace(va,""),"important");else{var r=ba(t);if(Array.isArray(n))for(var i=0,a=n.length;i<a;i++)e.style[r]=n[i];else e.style[r]=n}},ya=["Webkit","Moz","ms"],ba=_((function(e){if(pa=pa||document.createElement("div").style,e=S(e),"filter"!==e&&e in pa)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<ya.length;n++){var r=ya[n]+t;if(r in pa)return r}}));function xa(e,t){var n=t.data,r=e.data;if(!(i(n.staticStyle)&&i(n.style)&&i(r.staticStyle)&&i(r.style))){var o,s,l=t.elm,u=r.staticStyle,c=r.normalizedStyle||r.style||{},d=u||c,h=ha(t.data.style)||{};t.data.normalizedStyle=a(h.__ob__)?A({},h):h;var f=fa(t,!0);for(s in d)i(f[s])&&ga(l,s,"");for(s in f)o=f[s],o!==d[s]&&ga(l,s,null==o?"":o)}}var wa={create:xa,update:xa},_a=/\s+/;function Ca(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(_a).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function Sa(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(_a).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";while(n.indexOf(r)>=0)n=n.replace(r," ");n=n.trim(),n?e.setAttribute("class",n):e.removeAttribute("class")}}function Na(e){if(e){if("object"===typeof e){var t={};return!1!==e.css&&A(t,ka(e.name||"v")),A(t,e),t}return"string"===typeof e?ka(e):void 0}}var ka=_((function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}})),Ea=Z&&!ne,Ma="transition",Oa="animation",Da="transition",Ta="transitionend",Aa="animation",Ia="animationend";Ea&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Da="WebkitTransition",Ta="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Aa="WebkitAnimation",Ia="webkitAnimationEnd"));var $a=Z?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Pa(e){$a((function(){$a(e)}))}function ja(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),Ca(e,t))}function Fa(e,t){e._transitionClasses&&b(e._transitionClasses,t),Sa(e,t)}function Ba(e,t,n){var r=za(e,t),i=r.type,a=r.timeout,o=r.propCount;if(!i)return n();var s=i===Ma?Ta:Ia,l=0,u=function(){e.removeEventListener(s,c),n()},c=function(t){t.target===e&&++l>=o&&u()};setTimeout((function(){l<o&&u()}),a+1),e.addEventListener(s,c)}var La=/\b(transform|all)(,|$)/;function za(e,t){var n,r=window.getComputedStyle(e),i=(r[Da+"Delay"]||"").split(", "),a=(r[Da+"Duration"]||"").split(", "),o=Ra(i,a),s=(r[Aa+"Delay"]||"").split(", "),l=(r[Aa+"Duration"]||"").split(", "),u=Ra(s,l),c=0,d=0;t===Ma?o>0&&(n=Ma,c=o,d=a.length):t===Oa?u>0&&(n=Oa,c=u,d=l.length):(c=Math.max(o,u),n=c>0?o>u?Ma:Oa:null,d=n?n===Ma?a.length:l.length:0);var h=n===Ma&&La.test(r[Da+"Property"]);return{type:n,timeout:c,propCount:d,hasTransform:h}}function Ra(e,t){while(e.length<t.length)e=e.concat(e);return Math.max.apply(null,t.map((function(t,n){return Va(t)+Va(e[n])})))}function Va(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function qa(e,t){var n=e.elm;a(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var r=Na(e.data.transition);if(!i(r)&&!a(n._enterCb)&&1===n.nodeType){var o=r.css,s=r.type,l=r.enterClass,c=r.enterToClass,d=r.enterActiveClass,h=r.appearClass,f=r.appearToClass,p=r.appearActiveClass,m=r.beforeEnter,g=r.enter,y=r.afterEnter,b=r.enterCancelled,x=r.beforeAppear,w=r.appear,_=r.afterAppear,C=r.appearCancelled,S=r.duration,N=An,k=An.$vnode;while(k&&k.parent)N=k.context,k=k.parent;var E=!N._isMounted||!e.isRootInsert;if(!E||w||""===w){var M=E&&h?h:l,O=E&&p?p:d,D=E&&f?f:c,T=E&&x||m,A=E&&"function"===typeof w?w:g,I=E&&_||y,$=E&&C||b,P=v(u(S)?S.enter:S);0;var j=!1!==o&&!ne,F=Wa(A),B=n._enterCb=L((function(){j&&(Fa(n,D),Fa(n,O)),B.cancelled?(j&&Fa(n,M),$&&$(n)):I&&I(n),n._enterCb=null}));e.data.show||Ct(e,"insert",(function(){var t=n.parentNode,r=t&&t._pending&&t._pending[e.key];r&&r.tag===e.tag&&r.elm._leaveCb&&r.elm._leaveCb(),A&&A(n,B)})),T&&T(n),j&&(ja(n,M),ja(n,O),Pa((function(){Fa(n,M),B.cancelled||(ja(n,D),F||(Ua(P)?setTimeout(B,P):Ba(n,s,B)))}))),e.data.show&&(t&&t(),A&&A(n,B)),j||F||B()}}}function Ha(e,t){var n=e.elm;a(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var r=Na(e.data.transition);if(i(r)||1!==n.nodeType)return t();if(!a(n._leaveCb)){var o=r.css,s=r.type,l=r.leaveClass,c=r.leaveToClass,d=r.leaveActiveClass,h=r.beforeLeave,f=r.leave,p=r.afterLeave,m=r.leaveCancelled,g=r.delayLeave,y=r.duration,b=!1!==o&&!ne,x=Wa(f),w=v(u(y)?y.leave:y);0;var _=n._leaveCb=L((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[e.key]=null),b&&(Fa(n,c),Fa(n,d)),_.cancelled?(b&&Fa(n,l),m&&m(n)):(t(),p&&p(n)),n._leaveCb=null}));g?g(C):C()}function C(){_.cancelled||(!e.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[e.key]=e),h&&h(n),b&&(ja(n,l),ja(n,d),Pa((function(){Fa(n,l),_.cancelled||(ja(n,c),x||(Ua(w)?setTimeout(_,w):Ba(n,s,_)))}))),f&&f(n,_),b||x||_())}}function Ua(e){return"number"===typeof e&&!isNaN(e)}function Wa(e){if(i(e))return!1;var t=e.fns;return a(t)?Wa(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function Ya(e,t){!0!==t.data.show&&qa(t)}var Ga=Z?{create:Ya,activate:Ya,remove:function(e,t){!0!==e.data.show?Ha(e,t):t()}}:{},Ka=[Ui,Gi,ia,ua,wa,Ga],Xa=Ka.concat(Ri),Za=Ii({nodeOps:Ni,modules:Xa});ne&&document.addEventListener("selectionchange",(function(){var e=document.activeElement;e&&e.vmodel&&ao(e,"input")}));var Ja={inserted:function(e,t,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?Ct(n,"postpatch",(function(){Ja.componentUpdated(e,t,n)})):Qa(e,t,n.context),e._vOptions=[].map.call(e.options,no)):("textarea"===n.tag||di(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",ro),e.addEventListener("compositionend",io),e.addEventListener("change",io),ne&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){Qa(e,t,n.context);var r=e._vOptions,i=e._vOptions=[].map.call(e.options,no);if(i.some((function(e,t){return!F(e,r[t])}))){var a=e.multiple?t.value.some((function(e){return to(e,i)})):t.value!==t.oldValue&&to(t.value,i);a&&ao(e,"change")}}}};function Qa(e,t,n){eo(e,t,n),(te||re)&&setTimeout((function(){eo(e,t,n)}),0)}function eo(e,t,n){var r=t.value,i=e.multiple;if(!i||Array.isArray(r)){for(var a,o,s=0,l=e.options.length;s<l;s++)if(o=e.options[s],i)a=B(r,no(o))>-1,o.selected!==a&&(o.selected=a);else if(F(no(o),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function to(e,t){return t.every((function(t){return!F(t,e)}))}function no(e){return"_value"in e?e._value:e.value}function ro(e){e.target.composing=!0}function io(e){e.target.composing&&(e.target.composing=!1,ao(e.target,"input"))}function ao(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function oo(e){return!e.componentInstance||e.data&&e.data.transition?e:oo(e.componentInstance._vnode)}var so={bind:function(e,t,n){var r=t.value;n=oo(n);var i=n.data&&n.data.transition,a=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,qa(n,(function(){e.style.display=a}))):e.style.display=r?a:"none"},update:function(e,t,n){var r=t.value,i=t.oldValue;if(!r!==!i){n=oo(n);var a=n.data&&n.data.transition;a?(n.data.show=!0,r?qa(n,(function(){e.style.display=e.__vOriginalDisplay})):Ha(n,(function(){e.style.display="none"}))):e.style.display=r?e.__vOriginalDisplay:"none"}},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}},lo={model:Ja,show:so},uo={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function co(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?co(Nn(t.children)):e}function ho(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var a in i)t[S(a)]=i[a];return t}function fo(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}function po(e){while(e=e.parent)if(e.data.transition)return!0}function mo(e,t){return t.key===e.key&&t.tag===e.tag}var vo=function(e){return e.tag||Pt(e)},go=function(e){return"show"===e.name},yo={name:"transition",props:uo,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(vo),n.length)){0;var r=this.mode;0;var i=n[0];if(po(this.$vnode))return i;var a=co(i);if(!a)return i;if(this._leaving)return fo(e,i);var o="__transition-"+this._uid+"-";a.key=null==a.key?a.isComment?o+"comment":o+a.tag:l(a.key)?0===String(a.key).indexOf(o)?a.key:o+a.key:a.key;var s=(a.data||(a.data={})).transition=ho(this),u=this._vnode,c=co(u);if(a.data.directives&&a.data.directives.some(go)&&(a.data.show=!0),c&&c.data&&!mo(a,c)&&!Pt(c)&&(!c.componentInstance||!c.componentInstance._vnode.isComment)){var d=c.data.transition=A({},s);if("out-in"===r)return this._leaving=!0,Ct(d,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),fo(e,i);if("in-out"===r){if(Pt(a))return u;var h,f=function(){h()};Ct(s,"afterEnter",f),Ct(s,"enterCancelled",f),Ct(d,"delayLeave",(function(e){h=e}))}}return i}}},bo=A({tag:String,moveClass:String},uo);delete bo.mode;var xo={props:bo,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var i=In(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],a=this.children=[],o=ho(this),s=0;s<i.length;s++){var l=i[s];if(l.tag)if(null!=l.key&&0!==String(l.key).indexOf("__vlist"))a.push(l),n[l.key]=l,(l.data||(l.data={})).transition=o;else;}if(r){for(var u=[],c=[],d=0;d<r.length;d++){var h=r[d];h.data.transition=o,h.data.pos=h.elm.getBoundingClientRect(),n[h.key]?u.push(h):c.push(h)}this.kept=e(t,null,u),this.removed=c}return e(t,null,a)},updated:function(){var e=this.prevChildren,t=this.moveClass||(this.name||"v")+"-move";e.length&&this.hasMove(e[0].elm,t)&&(e.forEach(wo),e.forEach(_o),e.forEach(Co),this._reflow=document.body.offsetHeight,e.forEach((function(e){if(e.data.moved){var n=e.elm,r=n.style;ja(n,t),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(Ta,n._moveCb=function e(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(Ta,e),n._moveCb=null,Fa(n,t))})}})))},methods:{hasMove:function(e,t){if(!Ea)return!1;if(this._hasMove)return this._hasMove;var n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach((function(e){Sa(n,e)})),Ca(n,t),n.style.display="none",this.$el.appendChild(n);var r=za(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}};function wo(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function _o(e){e.data.newPos=e.elm.getBoundingClientRect()}function Co(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var a=e.elm.style;a.transform=a.WebkitTransform="translate("+r+"px,"+i+"px)",a.transitionDuration="0s"}}var So={Transition:yo,TransitionGroup:xo};Nr.config.mustUseProp=Vr,Nr.config.isReservedTag=si,Nr.config.isReservedAttr=zr,Nr.config.getTagNamespace=li,Nr.config.isUnknownElement=ci,A(Nr.options.directives,lo),A(Nr.options.components,So),Nr.prototype.__patch__=Z?Za:$,Nr.prototype.$mount=function(e,t){return e=e&&Z?hi(e):void 0,jn(this,e,t)},Z&&setTimeout((function(){q.devtools&&ce&&ce.emit("init",Nr)}),0),t["default"]=Nr},9980:function(e,t,n){(function(t,r){e.exports=r(n(8244))})("undefined"!==typeof self&&self,(function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({"01f9":function(e,t,n){"use strict";var r=n("2d00"),i=n("5ca1"),a=n("2aba"),o=n("32e9"),s=n("84f2"),l=n("41a0"),u=n("7f20"),c=n("38fd"),d=n("2b4c")("iterator"),h=!([].keys&&"next"in[].keys()),f="@@iterator",p="keys",m="values",v=function(){return this};e.exports=function(e,t,n,g,y,b,x){l(n,t,g);var w,_,C,S=function(e){if(!h&&e in M)return M[e];switch(e){case p:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},N=t+" Iterator",k=y==m,E=!1,M=e.prototype,O=M[d]||M[f]||y&&M[y],D=O||S(y),T=y?k?S("entries"):D:void 0,A="Array"==t&&M.entries||O;if(A&&(C=c(A.call(new e)),C!==Object.prototype&&C.next&&(u(C,N,!0),r||"function"==typeof C[d]||o(C,d,v))),k&&O&&O.name!==m&&(E=!0,D=function(){return O.call(this)}),r&&!x||!h&&!E&&M[d]||o(M,d,D),s[t]=D,s[N]=v,y)if(w={values:k?D:S(m),keys:b?D:S(p),entries:T},x)for(_ in w)_ in M||a(M,_,w[_]);else i(i.P+i.F*(h||E),t,w);return w}},"02f4":function(e,t,n){var r=n("4588"),i=n("be13");e.exports=function(e){return function(t,n){var a,o,s=String(i(t)),l=r(n),u=s.length;return l<0||l>=u?e?"":void 0:(a=s.charCodeAt(l),a<55296||a>56319||l+1===u||(o=s.charCodeAt(l+1))<56320||o>57343?e?s.charAt(l):a:e?s.slice(l,l+2):o-56320+(a-55296<<10)+65536)}}},"0390":function(e,t,n){"use strict";var r=n("02f4")(!0);e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},"0bfb":function(e,t,n){"use strict";var r=n("cb7c");e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"0d58":function(e,t,n){var r=n("ce10"),i=n("e11e");e.exports=Object.keys||function(e){return r(e,i)}},1495:function(e,t,n){var r=n("86cc"),i=n("cb7c"),a=n("0d58");e.exports=n("9e1e")?Object.defineProperties:function(e,t){i(e);var n,o=a(t),s=o.length,l=0;while(s>l)r.f(e,n=o[l++],t[n]);return e}},"214f":function(e,t,n){"use strict";n("b0c5");var r=n("2aba"),i=n("32e9"),a=n("79e5"),o=n("be13"),s=n("2b4c"),l=n("520a"),u=s("species"),c=!a((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),d=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();e.exports=function(e,t,n){var h=s(e),f=!a((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),p=f?!a((function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[u]=function(){return n}),n[h](""),!t})):void 0;if(!f||!p||"replace"===e&&!c||"split"===e&&!d){var m=/./[h],v=n(o,h,""[e],(function(e,t,n,r,i){return t.exec===l?f&&!i?{done:!0,value:m.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}})),g=v[0],y=v[1];r(String.prototype,e,g),i(RegExp.prototype,h,2==t?function(e,t){return y.call(e,this,t)}:function(e){return y.call(e,this)})}}},"230e":function(e,t,n){var r=n("d3f4"),i=n("7726").document,a=r(i)&&r(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},"23c6":function(e,t,n){var r=n("2d95"),i=n("2b4c")("toStringTag"),a="Arguments"==r(function(){return arguments}()),o=function(e,t){try{return e[t]}catch(n){}};e.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=o(t=Object(e),i))?n:a?r(t):"Object"==(s=r(t))&&"function"==typeof t.callee?"Arguments":s}},2621:function(e,t){t.f=Object.getOwnPropertySymbols},"2aba":function(e,t,n){var r=n("7726"),i=n("32e9"),a=n("69a8"),o=n("ca5a")("src"),s=n("fa5b"),l="toString",u=(""+s).split(l);n("8378").inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var l="function"==typeof n;l&&(a(n,"name")||i(n,"name",t)),e[t]!==n&&(l&&(a(n,o)||i(n,o,e[t]?""+e[t]:u.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,l,(function(){return"function"==typeof this&&this[o]||s.call(this)}))},"2aeb":function(e,t,n){var r=n("cb7c"),i=n("1495"),a=n("e11e"),o=n("613b")("IE_PROTO"),s=function(){},l="prototype",u=function(){var e,t=n("230e")("iframe"),r=a.length,i="<",o=">";t.style.display="none",n("fab2").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(i+"script"+o+"document.F=Object"+i+"/script"+o),e.close(),u=e.F;while(r--)delete u[l][a[r]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[l]=r(e),n=new s,s[l]=null,n[o]=e):n=u(),void 0===t?n:i(n,t)}},"2b4c":function(e,t,n){var r=n("5537")("wks"),i=n("ca5a"),a=n("7726").Symbol,o="function"==typeof a,s=e.exports=function(e){return r[e]||(r[e]=o&&a[e]||(o?a:i)("Symbol."+e))};s.store=r},"2d00":function(e,t){e.exports=!1},"2d95":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"2fdb":function(e,t,n){"use strict";var r=n("5ca1"),i=n("d2c8"),a="includes";r(r.P+r.F*n("5147")(a),"String",{includes:function(e){return!!~i(this,e,a).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(e,t,n){var r=n("86cc"),i=n("4630");e.exports=n("9e1e")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"38fd":function(e,t,n){var r=n("69a8"),i=n("4bf8"),a=n("613b")("IE_PROTO"),o=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?o:null}},"41a0":function(e,t,n){"use strict";var r=n("2aeb"),i=n("4630"),a=n("7f20"),o={};n("32e9")(o,n("2b4c")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(o,{next:i(1,n)}),a(e,t+" Iterator")}},"456d":function(e,t,n){var r=n("4bf8"),i=n("0d58");n("5eda")("keys",(function(){return function(e){return i(r(e))}}))},4588:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},4630:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"4bf8":function(e,t,n){var r=n("be13");e.exports=function(e){return Object(r(e))}},5147:function(e,t,n){var r=n("2b4c")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(i){}}return!0}},"520a":function(e,t,n){"use strict";var r=n("0bfb"),i=RegExp.prototype.exec,a=String.prototype.replace,o=i,s="lastIndex",l=function(){var e=/a/,t=/b*/g;return i.call(e,"a"),i.call(t,"a"),0!==e[s]||0!==t[s]}(),u=void 0!==/()??/.exec("")[1],c=l||u;c&&(o=function(e){var t,n,o,c,d=this;return u&&(n=new RegExp("^"+d.source+"$(?!\\s)",r.call(d))),l&&(t=d[s]),o=i.call(d,e),l&&o&&(d[s]=d.global?o.index+o[0].length:t),u&&o&&o.length>1&&a.call(o[0],n,(function(){for(c=1;c<arguments.length-2;c++)void 0===arguments[c]&&(o[c]=void 0)})),o}),e.exports=o},"52a7":function(e,t){t.f={}.propertyIsEnumerable},5537:function(e,t,n){var r=n("8378"),i=n("7726"),a="__core-js_shared__",o=i[a]||(i[a]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(e,t,n){var r=n("7726"),i=n("8378"),a=n("32e9"),o=n("2aba"),s=n("9b43"),l="prototype",u=function(e,t,n){var c,d,h,f,p=e&u.F,m=e&u.G,v=e&u.S,g=e&u.P,y=e&u.B,b=m?r:v?r[t]||(r[t]={}):(r[t]||{})[l],x=m?i:i[t]||(i[t]={}),w=x[l]||(x[l]={});for(c in m&&(n=t),n)d=!p&&b&&void 0!==b[c],h=(d?b:n)[c],f=y&&d?s(h,r):g&&"function"==typeof h?s(Function.call,h):h,b&&o(b,c,h,e&u.U),x[c]!=h&&a(x,c,f),g&&w[c]!=h&&(w[c]=h)};r.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},"5eda":function(e,t,n){var r=n("5ca1"),i=n("8378"),a=n("79e5");e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],o={};o[e]=t(n),r(r.S+r.F*a((function(){n(1)})),"Object",o)}},"5f1b":function(e,t,n){"use strict";var r=n("23c6"),i=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var a=n.call(e,t);if("object"!==typeof a)throw new TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==r(e))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},"613b":function(e,t,n){var r=n("5537")("keys"),i=n("ca5a");e.exports=function(e){return r[e]||(r[e]=i(e))}},"626a":function(e,t,n){var r=n("2d95");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},6762:function(e,t,n){"use strict";var r=n("5ca1"),i=n("c366")(!0);r(r.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},6821:function(e,t,n){var r=n("626a"),i=n("be13");e.exports=function(e){return r(i(e))}},"69a8":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"6a99":function(e,t,n){var r=n("d3f4");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},7333:function(e,t,n){"use strict";var r=n("0d58"),i=n("2621"),a=n("52a7"),o=n("4bf8"),s=n("626a"),l=Object.assign;e.exports=!l||n("79e5")((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=r}))?function(e,t){var n=o(e),l=arguments.length,u=1,c=i.f,d=a.f;while(l>u){var h,f=s(arguments[u++]),p=c?r(f).concat(c(f)):r(f),m=p.length,v=0;while(m>v)d.call(f,h=p[v++])&&(n[h]=f[h])}return n}:l},7726:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(e,t,n){var r=n("4588"),i=Math.max,a=Math.min;e.exports=function(e,t){return e=r(e),e<0?i(e+t,0):a(e,t)}},"79e5":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"7f20":function(e,t,n){var r=n("86cc").f,i=n("69a8"),a=n("2b4c")("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,a)&&r(e,a,{configurable:!0,value:t})}},8378:function(e,t){var n=e.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},"84f2":function(e,t){e.exports={}},"86cc":function(e,t,n){var r=n("cb7c"),i=n("c69a"),a=n("6a99"),o=Object.defineProperty;t.f=n("9e1e")?Object.defineProperty:function(e,t,n){if(r(e),t=a(t,!0),r(n),i)try{return o(e,t,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"9b43":function(e,t,n){var r=n("d8e8");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},"9c6c":function(e,t,n){var r=n("2b4c")("unscopables"),i=Array.prototype;void 0==i[r]&&n("32e9")(i,r,{}),e.exports=function(e){i[r][e]=!0}},"9def":function(e,t,n){var r=n("4588"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},"9e1e":function(e,t,n){e.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a352:function(t,n){t.exports=e},a481:function(e,t,n){"use strict";var r=n("cb7c"),i=n("4bf8"),a=n("9def"),o=n("4588"),s=n("0390"),l=n("5f1b"),u=Math.max,c=Math.min,d=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,f=/\$([$&`']|\d\d?)/g,p=function(e){return void 0===e?e:String(e)};n("214f")("replace",2,(function(e,t,n,m){return[function(r,i){var a=e(this),o=void 0==r?void 0:r[t];return void 0!==o?o.call(r,a,i):n.call(String(a),r,i)},function(e,t){var i=m(n,e,this,t);if(i.done)return i.value;var d=r(e),h=String(this),f="function"===typeof t;f||(t=String(t));var g=d.global;if(g){var y=d.unicode;d.lastIndex=0}var b=[];while(1){var x=l(d,h);if(null===x)break;if(b.push(x),!g)break;var w=String(x[0]);""===w&&(d.lastIndex=s(h,a(d.lastIndex),y))}for(var _="",C=0,S=0;S<b.length;S++){x=b[S];for(var N=String(x[0]),k=u(c(o(x.index),h.length),0),E=[],M=1;M<x.length;M++)E.push(p(x[M]));var O=x.groups;if(f){var D=[N].concat(E,k,h);void 0!==O&&D.push(O);var T=String(t.apply(void 0,D))}else T=v(N,h,k,E,O,t);k>=C&&(_+=h.slice(C,k)+T,C=k+N.length)}return _+h.slice(C)}];function v(e,t,r,a,o,s){var l=r+e.length,u=a.length,c=f;return void 0!==o&&(o=i(o),c=h),n.call(s,c,(function(n,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(l);case"<":s=o[i.slice(1,-1)];break;default:var c=+i;if(0===c)return n;if(c>u){var h=d(c/10);return 0===h?n:h<=u?void 0===a[h-1]?i.charAt(1):a[h-1]+i.charAt(1):n}s=a[c-1]}return void 0===s?"":s}))}}))},aae3:function(e,t,n){var r=n("d3f4"),i=n("2d95"),a=n("2b4c")("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[a])?!!t:"RegExp"==i(e))}},ac6a:function(e,t,n){for(var r=n("cadf"),i=n("0d58"),a=n("2aba"),o=n("7726"),s=n("32e9"),l=n("84f2"),u=n("2b4c"),c=u("iterator"),d=u("toStringTag"),h=l.Array,f={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=i(f),m=0;m<p.length;m++){var v,g=p[m],y=f[g],b=o[g],x=b&&b.prototype;if(x&&(x[c]||s(x,c,h),x[d]||s(x,d,g),l[g]=h,y))for(v in r)x[v]||a(x,v,r[v],!0)}},b0c5:function(e,t,n){"use strict";var r=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},be13:function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},c366:function(e,t,n){var r=n("6821"),i=n("9def"),a=n("77f1");e.exports=function(e){return function(t,n,o){var s,l=r(t),u=i(l.length),c=a(o,u);if(e&&n!=n){while(u>c)if(s=l[c++],s!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}}},c649:function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return i})),n.d(t,"d",(function(){return l}));n("a481");function r(){return"undefined"!==typeof window?window.console:e.console}var i=r();function a(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}var o=/-(\w)/g,s=a((function(e){return e.replace(o,(function(e,t){return t?t.toUpperCase():""}))}));function l(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function u(e,t,n){var r=0===n?e.children[0]:e.children[n-1].nextSibling;e.insertBefore(t,r)}}).call(this,n("c8ba"))},c69a:function(e,t,n){e.exports=!n("9e1e")&&!n("79e5")((function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a}))},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},ca5a:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},cadf:function(e,t,n){"use strict";var r=n("9c6c"),i=n("d53b"),a=n("84f2"),o=n("6821");e.exports=n("01f9")(Array,"Array",(function(e,t){this._t=o(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),a.Arguments=a.Array,r("keys"),r("values"),r("entries")},cb7c:function(e,t,n){var r=n("d3f4");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},ce10:function(e,t,n){var r=n("69a8"),i=n("6821"),a=n("c366")(!1),o=n("613b")("IE_PROTO");e.exports=function(e,t){var n,s=i(e),l=0,u=[];for(n in s)n!=o&&r(s,n)&&u.push(n);while(t.length>l)r(s,n=t[l++])&&(~a(u,n)||u.push(n));return u}},d2c8:function(e,t,n){var r=n("aae3"),i=n("be13");e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(e))}},d3f4:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},d53b:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},d8e8:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},e11e:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f559:function(e,t,n){"use strict";var r=n("5ca1"),i=n("9def"),a=n("d2c8"),o="startsWith",s=""[o];r(r.P+r.F*n("5147")(o),"String",{startsWith:function(e){var t=a(this,e,o),n=i(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return s?s.call(t,r,n):t.slice(n,n+r.length)===r}})},f6fd:function(e,t){(function(e){var t="currentScript",n=e.getElementsByTagName("script");t in e||Object.defineProperty(e,t,{get:function(){try{throw new Error}catch(r){var e,t=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(e in n)if(n[e].src==t||"interactive"==n[e].readyState)return n[e];return null}}})})(document)},f751:function(e,t,n){var r=n("5ca1");r(r.S+r.F,"Object",{assign:n("7333")})},fa5b:function(e,t,n){e.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(e,t,n){var r=n("7726").document;e.exports=r&&r.documentElement},fb15:function(e,t,n){"use strict";var r;(n.r(t),"undefined"!==typeof window)&&(n("f6fd"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=r[1]));n("f751"),n("f559"),n("ac6a"),n("cadf"),n("456d");function i(e){if(Array.isArray(e))return e}function a(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done);r=!0)if(n.push(o.value),t&&n.length===t)break}catch(l){i=!0,a=l}finally{try{r||null==s["return"]||s["return"]()}finally{if(i)throw a}}return n}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){if(e){if("string"===typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}function l(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(e,t){return i(e)||a(e,t)||s(e,t)||l()}n("6762"),n("2fdb");function c(e){if(Array.isArray(e))return o(e)}function d(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function h(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function f(e){return c(e)||d(e)||s(e)||h()}var p=n("a352"),m=n.n(p),v=n("c649");function g(e,t,n){return void 0===n||(e=e||{},e[t]=n),e}function y(e,t){return e.map((function(e){return e.elm})).indexOf(t)}function b(e,t,n,r){if(!e)return[];var i=e.map((function(e){return e.elm})),a=t.length-r,o=f(t).map((function(e,t){return t>=a?i.length:i.indexOf(e)}));return n?o.filter((function(e){return-1!==e})):o}function x(e,t){var n=this;this.$nextTick((function(){return n.$emit(e.toLowerCase(),t)}))}function w(e){var t=this;return function(n){null!==t.realList&&t["onDrag"+e](n),x.call(t,e,n)}}function _(e){return["transition-group","TransitionGroup"].includes(e)}function C(e){if(!e||1!==e.length)return!1;var t=u(e,1),n=t[0].componentOptions;return!!n&&_(n.tag)}function S(e,t,n){return e[n]||(t[n]?t[n]():void 0)}function N(e,t,n){var r=0,i=0,a=S(t,n,"header");a&&(r=a.length,e=e?[].concat(f(a),f(e)):f(a));var o=S(t,n,"footer");return o&&(i=o.length,e=e?[].concat(f(e),f(o)):f(o)),{children:e,headerOffset:r,footerOffset:i}}function k(e,t){var n=null,r=function(e,t){n=g(n,e,t)},i=Object.keys(e).filter((function(e){return"id"===e||e.startsWith("data-")})).reduce((function(t,n){return t[n]=e[n],t}),{});if(r("attrs",i),!t)return n;var a=t.on,o=t.props,s=t.attrs;return r("on",a),r("props",o),Object.assign(n.attrs,s),n}var E=["Start","Add","Remove","Update","End"],M=["Choose","Unchoose","Sort","Filter","Clone"],O=["Move"].concat(E,M).map((function(e){return"on"+e})),D=null,T={options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(e){return e}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},A={name:"draggable",inheritAttrs:!1,props:T,data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(e){var t=this.$slots.default;this.transitionMode=C(t);var n=N(t,this.$slots,this.$scopedSlots),r=n.children,i=n.headerOffset,a=n.footerOffset;this.headerOffset=i,this.footerOffset=a;var o=k(this.$attrs,this.componentData);return e(this.getTag(),o,r)},created:function(){null!==this.list&&null!==this.value&&v["b"].error("Value and list props are mutually exclusive! Please set one or another."),"div"!==this.element&&v["b"].warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),void 0!==this.options&&v["b"].warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var e=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var t={};E.forEach((function(n){t["on"+n]=w.call(e,n)})),M.forEach((function(n){t["on"+n]=x.bind(e,n)}));var n=Object.keys(this.$attrs).reduce((function(t,n){return t[Object(v["a"])(n)]=e.$attrs[n],t}),{}),r=Object.assign({},this.options,n,t,{onMove:function(t,n){return e.onDragMove(t,n)}});!("draggable"in r)&&(r.draggable=">*"),this._sortable=new m.a(this.rootContainer,r),this.computeIndexes()},beforeDestroy:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(e){this.updateOptions(e)},deep:!0},$attrs:{handler:function(e){this.updateOptions(e)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var e=this._vnode.fnOptions;return e&&e.functional},getTag:function(){return this.tag||this.element},updateOptions:function(e){for(var t in e){var n=Object(v["a"])(t);-1===O.indexOf(n)&&this._sortable.option(n,e[t])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var e=this.$slots.default;return this.transitionMode?e[0].child.$slots.default:e},computeIndexes:function(){var e=this;this.$nextTick((function(){e.visibleIndexes=b(e.getChildrenNodes(),e.rootContainer.children,e.transitionMode,e.footerOffset)}))},getUnderlyingVm:function(e){var t=y(this.getChildrenNodes()||[],e);if(-1===t)return null;var n=this.realList[t];return{index:t,element:n}},getUnderlyingPotencialDraggableComponent:function(e){var t=e.__vue__;return t&&t.$options&&_(t.$options._componentTag)?t.$parent:!("realList"in t)&&1===t.$children.length&&"realList"in t.$children[0]?t.$children[0]:t},emitChanges:function(e){var t=this;this.$nextTick((function(){t.$emit("change",e)}))},alterList:function(e){if(this.list)e(this.list);else{var t=f(this.value);e(t),this.$emit("input",t)}},spliceList:function(){var e=arguments,t=function(t){return t.splice.apply(t,f(e))};this.alterList(t)},updatePosition:function(e,t){var n=function(n){return n.splice(t,0,n.splice(e,1)[0])};this.alterList(n)},getRelatedContextFromMoveEvent:function(e){var t=e.to,n=e.related,r=this.getUnderlyingPotencialDraggableComponent(t);if(!r)return{component:r};var i=r.realList,a={list:i,component:r};if(t!==n&&i&&r.getUnderlyingVm){var o=r.getUnderlyingVm(n);if(o)return Object.assign(o,a)}return a},getVmIndex:function(e){var t=this.visibleIndexes,n=t.length;return e>n-1?n:t[e]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(e){if(this.noTransitionOnDrag&&this.transitionMode){var t=this.getChildrenNodes();t[e].data=null;var n=this.getComponent();n.children=[],n.kept=void 0}},onDragStart:function(e){this.context=this.getUnderlyingVm(e.item),e.item._underlying_vm_=this.clone(this.context.element),D=e.item},onDragAdd:function(e){var t=e.item._underlying_vm_;if(void 0!==t){Object(v["d"])(e.item);var n=this.getVmIndex(e.newIndex);this.spliceList(n,0,t),this.computeIndexes();var r={element:t,newIndex:n};this.emitChanges({added:r})}},onDragRemove:function(e){if(Object(v["c"])(this.rootContainer,e.item,e.oldIndex),"clone"!==e.pullMode){var t=this.context.index;this.spliceList(t,1);var n={element:this.context.element,oldIndex:t};this.resetTransitionData(t),this.emitChanges({removed:n})}else Object(v["d"])(e.clone)},onDragUpdate:function(e){Object(v["d"])(e.item),Object(v["c"])(e.from,e.item,e.oldIndex);var t=this.context.index,n=this.getVmIndex(e.newIndex);this.updatePosition(t,n);var r={element:this.context.element,oldIndex:t,newIndex:n};this.emitChanges({moved:r})},updateProperty:function(e,t){e.hasOwnProperty(t)&&(e[t]+=this.headerOffset)},computeFutureIndex:function(e,t){if(!e.element)return 0;var n=f(t.to.children).filter((function(e){return"none"!==e.style["display"]})),r=n.indexOf(t.related),i=e.component.getVmIndex(r),a=-1!==n.indexOf(D);return a||!t.willInsertAfter?i:i+1},onDragMove:function(e,t){var n=this.move;if(!n||!this.realList)return!0;var r=this.getRelatedContextFromMoveEvent(e),i=this.context,a=this.computeFutureIndex(r,e);Object.assign(i,{futureIndex:a});var o=Object.assign({},e,{relatedContext:r,draggedContext:i});return n(o,t)},onDragEnd:function(){this.computeIndexes(),D=null}}};"undefined"!==typeof window&&"Vue"in window&&window.Vue.component("draggable",A);var I=A;t["default"]=I}})["default"]}))},8244:function(e,t,n){"use strict";
|
|
46
|
+
/**!
|
|
47
|
+
* Sortable 1.10.2
|
|
48
|
+
* @author RubaXa <trash@rubaxa.org>
|
|
49
|
+
* @author owenm <owen23355@gmail.com>
|
|
50
|
+
* @license MIT
|
|
51
|
+
*/
|
|
52
|
+
function r(e){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(){return a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(this,arguments)}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){i(e,t,n[t])}))}return e}function s(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function l(e,t){if(null==e)return{};var n,r,i=s(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function u(e){return c(e)||d(e)||h()}function c(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function d(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function h(){throw new TypeError("Invalid attempt to spread non-iterable instance")}n.r(t),n.d(t,{MultiDrag:function(){return Bt},Sortable:function(){return Je},Swap:function(){return kt}});var f="1.10.2";function p(e){if("undefined"!==typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var m=p(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),v=p(/Edge/i),g=p(/firefox/i),y=p(/safari/i)&&!p(/chrome/i)&&!p(/android/i),b=p(/iP(ad|od|hone)/i),x=p(/chrome/i)&&p(/android/i),w={capture:!1,passive:!1};function _(e,t,n){e.addEventListener(t,n,!m&&w)}function C(e,t,n){e.removeEventListener(t,n,!m&&w)}function S(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(n){return!1}return!1}}function N(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function k(e,t,n,r){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&S(e,t):S(e,t))||r&&e===n)return e;if(e===n)break}while(e=N(e))}return null}var E,M=/\s+/g;function O(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(M," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(M," ")}}function D(e,t,n){var r=e&&e.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in r||-1!==t.indexOf("webkit")||(t="-webkit-"+t),r[t]=n+("string"===typeof n?"":"px")}}function T(e,t){var n="";if("string"===typeof e)n=e;else do{var r=D(e,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function A(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,a=r.length;if(n)for(;i<a;i++)n(r[i],i);return r}return[]}function I(){var e=document.scrollingElement;return e||document.documentElement}function $(e,t,n,r,i){if(e.getBoundingClientRect||e===window){var a,o,s,l,u,c,d;if(e!==window&&e!==I()?(a=e.getBoundingClientRect(),o=a.top,s=a.left,l=a.bottom,u=a.right,c=a.height,d=a.width):(o=0,s=0,l=window.innerHeight,u=window.innerWidth,c=window.innerHeight,d=window.innerWidth),(t||n)&&e!==window&&(i=i||e.parentNode,!m))do{if(i&&i.getBoundingClientRect&&("none"!==D(i,"transform")||n&&"static"!==D(i,"position"))){var h=i.getBoundingClientRect();o-=h.top+parseInt(D(i,"border-top-width")),s-=h.left+parseInt(D(i,"border-left-width")),l=o+a.height,u=s+a.width;break}}while(i=i.parentNode);if(r&&e!==window){var f=T(i||e),p=f&&f.a,v=f&&f.d;f&&(o/=v,s/=p,d/=p,c/=v,l=o+c,u=s+d)}return{top:o,left:s,bottom:l,right:u,width:d,height:c}}}function P(e,t,n){var r=R(e,!0),i=$(e)[t];while(r){var a=$(r)[n],o=void 0;if(o="top"===n||"left"===n?i>=a:i<=a,!o)return r;if(r===I())break;r=R(r,!1)}return!1}function j(e,t,n){var r=0,i=0,a=e.children;while(i<a.length){if("none"!==a[i].style.display&&a[i]!==Je.ghost&&a[i]!==Je.dragged&&k(a[i],n.draggable,e,!1)){if(r===t)return a[i];r++}i++}return null}function F(e,t){var n=e.lastElementChild;while(n&&(n===Je.ghost||"none"===D(n,"display")||t&&!S(n,t)))n=n.previousElementSibling;return n||null}function B(e,t){var n=0;if(!e||!e.parentNode)return-1;while(e=e.previousElementSibling)"TEMPLATE"===e.nodeName.toUpperCase()||e===Je.clone||t&&!S(e,t)||n++;return n}function L(e){var t=0,n=0,r=I();if(e)do{var i=T(e),a=i.a,o=i.d;t+=e.scrollLeft*a,n+=e.scrollTop*o}while(e!==r&&(e=e.parentNode));return[t,n]}function z(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n);return-1}function R(e,t){if(!e||!e.getBoundingClientRect)return I();var n=e,r=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=D(n);if(n.clientWidth<n.scrollWidth&&("auto"==i.overflowX||"scroll"==i.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==i.overflowY||"scroll"==i.overflowY)){if(!n.getBoundingClientRect||n===document.body)return I();if(r||t)return n;r=!0}}}while(n=n.parentNode);return I()}function V(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function q(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function H(e,t){return function(){if(!E){var n=arguments,r=this;1===n.length?e.call(r,n[0]):e.apply(r,n),E=setTimeout((function(){E=void 0}),t)}}}function U(){clearTimeout(E),E=void 0}function W(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function Y(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function G(e,t){D(e,"position","absolute"),D(e,"top",t.top),D(e,"left",t.left),D(e,"width",t.width),D(e,"height",t.height)}function K(e){D(e,"position",""),D(e,"top",""),D(e,"left",""),D(e,"width",""),D(e,"height","")}var X="Sortable"+(new Date).getTime();function Z(){var e,t=[];return{captureAnimationState:function(){if(t=[],this.options.animation){var e=[].slice.call(this.el.children);e.forEach((function(e){if("none"!==D(e,"display")&&e!==Je.ghost){t.push({target:e,rect:$(e)});var n=o({},t[t.length-1].rect);if(e.thisAnimationDuration){var r=T(e,!0);r&&(n.top-=r.f,n.left-=r.e)}e.fromRect=n}}))}},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(z(t,{target:e}),1)},animateAll:function(n){var r=this;if(!this.options.animation)return clearTimeout(e),void("function"===typeof n&&n());var i=!1,a=0;t.forEach((function(e){var t=0,n=e.target,o=n.fromRect,s=$(n),l=n.prevFromRect,u=n.prevToRect,c=e.rect,d=T(n,!0);d&&(s.top-=d.f,s.left-=d.e),n.toRect=s,n.thisAnimationDuration&&q(l,s)&&!q(o,s)&&(c.top-s.top)/(c.left-s.left)===(o.top-s.top)/(o.left-s.left)&&(t=Q(c,l,u,r.options)),q(s,o)||(n.prevFromRect=o,n.prevToRect=s,t||(t=r.options.animation),r.animate(n,c,s,t)),t&&(i=!0,a=Math.max(a,t),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),t),n.thisAnimationDuration=t)})),clearTimeout(e),i?e=setTimeout((function(){"function"===typeof n&&n()}),a):"function"===typeof n&&n(),t=[]},animate:function(e,t,n,r){if(r){D(e,"transition",""),D(e,"transform","");var i=T(this.el),a=i&&i.a,o=i&&i.d,s=(t.left-n.left)/(a||1),l=(t.top-n.top)/(o||1);e.animatingX=!!s,e.animatingY=!!l,D(e,"transform","translate3d("+s+"px,"+l+"px,0)"),J(e),D(e,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),D(e,"transform","translate3d(0,0,0)"),"number"===typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){D(e,"transition",""),D(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),r)}}}}function J(e){return e.offsetWidth}function Q(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}var ee=[],te={initializeByDefault:!0},ne={mount:function(e){for(var t in te)te.hasOwnProperty(t)&&!(t in e)&&(e[t]=te[t]);ee.push(e)},pluginEvent:function(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var i=e+"Global";ee.forEach((function(r){t[r.pluginName]&&(t[r.pluginName][i]&&t[r.pluginName][i](o({sortable:t},n)),t.options[r.pluginName]&&t[r.pluginName][e]&&t[r.pluginName][e](o({sortable:t},n)))}))},initializePlugins:function(e,t,n,r){for(var i in ee.forEach((function(r){var i=r.pluginName;if(e.options[i]||r.initializeByDefault){var o=new r(e,t,e.options);o.sortable=e,o.options=e.options,e[i]=o,a(n,o.defaults)}})),e.options)if(e.options.hasOwnProperty(i)){var o=this.modifyOption(e,i,e.options[i]);"undefined"!==typeof o&&(e.options[i]=o)}},getEventProperties:function(e,t){var n={};return ee.forEach((function(r){"function"===typeof r.eventProperties&&a(n,r.eventProperties.call(t[r.pluginName],e))})),n},modifyOption:function(e,t,n){var r;return ee.forEach((function(i){e[i.pluginName]&&i.optionListeners&&"function"===typeof i.optionListeners[t]&&(r=i.optionListeners[t].call(e[i.pluginName],n))})),r}};function re(e){var t=e.sortable,n=e.rootEl,r=e.name,i=e.targetEl,a=e.cloneEl,s=e.toEl,l=e.fromEl,u=e.oldIndex,c=e.newIndex,d=e.oldDraggableIndex,h=e.newDraggableIndex,f=e.originalEvent,p=e.putSortable,g=e.extraEventProperties;if(t=t||n&&n[X],t){var y,b=t.options,x="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||m||v?(y=document.createEvent("Event"),y.initEvent(r,!0,!0)):y=new CustomEvent(r,{bubbles:!0,cancelable:!0}),y.to=s||n,y.from=l||n,y.item=i||n,y.clone=a,y.oldIndex=u,y.newIndex=c,y.oldDraggableIndex=d,y.newDraggableIndex=h,y.originalEvent=f,y.pullMode=p?p.lastPutMode:void 0;var w=o({},g,ne.getEventProperties(r,t));for(var _ in w)y[_]=w[_];n&&n.dispatchEvent(y),b[x]&&b[x].call(t,y)}}var ie=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,i=l(n,["evt"]);ne.pluginEvent.bind(Je)(e,t,o({dragEl:oe,parentEl:se,ghostEl:le,rootEl:ue,nextEl:ce,lastDownEl:de,cloneEl:he,cloneHidden:fe,dragStarted:ke,putSortable:be,activeSortable:Je.active,originalEvent:r,oldIndex:pe,oldDraggableIndex:ve,newIndex:me,newDraggableIndex:ge,hideGhostForTarget:Ge,unhideGhostForTarget:Ke,cloneNowHidden:function(){fe=!0},cloneNowShown:function(){fe=!1},dispatchSortableEvent:function(e){ae({sortable:t,name:e,originalEvent:r})}},i))};function ae(e){re(o({putSortable:be,cloneEl:he,targetEl:oe,rootEl:ue,oldIndex:pe,oldDraggableIndex:ve,newIndex:me,newDraggableIndex:ge},e))}var oe,se,le,ue,ce,de,he,fe,pe,me,ve,ge,ye,be,xe,we,_e,Ce,Se,Ne,ke,Ee,Me,Oe,De,Te=!1,Ae=!1,Ie=[],$e=!1,Pe=!1,je=[],Fe=!1,Be=[],Le="undefined"!==typeof document,ze=b,Re=v||m?"cssFloat":"float",Ve=Le&&!x&&!b&&"draggable"in document.createElement("div"),qe=function(){if(Le){if(m)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),He=function(e,t){var n=D(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=j(e,0,t),a=j(e,1,t),o=i&&D(i),s=a&&D(a),l=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+$(i).width,u=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+$(a).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&o["float"]&&"none"!==o["float"]){var c="left"===o["float"]?"left":"right";return!a||"both"!==s.clear&&s.clear!==c?"horizontal":"vertical"}return i&&("block"===o.display||"flex"===o.display||"table"===o.display||"grid"===o.display||l>=r&&"none"===n[Re]||a&&"none"===n[Re]&&l+u>r)?"vertical":"horizontal"},Ue=function(e,t,n){var r=n?e.left:e.top,i=n?e.right:e.bottom,a=n?e.width:e.height,o=n?t.left:t.top,s=n?t.right:t.bottom,l=n?t.width:t.height;return r===o||i===s||r+a/2===o+l/2},We=function(e,t){var n;return Ie.some((function(r){if(!F(r)){var i=$(r),a=r[X].options.emptyInsertThreshold,o=e>=i.left-a&&e<=i.right+a,s=t>=i.top-a&&t<=i.bottom+a;return a&&o&&s?n=r:void 0}})),n},Ye=function(e){function t(e,n){return function(r,i,a,o){var s=r.options.group.name&&i.options.group.name&&r.options.group.name===i.options.group.name;if(null==e&&(n||s))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"===typeof e)return t(e(r,i,a,o),n)(r,i,a,o);var l=(n?r:i).options.group.name;return!0===e||"string"===typeof e&&e===l||e.join&&e.indexOf(l)>-1}}var n={},i=e.group;i&&"object"==r(i)||(i={name:i}),n.name=i.name,n.checkPull=t(i.pull,!0),n.checkPut=t(i.put),n.revertClone=i.revertClone,e.group=n},Ge=function(){!qe&&le&&D(le,"display","none")},Ke=function(){!qe&&le&&D(le,"display","")};Le&&document.addEventListener("click",(function(e){if(Ae)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Ae=!1,!1}),!0);var Xe=function(e){if(oe){e=e.touches?e.touches[0]:e;var t=We(e.clientX,e.clientY);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[X]._onDragOver(n)}}},Ze=function(e){oe&&oe.parentNode[X]._isOutsideThisEl(e.target)};function Je(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=a({},t),e[X]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return He(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Je.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var r in ne.initializePlugins(this,e,n),n)!(r in t)&&(t[r]=n[r]);for(var i in Ye(t),this)"_"===i.charAt(0)&&"function"===typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!t.forceFallback&&Ve,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?_(e,"pointerdown",this._onTapStart):(_(e,"mousedown",this._onTapStart),_(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(_(e,"dragover",this),_(e,"dragenter",this)),Ie.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),a(this,Z())}function Qe(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function et(e,t,n,r,i,a,o,s){var l,u,c=e[X],d=c.options.onMove;return!window.CustomEvent||m||v?(l=document.createEvent("Event"),l.initEvent("move",!0,!0)):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=t,l.from=e,l.dragged=n,l.draggedRect=r,l.related=i||t,l.relatedRect=a||$(t),l.willInsertAfter=s,l.originalEvent=o,e.dispatchEvent(l),d&&(u=d.call(c,l,o)),u}function tt(e){e.draggable=!1}function nt(){Fe=!1}function rt(e,t,n){var r=$(F(n.el,n.options.draggable)),i=10;return t?e.clientX>r.right+i||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+i}function it(e,t,n,r,i,a,o,s){var l=r?e.clientY:e.clientX,u=r?n.height:n.width,c=r?n.top:n.left,d=r?n.bottom:n.right,h=!1;if(!o)if(s&&Oe<u*i){if(!$e&&(1===Me?l>c+u*a/2:l<d-u*a/2)&&($e=!0),$e)h=!0;else if(1===Me?l<c+Oe:l>d-Oe)return-Me}else if(l>c+u*(1-i)/2&&l<d-u*(1-i)/2)return at(t);return h=h||o,h&&(l<c+u*a/2||l>d-u*a/2)?l>c+u/2?1:-1:0}function at(e){return B(oe)<B(e)?1:-1}function ot(e){var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;while(n--)r+=t.charCodeAt(n);return r.toString(36)}function st(e){Be.length=0;var t=e.getElementsByTagName("input"),n=t.length;while(n--){var r=t[n];r.checked&&Be.push(r)}}function lt(e){return setTimeout(e,0)}function ut(e){return clearTimeout(e)}Je.prototype={constructor:Je,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(Ee=null)},_getDirection:function(e,t){return"function"===typeof this.options.direction?this.options.direction.call(this,e,t,oe):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,i=r.preventOnFilter,a=e.type,o=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,s=(o||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,u=r.filter;if(st(n),!oe&&!(/mousedown|pointerdown/.test(a)&&0!==e.button||r.disabled)&&!l.isContentEditable&&(s=k(s,r.draggable,n,!1),(!s||!s.animated)&&de!==s)){if(pe=B(s),ve=B(s,r.draggable),"function"===typeof u){if(u.call(this,e,s,this))return ae({sortable:t,rootEl:l,name:"filter",targetEl:s,toEl:n,fromEl:n}),ie("filter",t,{evt:e}),void(i&&e.cancelable&&e.preventDefault())}else if(u&&(u=u.split(",").some((function(r){if(r=k(l,r.trim(),n,!1),r)return ae({sortable:t,rootEl:r,name:"filter",targetEl:s,fromEl:n,toEl:n}),ie("filter",t,{evt:e}),!0})),u))return void(i&&e.cancelable&&e.preventDefault());r.handle&&!k(l,r.handle,n,!1)||this._prepareDragStart(e,o,s)}}},_prepareDragStart:function(e,t,n){var r,i=this,a=i.el,o=i.options,s=a.ownerDocument;if(n&&!oe&&n.parentNode===a){var l=$(n);if(ue=a,oe=n,se=oe.parentNode,ce=oe.nextSibling,de=n,ye=o.group,Je.dragged=oe,xe={target:oe,clientX:(t||e).clientX,clientY:(t||e).clientY},Se=xe.clientX-l.left,Ne=xe.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,oe.style["will-change"]="all",r=function(){ie("delayEnded",i,{evt:e}),Je.eventCanceled?i._onDrop():(i._disableDelayedDragEvents(),!g&&i.nativeDraggable&&(oe.draggable=!0),i._triggerDragStart(e,t),ae({sortable:i,name:"choose",originalEvent:e}),O(oe,o.chosenClass,!0))},o.ignore.split(",").forEach((function(e){A(oe,e.trim(),tt)})),_(s,"dragover",Xe),_(s,"mousemove",Xe),_(s,"touchmove",Xe),_(s,"mouseup",i._onDrop),_(s,"touchend",i._onDrop),_(s,"touchcancel",i._onDrop),g&&this.nativeDraggable&&(this.options.touchStartThreshold=4,oe.draggable=!0),ie("delayStart",this,{evt:e}),!o.delay||o.delayOnTouchOnly&&!t||this.nativeDraggable&&(v||m))r();else{if(Je.eventCanceled)return void this._onDrop();_(s,"mouseup",i._disableDelayedDrag),_(s,"touchend",i._disableDelayedDrag),_(s,"touchcancel",i._disableDelayedDrag),_(s,"mousemove",i._delayedDragTouchMoveHandler),_(s,"touchmove",i._delayedDragTouchMoveHandler),o.supportPointer&&_(s,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(r,o.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){oe&&tt(oe),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;C(e,"mouseup",this._disableDelayedDrag),C(e,"touchend",this._disableDelayedDrag),C(e,"touchcancel",this._disableDelayedDrag),C(e,"mousemove",this._delayedDragTouchMoveHandler),C(e,"touchmove",this._delayedDragTouchMoveHandler),C(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?_(document,"pointermove",this._onTouchMove):_(document,t?"touchmove":"mousemove",this._onTouchMove):(_(oe,"dragend",this),_(ue,"dragstart",this._onDragStart));try{document.selection?lt((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(e,t){if(Te=!1,ue&&oe){ie("dragStarted",this,{evt:t}),this.nativeDraggable&&_(document,"dragover",Ze);var n=this.options;!e&&O(oe,n.dragClass,!1),O(oe,n.ghostClass,!0),Je.active=this,e&&this._appendGhost(),ae({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(we){this._lastX=we.clientX,this._lastY=we.clientY,Ge();var e=document.elementFromPoint(we.clientX,we.clientY),t=e;while(e&&e.shadowRoot){if(e=e.shadowRoot.elementFromPoint(we.clientX,we.clientY),e===t)break;t=e}if(oe.parentNode[X]._isOutsideThisEl(e),t)do{if(t[X]){var n=void 0;if(n=t[X]._onDragOver({clientX:we.clientX,clientY:we.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);Ke()}},_onTouchMove:function(e){if(xe){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,i=e.touches?e.touches[0]:e,a=le&&T(le,!0),o=le&&a&&a.a,s=le&&a&&a.d,l=ze&&De&&L(De),u=(i.clientX-xe.clientX+r.x)/(o||1)+(l?l[0]-je[0]:0)/(o||1),c=(i.clientY-xe.clientY+r.y)/(s||1)+(l?l[1]-je[1]:0)/(s||1);if(!Je.active&&!Te){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(le){a?(a.e+=u-(_e||0),a.f+=c-(Ce||0)):a={a:1,b:0,c:0,d:1,e:u,f:c};var d="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");D(le,"webkitTransform",d),D(le,"mozTransform",d),D(le,"msTransform",d),D(le,"transform",d),_e=u,Ce=c,we=i}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!le){var e=this.options.fallbackOnBody?document.body:ue,t=$(oe,!0,ze,!0,e),n=this.options;if(ze){De=e;while("static"===D(De,"position")&&"none"===D(De,"transform")&&De!==document)De=De.parentNode;De!==document.body&&De!==document.documentElement?(De===document&&(De=I()),t.top+=De.scrollTop,t.left+=De.scrollLeft):De=I(),je=L(De)}le=oe.cloneNode(!0),O(le,n.ghostClass,!1),O(le,n.fallbackClass,!0),O(le,n.dragClass,!0),D(le,"transition",""),D(le,"transform",""),D(le,"box-sizing","border-box"),D(le,"margin",0),D(le,"top",t.top),D(le,"left",t.left),D(le,"width",t.width),D(le,"height",t.height),D(le,"opacity","0.8"),D(le,"position",ze?"absolute":"fixed"),D(le,"zIndex","100000"),D(le,"pointerEvents","none"),Je.ghost=le,e.appendChild(le),D(le,"transform-origin",Se/parseInt(le.style.width)*100+"% "+Ne/parseInt(le.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,i=n.options;ie("dragStart",this,{evt:e}),Je.eventCanceled?this._onDrop():(ie("setupClone",this),Je.eventCanceled||(he=Y(oe),he.draggable=!1,he.style["will-change"]="",this._hideClone(),O(he,this.options.chosenClass,!1),Je.clone=he),n.cloneId=lt((function(){ie("clone",n),Je.eventCanceled||(n.options.removeCloneOnHide||ue.insertBefore(he,oe),n._hideClone(),ae({sortable:n,name:"clone"}))})),!t&&O(oe,i.dragClass,!0),t?(Ae=!0,n._loopId=setInterval(n._emulateDragOver,50)):(C(document,"mouseup",n._onDrop),C(document,"touchend",n._onDrop),C(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",i.setData&&i.setData.call(n,r,oe)),_(document,"drop",n),D(oe,"transform","translateZ(0)")),Te=!0,n._dragStartId=lt(n._dragStarted.bind(n,t,e)),_(document,"selectstart",n),ke=!0,y&&D(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,r,i,a=this.el,s=e.target,l=this.options,u=l.group,c=Je.active,d=ye===u,h=l.sort,f=be||c,p=this,m=!1;if(!Fe){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),s=k(s,l.draggable,a,!0),A("dragOver"),Je.eventCanceled)return m;if(oe.contains(e.target)||s.animated&&s.animatingX&&s.animatingY||p._ignoreWhileAnimating===s)return j(!1);if(Ae=!1,c&&!l.disabled&&(d?h||(r=!ue.contains(oe)):be===this||(this.lastPutMode=ye.checkPull(this,c,oe,e))&&u.checkPut(this,c,oe,e))){if(i="vertical"===this._getDirection(e,s),t=$(oe),A("dragOverValid"),Je.eventCanceled)return m;if(r)return se=ue,I(),this._hideClone(),A("revert"),Je.eventCanceled||(ce?ue.insertBefore(oe,ce):ue.appendChild(oe)),j(!0);var v=F(a,l.draggable);if(!v||rt(e,i,this)&&!v.animated){if(v===oe)return j(!1);if(v&&a===e.target&&(s=v),s&&(n=$(s)),!1!==et(ue,a,oe,t,s,n,e,!!s))return I(),a.appendChild(oe),se=a,L(),j(!0)}else if(s.parentNode===a){n=$(s);var g,y,b=0,x=oe.parentNode!==a,w=!Ue(oe.animated&&oe.toRect||t,s.animated&&s.toRect||n,i),_=i?"top":"left",C=P(s,"top","top")||P(oe,"top","top"),S=C?C.scrollTop:void 0;if(Ee!==s&&(g=n[_],$e=!1,Pe=!w&&l.invertSwap||x),b=it(e,s,n,i,w?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,Pe,Ee===s),0!==b){var N=B(oe);do{N-=b,y=se.children[N]}while(y&&("none"===D(y,"display")||y===le))}if(0===b||y===s)return j(!1);Ee=s,Me=b;var E=s.nextElementSibling,M=!1;M=1===b;var T=et(ue,a,oe,t,s,n,e,M);if(!1!==T)return 1!==T&&-1!==T||(M=1===T),Fe=!0,setTimeout(nt,30),I(),M&&!E?a.appendChild(oe):s.parentNode.insertBefore(oe,M?E:s),C&&W(C,0,S-C.scrollTop),se=oe.parentNode,void 0===g||Pe||(Oe=Math.abs(g-$(s)[_])),L(),j(!0)}if(a.contains(oe))return j(!1)}return!1}function A(l,u){ie(l,p,o({evt:e,isOwner:d,axis:i?"vertical":"horizontal",revert:r,dragRect:t,targetRect:n,canSort:h,fromSortable:f,target:s,completed:j,onMove:function(n,r){return et(ue,a,oe,t,n,$(n),e,r)},changed:L},u))}function I(){A("dragOverAnimationCapture"),p.captureAnimationState(),p!==f&&f.captureAnimationState()}function j(t){return A("dragOverCompleted",{insertion:t}),t&&(d?c._hideClone():c._showClone(p),p!==f&&(O(oe,be?be.options.ghostClass:c.options.ghostClass,!1),O(oe,l.ghostClass,!0)),be!==p&&p!==Je.active?be=p:p===Je.active&&be&&(be=null),f===p&&(p._ignoreWhileAnimating=s),p.animateAll((function(){A("dragOverAnimationComplete"),p._ignoreWhileAnimating=null})),p!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(s===oe&&!oe.animated||s===a&&!s.animated)&&(Ee=null),l.dragoverBubble||e.rootEl||s===document||(oe.parentNode[X]._isOutsideThisEl(e.target),!t&&Xe(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),m=!0}function L(){me=B(oe),ge=B(oe,l.draggable),ae({sortable:p,name:"change",toEl:a,newIndex:me,newDraggableIndex:ge,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){C(document,"mousemove",this._onTouchMove),C(document,"touchmove",this._onTouchMove),C(document,"pointermove",this._onTouchMove),C(document,"dragover",Xe),C(document,"mousemove",Xe),C(document,"touchmove",Xe)},_offUpEvents:function(){var e=this.el.ownerDocument;C(e,"mouseup",this._onDrop),C(e,"touchend",this._onDrop),C(e,"pointerup",this._onDrop),C(e,"touchcancel",this._onDrop),C(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;me=B(oe),ge=B(oe,n.draggable),ie("drop",this,{evt:e}),se=oe&&oe.parentNode,me=B(oe),ge=B(oe,n.draggable),Je.eventCanceled||(Te=!1,Pe=!1,$e=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),ut(this.cloneId),ut(this._dragStartId),this.nativeDraggable&&(C(document,"drop",this),C(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),y&&D(document.body,"user-select",""),D(oe,"transform",""),e&&(ke&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),le&&le.parentNode&&le.parentNode.removeChild(le),(ue===se||be&&"clone"!==be.lastPutMode)&&he&&he.parentNode&&he.parentNode.removeChild(he),oe&&(this.nativeDraggable&&C(oe,"dragend",this),tt(oe),oe.style["will-change"]="",ke&&!Te&&O(oe,be?be.options.ghostClass:this.options.ghostClass,!1),O(oe,this.options.chosenClass,!1),ae({sortable:this,name:"unchoose",toEl:se,newIndex:null,newDraggableIndex:null,originalEvent:e}),ue!==se?(me>=0&&(ae({rootEl:se,name:"add",toEl:se,fromEl:ue,originalEvent:e}),ae({sortable:this,name:"remove",toEl:se,originalEvent:e}),ae({rootEl:se,name:"sort",toEl:se,fromEl:ue,originalEvent:e}),ae({sortable:this,name:"sort",toEl:se,originalEvent:e})),be&&be.save()):me!==pe&&me>=0&&(ae({sortable:this,name:"update",toEl:se,originalEvent:e}),ae({sortable:this,name:"sort",toEl:se,originalEvent:e})),Je.active&&(null!=me&&-1!==me||(me=pe,ge=ve),ae({sortable:this,name:"end",toEl:se,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){ie("nulling",this),ue=oe=se=le=ce=he=de=fe=xe=we=ke=me=ge=pe=ve=Ee=Me=be=ye=Je.dragged=Je.ghost=Je.clone=Je.active=null,Be.forEach((function(e){e.checked=!0})),Be.length=_e=Ce=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":oe&&(this._onDragOver(e),Qe(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e,t=[],n=this.el.children,r=0,i=n.length,a=this.options;r<i;r++)e=n[r],k(e,a.draggable,this.el,!1)&&t.push(e.getAttribute(a.dataIdAttr)||ot(e));return t},sort:function(e){var t={},n=this.el;this.toArray().forEach((function(e,r){var i=n.children[r];k(i,this.options.draggable,n,!1)&&(t[e]=i)}),this),e.forEach((function(e){t[e]&&(n.removeChild(t[e]),n.appendChild(t[e]))}))},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return k(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var r=ne.modifyOption(this,e,t);n[e]="undefined"!==typeof r?r:t,"group"===e&&Ye(n)},destroy:function(){ie("destroy",this);var e=this.el;e[X]=null,C(e,"mousedown",this._onTapStart),C(e,"touchstart",this._onTapStart),C(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(C(e,"dragover",this),C(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Ie.splice(Ie.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!fe){if(ie("hideClone",this),Je.eventCanceled)return;D(he,"display","none"),this.options.removeCloneOnHide&&he.parentNode&&he.parentNode.removeChild(he),fe=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(fe){if(ie("showClone",this),Je.eventCanceled)return;ue.contains(oe)&&!this.options.group.revertClone?ue.insertBefore(he,oe):ce?ue.insertBefore(he,ce):ue.appendChild(he),this.options.group.revertClone&&this.animate(oe,he),D(he,"display",""),fe=!1}}else this._hideClone()}},Le&&_(document,"touchmove",(function(e){(Je.active||Te)&&e.cancelable&&e.preventDefault()})),Je.utils={on:_,off:C,css:D,find:A,is:function(e,t){return!!k(e,t,e,!1)},extend:V,throttle:H,closest:k,toggleClass:O,clone:Y,index:B,nextTick:lt,cancelNextTick:ut,detectDirection:He,getChild:j},Je.get=function(e){return e[X]},Je.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(Je.utils=o({},Je.utils,e.utils)),ne.mount(e)}))},Je.create=function(e,t){return new Je(e,t)},Je.version=f;var ct,dt,ht,ft,pt,mt,vt=[],gt=!1;function yt(){function e(){for(var e in this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"===typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?_(document,"dragover",this._handleAutoScroll):this.options.supportPointer?_(document,"pointermove",this._handleFallbackAutoScroll):t.touches?_(document,"touchmove",this._handleFallbackAutoScroll):_(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?C(document,"dragover",this._handleAutoScroll):(C(document,"pointermove",this._handleFallbackAutoScroll),C(document,"touchmove",this._handleFallbackAutoScroll),C(document,"mousemove",this._handleFallbackAutoScroll)),xt(),bt(),U()},nulling:function(){pt=dt=ct=gt=mt=ht=ft=null,vt.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,r=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,a=document.elementFromPoint(r,i);if(pt=e,t||v||m||y){_t(e,this.options,a,t);var o=R(a,!0);!gt||mt&&r===ht&&i===ft||(mt&&xt(),mt=setInterval((function(){var a=R(document.elementFromPoint(r,i),!0);a!==o&&(o=a,bt()),_t(e,n.options,a,t)}),10),ht=r,ft=i)}else{if(!this.options.bubbleScroll||R(a,!0)===I())return void bt();_t(e,this.options,R(a,!1),!1)}}},a(e,{pluginName:"scroll",initializeByDefault:!0})}function bt(){vt.forEach((function(e){clearInterval(e.pid)})),vt=[]}function xt(){clearInterval(mt)}var wt,_t=H((function(e,t,n,r){if(t.scroll){var i,a=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,l=t.scrollSpeed,u=I(),c=!1;dt!==n&&(dt=n,bt(),ct=t.scroll,i=t.scrollFn,!0===ct&&(ct=R(n,!0)));var d=0,h=ct;do{var f=h,p=$(f),m=p.top,v=p.bottom,g=p.left,y=p.right,b=p.width,x=p.height,w=void 0,_=void 0,C=f.scrollWidth,S=f.scrollHeight,N=D(f),k=f.scrollLeft,E=f.scrollTop;f===u?(w=b<C&&("auto"===N.overflowX||"scroll"===N.overflowX||"visible"===N.overflowX),_=x<S&&("auto"===N.overflowY||"scroll"===N.overflowY||"visible"===N.overflowY)):(w=b<C&&("auto"===N.overflowX||"scroll"===N.overflowX),_=x<S&&("auto"===N.overflowY||"scroll"===N.overflowY));var M=w&&(Math.abs(y-a)<=s&&k+b<C)-(Math.abs(g-a)<=s&&!!k),O=_&&(Math.abs(v-o)<=s&&E+x<S)-(Math.abs(m-o)<=s&&!!E);if(!vt[d])for(var T=0;T<=d;T++)vt[T]||(vt[T]={});vt[d].vx==M&&vt[d].vy==O&&vt[d].el===f||(vt[d].el=f,vt[d].vx=M,vt[d].vy=O,clearInterval(vt[d].pid),0==M&&0==O||(c=!0,vt[d].pid=setInterval(function(){r&&0===this.layer&&Je.active._onTouchMove(pt);var t=vt[this.layer].vy?vt[this.layer].vy*l:0,n=vt[this.layer].vx?vt[this.layer].vx*l:0;"function"===typeof i&&"continue"!==i.call(Je.dragged.parentNode[X],n,t,e,pt,vt[this.layer].el)||W(vt[this.layer].el,n,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&h!==u&&(h=R(h,!1)));gt=c}}),30),Ct=function(e){var t=e.originalEvent,n=e.putSortable,r=e.dragEl,i=e.activeSortable,a=e.dispatchSortableEvent,o=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(t){var l=n||i;o();var u=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,c=document.elementFromPoint(u.clientX,u.clientY);s(),l&&!l.el.contains(c)&&(a("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function St(){}function Nt(){}function kt(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(e){var t=e.dragEl;wt=t},dragOverValid:function(e){var t=e.completed,n=e.target,r=e.onMove,i=e.activeSortable,a=e.changed,o=e.cancel;if(i.options.swap){var s=this.sortable.el,l=this.options;if(n&&n!==s){var u=wt;!1!==r(n)?(O(n,l.swapClass,!0),wt=n):wt=null,u&&u!==wt&&O(u,l.swapClass,!1)}a(),t(!0),o()}},drop:function(e){var t=e.activeSortable,n=e.putSortable,r=e.dragEl,i=n||this.sortable,a=this.options;wt&&O(wt,a.swapClass,!1),wt&&(a.swap||n&&n.options.swap)&&r!==wt&&(i.captureAnimationState(),i!==t&&t.captureAnimationState(),Et(r,wt),i.animateAll(),i!==t&&t.animateAll())},nulling:function(){wt=null}},a(e,{pluginName:"swap",eventProperties:function(){return{swapItem:wt}}})}function Et(e,t){var n,r,i=e.parentNode,a=t.parentNode;i&&a&&!i.isEqualNode(t)&&!a.isEqualNode(e)&&(n=B(e),r=B(t),i.isEqualNode(a)&&n<r&&r++,i.insertBefore(t,i.children[n]),a.insertBefore(e,a.children[r]))}St.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=j(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(t,r):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:Ct},a(St,{pluginName:"revertOnSpill"}),Nt.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable,r=n||this.sortable;r.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),r.animateAll()},drop:Ct},a(Nt,{pluginName:"removeOnSpill"});var Mt,Ot,Dt,Tt,At,It=[],$t=[],Pt=!1,jt=!1,Ft=!1;function Bt(){function e(e){for(var t in this)"_"===t.charAt(0)&&"function"===typeof this[t]&&(this[t]=this[t].bind(this));e.options.supportPointer?_(document,"pointerup",this._deselectMultiDrag):(_(document,"mouseup",this._deselectMultiDrag),_(document,"touchend",this._deselectMultiDrag)),_(document,"keydown",this._checkKeyDown),_(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(t,n){var r="";It.length&&Ot===e?It.forEach((function(e,t){r+=(t?", ":"")+e.textContent})):r=n.textContent,t.setData("Text",r)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(e){var t=e.dragEl;Dt=t},delayEnded:function(){this.isMultiDrag=~It.indexOf(Dt)},setupClone:function(e){var t=e.sortable,n=e.cancel;if(this.isMultiDrag){for(var r=0;r<It.length;r++)$t.push(Y(It[r])),$t[r].sortableIndex=It[r].sortableIndex,$t[r].draggable=!1,$t[r].style["will-change"]="",O($t[r],this.options.selectedClass,!1),It[r]===Dt&&O($t[r],this.options.chosenClass,!1);t._hideClone(),n()}},clone:function(e){var t=e.sortable,n=e.rootEl,r=e.dispatchSortableEvent,i=e.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||It.length&&Ot===t&&(zt(!0,n),r("clone"),i()))},showClone:function(e){var t=e.cloneNowShown,n=e.rootEl,r=e.cancel;this.isMultiDrag&&(zt(!1,n),$t.forEach((function(e){D(e,"display","")})),t(),At=!1,r())},hideClone:function(e){var t=this,n=(e.sortable,e.cloneNowHidden),r=e.cancel;this.isMultiDrag&&($t.forEach((function(e){D(e,"display","none"),t.options.removeCloneOnHide&&e.parentNode&&e.parentNode.removeChild(e)})),n(),At=!0,r())},dragStartGlobal:function(e){e.sortable;!this.isMultiDrag&&Ot&&Ot.multiDrag._deselectMultiDrag(),It.forEach((function(e){e.sortableIndex=B(e)})),It=It.sort((function(e,t){return e.sortableIndex-t.sortableIndex})),Ft=!0},dragStarted:function(e){var t=this,n=e.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){It.forEach((function(e){e!==Dt&&D(e,"position","absolute")}));var r=$(Dt,!1,!0,!0);It.forEach((function(e){e!==Dt&&G(e,r)})),jt=!0,Pt=!0}n.animateAll((function(){jt=!1,Pt=!1,t.options.animation&&It.forEach((function(e){K(e)})),t.options.sort&&Rt()}))}},dragOver:function(e){var t=e.target,n=e.completed,r=e.cancel;jt&&~It.indexOf(t)&&(n(!1),r())},revert:function(e){var t=e.fromSortable,n=e.rootEl,r=e.sortable,i=e.dragRect;It.length>1&&(It.forEach((function(e){r.addAnimationState({target:e,rect:jt?$(e):i}),K(e),e.fromRect=i,t.removeAnimationState(e)})),jt=!1,Lt(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(e){var t=e.sortable,n=e.isOwner,r=e.insertion,i=e.activeSortable,a=e.parentEl,o=e.putSortable,s=this.options;if(r){if(n&&i._hideClone(),Pt=!1,s.animation&&It.length>1&&(jt||!n&&!i.options.sort&&!o)){var l=$(Dt,!1,!0,!0);It.forEach((function(e){e!==Dt&&(G(e,l),a.appendChild(e))})),jt=!0}if(!n)if(jt||Rt(),It.length>1){var u=At;i._showClone(t),i.options.animation&&!At&&u&&$t.forEach((function(e){i.addAnimationState({target:e,rect:Tt}),e.fromRect=Tt,e.thisAnimationDuration=null}))}else i._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner,r=e.activeSortable;if(It.forEach((function(e){e.thisAnimationDuration=null})),r.options.animation&&!n&&r.multiDrag.isMultiDrag){Tt=a({},t);var i=T(Dt,!0);Tt.top-=i.f,Tt.left-=i.e}},dragOverAnimationComplete:function(){jt&&(jt=!1,Rt())},drop:function(e){var t=e.originalEvent,n=e.rootEl,r=e.parentEl,i=e.sortable,a=e.dispatchSortableEvent,o=e.oldIndex,s=e.putSortable,l=s||this.sortable;if(t){var u=this.options,c=r.children;if(!Ft)if(u.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),O(Dt,u.selectedClass,!~It.indexOf(Dt)),~It.indexOf(Dt))It.splice(It.indexOf(Dt),1),Mt=null,re({sortable:i,rootEl:n,name:"deselect",targetEl:Dt,originalEvt:t});else{if(It.push(Dt),re({sortable:i,rootEl:n,name:"select",targetEl:Dt,originalEvt:t}),t.shiftKey&&Mt&&i.el.contains(Mt)){var d,h,f=B(Mt),p=B(Dt);if(~f&&~p&&f!==p)for(p>f?(h=f,d=p):(h=p,d=f+1);h<d;h++)~It.indexOf(c[h])||(O(c[h],u.selectedClass,!0),It.push(c[h]),re({sortable:i,rootEl:n,name:"select",targetEl:c[h],originalEvt:t}))}else Mt=Dt;Ot=l}if(Ft&&this.isMultiDrag){if((r[X].options.sort||r!==n)&&It.length>1){var m=$(Dt),v=B(Dt,":not(."+this.options.selectedClass+")");if(!Pt&&u.animation&&(Dt.thisAnimationDuration=null),l.captureAnimationState(),!Pt&&(u.animation&&(Dt.fromRect=m,It.forEach((function(e){if(e.thisAnimationDuration=null,e!==Dt){var t=jt?$(e):m;e.fromRect=t,l.addAnimationState({target:e,rect:t})}}))),Rt(),It.forEach((function(e){c[v]?r.insertBefore(e,c[v]):r.appendChild(e),v++})),o===B(Dt))){var g=!1;It.forEach((function(e){e.sortableIndex===B(e)||(g=!0)})),g&&a("update")}It.forEach((function(e){K(e)})),l.animateAll()}Ot=l}(n===r||s&&"clone"!==s.lastPutMode)&&$t.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))}},nullingGlobal:function(){this.isMultiDrag=Ft=!1,$t.length=0},destroyGlobal:function(){this._deselectMultiDrag(),C(document,"pointerup",this._deselectMultiDrag),C(document,"mouseup",this._deselectMultiDrag),C(document,"touchend",this._deselectMultiDrag),C(document,"keydown",this._checkKeyDown),C(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(("undefined"===typeof Ft||!Ft)&&Ot===this.sortable&&(!e||!k(e.target,this.options.draggable,this.sortable.el,!1))&&(!e||0===e.button))while(It.length){var t=It[0];O(t,this.options.selectedClass,!1),It.shift(),re({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t,originalEvt:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},a(e,{pluginName:"multiDrag",utils:{select:function(e){var t=e.parentNode[X];t&&t.options.multiDrag&&!~It.indexOf(e)&&(Ot&&Ot!==t&&(Ot.multiDrag._deselectMultiDrag(),Ot=t),O(e,t.options.selectedClass,!0),It.push(e))},deselect:function(e){var t=e.parentNode[X],n=It.indexOf(e);t&&t.options.multiDrag&&~n&&(O(e,t.options.selectedClass,!1),It.splice(n,1))}},eventProperties:function(){var e=this,t=[],n=[];return It.forEach((function(r){var i;t.push({multiDragElement:r,index:r.sortableIndex}),i=jt&&r!==Dt?-1:jt?B(r,":not(."+e.options.selectedClass+")"):B(r),n.push({multiDragElement:r,index:i})})),{items:u(It),clones:[].concat($t),oldIndicies:t,newIndicies:n}},optionListeners:{multiDragKey:function(e){return e=e.toLowerCase(),"ctrl"===e?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}function Lt(e,t){It.forEach((function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)}))}function zt(e,t){$t.forEach((function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)}))}function Rt(){It.forEach((function(e){e!==Dt&&e.parentNode&&e.parentNode.removeChild(e)}))}Je.mount(new yt),Je.mount(Nt,St),t["default"]=Je},2300:function(e,t,n){"use strict";n.d(t,{DS:function(){return q}});const r="3.7.2",i=r,a="function"===typeof atob,o="function"===typeof btoa,s="function"===typeof Buffer,l="function"===typeof TextDecoder?new TextDecoder:void 0,u="function"===typeof TextEncoder?new TextEncoder:void 0,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",d=Array.prototype.slice.call(c),h=(e=>{let t={};return e.forEach(((e,n)=>t[e]=n)),t})(d),f=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,p=String.fromCharCode.bind(String),m="function"===typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):(e,t=(e=>e))=>new Uint8Array(Array.prototype.slice.call(e,0).map(t)),v=e=>e.replace(/=/g,"").replace(/[+\/]/g,(e=>"+"==e?"-":"_")),g=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),y=e=>{let t,n,r,i,a="";const o=e.length%3;for(let s=0;s<e.length;){if((n=e.charCodeAt(s++))>255||(r=e.charCodeAt(s++))>255||(i=e.charCodeAt(s++))>255)throw new TypeError("invalid character found");t=n<<16|r<<8|i,a+=d[t>>18&63]+d[t>>12&63]+d[t>>6&63]+d[63&t]}return o?a.slice(0,o-3)+"===".substring(o):a},b=o?e=>btoa(e):s?e=>Buffer.from(e,"binary").toString("base64"):y,x=s?e=>Buffer.from(e).toString("base64"):e=>{const t=4096;let n=[];for(let r=0,i=e.length;r<i;r+=t)n.push(p.apply(null,e.subarray(r,r+t)));return b(n.join(""))},w=(e,t=!1)=>t?v(x(e)):x(e),_=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?p(192|t>>>6)+p(128|63&t):p(224|t>>>12&15)+p(128|t>>>6&63)+p(128|63&t)}t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return p(240|t>>>18&7)+p(128|t>>>12&63)+p(128|t>>>6&63)+p(128|63&t)},C=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,S=e=>e.replace(C,_),N=s?e=>Buffer.from(e,"utf8").toString("base64"):u?e=>x(u.encode(e)):e=>b(S(e)),k=(e,t=!1)=>t?v(N(e)):N(e),E=e=>k(e,!0),M=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,O=e=>{switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),n=t-65536;return p(55296+(n>>>10))+p(56320+(1023&n));case 3:return p((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return p((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},D=e=>e.replace(M,O),T=e=>{if(e=e.replace(/\s+/g,""),!f.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let t,n,r,i="";for(let a=0;a<e.length;)t=h[e.charAt(a++)]<<18|h[e.charAt(a++)]<<12|(n=h[e.charAt(a++)])<<6|(r=h[e.charAt(a++)]),i+=64===n?p(t>>16&255):64===r?p(t>>16&255,t>>8&255):p(t>>16&255,t>>8&255,255&t);return i},A=a?e=>atob(g(e)):s?e=>Buffer.from(e,"base64").toString("binary"):T,I=s?e=>m(Buffer.from(e,"base64")):e=>m(A(e),(e=>e.charCodeAt(0))),$=e=>I(j(e)),P=s?e=>Buffer.from(e,"base64").toString("utf8"):l?e=>l.decode(I(e)):e=>D(A(e)),j=e=>g(e.replace(/[-_]/g,(e=>"-"==e?"+":"/"))),F=e=>P(j(e)),B=e=>{if("string"!==typeof e)return!1;const t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},L=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),z=function(){const e=(e,t)=>Object.defineProperty(String.prototype,e,L(t));e("fromBase64",(function(){return F(this)})),e("toBase64",(function(e){return k(this,e)})),e("toBase64URI",(function(){return k(this,!0)})),e("toBase64URL",(function(){return k(this,!0)})),e("toUint8Array",(function(){return $(this)}))},R=function(){const e=(e,t)=>Object.defineProperty(Uint8Array.prototype,e,L(t));e("toBase64",(function(e){return w(this,e)})),e("toBase64URI",(function(){return w(this,!0)})),e("toBase64URL",(function(){return w(this,!0)}))},V=()=>{z(),R()},q={version:r,VERSION:i,atob:A,atobPolyfill:T,btoa:b,btoaPolyfill:y,fromBase64:F,toBase64:k,encode:k,encodeURI:E,encodeURL:E,utob:S,btou:D,decode:F,isValid:B,fromUint8Array:w,toUint8Array:$,extendString:z,extendUint8Array:R,extendBuiltins:V}},8466:function(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{ku:function(){return wI}});var i={epsilon:1e-12,matrix:"Matrix",number:"number",precision:64,predictable:!1,randomSeed:null},a=["Matrix","Array"],o=["number","BigNumber","Fraction"];var s=function(e){if(e)throw new Error("The global config is readonly. \nPlease create a mathjs instance if you want to change the default configuration. \nExample:\n\n import { create, all } from 'mathjs';\n const mathjs = create(all);\n mathjs.config({ number: 'BigNumber' });\n");return Object.freeze(i)};function l(e){return"number"===typeof e}function u(e){return!(!e||"object"!==typeof e||"function"!==typeof e.constructor)&&(!0===e.isBigNumber&&"object"===typeof e.constructor.prototype&&!0===e.constructor.prototype.isBigNumber||"function"===typeof e.constructor.isDecimal&&!0===e.constructor.isDecimal(e))}function c(e){return e&&"object"===typeof e&&!0===Object.getPrototypeOf(e).isComplex||!1}function d(e){return e&&"object"===typeof e&&!0===Object.getPrototypeOf(e).isFraction||!1}function h(e){return e&&!0===e.constructor.prototype.isUnit||!1}function f(e){return"string"===typeof e}r(s,i,{MATRIX_OPTIONS:a,NUMBER_OPTIONS:o});var p=Array.isArray;function m(e){return e&&!0===e.constructor.prototype.isMatrix||!1}function v(e){return Array.isArray(e)||m(e)}function g(e){return e&&e.isDenseMatrix&&!0===e.constructor.prototype.isMatrix||!1}function y(e){return e&&e.isSparseMatrix&&!0===e.constructor.prototype.isMatrix||!1}function b(e){return e&&!0===e.constructor.prototype.isRange||!1}function x(e){return e&&!0===e.constructor.prototype.isIndex||!1}function w(e){return"boolean"===typeof e}function _(e){return e&&!0===e.constructor.prototype.isResultSet||!1}function C(e){return e&&!0===e.constructor.prototype.isHelp||!1}function S(e){return"function"===typeof e}function N(e){return e instanceof Date}function k(e){return e instanceof RegExp}function E(e){return!(!e||"object"!==typeof e||e.constructor!==Object||c(e)||d(e))}function M(e){return null===e}function O(e){return void 0===e}function D(e){return e&&!0===e.isAccessorNode&&!0===e.constructor.prototype.isNode||!1}function T(e){return e&&!0===e.isArrayNode&&!0===e.constructor.prototype.isNode||!1}function A(e){return e&&!0===e.isAssignmentNode&&!0===e.constructor.prototype.isNode||!1}function I(e){return e&&!0===e.isBlockNode&&!0===e.constructor.prototype.isNode||!1}function $(e){return e&&!0===e.isConditionalNode&&!0===e.constructor.prototype.isNode||!1}function P(e){return e&&!0===e.isConstantNode&&!0===e.constructor.prototype.isNode||!1}function j(e){return e&&!0===e.isFunctionAssignmentNode&&!0===e.constructor.prototype.isNode||!1}function F(e){return e&&!0===e.isFunctionNode&&!0===e.constructor.prototype.isNode||!1}function B(e){return e&&!0===e.isIndexNode&&!0===e.constructor.prototype.isNode||!1}function L(e){return e&&!0===e.isNode&&!0===e.constructor.prototype.isNode||!1}function z(e){return e&&!0===e.isObjectNode&&!0===e.constructor.prototype.isNode||!1}function R(e){return e&&!0===e.isOperatorNode&&!0===e.constructor.prototype.isNode||!1}function V(e){return e&&!0===e.isParenthesisNode&&!0===e.constructor.prototype.isNode||!1}function q(e){return e&&!0===e.isRangeNode&&!0===e.constructor.prototype.isNode||!1}function H(e){return e&&!0===e.isSymbolNode&&!0===e.constructor.prototype.isNode||!1}function U(e){return e&&!0===e.constructor.prototype.isChain||!1}function W(e){var t=typeof e;return"object"===t?null===e?"null":Array.isArray(e)?"Array":e instanceof Date?"Date":e instanceof RegExp?"RegExp":u(e)?"BigNumber":c(e)?"Complex":d(e)?"Fraction":m(e)?"Matrix":h(e)?"Unit":x(e)?"Index":b(e)?"Range":_(e)?"ResultSet":L(e)?e.type:U(e)?"Chain":C(e)?"Help":"Object":"function"===t?"Function":t}function Y(e){return"boolean"===typeof e||!!isFinite(e)&&e===Math.round(e)}var G=Math.sign||function(e){return e>0?1:e<0?-1:0},K=Math.log2||function(e){return Math.log(e)/Math.LN2},X=Math.log10||function(e){return Math.log(e)/Math.LN10},Z=Math.log1p||function(e){return Math.log(e+1)},J=Math.cbrt||function(e){if(0===e)return e;var t,n=e<0;return n&&(e=-e),isFinite(e)?(t=Math.exp(Math.log(e)/3),t=(e/(t*t)+2*t)/3):t=e,n?-t:t},Q=Math.expm1||function(e){return e>=2e-4||e<=-2e-4?Math.exp(e)-1:e+e*e/2+e*e*e/6};function ee(e,t,n){var r={2:"0b",8:"0o",16:"0x"},i=r[t],a="";if(n){if(n<1)throw new Error("size must be in greater than 0");if(!Y(n))throw new Error("size must be an integer");if(e>2**(n-1)-1||e<-(2**(n-1)))throw new Error("Value must be in range [-2^".concat(n-1,", 2^").concat(n-1,"-1]"));if(!Y(e))throw new Error("Value must be an integer");e<0&&(e+=2**n),a="i".concat(n)}var o="";return e<0&&(e=-e,o="-"),"".concat(o).concat(i).concat(e.toString(t)).concat(a)}function te(e,t){if("function"===typeof t)return t(e);if(e===1/0)return"Infinity";if(e===-1/0)return"-Infinity";if(isNaN(e))return"NaN";var n,r,i="auto";if(t&&(t.notation&&(i=t.notation),l(t)?n=t:l(t.precision)&&(n=t.precision),t.wordSize&&(r=t.wordSize,"number"!==typeof r)))throw new Error('Option "wordSize" must be a number');switch(i){case"fixed":return ie(e,n);case"exponential":return ae(e,n);case"engineering":return re(e,n);case"bin":return ee(e,2,r);case"oct":return ee(e,8,r);case"hex":return ee(e,16,r);case"auto":return oe(e,n,t&&t).replace(/((\.\d*?)(0+))($|e)/,(function(){var e=arguments[2],t=arguments[4];return"."!==e?e+t:t}));default:throw new Error('Unknown notation "'+i+'". Choose "auto", "exponential", "fixed", "bin", "oct", or "hex.')}}function ne(e){var t=String(e).toLowerCase().match(/^(-?)(\d+\.?\d*)(e([+-]?\d+))?$/);if(!t)throw new SyntaxError("Invalid number "+e);var n=t[1],r=t[2],i=parseFloat(t[4]||"0"),a=r.indexOf(".");i+=-1!==a?a-1:r.length-1;var o=r.replace(".","").replace(/^0*/,(function(e){return i-=e.length,""})).replace(/0*$/,"").split("").map((function(e){return parseInt(e)}));return 0===o.length&&(o.push(0),i++),{sign:n,coefficients:o,exponent:i}}function re(e,t){if(isNaN(e)||!isFinite(e))return String(e);var n=ne(e),r=se(n,t),i=r.exponent,a=r.coefficients,o=i%3===0?i:i<0?i-3-i%3:i-i%3;if(l(t))while(t>a.length||i-o+1>a.length)a.push(0);else for(var s=Math.abs(i-o)-(a.length-1),u=0;u<s;u++)a.push(0);var c=Math.abs(i-o),d=1;while(c>0)d++,c--;var h=a.slice(d).join(""),f=l(t)&&h.length||h.match(/[1-9]/)?"."+h:"",p=a.slice(0,d).join("")+f+"e"+(i>=0?"+":"")+o.toString();return r.sign+p}function ie(e,t){if(isNaN(e)||!isFinite(e))return String(e);var n=ne(e),r="number"===typeof t?se(n,n.exponent+1+t):n,i=r.coefficients,a=r.exponent+1,o=a+(t||0);return i.length<o&&(i=i.concat(le(o-i.length))),a<0&&(i=le(1-a).concat(i),a=1),a<i.length&&i.splice(a,0,0===a?"0.":"."),r.sign+i.join("")}function ae(e,t){if(isNaN(e)||!isFinite(e))return String(e);var n=ne(e),r=t?se(n,t):n,i=r.coefficients,a=r.exponent;i.length<t&&(i=i.concat(le(t-i.length)));var o=i.shift();return r.sign+o+(i.length>0?"."+i.join(""):"")+"e"+(a>=0?"+":"")+a}function oe(e,t,n){if(isNaN(e)||!isFinite(e))return String(e);var r=n&&void 0!==n.lowerExp?n.lowerExp:-3,i=n&&void 0!==n.upperExp?n.upperExp:5,a=ne(e),o=t?se(a,t):a;if(o.exponent<r||o.exponent>=i)return ae(e,t);var s=o.coefficients,l=o.exponent;s.length<t&&(s=s.concat(le(t-s.length))),s=s.concat(le(l-s.length+1+(s.length<t?t-s.length:0))),s=le(-l).concat(s);var u=l>0?l:0;return u<s.length-1&&s.splice(u+1,0,"."),o.sign+s.join("")}function se(e,t){var n={sign:e.sign,coefficients:e.coefficients,exponent:e.exponent},r=n.coefficients;while(t<=0)r.unshift(0),n.exponent++,t++;if(r.length>t){var i=r.splice(t,r.length-t);if(i[0]>=5){var a=t-1;r[a]++;while(10===r[a])r.pop(),0===a&&(r.unshift(0),n.exponent++,a++),a--,r[a]++}}return n}function le(e){for(var t=[],n=0;n<e;n++)t.push(0);return t}function ue(e){return e.toExponential().replace(/e.*$/,"").replace(/^0\.?0*|\./,"").length}var ce=Number.EPSILON||2220446049250313e-31;function de(e,t,n){if(null===n||void 0===n)return e===t;if(e===t)return!0;if(isNaN(e)||isNaN(t))return!1;if(isFinite(e)&&isFinite(t)){var r=Math.abs(e-t);return r<ce||r<=Math.max(Math.abs(e),Math.abs(t))*n}return!1}var he=Math.acosh||function(e){return Math.log(Math.sqrt(e*e-1)+e)},fe=Math.asinh||function(e){return Math.log(Math.sqrt(e*e+1)+e)},pe=Math.atanh||function(e){return Math.log((1+e)/(1-e))/2},me=Math.cosh||function(e){return(Math.exp(e)+Math.exp(-e))/2},ve=Math.sinh||function(e){return(Math.exp(e)-Math.exp(-e))/2},ge=Math.tanh||function(e){var t=Math.exp(2*e);return(t-1)/(t+1)};function ye(e,t){var n=e>0||!(e<0)&&1/e===1/0,r=t>0||!(t<0)&&1/t===1/0;return n^r?-e:e}function be(e,t,n){var r=e.constructor,i=new r(2),a="";if(n){if(n<1)throw new Error("size must be in greater than 0");if(!Y(n))throw new Error("size must be an integer");if(e.greaterThan(i.pow(n-1).sub(1))||e.lessThan(i.pow(n-1).mul(-1)))throw new Error("Value must be in range [-2^".concat(n-1,", 2^").concat(n-1,"-1]"));if(!e.isInteger())throw new Error("Value must be an integer");e.lessThan(0)&&(e=e.add(i.pow(n))),a="i".concat(n)}switch(t){case 2:return"".concat(e.toBinary()).concat(a);case 8:return"".concat(e.toOctal()).concat(a);case 16:return"".concat(e.toHexadecimal()).concat(a);default:throw new Error("Base ".concat(t," not supported "))}}function xe(e,t){if("function"===typeof t)return t(e);if(!e.isFinite())return e.isNaN()?"NaN":e.gt(0)?"Infinity":"-Infinity";var n,r,i="auto";if(void 0!==t&&(t.notation&&(i=t.notation),"number"===typeof t?n=t:t.precision&&(n=t.precision),t.wordSize&&(r=t.wordSize,"number"!==typeof r)))throw new Error('Option "wordSize" must be a number');switch(i){case"fixed":return Ce(e,n);case"exponential":return _e(e,n);case"engineering":return we(e,n);case"bin":return be(e,2,r);case"oct":return be(e,8,r);case"hex":return be(e,16,r);case"auto":var a,o=t&&void 0!==t.lowerExp?t.lowerExp:-3,s=t&&void 0!==t.upperExp?t.upperExp:5;if(e.isZero())return"0";var l=e.toSignificantDigits(n),u=l.e;return a=u>=o&&u<s?l.toFixed():_e(e,n),a.replace(/((\.\d*?)(0+))($|e)/,(function(){var e=arguments[2],t=arguments[4];return"."!==e?e+t:t}));default:throw new Error('Unknown notation "'+i+'". Choose "auto", "exponential", "fixed", "bin", "oct", or "hex.')}}function we(e,t){var n=e.e,r=n%3===0?n:n<0?n-3-n%3:n-n%3,i=e.mul(Math.pow(10,-r)),a=i.toPrecision(t);return-1!==a.indexOf("e")&&(a=i.toString()),a+"e"+(n>=0?"+":"")+r.toString()}function _e(e,t){return void 0!==t?e.toExponential(t-1):e.toExponential()}function Ce(e,t){return e.toFixed(t)}function Se(e,t){var n=e.length-t.length,r=e.length;return e.substring(n,r)===t}function Ne(e,t){var n=ke(e,t);return t&&"object"===typeof t&&"truncate"in t&&n.length>t.truncate?n.substring(0,t.truncate-3)+"...":n}function ke(e,t){if("number"===typeof e)return te(e,t);if(u(e))return xe(e,t);if(De(e))return t&&"decimal"===t.fraction?e.toString():e.s*e.n+"/"+e.d;if(Array.isArray(e))return Oe(e,t);if(f(e))return'"'+e+'"';if("function"===typeof e)return e.syntax?String(e.syntax):"function";if(e&&"object"===typeof e){if("function"===typeof e.format)return e.format(t);if(e&&e.toString(t)!=={}.toString())return e.toString(t);var n=Object.keys(e).map((n=>'"'+n+'": '+Ne(e[n],t)));return"{"+n.join(", ")+"}"}return String(e)}function Ee(e){var t=String(e),n="",r=0;while(r<t.length){var i=t.charAt(r);"\\"===i?(n+=i,r++,i=t.charAt(r),""!==i&&-1!=='"\\/bfnrtu'.indexOf(i)||(n+="\\"),n+=i):n+='"'===i?'\\"':i,r++}return'"'+n+'"'}function Me(e){var t=String(e);return t=t.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">"),t}function Oe(e,t){if(Array.isArray(e)){for(var n="[",r=e.length,i=0;i<r;i++)0!==i&&(n+=", "),n+=Oe(e[i],t);return n+="]",n}return Ne(e,t)}function De(e){return e&&"object"===typeof e&&"number"===typeof e.s&&"number"===typeof e.n&&"number"===typeof e.d||!1}function Te(e,t){if(!f(e))throw new TypeError("Unexpected type of argument in function compareText (expected: string or Array or Matrix, actual: "+W(e)+", index: 0)");if(!f(t))throw new TypeError("Unexpected type of argument in function compareText (expected: string or Array or Matrix, actual: "+W(t)+", index: 1)");return e===t?0:e>t?1:-1}function Ae(e){var t=typeof e;if("number"===t||"string"===t||"boolean"===t||null===e||void 0===e)return e;if("function"===typeof e.clone)return e.clone();if(Array.isArray(e))return e.map((function(e){return Ae(e)}));if(e instanceof Date)return new Date(e.valueOf());if(u(e))return e;if(e instanceof RegExp)throw new TypeError("Cannot clone "+e);return Ie(e,Ae)}function Ie(e,t){var n={};for(var r in e)Fe(e,r)&&(n[r]=t(e[r]));return n}function $e(e,t){for(var n in t)Fe(t,n)&&(e[n]=t[n]);return e}function Pe(e,t){var n,r,i;if(Array.isArray(e)){if(!Array.isArray(t))return!1;if(e.length!==t.length)return!1;for(r=0,i=e.length;r<i;r++)if(!Pe(e[r],t[r]))return!1;return!0}if("function"===typeof e)return e===t;if(e instanceof Object){if(Array.isArray(t)||!(t instanceof Object))return!1;for(n in e)if(!(n in t)||!Pe(e[n],t[n]))return!1;for(n in t)if(!(n in e))return!1;return!0}return e===t}function je(e,t,n){var r,i=!0;Object.defineProperty(e,t,{get:function(){return i&&(r=n(),i=!1),r},set:function(e){r=e,i=!1},configurable:!0,enumerable:!0})}function Fe(e,t){return e&&Object.hasOwnProperty.call(e,t)}function Be(e,t){for(var n={},r=0;r<t.length;r++){var i=t[r],a=e[i];void 0!==a&&(n[i]=a)}return n}function Le(e,t,n,r){function i(r){var i=Be(r,t.map(Ve));return ze(e,t,r),n(i)}return i.isFactory=!0,i.fn=e,i.dependencies=t.slice().sort(),r&&(i.meta=r),i}function ze(e,t,n){var r=t.filter((e=>!Re(e))).every((e=>void 0!==n[e]));if(!r){var i=t.filter((e=>void 0===n[e]));throw new Error('Cannot create function "'.concat(e,'", ')+"some dependencies are missing: ".concat(i.map((e=>'"'.concat(e,'"'))).join(", "),"."))}}function Re(e){return e&&"?"===e[0]}function Ve(e){return e&&"?"===e[0]?e.slice(1):e}var qe="Chain",He=["?on","math"],Ue=Le(qe,He,(e=>{var{on:t,math:n}=e;function r(e){if(!(this instanceof r))throw new SyntaxError("Constructor must be called with the new operator");U(e)?this.value=e.value:this.value=e}function i(e,t){"function"===typeof t&&(r.prototype[e]=o(t))}function a(e,t){je(r.prototype,e,(function(){var e=t();if("function"===typeof e)return o(e)}))}function o(e){return function(){for(var t=[this.value],n=0;n<arguments.length;n++)t[n+1]=arguments[n];return new r(e.apply(e,t))}}r.prototype.type="Chain",r.prototype.isChain=!0,r.prototype.done=function(){return this.value},r.prototype.valueOf=function(){return this.value},r.prototype.toString=function(){return Ne(this.value)},r.prototype.toJSON=function(){return{mathjs:"Chain",value:this.value}},r.fromJSON=function(e){return new r(e.value)},r.createProxy=function(e,t){if("string"===typeof e)i(e,t);else{var n=function(t){Fe(e,t)&&void 0===s[t]&&a(t,(()=>e[t]))};for(var r in e)n(r)}};var s={expression:!0,docs:!0,type:!0,classes:!0,json:!0,error:!0,isChain:!0};return r.createProxy(n),t&&t("import",(function(e,t,n){n||a(e,t)})),r}),{isClass:!0}),We=new Set(["end"]);function Ye(e,t){if(Qe(e)&&Xe(e,t))return e[t];if("function"===typeof e[t]&&Je(e,t))throw new Error('Cannot access method "'+t+'" as a property');throw new Error('No access to property "'+t+'"')}function Ge(e,t,n){if(Qe(e)&&Xe(e,t))return e[t]=n,n;throw new Error('No access to property "'+t+'"')}function Ke(e,t){return t in e}function Xe(e,t){return!(!e||"object"!==typeof e)&&(!!Fe(et,t)||!(t in Object.prototype)&&!(t in Function.prototype))}function Ze(e,t){if(!Je(e,t))throw new Error('No access to method "'+t+'"')}function Je(e,t){return null!==e&&void 0!==e&&"function"===typeof e[t]&&(!(Fe(e,t)&&Object.getPrototypeOf&&t in Object.getPrototypeOf(e))&&(!!Fe(tt,t)||!(t in Object.prototype)&&!(t in Function.prototype)))}function Qe(e){return"object"===typeof e&&e&&e.constructor===Object}var et={length:!0,name:!0},tt={toString:!0,valueOf:!0,toLocaleString:!0};class nt{constructor(e){this.wrappedObject=e}keys(){return Object.keys(this.wrappedObject)}get(e){return Ye(this.wrappedObject,e)}set(e,t){return Ge(this.wrappedObject,e,t),this}has(e){return Ke(this.wrappedObject,e)}}function rt(){return new Map}function it(e){if(!e)return rt();if(ot(e))return e;if(E(e))return new nt(e);throw new Error("createMap can create maps from objects or Maps")}function at(e){if(e instanceof nt)return e.wrappedObject;var t={};for(var n of e.keys()){var r=e.get(n);Ge(t,n,r)}return t}function ot(e){return!!e&&(e instanceof Map||e instanceof nt||"function"===typeof e.set&&"function"===typeof e.get&&"function"===typeof e.keys&&"function"===typeof e.has)}function st(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var i of n)if(i)if(ot(i))for(var a of i.keys())e.set(a,i.get(a));else if(E(i))for(var o of Object.keys(i))e.set(o,i[o]);return e}var lt="Node",ut=["mathWithTransform"],ct=Le(lt,ut,(e=>{var{mathWithTransform:t}=e;function n(){if(!(this instanceof n))throw new SyntaxError("Constructor must be called with the new operator")}function r(e){for(var t of[...We])if(e.has(t))throw new Error('Scope contains an illegal symbol, "'+t+'" is a reserved keyword')}return n.prototype.evaluate=function(e){return this.compile().evaluate(e)},n.prototype.type="Node",n.prototype.isNode=!0,n.prototype.comment="",n.prototype.compile=function(){var e=this._compile(t,{}),n={},i=null;function a(t){var a=it(t);return r(a),e(a,n,i)}return{evaluate:a}},n.prototype._compile=function(e,t){throw new Error("Method _compile should be implemented by type "+this.type)},n.prototype.forEach=function(e){throw new Error("Cannot run forEach on a Node interface")},n.prototype.map=function(e){throw new Error("Cannot run map on a Node interface")},n.prototype._ifNode=function(e){if(!L(e))throw new TypeError("Callback function must return a Node");return e},n.prototype.traverse=function(e){function t(e,n){e.forEach((function(e,r,i){n(e,r,i),t(e,n)}))}e(this,null,null),t(this,e)},n.prototype.transform=function(e){function t(n,r,i){var a=e(n,r,i);return a!==n?a:n.map(t)}return t(this,null,null)},n.prototype.filter=function(e){var t=[];return this.traverse((function(n,r,i){e(n,r,i)&&t.push(n)})),t},n.prototype.clone=function(){throw new Error("Cannot clone a Node interface")},n.prototype.cloneDeep=function(){return this.map((function(e){return e.cloneDeep()}))},n.prototype.equals=function(e){return!!e&&Pe(this,e)},n.prototype.toString=function(e){var t=this._getCustomString(e);return"undefined"!==typeof t?t:this._toString(e)},n.prototype.toJSON=function(){throw new Error("Cannot serialize object: toJSON not implemented by "+this.type)},n.prototype.toHTML=function(e){var t=this._getCustomString(e);return"undefined"!==typeof t?t:this.toHTML(e)},n.prototype._toString=function(){throw new Error("_toString not implemented for "+this.type)},n.prototype.toTex=function(e){var t=this._getCustomString(e);return"undefined"!==typeof t?t:this._toTex(e)},n.prototype._toTex=function(e){throw new Error("_toTex not implemented for "+this.type)},n.prototype._getCustomString=function(e){if(e&&"object"===typeof e)switch(typeof e.handler){case"object":case"undefined":return;case"function":return e.handler(this,e);default:throw new TypeError("Object or function expected as callback")}},n.prototype.getIdentifier=function(){return this.type},n.prototype.getContent=function(){return this},n}),{isClass:!0,isNode:!0}),dt="ObjectNode",ht=["Node"],ft=Le(dt,ht,(e=>{var{Node:t}=e;function n(e){if(!(this instanceof n))throw new SyntaxError("Constructor must be called with the new operator");if(this.properties=e||{},e&&("object"!==typeof e||!Object.keys(e).every((function(t){return L(e[t])}))))throw new TypeError("Object containing Nodes expected")}return n.prototype=new t,n.prototype.type="ObjectNode",n.prototype.isObjectNode=!0,n.prototype._compile=function(e,t){var n={};for(var r in this.properties)if(Fe(this.properties,r)){var i=Ee(r),a=JSON.parse(i);if(!Xe(this.properties,a))throw new Error('No access to property "'+a+'"');n[a]=this.properties[r]._compile(e,t)}return function(e,t,r){var i={};for(var a in n)Fe(n,a)&&(i[a]=n[a](e,t,r));return i}},n.prototype.forEach=function(e){for(var t in this.properties)Fe(this.properties,t)&&e(this.properties[t],"properties["+Ee(t)+"]",this)},n.prototype.map=function(e){var t={};for(var r in this.properties)Fe(this.properties,r)&&(t[r]=this._ifNode(e(this.properties[r],"properties["+Ee(r)+"]",this)));return new n(t)},n.prototype.clone=function(){var e={};for(var t in this.properties)Fe(this.properties,t)&&(e[t]=this.properties[t]);return new n(e)},n.prototype._toString=function(e){var t=[];for(var n in this.properties)Fe(this.properties,n)&&t.push(Ee(n)+": "+this.properties[n].toString(e));return"{"+t.join(", ")+"}"},n.prototype.toJSON=function(){return{mathjs:"ObjectNode",properties:this.properties}},n.fromJSON=function(e){return new n(e.properties)},n.prototype.toHTML=function(e){var t=[];for(var n in this.properties)Fe(this.properties,n)&&t.push('<span class="math-symbol math-property">'+Me(n)+'</span><span class="math-operator math-assignment-operator math-property-assignment-operator math-binary-operator">:</span>'+this.properties[n].toHTML(e));return'<span class="math-parenthesis math-curly-parenthesis">{</span>'+t.join('<span class="math-separator">,</span>')+'<span class="math-parenthesis math-curly-parenthesis">}</span>'},n.prototype._toTex=function(e){var t=[];for(var n in this.properties)Fe(this.properties,n)&&t.push("\\mathbf{"+n+":} & "+this.properties[n].toTex(e)+"\\\\");return"\\left\\{\\begin{array}{ll}".concat(t.join("\n"),"\\end{array}\\right\\}")},n}),{isClass:!0,isNode:!0});function pt(e,t,n){if(!(this instanceof pt))throw new SyntaxError("Constructor must be called with the new operator");this.actual=e,this.expected=t,this.relation=n,this.message="Dimension mismatch ("+(Array.isArray(e)?"["+e.join(", ")+"]":e)+" "+(this.relation||"!=")+" "+(Array.isArray(t)?"["+t.join(", ")+"]":t)+")",this.stack=(new Error).stack}function mt(e,t,n){if(!(this instanceof mt))throw new SyntaxError("Constructor must be called with the new operator");this.index=e,arguments.length<3?(this.min=0,this.max=t):(this.min=t,this.max=n),void 0!==this.min&&this.index<this.min?this.message="Index out of range ("+this.index+" < "+this.min+")":void 0!==this.max&&this.index>=this.max?this.message="Index out of range ("+this.index+" > "+(this.max-1)+")":this.message="Index out of range ("+this.index+")",this.stack=(new Error).stack}function vt(e){var t=[];while(Array.isArray(e))t.push(e.length),e=e[0];return t}function gt(e,t,n){var r,i=e.length;if(i!==t[n])throw new pt(i,t[n]);if(n<t.length-1){var a=n+1;for(r=0;r<i;r++){var o=e[r];if(!Array.isArray(o))throw new pt(t.length-1,t.length,"<");gt(e[r],t,a)}}else for(r=0;r<i;r++)if(Array.isArray(e[r]))throw new pt(t.length+1,t.length,">")}function yt(e,t){var n=0===t.length;if(n){if(Array.isArray(e))throw new pt(e.length,0)}else gt(e,t,0)}function bt(e,t){if(!l(e)||!Y(e))throw new TypeError("Index must be an integer (value: "+e+")");if(e<0||"number"===typeof t&&e>=t)throw new mt(e,t)}function xt(e,t,n){if(!Array.isArray(e)||!Array.isArray(t))throw new TypeError("Array expected");if(0===t.length)throw new Error("Resizing to scalar is not supported");t.forEach((function(e){if(!l(e)||!Y(e)||e<0)throw new TypeError("Invalid size, must contain positive integers (size: "+Ne(t)+")")}));var r=void 0!==n?n:0;return wt(e,t,0,r),e}function wt(e,t,n,r){var i,a,o=e.length,s=t[n],l=Math.min(o,s);if(e.length=s,n<t.length-1){var u=n+1;for(i=0;i<l;i++)a=e[i],Array.isArray(a)||(a=[a],e[i]=a),wt(a,t,u,r);for(i=l;i<s;i++)a=[],e[i]=a,wt(a,t,u,r)}else{for(i=0;i<l;i++)while(Array.isArray(e[i]))e[i]=e[i][0];for(i=l;i<s;i++)e[i]=r}}function _t(e,t){var n=Dt(e),r=n.length;if(!Array.isArray(e)||!Array.isArray(t))throw new TypeError("Array expected");if(0===t.length)throw new pt(0,r,"!=");t=Ct(t,r);var i=St(t);if(r!==i)throw new pt(i,r,"!=");try{return Nt(n,t)}catch(Vc){if(Vc instanceof pt)throw new pt(i,r,"!=");throw Vc}}function Ct(e,t){var n=St(e),r=e.slice(),i=-1,a=e.indexOf(i),o=e.indexOf(i,a+1)>=0;if(o)throw new Error("More than one wildcard in sizes");var s=a>=0,l=t%n===0;if(s){if(!l)throw new Error("Could not replace wildcard, since "+t+" is no multiple of "+-n);r[a]=-t/n}return r}function St(e){return e.reduce(((e,t)=>e*t),1)}function Nt(e,t){for(var n,r=e,i=t.length-1;i>0;i--){var a=t[i];n=[];for(var o=r.length/a,s=0;s<o;s++)n.push(r.slice(s*a,(s+1)*a));r=n}return r}function kt(e,t){var n=t||vt(e);while(Array.isArray(e)&&1===e.length)e=e[0],n.shift();var r=n.length;while(1===n[r-1])r--;return r<n.length&&(e=Et(e,r,0),n.length=r),e}function Et(e,t,n){var r,i;if(n<t){var a=n+1;for(r=0,i=e.length;r<i;r++)e[r]=Et(e[r],t,a)}else while(Array.isArray(e))e=e[0];return e}function Mt(e,t,n,r){var i=r||vt(e);if(n)for(var a=0;a<n;a++)e=[e],i.unshift(1);e=Ot(e,t,0);while(i.length<t)i.push(1);return e}function Ot(e,t,n){var r,i;if(Array.isArray(e)){var a=n+1;for(r=0,i=e.length;r<i;r++)e[r]=Ot(e[r],t,a)}else for(var o=n;o<t;o++)e=[e];return e}function Dt(e){if(!Array.isArray(e))return e;var t=[];return e.forEach((function e(n){Array.isArray(n)?n.forEach(e):t.push(n)})),t}function Tt(e,t){return Array.prototype.map.call(e,t)}function At(e,t){Array.prototype.forEach.call(e,t)}function It(e,t){if(1!==vt(e).length)throw new Error("Only one dimensional matrices supported");return Array.prototype.filter.call(e,t)}function $t(e,t){if(1!==vt(e).length)throw new Error("Only one dimensional matrices supported");return Array.prototype.filter.call(e,(e=>t.test(e)))}function Pt(e,t){return Array.prototype.join.call(e,t)}function jt(e){if(!Array.isArray(e))throw new TypeError("Array input expected");if(0===e.length)return e;var t=[],n=0;t[0]={value:e[0],identifier:0};for(var r=1;r<e.length;r++)e[r]===e[r-1]?n++:n=0,t.push({value:e[r],identifier:n});return t}function Ft(e){if(!Array.isArray(e))throw new TypeError("Array input expected");if(0===e.length)return e;for(var t=[],n=0;n<e.length;n++)t.push(e[n].value);return t}function Bt(e,t){for(var n,r=0,i=0;i<e.length;i++){var a=e[i],o=Array.isArray(a);if(0===i&&o&&(r=a.length),o&&a.length!==r)return;var s=o?Bt(a,t):t(a);if(void 0===n)n=s;else if(n!==s)return"mixed"}return n}pt.prototype=new RangeError,pt.prototype.constructor=RangeError,pt.prototype.name="DimensionError",pt.prototype.isDimensionError=!0,mt.prototype=new RangeError,mt.prototype.constructor=RangeError,mt.prototype.name="IndexError",mt.prototype.isIndexError=!0;var Lt=[{AssignmentNode:{},FunctionAssignmentNode:{}},{ConditionalNode:{latexLeftParens:!1,latexRightParens:!1,latexParens:!1}},{"OperatorNode:or":{associativity:"left",associativeWith:[]}},{"OperatorNode:xor":{associativity:"left",associativeWith:[]}},{"OperatorNode:and":{associativity:"left",associativeWith:[]}},{"OperatorNode:bitOr":{associativity:"left",associativeWith:[]}},{"OperatorNode:bitXor":{associativity:"left",associativeWith:[]}},{"OperatorNode:bitAnd":{associativity:"left",associativeWith:[]}},{"OperatorNode:equal":{associativity:"left",associativeWith:[]},"OperatorNode:unequal":{associativity:"left",associativeWith:[]},"OperatorNode:smaller":{associativity:"left",associativeWith:[]},"OperatorNode:larger":{associativity:"left",associativeWith:[]},"OperatorNode:smallerEq":{associativity:"left",associativeWith:[]},"OperatorNode:largerEq":{associativity:"left",associativeWith:[]},RelationalNode:{associativity:"left",associativeWith:[]}},{"OperatorNode:leftShift":{associativity:"left",associativeWith:[]},"OperatorNode:rightArithShift":{associativity:"left",associativeWith:[]},"OperatorNode:rightLogShift":{associativity:"left",associativeWith:[]}},{"OperatorNode:to":{associativity:"left",associativeWith:[]}},{RangeNode:{}},{"OperatorNode:add":{associativity:"left",associativeWith:["OperatorNode:add","OperatorNode:subtract"]},"OperatorNode:subtract":{associativity:"left",associativeWith:[]}},{"OperatorNode:multiply":{associativity:"left",associativeWith:["OperatorNode:multiply","OperatorNode:divide","Operator:dotMultiply","Operator:dotDivide"]},"OperatorNode:divide":{associativity:"left",associativeWith:[],latexLeftParens:!1,latexRightParens:!1,latexParens:!1},"OperatorNode:dotMultiply":{associativity:"left",associativeWith:["OperatorNode:multiply","OperatorNode:divide","OperatorNode:dotMultiply","OperatorNode:doDivide"]},"OperatorNode:dotDivide":{associativity:"left",associativeWith:[]},"OperatorNode:mod":{associativity:"left",associativeWith:[]}},{"OperatorNode:unaryPlus":{associativity:"right"},"OperatorNode:unaryMinus":{associativity:"right"},"OperatorNode:bitNot":{associativity:"right"},"OperatorNode:not":{associativity:"right"}},{"OperatorNode:pow":{associativity:"right",associativeWith:[],latexRightParens:!1},"OperatorNode:dotPow":{associativity:"right",associativeWith:[]}},{"OperatorNode:factorial":{associativity:"left"}},{"OperatorNode:transpose":{associativity:"left"}}];function zt(e,t){var n=e;"keep"!==t&&(n=e.getContent());for(var r=n.getIdentifier(),i=0;i<Lt.length;i++)if(r in Lt[i])return i;return null}function Rt(e,t){var n=e;"keep"!==t&&(n=e.getContent());var r=n.getIdentifier(),i=zt(n,t);if(null===i)return null;var a=Lt[i][r];if(Fe(a,"associativity")){if("left"===a.associativity)return"left";if("right"===a.associativity)return"right";throw Error("'"+r+"' has the invalid associativity '"+a.associativity+"'.")}return null}function Vt(e,t,n){var r="keep"!==n?e.getContent():e,i="keep"!==n?e.getContent():t,a=r.getIdentifier(),o=i.getIdentifier(),s=zt(r,n);if(null===s)return null;var l=Lt[s][a];if(Fe(l,"associativeWith")&&l.associativeWith instanceof Array){for(var u=0;u<l.associativeWith.length;u++)if(l.associativeWith[u]===o)return!0;return!1}return null}var qt=n(7928),Ht={Alpha:"A",alpha:"\\alpha",Beta:"B",beta:"\\beta",Gamma:"\\Gamma",gamma:"\\gamma",Delta:"\\Delta",delta:"\\delta",Epsilon:"E",epsilon:"\\epsilon",varepsilon:"\\varepsilon",Zeta:"Z",zeta:"\\zeta",Eta:"H",eta:"\\eta",Theta:"\\Theta",theta:"\\theta",vartheta:"\\vartheta",Iota:"I",iota:"\\iota",Kappa:"K",kappa:"\\kappa",varkappa:"\\varkappa",Lambda:"\\Lambda",lambda:"\\lambda",Mu:"M",mu:"\\mu",Nu:"N",nu:"\\nu",Xi:"\\Xi",xi:"\\xi",Omicron:"O",omicron:"o",Pi:"\\Pi",pi:"\\pi",varpi:"\\varpi",Rho:"P",rho:"\\rho",varrho:"\\varrho",Sigma:"\\Sigma",sigma:"\\sigma",varsigma:"\\varsigma",Tau:"T",tau:"\\tau",Upsilon:"\\Upsilon",upsilon:"\\upsilon",Phi:"\\Phi",phi:"\\phi",varphi:"\\varphi",Chi:"X",chi:"\\chi",Psi:"\\Psi",psi:"\\psi",Omega:"\\Omega",omega:"\\omega",true:"\\mathrm{True}",false:"\\mathrm{False}",i:"i",inf:"\\infty",Inf:"\\infty",infinity:"\\infty",Infinity:"\\infty",oo:"\\infty",lim:"\\lim",undefined:"\\mathbf{?}"},Ut={transpose:"^\\top",ctranspose:"^H",factorial:"!",pow:"^",dotPow:".^\\wedge",unaryPlus:"+",unaryMinus:"-",bitNot:"\\~",not:"\\neg",multiply:"\\cdot",divide:"\\frac",dotMultiply:".\\cdot",dotDivide:".:",mod:"\\mod",add:"+",subtract:"-",to:"\\rightarrow",leftShift:"<<",rightArithShift:">>",rightLogShift:">>>",equal:"=",unequal:"\\neq",smaller:"<",larger:">",smallerEq:"\\leq",largerEq:"\\geq",bitAnd:"\\&",bitXor:"\\underline{|}",bitOr:"|",and:"\\wedge",xor:"\\veebar",or:"\\vee"},Wt={abs:{1:"\\left|${args[0]}\\right|"},add:{2:"\\left(${args[0]}".concat(Ut.add,"${args[1]}\\right)")},cbrt:{1:"\\sqrt[3]{${args[0]}}"},ceil:{1:"\\left\\lceil${args[0]}\\right\\rceil"},cube:{1:"\\left(${args[0]}\\right)^3"},divide:{2:"\\frac{${args[0]}}{${args[1]}}"},dotDivide:{2:"\\left(${args[0]}".concat(Ut.dotDivide,"${args[1]}\\right)")},dotMultiply:{2:"\\left(${args[0]}".concat(Ut.dotMultiply,"${args[1]}\\right)")},dotPow:{2:"\\left(${args[0]}".concat(Ut.dotPow,"${args[1]}\\right)")},exp:{1:"\\exp\\left(${args[0]}\\right)"},expm1:"\\left(e".concat(Ut.pow,"{${args[0]}}-1\\right)"),fix:{1:"\\mathrm{${name}}\\left(${args[0]}\\right)"},floor:{1:"\\left\\lfloor${args[0]}\\right\\rfloor"},gcd:"\\gcd\\left(${args}\\right)",hypot:"\\hypot\\left(${args}\\right)",log:{1:"\\ln\\left(${args[0]}\\right)",2:"\\log_{${args[1]}}\\left(${args[0]}\\right)"},log10:{1:"\\log_{10}\\left(${args[0]}\\right)"},log1p:{1:"\\ln\\left(${args[0]}+1\\right)",2:"\\log_{${args[1]}}\\left(${args[0]}+1\\right)"},log2:"\\log_{2}\\left(${args[0]}\\right)",mod:{2:"\\left(${args[0]}".concat(Ut.mod,"${args[1]}\\right)")},multiply:{2:"\\left(${args[0]}".concat(Ut.multiply,"${args[1]}\\right)")},norm:{1:"\\left\\|${args[0]}\\right\\|",2:void 0},nthRoot:{2:"\\sqrt[${args[1]}]{${args[0]}}"},nthRoots:{2:"\\{y : $y^{args[1]} = {${args[0]}}\\}"},pow:{2:"\\left(${args[0]}\\right)".concat(Ut.pow,"{${args[1]}}")},round:{1:"\\left\\lfloor${args[0]}\\right\\rceil",2:void 0},sign:{1:"\\mathrm{${name}}\\left(${args[0]}\\right)"},sqrt:{1:"\\sqrt{${args[0]}}"},square:{1:"\\left(${args[0]}\\right)^2"},subtract:{2:"\\left(${args[0]}".concat(Ut.subtract,"${args[1]}\\right)")},unaryMinus:{1:"".concat(Ut.unaryMinus,"\\left(${args[0]}\\right)")},unaryPlus:{1:"".concat(Ut.unaryPlus,"\\left(${args[0]}\\right)")},bitAnd:{2:"\\left(${args[0]}".concat(Ut.bitAnd,"${args[1]}\\right)")},bitNot:{1:Ut.bitNot+"\\left(${args[0]}\\right)"},bitOr:{2:"\\left(${args[0]}".concat(Ut.bitOr,"${args[1]}\\right)")},bitXor:{2:"\\left(${args[0]}".concat(Ut.bitXor,"${args[1]}\\right)")},leftShift:{2:"\\left(${args[0]}".concat(Ut.leftShift,"${args[1]}\\right)")},rightArithShift:{2:"\\left(${args[0]}".concat(Ut.rightArithShift,"${args[1]}\\right)")},rightLogShift:{2:"\\left(${args[0]}".concat(Ut.rightLogShift,"${args[1]}\\right)")},bellNumbers:{1:"\\mathrm{B}_{${args[0]}}"},catalan:{1:"\\mathrm{C}_{${args[0]}}"},stirlingS2:{2:"\\mathrm{S}\\left(${args}\\right)"},arg:{1:"\\arg\\left(${args[0]}\\right)"},conj:{1:"\\left(${args[0]}\\right)^*"},im:{1:"\\Im\\left\\lbrace${args[0]}\\right\\rbrace"},re:{1:"\\Re\\left\\lbrace${args[0]}\\right\\rbrace"},and:{2:"\\left(${args[0]}".concat(Ut.and,"${args[1]}\\right)")},not:{1:Ut.not+"\\left(${args[0]}\\right)"},or:{2:"\\left(${args[0]}".concat(Ut.or,"${args[1]}\\right)")},xor:{2:"\\left(${args[0]}".concat(Ut.xor,"${args[1]}\\right)")},cross:{2:"\\left(${args[0]}\\right)\\times\\left(${args[1]}\\right)"},ctranspose:{1:"\\left(${args[0]}\\right)".concat(Ut.ctranspose)},det:{1:"\\det\\left(${args[0]}\\right)"},dot:{2:"\\left(${args[0]}\\cdot${args[1]}\\right)"},expm:{1:"\\exp\\left(${args[0]}\\right)"},inv:{1:"\\left(${args[0]}\\right)^{-1}"},pinv:{1:"\\left(${args[0]}\\right)^{+}"},sqrtm:{1:"{${args[0]}}".concat(Ut.pow,"{\\frac{1}{2}}")},trace:{1:"\\mathrm{tr}\\left(${args[0]}\\right)"},transpose:{1:"\\left(${args[0]}\\right)".concat(Ut.transpose)},combinations:{2:"\\binom{${args[0]}}{${args[1]}}"},combinationsWithRep:{2:"\\left(\\!\\!{\\binom{${args[0]}}{${args[1]}}}\\!\\!\\right)"},factorial:{1:"\\left(${args[0]}\\right)".concat(Ut.factorial)},gamma:{1:"\\Gamma\\left(${args[0]}\\right)"},lgamma:{1:"\\ln\\Gamma\\left(${args[0]}\\right)"},equal:{2:"\\left(${args[0]}".concat(Ut.equal,"${args[1]}\\right)")},larger:{2:"\\left(${args[0]}".concat(Ut.larger,"${args[1]}\\right)")},largerEq:{2:"\\left(${args[0]}".concat(Ut.largerEq,"${args[1]}\\right)")},smaller:{2:"\\left(${args[0]}".concat(Ut.smaller,"${args[1]}\\right)")},smallerEq:{2:"\\left(${args[0]}".concat(Ut.smallerEq,"${args[1]}\\right)")},unequal:{2:"\\left(${args[0]}".concat(Ut.unequal,"${args[1]}\\right)")},erf:{1:"erf\\left(${args[0]}\\right)"},max:"\\max\\left(${args}\\right)",min:"\\min\\left(${args}\\right)",variance:"\\mathrm{Var}\\left(${args}\\right)",acos:{1:"\\cos^{-1}\\left(${args[0]}\\right)"},acosh:{1:"\\cosh^{-1}\\left(${args[0]}\\right)"},acot:{1:"\\cot^{-1}\\left(${args[0]}\\right)"},acoth:{1:"\\coth^{-1}\\left(${args[0]}\\right)"},acsc:{1:"\\csc^{-1}\\left(${args[0]}\\right)"},acsch:{1:"\\mathrm{csch}^{-1}\\left(${args[0]}\\right)"},asec:{1:"\\sec^{-1}\\left(${args[0]}\\right)"},asech:{1:"\\mathrm{sech}^{-1}\\left(${args[0]}\\right)"},asin:{1:"\\sin^{-1}\\left(${args[0]}\\right)"},asinh:{1:"\\sinh^{-1}\\left(${args[0]}\\right)"},atan:{1:"\\tan^{-1}\\left(${args[0]}\\right)"},atan2:{2:"\\mathrm{atan2}\\left(${args}\\right)"},atanh:{1:"\\tanh^{-1}\\left(${args[0]}\\right)"},cos:{1:"\\cos\\left(${args[0]}\\right)"},cosh:{1:"\\cosh\\left(${args[0]}\\right)"},cot:{1:"\\cot\\left(${args[0]}\\right)"},coth:{1:"\\coth\\left(${args[0]}\\right)"},csc:{1:"\\csc\\left(${args[0]}\\right)"},csch:{1:"\\mathrm{csch}\\left(${args[0]}\\right)"},sec:{1:"\\sec\\left(${args[0]}\\right)"},sech:{1:"\\mathrm{sech}\\left(${args[0]}\\right)"},sin:{1:"\\sin\\left(${args[0]}\\right)"},sinh:{1:"\\sinh\\left(${args[0]}\\right)"},tan:{1:"\\tan\\left(${args[0]}\\right)"},tanh:{1:"\\tanh\\left(${args[0]}\\right)"},to:{2:"\\left(${args[0]}".concat(Ut.to,"${args[1]}\\right)")},numeric:function(e,t){return e.args[0].toTex()},number:{0:"0",1:"\\left(${args[0]}\\right)",2:"\\left(\\left(${args[0]}\\right)${args[1]}\\right)"},string:{0:'\\mathtt{""}',1:"\\mathrm{string}\\left(${args[0]}\\right)"},bignumber:{0:"0",1:"\\left(${args[0]}\\right)"},complex:{0:"0",1:"\\left(${args[0]}\\right)",2:"\\left(\\left(${args[0]}\\right)+".concat(Ht.i,"\\cdot\\left(${args[1]}\\right)\\right)")},matrix:{0:"\\begin{bmatrix}\\end{bmatrix}",1:"\\left(${args[0]}\\right)",2:"\\left(${args[0]}\\right)"},sparse:{0:"\\begin{bsparse}\\end{bsparse}",1:"\\left(${args[0]}\\right)"},unit:{1:"\\left(${args[0]}\\right)",2:"\\left(\\left(${args[0]}\\right)${args[1]}\\right)"}},Yt="\\mathrm{${name}}\\left(${args}\\right)",Gt={deg:"^\\circ"};function Kt(e){return qt(e,{preserveFormatting:!0})}function Xt(e,t){return t="undefined"!==typeof t&&t,t?Fe(Gt,e)?Gt[e]:"\\mathrm{"+Kt(e)+"}":Fe(Ht,e)?Ht[e]:Kt(e)}var Zt="OperatorNode",Jt=["Node"],Qt=Le(Zt,Jt,(e=>{var{Node:t}=e;function n(e,t,r,i,a){if(!(this instanceof n))throw new SyntaxError("Constructor must be called with the new operator");if("string"!==typeof e)throw new TypeError('string expected for parameter "op"');if("string"!==typeof t)throw new TypeError('string expected for parameter "fn"');if(!Array.isArray(r)||!r.every(L))throw new TypeError('Array containing Nodes expected for parameter "args"');this.implicit=!0===i,this.isPercentage=!0===a,this.op=e,this.fn=t,this.args=r||[]}function r(e,t,n,r,i){var a,o=zt(e,t),s=Rt(e,t);if("all"===t||r.length>2&&"OperatorNode:add"!==e.getIdentifier()&&"OperatorNode:multiply"!==e.getIdentifier())return r.map((function(e){switch(e.getContent().type){case"ArrayNode":case"ConstantNode":case"SymbolNode":case"ParenthesisNode":return!1;default:return!0}}));switch(r.length){case 0:a=[];break;case 1:var l=zt(r[0],t);if(i&&null!==l){var u,c;if("keep"===t?(u=r[0].getIdentifier(),c=e.getIdentifier()):(u=r[0].getContent().getIdentifier(),c=e.getContent().getIdentifier()),!1===Lt[o][c].latexLeftParens){a=[!1];break}if(!1===Lt[l][u].latexParens){a=[!1];break}}if(null===l){a=[!1];break}if(l<=o){a=[!0];break}a=[!1];break;case 2:var d,h,f=zt(r[0],t),p=Vt(e,r[0],t);d=null!==f&&(f===o&&"right"===s&&!p||f<o);var m,v,g,y=zt(r[1],t),b=Vt(e,r[1],t);if(h=null!==y&&(y===o&&"left"===s&&!b||y<o),i)"keep"===t?(m=e.getIdentifier(),v=e.args[0].getIdentifier(),g=e.args[1].getIdentifier()):(m=e.getContent().getIdentifier(),v=e.args[0].getContent().getIdentifier(),g=e.args[1].getContent().getIdentifier()),null!==f&&(!1===Lt[o][m].latexLeftParens&&(d=!1),!1===Lt[f][v].latexParens&&(d=!1)),null!==y&&(!1===Lt[o][m].latexRightParens&&(h=!1),!1===Lt[y][g].latexParens&&(h=!1));a=[d,h];break;default:"OperatorNode:add"!==e.getIdentifier()&&"OperatorNode:multiply"!==e.getIdentifier()||(a=r.map((function(n){var r=zt(n,t),i=Vt(e,n,t),a=Rt(n,t);return null!==r&&(o===r&&s===a&&!i||r<o)})));break}return r.length>=2&&"OperatorNode:multiply"===e.getIdentifier()&&e.implicit&&"auto"===t&&"hide"===n&&(a=r.map((function(e,t){var n="ParenthesisNode"===e.getIdentifier();return!(!a[t]&&!n)}))),a}return n.prototype=new t,n.prototype.type="OperatorNode",n.prototype.isOperatorNode=!0,n.prototype._compile=function(e,t){if("string"!==typeof this.fn||!Je(e,this.fn))throw e[this.fn]?new Error('No access to function "'+this.fn+'"'):new Error("Function "+this.fn+' missing in provided namespace "math"');var n=Ye(e,this.fn),r=Tt(this.args,(function(n){return n._compile(e,t)}));if(1===r.length){var i=r[0];return function(e,t,r){return n(i(e,t,r))}}if(2===r.length){var a=r[0],o=r[1];return function(e,t,r){return n(a(e,t,r),o(e,t,r))}}return function(e,t,i){return n.apply(null,Tt(r,(function(n){return n(e,t,i)})))}},n.prototype.forEach=function(e){for(var t=0;t<this.args.length;t++)e(this.args[t],"args["+t+"]",this)},n.prototype.map=function(e){for(var t=[],r=0;r<this.args.length;r++)t[r]=this._ifNode(e(this.args[r],"args["+r+"]",this));return new n(this.op,this.fn,t,this.implicit,this.isPercentage)},n.prototype.clone=function(){return new n(this.op,this.fn,this.args.slice(0),this.implicit,this.isPercentage)},n.prototype.isUnary=function(){return 1===this.args.length},n.prototype.isBinary=function(){return 2===this.args.length},n.prototype._toString=function(e){var t=e&&e.parenthesis?e.parenthesis:"keep",n=e&&e.implicit?e.implicit:"hide",i=this.args,a=r(this,t,n,i,!1);if(1===i.length){var o=Rt(this,t),s=i[0].toString(e);a[0]&&(s="("+s+")");var l=/[a-zA-Z]+/.test(this.op);return"right"===o?this.op+(l?" ":"")+s:"left"===o?s+(l?" ":"")+this.op:s+this.op}if(2===i.length){var u=i[0].toString(e),c=i[1].toString(e);return a[0]&&(u="("+u+")"),a[1]&&(c="("+c+")"),this.implicit&&"OperatorNode:multiply"===this.getIdentifier()&&"hide"===n?u+" "+c:u+" "+this.op+" "+c}if(i.length>2&&("OperatorNode:add"===this.getIdentifier()||"OperatorNode:multiply"===this.getIdentifier())){var d=i.map((function(t,n){return t=t.toString(e),a[n]&&(t="("+t+")"),t}));return this.implicit&&"OperatorNode:multiply"===this.getIdentifier()&&"hide"===n?d.join(" "):d.join(" "+this.op+" ")}return this.fn+"("+this.args.join(", ")+")"},n.prototype.toJSON=function(){return{mathjs:"OperatorNode",op:this.op,fn:this.fn,args:this.args,implicit:this.implicit,isPercentage:this.isPercentage}},n.fromJSON=function(e){return new n(e.op,e.fn,e.args,e.implicit,e.isPercentage)},n.prototype.toHTML=function(e){var t=e&&e.parenthesis?e.parenthesis:"keep",n=e&&e.implicit?e.implicit:"hide",i=this.args,a=r(this,t,n,i,!1);if(1===i.length){var o=Rt(this,t),s=i[0].toHTML(e);return a[0]&&(s='<span class="math-parenthesis math-round-parenthesis">(</span>'+s+'<span class="math-parenthesis math-round-parenthesis">)</span>'),"right"===o?'<span class="math-operator math-unary-operator math-lefthand-unary-operator">'+Me(this.op)+"</span>"+s:s+'<span class="math-operator math-unary-operator math-righthand-unary-operator">'+Me(this.op)+"</span>"}if(2===i.length){var l=i[0].toHTML(e),u=i[1].toHTML(e);return a[0]&&(l='<span class="math-parenthesis math-round-parenthesis">(</span>'+l+'<span class="math-parenthesis math-round-parenthesis">)</span>'),a[1]&&(u='<span class="math-parenthesis math-round-parenthesis">(</span>'+u+'<span class="math-parenthesis math-round-parenthesis">)</span>'),this.implicit&&"OperatorNode:multiply"===this.getIdentifier()&&"hide"===n?l+'<span class="math-operator math-binary-operator math-implicit-binary-operator"></span>'+u:l+'<span class="math-operator math-binary-operator math-explicit-binary-operator">'+Me(this.op)+"</span>"+u}var c=i.map((function(t,n){return t=t.toHTML(e),a[n]&&(t='<span class="math-parenthesis math-round-parenthesis">(</span>'+t+'<span class="math-parenthesis math-round-parenthesis">)</span>'),t}));return i.length>2&&("OperatorNode:add"===this.getIdentifier()||"OperatorNode:multiply"===this.getIdentifier())?this.implicit&&"OperatorNode:multiply"===this.getIdentifier()&&"hide"===n?c.join('<span class="math-operator math-binary-operator math-implicit-binary-operator"></span>'):c.join('<span class="math-operator math-binary-operator math-explicit-binary-operator">'+Me(this.op)+"</span>"):'<span class="math-function">'+Me(this.fn)+'</span><span class="math-paranthesis math-round-parenthesis">(</span>'+c.join('<span class="math-separator">,</span>')+'<span class="math-paranthesis math-round-parenthesis">)</span>'},n.prototype._toTex=function(e){var t=e&&e.parenthesis?e.parenthesis:"keep",n=e&&e.implicit?e.implicit:"hide",i=this.args,a=r(this,t,n,i,!0),o=Ut[this.fn];if(o="undefined"===typeof o?this.op:o,1===i.length){var s=Rt(this,t),l=i[0].toTex(e);return a[0]&&(l="\\left(".concat(l,"\\right)")),"right"===s?o+l:l+o}if(2===i.length){var u=i[0],c=u.toTex(e);a[0]&&(c="\\left(".concat(c,"\\right)"));var d,h=i[1],f=h.toTex(e);switch(a[1]&&(f="\\left(".concat(f,"\\right)")),d="keep"===t?u.getIdentifier():u.getContent().getIdentifier(),this.getIdentifier()){case"OperatorNode:divide":return o+"{"+c+"}{"+f+"}";case"OperatorNode:pow":switch(c="{"+c+"}",f="{"+f+"}",d){case"ConditionalNode":case"OperatorNode:divide":c="\\left(".concat(c,"\\right)")}break;case"OperatorNode:multiply":if(this.implicit&&"hide"===n)return c+"~"+f}return c+o+f}if(i.length>2&&("OperatorNode:add"===this.getIdentifier()||"OperatorNode:multiply"===this.getIdentifier())){var p=i.map((function(t,n){return t=t.toTex(e),a[n]&&(t="\\left(".concat(t,"\\right)")),t}));return"OperatorNode:multiply"===this.getIdentifier()&&this.implicit?p.join("~"):p.join(o)}return"\\mathrm{"+this.fn+"}\\left("+i.map((function(t){return t.toTex(e)})).join(",")+"\\right)"},n.prototype.getIdentifier=function(){return this.type+":"+this.fn},n}),{isClass:!0,isNode:!0}),en="ParenthesisNode",tn=["Node"],nn=Le(en,tn,(e=>{var{Node:t}=e;function n(e){if(!(this instanceof n))throw new SyntaxError("Constructor must be called with the new operator");if(!L(e))throw new TypeError('Node expected for parameter "content"');this.content=e}return n.prototype=new t,n.prototype.type="ParenthesisNode",n.prototype.isParenthesisNode=!0,n.prototype._compile=function(e,t){return this.content._compile(e,t)},n.prototype.getContent=function(){return this.content.getContent()},n.prototype.forEach=function(e){e(this.content,"content",this)},n.prototype.map=function(e){var t=e(this.content,"content",this);return new n(t)},n.prototype.clone=function(){return new n(this.content)},n.prototype._toString=function(e){return!e||e&&!e.parenthesis||e&&"keep"===e.parenthesis?"("+this.content.toString(e)+")":this.content.toString(e)},n.prototype.toJSON=function(){return{mathjs:"ParenthesisNode",content:this.content}},n.fromJSON=function(e){return new n(e.content)},n.prototype.toHTML=function(e){return!e||e&&!e.parenthesis||e&&"keep"===e.parenthesis?'<span class="math-parenthesis math-round-parenthesis">(</span>'+this.content.toHTML(e)+'<span class="math-parenthesis math-round-parenthesis">)</span>':this.content.toHTML(e)},n.prototype._toTex=function(e){return!e||e&&!e.parenthesis||e&&"keep"===e.parenthesis?"\\left(".concat(this.content.toTex(e),"\\right)"):this.content.toTex(e)},n}),{isClass:!0,isNode:!0}),rn="RelationalNode",an=["Node"],on=Le(rn,an,(e=>{var{Node:t}=e;function n(e,t){if(!(this instanceof n))throw new SyntaxError("Constructor must be called with the new operator");if(!Array.isArray(e))throw new TypeError("Parameter conditionals must be an array");if(!Array.isArray(t))throw new TypeError("Parameter params must be an array");if(e.length!==t.length-1)throw new TypeError("Parameter params must contain exactly one more element than parameter conditionals");this.conditionals=e,this.params=t}return n.prototype=new t,n.prototype.type="RelationalNode",n.prototype.isRelationalNode=!0,n.prototype._compile=function(e,t){var n=this,r=this.params.map((n=>n._compile(e,t)));return function(t,i,a){for(var o,s=r[0](t,i,a),l=0;l<n.conditionals.length;l++){o=s,s=r[l+1](t,i,a);var u=Ye(e,n.conditionals[l]);if(!u(o,s))return!1}return!0}},n.prototype.forEach=function(e){this.params.forEach(((t,n)=>e(t,"params["+n+"]",this)),this)},n.prototype.map=function(e){return new n(this.conditionals.slice(),this.params.map(((t,n)=>this._ifNode(e(t,"params["+n+"]",this))),this))},n.prototype.clone=function(){return new n(this.conditionals,this.params)},n.prototype._toString=function(e){for(var t=e&&e.parenthesis?e.parenthesis:"keep",n=zt(this,t),r=this.params.map((function(r,i){var a=zt(r,t);return"all"===t||null!==a&&a<=n?"("+r.toString(e)+")":r.toString(e)})),i={equal:"==",unequal:"!=",smaller:"<",larger:">",smallerEq:"<=",largerEq:">="},a=r[0],o=0;o<this.conditionals.length;o++)a+=" "+i[this.conditionals[o]]+" "+r[o+1];return a},n.prototype.toJSON=function(){return{mathjs:"RelationalNode",conditionals:this.conditionals,params:this.params}},n.fromJSON=function(e){return new n(e.conditionals,e.params)},n.prototype.toHTML=function(e){for(var t=e&&e.parenthesis?e.parenthesis:"keep",n=zt(this,t),r=this.params.map((function(r,i){var a=zt(r,t);return"all"===t||null!==a&&a<=n?'<span class="math-parenthesis math-round-parenthesis">(</span>'+r.toHTML(e)+'<span class="math-parenthesis math-round-parenthesis">)</span>':r.toHTML(e)})),i={equal:"==",unequal:"!=",smaller:"<",larger:">",smallerEq:"<=",largerEq:">="},a=r[0],o=0;o<this.conditionals.length;o++)a+='<span class="math-operator math-binary-operator math-explicit-binary-operator">'+Me(i[this.conditionals[o]])+"</span>"+r[o+1];return a},n.prototype._toTex=function(e){for(var t=e&&e.parenthesis?e.parenthesis:"keep",n=zt(this,t),r=this.params.map((function(r,i){var a=zt(r,t);return"all"===t||null!==a&&a<=n?"\\left("+r.toTex(e)+"\right)":r.toTex(e)})),i=r[0],a=0;a<this.conditionals.length;a++)i+=Ut[this.conditionals[a]]+r[a+1];return i},n}),{isClass:!0,isNode:!0}),sn="ArrayNode",ln=["Node"],un=Le(sn,ln,(e=>{var{Node:t}=e;function n(e){if(!(this instanceof n))throw new SyntaxError("Constructor must be called with the new operator");if(this.items=e||[],!Array.isArray(this.items)||!this.items.every(L))throw new TypeError("Array containing Nodes expected")}return n.prototype=new t,n.prototype.type="ArrayNode",n.prototype.isArrayNode=!0,n.prototype._compile=function(e,t){var n=Tt(this.items,(function(n){return n._compile(e,t)})),r="Array"!==e.config.matrix;if(r){var i=e.matrix;return function(e,t,r){return i(Tt(n,(function(n){return n(e,t,r)})))}}return function(e,t,r){return Tt(n,(function(n){return n(e,t,r)}))}},n.prototype.forEach=function(e){for(var t=0;t<this.items.length;t++){var n=this.items[t];e(n,"items["+t+"]",this)}},n.prototype.map=function(e){for(var t=[],r=0;r<this.items.length;r++)t[r]=this._ifNode(e(this.items[r],"items["+r+"]",this));return new n(t)},n.prototype.clone=function(){return new n(this.items.slice(0))},n.prototype._toString=function(e){var t=this.items.map((function(t){return t.toString(e)}));return"["+t.join(", ")+"]"},n.prototype.toJSON=function(){return{mathjs:"ArrayNode",items:this.items}},n.fromJSON=function(e){return new n(e.items)},n.prototype.toHTML=function(e){var t=this.items.map((function(t){return t.toHTML(e)}));return'<span class="math-parenthesis math-square-parenthesis">[</span>'+t.join('<span class="math-separator">,</span>')+'<span class="math-parenthesis math-square-parenthesis">]</span>'},n.prototype._toTex=function(e){function t(n,r){var i=n.some(T)&&!n.every(T),a=r||i,o=a?"&":"\\\\",s=n.map((function(n){return n.items?t(n.items,!r):n.toTex(e)})).join(o);return i||!a||a&&!r?"\\begin{bmatrix}"+s+"\\end{bmatrix}":s}return t(this.items,!1)},n}),{isClass:!0,isNode:!0}),cn="BlockNode",dn=["ResultSet","Node"],hn=Le(cn,dn,(e=>{var{ResultSet:t,Node:n}=e;function r(e){if(!(this instanceof r))throw new SyntaxError("Constructor must be called with the new operator");if(!Array.isArray(e))throw new Error("Array expected");this.blocks=e.map((function(e){var t=e&&e.node,n=!e||void 0===e.visible||e.visible;if(!L(t))throw new TypeError('Property "node" must be a Node');if("boolean"!==typeof n)throw new TypeError('Property "visible" must be a boolean');return{node:t,visible:n}}))}return r.prototype=new n,r.prototype.type="BlockNode",r.prototype.isBlockNode=!0,r.prototype._compile=function(e,n){var r=Tt(this.blocks,(function(t){return{evaluate:t.node._compile(e,n),visible:t.visible}}));return function(e,n,i){var a=[];return At(r,(function(t){var r=t.evaluate(e,n,i);t.visible&&a.push(r)})),new t(a)}},r.prototype.forEach=function(e){for(var t=0;t<this.blocks.length;t++)e(this.blocks[t].node,"blocks["+t+"].node",this)},r.prototype.map=function(e){for(var t=[],n=0;n<this.blocks.length;n++){var i=this.blocks[n],a=this._ifNode(e(i.node,"blocks["+n+"].node",this));t[n]={node:a,visible:i.visible}}return new r(t)},r.prototype.clone=function(){var e=this.blocks.map((function(e){return{node:e.node,visible:e.visible}}));return new r(e)},r.prototype._toString=function(e){return this.blocks.map((function(t){return t.node.toString(e)+(t.visible?"":";")})).join("\n")},r.prototype.toJSON=function(){return{mathjs:"BlockNode",blocks:this.blocks}},r.fromJSON=function(e){return new r(e.blocks)},r.prototype.toHTML=function(e){return this.blocks.map((function(t){return t.node.toHTML(e)+(t.visible?"":'<span class="math-separator">;</span>')})).join('<span class="math-separator"><br /></span>')},r.prototype._toTex=function(e){return this.blocks.map((function(t){return t.node.toTex(e)+(t.visible?"":";")})).join("\\;\\;\n")},r}),{isClass:!0,isNode:!0}),fn="ConditionalNode",pn=["Node"],mn=Le(fn,pn,(e=>{var{Node:t}=e;function n(e,t,r){if(!(this instanceof n))throw new SyntaxError("Constructor must be called with the new operator");if(!L(e))throw new TypeError("Parameter condition must be a Node");if(!L(t))throw new TypeError("Parameter trueExpr must be a Node");if(!L(r))throw new TypeError("Parameter falseExpr must be a Node");this.condition=e,this.trueExpr=t,this.falseExpr=r}function r(e){if("number"===typeof e||"boolean"===typeof e||"string"===typeof e)return!!e;if(e){if(u(e))return!e.isZero();if(c(e))return!(!e.re&&!e.im);if(h(e))return!!e.value}if(null===e||void 0===e)return!1;throw new TypeError('Unsupported type of condition "'+W(e)+'"')}return n.prototype=new t,n.prototype.type="ConditionalNode",n.prototype.isConditionalNode=!0,n.prototype._compile=function(e,t){var n=this.condition._compile(e,t),i=this.trueExpr._compile(e,t),a=this.falseExpr._compile(e,t);return function(e,t,o){return r(n(e,t,o))?i(e,t,o):a(e,t,o)}},n.prototype.forEach=function(e){e(this.condition,"condition",this),e(this.trueExpr,"trueExpr",this),e(this.falseExpr,"falseExpr",this)},n.prototype.map=function(e){return new n(this._ifNode(e(this.condition,"condition",this)),this._ifNode(e(this.trueExpr,"trueExpr",this)),this._ifNode(e(this.falseExpr,"falseExpr",this)))},n.prototype.clone=function(){return new n(this.condition,this.trueExpr,this.falseExpr)},n.prototype._toString=function(e){var t=e&&e.parenthesis?e.parenthesis:"keep",n=zt(this,t),r=this.condition.toString(e),i=zt(this.condition,t);("all"===t||"OperatorNode"===this.condition.type||null!==i&&i<=n)&&(r="("+r+")");var a=this.trueExpr.toString(e),o=zt(this.trueExpr,t);("all"===t||"OperatorNode"===this.trueExpr.type||null!==o&&o<=n)&&(a="("+a+")");var s=this.falseExpr.toString(e),l=zt(this.falseExpr,t);return("all"===t||"OperatorNode"===this.falseExpr.type||null!==l&&l<=n)&&(s="("+s+")"),r+" ? "+a+" : "+s},n.prototype.toJSON=function(){return{mathjs:"ConditionalNode",condition:this.condition,trueExpr:this.trueExpr,falseExpr:this.falseExpr}},n.fromJSON=function(e){return new n(e.condition,e.trueExpr,e.falseExpr)},n.prototype.toHTML=function(e){var t=e&&e.parenthesis?e.parenthesis:"keep",n=zt(this,t),r=this.condition.toHTML(e),i=zt(this.condition,t);("all"===t||"OperatorNode"===this.condition.type||null!==i&&i<=n)&&(r='<span class="math-parenthesis math-round-parenthesis">(</span>'+r+'<span class="math-parenthesis math-round-parenthesis">)</span>');var a=this.trueExpr.toHTML(e),o=zt(this.trueExpr,t);("all"===t||"OperatorNode"===this.trueExpr.type||null!==o&&o<=n)&&(a='<span class="math-parenthesis math-round-parenthesis">(</span>'+a+'<span class="math-parenthesis math-round-parenthesis">)</span>');var s=this.falseExpr.toHTML(e),l=zt(this.falseExpr,t);return("all"===t||"OperatorNode"===this.falseExpr.type||null!==l&&l<=n)&&(s='<span class="math-parenthesis math-round-parenthesis">(</span>'+s+'<span class="math-parenthesis math-round-parenthesis">)</span>'),r+'<span class="math-operator math-conditional-operator">?</span>'+a+'<span class="math-operator math-conditional-operator">:</span>'+s},n.prototype._toTex=function(e){return"\\begin{cases} {"+this.trueExpr.toTex(e)+"}, &\\quad{\\text{if }\\;"+this.condition.toTex(e)+"}\\\\{"+this.falseExpr.toTex(e)+"}, &\\quad{\\text{otherwise}}\\end{cases}"},n}),{isClass:!0,isNode:!0}),vn="ConstantNode",gn=["Node"],yn=Le(vn,gn,(e=>{var{Node:t}=e;function n(e){if(!(this instanceof n))throw new SyntaxError("Constructor must be called with the new operator");this.value=e}return n.prototype=new t,n.prototype.type="ConstantNode",n.prototype.isConstantNode=!0,n.prototype._compile=function(e,t){var n=this.value;return function(){return n}},n.prototype.forEach=function(e){},n.prototype.map=function(e){return this.clone()},n.prototype.clone=function(){return new n(this.value)},n.prototype._toString=function(e){return Ne(this.value,e)},n.prototype.toHTML=function(e){var t=this._toString(e);switch(W(this.value)){case"number":case"BigNumber":case"Fraction":return'<span class="math-number">'+t+"</span>";case"string":return'<span class="math-string">'+t+"</span>";case"boolean":return'<span class="math-boolean">'+t+"</span>";case"null":return'<span class="math-null-symbol">'+t+"</span>";case"undefined":return'<span class="math-undefined">'+t+"</span>";default:return'<span class="math-symbol">'+t+"</span>"}},n.prototype.toJSON=function(){return{mathjs:"ConstantNode",value:this.value}},n.fromJSON=function(e){return new n(e.value)},n.prototype._toTex=function(e){var t=this._toString(e);switch(W(this.value)){case"string":return"\\mathtt{"+Kt(t)+"}";case"number":case"BigNumber":if(!isFinite(this.value))return this.value.valueOf()<0?"-\\infty":"\\infty";var n=t.toLowerCase().indexOf("e");return-1!==n?t.substring(0,n)+"\\cdot10^{"+t.substring(n+1)+"}":t;case"Fraction":return this.value.toLatex();default:return t}},n}),{isClass:!0,isNode:!0}),bn="RangeNode",xn=["Node"],wn=Le(bn,xn,(e=>{var{Node:t}=e;function n(e,t,r){if(!(this instanceof n))throw new SyntaxError("Constructor must be called with the new operator");if(!L(e))throw new TypeError("Node expected");if(!L(t))throw new TypeError("Node expected");if(r&&!L(r))throw new TypeError("Node expected");if(arguments.length>3)throw new Error("Too many arguments");this.start=e,this.end=t,this.step=r||null}function r(e,t){var n=zt(e,t),r={},i=zt(e.start,t);if(r.start=null!==i&&i<=n||"all"===t,e.step){var a=zt(e.step,t);r.step=null!==a&&a<=n||"all"===t}var o=zt(e.end,t);return r.end=null!==o&&o<=n||"all"===t,r}return n.prototype=new t,n.prototype.type="RangeNode",n.prototype.isRangeNode=!0,n.prototype.needsEnd=function(){var e=this.filter((function(e){return H(e)&&"end"===e.name}));return e.length>0},n.prototype._compile=function(e,t){var n=e.range,r=this.start._compile(e,t),i=this.end._compile(e,t);if(this.step){var a=this.step._compile(e,t);return function(e,t,o){return n(r(e,t,o),i(e,t,o),a(e,t,o))}}return function(e,t,a){return n(r(e,t,a),i(e,t,a))}},n.prototype.forEach=function(e){e(this.start,"start",this),e(this.end,"end",this),this.step&&e(this.step,"step",this)},n.prototype.map=function(e){return new n(this._ifNode(e(this.start,"start",this)),this._ifNode(e(this.end,"end",this)),this.step&&this._ifNode(e(this.step,"step",this)))},n.prototype.clone=function(){return new n(this.start,this.end,this.step&&this.step)},n.prototype._toString=function(e){var t,n=e&&e.parenthesis?e.parenthesis:"keep",i=r(this,n),a=this.start.toString(e);if(i.start&&(a="("+a+")"),t=a,this.step){var o=this.step.toString(e);i.step&&(o="("+o+")"),t+=":"+o}var s=this.end.toString(e);return i.end&&(s="("+s+")"),t+=":"+s,t},n.prototype.toJSON=function(){return{mathjs:"RangeNode",start:this.start,end:this.end,step:this.step}},n.fromJSON=function(e){return new n(e.start,e.end,e.step)},n.prototype.toHTML=function(e){var t,n=e&&e.parenthesis?e.parenthesis:"keep",i=r(this,n),a=this.start.toHTML(e);if(i.start&&(a='<span class="math-parenthesis math-round-parenthesis">(</span>'+a+'<span class="math-parenthesis math-round-parenthesis">)</span>'),t=a,this.step){var o=this.step.toHTML(e);i.step&&(o='<span class="math-parenthesis math-round-parenthesis">(</span>'+o+'<span class="math-parenthesis math-round-parenthesis">)</span>'),t+='<span class="math-operator math-range-operator">:</span>'+o}var s=this.end.toHTML(e);return i.end&&(s='<span class="math-parenthesis math-round-parenthesis">(</span>'+s+'<span class="math-parenthesis math-round-parenthesis">)</span>'),t+='<span class="math-operator math-range-operator">:</span>'+s,t},n.prototype._toTex=function(e){var t=e&&e.parenthesis?e.parenthesis:"keep",n=r(this,t),i=this.start.toTex(e);if(n.start&&(i="\\left(".concat(i,"\\right)")),this.step){var a=this.step.toTex(e);n.step&&(a="\\left(".concat(a,"\\right)")),i+=":"+a}var o=this.end.toTex(e);return n.end&&(o="\\left(".concat(o,"\\right)")),i+=":"+o,i},n}),{isClass:!0,isNode:!0}),_n="reviver",Cn=["classes"],Sn=Le(_n,Cn,(e=>{var{classes:t}=e;return function(e,n){var r=t[n&&n.mathjs];return r&&"function"===typeof r.fromJSON?r.fromJSON(n):n}})),Nn="chain",kn=["typed","Chain"],En=Le(Nn,kn,(e=>{var{typed:t,Chain:n}=e;return t(Nn,{"":function(){return new n},any:function(e){return new n(e)}})})),Mn="FunctionAssignmentNode",On=["typed","Node"],Dn=Le(Mn,On,(e=>{var{typed:t,Node:n}=e;function r(e,t,n){if(!(this instanceof r))throw new SyntaxError("Constructor must be called with the new operator");if("string"!==typeof e)throw new TypeError('String expected for parameter "name"');if(!Array.isArray(t))throw new TypeError('Array containing strings or objects expected for parameter "params"');if(!L(n))throw new TypeError('Node expected for parameter "expr"');if(We.has(e))throw new Error('Illegal function name, "'+e+'" is a reserved keyword');this.name=e,this.params=t.map((function(e){return e&&e.name||e})),this.types=t.map((function(e){return e&&e.type||"any"})),this.expr=n}function i(e,t){var n=zt(e,t),r=zt(e.expr,t);return"all"===t||null!==r&&r<=n}return r.prototype=new n,r.prototype.type="FunctionAssignmentNode",r.prototype.isFunctionAssignmentNode=!0,r.prototype._compile=function(e,n){var r=Object.create(n);At(this.params,(function(e){r[e]=!0}));var i=this.expr._compile(e,r),a=this.name,o=this.params,s=Pt(this.types,","),l=a+"("+Pt(this.params,", ")+")";return function(e,n,r){var u={};u[s]=function(){for(var t=Object.create(n),a=0;a<o.length;a++)t[o[a]]=arguments[a];return i(e,t,r)};var c=t(a,u);return c.syntax=l,e.set(a,c),c}},r.prototype.forEach=function(e){e(this.expr,"expr",this)},r.prototype.map=function(e){var t=this._ifNode(e(this.expr,"expr",this));return new r(this.name,this.params.slice(0),t)},r.prototype.clone=function(){return new r(this.name,this.params.slice(0),this.expr)},r.prototype._toString=function(e){var t=e&&e.parenthesis?e.parenthesis:"keep",n=this.expr.toString(e);return i(this,t)&&(n="("+n+")"),this.name+"("+this.params.join(", ")+") = "+n},r.prototype.toJSON=function(){var e=this.types;return{mathjs:"FunctionAssignmentNode",name:this.name,params:this.params.map((function(t,n){return{name:t,type:e[n]}})),expr:this.expr}},r.fromJSON=function(e){return new r(e.name,e.params,e.expr)},r.prototype.toHTML=function(e){for(var t=e&&e.parenthesis?e.parenthesis:"keep",n=[],r=0;r<this.params.length;r++)n.push('<span class="math-symbol math-parameter">'+Me(this.params[r])+"</span>");var a=this.expr.toHTML(e);return i(this,t)&&(a='<span class="math-parenthesis math-round-parenthesis">(</span>'+a+'<span class="math-parenthesis math-round-parenthesis">)</span>'),'<span class="math-function">'+Me(this.name)+'</span><span class="math-parenthesis math-round-parenthesis">(</span>'+n.join('<span class="math-separator">,</span>')+'<span class="math-parenthesis math-round-parenthesis">)</span><span class="math-operator math-assignment-operator math-variable-assignment-operator math-binary-operator">=</span>'+a},r.prototype._toTex=function(e){var t=e&&e.parenthesis?e.parenthesis:"keep",n=this.expr.toTex(e);return i(this,t)&&(n="\\left(".concat(n,"\\right)")),"\\mathrm{"+this.name+"}\\left("+this.params.map(Xt).join(",")+"\\right):="+n},r}),{isClass:!0,isNode:!0});function Tn(e){return e&&e.isIndexError?new mt(e.index+1,e.min+1,void 0!==e.max?e.max+1:void 0):e}function An(e){var{subset:t}=e;return function(e,n){try{if(Array.isArray(e))return t(e,n);if(e&&"function"===typeof e.subset)return e.subset(n);if("string"===typeof e)return t(e,n);if("object"===typeof e){if(!n.isObjectProperty())throw new TypeError("Cannot apply a numeric index as object property");return Ye(e,n.getObjectProperty())}throw new TypeError("Cannot apply index: unsupported type of object")}catch(r){throw Tn(r)}}}var In="AccessorNode",$n=["subset","Node"],Pn=Le(In,$n,(e=>{var{subset:t,Node:n}=e,r=An({subset:t});function i(e,t){if(!(this instanceof i))throw new SyntaxError("Constructor must be called with the new operator");if(!L(e))throw new TypeError('Node expected for parameter "object"');if(!B(t))throw new TypeError('IndexNode expected for parameter "index"');this.object=e||null,this.index=t,Object.defineProperty(this,"name",{get:function(){return this.index?this.index.isObjectProperty()?this.index.getObjectProperty():"":this.object.name||""}.bind(this),set:function(){throw new Error("Cannot assign a new name, name is read-only")}})}function a(e){return!(D(e)||T(e)||P(e)||F(e)||z(e)||V(e)||H(e))}return i.prototype=new n,i.prototype.type="AccessorNode",i.prototype.isAccessorNode=!0,i.prototype._compile=function(e,t){var n=this.object._compile(e,t),i=this.index._compile(e,t);if(this.index.isObjectProperty()){var a=this.index.getObjectProperty();return function(e,t,r){return Ye(n(e,t,r),a)}}return function(e,t,a){var o=n(e,t,a),s=i(e,t,o);return r(o,s)}},i.prototype.forEach=function(e){e(this.object,"object",this),e(this.index,"index",this)},i.prototype.map=function(e){return new i(this._ifNode(e(this.object,"object",this)),this._ifNode(e(this.index,"index",this)))},i.prototype.clone=function(){return new i(this.object,this.index)},i.prototype._toString=function(e){var t=this.object.toString(e);return a(this.object)&&(t="("+t+")"),t+this.index.toString(e)},i.prototype.toHTML=function(e){var t=this.object.toHTML(e);return a(this.object)&&(t='<span class="math-parenthesis math-round-parenthesis">(</span>'+t+'<span class="math-parenthesis math-round-parenthesis">)</span>'),t+this.index.toHTML(e)},i.prototype._toTex=function(e){var t=this.object.toTex(e);return a(this.object)&&(t="\\left(' + object + '\\right)"),t+this.index.toTex(e)},i.prototype.toJSON=function(){return{mathjs:"AccessorNode",object:this.object,index:this.index}},i.fromJSON=function(e){return new i(e.object,e.index)},i}),{isClass:!0,isNode:!0});function jn(e){var{subset:t,matrix:n}=e;return function(e,r,i){try{if(Array.isArray(e))return n(e).subset(r,i).valueOf();if(e&&"function"===typeof e.subset)return e.subset(r,i);if("string"===typeof e)return t(e,r,i);if("object"===typeof e){if(!r.isObjectProperty())throw TypeError("Cannot apply a numeric index as object property");return Ge(e,r.getObjectProperty(),i),e}throw new TypeError("Cannot apply index: unsupported type of object")}catch(a){throw Tn(a)}}}var Fn="AssignmentNode",Bn=["subset","?matrix","Node"],Ln=Le(Fn,Bn,(e=>{var{subset:t,matrix:n,Node:r}=e,i=An({subset:t}),a=jn({subset:t,matrix:n});function o(e,t,n){if(!(this instanceof o))throw new SyntaxError("Constructor must be called with the new operator");if(this.object=e,this.index=n?t:null,this.value=n||t,!H(e)&&!D(e))throw new TypeError('SymbolNode or AccessorNode expected as "object"');if(H(e)&&"end"===e.name)throw new Error('Cannot assign to symbol "end"');if(this.index&&!B(this.index))throw new TypeError('IndexNode expected as "index"');if(!L(this.value))throw new TypeError('Node expected as "value"');Object.defineProperty(this,"name",{get:function(){return this.index?this.index.isObjectProperty()?this.index.getObjectProperty():"":this.object.name||""}.bind(this),set:function(){throw new Error("Cannot assign a new name, name is read-only")}})}function s(e,t){t||(t="keep");var n=zt(e,t),r=zt(e.value,t);return"all"===t||null!==r&&r<=n}return o.prototype=new r,o.prototype.type="AssignmentNode",o.prototype.isAssignmentNode=!0,o.prototype._compile=function(e,t){var n=this.object._compile(e,t),r=this.index?this.index._compile(e,t):null,o=this.value._compile(e,t),s=this.object.name;if(this.index){if(this.index.isObjectProperty()){var l=this.index.getObjectProperty();return function(e,t,r){var i=n(e,t,r),a=o(e,t,r);return Ge(i,l,a),a}}if(H(this.object))return function(e,t,i){var l=n(e,t,i),u=o(e,t,i),c=r(e,t,l);return e.set(s,a(l,c,u)),u};var u=this.object.object._compile(e,t);if(this.object.index.isObjectProperty()){var c=this.object.index.getObjectProperty();return function(e,t,n){var i=u(e,t,n),s=Ye(i,c),l=r(e,t,s),d=o(e,t,n);return Ge(i,c,a(s,l,d)),d}}var d=this.object.index._compile(e,t);return function(e,t,n){var s=u(e,t,n),l=d(e,t,s),c=i(s,l),h=r(e,t,c),f=o(e,t,n);return a(s,l,a(c,h,f)),f}}if(!H(this.object))throw new TypeError("SymbolNode expected as object");return function(e,t,n){var r=o(e,t,n);return e.set(s,r),r}},o.prototype.forEach=function(e){e(this.object,"object",this),this.index&&e(this.index,"index",this),e(this.value,"value",this)},o.prototype.map=function(e){var t=this._ifNode(e(this.object,"object",this)),n=this.index?this._ifNode(e(this.index,"index",this)):null,r=this._ifNode(e(this.value,"value",this));return new o(t,n,r)},o.prototype.clone=function(){return new o(this.object,this.index,this.value)},o.prototype._toString=function(e){var t=this.object.toString(e),n=this.index?this.index.toString(e):"",r=this.value.toString(e);return s(this,e&&e.parenthesis)&&(r="("+r+")"),t+n+" = "+r},o.prototype.toJSON=function(){return{mathjs:"AssignmentNode",object:this.object,index:this.index,value:this.value}},o.fromJSON=function(e){return new o(e.object,e.index,e.value)},o.prototype.toHTML=function(e){var t=this.object.toHTML(e),n=this.index?this.index.toHTML(e):"",r=this.value.toHTML(e);return s(this,e&&e.parenthesis)&&(r='<span class="math-paranthesis math-round-parenthesis">(</span>'+r+'<span class="math-paranthesis math-round-parenthesis">)</span>'),t+n+'<span class="math-operator math-assignment-operator math-variable-assignment-operator math-binary-operator">=</span>'+r},o.prototype._toTex=function(e){var t=this.object.toTex(e),n=this.index?this.index.toTex(e):"",r=this.value.toTex(e);return s(this,e&&e.parenthesis)&&(r="\\left(".concat(r,"\\right)")),t+n+":="+r},o}),{isClass:!0,isNode:!0}),zn="IndexNode",Rn=["Node","size"],Vn=Le(zn,Rn,(e=>{var{Node:t,size:n}=e;function r(e,t){if(!(this instanceof r))throw new SyntaxError("Constructor must be called with the new operator");if(this.dimensions=e,this.dotNotation=t||!1,!Array.isArray(e)||!e.every(L))throw new TypeError('Array containing Nodes expected for parameter "dimensions"');if(this.dotNotation&&!this.isObjectProperty())throw new Error("dotNotation only applicable for object properties")}return r.prototype=new t,r.prototype.type="IndexNode",r.prototype.isIndexNode=!0,r.prototype._compile=function(e,t){var r=Tt(this.dimensions,(function(r,i){var a=r.filter((e=>e.isSymbolNode&&"end"===e.name)).length>0;if(a){var o=Object.create(t);o.end=!0;var s=r._compile(e,o);return function(e,t,r){if(!m(r)&&!p(r)&&!f(r))throw new TypeError('Cannot resolve "end": context must be a Matrix, Array, or string but is '+W(r));var a=n(r).valueOf(),o=Object.create(t);return o.end=a[i],s(e,o,r)}}return r._compile(e,t)})),i=Ye(e,"index");return function(e,t,n){var a=Tt(r,(function(r){return r(e,t,n)}));return i(...a)}},r.prototype.forEach=function(e){for(var t=0;t<this.dimensions.length;t++)e(this.dimensions[t],"dimensions["+t+"]",this)},r.prototype.map=function(e){for(var t=[],n=0;n<this.dimensions.length;n++)t[n]=this._ifNode(e(this.dimensions[n],"dimensions["+n+"]",this));return new r(t,this.dotNotation)},r.prototype.clone=function(){return new r(this.dimensions.slice(0),this.dotNotation)},r.prototype.isObjectProperty=function(){return 1===this.dimensions.length&&P(this.dimensions[0])&&"string"===typeof this.dimensions[0].value},r.prototype.getObjectProperty=function(){return this.isObjectProperty()?this.dimensions[0].value:null},r.prototype._toString=function(e){return this.dotNotation?"."+this.getObjectProperty():"["+this.dimensions.join(", ")+"]"},r.prototype.toJSON=function(){return{mathjs:"IndexNode",dimensions:this.dimensions,dotNotation:this.dotNotation}},r.fromJSON=function(e){return new r(e.dimensions,e.dotNotation)},r.prototype.toHTML=function(e){for(var t=[],n=0;n<this.dimensions.length;n++)t[n]=this.dimensions[n].toHTML();return this.dotNotation?'<span class="math-operator math-accessor-operator">.</span><span class="math-symbol math-property">'+Me(this.getObjectProperty())+"</span>":'<span class="math-parenthesis math-square-parenthesis">[</span>'+t.join('<span class="math-separator">,</span>')+'<span class="math-parenthesis math-square-parenthesis">]</span>'},r.prototype._toTex=function(e){var t=this.dimensions.map((function(t){return t.toTex(e)}));return this.dotNotation?"."+this.getObjectProperty():"_{"+t.join(",")+"}"},r}),{isClass:!0,isNode:!0}),qn="SymbolNode",Hn=["math","?Unit","Node"],Un=Le(qn,Hn,(e=>{var{math:t,Unit:n,Node:r}=e;function i(e){return!!n&&n.isValuelessUnit(e)}function a(e){if(!(this instanceof a))throw new SyntaxError("Constructor must be called with the new operator");if("string"!==typeof e)throw new TypeError('String expected for parameter "name"');this.name=e}return a.prototype=new r,a.prototype.type="SymbolNode",a.prototype.isSymbolNode=!0,a.prototype._compile=function(e,t){var r=this.name;if(!0===t[r])return function(e,t,n){return t[r]};if(r in e)return function(t,n,i){return t.has(r)?t.get(r):Ye(e,r)};var o=i(r);return function(e,t,i){return e.has(r)?e.get(r):o?new n(null,r):a.onUndefinedSymbol(r)}},a.prototype.forEach=function(e){},a.prototype.map=function(e){return this.clone()},a.onUndefinedSymbol=function(e){throw new Error("Undefined symbol "+e)},a.prototype.clone=function(){return new a(this.name)},a.prototype._toString=function(e){return this.name},a.prototype.toHTML=function(e){var t=Me(this.name);return"true"===t||"false"===t?'<span class="math-symbol math-boolean">'+t+"</span>":"i"===t?'<span class="math-symbol math-imaginary-symbol">'+t+"</span>":"Infinity"===t?'<span class="math-symbol math-infinity-symbol">'+t+"</span>":"NaN"===t?'<span class="math-symbol math-nan-symbol">'+t+"</span>":"null"===t?'<span class="math-symbol math-null-symbol">'+t+"</span>":"undefined"===t?'<span class="math-symbol math-undefined-symbol">'+t+"</span>":'<span class="math-symbol">'+t+"</span>"},a.prototype.toJSON=function(){return{mathjs:"SymbolNode",name:this.name}},a.fromJSON=function(e){return new a(e.name)},a.prototype._toTex=function(e){var n=!1;"undefined"===typeof t[this.name]&&i(this.name)&&(n=!0);var r=Xt(this.name,n);return"\\"===r[0]?r:" "+r},a}),{isClass:!0,isNode:!0});function Wn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return"function"===typeof e.createSubScope?st(e.createSubScope(),...n):st(rt(),e,...n)}var Yn="FunctionNode",Gn=["math","Node","SymbolNode"],Kn=Le(Yn,Gn,(e=>{var{math:t,Node:n,SymbolNode:r}=e;function i(e,t){if(!(this instanceof i))throw new SyntaxError("Constructor must be called with the new operator");if("string"===typeof e&&(e=new r(e)),!L(e))throw new TypeError('Node expected as parameter "fn"');if(!Array.isArray(t)||!t.every(L))throw new TypeError('Array containing Nodes expected for parameter "args"');this.fn=e,this.args=t||[],Object.defineProperty(this,"name",{get:function(){return this.fn.name||""}.bind(this),set:function(){throw new Error("Cannot assign a new name, name is read-only")}})}i.prototype=new n,i.prototype.type="FunctionNode",i.prototype.isFunctionNode=!0;var a=e=>Ne(e,{truncate:78});i.prototype._compile=function(e,t){if(!(this instanceof i))throw new TypeError("No valid FunctionNode");var n=this.args.map((n=>n._compile(e,t)));if(!H(this.fn)){if(D(this.fn)&&B(this.fn.index)&&this.fn.index.isObjectProperty()){var r=this.fn.object._compile(e,t),o=this.fn.index.getObjectProperty(),s=this.args;return function(t,i,a){var l=r(t,i,a);Ze(l,o);var u=l[o]&&l[o].rawArgs;if(u)return l[o](s,e,Wn(t,i),t);var c=n.map((e=>e(t,i,a)));return l[o].apply(l,c)}}var l=this.fn.toString(),u=this.fn._compile(e,t),c=this.args;return function(t,r,i){var o=u(t,r,i);if("function"!==typeof o)throw new TypeError("Expression '".concat(l,"' did not evaluate to a function; value is:")+"\n ".concat(a(o)));if(o.rawArgs)return o(c,e,Wn(t,r),t);var s=n.map((e=>e(t,r,i)));return o.apply(o,s)}}var d=this.fn.name;if(t[d]){var h=this.args;return function(t,r,i){var o=r[d];if("function"!==typeof o)throw new TypeError("Argument '".concat(d,"' was not a function; received: ").concat(a(o)));if(o.rawArgs)return o(h,e,Wn(t,r),t);var s=n.map((e=>e(t,r,i)));return o.apply(o,s)}}var f=d in e?Ye(e,d):void 0,p="function"===typeof f&&!0===f.rawArgs,m=t=>{var n;if(t.has(d))n=t.get(d);else{if(!(d in e))return i.onUndefinedFunction(d);n=Ye(e,d)}if("function"===typeof n)return n;throw new TypeError("'".concat(d,"' is not a function; its value is:\n ").concat(a(n)))};if(p){var v=this.args;return function(t,n,r){var i=m(t);return i(v,e,Wn(t,n),t)}}switch(n.length){case 0:return function(e,t,n){var r=m(e);return r()};case 1:return function(e,t,r){var i=m(e),a=n[0];return i(a(e,t,r))};case 2:return function(e,t,r){var i=m(e),a=n[0],o=n[1];return i(a(e,t,r),o(e,t,r))};default:return function(e,t,r){var i=m(e),a=n.map((n=>n(e,t,r)));return i(...a)}}},i.prototype.forEach=function(e){e(this.fn,"fn",this);for(var t=0;t<this.args.length;t++)e(this.args[t],"args["+t+"]",this)},i.prototype.map=function(e){for(var t=this._ifNode(e(this.fn,"fn",this)),n=[],r=0;r<this.args.length;r++)n[r]=this._ifNode(e(this.args[r],"args["+r+"]",this));return new i(t,n)},i.prototype.clone=function(){return new i(this.fn,this.args.slice(0))},i.onUndefinedFunction=function(e){throw new Error("Undefined function "+e)};var o=i.prototype.toString;function s(e,t,n){var r,i="",a=/\$(?:\{([a-z_][a-z_0-9]*)(?:\[([0-9]+)\])?\}|\$)/gi,o=0;while(null!==(r=a.exec(e)))if(i+=e.substring(o,r.index),o=r.index,"$$"===r[0])i+="$",o++;else{o+=r[0].length;var s=t[r[1]];if(!s)throw new ReferenceError("Template: Property "+r[1]+" does not exist.");if(void 0===r[2])switch(typeof s){case"string":i+=s;break;case"object":if(L(s))i+=s.toTex(n);else{if(!Array.isArray(s))throw new TypeError("Template: "+r[1]+" has to be a Node, String or array of Nodes");i+=s.map((function(e,t){if(L(e))return e.toTex(n);throw new TypeError("Template: "+r[1]+"["+t+"] is not a Node.")})).join(",")}break;default:throw new TypeError("Template: "+r[1]+" has to be a Node, String or array of Nodes")}else{if(!L(s[r[2]]&&s[r[2]]))throw new TypeError("Template: "+r[1]+"["+r[2]+"] is not a Node.");i+=s[r[2]].toTex(n)}}return i+=e.slice(o),i}i.prototype.toString=function(e){var t,n=this.fn.toString(e);return e&&"object"===typeof e.handler&&Fe(e.handler,n)&&(t=e.handler[n](this,e)),"undefined"!==typeof t?t:o.call(this,e)},i.prototype._toString=function(e){var t=this.args.map((function(t){return t.toString(e)})),n=j(this.fn)?"("+this.fn.toString(e)+")":this.fn.toString(e);return n+"("+t.join(", ")+")"},i.prototype.toJSON=function(){return{mathjs:"FunctionNode",fn:this.fn,args:this.args}},i.fromJSON=function(e){return new i(e.fn,e.args)},i.prototype.toHTML=function(e){var t=this.args.map((function(t){return t.toHTML(e)}));return'<span class="math-function">'+Me(this.fn)+'</span><span class="math-paranthesis math-round-parenthesis">(</span>'+t.join('<span class="math-separator">,</span>')+'<span class="math-paranthesis math-round-parenthesis">)</span>'};var l=i.prototype.toTex;return i.prototype.toTex=function(e){var t;return e&&"object"===typeof e.handler&&Fe(e.handler,this.name)&&(t=e.handler[this.name](this,e)),"undefined"!==typeof t?t:l.call(this,e)},i.prototype._toTex=function(e){var n,r,i=this.args.map((function(t){return t.toTex(e)}));switch(Wt[this.name]&&(n=Wt[this.name]),!t[this.name]||"function"!==typeof t[this.name].toTex&&"object"!==typeof t[this.name].toTex&&"string"!==typeof t[this.name].toTex||(n=t[this.name].toTex),typeof n){case"function":r=n(this,e);break;case"string":r=s(n,this,e);break;case"object":switch(typeof n[i.length]){case"function":r=n[i.length](this,e);break;case"string":r=s(n[i.length],this,e);break}}return"undefined"!==typeof r?r:s(Yt,this,e)},i.prototype.getIdentifier=function(){return this.type+":"+this.name},i}),{isClass:!0,isNode:!0});function Xn(e){var t,n,r=e.length,i=e[0].length,a=[];for(n=0;n<i;n++){var o=[];for(t=0;t<r;t++)o.push(e[t][n]);a.push(o)}return a}function Zn(e){for(var t=0;t<e.length;t++)if(v(e[t]))return!0;return!1}function Jn(e,t){m(e)&&(e=e.valueOf());for(var n=0,r=e.length;n<r;n++){var i=e[n];Array.isArray(i)?Jn(i,t):t(i)}}function Qn(e,t,n){return e&&"function"===typeof e.map?e.map((function(e){return Qn(e,t,n)})):t(e)}function er(e,t,n){var r=Array.isArray(e)?vt(e):e.size();if(t<0||t>=r.length)throw new mt(t,r.length);return m(e)?e.create(tr(e.valueOf(),t,n)):tr(e,t,n)}function tr(e,t,n){var r,i,a,o;if(t<=0){if(Array.isArray(e[0])){for(o=Xn(e),i=[],r=0;r<o.length;r++)i[r]=tr(o[r],t-1,n);return i}for(a=e[0],r=1;r<e.length;r++)a=n(a,e[r]);return a}for(i=[],r=0;r<e.length;r++)i[r]=tr(e[r],t-1,n);return i}function nr(e,t,n,r,i,a,o,s,l,u,c){var d,h,f,p,m=e._values,v=e._index,g=e._ptr;if(r)for(h=g[t],f=g[t+1],d=h;d<f;d++)p=v[d],n[p]!==a?(n[p]=a,o.push(p),u?(r[p]=l?s(m[d],c):s(c,m[d]),i[p]=a):r[p]=m[d]):(r[p]=l?s(m[d],r[p]):s(r[p],m[d]),i[p]=a);else for(h=g[t],f=g[t+1],d=h;d<f;d++)p=v[d],n[p]!==a?(n[p]=a,o.push(p)):i[p]=a}var rr="parse",ir=["typed","numeric","config","AccessorNode","ArrayNode","AssignmentNode","BlockNode","ConditionalNode","ConstantNode","FunctionAssignmentNode","FunctionNode","IndexNode","ObjectNode","OperatorNode","ParenthesisNode","RangeNode","RelationalNode","SymbolNode"],ar=Le(rr,ir,(e=>{var{typed:t,numeric:n,config:i,AccessorNode:a,ArrayNode:o,AssignmentNode:s,BlockNode:l,ConditionalNode:u,ConstantNode:c,FunctionAssignmentNode:d,FunctionNode:h,IndexNode:f,ObjectNode:p,OperatorNode:m,ParenthesisNode:v,RangeNode:g,RelationalNode:y,SymbolNode:b}=e,x=t(rr,{string:function(e){return z(e,{})},"Array | Matrix":function(e){return w(e,{})},"string, Object":function(e,t){var n=void 0!==t.nodes?t.nodes:{};return z(e,n)},"Array | Matrix, Object":w});function w(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=void 0!==t.nodes?t.nodes:{};return Qn(e,(function(e){if("string"!==typeof e)throw new TypeError("String expected");return z(e,n)}))}var _={NULL:0,DELIMITER:1,NUMBER:2,SYMBOL:3,UNKNOWN:4},C={",":!0,"(":!0,")":!0,"[":!0,"]":!0,"{":!0,"}":!0,'"':!0,"'":!0,";":!0,"+":!0,"-":!0,"*":!0,".*":!0,"/":!0,"./":!0,"%":!0,"^":!0,".^":!0,"~":!0,"!":!0,"&":!0,"|":!0,"^|":!0,"=":!0,":":!0,"?":!0,"==":!0,"!=":!0,"<":!0,">":!0,"<=":!0,">=":!0,"<<":!0,">>":!0,">>>":!0},S={mod:!0,to:!0,in:!0,and:!0,xor:!0,or:!0,not:!0},N={true:!0,false:!1,null:null,undefined:void 0},k=["NaN","Infinity"];function E(){return{extraNodes:{},expression:"",comment:"",index:0,token:"",tokenType:_.NULL,nestingLevel:0,conditionalLevel:null}}function M(e,t){return e.expression.substr(e.index,t)}function O(e){return M(e,1)}function T(e){e.index++}function A(e){return e.expression.charAt(e.index-1)}function I(e){return e.expression.charAt(e.index+1)}function $(e){e.tokenType=_.NULL,e.token="",e.comment="";while(1){if("#"===O(e))while("\n"!==O(e)&&""!==O(e))e.comment+=O(e),T(e);if(!x.isWhitespace(O(e),e.nestingLevel))break;T(e)}if(""!==O(e)){if("\n"===O(e)&&!e.nestingLevel)return e.tokenType=_.DELIMITER,e.token=O(e),void T(e);var t=O(e),n=M(e,2),r=M(e,3);if(3===r.length&&C[r])return e.tokenType=_.DELIMITER,e.token=r,T(e),T(e),void T(e);if(2===n.length&&C[n])return e.tokenType=_.DELIMITER,e.token=n,T(e),void T(e);if(C[t])return e.tokenType=_.DELIMITER,e.token=t,void T(e);if(x.isDigitDot(t)){e.tokenType=_.NUMBER;var i=M(e,2);if("0b"===i||"0o"===i||"0x"===i){e.token+=O(e),T(e),e.token+=O(e),T(e);while(x.isHexDigit(O(e)))e.token+=O(e),T(e);if("."===O(e)){e.token+=".",T(e);while(x.isHexDigit(O(e)))e.token+=O(e),T(e)}else if("i"===O(e)){e.token+="i",T(e);while(x.isDigit(O(e)))e.token+=O(e),T(e)}return}if("."===O(e)){if(e.token+=O(e),T(e),!x.isDigit(O(e)))return void(e.tokenType=_.DELIMITER)}else{while(x.isDigit(O(e)))e.token+=O(e),T(e);x.isDecimalMark(O(e),I(e))&&(e.token+=O(e),T(e))}while(x.isDigit(O(e)))e.token+=O(e),T(e);if("E"===O(e)||"e"===O(e))if(x.isDigit(I(e))||"-"===I(e)||"+"===I(e)){if(e.token+=O(e),T(e),"+"!==O(e)&&"-"!==O(e)||(e.token+=O(e),T(e)),!x.isDigit(O(e)))throw Se(e,'Digit expected, got "'+O(e)+'"');while(x.isDigit(O(e)))e.token+=O(e),T(e);if(x.isDecimalMark(O(e),I(e)))throw Se(e,'Digit expected, got "'+O(e)+'"')}else if("."===I(e))throw T(e),Se(e,'Digit expected, got "'+O(e)+'"')}else{if(!x.isAlpha(O(e),A(e),I(e))){e.tokenType=_.UNKNOWN;while(""!==O(e))e.token+=O(e),T(e);throw Se(e,'Syntax error in part "'+e.token+'"')}while(x.isAlpha(O(e),A(e),I(e))||x.isDigit(O(e)))e.token+=O(e),T(e);Fe(S,e.token)?e.tokenType=_.DELIMITER:e.tokenType=_.SYMBOL}}else e.tokenType=_.DELIMITER}function j(e){do{$(e)}while("\n"===e.token)}function B(e){e.nestingLevel++}function L(e){e.nestingLevel--}function z(e,t){var n=E();r(n,{expression:e,extraNodes:t}),$(n);var i=V(n);if(""!==n.token)throw n.tokenType===_.DELIMITER?Ne(n,"Unexpected operator "+n.token):Se(n,'Unexpected part "'+n.token+'"');return i}function V(e){var t,n,r=[];""!==e.token&&"\n"!==e.token&&";"!==e.token&&(t=q(e),t.comment=e.comment);while("\n"===e.token||";"===e.token)0===r.length&&t&&(n=";"!==e.token,r.push({node:t,visible:n})),$(e),"\n"!==e.token&&";"!==e.token&&""!==e.token&&(t=q(e),t.comment=e.comment,n=";"!==e.token,r.push({node:t,visible:n}));return r.length>0?new l(r):(t||(t=new c(void 0),t.comment=e.comment),t)}function q(e){var t,n,r,i,a=U(e);if("="===e.token){if(H(a))return t=a.name,j(e),r=q(e),new s(new b(t),r);if(D(a))return j(e),r=q(e),new s(a.object,a.index,r);if(F(a)&&H(a.fn)&&(i=!0,n=[],t=a.name,a.args.forEach((function(e,t){H(e)?n[t]=e.name:i=!1})),i))return j(e),r=q(e),new d(t,n,r);throw Se(e,"Invalid left hand side of assignment operator =")}return a}function U(e){var t=W(e);while("?"===e.token){var n=e.conditionalLevel;e.conditionalLevel=e.nestingLevel,j(e);var r=t,i=q(e);if(":"!==e.token)throw Se(e,"False part of conditional expression expected");e.conditionalLevel=null,j(e);var a=q(e);t=new u(r,i,a),e.conditionalLevel=n}return t}function W(e){var t=Y(e);while("or"===e.token)j(e),t=new m("or","or",[t,Y(e)]);return t}function Y(e){var t=G(e);while("xor"===e.token)j(e),t=new m("xor","xor",[t,G(e)]);return t}function G(e){var t=K(e);while("and"===e.token)j(e),t=new m("and","and",[t,K(e)]);return t}function K(e){var t=X(e);while("|"===e.token)j(e),t=new m("|","bitOr",[t,X(e)]);return t}function X(e){var t=Z(e);while("^|"===e.token)j(e),t=new m("^|","bitXor",[t,Z(e)]);return t}function Z(e){var t=J(e);while("&"===e.token)j(e),t=new m("&","bitAnd",[t,J(e)]);return t}function J(e){var t=[Q(e)],n=[],r={"==":"equal","!=":"unequal","<":"smaller",">":"larger","<=":"smallerEq",">=":"largerEq"};while(Fe(r,e.token)){var i={name:e.token,fn:r[e.token]};n.push(i),j(e),t.push(Q(e))}return 1===t.length?t[0]:2===t.length?new m(n[0].name,n[0].fn,t):new y(n.map((e=>e.fn)),t)}function Q(e){var t,n,r,i;t=ee(e);var a={"<<":"leftShift",">>":"rightArithShift",">>>":"rightLogShift"};while(Fe(a,e.token))n=e.token,r=a[n],j(e),i=[t,ee(e)],t=new m(n,r,i);return t}function ee(e){var t,n,r,i;t=te(e);var a={to:"to",in:"to"};while(Fe(a,e.token))n=e.token,r=a[n],j(e),"in"===n&&""===e.token?t=new m("*","multiply",[t,new b("in")],!0):(i=[t,te(e)],t=new m(n,r,i));return t}function te(e){var t,n=[];if(t=":"===e.token?new c(1):ne(e),":"===e.token&&e.conditionalLevel!==e.nestingLevel){n.push(t);while(":"===e.token&&n.length<3)j(e),")"===e.token||"]"===e.token||","===e.token||""===e.token?n.push(new b("end")):n.push(ne(e));t=3===n.length?new g(n[0],n[2],n[1]):new g(n[0],n[1])}return t}function ne(e){var t,n,r,i;t=re(e);var a={"+":"add","-":"subtract"};while(Fe(a,e.token)){n=e.token,r=a[n],j(e);var o=re(e);i=o.isPercentage?[t,new m("*","multiply",[t,o])]:[t,o],t=new m(n,r,i)}return t}function re(e){var t,n,r,i;t=ie(e),n=t;var a={"*":"multiply",".*":"dotMultiply","/":"divide","./":"dotDivide"};while(1){if(!Fe(a,e.token))break;r=e.token,i=a[r],j(e),n=ie(e),t=new m(r,i,[t,n])}return t}function ie(e){var t,n;t=ae(e),n=t;while(1){if(!(e.tokenType===_.SYMBOL||"in"===e.token&&P(t))&&(e.tokenType!==_.NUMBER||P(n)||R(n)&&"!"!==n.op)&&"("!==e.token)break;n=ae(e),t=new m("*","multiply",[t,n],!0)}return t}function ae(e){var t=oe(e),n=t,i=[];while(1){if("/"!==e.token||!P(n))break;if(i.push(r({},e)),j(e),e.tokenType!==_.NUMBER){r(e,i.pop());break}if(i.push(r({},e)),j(e),e.tokenType!==_.SYMBOL&&"("!==e.token){i.pop(),r(e,i.pop());break}r(e,i.pop()),i.pop(),n=oe(e),t=new m("/","divide",[t,n])}return t}function oe(e){var t,n,r,i;t=se(e);var a={"%":"mod",mod:"mod"};while(Fe(a,e.token))n=e.token,r=a[n],j(e),"%"===n&&e.tokenType===_.DELIMITER&&"("!==e.token?t=new m("/","divide",[t,new c(100)],!1,!0):(i=[t,se(e)],t=new m(n,r,i));return t}function se(e){var t,n,r,i={"-":"unaryMinus","+":"unaryPlus","~":"bitNot",not:"not"};return Fe(i,e.token)?(r=i[e.token],t=e.token,j(e),n=[se(e)],new m(t,r,n)):le(e)}function le(e){var t,n,r,i;return t=ue(e),"^"!==e.token&&".^"!==e.token||(n=e.token,r="^"===n?"pow":"dotPow",j(e),i=[t,se(e)],t=new m(n,r,i)),t}function ue(e){var t,n,r,i;t=ce(e);var a={"!":"factorial","'":"ctranspose"};while(Fe(a,e.token))n=e.token,r=a[n],$(e),i=[t],t=new m(n,r,i),t=he(e,t);return t}function ce(e){var t=[];if(e.tokenType===_.SYMBOL&&Fe(e.extraNodes,e.token)){var n=e.extraNodes[e.token];if($(e),"("===e.token){if(t=[],B(e),$(e),")"!==e.token){t.push(q(e));while(","===e.token)$(e),t.push(q(e))}if(")"!==e.token)throw Se(e,"Parenthesis ) expected");L(e),$(e)}return new n(t)}return de(e)}function de(e){var t,r;return e.tokenType===_.SYMBOL||e.tokenType===_.DELIMITER&&e.token in S?(r=e.token,$(e),t=Fe(N,r)?new c(N[r]):-1!==k.indexOf(r)?new c(n(r,"number")):new b(r),t=he(e,t),t):fe(e)}function he(e,t,n){var r;while(("("===e.token||"["===e.token||"."===e.token)&&(!n||-1!==n.indexOf(e.token)))if(r=[],"("===e.token){if(!H(t)&&!D(t))return t;if(B(e),$(e),")"!==e.token){r.push(q(e));while(","===e.token)$(e),r.push(q(e))}if(")"!==e.token)throw Se(e,"Parenthesis ) expected");L(e),$(e),t=new h(t,r)}else if("["===e.token){if(B(e),$(e),"]"!==e.token){r.push(q(e));while(","===e.token)$(e),r.push(q(e))}if("]"!==e.token)throw Se(e,"Parenthesis ] expected");L(e),$(e),t=new a(t,new f(r))}else{if($(e),e.tokenType!==_.SYMBOL)throw Se(e,"Property name expected after dot");r.push(new c(e.token)),$(e);var i=!0;t=new a(t,new f(r,i))}return t}function fe(e){var t,n;return'"'===e.token?(n=pe(e),t=new c(n),t=he(e,t),t):me(e)}function pe(e){var t="";while(""!==O(e)&&'"'!==O(e))"\\"===O(e)&&(t+=O(e),T(e)),t+=O(e),T(e);if($(e),'"'!==e.token)throw Se(e,'End of string " expected');return $(e),JSON.parse('"'+t+'"')}function me(e){var t,n;return"'"===e.token?(n=ve(e),t=new c(n),t=he(e,t),t):ge(e)}function ve(e){var t="";while(""!==O(e)&&"'"!==O(e))"\\"===O(e)&&(t+=O(e),T(e)),t+=O(e),T(e);if($(e),"'"!==e.token)throw Se(e,"End of string ' expected");return $(e),JSON.parse('"'+t+'"')}function ge(e){var t,n,r,i;if("["===e.token){if(B(e),$(e),"]"!==e.token){var a=ye(e);if(";"===e.token){r=1,n=[a];while(";"===e.token)$(e),n[r]=ye(e),r++;if("]"!==e.token)throw Se(e,"End of matrix ] expected");L(e),$(e),i=n[0].items.length;for(var s=1;s<r;s++)if(n[s].items.length!==i)throw Ne(e,"Column dimensions mismatch ("+n[s].items.length+" !== "+i+")");t=new o(n)}else{if("]"!==e.token)throw Se(e,"End of matrix ] expected");L(e),$(e),t=a}}else L(e),$(e),t=new o([]);return he(e,t)}return be(e)}function ye(e){var t=[q(e)],n=1;while(","===e.token)$(e),t[n]=q(e),n++;return new o(t)}function be(e){if("{"===e.token){var t;B(e);var n={};do{if($(e),"}"!==e.token){if('"'===e.token)t=pe(e);else if("'"===e.token)t=ve(e);else{if(!(e.tokenType===_.SYMBOL||e.tokenType===_.DELIMITER&&e.token in S))throw Se(e,"Symbol or string expected as object key");t=e.token,$(e)}if(":"!==e.token)throw Se(e,"Colon : expected after object key");$(e),n[t]=q(e)}}while(","===e.token);if("}"!==e.token)throw Se(e,"Comma , or bracket } expected after object value");L(e),$(e);var r=new p(n);return r=he(e,r),r}return xe(e)}function xe(e){var t;return e.tokenType===_.NUMBER?(t=e.token,$(e),new c(n(t,i.number))):we(e)}function we(e){var t;if("("===e.token){if(B(e),$(e),t=q(e),")"!==e.token)throw Se(e,"Parenthesis ) expected");return L(e),$(e),t=new v(t),t=he(e,t),t}return _e(e)}function _e(e){throw""===e.token?Se(e,"Unexpected end of expression"):Se(e,"Value expected")}function Ce(e){return e.index-e.token.length+1}function Se(e,t){var n=Ce(e),r=new SyntaxError(t+" (char "+n+")");return r.char=n,r}function Ne(e,t){var n=Ce(e),r=new SyntaxError(t+" (char "+n+")");return r.char=n,r}return x.isAlpha=function(e,t,n){return x.isValidLatinOrGreek(e)||x.isValidMathSymbol(e,n)||x.isValidMathSymbol(t,e)},x.isValidLatinOrGreek=function(e){return/^[a-zA-Z_$\u00C0-\u02AF\u0370-\u03FF\u2100-\u214F]$/.test(e)},x.isValidMathSymbol=function(e,t){return/^[\uD835]$/.test(e)&&/^[\uDC00-\uDFFF]$/.test(t)&&/^[^\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDFCC\uDFCD]$/.test(t)},x.isWhitespace=function(e,t){return" "===e||"\t"===e||"\n"===e&&t>0},x.isDecimalMark=function(e,t){return"."===e&&"/"!==t&&"*"!==t&&"^"!==t},x.isDigitDot=function(e){return e>="0"&&e<="9"||"."===e},x.isDigit=function(e){return e>="0"&&e<="9"},x.isHexDigit=function(e){return e>="0"&&e<="9"||e>="a"&&e<="f"||e>="A"&&e<="F"},x})),or="resolve",sr=["parse","ConstantNode","FunctionNode","OperatorNode","ParenthesisNode"],lr=Le(or,sr,(e=>{var{parse:t,ConstantNode:n,FunctionNode:r,OperatorNode:i,ParenthesisNode:a}=e;function o(e,s){var l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Set;if(!s)return e;if(ot(s)||(s=it(s)),H(e)){if(l.has(e.name)){var u=Array.from(l).join(", ");throw new ReferenceError("recursive loop of variable definitions among {".concat(u,"}"))}var c=s.get(e.name);if(L(c)){var d=new Set(l);return d.add(e.name),o(c,s,d)}return"number"===typeof c?t(String(c)):void 0!==c?new n(c):e}if(R(e)){var h=e.args.map((function(e){return o(e,s,l)}));return new i(e.op,e.fn,h,e.implicit)}if(V(e))return new a(o(e.content,s,l));if(F(e)){var f=e.args.map((function(e){return o(e,s,l)}));return new r(e.name,f)}return e.map((e=>o(e,s,l)))}return o}));function ur(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cr(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 dr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cr(Object(n),!0).forEach((function(t){ur(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var hr="simplifyUtil",fr=["FunctionNode","OperatorNode","SymbolNode"],pr=Le(hr,fr,(e=>{var{FunctionNode:t,OperatorNode:n,SymbolNode:r}=e,i=!0,a=!1,o="defaultF",s={add:{trivial:i,total:i,commutative:i,associative:i},unaryPlus:{trivial:i,total:i,commutative:i,associative:i},subtract:{trivial:a,total:i,commutative:a,associative:a},multiply:{trivial:i,total:i,commutative:i,associative:i},divide:{trivial:a,total:i,commutative:a,associative:a},paren:{trivial:i,total:i,commutative:i,associative:a},defaultF:{trivial:a,total:i,commutative:a,associative:a}},l={divide:{total:a},log:{total:a}},u={subtract:{total:a},abs:{trivial:i},log:{total:i}};function c(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s,r=o;if("string"===typeof e?r=e:R(e)?r=e.fn.toString():F(e)?r=e.name:V(e)&&(r="paren"),Fe(n,r)){var i=n[r];if(Fe(i,t))return i[t];if(Fe(s,r))return s[r][t]}if(Fe(n,o)){var a=n[o];return Fe(a,t)?a[t]:s[o][t]}if(Fe(s,r)){var l=s[r];if(Fe(l,t))return l[t]}return s[o][t]}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s;return c(e,"commutative",t)}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s;return c(e,"associative",t)}function f(e,t){var n=dr({},e);for(var r in t)Fe(e,r)?n[r]=dr(dr({},t[r]),e[r]):n[r]=t[r];return n}function p(e,t){if(!e.args||0===e.args.length)return e;e.args=m(e,t);for(var n=0;n<e.args.length;n++)p(e.args[n],t)}function m(e,t){var n,r=[],i=function e(t){for(var i=0;i<t.args.length;i++){var a=t.args[i];R(a)&&n===a.op?e(a):r.push(a)}};return h(e,t)?(n=e.op,i(e),r):e.args}function v(e,t){if(e.args&&0!==e.args.length){for(var n=y(e),r=e.args.length,i=0;i<r;i++)v(e.args[i],t);if(r>2&&h(e,t)){var a=e.args.pop();while(e.args.length>0)a=n([e.args.pop(),a]);e.args=a.args}}}function g(e,t){if(e.args&&0!==e.args.length){for(var n=y(e),r=e.args.length,i=0;i<r;i++)g(e.args[i],t);if(r>2&&h(e,t)){var a=e.args.shift();while(e.args.length>0)a=n([a,e.args.shift()]);e.args=a.args}}}function y(e){return R(e)?function(t){try{return new n(e.op,e.fn,t,e.implicit)}catch(r){return console.error(r),[]}}:function(n){return new t(new r(e.name),n)}}return{createMakeNodeFunction:y,hasProperty:c,isCommutative:d,isAssociative:h,mergeContext:f,flatten:p,allChildren:m,unflattenr:v,unflattenl:g,defaultContext:s,realContext:l,positiveContext:u}})),mr="simplifyCore",vr=["equal","isZero","add","subtract","multiply","divide","pow","AccessorNode","ArrayNode","ConstantNode","FunctionNode","IndexNode","ObjectNode","OperatorNode","ParenthesisNode","SymbolNode"],gr=Le(mr,vr,(e=>{var{equal:t,isZero:n,add:r,subtract:i,multiply:a,divide:o,pow:s,AccessorNode:l,ArrayNode:u,ConstantNode:c,FunctionNode:d,IndexNode:h,ObjectNode:f,OperatorNode:p,ParenthesisNode:m,SymbolNode:v}=e,g=new c(0),y=new c(1),{hasProperty:b,isCommutative:x}=pr({FunctionNode:d,OperatorNode:p,SymbolNode:v});function w(e,m){var v=m?m.context:void 0;if(b(e,"trivial",v)){if(F(e)&&1===e.args.length)return w(e.args[0],m);var _=!1,C=0;if(e.forEach((e=>{++C,1===C&&(_=w(e,m))})),1===C)return _}if(R(e)&&e.isUnary()){var S=w(e.args[0],m);if("-"===e.op){if(R(S)){if(S.isUnary()&&"-"===S.op)return S.args[0];if(S.isBinary()&&"subtract"===S.fn)return new p("-","subtract",[S.args[1],S.args[0]])}return new p(e.op,e.fn,[S])}}else{if(R(e)&&e.isBinary()){var N=w(e.args[0],m),k=w(e.args[1],m);if("+"===e.op){if(P(N)){if(n(N.value))return k;if(P(k))return new c(r(N.value,k.value))}return P(k)&&n(k.value)?N:R(k)&&k.isUnary()&&"-"===k.op?new p("-","subtract",[N,k.args[0]]):new p(e.op,e.fn,k?[N,k]:[N])}if("-"===e.op){if(P(N)&&k){if(P(k))return new c(i(N.value,k.value));if(n(N.value))return new p("-","unaryMinus",[k])}if("subtract"===e.fn)return P(k)&&n(k.value)?N:R(k)&&k.isUnary()&&"-"===k.op?w(new p("+","add",[N,k.args[0]]),m):new p(e.op,e.fn,[N,k])}else{if("*"===e.op){if(P(N)){if(n(N.value))return g;if(t(N.value,1))return k;if(P(k))return new c(a(N.value,k.value))}if(P(k)){if(n(k.value))return g;if(t(k.value,1))return N;if(R(N)&&N.isBinary()&&N.op===e.op&&x(e,v)){var E=N.args[0];if(P(E)){var M=new c(a(E.value,k.value));return new p(e.op,e.fn,[M,N.args[1]],e.implicit)}}return x(e,v)?new p(e.op,e.fn,[k,N],e.implicit):new p(e.op,e.fn,[N,k],e.implicit)}return new p(e.op,e.fn,[N,k],e.implicit)}if("/"===e.op){if(P(N)){if(n(N.value))return g;if(P(k)&&(t(k.value,1)||t(k.value,2)||t(k.value,4)))return new c(o(N.value,k.value))}return new p(e.op,e.fn,[N,k])}if("^"===e.op&&P(k)){if(n(k.value))return y;if(t(k.value,1))return N;if(P(N))return new c(s(N.value,k.value));if(R(N)&&N.isBinary()&&"^"===N.op){var O=N.args[1];if(P(O))return new p(e.op,e.fn,[N.args[0],new c(a(O.value,k.value))])}}}return new p(e.op,e.fn,[N,k])}if(F(e))return new d(w(e.fn),e.args.map((e=>w(e,m))));if(T(e))return new u(e.items.map((e=>w(e,m))));if(D(e))return new l(w(e.object,m),w(e.index,m));if(B(e))return new h(e.dimensions.map((e=>w(e,m))));if(z(e)){var A={};for(var I in e.properties)A[I]=w(e.properties[I],m);return new f(A)}}return e}return w})),yr="compile",br=["typed","parse"],xr=Le(yr,br,(e=>{var{typed:t,parse:n}=e;return t(yr,{string:function(e){return n(e).compile()},"Array | Matrix":function(e){return Qn(e,(function(e){return n(e).compile()}))}})})),wr="Help",_r=["parse"],Cr=Le(wr,_r,(e=>{var{parse:t}=e;function n(e){if(!(this instanceof n))throw new SyntaxError("Constructor must be called with the new operator");if(!e)throw new Error('Argument "doc" missing');this.doc=e}return n.prototype.type="Help",n.prototype.isHelp=!0,n.prototype.toString=function(){var e=this.doc||{},n="\n";if(e.name&&(n+="Name: "+e.name+"\n\n"),e.category&&(n+="Category: "+e.category+"\n\n"),e.description&&(n+="Description:\n "+e.description+"\n\n"),e.syntax&&(n+="Syntax:\n "+e.syntax.join("\n ")+"\n\n"),e.examples){n+="Examples:\n";for(var r={},i=0;i<e.examples.length;i++){var a=e.examples[i];n+=" "+a+"\n";var o=void 0;try{o=t(a).compile().evaluate(r)}catch(Vc){o=Vc}void 0===o||C(o)||(n+=" "+Ne(o,{precision:14})+"\n")}n+="\n"}return e.mayThrow&&e.mayThrow.length&&(n+="Throws: "+e.mayThrow.join(", ")+"\n\n"),e.seealso&&e.seealso.length&&(n+="See also: "+e.seealso.join(", ")+"\n"),n},n.prototype.toJSON=function(){var e=Ae(this.doc);return e.mathjs="Help",e},n.fromJSON=function(e){var t={};return Object.keys(e).filter((e=>"mathjs"!==e)).forEach((n=>{t[n]=e[n]})),new n(t)},n.prototype.valueOf=n.prototype.toString,n}),{isClass:!0}),Sr="leafCount",Nr=["parse","typed"],kr=Le(Sr,Nr,(e=>{var{parse:t,typed:n}=e;function r(e){var t=0;return e.forEach((e=>{t+=r(e)})),t||1}return n(Sr,{string:function(e){return this(t(e))},Node:function(e){return r(e)}})}));function Er(){throw new Error('No "bignumber" implementation available')}function Mr(){throw new Error('No "fraction" implementation available')}function Or(){throw new Error('No "matrix" implementation available')}var Dr="simplifyConstant",Tr=["typed","config","mathWithTransform","matrix","?fraction","?bignumber","AccessorNode","ArrayNode","ConstantNode","FunctionNode","IndexNode","ObjectNode","OperatorNode","SymbolNode"],Ar=Le(Dr,Tr,(e=>{var{typed:t,config:n,mathWithTransform:r,matrix:i,fraction:a,bignumber:o,AccessorNode:s,ArrayNode:l,ConstantNode:u,FunctionNode:c,IndexNode:h,ObjectNode:f,OperatorNode:p,SymbolNode:v}=e,{isCommutative:g,isAssociative:y,allChildren:b,createMakeNodeFunction:x}=pr({FunctionNode:c,OperatorNode:p,SymbolNode:v});function w(e,t){return N(I(e,t))}function _(e){return d(e)?e.valueOf():e instanceof Array?e.map(_):m(e)?i(_(e.valueOf())):e}function C(e,t,n){try{return r[e].apply(null,t)}catch(i){return t=t.map(_),E(r[e].apply(null,t),n)}}var S=t({Fraction:O,number:function(e){return e<0?M(new u(-e)):new u(e)},BigNumber:function(e){return e<0?M(new u(-e)):new u(e)},Complex:function(e){throw new Error("Cannot convert Complex number to Node")},string:function(e){return new u(e)},Matrix:function(e){return new l(e.valueOf().map((e=>S(e))))}});function N(e){return L(e)?e:S(e)}function k(e,t){var n=t&&!1!==t.exactFractions;if(n&&isFinite(e)&&a){var r=a(e),i=t&&"number"===typeof t.fractionsLimit?t.fractionsLimit:1/0;if(r.valueOf()===e&&r.n<i&&r.d<i)return r}return e}var E=t({"string, Object":function(e,t){if("BigNumber"===n.number)return void 0===o&&Er(),o(e);if("Fraction"===n.number)return void 0===a&&Mr(),a(e);var r=parseFloat(e);return k(r,t)},"Fraction, Object":function(e,t){return e},"BigNumber, Object":function(e,t){return e},"number, Object":function(e,t){return k(e,t)},"Complex, Object":function(e,t){return 0!==e.im?e:k(e.re,t)},"Matrix, Object":function(e,t){return i(k(e.valueOf()))},"Array, Object":function(e,t){return e.map(k)}});function M(e){return new p("-","unaryMinus",[e])}function O(e){var t,n=e.s*e.n;return t=n<0?new p("-","unaryMinus",[new u(-n)]):new u(n),1===e.d?t:new p("/","divide",[t,new u(e.d)])}function D(e,t,n){if(!B(t))return new s(N(e),N(t));if(T(e)||m(e)){var r=Array.from(t.dimensions);while(r.length>0)if(P(r[0])&&"string"!==typeof r[0].value){var a=E(r.shift().value,n);T(e)?e=e.items[a-1]:(e=e.valueOf()[a-1],e instanceof Array&&(e=i(e)))}else{if(!(r.length>1&&P(r[1])&&"string"!==typeof r[1].value))break;var o=E(r[1].value,n),c=[],d=T(e)?e.items:e.valueOf();for(var f of d)if(T(f))c.push(f.items[o-1]);else{if(!m(e))break;c.push(f[o-1])}if(c.length!==d.length)break;e=T(e)?new l(c):i(c),r.splice(1,1)}return r.length===t.dimensions.length?new s(N(e),t):r.length>0?(t=new h(r),new s(N(e),t)):e}if(z(e)&&1===t.dimensions.length&&P(t.dimensions[0])){var p=t.dimensions[0].value;return p in e.properties?e.properties[p]:new u}return new s(N(e),t)}function A(e,t,n,r){return t.reduce((function(t,i){if(L(t)||L(i))L(t)?L(i)||(i=S(i)):t=S(t);else{try{return C(e,[t,i],r)}catch(a){}t=S(t),i=S(i)}return n([t,i])}))}function I(e,t){switch(e.type){case"SymbolNode":return e;case"ConstantNode":switch(typeof e.value){case"number":return E(e.value,t);case"string":return e.value;default:if(!isNaN(e.value))return E(e.value,t)}return e;case"FunctionNode":if(r[e.name]&&r[e.name].rawArgs)return e;var n=["add","multiply"];if(-1===n.indexOf(e.name)){var a=e.args.map((e=>I(e,t)));if(!a.some(L))try{return C(e.name,a,t)}catch($){}if("size"===e.name&&1===a.length&&T(a[0])){var o=[],s=a[0];while(T(s))o.push(s.items.length),s=s.items[0];return i(o)}return new c(e.name,a.map(N))}case"OperatorNode":var u,d,p=e.fn.toString(),m=x(e);if(R(e)&&e.isUnary())u=[I(e.args[0],t)],d=L(u[0])?m(u):C(p,u,t);else if(y(e,t.context))if(u=b(e,t.context),u=u.map((e=>I(e,t))),g(p,t.context)){for(var v=[],_=[],S=0;S<u.length;S++)L(u[S])?_.push(u[S]):v.push(u[S]);v.length>1?(d=A(p,v,m,t),_.unshift(d),d=A(p,_,m,t)):d=A(p,u,m,t)}else d=A(p,u,m,t);else u=e.args.map((e=>I(e,t))),d=A(p,u,m,t);return d;case"ParenthesisNode":return I(e.content,t);case"AccessorNode":return D(I(e.object,t),I(e.index,t),t);case"ArrayNode":var k=e.items.map((e=>I(e,t)));return k.some(L)?new l(k.map(N)):i(k);case"IndexNode":return new h(e.dimensions.map((e=>w(e,t))));case"ObjectNode":var M={};for(var O in e.properties)M[O]=w(e.properties[O],t);return new f(M);case"AssignmentNode":case"BlockNode":case"FunctionAssignmentNode":case"RangeNode":case"ConditionalNode":default:throw new Error("Unimplemented node type in simplifyConstant: ".concat(e.type))}}return w})),Ir="simplify",$r=["config","typed","parse","add","subtract","multiply","divide","pow","isZero","equal","resolve","simplifyCore","?fraction","?bignumber","mathWithTransform","matrix","AccessorNode","ArrayNode","ConstantNode","FunctionNode","IndexNode","ObjectNode","OperatorNode","ParenthesisNode","SymbolNode"],Pr=Le(Ir,$r,(e=>{var{config:t,typed:n,parse:r,add:i,subtract:a,multiply:o,divide:s,pow:l,isZero:u,equal:c,resolve:d,simplifyCore:h,fraction:f,bignumber:p,mathWithTransform:m,matrix:v,AccessorNode:g,ArrayNode:y,ConstantNode:b,FunctionNode:x,IndexNode:w,ObjectNode:_,OperatorNode:C,ParenthesisNode:S,SymbolNode:N}=e,k=Ar({typed:n,config:t,mathWithTransform:m,matrix:v,fraction:f,bignumber:p,AccessorNode:g,ArrayNode:y,ConstantNode:b,FunctionNode:x,IndexNode:w,ObjectNode:_,OperatorNode:C,SymbolNode:N}),{hasProperty:E,isCommutative:M,isAssociative:O,mergeContext:D,flatten:T,unflattenr:A,unflattenl:I,createMakeNodeFunction:$,defaultContext:j,realContext:F,positiveContext:B}=pr({FunctionNode:x,OperatorNode:C,SymbolNode:N}),L=n("simplify",{string:function(e){return this(r(e),this.rules,rt(),{})},"string, Map | Object":function(e,t){return this(r(e),this.rules,t,{})},"string, Map | Object, Object":function(e,t,n){return this(r(e),this.rules,t,n)},"string, Array":function(e,t){return this(r(e),t,rt(),{})},"string, Array, Map | Object":function(e,t,n){return this(r(e),t,n,{})},"string, Array, Map | Object, Object":function(e,t,n,i){return this(r(e),t,n,i)},"Node, Map | Object":function(e,t){return this(e,this.rules,t,{})},"Node, Map | Object, Object":function(e,t,n){return this(e,this.rules,t,n)},Node:function(e){return this(e,this.rules,rt(),{})},"Node, Array":function(e,t){return this(e,t,rt(),{})},"Node, Array, Map | Object":function(e,t,n){return this(e,t,n,{})},"Node, Array, Object, Object":function(e,t,n,r){return this(e,t,it(n),r)},"Node, Array, Map, Object":function(e,t,n,r){var i=r.consoleDebug;t=H(t,r.context);var a=d(e,n);a=z(a);var o={},s=a.toString({parenthesis:"all"});while(!o[s]){o[s]=!0,U=0;var l=s;i&&console.log("Working on: ",s);for(var u=0;u<t.length;u++){var c="";if("function"===typeof t[u]?(a=t[u](a,r),i&&(c=t[u].name)):(T(a,r.context),a=G(a,t[u],r.context),i&&(c="".concat(t[u].l.toString()," -> ").concat(t[u].r.toString()))),i){var h=a.toString({parenthesis:"all"});h!==l&&(console.log("Applying",c,"produced",h),l=h)}I(a,r.context)}s=a.toString({parenthesis:"all"})}return a}});function z(e){return e.transform((function(e,t,n){return V(e)?z(e.content):e}))}L.defaultContext=j,L.realContext=F,L.positiveContext=B;var R={true:!0,false:!0,e:!0,i:!0,Infinity:!0,LN2:!0,LN10:!0,LOG2E:!0,LOG10E:!0,NaN:!0,phi:!0,pi:!0,SQRT1_2:!0,SQRT2:!0,tau:!0};function q(e,t){var n={};if(e.s){var i=e.s.split("->");if(2!==i.length)throw SyntaxError("Could not parse rule: "+e.s);n.l=i[0],n.r=i[1]}else n.l=e.l,n.r=e.r;for(var a of(n.l=z(r(n.l)),n.r=z(r(n.r)),["imposeContext","repeat","assuming"]))a in e&&(n[a]=e[a]);if(e.evaluate&&(n.evaluate=r(e.evaluate)),O(n.l,t)){var o=$(n.l),s=W();n.expanded={},n.expanded.l=o([n.l.clone(),s]),T(n.expanded.l,t),A(n.expanded.l,t),n.expanded.r=o([n.r,s])}return n}function H(e,t){for(var n=[],r=0;r<e.length;r++){var i=e[r],a=void 0,o=typeof i;switch(o){case"string":i={s:i};case"object":a=q(i,t);break;case"function":a=i;break;default:throw TypeError("Unsupported type of rule: "+o)}n.push(a)}return n}L.rules=[h,{l:"log(e)",r:"1"},{s:"n-n1 -> n+-n1",assuming:{subtract:{total:!0}}},{s:"n-n -> 0",assuming:{subtract:{total:!1}}},{s:"-(c*v) -> v * (-c)",assuming:{multiply:{commutative:!0},subtract:{total:!0}}},{s:"-(c*v) -> (-c) * v",assuming:{multiply:{commutative:!1},subtract:{total:!0}}},{s:"-(v*c) -> v * (-c)",assuming:{multiply:{commutative:!1},subtract:{total:!0}}},{l:"-(n1/n2)",r:"-n1/n2"},{l:"-v",r:"v * (-1)"},{l:"(n1 + n2)*(-1)",r:"n1*(-1) + n2*(-1)",repeat:!0},{l:"n/n1^n2",r:"n*n1^-n2"},{l:"n/n1",r:"n*n1^-1"},{s:"(n1*n2)^n3 -> n1^n3 * n2^n3",assuming:{multiply:{commutative:!0}}},{s:"(n1*n2)^(-1) -> n2^(-1) * n1^(-1)",assuming:{multiply:{commutative:!1}}},{s:"(n ^ n1) ^ n2 -> n ^ (n1 * n2)",assuming:{divide:{total:!0}}},{l:" v * ( v * n1 + n2)",r:"v^2 * n1 + v * n2"},{s:" v * (v^n4 * n1 + n2) -> v^(1+n4) * n1 + v * n2",assuming:{divide:{total:!0}}},{s:"v^n3 * ( v * n1 + n2) -> v^(n3+1) * n1 + v^n3 * n2",assuming:{divide:{total:!0}}},{s:"v^n3 * (v^n4 * n1 + n2) -> v^(n3+n4) * n1 + v^n3 * n2",assuming:{divide:{total:!0}}},{l:"n*n",r:"n^2"},{s:"n * n^n1 -> n^(n1+1)",assuming:{divide:{total:!0}}},{s:"n^n1 * n^n2 -> n^(n1+n2)",assuming:{divide:{total:!0}}},k,{s:"n+n -> 2*n",assuming:{add:{total:!0}}},{l:"n+-n",r:"0"},{l:"v*n + v",r:"v*(n+1)"},{l:"n3*n1 + n3*n2",r:"n3*(n1+n2)"},{l:"n3^(-n4)*n1 + n3 * n2",r:"n3^(-n4)*(n1 + n3^(n4+1) *n2)"},{l:"n3^(-n4)*n1 + n3^n5 * n2",r:"n3^(-n4)*(n1 + n3^(n4+n5)*n2)"},{s:"n*v + v -> (n+1)*v",assuming:{multiply:{commutative:!1}}},{s:"n1*n3 + n2*n3 -> (n1+n2)*n3",assuming:{multiply:{commutative:!1}}},{s:"n1*n3^(-n4) + n2 * n3 -> (n1 + n2*n3^(n4 + 1))*n3^(-n4)",assuming:{multiply:{commutative:!1}}},{s:"n1*n3^(-n4) + n2 * n3^n5 -> (n1 + n2*n3^(n4 + n5))*n3^(-n4)",assuming:{multiply:{commutative:!1}}},{l:"n*c + c",r:"(n+1)*c"},{s:"c*n + c -> c*(n+1)",assuming:{multiply:{commutative:!1}}},k,{s:"(-n)*n1 -> -(n*n1)",assuming:{subtract:{total:!0}}},{s:"n1*(-n) -> -(n1*n)",assuming:{subtract:{total:!0},multiply:{commutative:!1}}},{s:"c+v -> v+c",assuming:{add:{commutative:!0}},imposeContext:{add:{commutative:!1}}},{s:"v*c -> c*v",assuming:{multiply:{commutative:!0}},imposeContext:{multiply:{commutative:!1}}},{l:"n+-n1",r:"n-n1"},{s:"n*(n1^-1) -> n/n1",assuming:{multiply:{commutative:!0}}},{s:"n*n1^-n2 -> n/n1^n2",assuming:{multiply:{commutative:!0}}},{s:"n^-1 -> 1/n",assuming:{multiply:{commutative:!0}}},{l:"n^1",r:"n"},{s:"n*(n1/n2) -> (n*n1)/n2",assuming:{multiply:{associative:!0}}},{s:"n-(n1+n2) -> n-n1-n2",assuming:{addition:{associative:!0,commutative:!0}}},{l:"1*n",r:"n",imposeContext:{multiply:{commutative:!0}}},{s:"n1/(n2/n3) -> (n1*n3)/n2",assuming:{multiply:{associative:!0}}},{l:"n1/(-n2)",r:"-n1/n2"}];var U=0;function W(){return new N("_p"+U++)}function Y(e,t,n){var r=e;if(e)for(var i=0;i<e.length;++i){var a=G(e[i],t,n);a!==e[i]&&(r===e&&(r=e.slice()),r[i]=a)}return r}function G(e,t,n){if(t.assuming)for(var r in t.assuming)for(var i in t.assuming[r])if(E(r,i,n)!==t.assuming[r][i])return e;var a=D(t.imposeContext,n),o=e;if(o instanceof C||o instanceof x){var s=Y(o.args,t,n);s!==o.args&&(o=o.clone(),o.args=s)}else if(o instanceof S){if(o.content){var l=G(o.content,t,n);l!==o.content&&(o=new S(l))}}else if(o instanceof y){var u=Y(o.items,t,n);u!==o.items&&(o=new y(u))}else if(o instanceof g){var c=o.object;o.object&&(c=G(o.object,t,n));var d=o.index;o.index&&(d=G(o.index,t,n)),c===o.object&&d===o.index||(o=new g(c,d))}else if(o instanceof w){var h=Y(o.dimensions,t,n);h!==o.dimensions&&(o=new w(h))}else if(o instanceof _){var f=!1,p={};for(var m in o.properties)p[m]=G(o.properties[m],t,n),p[m]!==o.properties[m]&&(f=!0);f&&(o=new _(p))}var v=t.r,b=Q(t.l,o,a)[0];if(!b&&t.expanded&&(v=t.expanded.r,b=Q(t.expanded.l,o,a)[0]),b){var N=o.implicit;o=v.clone(),N&&"implicit"in v&&(o.implicit=!0),o=o.transform((function(e){return e.isSymbolNode&&Fe(b.placeholders,e.name)?b.placeholders[e.name].clone():e}))}return t.repeat&&o!==e&&(o=G(o,t,n)),o}function K(e,t){var n,r,i=[],a=$(e);if(M(e,t))for(var o=0;o<e.args.length;o++)r=e.args.slice(0),r.splice(o,1),n=1===r.length?r[0]:a(r),i.push(a([e.args[o],n]));else for(var s=1;s<e.args.length;s++){var l=e.args[0];s>1&&(l=a(e.args.slice(0,s))),r=e.args.slice(s),n=1===r.length?r[0]:a(r),i.push(a([l,n]))}return i}function X(e,t){var n={placeholders:{}};if(!e.placeholders&&!t.placeholders)return n;if(!e.placeholders)return t;if(!t.placeholders)return e;for(var r in e.placeholders)if(Fe(e.placeholders,r)&&(n.placeholders[r]=e.placeholders[r],Fe(t.placeholders,r)&&!ee(e.placeholders[r],t.placeholders[r])))return null;for(var i in t.placeholders)Fe(t.placeholders,i)&&(n.placeholders[i]=t.placeholders[i]);return n}function Z(e,t){var n,r=[];if(0===e.length||0===t.length)return r;for(var i=0;i<e.length;i++)for(var a=0;a<t.length;a++)n=X(e[i],t[a]),n&&r.push(n);return r}function J(e){if(0===e.length)return e;for(var t=e.reduce(Z),n=[],r={},i=0;i<t.length;i++){var a=JSON.stringify(t[i]);r[a]||(r[a]=!0,n.push(t[i]))}return n}function Q(e,t,n,r){var i=[{placeholders:{}}];if(e instanceof C&&t instanceof C||e instanceof x&&t instanceof x){if(e instanceof C){if(e.op!==t.op||e.fn!==t.fn)return[]}else if(e instanceof x&&e.name!==t.name)return[];if(!(1===t.args.length&&1===e.args.length||!O(t,n)&&t.args.length===e.args.length||r)){if(t.args.length>=2&&2===e.args.length){for(var a=K(t,n),o=[],s=0;s<a.length;s++){var l=Q(e,a[s],n,!0);o=o.concat(l)}return o}if(e.args.length>2)throw Error("Unexpected non-binary associative function: "+e.toString());return[]}for(var u=[],d=0;d<e.args.length;d++){var h=Q(e.args[d],t.args[d],n);if(0===h.length)break;u.push(h)}if(u.length!==e.args.length){if(!M(t,n)||1===e.args.length)return[];if(e.args.length>2)throw new Error("permuting >2 commutative non-associative rule arguments not yet implemented");var f=Q(e.args[0],t.args[1],n);if(0===f.length)return[];var p=Q(e.args[1],t.args[0],n);if(0===p.length)return[];u=[f,p]}i=J(u)}else if(e instanceof N){if(0===e.name.length)throw new Error("Symbol in rule has 0 length...!?");if(R[e.name]){if(e.name!==t.name)return[]}else if("n"===e.name[0]||"_p"===e.name.substring(0,2))i[0].placeholders[e.name]=t;else if("v"===e.name[0]){if(P(t))return[];i[0].placeholders[e.name]=t}else{if("c"!==e.name[0])throw new Error("Invalid symbol in rule: "+e.name);if(!(t instanceof b))return[];i[0].placeholders[e.name]=t}}else{if(!(e instanceof b))return[];if(!c(e.value,t.value))return[]}return i}function ee(e,t){if(e instanceof b&&t instanceof b){if(!c(e.value,t.value))return!1}else if(e instanceof N&&t instanceof N){if(e.name!==t.name)return!1}else{if(!(e instanceof C&&t instanceof C||e instanceof x&&t instanceof x))return!1;if(e instanceof C){if(e.op!==t.op||e.fn!==t.fn)return!1}else if(e instanceof x&&e.name!==t.name)return!1;if(e.args.length!==t.args.length)return!1;for(var n=0;n<e.args.length;n++)if(!ee(e.args[n],t.args[n]))return!1}return!0}return L})),jr="symbolicEqual",Fr=["parse","simplify","typed","OperatorNode"],Br=Le(jr,Fr,(e=>{var{parse:t,simplify:n,typed:r,OperatorNode:i}=e;return r(jr,{"string, string":function(e,n){return this(t(e),t(n),{})},"string, string, Object":function(e,n,r){return this(t(e),t(n),r)},"Node, string":function(e,n){return this(e,t(n),{})},"Node, string, Object":function(e,n,r){return this(e,t(n),r)},"string, Node":function(e,n){return this(t(e),n,{})},"string, Node, Object":function(e,n,r){return this(t(e),n,r)},"Node, Node":function(e,t){return this(e,t,{})},"Node, Node, Object":function(e,t,r){var a=new i("-","subtract",[e,t]),o=n(a,{},r);return P(o)&&!o.value}})})),Lr="evaluate",zr=["typed","parse"],Rr=Le(Lr,zr,(e=>{var{typed:t,parse:n}=e;return t(Lr,{string:function(e){var t=rt();return n(e).compile().evaluate(t)},"string, Map | Object":function(e,t){return n(e).compile().evaluate(t)},"Array | Matrix":function(e){var t=rt();return Qn(e,(function(e){return n(e).compile().evaluate(t)}))},"Array | Matrix, Map | Object":function(e,t){return Qn(e,(function(e){return n(e).compile().evaluate(t)}))}})})),Vr={name:"e",category:"Constants",syntax:["e"],description:"Euler's number, the base of the natural logarithm. Approximately equal to 2.71828",examples:["e","e ^ 2","exp(2)","log(e)"],seealso:["exp"]},qr={name:"false",category:"Constants",syntax:["false"],description:"Boolean value false",examples:["false"],seealso:["true"]},Hr={name:"i",category:"Constants",syntax:["i"],description:"Imaginary unit, defined as i*i=-1. A complex number is described as a + b*i, where a is the real part, and b is the imaginary part.",examples:["i","i * i","sqrt(-1)"],seealso:[]},Ur={name:"Infinity",category:"Constants",syntax:["Infinity"],description:"Infinity, a number which is larger than the maximum number that can be handled by a floating point number.",examples:["Infinity","1 / 0"],seealso:[]},Wr={name:"LN10",category:"Constants",syntax:["LN10"],description:"Returns the natural logarithm of 10, approximately equal to 2.302",examples:["LN10","log(10)"],seealso:[]},Yr={name:"LN2",category:"Constants",syntax:["LN2"],description:"Returns the natural logarithm of 2, approximately equal to 0.693",examples:["LN2","log(2)"],seealso:[]},Gr={name:"LOG10E",category:"Constants",syntax:["LOG10E"],description:"Returns the base-10 logarithm of E, approximately equal to 0.434",examples:["LOG10E","log(e, 10)"],seealso:[]},Kr={name:"LOG2E",category:"Constants",syntax:["LOG2E"],description:"Returns the base-2 logarithm of E, approximately equal to 1.442",examples:["LOG2E","log(e, 2)"],seealso:[]},Xr={name:"NaN",category:"Constants",syntax:["NaN"],description:"Not a number",examples:["NaN","0 / 0"],seealso:[]},Zr={name:"null",category:"Constants",syntax:["null"],description:"Value null",examples:["null"],seealso:["true","false"]},Jr={name:"phi",category:"Constants",syntax:["phi"],description:"Phi is the golden ratio. Two quantities are in the golden ratio if their ratio is the same as the ratio of their sum to the larger of the two quantities. Phi is defined as `(1 + sqrt(5)) / 2` and is approximately 1.618034...",examples:["phi"],seealso:[]},Qr={name:"pi",category:"Constants",syntax:["pi"],description:"The number pi is a mathematical constant that is the ratio of a circle's circumference to its diameter, and is approximately equal to 3.14159",examples:["pi","sin(pi/2)"],seealso:["tau"]},ei={name:"SQRT1_2",category:"Constants",syntax:["SQRT1_2"],description:"Returns the square root of 1/2, approximately equal to 0.707",examples:["SQRT1_2","sqrt(1/2)"],seealso:[]},ti={name:"SQRT2",category:"Constants",syntax:["SQRT2"],description:"Returns the square root of 2, approximately equal to 1.414",examples:["SQRT2","sqrt(2)"],seealso:[]},ni={name:"tau",category:"Constants",syntax:["tau"],description:"Tau is the ratio constant of a circle's circumference to radius, equal to 2 * pi, approximately 6.2832.",examples:["tau","2 * pi"],seealso:["pi"]},ri={name:"true",category:"Constants",syntax:["true"],description:"Boolean value true",examples:["true"],seealso:["false"]},ii={name:"version",category:"Constants",syntax:["version"],description:"A string with the version number of math.js",examples:["version"],seealso:[]},ai={name:"bignumber",category:"Construction",syntax:["bignumber(x)"],description:"Create a big number from a number or string.",examples:["0.1 + 0.2","bignumber(0.1) + bignumber(0.2)",'bignumber("7.2")','bignumber("7.2e500")',"bignumber([0.1, 0.2, 0.3])"],seealso:["boolean","complex","fraction","index","matrix","string","unit"]},oi={name:"boolean",category:"Construction",syntax:["x","boolean(x)"],description:"Convert a string or number into a boolean.",examples:["boolean(0)","boolean(1)","boolean(3)",'boolean("true")','boolean("false")',"boolean([1, 0, 1, 1])"],seealso:["bignumber","complex","index","matrix","number","string","unit"]},si={name:"complex",category:"Construction",syntax:["complex()","complex(re, im)","complex(string)"],description:"Create a complex number.",examples:["complex()","complex(2, 3)",'complex("7 - 2i")'],seealso:["bignumber","boolean","index","matrix","number","string","unit"]},li={name:"createUnit",category:"Construction",syntax:["createUnit(definitions)","createUnit(name, definition)"],description:"Create a user-defined unit and register it with the Unit type.",examples:['createUnit("foo")','createUnit("knot", {definition: "0.514444444 m/s", aliases: ["knots", "kt", "kts"]})','createUnit("mph", "1 mile/hour")'],seealso:["unit","splitUnit"]},ui={name:"fraction",category:"Construction",syntax:["fraction(num)","fraction(matrix)","fraction(num,den)","fraction({n: num, d: den})"],description:"Create a fraction from a number or from integer numerator and denominator.",examples:["fraction(0.125)","fraction(1, 3) + fraction(2, 5)","fraction({n: 333, d: 53})","fraction([sqrt(9), sqrt(10), sqrt(11)])"],seealso:["bignumber","boolean","complex","index","matrix","string","unit"]},ci={name:"index",category:"Construction",syntax:["[start]","[start:end]","[start:step:end]","[start1, start 2, ...]","[start1:end1, start2:end2, ...]","[start1:step1:end1, start2:step2:end2, ...]"],description:"Create an index to get or replace a subset of a matrix",examples:["[]","[1, 2, 3]","A = [1, 2, 3; 4, 5, 6]","A[1, :]","A[1, 2] = 50","A[0:2, 0:2] = ones(2, 2)"],seealso:["bignumber","boolean","complex","matrix,","number","range","string","unit"]},di={name:"matrix",category:"Construction",syntax:["[]","[a1, b1, ...; a2, b2, ...]","matrix()",'matrix("dense")',"matrix([...])"],description:"Create a matrix.",examples:["[]","[1, 2, 3]","[1, 2, 3; 4, 5, 6]","matrix()","matrix([3, 4])",'matrix([3, 4; 5, 6], "sparse")','matrix([3, 4; 5, 6], "sparse", "number")'],seealso:["bignumber","boolean","complex","index","number","string","unit","sparse"]},hi={name:"number",category:"Construction",syntax:["x","number(x)","number(unit, valuelessUnit)"],description:"Create a number or convert a string or boolean into a number.",examples:["2","2e3","4.05","number(2)",'number("7.2")',"number(true)","number([true, false, true, true])",'number(unit("52cm"), "m")'],seealso:["bignumber","boolean","complex","fraction","index","matrix","string","unit"]},fi={name:"sparse",category:"Construction",syntax:["sparse()","sparse([a1, b1, ...; a1, b2, ...])",'sparse([a1, b1, ...; a1, b2, ...], "number")'],description:"Create a sparse matrix.",examples:["sparse()","sparse([3, 4; 5, 6])",'sparse([3, 0; 5, 0], "number")'],seealso:["bignumber","boolean","complex","index","number","string","unit","matrix"]},pi={name:"splitUnit",category:"Construction",syntax:["splitUnit(unit: Unit, parts: Unit[])"],description:"Split a unit in an array of units whose sum is equal to the original unit.",examples:['splitUnit(1 m, ["feet", "inch"])'],seealso:["unit","createUnit"]},mi={name:"string",category:"Construction",syntax:['"text"',"string(x)"],description:"Create a string or convert a value to a string",examples:['"Hello World!"',"string(4.2)","string(3 + 2i)"],seealso:["bignumber","boolean","complex","index","matrix","number","unit"]},vi={name:"unit",category:"Construction",syntax:["value unit","unit(value, unit)","unit(string)"],description:"Create a unit.",examples:["5.5 mm","3 inch",'unit(7.1, "kilogram")','unit("23 deg")'],seealso:["bignumber","boolean","complex","index","matrix","number","string"]},gi={name:"config",category:"Core",syntax:["config()","config(options)"],description:"Get configuration or change configuration.",examples:["config()","1/3 + 1/4",'config({number: "Fraction"})',"1/3 + 1/4"],seealso:[]},yi={name:"import",category:"Core",syntax:["import(functions)","import(functions, options)"],description:"Import functions or constants from an object.",examples:["import({myFn: f(x)=x^2, myConstant: 32 })","myFn(2)","myConstant"],seealso:[]},bi={name:"typed",category:"Core",syntax:["typed(signatures)","typed(name, signatures)"],description:"Create a typed function.",examples:['double = typed({ "number": f(x)=x+x })',"double(2)",'double("hello")'],seealso:[]},xi={name:"derivative",category:"Algebra",syntax:["derivative(expr, variable)","derivative(expr, variable, {simplify: boolean})"],description:"Takes the derivative of an expression expressed in parser Nodes. The derivative will be taken over the supplied variable in the second parameter. If there are multiple variables in the expression, it will return a partial derivative.",examples:['derivative("2x^3", "x")','derivative("2x^3", "x", {simplify: false})','derivative("2x^2 + 3x + 4", "x")','derivative("sin(2x)", "x")','f = parse("x^2 + x")','x = parse("x")',"df = derivative(f, x)","df.evaluate({x: 3})"],seealso:["simplify","parse","evaluate"]},wi={name:"leafCount",category:"Algebra",syntax:["leafCount(expr)"],description:"Computes the number of leaves in the parse tree of the given expression",examples:['leafCount("e^(i*pi)-1")','leafCount(parse("{a: 22/7, b: 10^(1/2)}"))'],seealso:["simplify"]},_i={name:"lsolve",category:"Algebra",syntax:["x=lsolve(L, b)"],description:"Finds one solution of the linear system L * x = b where L is an [n x n] lower triangular matrix and b is a [n] column vector.",examples:["a = [-2, 3; 2, 1]","b = [11, 9]","x = lsolve(a, b)"],seealso:["lsolveAll","lup","lusolve","usolve","matrix","sparse"]},Ci={name:"lsolveAll",category:"Algebra",syntax:["x=lsolveAll(L, b)"],description:"Finds all solutions of the linear system L * x = b where L is an [n x n] lower triangular matrix and b is a [n] column vector.",examples:["a = [-2, 3; 2, 1]","b = [11, 9]","x = lsolve(a, b)"],seealso:["lsolve","lup","lusolve","usolve","matrix","sparse"]},Si={name:"lup",category:"Algebra",syntax:["lup(m)"],description:"Calculate the Matrix LU decomposition with partial pivoting. Matrix A is decomposed in three matrices (L, U, P) where P * A = L * U",examples:["lup([[2, 1], [1, 4]])","lup(matrix([[2, 1], [1, 4]]))","lup(sparse([[2, 1], [1, 4]]))"],seealso:["lusolve","lsolve","usolve","matrix","sparse","slu","qr"]},Ni={name:"lusolve",category:"Algebra",syntax:["x=lusolve(A, b)","x=lusolve(lu, b)"],description:"Solves the linear system A * x = b where A is an [n x n] matrix and b is a [n] column vector.",examples:["a = [-2, 3; 2, 1]","b = [11, 9]","x = lusolve(a, b)"],seealso:["lup","slu","lsolve","usolve","matrix","sparse"]},ki={name:"qr",category:"Algebra",syntax:["qr(A)"],description:"Calculates the Matrix QR decomposition. Matrix `A` is decomposed in two matrices (`Q`, `R`) where `Q` is an orthogonal matrix and `R` is an upper triangular matrix.",examples:["qr([[1, -1, 4], [1, 4, -2], [1, 4, 2], [1, -1, 0]])"],seealso:["lup","slu","matrix"]},Ei={name:"rationalize",category:"Algebra",syntax:["rationalize(expr)","rationalize(expr, scope)","rationalize(expr, scope, detailed)"],description:"Transform a rationalizable expression in a rational fraction. If rational fraction is one variable polynomial then converts the numerator and denominator in canonical form, with decreasing exponents, returning the coefficients of numerator.",examples:['rationalize("2x/y - y/(x+1)")','rationalize("2x/y - y/(x+1)", true)'],seealso:["simplify"]},Mi={name:"resolve",category:"Algebra",syntax:["resolve(node, scope)"],description:"Recursively substitute variables in an expression tree.",examples:['resolve(parse("1 + x"), { x: 7 })','resolve(parse("size(text)"), { text: "Hello World" })','resolve(parse("x + y"), { x: parse("3z") })','resolve(parse("3x"), { x: parse("y+z"), z: parse("w^y") })'],seealso:["simplify","evaluate"],mayThrow:["ReferenceError"]},Oi={name:"simplify",category:"Algebra",syntax:["simplify(expr)","simplify(expr, rules)"],description:"Simplify an expression tree.",examples:['simplify("3 + 2 / 4")','simplify("2x + x")','f = parse("x * (x + 2 + x)")',"simplified = simplify(f)","simplified.evaluate({x: 2})"],seealso:["simplifyCore","derivative","evaluate","parse","rationalize","resolve"]},Di={name:"simplifyCore",category:"Algebra",syntax:["simplifyCore(node)"],description:"Perform simple one-pass simplifications on an expression tree.",examples:['simplifyCore(parse("0*x"))','simplifyCore(parse("(x+0)*2"))'],seealso:["simplify","evaluate"]},Ti={name:"slu",category:"Algebra",syntax:["slu(A, order, threshold)"],description:"Calculate the Matrix LU decomposition with full pivoting. Matrix A is decomposed in two matrices (L, U) and two permutation vectors (pinv, q) where P * A * Q = L * U",examples:["slu(sparse([4.5, 0, 3.2, 0; 3.1, 2.9, 0, 0.9; 0, 1.7, 3, 0; 3.5, 0.4, 0, 1]), 1, 0.001)"],seealso:["lusolve","lsolve","usolve","matrix","sparse","lup","qr"]},Ai={name:"symbolicEqual",category:"Algebra",syntax:["symbolicEqual(expr1, expr2)","symbolicEqual(expr1, expr2, options)"],description:"Returns true if the difference of the expressions simplifies to 0",examples:['symbolicEqual("x*y","y*x")','symbolicEqual("abs(x^2)", "x^2")','symbolicEqual("abs(x)", "x", {context: {abs: {trivial: true}}})'],seealso:["simplify","evaluate"]},Ii={name:"usolve",category:"Algebra",syntax:["x=usolve(U, b)"],description:"Finds one solution of the linear system U * x = b where U is an [n x n] upper triangular matrix and b is a [n] column vector.",examples:["x=usolve(sparse([1, 1, 1, 1; 0, 1, 1, 1; 0, 0, 1, 1; 0, 0, 0, 1]), [1; 2; 3; 4])"],seealso:["usolveAll","lup","lusolve","lsolve","matrix","sparse"]},$i={name:"usolveAll",category:"Algebra",syntax:["x=usolve(U, b)"],description:"Finds all solutions of the linear system U * x = b where U is an [n x n] upper triangular matrix and b is a [n] column vector.",examples:["x=usolve(sparse([1, 1, 1, 1; 0, 1, 1, 1; 0, 0, 1, 1; 0, 0, 0, 1]), [1; 2; 3; 4])"],seealso:["usolve","lup","lusolve","lsolve","matrix","sparse"]},Pi={name:"abs",category:"Arithmetic",syntax:["abs(x)"],description:"Compute the absolute value.",examples:["abs(3.5)","abs(-4.2)"],seealso:["sign"]},ji={name:"add",category:"Operators",syntax:["x + y","add(x, y)"],description:"Add two values.",examples:["a = 2.1 + 3.6","a - 3.6","3 + 2i","3 cm + 2 inch",'"2.3" + "4"'],seealso:["subtract"]},Fi={name:"cbrt",category:"Arithmetic",syntax:["cbrt(x)","cbrt(x, allRoots)"],description:"Compute the cubic root value. If x = y * y * y, then y is the cubic root of x. When `x` is a number or complex number, an optional second argument `allRoots` can be provided to return all three cubic roots. If not provided, the principal root is returned",examples:["cbrt(64)","cube(4)","cbrt(-8)","cbrt(2 + 3i)","cbrt(8i)","cbrt(8i, true)","cbrt(27 m^3)"],seealso:["square","sqrt","cube","multiply"]},Bi={name:"ceil",category:"Arithmetic",syntax:["ceil(x)"],description:"Round a value towards plus infinity. If x is complex, both real and imaginary part are rounded towards plus infinity.",examples:["ceil(3.2)","ceil(3.8)","ceil(-4.2)"],seealso:["floor","fix","round"]},Li={name:"cube",category:"Arithmetic",syntax:["cube(x)"],description:"Compute the cube of a value. The cube of x is x * x * x.",examples:["cube(2)","2^3","2 * 2 * 2"],seealso:["multiply","square","pow"]},zi={name:"divide",category:"Operators",syntax:["x / y","divide(x, y)"],description:"Divide two values.",examples:["a = 2 / 3","a * 3","4.5 / 2","3 + 4 / 2","(3 + 4) / 2","18 km / 4.5"],seealso:["multiply"]},Ri={name:"dotDivide",category:"Operators",syntax:["x ./ y","dotDivide(x, y)"],description:"Divide two values element wise.",examples:["a = [1, 2, 3; 4, 5, 6]","b = [2, 1, 1; 3, 2, 5]","a ./ b"],seealso:["multiply","dotMultiply","divide"]},Vi={name:"dotMultiply",category:"Operators",syntax:["x .* y","dotMultiply(x, y)"],description:"Multiply two values element wise.",examples:["a = [1, 2, 3; 4, 5, 6]","b = [2, 1, 1; 3, 2, 5]","a .* b"],seealso:["multiply","divide","dotDivide"]},qi={name:"dotPow",category:"Operators",syntax:["x .^ y","dotPow(x, y)"],description:"Calculates the power of x to y element wise.",examples:["a = [1, 2, 3; 4, 5, 6]","a .^ 2"],seealso:["pow"]},Hi={name:"exp",category:"Arithmetic",syntax:["exp(x)"],description:"Calculate the exponent of a value.",examples:["exp(1.3)","e ^ 1.3","log(exp(1.3))","x = 2.4","(exp(i*x) == cos(x) + i*sin(x)) # Euler's formula"],seealso:["expm","expm1","pow","log"]},Ui={name:"expm",category:"Arithmetic",syntax:["exp(x)"],description:"Compute the matrix exponential, expm(A) = e^A. The matrix must be square. Not to be confused with exp(a), which performs element-wise exponentiation.",examples:["expm([[0,2],[0,0]])"],seealso:["exp"]},Wi={name:"expm1",category:"Arithmetic",syntax:["expm1(x)"],description:"Calculate the value of subtracting 1 from the exponential value.",examples:["expm1(2)","pow(e, 2) - 1","log(expm1(2) + 1)"],seealso:["exp","pow","log"]},Yi={name:"fix",category:"Arithmetic",syntax:["fix(x)"],description:"Round a value towards zero. If x is complex, both real and imaginary part are rounded towards zero.",examples:["fix(3.2)","fix(3.8)","fix(-4.2)","fix(-4.8)"],seealso:["ceil","floor","round"]},Gi={name:"floor",category:"Arithmetic",syntax:["floor(x)"],description:"Round a value towards minus infinity.If x is complex, both real and imaginary part are rounded towards minus infinity.",examples:["floor(3.2)","floor(3.8)","floor(-4.2)"],seealso:["ceil","fix","round"]},Ki={name:"gcd",category:"Arithmetic",syntax:["gcd(a, b)","gcd(a, b, c, ...)"],description:"Compute the greatest common divisor.",examples:["gcd(8, 12)","gcd(-4, 6)","gcd(25, 15, -10)"],seealso:["lcm","xgcd"]},Xi={name:"hypot",category:"Arithmetic",syntax:["hypot(a, b, c, ...)","hypot([a, b, c, ...])"],description:"Calculate the hypotenusa of a list with values. ",examples:["hypot(3, 4)","sqrt(3^2 + 4^2)","hypot(-2)","hypot([3, 4, 5])"],seealso:["abs","norm"]},Zi={name:"invmod",category:"Arithmetic",syntax:["invmod(a, b)"],description:"Calculate the (modular) multiplicative inverse of a modulo b. Solution to the equation ax ≣ 1 (mod b)",examples:["invmod(8, 12)=NaN","invmod(7, 13)=2","math.invmod(15151, 15122)=10429"],seealso:["gcd","xgcd"]},Ji={name:"lcm",category:"Arithmetic",syntax:["lcm(x, y)"],description:"Compute the least common multiple.",examples:["lcm(4, 6)","lcm(6, 21)","lcm(6, 21, 5)"],seealso:["gcd"]},Qi={name:"log",category:"Arithmetic",syntax:["log(x)","log(x, base)"],description:"Compute the logarithm of a value. If no base is provided, the natural logarithm of x is calculated. If base if provided, the logarithm is calculated for the specified base. log(x, base) is defined as log(x) / log(base).",examples:["log(3.5)","a = log(2.4)","exp(a)","10 ^ 4","log(10000, 10)","log(10000) / log(10)","b = log(1024, 2)","2 ^ b"],seealso:["exp","log1p","log2","log10"]},ea={name:"log10",category:"Arithmetic",syntax:["log10(x)"],description:"Compute the 10-base logarithm of a value.",examples:["log10(0.00001)","log10(10000)","10 ^ 4","log(10000) / log(10)","log(10000, 10)"],seealso:["exp","log"]},ta={name:"log1p",category:"Arithmetic",syntax:["log1p(x)","log1p(x, base)"],description:"Calculate the logarithm of a `value+1`",examples:["log1p(2.5)","exp(log1p(1.4))","pow(10, 4)","log1p(9999, 10)","log1p(9999) / log(10)"],seealso:["exp","log","log2","log10"]},na={name:"log2",category:"Arithmetic",syntax:["log2(x)"],description:"Calculate the 2-base of a value. This is the same as calculating `log(x, 2)`.",examples:["log2(0.03125)","log2(16)","log2(16) / log2(2)","pow(2, 4)"],seealso:["exp","log1p","log","log10"]},ra={name:"mod",category:"Operators",syntax:["x % y","x mod y","mod(x, y)"],description:"Calculates the modulus, the remainder of an integer division.",examples:["7 % 3","11 % 2","10 mod 4","isOdd(x) = x % 2","isOdd(2)","isOdd(3)"],seealso:["divide"]},ia={name:"multiply",category:"Operators",syntax:["x * y","multiply(x, y)"],description:"multiply two values.",examples:["a = 2.1 * 3.4","a / 3.4","2 * 3 + 4","2 * (3 + 4)","3 * 2.1 km"],seealso:["divide"]},aa={name:"norm",category:"Arithmetic",syntax:["norm(x)","norm(x, p)"],description:"Calculate the norm of a number, vector or matrix.",examples:["abs(-3.5)","norm(-3.5)","norm(3 - 4i)","norm([1, 2, -3], Infinity)","norm([1, 2, -3], -Infinity)","norm([3, 4], 2)","norm([[1, 2], [3, 4]], 1)",'norm([[1, 2], [3, 4]], "inf")','norm([[1, 2], [3, 4]], "fro")']},oa={name:"nthRoot",category:"Arithmetic",syntax:["nthRoot(a)","nthRoot(a, root)"],description:'Calculate the nth root of a value. The principal nth root of a positive real number A, is the positive real solution of the equation "x^root = A".',examples:["4 ^ 3","nthRoot(64, 3)","nthRoot(9, 2)","sqrt(9)"],seealso:["nthRoots","pow","sqrt"]},sa={name:"nthRoots",category:"Arithmetic",syntax:["nthRoots(A)","nthRoots(A, root)"],description:'Calculate the nth roots of a value. An nth root of a positive real number A, is a positive real solution of the equation "x^root = A". This function returns an array of complex values.',examples:["nthRoots(1)","nthRoots(1, 3)"],seealso:["sqrt","pow","nthRoot"]},la={name:"pow",category:"Operators",syntax:["x ^ y","pow(x, y)"],description:"Calculates the power of x to y, x^y.",examples:["2^3","2*2*2","1 + e ^ (pi * i)","math.pow([[1, 2], [4, 3]], 2)","math.pow([[1, 2], [4, 3]], -1)"],seealso:["multiply","nthRoot","nthRoots","sqrt"]},ua={name:"round",category:"Arithmetic",syntax:["round(x)","round(x, n)"],description:"round a value towards the nearest integer.If x is complex, both real and imaginary part are rounded towards the nearest integer. When n is specified, the value is rounded to n decimals.",examples:["round(3.2)","round(3.8)","round(-4.2)","round(-4.8)","round(pi, 3)","round(123.45678, 2)"],seealso:["ceil","floor","fix"]},ca={name:"sign",category:"Arithmetic",syntax:["sign(x)"],description:"Compute the sign of a value. The sign of a value x is 1 when x>1, -1 when x<0, and 0 when x=0.",examples:["sign(3.5)","sign(-4.2)","sign(0)"],seealso:["abs"]},da={name:"sqrt",category:"Arithmetic",syntax:["sqrt(x)"],description:"Compute the square root value. If x = y * y, then y is the square root of x.",examples:["sqrt(25)","5 * 5","sqrt(-1)"],seealso:["square","sqrtm","multiply","nthRoot","nthRoots","pow"]},ha={name:"sqrtm",category:"Arithmetic",syntax:["sqrtm(x)"],description:"Calculate the principal square root of a square matrix. The principal square root matrix `X` of another matrix `A` is such that `X * X = A`.",examples:["sqrtm([[1, 2], [3, 4]])"],seealso:["sqrt","abs","square","multiply"]},fa={name:"square",category:"Arithmetic",syntax:["square(x)"],description:"Compute the square of a value. The square of x is x * x.",examples:["square(3)","sqrt(9)","3^2","3 * 3"],seealso:["multiply","pow","sqrt","cube"]},pa={name:"subtract",category:"Operators",syntax:["x - y","subtract(x, y)"],description:"subtract two values.",examples:["a = 5.3 - 2","a + 2","2/3 - 1/6","2 * 3 - 3","2.1 km - 500m"],seealso:["add"]},ma={name:"unaryMinus",category:"Operators",syntax:["-x","unaryMinus(x)"],description:"Inverse the sign of a value. Converts booleans and strings to numbers.",examples:["-4.5","-(-5.6)",'-"22"'],seealso:["add","subtract","unaryPlus"]},va={name:"unaryPlus",category:"Operators",syntax:["+x","unaryPlus(x)"],description:"Converts booleans and strings to numbers.",examples:["+true",'+"2"'],seealso:["add","subtract","unaryMinus"]},ga={name:"xgcd",category:"Arithmetic",syntax:["xgcd(a, b)"],description:"Calculate the extended greatest common divisor for two values. The result is an array [d, x, y] with 3 entries, where d is the greatest common divisor, and d = x * a + y * b.",examples:["xgcd(8, 12)","gcd(8, 12)","xgcd(36163, 21199)"],seealso:["gcd","lcm"]},ya={name:"bitAnd",category:"Bitwise",syntax:["x & y","bitAnd(x, y)"],description:"Bitwise AND operation. Performs the logical AND operation on each pair of the corresponding bits of the two given values by multiplying them. If both bits in the compared position are 1, the bit in the resulting binary representation is 1, otherwise, the result is 0",examples:["5 & 3","bitAnd(53, 131)","[1, 12, 31] & 42"],seealso:["bitNot","bitOr","bitXor","leftShift","rightArithShift","rightLogShift"]},ba={name:"bitNot",category:"Bitwise",syntax:["~x","bitNot(x)"],description:"Bitwise NOT operation. Performs a logical negation on each bit of the given value. Bits that are 0 become 1, and those that are 1 become 0.",examples:["~1","~2","bitNot([2, -3, 4])"],seealso:["bitAnd","bitOr","bitXor","leftShift","rightArithShift","rightLogShift"]},xa={name:"bitOr",category:"Bitwise",syntax:["x | y","bitOr(x, y)"],description:"Bitwise OR operation. Performs the logical inclusive OR operation on each pair of corresponding bits of the two given values. The result in each position is 1 if the first bit is 1 or the second bit is 1 or both bits are 1, otherwise, the result is 0.",examples:["5 | 3","bitOr([1, 2, 3], 4)"],seealso:["bitAnd","bitNot","bitXor","leftShift","rightArithShift","rightLogShift"]},wa={name:"bitXor",category:"Bitwise",syntax:["bitXor(x, y)"],description:"Bitwise XOR operation, exclusive OR. Performs the logical exclusive OR operation on each pair of corresponding bits of the two given values. The result in each position is 1 if only the first bit is 1 or only the second bit is 1, but will be 0 if both are 0 or both are 1.",examples:["bitOr(1, 2)","bitXor([2, 3, 4], 4)"],seealso:["bitAnd","bitNot","bitOr","leftShift","rightArithShift","rightLogShift"]},_a={name:"leftShift",category:"Bitwise",syntax:["x << y","leftShift(x, y)"],description:"Bitwise left logical shift of a value x by y number of bits.",examples:["4 << 1","8 >> 1"],seealso:["bitAnd","bitNot","bitOr","bitXor","rightArithShift","rightLogShift"]},Ca={name:"rightArithShift",category:"Bitwise",syntax:["x >> y","rightArithShift(x, y)"],description:"Bitwise right arithmetic shift of a value x by y number of bits.",examples:["8 >> 1","4 << 1","-12 >> 2"],seealso:["bitAnd","bitNot","bitOr","bitXor","leftShift","rightLogShift"]},Sa={name:"rightLogShift",category:"Bitwise",syntax:["x >>> y","rightLogShift(x, y)"],description:"Bitwise right logical shift of a value x by y number of bits.",examples:["8 >>> 1","4 << 1","-12 >>> 2"],seealso:["bitAnd","bitNot","bitOr","bitXor","leftShift","rightArithShift"]},Na={name:"bellNumbers",category:"Combinatorics",syntax:["bellNumbers(n)"],description:"The Bell Numbers count the number of partitions of a set. A partition is a pairwise disjoint subset of S whose union is S. `bellNumbers` only takes integer arguments. The following condition must be enforced: n >= 0.",examples:["bellNumbers(3)","bellNumbers(8)"],seealso:["stirlingS2"]},ka={name:"catalan",category:"Combinatorics",syntax:["catalan(n)"],description:"The Catalan Numbers enumerate combinatorial structures of many different types. catalan only takes integer arguments. The following condition must be enforced: n >= 0.",examples:["catalan(3)","catalan(8)"],seealso:["bellNumbers"]},Ea={name:"composition",category:"Combinatorics",syntax:["composition(n, k)"],description:"The composition counts of n into k parts. composition only takes integer arguments. The following condition must be enforced: k <= n.",examples:["composition(5, 3)"],seealso:["combinations"]},Ma={name:"stirlingS2",category:"Combinatorics",syntax:["stirlingS2(n, k)"],description:"he Stirling numbers of the second kind, counts the number of ways to partition a set of n labelled objects into k nonempty unlabelled subsets. `stirlingS2` only takes integer arguments. The following condition must be enforced: k <= n. If n = k or k = 1, then s(n,k) = 1.",examples:["stirlingS2(5, 3)"],seealso:["bellNumbers"]},Oa={name:"arg",category:"Complex",syntax:["arg(x)"],description:"Compute the argument of a complex value. If x = a+bi, the argument is computed as atan2(b, a).",examples:["arg(2 + 2i)","atan2(3, 2)","arg(2 + 3i)"],seealso:["re","im","conj","abs"]},Da={name:"conj",category:"Complex",syntax:["conj(x)"],description:"Compute the complex conjugate of a complex value. If x = a+bi, the complex conjugate is a-bi.",examples:["conj(2 + 3i)","conj(2 - 3i)","conj(-5.2i)"],seealso:["re","im","abs","arg"]},Ta={name:"im",category:"Complex",syntax:["im(x)"],description:"Get the imaginary part of a complex number.",examples:["im(2 + 3i)","re(2 + 3i)","im(-5.2i)","im(2.4)"],seealso:["re","conj","abs","arg"]},Aa={name:"re",category:"Complex",syntax:["re(x)"],description:"Get the real part of a complex number.",examples:["re(2 + 3i)","im(2 + 3i)","re(-5.2i)","re(2.4)"],seealso:["im","conj","abs","arg"]},Ia={name:"evaluate",category:"Expression",syntax:["evaluate(expression)","evaluate([expr1, expr2, expr3, ...])"],description:"Evaluate an expression or an array with expressions.",examples:['evaluate("2 + 3")','evaluate("sqrt(" + 4 + ")")'],seealso:[]},$a={name:"help",category:"Expression",syntax:["help(object)","help(string)"],description:"Display documentation on a function or data type.",examples:["help(sqrt)",'help("complex")'],seealso:[]},Pa={name:"distance",category:"Geometry",syntax:["distance([x1, y1], [x2, y2])","distance([[x1, y1], [x2, y2]])"],description:"Calculates the Euclidean distance between two points.",examples:["distance([0,0], [4,4])","distance([[0,0], [4,4]])"],seealso:[]},ja={name:"intersect",category:"Geometry",syntax:["intersect(expr1, expr2, expr3, expr4)","intersect(expr1, expr2, expr3)"],description:"Computes the intersection point of lines and/or planes.",examples:["intersect([0, 0], [10, 10], [10, 0], [0, 10])","intersect([1, 0, 1], [4, -2, 2], [1, 1, 1, 6])"],seealso:[]},Fa={name:"and",category:"Logical",syntax:["x and y","and(x, y)"],description:"Logical and. Test whether two values are both defined with a nonzero/nonempty value.",examples:["true and false","true and true","2 and 4"],seealso:["not","or","xor"]},Ba={name:"not",category:"Logical",syntax:["not x","not(x)"],description:"Logical not. Flips the boolean value of given argument.",examples:["not true","not false","not 2","not 0"],seealso:["and","or","xor"]},La={name:"or",category:"Logical",syntax:["x or y","or(x, y)"],description:"Logical or. Test if at least one value is defined with a nonzero/nonempty value.",examples:["true or false","false or false","0 or 4"],seealso:["not","and","xor"]},za={name:"xor",category:"Logical",syntax:["x xor y","xor(x, y)"],description:"Logical exclusive or, xor. Test whether one and only one value is defined with a nonzero/nonempty value.",examples:["true xor false","false xor false","true xor true","0 xor 4"],seealso:["not","and","or"]},Ra={name:"column",category:"Matrix",syntax:["column(x, index)"],description:"Return a column from a matrix or array.",examples:["A = [[1, 2], [3, 4]]","column(A, 1)","column(A, 2)"],seealso:["row","matrixFromColumns"]},Va={name:"concat",category:"Matrix",syntax:["concat(A, B, C, ...)","concat(A, B, C, ..., dim)"],description:"Concatenate matrices. By default, the matrices are concatenated by the last dimension. The dimension on which to concatenate can be provided as last argument.",examples:["A = [1, 2; 5, 6]","B = [3, 4; 7, 8]","concat(A, B)","concat(A, B, 1)","concat(A, B, 2)"],seealso:["det","diag","identity","inv","ones","range","size","squeeze","subset","trace","transpose","zeros"]},qa={name:"count",category:"Matrix",syntax:["count(x)"],description:"Count the number of elements of a matrix, array or string.",examples:["a = [1, 2; 3, 4; 5, 6]","count(a)","size(a)",'count("hello world")'],seealso:["size"]},Ha={name:"cross",category:"Matrix",syntax:["cross(A, B)"],description:"Calculate the cross product for two vectors in three dimensional space.",examples:["cross([1, 1, 0], [0, 1, 1])","cross([3, -3, 1], [4, 9, 2])","cross([2, 3, 4], [5, 6, 7])"],seealso:["multiply","dot"]},Ua={name:"ctranspose",category:"Matrix",syntax:["x'","ctranspose(x)"],description:"Complex Conjugate and Transpose a matrix",examples:["a = [1, 2, 3; 4, 5, 6]","a'","ctranspose(a)"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","subset","trace","zeros"]},Wa={name:"det",category:"Matrix",syntax:["det(x)"],description:"Calculate the determinant of a matrix",examples:["det([1, 2; 3, 4])","det([-2, 2, 3; -1, 1, 3; 2, 0, -1])"],seealso:["concat","diag","identity","inv","ones","range","size","squeeze","subset","trace","transpose","zeros"]},Ya={name:"diag",category:"Matrix",syntax:["diag(x)","diag(x, k)"],description:"Create a diagonal matrix or retrieve the diagonal of a matrix. When x is a vector, a matrix with the vector values on the diagonal will be returned. When x is a matrix, a vector with the diagonal values of the matrix is returned. When k is provided, the k-th diagonal will be filled in or retrieved, if k is positive, the values are placed on the super diagonal. When k is negative, the values are placed on the sub diagonal.",examples:["diag(1:3)","diag(1:3, 1)","a = [1, 2, 3; 4, 5, 6; 7, 8, 9]","diag(a)"],seealso:["concat","det","identity","inv","ones","range","size","squeeze","subset","trace","transpose","zeros"]},Ga={name:"diff",category:"Matrix",syntax:["diff(arr)","diff(arr, dim)"],description:["Create a new matrix or array with the difference of the passed matrix or array.","Dim parameter is optional and used to indicant the dimension of the array/matrix to apply the difference","If no dimension parameter is passed it is assumed as dimension 0","Dimension is zero-based in javascript and one-based in the parser","Arrays must be 'rectangular' meaning arrays like [1, 2]","If something is passed as a matrix it will be returned as a matrix but other than that all matrices are converted to arrays"],examples:["diff([1, 2, 4, 7, 0])","diff([1, 2, 4, 7, 0], 0)","diff(matrix([1, 2, 4, 7, 0]))","diff([[1, 2], [3, 4]])","diff([[1, 2], [3, 4]], 0)","diff([[1, 2], [3, 4]], 1)","diff([[1, 2], [3, 4]], bignumber(1))","diff(matrix([[1, 2], [3, 4]]), 1)","diff([[1, 2], matrix([3, 4])], 1)"],seealso:["subtract","partitionSelect"]},Ka={name:"dot",category:"Matrix",syntax:["dot(A, B)","A * B"],description:"Calculate the dot product of two vectors. The dot product of A = [a1, a2, a3, ..., an] and B = [b1, b2, b3, ..., bn] is defined as dot(A, B) = a1 * b1 + a2 * b2 + a3 * b3 + ... + an * bn",examples:["dot([2, 4, 1], [2, 2, 3])","[2, 4, 1] * [2, 2, 3]"],seealso:["multiply","cross"]},Xa={name:"eigs",category:"Matrix",syntax:["eigs(x)"],description:"Calculate the eigenvalues and eigenvectors of a real symmetric matrix",examples:["eigs([[5, 2.3], [2.3, 1]])"],seealso:["inv"]},Za={name:"filter",category:"Matrix",syntax:["filter(x, test)"],description:"Filter items in a matrix.",examples:["isPositive(x) = x > 0","filter([6, -2, -1, 4, 3], isPositive)","filter([6, -2, 0, 1, 0], x != 0)"],seealso:["sort","map","forEach"]},Ja={name:"flatten",category:"Matrix",syntax:["flatten(x)"],description:"Flatten a multi dimensional matrix into a single dimensional matrix.",examples:["a = [1, 2, 3; 4, 5, 6]","size(a)","b = flatten(a)","size(b)"],seealso:["concat","resize","size","squeeze"]},Qa={name:"forEach",category:"Matrix",syntax:["forEach(x, callback)"],description:"Iterates over all elements of a matrix/array, and executes the given callback function.",examples:["numberOfPets = {}","addPet(n) = numberOfPets[n] = (numberOfPets[n] ? numberOfPets[n]:0 ) + 1;",'forEach(["Dog","Cat","Cat"], addPet)',"numberOfPets"],seealso:["map","sort","filter"]},eo={name:"getMatrixDataType",category:"Matrix",syntax:["getMatrixDataType(x)"],description:'Find the data type of all elements in a matrix or array, for example "number" if all items are a number and "Complex" if all values are complex numbers. If a matrix contains more than one data type, it will return "mixed".',examples:["getMatrixDataType([1, 2, 3])","getMatrixDataType([[5 cm], [2 inch]])",'getMatrixDataType([1, "text"])',"getMatrixDataType([1, bignumber(4)])"],seealso:["matrix","sparse","typeOf"]},to={name:"identity",category:"Matrix",syntax:["identity(n)","identity(m, n)","identity([m, n])"],description:"Returns the identity matrix with size m-by-n. The matrix has ones on the diagonal and zeros elsewhere.",examples:["identity(3)","identity(3, 5)","a = [1, 2, 3; 4, 5, 6]","identity(size(a))"],seealso:["concat","det","diag","inv","ones","range","size","squeeze","subset","trace","transpose","zeros"]},no={name:"inv",category:"Matrix",syntax:["inv(x)"],description:"Calculate the inverse of a matrix",examples:["inv([1, 2; 3, 4])","inv(4)","1 / 4"],seealso:["concat","det","diag","identity","ones","range","size","squeeze","subset","trace","transpose","zeros"]},ro={name:"pinv",category:"Matrix",syntax:["pinv(x)"],description:"Calculate the Moore–Penrose inverse of a matrix",examples:["pinv([1, 2; 3, 4])","pinv([[1, 0], [0, 1], [0, 1]])","pinv(4)"],seealso:["inv"]},io={name:"kron",category:"Matrix",syntax:["kron(x, y)"],description:"Calculates the kronecker product of 2 matrices or vectors.",examples:["kron([[1, 0], [0, 1]], [[1, 2], [3, 4]])","kron([1,1], [2,3,4])"],seealso:["multiply","dot","cross"]},ao={name:"map",category:"Matrix",syntax:["map(x, callback)"],description:"Create a new matrix or array with the results of the callback function executed on each entry of the matrix/array.",examples:["map([1, 2, 3], square)"],seealso:["filter","forEach"]},oo={name:"matrixFromColumns",category:"Matrix",syntax:["math.matrixFromColumns(...arr)","math.matrixFromColumns(row1, row2)","math.matrixFromColumns(row1, row2, row3)"],description:"Create a dense matrix from vectors as individual columns.",examples:["matrixFromColumns([1, 2, 3], [[4],[5],[6]])"],seealso:["matrix","matrixFromRows","matrixFromFunction","zeros"]},so={name:"matrixFromFunction",category:"Matrix",syntax:["math.matrixFromFunction(size, fn)","math.matrixFromFunction(size, fn, format)","math.matrixFromFunction(size, fn, format, datatype)","math.matrixFromFunction(size, format, fn)","math.matrixFromFunction(size, format, datatype, fn)"],description:"Create a matrix by evaluating a generating function at each index.",examples:["f(I) = I[1] - I[2]","matrixFromFunction([3,3], f)","g(I) = I[1] - I[2] == 1 ? 4 : 0",'matrixFromFunction([100, 100], "sparse", g)',"matrixFromFunction([5], random)"],seealso:["matrix","matrixFromRows","matrixFromColumns","zeros"]},lo={name:"matrixFromRows",category:"Matrix",syntax:["math.matrixFromRows(...arr)","math.matrixFromRows(row1, row2)","math.matrixFromRows(row1, row2, row3)"],description:"Create a dense matrix from vectors as individual rows.",examples:["matrixFromRows([1, 2, 3], [[4],[5],[6]])"],seealso:["matrix","matrixFromColumns","matrixFromFunction","zeros"]},uo={name:"ones",category:"Matrix",syntax:["ones(m)","ones(m, n)","ones(m, n, p, ...)","ones([m])","ones([m, n])","ones([m, n, p, ...])"],description:"Create a matrix containing ones.",examples:["ones(3)","ones(3, 5)","ones([2,3]) * 4.5","a = [1, 2, 3; 4, 5, 6]","ones(size(a))"],seealso:["concat","det","diag","identity","inv","range","size","squeeze","subset","trace","transpose","zeros"]},co={name:"partitionSelect",category:"Matrix",syntax:["partitionSelect(x, k)","partitionSelect(x, k, compare)"],description:"Partition-based selection of an array or 1D matrix. Will find the kth smallest value, and mutates the input array. Uses Quickselect.",examples:["partitionSelect([5, 10, 1], 2)",'partitionSelect(["C", "B", "A", "D"], 1)'],seealso:["sort"]},ho={name:"range",category:"Type",syntax:["start:end","start:step:end","range(start, end)","range(start, end, step)","range(string)"],description:"Create a range. Lower bound of the range is included, upper bound is excluded.",examples:["1:5","3:-1:-3","range(3, 7)","range(0, 12, 2)",'range("4:10")',"a = [1, 2, 3, 4; 5, 6, 7, 8]","a[1:2, 1:2]"],seealso:["concat","det","diag","identity","inv","ones","size","squeeze","subset","trace","transpose","zeros"]},fo={name:"reshape",category:"Matrix",syntax:["reshape(x, sizes)"],description:"Reshape a multi dimensional array to fit the specified dimensions.",examples:["reshape([1, 2, 3, 4, 5, 6], [2, 3])","reshape([[1, 2], [3, 4]], [1, 4])","reshape([[1, 2], [3, 4]], [4])"],seealso:["size","squeeze","resize"]},po={name:"resize",category:"Matrix",syntax:["resize(x, size)","resize(x, size, defaultValue)"],description:"Resize a matrix.",examples:["resize([1,2,3,4,5], [3])","resize([1,2,3], [5])","resize([1,2,3], [5], -1)","resize(2, [2, 3])",'resize("hello", [8], "!")'],seealso:["size","subset","squeeze","reshape"]},mo={name:"rotate",category:"Matrix",syntax:["rotate(w, theta)","rotate(w, theta, v)"],description:"Returns a 2-D rotation matrix (2x2) for a given angle (in radians). Returns a 2-D rotation matrix (3x3) of a given angle (in radians) around given axis.",examples:["rotate([1, 0], math.pi / 2)",'rotate(matrix([1, 0]), unit("35deg"))','rotate([1, 0, 0], unit("90deg"), [0, 0, 1])','rotate(matrix([1, 0, 0]), unit("90deg"), matrix([0, 0, 1]))'],seealso:["matrix","rotationMatrix"]},vo={name:"rotationMatrix",category:"Matrix",syntax:["rotationMatrix(theta)","rotationMatrix(theta, v)","rotationMatrix(theta, v, format)"],description:"Returns a 2-D rotation matrix (2x2) for a given angle (in radians). Returns a 2-D rotation matrix (3x3) of a given angle (in radians) around given axis.",examples:["rotationMatrix(pi / 2)",'rotationMatrix(unit("45deg"), [0, 0, 1])','rotationMatrix(1, matrix([0, 0, 1]), "sparse")'],seealso:["cos","sin"]},go={name:"row",category:"Matrix",syntax:["row(x, index)"],description:"Return a row from a matrix or array.",examples:["A = [[1, 2], [3, 4]]","row(A, 1)","row(A, 2)"],seealso:["column","matrixFromRows"]},yo={name:"size",category:"Matrix",syntax:["size(x)"],description:"Calculate the size of a matrix.",examples:["size(2.3)",'size("hello world")',"a = [1, 2; 3, 4; 5, 6]","size(a)","size(1:6)"],seealso:["concat","count","det","diag","identity","inv","ones","range","squeeze","subset","trace","transpose","zeros"]},bo={name:"sort",category:"Matrix",syntax:["sort(x)","sort(x, compare)"],description:'Sort the items in a matrix. Compare can be a string "asc", "desc", "natural", or a custom sort function.',examples:["sort([5, 10, 1])",'sort(["C", "B", "A", "D"])',"sortByLength(a, b) = size(a)[1] - size(b)[1]",'sort(["Langdon", "Tom", "Sara"], sortByLength)','sort(["10", "1", "2"], "natural")'],seealso:["map","filter","forEach"]},xo={name:"squeeze",category:"Matrix",syntax:["squeeze(x)"],description:"Remove inner and outer singleton dimensions from a matrix.",examples:["a = zeros(3,2,1)","size(squeeze(a))","b = zeros(1,1,3)","size(squeeze(b))"],seealso:["concat","det","diag","identity","inv","ones","range","size","subset","trace","transpose","zeros"]},wo={name:"subset",category:"Matrix",syntax:["value(index)","value(index) = replacement","subset(value, [index])","subset(value, [index], replacement)"],description:"Get or set a subset of the entries of a matrix or characters of a string. Indexes are one-based. There should be one index specification for each dimension of the target. Each specification can be a single index, a list of indices, or a range in colon notation `l:u`. In a range, both the lower bound l and upper bound u are included; and if a bound is omitted it defaults to the most extreme valid value. The cartesian product of the indices specified in each dimension determines the target of the operation.",examples:["d = [1, 2; 3, 4]","e = []","e[1, 1:2] = [5, 6]","e[2, :] = [7, 8]","f = d * e","f[2, 1]","f[:, 1]","f[[1,2], [1,3]] = [9, 10; 11, 12]","f"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","trace","transpose","zeros"]},_o={name:"trace",category:"Matrix",syntax:["trace(A)"],description:"Calculate the trace of a matrix: the sum of the elements on the main diagonal of a square matrix.",examples:["A = [1, 2, 3; -1, 2, 3; 2, 0, 3]","trace(A)"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","subset","transpose","zeros"]},Co={name:"transpose",category:"Matrix",syntax:["x'","transpose(x)"],description:"Transpose a matrix",examples:["a = [1, 2, 3; 4, 5, 6]","a'","transpose(a)"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","subset","trace","zeros"]},So={name:"zeros",category:"Matrix",syntax:["zeros(m)","zeros(m, n)","zeros(m, n, p, ...)","zeros([m])","zeros([m, n])","zeros([m, n, p, ...])"],description:"Create a matrix containing zeros.",examples:["zeros(3)","zeros(3, 5)","a = [1, 2, 3; 4, 5, 6]","zeros(size(a))"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","subset","trace","transpose"]},No={name:"fft",category:"Matrix",syntax:["fft(x)"],description:"Calculate N-dimensional fourier transform",examples:["fft([[1, 0], [1, 0]])"],seealso:["ifft"]},ko={name:"ifft",category:"Matrix",syntax:["ifft(x)"],description:"Calculate N-dimensional inverse fourier transform",examples:["ifft([[2, 2], [0, 0]])"],seealso:["fft"]},Eo={name:"combinations",category:"Probability",syntax:["combinations(n, k)"],description:"Compute the number of combinations of n items taken k at a time",examples:["combinations(7, 5)"],seealso:["combinationsWithRep","permutations","factorial"]},Mo={name:"combinationsWithRep",category:"Probability",syntax:["combinationsWithRep(n, k)"],description:"Compute the number of combinations of n items taken k at a time with replacements.",examples:["combinationsWithRep(7, 5)"],seealso:["combinations","permutations","factorial"]},Oo={name:"factorial",category:"Probability",syntax:["n!","factorial(n)"],description:"Compute the factorial of a value",examples:["5!","5 * 4 * 3 * 2 * 1","3!"],seealso:["combinations","combinationsWithRep","permutations","gamma"]},Do={name:"gamma",category:"Probability",syntax:["gamma(n)"],description:"Compute the gamma function. For small values, the Lanczos approximation is used, and for large values the extended Stirling approximation.",examples:["gamma(4)","3!","gamma(1/2)","sqrt(pi)"],seealso:["factorial"]},To={name:"lgamma",category:"Probability",syntax:["lgamma(n)"],description:"Logarithm of the gamma function for real, positive numbers and complex numbers, using Lanczos approximation for numbers and Stirling series for complex numbers.",examples:["lgamma(4)","lgamma(1/2)","lgamma(math.i)","lgamma(complex(1.1, 2))"],seealso:["gamma"]},Ao={name:"kldivergence",category:"Probability",syntax:["kldivergence(x, y)"],description:"Calculate the Kullback-Leibler (KL) divergence between two distributions.",examples:["kldivergence([0.7,0.5,0.4], [0.2,0.9,0.5])"],seealso:[]},Io={name:"multinomial",category:"Probability",syntax:["multinomial(A)"],description:"Multinomial Coefficients compute the number of ways of picking a1, a2, ..., ai unordered outcomes from `n` possibilities. multinomial takes one array of integers as an argument. The following condition must be enforced: every ai > 0.",examples:["multinomial([1, 2, 1])"],seealso:["combinations","factorial"]},$o={name:"permutations",category:"Probability",syntax:["permutations(n)","permutations(n, k)"],description:"Compute the number of permutations of n items taken k at a time",examples:["permutations(5)","permutations(5, 3)"],seealso:["combinations","combinationsWithRep","factorial"]},Po={name:"pickRandom",category:"Probability",syntax:["pickRandom(array)","pickRandom(array, number)","pickRandom(array, weights)","pickRandom(array, number, weights)","pickRandom(array, weights, number)"],description:"Pick a random entry from a given array.",examples:["pickRandom(0:10)","pickRandom([1, 3, 1, 6])","pickRandom([1, 3, 1, 6], 2)","pickRandom([1, 3, 1, 6], [2, 3, 2, 1])","pickRandom([1, 3, 1, 6], 2, [2, 3, 2, 1])","pickRandom([1, 3, 1, 6], [2, 3, 2, 1], 2)"],seealso:["random","randomInt"]},jo={name:"random",category:"Probability",syntax:["random()","random(max)","random(min, max)","random(size)","random(size, max)","random(size, min, max)"],description:"Return a random number.",examples:["random()","random(10, 20)","random([2, 3])"],seealso:["pickRandom","randomInt"]},Fo={name:"randomInt",category:"Probability",syntax:["randomInt(max)","randomInt(min, max)","randomInt(size)","randomInt(size, max)","randomInt(size, min, max)"],description:"Return a random integer number",examples:["randomInt(10, 20)","randomInt([2, 3], 10)"],seealso:["pickRandom","random"]},Bo={name:"compare",category:"Relational",syntax:["compare(x, y)"],description:"Compare two values. Returns 1 when x > y, -1 when x < y, and 0 when x == y.",examples:["compare(2, 3)","compare(3, 2)","compare(2, 2)","compare(5cm, 40mm)","compare(2, [1, 2, 3])"],seealso:["equal","unequal","smaller","smallerEq","largerEq","compareNatural","compareText"]},Lo={name:"compareNatural",category:"Relational",syntax:["compareNatural(x, y)"],description:"Compare two values of any type in a deterministic, natural way. Returns 1 when x > y, -1 when x < y, and 0 when x == y.",examples:["compareNatural(2, 3)","compareNatural(3, 2)","compareNatural(2, 2)","compareNatural(5cm, 40mm)",'compareNatural("2", "10")',"compareNatural(2 + 3i, 2 + 4i)","compareNatural([1, 2, 4], [1, 2, 3])","compareNatural([1, 5], [1, 2, 3])","compareNatural([1, 2], [1, 2])","compareNatural({a: 2}, {a: 4})"],seealso:["equal","unequal","smaller","smallerEq","largerEq","compare","compareText"]},zo={name:"compareText",category:"Relational",syntax:["compareText(x, y)"],description:"Compare two strings lexically. Comparison is case sensitive. Returns 1 when x > y, -1 when x < y, and 0 when x == y.",examples:['compareText("B", "A")','compareText("A", "B")','compareText("A", "A")','compareText("2", "10")','compare("2", "10")',"compare(2, 10)",'compareNatural("2", "10")','compareText("B", ["A", "B", "C"])'],seealso:["compare","compareNatural"]},Ro={name:"deepEqual",category:"Relational",syntax:["deepEqual(x, y)"],description:"Check equality of two matrices element wise. Returns true if the size of both matrices is equal and when and each of the elements are equal.",examples:["deepEqual([1,3,4], [1,3,4])","deepEqual([1,3,4], [1,3])"],seealso:["equal","unequal","smaller","larger","smallerEq","largerEq","compare"]},Vo={name:"equal",category:"Relational",syntax:["x == y","equal(x, y)"],description:"Check equality of two values. Returns true if the values are equal, and false if not.",examples:["2+2 == 3","2+2 == 4","a = 3.2","b = 6-2.8","a == b","50cm == 0.5m"],seealso:["unequal","smaller","larger","smallerEq","largerEq","compare","deepEqual","equalText"]},qo={name:"equalText",category:"Relational",syntax:["equalText(x, y)"],description:"Check equality of two strings. Comparison is case sensitive. Returns true if the values are equal, and false if not.",examples:['equalText("Hello", "Hello")','equalText("a", "A")','equal("2e3", "2000")','equalText("2e3", "2000")','equalText("B", ["A", "B", "C"])'],seealso:["compare","compareNatural","compareText","equal"]},Ho={name:"larger",category:"Relational",syntax:["x > y","larger(x, y)"],description:"Check if value x is larger than y. Returns true if x is larger than y, and false if not.",examples:["2 > 3","5 > 2*2","a = 3.3","b = 6-2.8","(a > b)","(b < a)","5 cm > 2 inch"],seealso:["equal","unequal","smaller","smallerEq","largerEq","compare"]},Uo={name:"largerEq",category:"Relational",syntax:["x >= y","largerEq(x, y)"],description:"Check if value x is larger or equal to y. Returns true if x is larger or equal to y, and false if not.",examples:["2 >= 1+1","2 > 1+1","a = 3.2","b = 6-2.8","(a >= b)"],seealso:["equal","unequal","smallerEq","smaller","compare"]},Wo={name:"smaller",category:"Relational",syntax:["x < y","smaller(x, y)"],description:"Check if value x is smaller than value y. Returns true if x is smaller than y, and false if not.",examples:["2 < 3","5 < 2*2","a = 3.3","b = 6-2.8","(a < b)","5 cm < 2 inch"],seealso:["equal","unequal","larger","smallerEq","largerEq","compare"]},Yo={name:"smallerEq",category:"Relational",syntax:["x <= y","smallerEq(x, y)"],description:"Check if value x is smaller or equal to value y. Returns true if x is smaller than y, and false if not.",examples:["2 <= 1+1","2 < 1+1","a = 3.2","b = 6-2.8","(a <= b)"],seealso:["equal","unequal","larger","smaller","largerEq","compare"]},Go={name:"unequal",category:"Relational",syntax:["x != y","unequal(x, y)"],description:"Check unequality of two values. Returns true if the values are unequal, and false if they are equal.",examples:["2+2 != 3","2+2 != 4","a = 3.2","b = 6-2.8","a != b","50cm != 0.5m","5 cm != 2 inch"],seealso:["equal","smaller","larger","smallerEq","largerEq","compare","deepEqual"]},Ko={name:"setCartesian",category:"Set",syntax:["setCartesian(set1, set2)"],description:"Create the cartesian product of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays and the values will be sorted in ascending order before the operation.",examples:["setCartesian([1, 2], [3, 4])"],seealso:["setUnion","setIntersect","setDifference","setPowerset"]},Xo={name:"setDifference",category:"Set",syntax:["setDifference(set1, set2)"],description:"Create the difference of two (multi)sets: every element of set1, that is not the element of set2. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setDifference([1, 2, 3, 4], [3, 4, 5, 6])","setDifference([[1, 2], [3, 4]], [[3, 4], [5, 6]])"],seealso:["setUnion","setIntersect","setSymDifference"]},Zo={name:"setDistinct",category:"Set",syntax:["setDistinct(set)"],description:"Collect the distinct elements of a multiset. A multi-dimension array will be converted to a single-dimension array before the operation.",examples:["setDistinct([1, 1, 1, 2, 2, 3])"],seealso:["setMultiplicity"]},Jo={name:"setIntersect",category:"Set",syntax:["setIntersect(set1, set2)"],description:"Create the intersection of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setIntersect([1, 2, 3, 4], [3, 4, 5, 6])","setIntersect([[1, 2], [3, 4]], [[3, 4], [5, 6]])"],seealso:["setUnion","setDifference"]},Qo={name:"setIsSubset",category:"Set",syntax:["setIsSubset(set1, set2)"],description:"Check whether a (multi)set is a subset of another (multi)set: every element of set1 is the element of set2. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setIsSubset([1, 2], [3, 4, 5, 6])","setIsSubset([3, 4], [3, 4, 5, 6])"],seealso:["setUnion","setIntersect","setDifference"]},es={name:"setMultiplicity",category:"Set",syntax:["setMultiplicity(element, set)"],description:"Count the multiplicity of an element in a multiset. A multi-dimension array will be converted to a single-dimension array before the operation.",examples:["setMultiplicity(1, [1, 2, 2, 4])","setMultiplicity(2, [1, 2, 2, 4])"],seealso:["setDistinct","setSize"]},ts={name:"setPowerset",category:"Set",syntax:["setPowerset(set)"],description:"Create the powerset of a (multi)set: the powerset contains very possible subsets of a (multi)set. A multi-dimension array will be converted to a single-dimension array before the operation.",examples:["setPowerset([1, 2, 3])"],seealso:["setCartesian"]},ns={name:"setSize",category:"Set",syntax:["setSize(set)","setSize(set, unique)"],description:'Count the number of elements of a (multi)set. When the second parameter "unique" is true, count only the unique values. A multi-dimension array will be converted to a single-dimension array before the operation.',examples:["setSize([1, 2, 2, 4])","setSize([1, 2, 2, 4], true)"],seealso:["setUnion","setIntersect","setDifference"]},rs={name:"setSymDifference",category:"Set",syntax:["setSymDifference(set1, set2)"],description:"Create the symmetric difference of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setSymDifference([1, 2, 3, 4], [3, 4, 5, 6])","setSymDifference([[1, 2], [3, 4]], [[3, 4], [5, 6]])"],seealso:["setUnion","setIntersect","setDifference"]},is={name:"setUnion",category:"Set",syntax:["setUnion(set1, set2)"],description:"Create the union of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setUnion([1, 2, 3, 4], [3, 4, 5, 6])","setUnion([[1, 2], [3, 4]], [[3, 4], [5, 6]])"],seealso:["setIntersect","setDifference"]},as={name:"erf",category:"Special",syntax:["erf(x)"],description:"Compute the erf function of a value using a rational Chebyshev approximations for different intervals of x",examples:["erf(0.2)","erf(-0.5)","erf(4)"],seealso:[]},os={name:"mad",category:"Statistics",syntax:["mad(a, b, c, ...)","mad(A)"],description:"Compute the median absolute deviation of a matrix or a list with values. The median absolute deviation is defined as the median of the absolute deviations from the median.",examples:["mad(10, 20, 30)","mad([1, 2, 3])"],seealso:["mean","median","std","abs"]},ss={name:"max",category:"Statistics",syntax:["max(a, b, c, ...)","max(A)","max(A, dim)"],description:"Compute the maximum value of a list of values.",examples:["max(2, 3, 4, 1)","max([2, 3, 4, 1])","max([2, 5; 4, 3])","max([2, 5; 4, 3], 1)","max([2, 5; 4, 3], 2)","max(2.7, 7.1, -4.5, 2.0, 4.1)","min(2.7, 7.1, -4.5, 2.0, 4.1)"],seealso:["mean","median","min","prod","std","sum","variance"]},ls={name:"mean",category:"Statistics",syntax:["mean(a, b, c, ...)","mean(A)","mean(A, dim)"],description:"Compute the arithmetic mean of a list of values.",examples:["mean(2, 3, 4, 1)","mean([2, 3, 4, 1])","mean([2, 5; 4, 3])","mean([2, 5; 4, 3], 1)","mean([2, 5; 4, 3], 2)","mean([1.0, 2.7, 3.2, 4.0])"],seealso:["max","median","min","prod","std","sum","variance"]},us={name:"median",category:"Statistics",syntax:["median(a, b, c, ...)","median(A)"],description:"Compute the median of all values. The values are sorted and the middle value is returned. In case of an even number of values, the average of the two middle values is returned.",examples:["median(5, 2, 7)","median([3, -1, 5, 7])"],seealso:["max","mean","min","prod","std","sum","variance","quantileSeq"]},cs={name:"min",category:"Statistics",syntax:["min(a, b, c, ...)","min(A)","min(A, dim)"],description:"Compute the minimum value of a list of values.",examples:["min(2, 3, 4, 1)","min([2, 3, 4, 1])","min([2, 5; 4, 3])","min([2, 5; 4, 3], 1)","min([2, 5; 4, 3], 2)","min(2.7, 7.1, -4.5, 2.0, 4.1)","max(2.7, 7.1, -4.5, 2.0, 4.1)"],seealso:["max","mean","median","prod","std","sum","variance"]},ds={name:"mode",category:"Statistics",syntax:["mode(a, b, c, ...)","mode(A)","mode(A, a, b, B, c, ...)"],description:"Computes the mode of all values as an array. In case mode being more than one, multiple values are returned in an array.",examples:["mode(2, 1, 4, 3, 1)","mode([1, 2.7, 3.2, 4, 2.7])","mode(1, 4, 6, 1, 6)"],seealso:["max","mean","min","median","prod","std","sum","variance"]},hs={name:"prod",category:"Statistics",syntax:["prod(a, b, c, ...)","prod(A)"],description:"Compute the product of all values.",examples:["prod(2, 3, 4)","prod([2, 3, 4])","prod([2, 5; 4, 3])"],seealso:["max","mean","min","median","min","std","sum","variance"]},fs={name:"quantileSeq",category:"Statistics",syntax:["quantileSeq(A, prob[, sorted])","quantileSeq(A, [prob1, prob2, ...][, sorted])","quantileSeq(A, N[, sorted])"],description:"Compute the prob order quantile of a matrix or a list with values. The sequence is sorted and the middle value is returned. Supported types of sequence values are: Number, BigNumber, Unit Supported types of probablity are: Number, BigNumber. \n\nIn case of a (multi dimensional) array or matrix, the prob order quantile of all elements will be calculated.",examples:["quantileSeq([3, -1, 5, 7], 0.5)","quantileSeq([3, -1, 5, 7], [1/3, 2/3])","quantileSeq([3, -1, 5, 7], 2)","quantileSeq([-1, 3, 5, 7], 0.5, true)"],seealso:["mean","median","min","max","prod","std","sum","variance"]},ps={name:"std",category:"Statistics",syntax:["std(a, b, c, ...)","std(A)","std(A, normalization)"],description:'Compute the standard deviation of all values, defined as std(A) = sqrt(variance(A)). Optional parameter normalization can be "unbiased" (default), "uncorrected", or "biased".',examples:["std(2, 4, 6)","std([2, 4, 6, 8])",'std([2, 4, 6, 8], "uncorrected")','std([2, 4, 6, 8], "biased")',"std([1, 2, 3; 4, 5, 6])"],seealso:["max","mean","min","median","prod","sum","variance"]},ms={name:"cumsum",category:"Statistics",syntax:["cumsum(a, b, c, ...)","cumsum(A)"],description:"Compute the cumulative sum of all values.",examples:["cumsum(2, 3, 4, 1)","cumsum([2, 3, 4, 1])","cumsum([1, 2; 3, 4])","cumsum([1, 2; 3, 4], 1)","cumsum([1, 2; 3, 4], 2)"],seealso:["max","mean","median","min","prod","std","sum","variance"]},vs={name:"sum",category:"Statistics",syntax:["sum(a, b, c, ...)","sum(A)"],description:"Compute the sum of all values.",examples:["sum(2, 3, 4, 1)","sum([2, 3, 4, 1])","sum([2, 5; 4, 3])"],seealso:["max","mean","median","min","prod","std","sum","variance"]},gs={name:"variance",category:"Statistics",syntax:["variance(a, b, c, ...)","variance(A)","variance(A, normalization)"],description:'Compute the variance of all values. Optional parameter normalization can be "unbiased" (default), "uncorrected", or "biased".',examples:["variance(2, 4, 6)","variance([2, 4, 6, 8])",'variance([2, 4, 6, 8], "uncorrected")','variance([2, 4, 6, 8], "biased")',"variance([1, 2, 3; 4, 5, 6])"],seealso:["max","mean","min","median","min","prod","std","sum"]},ys={name:"acos",category:"Trigonometry",syntax:["acos(x)"],description:"Compute the inverse cosine of a value in radians.",examples:["acos(0.5)","acos(cos(2.3))"],seealso:["cos","atan","asin"]},bs={name:"acosh",category:"Trigonometry",syntax:["acosh(x)"],description:"Calculate the hyperbolic arccos of a value, defined as `acosh(x) = ln(sqrt(x^2 - 1) + x)`.",examples:["acosh(1.5)"],seealso:["cosh","asinh","atanh"]},xs={name:"acot",category:"Trigonometry",syntax:["acot(x)"],description:"Calculate the inverse cotangent of a value.",examples:["acot(0.5)","acot(cot(0.5))","acot(2)"],seealso:["cot","atan"]},ws={name:"acoth",category:"Trigonometry",syntax:["acoth(x)"],description:"Calculate the hyperbolic arccotangent of a value, defined as `acoth(x) = (ln((x+1)/x) + ln(x/(x-1))) / 2`.",examples:["acoth(2)","acoth(0.5)"],seealso:["acsch","asech"]},_s={name:"acsc",category:"Trigonometry",syntax:["acsc(x)"],description:"Calculate the inverse cotangent of a value.",examples:["acsc(2)","acsc(csc(0.5))","acsc(0.5)"],seealso:["csc","asin","asec"]},Cs={name:"acsch",category:"Trigonometry",syntax:["acsch(x)"],description:"Calculate the hyperbolic arccosecant of a value, defined as `acsch(x) = ln(1/x + sqrt(1/x^2 + 1))`.",examples:["acsch(0.5)"],seealso:["asech","acoth"]},Ss={name:"asec",category:"Trigonometry",syntax:["asec(x)"],description:"Calculate the inverse secant of a value.",examples:["asec(0.5)","asec(sec(0.5))","asec(2)"],seealso:["acos","acot","acsc"]},Ns={name:"asech",category:"Trigonometry",syntax:["asech(x)"],description:"Calculate the inverse secant of a value.",examples:["asech(0.5)"],seealso:["acsch","acoth"]},ks={name:"asin",category:"Trigonometry",syntax:["asin(x)"],description:"Compute the inverse sine of a value in radians.",examples:["asin(0.5)","asin(sin(0.5))"],seealso:["sin","acos","atan"]},Es={name:"asinh",category:"Trigonometry",syntax:["asinh(x)"],description:"Calculate the hyperbolic arcsine of a value, defined as `asinh(x) = ln(x + sqrt(x^2 + 1))`.",examples:["asinh(0.5)"],seealso:["acosh","atanh"]},Ms={name:"atan",category:"Trigonometry",syntax:["atan(x)"],description:"Compute the inverse tangent of a value in radians.",examples:["atan(0.5)","atan(tan(0.5))"],seealso:["tan","acos","asin"]},Os={name:"atan2",category:"Trigonometry",syntax:["atan2(y, x)"],description:"Computes the principal value of the arc tangent of y/x in radians.",examples:["atan2(2, 2) / pi","angle = 60 deg in rad","x = cos(angle)","y = sin(angle)","atan2(y, x)"],seealso:["sin","cos","tan"]},Ds={name:"atanh",category:"Trigonometry",syntax:["atanh(x)"],description:"Calculate the hyperbolic arctangent of a value, defined as `atanh(x) = ln((1 + x)/(1 - x)) / 2`.",examples:["atanh(0.5)"],seealso:["acosh","asinh"]},Ts={name:"cos",category:"Trigonometry",syntax:["cos(x)"],description:"Compute the cosine of x in radians.",examples:["cos(2)","cos(pi / 4) ^ 2","cos(180 deg)","cos(60 deg)","sin(0.2)^2 + cos(0.2)^2"],seealso:["acos","sin","tan"]},As={name:"cosh",category:"Trigonometry",syntax:["cosh(x)"],description:"Compute the hyperbolic cosine of x in radians.",examples:["cosh(0.5)"],seealso:["sinh","tanh","coth"]},Is={name:"cot",category:"Trigonometry",syntax:["cot(x)"],description:"Compute the cotangent of x in radians. Defined as 1/tan(x)",examples:["cot(2)","1 / tan(2)"],seealso:["sec","csc","tan"]},$s={name:"coth",category:"Trigonometry",syntax:["coth(x)"],description:"Compute the hyperbolic cotangent of x in radians.",examples:["coth(2)","1 / tanh(2)"],seealso:["sech","csch","tanh"]},Ps={name:"csc",category:"Trigonometry",syntax:["csc(x)"],description:"Compute the cosecant of x in radians. Defined as 1/sin(x)",examples:["csc(2)","1 / sin(2)"],seealso:["sec","cot","sin"]},js={name:"csch",category:"Trigonometry",syntax:["csch(x)"],description:"Compute the hyperbolic cosecant of x in radians. Defined as 1/sinh(x)",examples:["csch(2)","1 / sinh(2)"],seealso:["sech","coth","sinh"]},Fs={name:"sec",category:"Trigonometry",syntax:["sec(x)"],description:"Compute the secant of x in radians. Defined as 1/cos(x)",examples:["sec(2)","1 / cos(2)"],seealso:["cot","csc","cos"]},Bs={name:"sech",category:"Trigonometry",syntax:["sech(x)"],description:"Compute the hyperbolic secant of x in radians. Defined as 1/cosh(x)",examples:["sech(2)","1 / cosh(2)"],seealso:["coth","csch","cosh"]},Ls={name:"sin",category:"Trigonometry",syntax:["sin(x)"],description:"Compute the sine of x in radians.",examples:["sin(2)","sin(pi / 4) ^ 2","sin(90 deg)","sin(30 deg)","sin(0.2)^2 + cos(0.2)^2"],seealso:["asin","cos","tan"]},zs={name:"sinh",category:"Trigonometry",syntax:["sinh(x)"],description:"Compute the hyperbolic sine of x in radians.",examples:["sinh(0.5)"],seealso:["cosh","tanh"]},Rs={name:"tan",category:"Trigonometry",syntax:["tan(x)"],description:"Compute the tangent of x in radians.",examples:["tan(0.5)","sin(0.5) / cos(0.5)","tan(pi / 4)","tan(45 deg)"],seealso:["atan","sin","cos"]},Vs={name:"tanh",category:"Trigonometry",syntax:["tanh(x)"],description:"Compute the hyperbolic tangent of x in radians.",examples:["tanh(0.5)","sinh(0.5) / cosh(0.5)"],seealso:["sinh","cosh"]},qs={name:"to",category:"Units",syntax:["x to unit","to(x, unit)"],description:"Change the unit of a value.",examples:["5 inch to cm","3.2kg to g","16 bytes in bits"],seealso:[]},Hs={name:"bin",category:"Utils",syntax:["bin(value)"],description:"Format a number as binary",examples:["bin(2)"],seealso:["oct","hex"]},Us={name:"clone",category:"Utils",syntax:["clone(x)"],description:"Clone a variable. Creates a copy of primitive variables,and a deep copy of matrices",examples:["clone(3.5)","clone(2 - 4i)","clone(45 deg)","clone([1, 2; 3, 4])",'clone("hello world")'],seealso:[]},Ws={name:"format",category:"Utils",syntax:["format(value)","format(value, precision)"],description:"Format a value of any type as string.",examples:["format(2.3)","format(3 - 4i)","format([])","format(pi, 3)"],seealso:["print"]},Ys={name:"hasNumericValue",category:"Utils",syntax:["hasNumericValue(x)"],description:"Test whether a value is an numeric value. In case of a string, true is returned if the string contains a numeric value.",examples:["hasNumericValue(2)",'hasNumericValue("2")','isNumeric("2")',"hasNumericValue(0)","hasNumericValue(bignumber(500))","hasNumericValue(fraction(0.125))","hasNumericValue(2 + 3i)",'hasNumericValue([2.3, "foo", false])'],seealso:["isInteger","isZero","isNegative","isPositive","isNaN","isNumeric"]},Gs={name:"hex",category:"Utils",syntax:["hex(value)"],description:"Format a number as hexadecimal",examples:["hex(240)"],seealso:["bin","oct"]},Ks={name:"isInteger",category:"Utils",syntax:["isInteger(x)"],description:"Test whether a value is an integer number.",examples:["isInteger(2)","isInteger(3.5)","isInteger([3, 0.5, -2])"],seealso:["isNegative","isNumeric","isPositive","isZero"]},Xs={name:"isNaN",category:"Utils",syntax:["isNaN(x)"],description:"Test whether a value is NaN (not a number)",examples:["isNaN(2)","isNaN(0 / 0)","isNaN(NaN)","isNaN(Infinity)"],seealso:["isNegative","isNumeric","isPositive","isZero"]},Zs={name:"isNegative",category:"Utils",syntax:["isNegative(x)"],description:"Test whether a value is negative: smaller than zero.",examples:["isNegative(2)","isNegative(0)","isNegative(-4)","isNegative([3, 0.5, -2])"],seealso:["isInteger","isNumeric","isPositive","isZero"]},Js={name:"isNumeric",category:"Utils",syntax:["isNumeric(x)"],description:"Test whether a value is a numeric value. Returns true when the input is a number, BigNumber, Fraction, or boolean.",examples:["isNumeric(2)",'isNumeric("2")','hasNumericValue("2")',"isNumeric(0)","isNumeric(bignumber(500))","isNumeric(fraction(0.125))","isNumeric(2 + 3i)",'isNumeric([2.3, "foo", false])'],seealso:["isInteger","isZero","isNegative","isPositive","isNaN","hasNumericValue"]},Qs={name:"isPositive",category:"Utils",syntax:["isPositive(x)"],description:"Test whether a value is positive: larger than zero.",examples:["isPositive(2)","isPositive(0)","isPositive(-4)","isPositive([3, 0.5, -2])"],seealso:["isInteger","isNumeric","isNegative","isZero"]},el={name:"isPrime",category:"Utils",syntax:["isPrime(x)"],description:"Test whether a value is prime: has no divisors other than itself and one.",examples:["isPrime(3)","isPrime(-2)","isPrime([2, 17, 100])"],seealso:["isInteger","isNumeric","isNegative","isZero"]},tl={name:"isZero",category:"Utils",syntax:["isZero(x)"],description:"Test whether a value is zero.",examples:["isZero(2)","isZero(0)","isZero(-4)","isZero([3, 0, -2, 0])"],seealso:["isInteger","isNumeric","isNegative","isPositive"]},nl={name:"numeric",category:"Utils",syntax:["numeric(x)"],description:"Convert a numeric input to a specific numeric type: number, BigNumber, or Fraction.",examples:['numeric("4")','numeric("4", "number")','numeric("4", "BigNumber")','numeric("4", "Fraction)','numeric(4, "Fraction")','numeric(fraction(2, 5), "number)'],seealso:["number","fraction","bignumber","string","format"]},rl={name:"oct",category:"Utils",syntax:["oct(value)"],description:"Format a number as octal",examples:["oct(56)"],seealso:["bin","hex"]},il={name:"print",category:"Utils",syntax:["print(template, values)","print(template, values, precision)"],description:"Interpolate values into a string template.",examples:['print("Lucy is $age years old", {age: 5})','print("The value of pi is $pi", {pi: pi}, 3)','print("Hello, $user.name!", {user: {name: "John"}})','print("Values: $0, $1, $2", [6, 9, 4])'],seealso:["format"]},al={name:"typeOf",category:"Utils",syntax:["typeOf(x)"],description:"Get the type of a variable.",examples:["typeOf(3.5)","typeOf(2 - 4i)","typeOf(45 deg)",'typeOf("hello world")'],seealso:["getMatrixDataType"]},ol={bignumber:ai,boolean:oi,complex:si,createUnit:li,fraction:ui,index:ci,matrix:di,number:hi,sparse:fi,splitUnit:pi,string:mi,unit:vi,e:Vr,E:Vr,false:qr,i:Hr,Infinity:Ur,LN2:Yr,LN10:Wr,LOG2E:Kr,LOG10E:Gr,NaN:Xr,null:Zr,pi:Qr,PI:Qr,phi:Jr,SQRT1_2:ei,SQRT2:ti,tau:ni,true:ri,version:ii,speedOfLight:{description:"Speed of light in vacuum",examples:["speedOfLight"]},gravitationConstant:{description:"Newtonian constant of gravitation",examples:["gravitationConstant"]},planckConstant:{description:"Planck constant",examples:["planckConstant"]},reducedPlanckConstant:{description:"Reduced Planck constant",examples:["reducedPlanckConstant"]},magneticConstant:{description:"Magnetic constant (vacuum permeability)",examples:["magneticConstant"]},electricConstant:{description:"Electric constant (vacuum permeability)",examples:["electricConstant"]},vacuumImpedance:{description:"Characteristic impedance of vacuum",examples:["vacuumImpedance"]},coulomb:{description:"Coulomb's constant",examples:["coulomb"]},elementaryCharge:{description:"Elementary charge",examples:["elementaryCharge"]},bohrMagneton:{description:"Borh magneton",examples:["bohrMagneton"]},conductanceQuantum:{description:"Conductance quantum",examples:["conductanceQuantum"]},inverseConductanceQuantum:{description:"Inverse conductance quantum",examples:["inverseConductanceQuantum"]},magneticFluxQuantum:{description:"Magnetic flux quantum",examples:["magneticFluxQuantum"]},nuclearMagneton:{description:"Nuclear magneton",examples:["nuclearMagneton"]},klitzing:{description:"Von Klitzing constant",examples:["klitzing"]},bohrRadius:{description:"Borh radius",examples:["bohrRadius"]},classicalElectronRadius:{description:"Classical electron radius",examples:["classicalElectronRadius"]},electronMass:{description:"Electron mass",examples:["electronMass"]},fermiCoupling:{description:"Fermi coupling constant",examples:["fermiCoupling"]},fineStructure:{description:"Fine-structure constant",examples:["fineStructure"]},hartreeEnergy:{description:"Hartree energy",examples:["hartreeEnergy"]},protonMass:{description:"Proton mass",examples:["protonMass"]},deuteronMass:{description:"Deuteron Mass",examples:["deuteronMass"]},neutronMass:{description:"Neutron mass",examples:["neutronMass"]},quantumOfCirculation:{description:"Quantum of circulation",examples:["quantumOfCirculation"]},rydberg:{description:"Rydberg constant",examples:["rydberg"]},thomsonCrossSection:{description:"Thomson cross section",examples:["thomsonCrossSection"]},weakMixingAngle:{description:"Weak mixing angle",examples:["weakMixingAngle"]},efimovFactor:{description:"Efimov factor",examples:["efimovFactor"]},atomicMass:{description:"Atomic mass constant",examples:["atomicMass"]},avogadro:{description:"Avogadro's number",examples:["avogadro"]},boltzmann:{description:"Boltzmann constant",examples:["boltzmann"]},faraday:{description:"Faraday constant",examples:["faraday"]},firstRadiation:{description:"First radiation constant",examples:["firstRadiation"]},loschmidt:{description:"Loschmidt constant at T=273.15 K and p=101.325 kPa",examples:["loschmidt"]},gasConstant:{description:"Gas constant",examples:["gasConstant"]},molarPlanckConstant:{description:"Molar Planck constant",examples:["molarPlanckConstant"]},molarVolume:{description:"Molar volume of an ideal gas at T=273.15 K and p=101.325 kPa",examples:["molarVolume"]},sackurTetrode:{description:"Sackur-Tetrode constant at T=1 K and p=101.325 kPa",examples:["sackurTetrode"]},secondRadiation:{description:"Second radiation constant",examples:["secondRadiation"]},stefanBoltzmann:{description:"Stefan-Boltzmann constant",examples:["stefanBoltzmann"]},wienDisplacement:{description:"Wien displacement law constant",examples:["wienDisplacement"]},molarMass:{description:"Molar mass constant",examples:["molarMass"]},molarMassC12:{description:"Molar mass constant of carbon-12",examples:["molarMassC12"]},gravity:{description:"Standard acceleration of gravity (standard acceleration of free-fall on Earth)",examples:["gravity"]},planckLength:{description:"Planck length",examples:["planckLength"]},planckMass:{description:"Planck mass",examples:["planckMass"]},planckTime:{description:"Planck time",examples:["planckTime"]},planckCharge:{description:"Planck charge",examples:["planckCharge"]},planckTemperature:{description:"Planck temperature",examples:["planckTemperature"]},derivative:xi,lsolve:_i,lsolveAll:Ci,lup:Si,lusolve:Ni,leafCount:wi,resolve:Mi,simplify:Oi,simplifyCore:Di,symbolicEqual:Ai,rationalize:Ei,slu:Ti,usolve:Ii,usolveAll:$i,qr:ki,abs:Pi,add:ji,cbrt:Fi,ceil:Bi,cube:Li,divide:zi,dotDivide:Ri,dotMultiply:Vi,dotPow:qi,exp:Hi,expm:Ui,expm1:Wi,fix:Yi,floor:Gi,gcd:Ki,hypot:Xi,lcm:Ji,log:Qi,log2:na,log1p:ta,log10:ea,mod:ra,multiply:ia,norm:aa,nthRoot:oa,nthRoots:sa,pow:la,round:ua,sign:ca,sqrt:da,sqrtm:ha,square:fa,subtract:pa,unaryMinus:ma,unaryPlus:va,xgcd:ga,invmod:Zi,bitAnd:ya,bitNot:ba,bitOr:xa,bitXor:wa,leftShift:_a,rightArithShift:Ca,rightLogShift:Sa,bellNumbers:Na,catalan:ka,composition:Ea,stirlingS2:Ma,config:gi,import:yi,typed:bi,arg:Oa,conj:Da,re:Aa,im:Ta,evaluate:Ia,help:$a,distance:Pa,intersect:ja,and:Fa,not:Ba,or:La,xor:za,concat:Va,count:qa,cross:Ha,column:Ra,ctranspose:Ua,det:Wa,diag:Ya,diff:Ga,dot:Ka,getMatrixDataType:eo,identity:to,filter:Za,flatten:Ja,forEach:Qa,inv:no,pinv:ro,eigs:Xa,kron:io,matrixFromFunction:so,matrixFromRows:lo,matrixFromColumns:oo,map:ao,ones:uo,partitionSelect:co,range:ho,resize:po,reshape:fo,rotate:mo,rotationMatrix:vo,row:go,size:yo,sort:bo,squeeze:xo,subset:wo,trace:_o,transpose:Co,zeros:So,fft:No,ifft:ko,combinations:Eo,combinationsWithRep:Mo,factorial:Oo,gamma:Do,kldivergence:Ao,lgamma:To,multinomial:Io,permutations:$o,pickRandom:Po,random:jo,randomInt:Fo,compare:Bo,compareNatural:Lo,compareText:zo,deepEqual:Ro,equal:Vo,equalText:qo,larger:Ho,largerEq:Uo,smaller:Wo,smallerEq:Yo,unequal:Go,setCartesian:Ko,setDifference:Xo,setDistinct:Zo,setIntersect:Jo,setIsSubset:Qo,setMultiplicity:es,setPowerset:ts,setSize:ns,setSymDifference:rs,setUnion:is,erf:as,cumsum:ms,mad:os,max:ss,mean:ls,median:us,min:cs,mode:ds,prod:hs,quantileSeq:fs,std:ps,sum:vs,variance:gs,acos:ys,acosh:bs,acot:xs,acoth:ws,acsc:_s,acsch:Cs,asec:Ss,asech:Ns,asin:ks,asinh:Es,atan:Ms,atanh:Ds,atan2:Os,cos:Ts,cosh:As,cot:Is,coth:$s,csc:Ps,csch:js,sec:Fs,sech:Bs,sin:Ls,sinh:zs,tan:Rs,tanh:Vs,to:qs,clone:Us,format:Ws,bin:Hs,oct:rl,hex:Gs,isNaN:Xs,isInteger:Ks,isNegative:Zs,isNumeric:Js,hasNumericValue:Ys,isPositive:Qs,isPrime:el,isZero:tl,print:il,typeOf:al,numeric:nl},sl="help",ll=["typed","mathWithTransform","Help"],ul=Le(sl,ll,(e=>{var{typed:t,mathWithTransform:n,Help:r}=e;return t(sl,{any:function(e){var t,i=e;if("string"!==typeof e)for(t in n)if(Fe(n,t)&&e===n[t]){i=t;break}var a=Ye(ol,i);if(!a){var o="function"===typeof i?i.name:i;throw new Error('No documentation found on "'+o+'"')}return new r(a)}})})),cl="Parser",dl=["evaluate"],hl=Le(cl,dl,(e=>{var{evaluate:t}=e;function n(){if(!(this instanceof n))throw new SyntaxError("Constructor must be called with the new operator");Object.defineProperty(this,"scope",{value:rt(),writable:!1})}return n.prototype.type="Parser",n.prototype.isParser=!0,n.prototype.evaluate=function(e){return t(e,this.scope)},n.prototype.get=function(e){if(this.scope.has(e))return this.scope.get(e)},n.prototype.getAll=function(){return at(this.scope)},n.prototype.getAllAsMap=function(){return this.scope},n.prototype.set=function(e,t){return this.scope.set(e,t),t},n.prototype.remove=function(e){this.scope.delete(e)},n.prototype.clear=function(){this.scope.clear()},n}),{isClass:!0}),fl="rationalize",pl=["config","typed","equal","isZero","add","subtract","multiply","divide","pow","parse","simplifyCore","simplify","?bignumber","?fraction","mathWithTransform","matrix","AccessorNode","ArrayNode","ConstantNode","FunctionNode","IndexNode","ObjectNode","OperatorNode","SymbolNode","ParenthesisNode"],ml=Le(fl,pl,(e=>{var{config:t,typed:n,equal:r,isZero:i,add:a,subtract:o,multiply:s,divide:l,pow:u,parse:c,simplifyCore:d,simplify:h,fraction:f,bignumber:p,mathWithTransform:m,matrix:v,AccessorNode:g,ArrayNode:y,ConstantNode:b,FunctionNode:x,IndexNode:w,ObjectNode:_,OperatorNode:C,SymbolNode:S,ParenthesisNode:N}=e,k=Ar({typed:n,config:t,mathWithTransform:m,matrix:v,fraction:f,bignumber:p,AccessorNode:g,ArrayNode:y,ConstantNode:b,FunctionNode:x,IndexNode:w,ObjectNode:_,OperatorNode:C,SymbolNode:S});return n(fl,{string:function(e){return this(c(e),{},!1)},"string, boolean":function(e,t){return this(c(e),{},t)},"string, Object":function(e,t){return this(c(e),t,!1)},"string, Object, boolean":function(e,t,n){return this(c(e),t,n)},Node:function(e){return this(e,{},!1)},"Node, boolean":function(e,t){return this(e,{},t)},"Node, Object":function(e,t){return this(e,t,!1)},"Node, Object, boolean":function(e,t,n){var r=M(),i=E(e,t,!0,r.firstRules),a=i.variables.length,o={exactFractions:!1},s={exactFractions:!0};if(e=i.expression,a>=1){var l,u;e=O(e);var c,d=!0,f=!1;e=h(e,r.firstRules,{},o);while(1){if(u=d?r.distrDivRules:r.sucDivRules,e=h(e,u,{},s),d=!d,c=e.toString(),c===l)break;f=!0,l=c}f&&(e=h(e,r.firstRulesAgain,{},o)),e=h(e,r.finalRules,{},o)}var p=[],m={};return"OperatorNode"===e.type&&e.isBinary()&&"/"===e.op?(1===a&&(e.args[0]=D(e.args[0],p),e.args[1]=D(e.args[1])),n&&(m.numerator=e.args[0],m.denominator=e.args[1])):(1===a&&(e=D(e,p)),n&&(m.numerator=e,m.denominator=null)),n?(m.coefficients=p,m.variables=i.variables,m.expression=e,m):e}});function E(e,t,n,r){var i=[],a=h(e,r,t,{exactFractions:!1});n=!!n;var o="+-*"+(n?"/":"");l(a);var s={};return s.expression=a,s.variables=i,s;function l(e){var t=e.type;if("FunctionNode"===t)throw new Error("There is an unsolved function call");if("OperatorNode"===t)if("^"===e.op){if("ConstantNode"!==e.args[1].type||!Y(parseFloat(e.args[1].value)))throw new Error("There is a non-integer exponent");l(e.args[0])}else{if(-1===o.indexOf(e.op))throw new Error("Operator "+e.op+" invalid in polynomial expression");for(var n=0;n<e.args.length;n++)l(e.args[n])}else if("SymbolNode"===t){var r=e.name,a=i.indexOf(r);-1===a&&i.push(r)}else if("ParenthesisNode"===t)l(e.content);else if("ConstantNode"!==t)throw new Error("type "+t+" is not allowed in polynomial expression")}}function M(){var e=[d,{l:"n+n",r:"2*n"},{l:"n+-n",r:"0"},k,{l:"n*(n1^-1)",r:"n/n1"},{l:"n*n1^-n2",r:"n/n1^n2"},{l:"n1^-1",r:"1/n1"},{l:"n*(n1/n2)",r:"(n*n1)/n2"},{l:"1*n",r:"n"}],t=[{l:"(-n1)/(-n2)",r:"n1/n2"},{l:"(-n1)*(-n2)",r:"n1*n2"},{l:"n1--n2",r:"n1+n2"},{l:"n1-n2",r:"n1+(-n2)"},{l:"(n1+n2)*n3",r:"(n1*n3 + n2*n3)"},{l:"n1*(n2+n3)",r:"(n1*n2+n1*n3)"},{l:"c1*n + c2*n",r:"(c1+c2)*n"},{l:"c1*n + n",r:"(c1+1)*n"},{l:"c1*n - c2*n",r:"(c1-c2)*n"},{l:"c1*n - n",r:"(c1-1)*n"},{l:"v/c",r:"(1/c)*v"},{l:"v/-c",r:"-(1/c)*v"},{l:"-v*-c",r:"c*v"},{l:"-v*c",r:"-c*v"},{l:"v*-c",r:"-c*v"},{l:"v*c",r:"c*v"},{l:"-(-n1*n2)",r:"(n1*n2)"},{l:"-(n1*n2)",r:"(-n1*n2)"},{l:"-(-n1+n2)",r:"(n1-n2)"},{l:"-(n1+n2)",r:"(-n1-n2)"},{l:"(n1^n2)^n3",r:"(n1^(n2*n3))"},{l:"-(-n1/n2)",r:"(n1/n2)"},{l:"-(n1/n2)",r:"(-n1/n2)"}],n=[{l:"(n1/n2 + n3/n4)",r:"((n1*n4 + n3*n2)/(n2*n4))"},{l:"(n1/n2 + n3)",r:"((n1 + n3*n2)/n2)"},{l:"(n1 + n2/n3)",r:"((n1*n3 + n2)/n3)"}],r=[{l:"(n1/(n2/n3))",r:"((n1*n3)/n2)"},{l:"(n1/n2/n3)",r:"(n1/(n2*n3))"}],i={};return i.firstRules=e.concat(t,r),i.distrDivRules=n,i.sucDivRules=r,i.firstRulesAgain=e.concat(t),i.finalRules=[d,{l:"n*-n",r:"-n^2"},{l:"n*n",r:"n^2"},k,{l:"n*-n^n1",r:"-n^(n1+1)"},{l:"n*n^n1",r:"n^(n1+1)"},{l:"n^n1*-n^n2",r:"-n^(n1+n2)"},{l:"n^n1*n^n2",r:"n^(n1+n2)"},{l:"n^n1*-n",r:"-n^(n1+1)"},{l:"n^n1*n",r:"n^(n1+1)"},{l:"n^n1/-n",r:"-n^(n1-1)"},{l:"n^n1/n",r:"n^(n1-1)"},{l:"n/-n^n1",r:"-n^(1-n1)"},{l:"n/n^n1",r:"n^(1-n1)"},{l:"n^n1/-n^n2",r:"n^(n1-n2)"},{l:"n^n1/n^n2",r:"n^(n1-n2)"},{l:"n1+(-n2*n3)",r:"n1-n2*n3"},{l:"v*(-c)",r:"-c*v"},{l:"n1+-n2",r:"n1-n2"},{l:"v*c",r:"c*v"},{l:"(n1^n2)^n3",r:"(n1^(n2*n3))"}],i}function O(e,t,n){var r=e.type,i=arguments.length>1;if("OperatorNode"===r&&e.isBinary()){var a,o=!1;if("^"===e.op&&("ParenthesisNode"!==e.args[0].type&&"OperatorNode"!==e.args[0].type||"ConstantNode"!==e.args[1].type||(a=parseFloat(e.args[1].value),o=a>=2&&Y(a))),o){if(a>2){var s=e.args[0],l=new C("^","pow",[e.args[0].cloneDeep(),new b(a-1)]);e=new C("*","multiply",[s,l])}else e=new C("*","multiply",[e.args[0],e.args[0].cloneDeep()]);i&&("content"===n?t.content=e:t.args[n]=e)}}if("ParenthesisNode"===r)O(e.content,e,"content");else if("ConstantNode"!==r&&"SymbolNode"!==r)for(var u=0;u<e.args.length;u++)O(e.args[u],e,u);if(!i)return e}function D(e,t){void 0===t&&(t=[]),t[0]=0;var n={cte:1,oper:"+",fire:""},r=0,i="";h(e,null,n),r=t.length-1;for(var a,o=!0,s=r;s>=0;s--)if(0!==t[s]){var l=new b(o?t[s]:Math.abs(t[s])),u=t[s]<0?"-":"+";if(s>0){var c=new S(i);if(s>1){var d=new b(s);c=new C("^","pow",[c,d])}l=-1===t[s]&&o?new C("-","unaryMinus",[c]):1===Math.abs(t[s])?c:new C("*","multiply",[l,c])}a=o?l:"+"===u?new C("+","add",[a,l]):new C("-","subtract",[a,l]),o=!1}return o?new b(0):a;function h(e,n,a){var o=e.type;if("FunctionNode"===o)throw new Error("There is an unsolved function call");if("OperatorNode"===o){if(-1==="+-*^".indexOf(e.op))throw new Error("Operator "+e.op+" invalid");if(null!==n){if(("unaryMinus"===e.fn||"pow"===e.fn)&&"add"!==n.fn&&"subtract"!==n.fn&&"multiply"!==n.fn)throw new Error("Invalid "+e.op+" placing");if(("subtract"===e.fn||"add"===e.fn||"multiply"===e.fn)&&"add"!==n.fn&&"subtract"!==n.fn)throw new Error("Invalid "+e.op+" placing");if(("subtract"===e.fn||"add"===e.fn||"unaryMinus"===e.fn)&&0!==a.noFil)throw new Error("Invalid "+e.op+" placing")}"^"!==e.op&&"*"!==e.op||(a.fire=e.op);for(var s=0;s<e.args.length;s++)"unaryMinus"===e.fn&&(a.oper="-"),"+"!==e.op&&"subtract"!==e.fn||(a.fire="",a.cte=1,a.oper=0===s?"+":e.op),a.noFil=s,h(e.args[s],e,a)}else if("SymbolNode"===o){if(e.name!==i&&""!==i)throw new Error("There is more than one variable");if(i=e.name,null===n)return void(t[1]=1);if("^"===n.op&&0!==a.noFil)throw new Error("In power the variable should be the first parameter");if("*"===n.op&&1!==a.noFil)throw new Error("In multiply the variable should be the second parameter");""!==a.fire&&"*"!==a.fire||(r<1&&(t[1]=0),t[1]+=a.cte*("+"===a.oper?1:-1),r=Math.max(1,r))}else{if("ConstantNode"!==o)throw new Error("Type "+o+" is not allowed");var l=parseFloat(e.value);if(null===n)return void(t[0]=l);if("^"===n.op){if(1!==a.noFil)throw new Error("Constant cannot be powered");if(!Y(l)||l<=0)throw new Error("Non-integer exponent is not allowed");for(var u=r+1;u<l;u++)t[u]=0;return l>r&&(t[l]=0),t[l]+=a.cte*("+"===a.oper?1:-1),void(r=Math.max(l,r))}a.cte=l,""===a.fire&&(t[0]+=a.cte*("+"===a.oper?1:-1))}}}})),vl="derivative",gl=["typed","config","parse","simplify","equal","isZero","numeric","ConstantNode","FunctionNode","OperatorNode","ParenthesisNode","SymbolNode"],yl=Le(vl,gl,(e=>{var{typed:t,config:n,parse:r,simplify:i,equal:a,isZero:o,numeric:s,ConstantNode:l,FunctionNode:u,OperatorNode:c,ParenthesisNode:d,SymbolNode:h}=e,f=t("derivative",{"Node, SymbolNode, Object":function(e,t,n){var r={};m(r,e,t.name);var a=v(e,r);return n.simplify?i(a):a},"Node, SymbolNode":function(e,t){return this(e,t,{simplify:!0})},"string, SymbolNode":function(e,t){return this(r(e),t)},"string, SymbolNode, Object":function(e,t,n){return this(r(e),t,n)},"string, string":function(e,t){return this(r(e),r(t))},"string, string, Object":function(e,t,n){return this(r(e),r(t),n)},"Node, string":function(e,t){return this(e,r(t))},"Node, string, Object":function(e,t,n){return this(e,r(t),n)}});f._simplify=!0,f.toTex=function(e){return p.apply(null,e.args)};var p=t("_derivTex",{"Node, SymbolNode":function(e,t){return P(e)&&"string"===W(e.value)?p(r(e.value).toString(),t.toString(),1):p(e.toTex(),t.toString(),1)},"Node, ConstantNode":function(e,t){if("string"===W(t.value))return p(e,r(t.value));throw new Error("The second parameter to 'derivative' is a non-string constant")},"Node, SymbolNode, ConstantNode":function(e,t,n){return p(e.toString(),t.name,n.value)},"string, string, number":function(e,t,n){var r;return r=1===n?"{d\\over d"+t+"}":"{d^{"+n+"}\\over d"+t+"^{"+n+"}}",r+"\\left[".concat(e,"\\right]")}}),m=t("constTag",{"Object, ConstantNode, string":function(e,t){return e[t]=!0,!0},"Object, SymbolNode, string":function(e,t,n){return t.name!==n&&(e[t]=!0,!0)},"Object, ParenthesisNode, string":function(e,t,n){return m(e,t.content,n)},"Object, FunctionAssignmentNode, string":function(e,t,n){return-1===t.params.indexOf(n)?(e[t]=!0,!0):m(e,t.expr,n)},"Object, FunctionNode | OperatorNode, string":function(e,t,n){if(t.args.length>0){for(var r=m(e,t.args[0],n),i=1;i<t.args.length;++i)r=m(e,t.args[i],n)&&r;if(r)return e[t]=!0,!0}return!1}}),v=t("_derivative",{"ConstantNode, Object":function(e){return y(0)},"SymbolNode, Object":function(e,t){return void 0!==t[e]?y(0):y(1)},"ParenthesisNode, Object":function(e,t){return new d(v(e.content,t))},"FunctionAssignmentNode, Object":function(e,t){return void 0!==t[e]?y(0):v(e.expr,t)},"FunctionNode, Object":function(e,t){if(1!==e.args.length&&g(e),void 0!==t[e])return y(0);var n,r,i,a,o=e.args[0],s=!1,l=!1;switch(e.name){case"cbrt":s=!0,r=new c("*","multiply",[y(3),new c("^","pow",[o,new c("/","divide",[y(2),y(3)])])]);break;case"sqrt":case"nthRoot":if(1===e.args.length)s=!0,r=new c("*","multiply",[y(2),new u("sqrt",[o])]);else if(2===e.args.length)return n=new c("/","divide",[y(1),e.args[1]]),t[n]=t[e.args[1]],v(new c("^","pow",[o,n]),t);break;case"log10":n=y(10);case"log":if(n||1!==e.args.length){if(1===e.args.length&&n||2===e.args.length&&void 0!==t[e.args[1]])r=new c("*","multiply",[o.clone(),new u("log",[n||e.args[1]])]),s=!0;else if(2===e.args.length)return v(new c("/","divide",[new u("log",[o]),new u("log",[e.args[1]])]),t)}else r=o.clone(),s=!0;break;case"pow":return t[n]=t[e.args[1]],v(new c("^","pow",[o,e.args[1]]),t);case"exp":r=new u("exp",[o.clone()]);break;case"sin":r=new u("cos",[o.clone()]);break;case"cos":r=new c("-","unaryMinus",[new u("sin",[o.clone()])]);break;case"tan":r=new c("^","pow",[new u("sec",[o.clone()]),y(2)]);break;case"sec":r=new c("*","multiply",[e,new u("tan",[o.clone()])]);break;case"csc":l=!0,r=new c("*","multiply",[e,new u("cot",[o.clone()])]);break;case"cot":l=!0,r=new c("^","pow",[new u("csc",[o.clone()]),y(2)]);break;case"asin":s=!0,r=new u("sqrt",[new c("-","subtract",[y(1),new c("^","pow",[o.clone(),y(2)])])]);break;case"acos":s=!0,l=!0,r=new u("sqrt",[new c("-","subtract",[y(1),new c("^","pow",[o.clone(),y(2)])])]);break;case"atan":s=!0,r=new c("+","add",[new c("^","pow",[o.clone(),y(2)]),y(1)]);break;case"asec":s=!0,r=new c("*","multiply",[new u("abs",[o.clone()]),new u("sqrt",[new c("-","subtract",[new c("^","pow",[o.clone(),y(2)]),y(1)])])]);break;case"acsc":s=!0,l=!0,r=new c("*","multiply",[new u("abs",[o.clone()]),new u("sqrt",[new c("-","subtract",[new c("^","pow",[o.clone(),y(2)]),y(1)])])]);break;case"acot":s=!0,l=!0,r=new c("+","add",[new c("^","pow",[o.clone(),y(2)]),y(1)]);break;case"sinh":r=new u("cosh",[o.clone()]);break;case"cosh":r=new u("sinh",[o.clone()]);break;case"tanh":r=new c("^","pow",[new u("sech",[o.clone()]),y(2)]);break;case"sech":l=!0,r=new c("*","multiply",[e,new u("tanh",[o.clone()])]);break;case"csch":l=!0,r=new c("*","multiply",[e,new u("coth",[o.clone()])]);break;case"coth":l=!0,r=new c("^","pow",[new u("csch",[o.clone()]),y(2)]);break;case"asinh":s=!0,r=new u("sqrt",[new c("+","add",[new c("^","pow",[o.clone(),y(2)]),y(1)])]);break;case"acosh":s=!0,r=new u("sqrt",[new c("-","subtract",[new c("^","pow",[o.clone(),y(2)]),y(1)])]);break;case"atanh":s=!0,r=new c("-","subtract",[y(1),new c("^","pow",[o.clone(),y(2)])]);break;case"asech":s=!0,l=!0,r=new c("*","multiply",[o.clone(),new u("sqrt",[new c("-","subtract",[y(1),new c("^","pow",[o.clone(),y(2)])])])]);break;case"acsch":s=!0,l=!0,r=new c("*","multiply",[new u("abs",[o.clone()]),new u("sqrt",[new c("+","add",[new c("^","pow",[o.clone(),y(2)]),y(1)])])]);break;case"acoth":s=!0,l=!0,r=new c("-","subtract",[y(1),new c("^","pow",[o.clone(),y(2)])]);break;case"abs":r=new c("/","divide",[new u(new h("abs"),[o.clone()]),o.clone()]);break;case"gamma":default:throw new Error('Function "'+e.name+'" is not supported by derivative, or a wrong number of arguments is passed')}s?(i="/",a="divide"):(i="*",a="multiply");var d=v(o,t);return l&&(d=new c("-","unaryMinus",[d])),new c(i,a,[d,r])},"OperatorNode, Object":function(e,t){if(void 0!==t[e])return y(0);if("+"===e.op)return new c(e.op,e.fn,e.args.map((function(e){return v(e,t)})));if("-"===e.op){if(e.isUnary())return new c(e.op,e.fn,[v(e.args[0],t)]);if(e.isBinary())return new c(e.op,e.fn,[v(e.args[0],t),v(e.args[1],t)])}if("*"===e.op){var n=e.args.filter((function(e){return void 0!==t[e]}));if(n.length>0){var r=e.args.filter((function(e){return void 0===t[e]})),i=1===r.length?r[0]:new c("*","multiply",r),s=n.concat(v(i,t));return new c("*","multiply",s)}return new c("+","add",e.args.map((function(n){return new c("*","multiply",e.args.map((function(e){return e===n?v(e,t):e.clone()})))})))}if("/"===e.op&&e.isBinary()){var l=e.args[0],d=e.args[1];return void 0!==t[d]?new c("/","divide",[v(l,t),d]):void 0!==t[l]?new c("*","multiply",[new c("-","unaryMinus",[l]),new c("/","divide",[v(d,t),new c("^","pow",[d.clone(),y(2)])])]):new c("/","divide",[new c("-","subtract",[new c("*","multiply",[v(l,t),d.clone()]),new c("*","multiply",[l.clone(),v(d,t)])]),new c("^","pow",[d.clone(),y(2)])])}if("^"===e.op&&e.isBinary()){var h=e.args[0],f=e.args[1];if(void 0!==t[h])return P(h)&&(o(h.value)||a(h.value,1))?y(0):new c("*","multiply",[e,new c("*","multiply",[new u("log",[h.clone()]),v(f.clone(),t)])]);if(void 0!==t[f]){if(P(f)){if(o(f.value))return y(0);if(a(f.value,1))return v(h,t)}var p=new c("^","pow",[h.clone(),new c("-","subtract",[f,y(1)])]);return new c("*","multiply",[f.clone(),new c("*","multiply",[v(h,t),p])])}return new c("*","multiply",[new c("^","pow",[h.clone(),f.clone()]),new c("+","add",[new c("*","multiply",[v(h,t),new c("/","divide",[f.clone(),h.clone()])]),new c("*","multiply",[v(f,t),new u("log",[h.clone()])])])])}throw new Error('Operator "'+e.op+'" is not supported by derivative, or a wrong number of arguments is passed')}});function g(e){if("log"!==e.name&&"nthRoot"!==e.name&&"pow"!==e.name||2!==e.args.length){for(var t=0;t<e.args.length;++t)e.args[t]=y(0);throw e.compile().evaluate(),new Error("Expected TypeError, but none found")}}function y(e,t){return new l(s(e,t||n.number))}return f})),bl="parser",xl=["typed","Parser"],wl=Le(bl,xl,(e=>{var{typed:t,Parser:n}=e;return t(bl,{"":function(){return new n}})}));function _l(e){var t=0,n=1,r=Object.create(null),i=Object.create(null),a=0,o=function(e){var o=i[e];if(o&&(delete r[o],delete i[e],--t,n===o)){if(!t)return a=0,void(n=1);while(!hasOwnProperty.call(r,++n));}};return e=Math.abs(e),{hit:function(s){var l=i[s],u=++a;if(r[u]=s,i[s]=u,!l){if(++t,t<=e)return;return s=r[n],o(s),s}if(delete r[l],n===l)while(!hasOwnProperty.call(r,++n));},delete:o,clear:function(){t=a=0,n=1,r=Object.create(null),i=Object.create(null)}}}function Cl(e){var{hasher:t,limit:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n=null==n?Number.POSITIVE_INFINITY:n,t=null==t?JSON.stringify:t,function r(){"object"!==typeof r.cache&&(r.cache={values:new Map,lru:_l(n||Number.POSITIVE_INFINITY)});for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];var o=t(i);if(r.cache.values.has(o))return r.cache.lru.hit(o),r.cache.values.get(o);var s=e.apply(e,i);return r.cache.values.set(o,s),r.cache.values.delete(r.cache.lru.hit(o)),s}}function Sl(e){return Object.keys(e.signatures||{}).reduce((function(e,t){var n=(t.match(/,/g)||[]).length+1;return Math.max(e,n)}),-1)}function Nl(e,t,n){var r=e.filter((function(e){return H(e)&&!(e.name in t)&&!n.has(e.name)}))[0];if(!r)throw new Error('No undefined variable found in inline expression "'+e+'"');var i=r.name,a=Wn(n),o=e.compile();return function(e){return a.set(i,e),o.evaluate(a)}}var kl="filter",El=["typed"],Ml=Le(kl,El,(e=>{var{typed:t}=e;function n(e,t,n){var i,a;return e[0]&&(i=e[0].compile().evaluate(n)),e[1]&&(a=H(e[1])||j(e[1])?e[1].compile().evaluate(n):Nl(e[1],t,n)),r(i,a)}n.rawArgs=!0;var r=t("filter",{"Array, function":Ol,"Matrix, function":function(e,t){return e.create(Ol(e.toArray(),t))},"Array, RegExp":$t,"Matrix, RegExp":function(e,t){return e.create($t(e.toArray(),t))}});return n}),{isTransformFunction:!0});function Ol(e,t){var n=Sl(t);return It(e,(function(e,r,i){return 1===n?t(e):2===n?t(e,[r+1]):t(e,[r+1],i)}))}var Dl="forEach",Tl=["typed"],Al=Le(Dl,Tl,(e=>{var{typed:t}=e;function n(e,t,n){var i,a;return e[0]&&(i=e[0].compile().evaluate(n)),e[1]&&(a=H(e[1])||j(e[1])?e[1].compile().evaluate(n):Nl(e[1],t,n)),r(i,a)}n.rawArgs=!0;var r=t("forEach",{"Array | Matrix, function":function(e,t){var n=Sl(t),r=function r(i,a){Array.isArray(i)?At(i,(function(e,t){r(e,a.concat(t+1))})):1===n?t(i):2===n?t(i,a):t(i,a,e)};r(e.valueOf(),[])}});return n}),{isTransformFunction:!0}),Il="map",$l=["typed"],Pl=Le(Il,$l,(e=>{var{typed:t}=e;function n(e,t,n){var i,a;return e[0]&&(i=e[0].compile().evaluate(n)),e[1]&&(a=H(e[1])||j(e[1])?e[1].compile().evaluate(n):Nl(e[1],t,n)),r(i,a)}n.rawArgs=!0;var r=t("map",{"Array, function":function(e,t){return jl(e,t,e)},"Matrix, function":function(e,t){return e.create(jl(e.valueOf(),t,e))}});return n}),{isTransformFunction:!0});function jl(e,t,n){var r=Sl(t);function i(e,a){return Array.isArray(e)?Tt(e,(function(e,t){return i(e,a.concat(t+1))})):1===r?t(e):2===r?t(e,a):t(e,a,n)}return i(e,[])}var Fl="apply",Bl=["typed","isInteger"],Ll=Le(Fl,Bl,(e=>{var{typed:t,isInteger:n}=e;return t(Fl,{"Array | Matrix, number | BigNumber, function":function(e,t,r){if(!n(t))throw new TypeError("Integer number expected for dimension");var i=Array.isArray(e)?vt(e):e.size();if(t<0||t>=i.length)throw new mt(t,i.length);return m(e)?e.create(zl(e.valueOf(),t,r)):zl(e,t,r)}})}));function zl(e,t,n){var r,i,a;if(t<=0){if(Array.isArray(e[0])){for(a=Rl(e),i=[],r=0;r<a.length;r++)i[r]=zl(a[r],t-1,n);return i}return n(e)}for(i=[],r=0;r<e.length;r++)i[r]=zl(e[r],t-1,n);return i}function Rl(e){var t,n,r=e.length,i=e[0].length,a=[];for(n=0;n<i;n++){var o=[];for(t=0;t<r;t++)o.push(e[t][n]);a.push(o)}return a}var Vl="apply",ql=["typed","isInteger"],Hl=Le(Vl,ql,(e=>{var{typed:t,isInteger:n}=e,r=Ll({typed:t,isInteger:n});return t("apply",{"...any":function(e){var t=e[1];l(t)?e[1]=t-1:u(t)&&(e[1]=t.minus(1));try{return r.apply(null,e)}catch(n){throw Tn(n)}}})}),{isTransformFunction:!0}),Ul="diff",Wl=["typed","matrix","subtract","number"],Yl=Le(Ul,Wl,(e=>{var{typed:t,matrix:n,subtract:r,number:i}=e;return t(Ul,{"Array | Matrix":function(e){return m(e)?n(o(e.toArray())):o(e)},"Array | Matrix, number":function(e,t){if(!Y(t))throw new RangeError("Dimension must be a whole number");return m(e)?n(a(e.toArray(),t)):a(e,t)},"Array | Matrix, BigNumber":function(e,t){return this(e,i(t))}});function a(e,t){if(m(e)&&(e=e.toArray()),!Array.isArray(e))throw RangeError("Array/Matrix does not have that many dimensions");if(t>0){var n=[];return e.forEach((e=>{n.push(a(e,t-1))})),n}if(0===t)return o(e);throw RangeError("Cannot have negative dimension")}function o(e){var t=[],n=e.length;if(n<2)return e;for(var r=1;r<n;r++)t.push(s(e[r-1],e[r]));return t}function s(e,t){m(e)&&(e=e.toArray()),m(t)&&(t=t.toArray());var n=Array.isArray(e),i=Array.isArray(t);if(n&&i)return l(e,t);if(!n&&!i)return r(t,e);throw TypeError("Cannot calculate difference between 1 array and 1 non-array")}function l(e,t){if(e.length!==t.length)throw RangeError("Not all sub-arrays have the same length");for(var n=[],r=e.length,i=0;i<r;i++)n.push(s(e[i],t[i]));return n}}));function Gl(e){if(2===e.length&&v(e[0])){e=e.slice();var t=e[1];l(t)?e[1]=t-1:u(t)&&(e[1]=t.minus(1))}return e}var Kl="diff",Xl=["typed","matrix","subtract","number","bignumber"],Zl=Le(Kl,Xl,(e=>{var{typed:t,matrix:n,subtract:r,number:i,bignumber:a}=e,o=Yl({typed:t,matrix:n,subtract:r,number:i,bignumber:a});return t(Kl,{"...any":function(e){e=Gl(e);try{return o.apply(null,e)}catch(t){throw Tn(t)}}})}),{isTransformFunction:!0}),Jl="subset",Ql=["typed","matrix"],eu=Le(Jl,Ql,(e=>{var{typed:t,matrix:n}=e;return t(Jl,{"Array, Index":function(e,t){var r=n(e),i=r.subset(t);return t.isScalar()?i:i.valueOf()},"Matrix, Index":function(e,t){return e.subset(t)},"Object, Index":ru,"string, Index":tu,"Array, Index, any":function(e,t,r){return n(Ae(e)).subset(t,r,void 0).valueOf()},"Array, Index, any, any":function(e,t,r,i){return n(Ae(e)).subset(t,r,i).valueOf()},"Matrix, Index, any":function(e,t,n){return e.clone().subset(t,n)},"Matrix, Index, any, any":function(e,t,n,r){return e.clone().subset(t,n,r)},"string, Index, string":nu,"string, Index, string, string":nu,"Object, Index, any":iu})}));function tu(e,t){if(!x(t))throw new TypeError("Index expected");if(1!==t.size().length)throw new pt(t.size().length,1);var n=e.length;bt(t.min()[0],n),bt(t.max()[0],n);var r=t.dimension(0),i="";return r.forEach((function(t){i+=e.charAt(t)})),i}function nu(e,t,n,r){if(!t||!0!==t.isIndex)throw new TypeError("Index expected");if(1!==t.size().length)throw new pt(t.size().length,1);if(void 0!==r){if("string"!==typeof r||1!==r.length)throw new TypeError("Single character expected as defaultValue")}else r=" ";var i=t.dimension(0),a=i.size()[0];if(a!==n.length)throw new pt(i.size()[0],n.length);var o=e.length;bt(t.min()[0]),bt(t.max()[0]);for(var s=[],l=0;l<o;l++)s[l]=e.charAt(l);if(i.forEach((function(e,t){s[e]=n.charAt(t[0])})),s.length>o)for(var u=o-1,c=s.length;u<c;u++)s[u]||(s[u]=r);return s.join("")}function ru(e,t){if(1!==t.size().length)throw new pt(t.size(),1);var n=t.dimension(0);if("string"!==typeof n)throw new TypeError("String expected as index to retrieve an object property");return Ye(e,n)}function iu(e,t,n){if(1!==t.size().length)throw new pt(t.size(),1);var r=t.dimension(0);if("string"!==typeof r)throw new TypeError("String expected as index to retrieve an object property");var i=Ae(e);return Ge(i,r,n),i}var au="subset",ou=["typed","matrix"],su=Le(au,ou,(e=>{var{typed:t,matrix:n}=e,r=eu({typed:t,matrix:n});return t("subset",{"...any":function(e){try{return r.apply(null,e)}catch(t){throw Tn(t)}}})}),{isTransformFunction:!0}),lu="concat",uu=["typed","matrix","isInteger"],cu=Le(lu,uu,(e=>{var{typed:t,matrix:n,isInteger:r}=e;return t(lu,{"...Array | Matrix | number | BigNumber":function(e){var t,i,a=e.length,o=-1,s=!1,c=[];for(t=0;t<a;t++){var d=e[t];if(m(d)&&(s=!0),l(d)||u(d)){if(t!==a-1)throw new Error("Dimension must be specified as last argument");if(i=o,o=d.valueOf(),!r(o))throw new TypeError("Integer number expected for dimension");if(o<0||t>0&&o>i)throw new mt(o,i+1)}else{var h=Ae(d).valueOf(),f=vt(h);if(c[t]=h,i=o,o=f.length-1,t>0&&o!==i)throw new pt(i+1,o+1)}}if(0===c.length)throw new SyntaxError("At least one matrix expected");var p=c.shift();while(c.length)p=du(p,c.shift(),o,0);return s?n(p):p},"...string":function(e){return e.join("")}})}));function du(e,t,n,r){if(r<n){if(e.length!==t.length)throw new pt(e.length,t.length);for(var i=[],a=0;a<e.length;a++)i[a]=du(e[a],t[a],n,r+1);return i}return e.concat(t)}var hu="concat",fu=["typed","matrix","isInteger"],pu=Le(hu,fu,(e=>{var{typed:t,matrix:n,isInteger:r}=e,i=cu({typed:t,matrix:n,isInteger:r});return t("concat",{"...any":function(e){var t=e.length-1,n=e[t];l(n)?e[t]=n-1:u(n)&&(e[t]=n.minus(1));try{return i.apply(null,e)}catch(r){throw Tn(r)}}})}),{isTransformFunction:!0});function mu(e,t,n){var r;return-1!==String(e).indexOf("Unexpected type")?(r=arguments.length>2?" (type: "+W(n)+", value: "+JSON.stringify(n)+")":" (type: "+e.data.actual+")",new TypeError("Cannot calculate "+t+", unexpected type of argument"+r)):-1!==String(e).indexOf("complex numbers")?(r=arguments.length>2?" (type: "+W(n)+", value: "+JSON.stringify(n)+")":"",new TypeError("Cannot calculate "+t+", no ordering relation is defined for complex numbers"+r)):e}var vu="max",gu=["typed","config","numeric","larger"],yu=Le(vu,gu,(e=>{var{typed:t,config:n,numeric:r,larger:i}=e;return t(vu,{"Array | Matrix":o,"Array | Matrix, number | BigNumber":function(e,t){return er(e,t.valueOf(),a)},"...":function(e){if(Zn(e))throw new TypeError("Scalar values expected in function max");return o(e)}});function a(e,t){try{return i(e,t)?e:t}catch(n){throw mu(n,"max",t)}}function o(e){var t;if(Jn(e,(function(e){try{isNaN(e)&&"number"===typeof e?t=NaN:(void 0===t||i(e,t))&&(t=e)}catch(n){throw mu(n,"max",e)}})),void 0===t)throw new Error("Cannot calculate max of an empty array");return"string"===typeof t&&(t=r(t,n.number)),t}})),bu="max",xu=["typed","config","numeric","larger"],wu=Le(bu,xu,(e=>{var{typed:t,config:n,numeric:r,larger:i}=e,a=yu({typed:t,config:n,numeric:r,larger:i});return t("max",{"...any":function(e){e=Gl(e);try{return a.apply(null,e)}catch(t){throw Tn(t)}}})}),{isTransformFunction:!0}),_u="min",Cu=["typed","config","numeric","smaller"],Su=Le(_u,Cu,(e=>{var{typed:t,config:n,numeric:r,smaller:i}=e;return t(_u,{"Array | Matrix":o,"Array | Matrix, number | BigNumber":function(e,t){return er(e,t.valueOf(),a)},"...":function(e){if(Zn(e))throw new TypeError("Scalar values expected in function min");return o(e)}});function a(e,t){try{return i(e,t)?e:t}catch(n){throw mu(n,"min",t)}}function o(e){var t;if(Jn(e,(function(e){try{isNaN(e)&&"number"===typeof e?t=NaN:(void 0===t||i(e,t))&&(t=e)}catch(n){throw mu(n,"min",e)}})),void 0===t)throw new Error("Cannot calculate min of an empty array");return"string"===typeof t&&(t=r(t,n.number)),t}})),Nu="min",ku=["typed","config","numeric","smaller"],Eu=Le(Nu,ku,(e=>{var{typed:t,config:n,numeric:r,smaller:i}=e,a=Su({typed:t,config:n,numeric:r,smaller:i});return t("min",{"...any":function(e){e=Gl(e);try{return a.apply(null,e)}catch(t){throw Tn(t)}}})}),{isTransformFunction:!0}),Mu="range",Ou=["typed","config","?matrix","?bignumber","smaller","smallerEq","larger","largerEq"],Du=Le(Mu,Ou,(e=>{var{typed:t,config:n,matrix:r,bignumber:i,smaller:a,smallerEq:o,larger:s,largerEq:l}=e;return t(Mu,{string:c,"string, boolean":c,"number, number":function(e,t){return u(d(e,t,1))},"number, number, number":function(e,t,n){return u(d(e,t,n))},"number, number, boolean":function(e,t,n){return u(n?h(e,t,1):d(e,t,1))},"number, number, number, boolean":function(e,t,n,r){return u(r?h(e,t,n):d(e,t,n))},"BigNumber, BigNumber":function(e,t){var n=e.constructor;return u(f(e,t,new n(1)))},"BigNumber, BigNumber, BigNumber":function(e,t,n){return u(f(e,t,n))},"BigNumber, BigNumber, boolean":function(e,t,n){var r=e.constructor;return u(n?p(e,t,new r(1)):f(e,t,new r(1)))},"BigNumber, BigNumber, BigNumber, boolean":function(e,t,n,r){return u(r?p(e,t,n):f(e,t,n))}});function u(e){return"Matrix"===n.matrix?r?r(e):Or():e}function c(e,t){var r,a=m(e);if(!a)throw new SyntaxError('String "'+e+'" is no valid range');return"BigNumber"===n.number?(void 0===i&&Er(),r=t?p:f,u(r(i(a.start),i(a.end),i(a.step)))):(r=t?h:d,u(r(a.start,a.end,a.step)))}function d(e,t,n){var r=[],i=e;if(n>0)while(a(i,t))r.push(i),i+=n;else if(n<0)while(s(i,t))r.push(i),i+=n;return r}function h(e,t,n){var r=[],i=e;if(n>0)while(o(i,t))r.push(i),i+=n;else if(n<0)while(l(i,t))r.push(i),i+=n;return r}function f(e,t,n){var r=i(0),o=[],l=e;if(n.gt(r))while(a(l,t))o.push(l),l=l.plus(n);else if(n.lt(r))while(s(l,t))o.push(l),l=l.plus(n);return o}function p(e,t,n){var r=i(0),a=[],s=e;if(n.gt(r))while(o(s,t))a.push(s),s=s.plus(n);else if(n.lt(r))while(l(s,t))a.push(s),s=s.plus(n);return a}function m(e){var t=e.split(":"),n=t.map((function(e){return Number(e)})),r=n.some((function(e){return isNaN(e)}));if(r)return null;switch(n.length){case 2:return{start:n[0],end:n[1],step:1};case 3:return{start:n[0],end:n[2],step:n[1]};default:return null}}})),Tu="range",Au=["typed","config","?matrix","?bignumber","smaller","smallerEq","larger","largerEq"],Iu=Le(Tu,Au,(e=>{var{typed:t,config:n,matrix:r,bignumber:i,smaller:a,smallerEq:o,larger:s,largerEq:l}=e,u=Du({typed:t,config:n,matrix:r,bignumber:i,smaller:a,smallerEq:o,larger:s,largerEq:l});return t("range",{"...any":function(e){var t=e.length-1,n=e[t];return"boolean"!==typeof n&&e.push(!0),u.apply(null,e)}})}),{isTransformFunction:!0}),$u="sum",Pu=["typed","config","add","numeric"],ju=Le($u,Pu,(e=>{var{typed:t,config:n,add:r,numeric:i}=e;return t($u,{"Array | Matrix":a,"Array | Matrix, number | BigNumber":o,"...":function(e){if(Zn(e))throw new TypeError("Scalar values expected in function sum");return a(e)}});function a(e){var t;return Jn(e,(function(e){try{t=void 0===t?e:r(t,e)}catch(n){throw mu(n,"sum",e)}})),void 0===t&&(t=i(0,n.number)),"string"===typeof t&&(t=i(t,n.number)),t}function o(e,t){try{var n=er(e,t,r);return n}catch(i){throw mu(i,"sum")}}})),Fu="sum",Bu=["typed","config","add","numeric"],Lu=Le(Fu,Bu,(e=>{var{typed:t,config:n,add:r,numeric:i}=e,a=ju({typed:t,config:n,add:r,numeric:i});return t(Fu,{"...any":function(e){e=Gl(e);try{return a.apply(null,e)}catch(t){throw Tn(t)}}})}),{isTransformFunction:!0}),zu="cumsum",Ru=["typed","add","unaryPlus"],Vu=Le(zu,Ru,(e=>{var{typed:t,add:n,unaryPlus:r}=e;return t(zu,{Array:i,Matrix:function(e){return e.create(i(e.valueOf()))},"Array, number | BigNumber":o,"Matrix, number | BigNumber":function(e,t){return e.create(o(e.valueOf(),t))},"...":function(e){if(Zn(e))throw new TypeError("All values expected to be scalar in function cumsum");return i(e)}});function i(e){try{return a(e)}catch(t){throw mu(t,zu)}}function a(e){if(0===e.length)return[];for(var t=[r(e[0])],i=1;i<e.length;++i)t.push(n(t[i-1],e[i]));return t}function o(e,t){var n=vt(e);if(t<0||t>=n.length)throw new mt(t,n.length);try{return s(e,t)}catch(r){throw mu(r,zu)}}function s(e,t){var n,r,i;if(t<=0){var o=e[0][0];if(Array.isArray(o)){for(i=Xn(e),r=[],n=0;n<i.length;n++)r[n]=s(i[n],t-1);return r}return a(e)}for(r=[],n=0;n<e.length;n++)r[n]=s(e[n],t-1);return r}})),qu="cumsum",Hu=["typed","add","unaryPlus"],Uu=Le(qu,Hu,(e=>{var{typed:t,add:n,unaryPlus:r}=e,i=Vu({typed:t,add:n,unaryPlus:r});return t(qu,{"...any":function(e){if(2===e.length&&v(e[0])){var t=e[1];l(t)?e[1]=t-1:u(t)&&(e[1]=t.minus(1))}try{return i.apply(null,e)}catch(n){throw Tn(n)}}})}),{isTransformFunction:!0}),Wu="row",Yu=["typed","Index","matrix","range"],Gu=Le(Wu,Yu,(e=>{var{typed:t,Index:n,matrix:r,range:i}=e;return t(Wu,{"Matrix, number":a,"Array, number":function(e,t){return a(r(Ae(e)),t).valueOf()}});function a(e,t){if(2!==e.size().length)throw new Error("Only two dimensional matrix is supported");bt(t,e.size()[0]);var r=i(0,e.size()[1]),a=new n(t,r);return e.subset(a)}})),Ku="row",Xu=["typed","Index","matrix","range"],Zu=Le(Ku,Xu,(e=>{var{typed:t,Index:n,matrix:r,range:i}=e,a=Gu({typed:t,Index:n,matrix:r,range:i});return t("row",{"...any":function(e){var t=e.length-1,n=e[t];l(n)&&(e[t]=n-1);try{return a.apply(null,e)}catch(r){throw Tn(r)}}})}),{isTransformFunction:!0}),Ju="column",Qu=["typed","Index","matrix","range"],ec=Le(Ju,Qu,(e=>{var{typed:t,Index:n,matrix:r,range:i}=e;return t(Ju,{"Matrix, number":a,"Array, number":function(e,t){return a(r(Ae(e)),t).valueOf()}});function a(e,t){if(2!==e.size().length)throw new Error("Only two dimensional matrix is supported");bt(t,e.size()[1]);var r=i(0,e.size()[0]),a=new n(r,t);return e.subset(a)}})),tc="column",nc=["typed","Index","matrix","range"],rc=Le(tc,nc,(e=>{var{typed:t,Index:n,matrix:r,range:i}=e,a=ec({typed:t,Index:n,matrix:r,range:i});return t("column",{"...any":function(e){var t=e.length-1,n=e[t];l(n)&&(e[t]=n-1);try{return a.apply(null,e)}catch(r){throw Tn(r)}}})}),{isTransformFunction:!0}),ic="index",ac=["Index"],oc=Le(ic,ac,(e=>{var{Index:t}=e;return function(){for(var e=[],n=0,r=arguments.length;n<r;n++){var i=arguments[n];if(b(i))i.start--,i.end-=i.step>0?0:2;else if(i&&!0===i.isSet)i=i.map((function(e){return e-1}));else if(p(i)||m(i))i=i.map((function(e){return e-1}));else if(l(i))i--;else if(u(i))i=i.toNumber()-1;else if("string"!==typeof i)throw new TypeError("Dimension must be an Array, Matrix, number, string, or Range");e[n]=i}var a=new t;return t.apply(a,e),a}}),{isTransformFunction:!0}),sc="mean",lc=["typed","add","divide"],uc=Le(sc,lc,(e=>{var{typed:t,add:n,divide:r}=e;return t(sc,{"Array | Matrix":a,"Array | Matrix, number | BigNumber":i,"...":function(e){if(Zn(e))throw new TypeError("Scalar values expected in function mean");return a(e)}});function i(e,t){try{var i=er(e,t,n),a=Array.isArray(e)?vt(e):e.size();return r(i,a[t])}catch(o){throw mu(o,"mean")}}function a(e){var t,i=0;if(Jn(e,(function(e){try{t=void 0===t?e:n(t,e),i++}catch(r){throw mu(r,"mean",e)}})),0===i)throw new Error("Cannot calculate the mean of an empty array");return r(t,i)}})),cc="mean",dc=["typed","add","divide"],hc=Le(cc,dc,(e=>{var{typed:t,add:n,divide:r}=e,i=uc({typed:t,add:n,divide:r});return t("mean",{"...any":function(e){e=Gl(e);try{return i.apply(null,e)}catch(t){throw Tn(t)}}})}),{isTransformFunction:!0}),fc="unbiased",pc="variance",mc=["typed","add","subtract","multiply","divide","apply","isNaN"],vc=Le(pc,mc,(e=>{var{typed:t,add:n,subtract:r,multiply:i,divide:a,apply:o,isNaN:s}=e;return t(pc,{"Array | Matrix":function(e){return l(e,fc)},"Array | Matrix, string":l,"Array | Matrix, number | BigNumber":function(e,t){return c(e,t,fc)},"Array | Matrix, number | BigNumber, string":c,"...":function(e){return l(e,fc)}});function l(e,t){var o,l=0;if(0===e.length)throw new SyntaxError("Function variance requires one or more parameters (0 provided)");if(Jn(e,(function(e){try{o=void 0===o?e:n(o,e),l++}catch(t){throw mu(t,"variance",e)}})),0===l)throw new Error("Cannot calculate variance of an empty array");var c=a(o,l);if(o=void 0,Jn(e,(function(e){var t=r(e,c);o=void 0===o?i(t,t):n(o,i(t,t))})),s(o))return o;switch(t){case"uncorrected":return a(o,l);case"biased":return a(o,l+1);case"unbiased":var d=u(o)?o.mul(0):0;return 1===l?d:a(o,l-1);default:throw new Error('Unknown normalization "'+t+'". Choose "unbiased" (default), "uncorrected", or "biased".')}}function c(e,t,n){try{if(0===e.length)throw new SyntaxError("Function variance requires one or more parameters (0 provided)");return o(e,t,(e=>l(e,n)))}catch(r){throw mu(r,"variance")}}})),gc="variance",yc=["typed","add","subtract","multiply","divide","apply","isNaN"],bc=Le(gc,yc,(e=>{var{typed:t,add:n,subtract:r,multiply:i,divide:a,apply:o,isNaN:s}=e,l=vc({typed:t,add:n,subtract:r,multiply:i,divide:a,apply:o,isNaN:s});return t(gc,{"...any":function(e){e=Gl(e);try{return l.apply(null,e)}catch(t){throw Tn(t)}}})}),{isTransformFunction:!0}),xc="std",wc=["typed","sqrt","variance"],_c=Le(xc,wc,(e=>{var{typed:t,sqrt:n,variance:r}=e;return t(xc,{"Array | Matrix":i,"Array | Matrix, string":i,"Array | Matrix, number | BigNumber":i,"Array | Matrix, number | BigNumber, string":i,"...":function(e){return i(e)}});function i(e,t){if(0===e.length)throw new SyntaxError("Function std requires one or more parameters (0 provided)");try{return n(r.apply(null,arguments))}catch(i){throw i instanceof TypeError&&-1!==i.message.indexOf(" variance")?new TypeError(i.message.replace(" variance"," std")):i}}})),Cc="std",Sc=["typed","sqrt","variance"],Nc=Le(Cc,Sc,(e=>{var{typed:t,sqrt:n,variance:r}=e,i=_c({typed:t,sqrt:n,variance:r});return t("std",{"...any":function(e){e=Gl(e);try{return i.apply(null,e)}catch(t){throw Tn(t)}}})}),{isTransformFunction:!0}),kc=n(3776),Ec="BigNumber",Mc=["?on","config"],Oc=Le(Ec,Mc,(e=>{var{on:t,config:n}=e,r=kc.clone({precision:n.precision,modulo:kc.EUCLID});return r.prototype=Object.create(r.prototype),r.prototype.type="BigNumber",r.prototype.isBigNumber=!0,r.prototype.toJSON=function(){return{mathjs:"BigNumber",value:this.toString()}},r.fromJSON=function(e){return new r(e.value)},t&&t("config",(function(e,t){e.precision!==t.precision&&r.config({precision:e.precision})})),r}),{isClass:!0}),Dc=n(1977),Tc="Complex",Ac=[],Ic=Le(Tc,Ac,(()=>(Dc.prototype.type="Complex",Dc.prototype.isComplex=!0,Dc.prototype.toJSON=function(){return{mathjs:"Complex",re:this.re,im:this.im}},Dc.prototype.toPolar=function(){return{r:this.abs(),phi:this.arg()}},Dc.prototype.format=function(e){var t="",n=this.im,r=this.re,i=te(this.re,e),a=te(this.im,e),o=l(e)?e:e?e.precision:null;if(null!==o){var s=Math.pow(10,-o);Math.abs(r/n)<s&&(r=0),Math.abs(n/r)<s&&(n=0)}return t=0===n?i:0===r?1===n?"i":-1===n?"-i":a+"i":n<0?-1===n?i+" - i":i+" - "+a.substring(1)+"i":1===n?i+" + i":i+" + "+a+"i",t},Dc.fromPolar=function(e){switch(arguments.length){case 1:var t=arguments[0];if("object"===typeof t)return Dc(t);throw new TypeError("Input has to be an object with r and phi keys.");case 2:var n=arguments[0],r=arguments[1];if(l(n)){if(h(r)&&r.hasBase("ANGLE")&&(r=r.toNumber("rad")),l(r))return new Dc({r:n,phi:r});throw new TypeError("Phi is not a number nor an angle unit.")}throw new TypeError("Radius r is not a number.");default:throw new SyntaxError("Wrong number of arguments in function fromPolar")}},Dc.prototype.valueOf=Dc.prototype.toString,Dc.fromJSON=function(e){return new Dc(e)},Dc.compare=function(e,t){return e.re>t.re?1:e.re<t.re?-1:e.im>t.im?1:e.im<t.im?-1:0},Dc)),{isClass:!0}),$c="10.6.1",Pc=Cl((function(e){return new e(1).exp()}),{hasher:Lc}),jc=Cl((function(e){return new e(1).plus(new e(5).sqrt()).div(2)}),{hasher:Lc}),Fc=Cl((function(e){return e.acos(-1)}),{hasher:Lc}),Bc=Cl((function(e){return Fc(e).times(2)}),{hasher:Lc});function Lc(e){return e[0].precision}var zc=Math.PI,Rc=2*Math.PI,Vc=Math.E,qc=1.618033988749895,Hc=Le("true",[],(()=>!0)),Uc=Le("false",[],(()=>!1)),Wc=Le("null",[],(()=>null)),Yc=sd("Infinity",["config","?BigNumber"],(e=>{var{config:t,BigNumber:n}=e;return"BigNumber"===t.number?new n(1/0):1/0})),Gc=sd("NaN",["config","?BigNumber"],(e=>{var{config:t,BigNumber:n}=e;return"BigNumber"===t.number?new n(NaN):NaN})),Kc=sd("pi",["config","?BigNumber"],(e=>{var{config:t,BigNumber:n}=e;return"BigNumber"===t.number?Fc(n):zc})),Xc=sd("tau",["config","?BigNumber"],(e=>{var{config:t,BigNumber:n}=e;return"BigNumber"===t.number?Bc(n):Rc})),Zc=sd("e",["config","?BigNumber"],(e=>{var{config:t,BigNumber:n}=e;return"BigNumber"===t.number?Pc(n):Vc})),Jc=sd("phi",["config","?BigNumber"],(e=>{var{config:t,BigNumber:n}=e;return"BigNumber"===t.number?jc(n):qc})),Qc=sd("LN2",["config","?BigNumber"],(e=>{var{config:t,BigNumber:n}=e;return"BigNumber"===t.number?new n(2).ln():Math.LN2})),ed=sd("LN10",["config","?BigNumber"],(e=>{var{config:t,BigNumber:n}=e;return"BigNumber"===t.number?new n(10).ln():Math.LN10})),td=sd("LOG2E",["config","?BigNumber"],(e=>{var{config:t,BigNumber:n}=e;return"BigNumber"===t.number?new n(1).div(new n(2).ln()):Math.LOG2E})),nd=sd("LOG10E",["config","?BigNumber"],(e=>{var{config:t,BigNumber:n}=e;return"BigNumber"===t.number?new n(1).div(new n(10).ln()):Math.LOG10E})),rd=sd("SQRT1_2",["config","?BigNumber"],(e=>{var{config:t,BigNumber:n}=e;return"BigNumber"===t.number?new n("0.5").sqrt():Math.SQRT1_2})),id=sd("SQRT2",["config","?BigNumber"],(e=>{var{config:t,BigNumber:n}=e;return"BigNumber"===t.number?new n(2).sqrt():Math.SQRT2})),ad=sd("i",["Complex"],(e=>{var{Complex:t}=e;return t.I})),od=Le("version",[],(()=>$c));function sd(e,t,n){return Le(e,t,n,{recreateOnConfigChange:!0})}var ld=ih("speedOfLight","299792458","m s^-1"),ud=ih("gravitationConstant","6.67430e-11","m^3 kg^-1 s^-2"),cd=ih("planckConstant","6.62607015e-34","J s"),dd=ih("reducedPlanckConstant","1.0545718176461565e-34","J s"),hd=ih("magneticConstant","1.25663706212e-6","N A^-2"),fd=ih("electricConstant","8.8541878128e-12","F m^-1"),pd=ih("vacuumImpedance","376.730313667","ohm"),md=ih("coulomb","8.987551792261171e9","N m^2 C^-2"),vd=ih("elementaryCharge","1.602176634e-19","C"),gd=ih("bohrMagneton","9.2740100783e-24","J T^-1"),yd=ih("conductanceQuantum","7.748091729863649e-5","S"),bd=ih("inverseConductanceQuantum","12906.403729652257","ohm"),xd=ih("magneticFluxQuantum","2.0678338484619295e-15","Wb"),wd=ih("nuclearMagneton","5.0507837461e-27","J T^-1"),_d=ih("klitzing","25812.807459304513","ohm"),Cd=ih("bohrRadius","5.29177210903e-11","m"),Sd=ih("classicalElectronRadius","2.8179403262e-15","m"),Nd=ih("electronMass","9.1093837015e-31","kg"),kd=ih("fermiCoupling","1.1663787e-5","GeV^-2"),Ed=ah("fineStructure",.0072973525693),Md=ih("hartreeEnergy","4.3597447222071e-18","J"),Od=ih("protonMass","1.67262192369e-27","kg"),Dd=ih("deuteronMass","3.3435830926e-27","kg"),Td=ih("neutronMass","1.6749271613e-27","kg"),Ad=ih("quantumOfCirculation","3.6369475516e-4","m^2 s^-1"),Id=ih("rydberg","10973731.568160","m^-1"),$d=ih("thomsonCrossSection","6.6524587321e-29","m^2"),Pd=ah("weakMixingAngle",.2229),jd=ah("efimovFactor",22.7),Fd=ih("atomicMass","1.66053906660e-27","kg"),Bd=ih("avogadro","6.02214076e23","mol^-1"),Ld=ih("boltzmann","1.380649e-23","J K^-1"),zd=ih("faraday","96485.33212331001","C mol^-1"),Rd=ih("firstRadiation","3.7417718521927573e-16","W m^2"),Vd=ih("loschmidt","2.686780111798444e25","m^-3"),qd=ih("gasConstant","8.31446261815324","J K^-1 mol^-1"),Hd=ih("molarPlanckConstant","3.990312712893431e-10","J s mol^-1"),Ud=ih("molarVolume","0.022413969545014137","m^3 mol^-1"),Wd=ah("sackurTetrode",-1.16487052358),Yd=ih("secondRadiation","0.014387768775039337","m K"),Gd=ih("stefanBoltzmann","5.67037441918443e-8","W m^-2 K^-4"),Kd=ih("wienDisplacement","2.897771955e-3","m K"),Xd=ih("molarMass","0.99999999965e-3","kg mol^-1"),Zd=ih("molarMassC12","11.9999999958e-3","kg mol^-1"),Jd=ih("gravity","9.80665","m s^-2"),Qd=ih("planckLength","1.616255e-35","m"),eh=ih("planckMass","2.176435e-8","kg"),th=ih("planckTime","5.391245e-44","s"),nh=ih("planckCharge","1.87554603778e-18","C"),rh=ih("planckTemperature","1.416785e+32","K");function ih(e,t,n){var r=["config","Unit","BigNumber"];return Le(e,r,(e=>{var{config:r,Unit:i,BigNumber:a}=e,o="BigNumber"===r.number?new a(t):parseFloat(t),s=new i(o,n);return s.fixPrefix=!0,s}))}function ah(e,t){var n=["config","BigNumber"];return Le(e,n,(e=>{var{config:n,BigNumber:r}=e;return"BigNumber"===n.number?new r(t):t}))}var oh=n(5628),sh="Fraction",lh=[],uh=Le(sh,lh,(()=>(oh.prototype.type="Fraction",oh.prototype.isFraction=!0,oh.prototype.toJSON=function(){return{mathjs:"Fraction",n:this.s*this.n,d:this.d}},oh.fromJSON=function(e){return new oh(e)},oh)),{isClass:!0}),ch="Matrix",dh=[],hh=Le(ch,dh,(()=>{function e(){if(!(this instanceof e))throw new SyntaxError("Constructor must be called with the new operator")}return e.prototype.type="Matrix",e.prototype.isMatrix=!0,e.prototype.storage=function(){throw new Error("Cannot invoke storage on a Matrix interface")},e.prototype.datatype=function(){throw new Error("Cannot invoke datatype on a Matrix interface")},e.prototype.create=function(e,t){throw new Error("Cannot invoke create on a Matrix interface")},e.prototype.subset=function(e,t,n){throw new Error("Cannot invoke subset on a Matrix interface")},e.prototype.get=function(e){throw new Error("Cannot invoke get on a Matrix interface")},e.prototype.set=function(e,t,n){throw new Error("Cannot invoke set on a Matrix interface")},e.prototype.resize=function(e,t){throw new Error("Cannot invoke resize on a Matrix interface")},e.prototype.reshape=function(e,t){throw new Error("Cannot invoke reshape on a Matrix interface")},e.prototype.clone=function(){throw new Error("Cannot invoke clone on a Matrix interface")},e.prototype.size=function(){throw new Error("Cannot invoke size on a Matrix interface")},e.prototype.map=function(e,t){throw new Error("Cannot invoke map on a Matrix interface")},e.prototype.forEach=function(e){throw new Error("Cannot invoke forEach on a Matrix interface")},e.prototype[Symbol.iterator]=function(){throw new Error("Cannot iterate a Matrix interface")},e.prototype.toArray=function(){throw new Error("Cannot invoke toArray on a Matrix interface")},e.prototype.valueOf=function(){throw new Error("Cannot invoke valueOf on a Matrix interface")},e.prototype.format=function(e){throw new Error("Cannot invoke format on a Matrix interface")},e.prototype.toString=function(){throw new Error("Cannot invoke toString on a Matrix interface")},e}),{isClass:!0}),fh="Range",ph=[],mh=Le(fh,ph,(()=>{function e(t,n,r){if(!(this instanceof e))throw new SyntaxError("Constructor must be called with the new operator");var i=null!==t&&void 0!==t,a=null!==n&&void 0!==n,o=null!==r&&void 0!==r;if(i)if(u(t))t=t.toNumber();else if("number"!==typeof t)throw new TypeError("Parameter start must be a number");if(a)if(u(n))n=n.toNumber();else if("number"!==typeof n)throw new TypeError("Parameter end must be a number");if(o)if(u(r))r=r.toNumber();else if("number"!==typeof r)throw new TypeError("Parameter step must be a number");this.start=i?parseFloat(t):0,this.end=a?parseFloat(n):0,this.step=o?parseFloat(r):1}return e.prototype.type="Range",e.prototype.isRange=!0,e.parse=function(t){if("string"!==typeof t)return null;var n=t.split(":"),r=n.map((function(e){return parseFloat(e)})),i=r.some((function(e){return isNaN(e)}));if(i)return null;switch(r.length){case 2:return new e(r[0],r[1]);case 3:return new e(r[0],r[2],r[1]);default:return null}},e.prototype.clone=function(){return new e(this.start,this.end,this.step)},e.prototype.size=function(){var e=0,t=this.start,n=this.step,r=this.end,i=r-t;return G(n)===G(i)?e=Math.ceil(i/n):0===i&&(e=0),isNaN(e)&&(e=0),[e]},e.prototype.min=function(){var e=this.size()[0];return e>0?this.step>0?this.start:this.start+(e-1)*this.step:void 0},e.prototype.max=function(){var e=this.size()[0];return e>0?this.step>0?this.start+(e-1)*this.step:this.start:void 0},e.prototype.forEach=function(e){var t=this.start,n=this.step,r=this.end,i=0;if(n>0)while(t<r)e(t,[i],this),t+=n,i++;else if(n<0)while(t>r)e(t,[i],this),t+=n,i++},e.prototype.map=function(e){var t=[];return this.forEach((function(n,r,i){t[r[0]]=e(n,r,i)})),t},e.prototype.toArray=function(){var e=[];return this.forEach((function(t,n){e[n[0]]=t})),e},e.prototype.valueOf=function(){return this.toArray()},e.prototype.format=function(e){var t=te(this.start,e);return 1!==this.step&&(t+=":"+te(this.step,e)),t+=":"+te(this.end,e),t},e.prototype.toString=function(){return this.format()},e.prototype.toJSON=function(){return{mathjs:"Range",start:this.start,end:this.end,step:this.step}},e.fromJSON=function(t){return new e(t.start,t.end,t.step)},e}),{isClass:!0}),vh="ResultSet",gh=[],yh=Le(vh,gh,(()=>{function e(t){if(!(this instanceof e))throw new SyntaxError("Constructor must be called with the new operator");this.entries=t||[]}return e.prototype.type="ResultSet",e.prototype.isResultSet=!0,e.prototype.valueOf=function(){return this.entries},e.prototype.toString=function(){return"["+this.entries.join(", ")+"]"},e.prototype.toJSON=function(){return{mathjs:"ResultSet",entries:this.entries}},e.fromJSON=function(t){return new e(t.entries)},e}),{isClass:!0}),bh="DenseMatrix",xh=["Matrix"],wh=Le(bh,xh,(e=>{var{Matrix:t}=e;function n(e,t){if(!(this instanceof n))throw new SyntaxError("Constructor must be called with the new operator");if(t&&!f(t))throw new Error("Invalid datatype: "+t);if(m(e))"DenseMatrix"===e.type?(this._data=Ae(e._data),this._size=Ae(e._size),this._datatype=t||e._datatype):(this._data=e.toArray(),this._size=e.size(),this._datatype=t||e._datatype);else if(e&&p(e.data)&&p(e.size))this._data=e.data,this._size=e.size,yt(this._data,this._size),this._datatype=t||e.datatype;else if(p(e))this._data=d(e),this._size=vt(this._data),yt(this._data,this._size),this._datatype=t;else{if(e)throw new TypeError("Unsupported type of data ("+W(e)+")");this._data=[],this._size=[0],this._datatype=t}}function r(e,t){if(!x(t))throw new TypeError("Invalid index");var r=t.isScalar();if(r)return e.get(t.min());var a=t.size();if(a.length!==e._size.length)throw new pt(a.length,e._size.length);for(var o=t.min(),s=t.max(),l=0,u=e._size.length;l<u;l++)bt(o[l],e._size[l]),bt(s[l],e._size[l]);return new n(i(e._data,t,a.length,0),e._datatype)}function i(e,t,n,r){var a=r===n-1,o=t.dimension(r);return a?o.map((function(t){return bt(t,e.length),e[t]})).valueOf():o.map((function(a){bt(a,e.length);var o=e[a];return i(o,t,n,r+1)})).valueOf()}function a(e,t,n,r){if(!t||!0!==t.isIndex)throw new TypeError("Invalid index");var i,a=t.size(),s=t.isScalar();if(m(n)?(i=n.size(),n=n.valueOf()):i=vt(n),s){if(0!==i.length)throw new TypeError("Scalar expected");e.set(t.min(),n,r)}else{if(a.length<e._size.length)throw new pt(a.length,e._size.length,"<");if(i.length<a.length){var l=0,u=0;while(1===a[l]&&1===i[l])l++;while(1===a[l])u++,l++;n=Mt(n,a.length,u,i)}if(!Pe(a,i))throw new pt(a,i,">");var d=t.max().map((function(e){return e+1}));c(e,d,r);var h=a.length,f=0;o(e._data,t,n,h,f)}return e}function o(e,t,n,r,i){var a=i===r-1,s=t.dimension(i);a?s.forEach((function(t,r){bt(t),e[t]=n[r[0]]})):s.forEach((function(a,s){bt(a),o(e[a],t,n[s[0]],r,i+1)}))}function s(e,t,n){if(0===t.length){var r=e._data;while(p(r))r=r[0];return r}return e._size=t.slice(0),e._data=xt(e._data,e._size,n),e}function c(e,t,n){var r=e._size.slice(0),i=!1;while(r.length<t.length)r.push(0),i=!0;for(var a=0,o=t.length;a<o;a++)t[a]>r[a]&&(r[a]=t[a],i=!0);i&&s(e,r,n)}function d(e){for(var t=0,n=e.length;t<n;t++){var r=e[t];p(r)?e[t]=d(r):r&&!0===r.isMatrix&&(e[t]=d(r.valueOf()))}return e}return n.prototype=new t,n.prototype.createDenseMatrix=function(e,t){return new n(e,t)},n.prototype.type="DenseMatrix",n.prototype.isDenseMatrix=!0,n.prototype.getDataType=function(){return Bt(this._data,W)},n.prototype.storage=function(){return"dense"},n.prototype.datatype=function(){return this._datatype},n.prototype.create=function(e,t){return new n(e,t)},n.prototype.subset=function(e,t,n){switch(arguments.length){case 1:return r(this,e);case 2:case 3:return a(this,e,t,n);default:throw new SyntaxError("Wrong number of arguments")}},n.prototype.get=function(e){if(!p(e))throw new TypeError("Array expected");if(e.length!==this._size.length)throw new pt(e.length,this._size.length);for(var t=0;t<e.length;t++)bt(e[t],this._size[t]);for(var n=this._data,r=0,i=e.length;r<i;r++){var a=e[r];bt(a,n.length),n=n[a]}return n},n.prototype.set=function(e,t,n){if(!p(e))throw new TypeError("Array expected");if(e.length<this._size.length)throw new pt(e.length,this._size.length,"<");var r,i,a,o=e.map((function(e){return e+1}));c(this,o,n);var s=this._data;for(r=0,i=e.length-1;r<i;r++)a=e[r],bt(a,s.length),s=s[a];return a=e[e.length-1],bt(a,s.length),s[a]=t,this},n.prototype.resize=function(e,t,n){if(!v(e))throw new TypeError("Array or Matrix expected");var r=e.valueOf().map((e=>Array.isArray(e)&&1===e.length?e[0]:e)),i=n?this.clone():this;return s(i,r,t)},n.prototype.reshape=function(e,t){var n=t?this.clone():this;n._data=_t(n._data,e);var r=n._size.reduce(((e,t)=>e*t));return n._size=Ct(e,r),n},n.prototype.clone=function(){var e=new n({data:Ae(this._data),size:Ae(this._size),datatype:this._datatype});return e},n.prototype.size=function(){return this._size.slice(0)},n.prototype.map=function(e){var t=this,r=function n(r,i){return p(r)?r.map((function(e,t){return n(e,i.concat(t))})):e(r,i,t)},i=r(this._data,[]),a=void 0!==this._datatype?Bt(i,W):void 0;return new n(i,a)},n.prototype.forEach=function(e){var t=this,n=function n(r,i){p(r)?r.forEach((function(e,t){n(e,i.concat(t))})):e(r,i,t)};n(this._data,[])},n.prototype[Symbol.iterator]=function*(){var e=function*e(t,n){if(p(t))for(var r=0;r<t.length;r++)yield*e(t[r],n.concat(r));else yield{value:t,index:n}};yield*e(this._data,[])},n.prototype.rows=function(){var e=[],t=this.size();if(2!==t.length)throw new TypeError("Rows can only be returned for a 2D matrix.");var r=this._data;for(var i of r)e.push(new n([i],this._datatype));return e},n.prototype.columns=function(){var e=this,t=[],r=this.size();if(2!==r.length)throw new TypeError("Rows can only be returned for a 2D matrix.");for(var i=this._data,a=function(r){var a=i.map((e=>[e[r]]));t.push(new n(a,e._datatype))},o=0;o<r[1];o++)a(o);return t},n.prototype.toArray=function(){return Ae(this._data)},n.prototype.valueOf=function(){return this._data},n.prototype.format=function(e){return Ne(this._data,e)},n.prototype.toString=function(){return Ne(this._data)},n.prototype.toJSON=function(){return{mathjs:"DenseMatrix",data:this._data,size:this._size,datatype:this._datatype}},n.prototype.diagonal=function(e){if(e){if(u(e)&&(e=e.toNumber()),!l(e)||!Y(e))throw new TypeError("The parameter k must be an integer number")}else e=0;for(var t=e>0?e:0,r=e<0?-e:0,i=this._size[0],a=this._size[1],o=Math.min(i-r,a-t),s=[],c=0;c<o;c++)s[c]=this._data[c+r][c+t];return new n({data:s,size:[o],datatype:this._datatype})},n.diagonal=function(e,t,r,i){if(!p(e))throw new TypeError("Array expected, size parameter");if(2!==e.length)throw new Error("Only two dimensions matrix are supported");if(e=e.map((function(e){if(u(e)&&(e=e.toNumber()),!l(e)||!Y(e)||e<1)throw new Error("Size values must be positive integers");return e})),r){if(u(r)&&(r=r.toNumber()),!l(r)||!Y(r))throw new TypeError("The parameter k must be an integer number")}else r=0;var a,o=r>0?r:0,s=r<0?-r:0,c=e[0],d=e[1],h=Math.min(c-s,d-o);if(p(t)){if(t.length!==h)throw new Error("Invalid value array length");a=function(e){return t[e]}}else if(m(t)){var f=t.size();if(1!==f.length||f[0]!==h)throw new Error("Invalid matrix length");a=function(e){return t.get([e])}}else a=function(){return t};i||(i=u(a(0))?a(0).mul(0):0);var v=[];if(e.length>0){v=xt(v,e,i);for(var g=0;g<h;g++)v[g+s][g+o]=a(g)}return new n({data:v,size:[c,d]})},n.fromJSON=function(e){return new n(e)},n.prototype.swapRows=function(e,t){if(!l(e)||!Y(e)||!l(t)||!Y(t))throw new Error("Row index must be positive integers");if(2!==this._size.length)throw new Error("Only two dimensional matrix is supported");return bt(e,this._size[0]),bt(t,this._size[0]),n._swapRows(e,t,this._data),this},n._swapRows=function(e,t,n){var r=n[e];n[e]=n[t],n[t]=r},n}),{isClass:!0}),_h="replacer",Ch=[],Sh=Le(_h,Ch,(()=>function(e,t){return"number"!==typeof t||isFinite(t)&&!isNaN(t)?t:{mathjs:"number",value:String(t)}})),Nh=n(2287),kh=function(){return kh=Nh.create,Nh},Eh=["?BigNumber","?Complex","?DenseMatrix","?Fraction"],Mh=Le("typed",Eh,(function(e){var{BigNumber:t,Complex:n,DenseMatrix:r,Fraction:i}=e,a=kh();return a.types=[{name:"number",test:l},{name:"Complex",test:c},{name:"BigNumber",test:u},{name:"Fraction",test:d},{name:"Unit",test:h},{name:"string",test:f},{name:"Chain",test:U},{name:"Array",test:p},{name:"Matrix",test:m},{name:"DenseMatrix",test:g},{name:"SparseMatrix",test:y},{name:"Range",test:b},{name:"Index",test:x},{name:"boolean",test:w},{name:"ResultSet",test:_},{name:"Help",test:C},{name:"function",test:S},{name:"Date",test:N},{name:"RegExp",test:k},{name:"null",test:M},{name:"undefined",test:O},{name:"AccessorNode",test:D},{name:"ArrayNode",test:T},{name:"AssignmentNode",test:A},{name:"BlockNode",test:I},{name:"ConditionalNode",test:$},{name:"ConstantNode",test:P},{name:"FunctionNode",test:F},{name:"FunctionAssignmentNode",test:j},{name:"IndexNode",test:B},{name:"Node",test:L},{name:"ObjectNode",test:z},{name:"OperatorNode",test:R},{name:"ParenthesisNode",test:V},{name:"RangeNode",test:q},{name:"SymbolNode",test:H},{name:"Map",test:ot},{name:"Object",test:E}],a.conversions=[{from:"number",to:"BigNumber",convert:function(e){if(t||Oh(e),ue(e)>15)throw new TypeError("Cannot implicitly convert a number with >15 significant digits to BigNumber (value: "+e+"). Use function bignumber(x) to convert to BigNumber.");return new t(e)}},{from:"number",to:"Complex",convert:function(e){return n||Dh(e),new n(e,0)}},{from:"number",to:"string",convert:function(e){return e+""}},{from:"BigNumber",to:"Complex",convert:function(e){return n||Dh(e),new n(e.toNumber(),0)}},{from:"Fraction",to:"BigNumber",convert:function(e){throw new TypeError("Cannot implicitly convert a Fraction to BigNumber or vice versa. Use function bignumber(x) to convert to BigNumber or fraction(x) to convert to Fraction.")}},{from:"Fraction",to:"Complex",convert:function(e){return n||Dh(e),new n(e.valueOf(),0)}},{from:"number",to:"Fraction",convert:function(e){i||Ah(e);var t=new i(e);if(t.valueOf()!==e)throw new TypeError("Cannot implicitly convert a number to a Fraction when there will be a loss of precision (value: "+e+"). Use function fraction(x) to convert to Fraction.");return t}},{from:"string",to:"number",convert:function(e){var t=Number(e);if(isNaN(t))throw new Error('Cannot convert "'+e+'" to a number');return t}},{from:"string",to:"BigNumber",convert:function(e){t||Oh(e);try{return new t(e)}catch(n){throw new Error('Cannot convert "'+e+'" to BigNumber')}}},{from:"string",to:"Fraction",convert:function(e){i||Ah(e);try{return new i(e)}catch(t){throw new Error('Cannot convert "'+e+'" to Fraction')}}},{from:"string",to:"Complex",convert:function(e){n||Dh(e);try{return new n(e)}catch(t){throw new Error('Cannot convert "'+e+'" to Complex')}}},{from:"boolean",to:"number",convert:function(e){return+e}},{from:"boolean",to:"BigNumber",convert:function(e){return t||Oh(e),new t(+e)}},{from:"boolean",to:"Fraction",convert:function(e){return i||Ah(e),new i(+e)}},{from:"boolean",to:"string",convert:function(e){return String(e)}},{from:"Array",to:"Matrix",convert:function(e){return r||Th(),new r(e)}},{from:"Matrix",to:"Array",convert:function(e){return e.valueOf()}}],a}));function Oh(e){throw new Error("Cannot convert value ".concat(e," into a BigNumber: no class 'BigNumber' provided"))}function Dh(e){throw new Error("Cannot convert value ".concat(e," into a Complex number: no class 'Complex' provided"))}function Th(){throw new Error("Cannot convert array into a Matrix: no class 'DenseMatrix' provided")}function Ah(e){throw new Error("Cannot convert value ".concat(e," into a Fraction, no class 'Fraction' provided."))}var Ih="number",$h="number, number";function Ph(e){return Math.abs(e)}function jh(e,t){return e+t}function Fh(e,t){return e-t}function Bh(e,t){return e*t}function Lh(e,t){return e/t}function zh(e){return-e}function Rh(e){return e}function Vh(e){return J(e)}function qh(e){return e*e*e}function Hh(e){return Math.exp(e)}function Uh(e){return Q(e)}function Wh(e,t){if(!Y(e)||!Y(t))throw new Error("Parameters in function gcd must be integer numbers");var n;while(0!==t)n=e%t,e=t,t=n;return e<0?-e:e}function Yh(e,t){if(!Y(e)||!Y(t))throw new Error("Parameters in function lcm must be integer numbers");if(0===e||0===t)return 0;var n,r=e*t;while(0!==t)n=t,t=e%n,e=n;return Math.abs(r/e)}function Gh(e,t){return t?Math.log(e)/Math.log(t):Math.log(e)}function Kh(e){return X(e)}function Xh(e){return K(e)}function Zh(e){return Z(e)}function Jh(e,t){if(t>0)return e-t*Math.floor(e/t);if(0===t)return e;throw new Error("Cannot calculate mod for a negative divisor")}function Qh(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=t<0;if(n&&(t=-t),0===t)throw new Error("Root must be non-zero");if(e<0&&Math.abs(t)%2!==1)throw new Error("Root must be odd when a is negative.");if(0===e)return n?1/0:0;if(!isFinite(e))return n?0:e;var r=Math.pow(Math.abs(e),1/t);return r=e<0?-r:r,n?1/r:r}function ef(e){return G(e)}function tf(e){return Math.sqrt(e)}function nf(e){return e*e}function rf(e,t){var n,r,i,a,o=0,s=1,l=1,u=0;if(!Y(e)||!Y(t))throw new Error("Parameters in function xgcd must be integer numbers");while(t)r=Math.floor(e/t),i=e-r*t,n=o,o=s-r*o,s=n,n=l,l=u-r*l,u=n,e=t,t=i;return a=e<0?[-e,-s,-u]:[e,e?s:0,u],a}function af(e,t){return e*e<1&&t===1/0||e*e>1&&t===-1/0?0:Math.pow(e,t)}function of(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!Y(t)||t<0||t>15)throw new Error("Number of decimals in function round must be an integer from 0 to 15 inclusive");return parseFloat(ie(e,t))}function sf(e){return Math.abs(e)}Ph.signature=Ih,jh.signature=$h,Fh.signature=$h,Bh.signature=$h,Lh.signature=$h,zh.signature=Ih,Rh.signature=Ih,Vh.signature=Ih,qh.signature=Ih,Hh.signature=Ih,Uh.signature=Ih,Wh.signature=$h,Yh.signature=$h,Kh.signature=Ih,Xh.signature=Ih,Zh.signature=Ih,Jh.signature=$h,ef.signature=Ih,tf.signature=Ih,nf.signature=Ih,rf.signature=$h,af.signature=$h,sf.signature=Ih;var lf="unaryPlus",uf=["typed","config","BigNumber"],cf=Le(lf,uf,(e=>{var{typed:t,config:n,BigNumber:r}=e;return t(lf,{number:Rh,Complex:function(e){return e},BigNumber:function(e){return e},Fraction:function(e){return e},Unit:function(e){return e.clone()},"Array | Matrix":function(e){return Qn(e,this,!0)},"boolean | string":function(e){return"BigNumber"===n.number?new r(+e):+e}})})),df="abs",hf=["typed"],ff=Le(df,hf,(e=>{var{typed:t}=e;return t(df,{number:Ph,Complex:function(e){return e.abs()},BigNumber:function(e){return e.abs()},Fraction:function(e){return e.abs()},"Array | Matrix":function(e){return Qn(e,this,!0)},Unit:function(e){return e.abs()}})})),pf="acos",mf=["typed","config","Complex"],vf=Le(pf,mf,(e=>{var{typed:t,config:n,Complex:r}=e;return t(pf,{number:function(e){return e>=-1&&e<=1||n.predictable?Math.acos(e):new r(e,0).acos()},Complex:function(e){return e.acos()},BigNumber:function(e){return e.acos()},"Array | Matrix":function(e){return Qn(e,this)}})})),gf="number",yf="number, number";function bf(e){return Math.acos(e)}function xf(e){return he(e)}function wf(e){return Math.atan(1/e)}function _f(e){return isFinite(e)?(Math.log((e+1)/e)+Math.log(e/(e-1)))/2:0}function Cf(e){return Math.asin(1/e)}function Sf(e){var t=1/e;return Math.log(t+Math.sqrt(t*t+1))}function Nf(e){return Math.acos(1/e)}function kf(e){var t=1/e,n=Math.sqrt(t*t-1);return Math.log(n+t)}function Ef(e){return Math.asin(e)}function Mf(e){return fe(e)}function Of(e){return Math.atan(e)}function Df(e,t){return Math.atan2(e,t)}function Tf(e){return pe(e)}function Af(e){return Math.cos(e)}function If(e){return me(e)}function $f(e){return 1/Math.tan(e)}function Pf(e){var t=Math.exp(2*e);return(t+1)/(t-1)}function jf(e){return 1/Math.sin(e)}function Ff(e){return 0===e?Number.POSITIVE_INFINITY:Math.abs(2/(Math.exp(e)-Math.exp(-e)))*G(e)}function Bf(e){return 1/Math.cos(e)}function Lf(e){return 2/(Math.exp(e)+Math.exp(-e))}function zf(e){return Math.sin(e)}function Rf(e){return ve(e)}function Vf(e){return Math.tan(e)}function qf(e){return ge(e)}bf.signature=gf,xf.signature=gf,wf.signature=gf,_f.signature=gf,Cf.signature=gf,Sf.signature=gf,Nf.signature=gf,kf.signature=gf,Ef.signature=gf,Mf.signature=gf,Of.signature=gf,Df.signature=yf,Tf.signature=gf,Af.signature=gf,If.signature=gf,$f.signature=gf,Pf.signature=gf,jf.signature=gf,Ff.signature=gf,Bf.signature=gf,Lf.signature=gf,zf.signature=gf,Rf.signature=gf,Vf.signature=gf,qf.signature=gf;var Hf="acot",Uf=["typed","BigNumber"],Wf=Le(Hf,Uf,(e=>{var{typed:t,BigNumber:n}=e;return t(Hf,{number:wf,Complex:function(e){return e.acot()},BigNumber:function(e){return new n(1).div(e).atan()},"Array | Matrix":function(e){return Qn(e,this)}})})),Yf="acsc",Gf=["typed","config","Complex","BigNumber"],Kf=Le(Yf,Gf,(e=>{var{typed:t,config:n,Complex:r,BigNumber:i}=e;return t(Yf,{number:function(e){return e<=-1||e>=1||n.predictable?Cf(e):new r(e,0).acsc()},Complex:function(e){return e.acsc()},BigNumber:function(e){return new i(1).div(e).asin()},"Array | Matrix":function(e){return Qn(e,this)}})})),Xf="addScalar",Zf=["typed"],Jf=Le(Xf,Zf,(e=>{var{typed:t}=e;return t(Xf,{"number, number":jh,"Complex, Complex":function(e,t){return e.add(t)},"BigNumber, BigNumber":function(e,t){return e.plus(t)},"Fraction, Fraction":function(e,t){return e.add(t)},"Unit, Unit":function(e,t){if(null===e.value||void 0===e.value)throw new Error("Parameter x contains a unit with undefined value");if(null===t.value||void 0===t.value)throw new Error("Parameter y contains a unit with undefined value");if(!e.equalBase(t))throw new Error("Units do not match");var n=e.clone();return n.value=this(n.value,t.value),n.fixPrefix=!1,n}})})),Qf="arg",ep=["typed"],tp=Le(Qf,ep,(e=>{var{typed:t}=e;return t(Qf,{number:function(e){return Math.atan2(0,e)},BigNumber:function(e){return e.constructor.atan2(0,e)},Complex:function(e){return e.arg()},"Array | Matrix":function(e){return Qn(e,this)}})})),np="asech",rp=["typed","config","Complex","BigNumber"],ip=Le(np,rp,(e=>{var{typed:t,config:n,Complex:r,BigNumber:i}=e;return t(np,{number:function(e){if(e<=1&&e>=-1||n.predictable){var t=1/e;if(t>0||n.predictable)return kf(e);var i=Math.sqrt(t*t-1);return new r(Math.log(i-t),Math.PI)}return new r(e,0).asech()},Complex:function(e){return e.asech()},BigNumber:function(e){return new i(1).div(e).acosh()},"Array | Matrix":function(e){return Qn(e,this)}})})),ap="asinh",op=["typed"],sp=Le(ap,op,(e=>{var{typed:t}=e;return t("asinh",{number:Mf,Complex:function(e){return e.asinh()},BigNumber:function(e){return e.asinh()},"Array | Matrix":function(e){return Qn(e,this,!0)}})})),lp="atan",up=["typed"],cp=Le(lp,up,(e=>{var{typed:t}=e;return t("atan",{number:function(e){return Math.atan(e)},Complex:function(e){return e.atan()},BigNumber:function(e){return e.atan()},"Array | Matrix":function(e){return Qn(e,this,!0)}})})),dp="atanh",hp=["typed","config","Complex"],fp=Le(dp,hp,(e=>{var{typed:t,config:n,Complex:r}=e;return t(dp,{number:function(e){return e<=1&&e>=-1||n.predictable?Tf(e):new r(e,0).atanh()},Complex:function(e){return e.atanh()},BigNumber:function(e){return e.atanh()},"Array | Matrix":function(e){return Qn(e,this,!0)}})})),pp="bignumber",mp=["typed","BigNumber"],vp=Le(pp,mp,(e=>{var{typed:t,BigNumber:n}=e;return t("bignumber",{"":function(){return new n(0)},number:function(e){return new n(e+"")},string:function(e){var t=e.match(/(0[box][0-9a-fA-F]*)i([0-9]*)/);if(t){var r=t[2],i=n(t[1]),a=new n(2).pow(Number(r));if(i.gt(a.sub(1)))throw new SyntaxError('String "'.concat(e,'" is out of range'));var o=new n(2).pow(Number(r)-1);return i.gte(o)?i.sub(a):i}return new n(e)},BigNumber:function(e){return e},Fraction:function(e){return new n(e.n).div(e.d).times(e.s)},null:function(e){return new n(0)},"Array | Matrix":function(e){return Qn(e,this)}})}));function gp(e,t){if(e.isFinite()&&!e.isInteger()||t.isFinite()&&!t.isInteger())throw new Error("Integers expected in function bitAnd");var n=e.constructor;if(e.isNaN()||t.isNaN())return new n(NaN);if(e.isZero()||t.eq(-1)||e.eq(t))return e;if(t.isZero()||e.eq(-1))return t;if(!e.isFinite()||!t.isFinite()){if(!e.isFinite()&&!t.isFinite())return e.isNegative()===t.isNegative()?e:new n(0);if(!e.isFinite())return t.isNegative()?e:e.isNegative()?new n(0):t;if(!t.isFinite())return e.isNegative()?t:t.isNegative()?new n(0):e}return xp(e,t,(function(e,t){return e&t}))}function yp(e){if(e.isFinite()&&!e.isInteger())throw new Error("Integer expected in function bitNot");var t=e.constructor,n=t.precision;t.config({precision:1e9});var r=e.plus(new t(1));return r.s=-r.s||null,t.config({precision:n}),r}function bp(e,t){if(e.isFinite()&&!e.isInteger()||t.isFinite()&&!t.isInteger())throw new Error("Integers expected in function bitOr");var n=e.constructor;if(e.isNaN()||t.isNaN())return new n(NaN);var r=new n(-1);return e.isZero()||t.eq(r)||e.eq(t)?t:t.isZero()||e.eq(r)?e:e.isFinite()&&t.isFinite()?xp(e,t,(function(e,t){return e|t})):!e.isFinite()&&!e.isNegative()&&t.isNegative()||e.isNegative()&&!t.isNegative()&&!t.isFinite()?r:e.isNegative()&&t.isNegative()?e.isFinite()?e:t:e.isFinite()?t:e}function xp(e,t,n){var r,i,a,o,s,l=e.constructor,u=+(e.s<0),c=+(t.s<0);if(u){r=wp(yp(e));for(var d=0;d<r.length;++d)r[d]^=1}else r=wp(e);if(c){i=wp(yp(t));for(var h=0;h<i.length;++h)i[h]^=1}else i=wp(t);r.length<=i.length?(a=r,o=i,s=u):(a=i,o=r,s=c);var f=a.length,p=o.length,m=1^n(u,c),v=new l(1^m),g=new l(1),y=new l(2),b=l.precision;l.config({precision:1e9});while(f>0)n(a[--f],o[--p])===m&&(v=v.plus(g)),g=g.times(y);while(p>0)n(s,o[--p])===m&&(v=v.plus(g)),g=g.times(y);return l.config({precision:b}),0===m&&(v.s=-v.s),v}function wp(e){for(var t=e.d,n=t[0]+"",r=1;r<t.length;++r){for(var i=t[r]+"",a=7-i.length;a--;)i="0"+i;n+=i}var o=n.length;while("0"===n.charAt(o))o--;var s=e.e,l=n.slice(0,o+1||1),u=l.length;if(s>0)if(++s>u){s-=u;while(s--)l+="0"}else s<u&&(l=l.slice(0,s)+"."+l.slice(s));for(var c=[0],d=0;d<l.length;){var h=c.length;while(h--)c[h]*=10;c[0]+=parseInt(l.charAt(d++));for(var f=0;f<c.length;++f)c[f]>1&&(null!==c[f+1]&&void 0!==c[f+1]||(c[f+1]=0),c[f+1]+=c[f]>>1,c[f]&=1)}return c.reverse()}function _p(e,t){if(e.isFinite()&&!e.isInteger()||t.isFinite()&&!t.isInteger())throw new Error("Integers expected in function bitXor");var n=e.constructor;if(e.isNaN()||t.isNaN())return new n(NaN);if(e.isZero())return t;if(t.isZero())return e;if(e.eq(t))return new n(0);var r=new n(-1);return e.eq(r)?yp(t):t.eq(r)?yp(e):e.isFinite()&&t.isFinite()?xp(e,t,(function(e,t){return e^t})):e.isFinite()||t.isFinite()?new n(e.isNegative()===t.isNegative()?1/0:-1/0):r}function Cp(e,t){if(e.isFinite()&&!e.isInteger()||t.isFinite()&&!t.isInteger())throw new Error("Integers expected in function leftShift");var n=e.constructor;return e.isNaN()||t.isNaN()||t.isNegative()&&!t.isZero()?new n(NaN):e.isZero()||t.isZero()?e:e.isFinite()||t.isFinite()?t.lt(55)?e.times(Math.pow(2,t.toNumber())+""):e.times(new n(2).pow(t)):new n(NaN)}function Sp(e,t){if(e.isFinite()&&!e.isInteger()||t.isFinite()&&!t.isInteger())throw new Error("Integers expected in function rightArithShift");var n=e.constructor;return e.isNaN()||t.isNaN()||t.isNegative()&&!t.isZero()?new n(NaN):e.isZero()||t.isZero()?e:t.isFinite()?t.lt(55)?e.div(Math.pow(2,t.toNumber())+"").floor():e.div(new n(2).pow(t)).floor():e.isNegative()?new n(-1):e.isFinite()?new n(0):new n(NaN)}var Np="number",kp="number, number";function Ep(e,t){if(!Y(e)||!Y(t))throw new Error("Integers expected in function bitAnd");return e&t}function Mp(e){if(!Y(e))throw new Error("Integer expected in function bitNot");return~e}function Op(e,t){if(!Y(e)||!Y(t))throw new Error("Integers expected in function bitOr");return e|t}function Dp(e,t){if(!Y(e)||!Y(t))throw new Error("Integers expected in function bitXor");return e^t}function Tp(e,t){if(!Y(e)||!Y(t))throw new Error("Integers expected in function leftShift");return e<<t}function Ap(e,t){if(!Y(e)||!Y(t))throw new Error("Integers expected in function rightArithShift");return e>>t}function Ip(e,t){if(!Y(e)||!Y(t))throw new Error("Integers expected in function rightLogShift");return e>>>t}Ep.signature=kp,Mp.signature=Np,Op.signature=kp,Dp.signature=kp,Tp.signature=kp,Ap.signature=kp,Ip.signature=kp;var $p="bitNot",Pp=["typed"],jp=Le($p,Pp,(e=>{var{typed:t}=e;return t($p,{number:Mp,BigNumber:yp,"Array | Matrix":function(e){return Qn(e,this)}})})),Fp="boolean",Bp=["typed"],Lp=Le(Fp,Bp,(e=>{var{typed:t}=e;return t(Fp,{"":function(){return!1},boolean:function(e){return e},number:function(e){return!!e},null:function(e){return!1},BigNumber:function(e){return!e.isZero()},string:function(e){var t=e.toLowerCase();if("true"===t)return!0;if("false"===t)return!1;var n=Number(e);if(""!==e&&!isNaN(n))return!!n;throw new Error('Cannot convert "'+e+'" to a boolean')},"Array | Matrix":function(e){return Qn(e,this)}})})),zp="clone",Rp=["typed"],Vp=Le(zp,Rp,(e=>{var{typed:t}=e;return t(zp,{any:Ae})}));function qp(e,t){if(t<e)return 1;if(t===e)return t;var n=t+e>>1;return qp(e,n)*qp(n+1,t)}function Hp(e,t){if(!Y(e)||e<0)throw new TypeError("Positive integer value expected in function combinations");if(!Y(t)||t<0)throw new TypeError("Positive integer value expected in function combinations");if(t>e)throw new TypeError("k must be less than or equal to n");for(var n=e-t,r=1,i=t<n?n+1:t+1,a=2,o=t<n?t:n,s=i;s<=e;++s){r*=s;while(a<=o&&r%a===0)r/=a,++a}return a<=o&&(r/=qp(a,o)),r}Hp.signature="number, number";var Up="combinations",Wp=["typed"],Yp=Le(Up,Wp,(e=>{var{typed:t}=e;return t(Up,{"number, number":Hp,"BigNumber, BigNumber":function(e,t){var n,r,i=e.constructor,a=e.minus(t),o=new i(1);if(!Gp(e)||!Gp(t))throw new TypeError("Positive integer value expected in function combinations");if(t.gt(e))throw new TypeError("k must be less than n in function combinations");if(n=o,t.lt(a))for(r=o;r.lte(a);r=r.plus(o))n=n.times(t.plus(r)).dividedBy(r);else for(r=o;r.lte(t);r=r.plus(o))n=n.times(a.plus(r)).dividedBy(r);return n}})}));function Gp(e){return e.isInteger()&&e.gte(0)}var Kp="complex",Xp=["typed","Complex"],Zp=Le(Kp,Xp,(e=>{var{typed:t,Complex:n}=e;return t("complex",{"":function(){return n.ZERO},number:function(e){return new n(e,0)},"number, number":function(e,t){return new n(e,t)},"BigNumber, BigNumber":function(e,t){return new n(e.toNumber(),t.toNumber())},Fraction:function(e){return new n(e.valueOf(),0)},Complex:function(e){return e.clone()},string:function(e){return n(e)},null:function(e){return n(0)},Object:function(e){if("re"in e&&"im"in e)return new n(e.re,e.im);if("r"in e&&"phi"in e||"abs"in e&&"arg"in e)return new n(e);throw new Error("Expected object with properties (re and im) or (r and phi) or (abs and arg)")},"Array | Matrix":function(e){return Qn(e,this)}})})),Jp="conj",Qp=["typed"],em=Le(Jp,Qp,(e=>{var{typed:t}=e;return t(Jp,{number:function(e){return e},BigNumber:function(e){return e},Complex:function(e){return e.conjugate()},"Array | Matrix":function(e){return Qn(e,this)}})})),tm="cosh",nm=["typed"],rm=Le(tm,nm,(e=>{var{typed:t}=e;return t(tm,{number:me,Complex:function(e){return e.cosh()},BigNumber:function(e){return e.cosh()},Unit:function(e){if(!e.hasBase(e.constructor.BASE_UNITS.ANGLE))throw new TypeError("Unit in function cosh is no angle");return this(e.value)},"Array | Matrix":function(e){return Qn(e,this)}})})),im="coth",am=["typed","BigNumber"],om=Le(im,am,(e=>{var{typed:t,BigNumber:n}=e;return t(im,{number:Pf,Complex:function(e){return e.coth()},BigNumber:function(e){return new n(1).div(e.tanh())},Unit:function(e){if(!e.hasBase(e.constructor.BASE_UNITS.ANGLE))throw new TypeError("Unit in function coth is no angle");return this(e.value)},"Array | Matrix":function(e){return Qn(e,this)}})})),sm="csc",lm=["typed","BigNumber"],um=Le(sm,lm,(e=>{var{typed:t,BigNumber:n}=e;return t(sm,{number:jf,Complex:function(e){return e.csc()},BigNumber:function(e){return new n(1).div(e.sin())},Unit:function(e){if(!e.hasBase(e.constructor.BASE_UNITS.ANGLE))throw new TypeError("Unit in function csc is no angle");return this(e.value)},"Array | Matrix":function(e){return Qn(e,this)}})})),cm="cube",dm=["typed"],hm=Le(cm,dm,(e=>{var{typed:t}=e;return t(cm,{number:qh,Complex:function(e){return e.mul(e).mul(e)},BigNumber:function(e){return e.times(e).times(e)},Fraction:function(e){return e.pow(3)},"Array | Matrix":function(e){return Qn(e,this,!0)},Unit:function(e){return e.pow(3)}})}));function fm(e,t,n){if(null===n||void 0===n)return e.eq(t);if(e.eq(t))return!0;if(e.isNaN()||t.isNaN())return!1;if(e.isFinite()&&t.isFinite()){var r=e.minus(t).abs();if(r.isZero())return!0;var i=e.constructor.max(e.abs(),t.abs());return r.lte(i.times(n))}return!1}function pm(e,t,n){return de(e.re,t.re,n)&&de(e.im,t.im,n)}var mm="equalScalar",vm=["typed","config"],gm=Le(mm,vm,(e=>{var{typed:t,config:n}=e;return t(mm,{"boolean, boolean":function(e,t){return e===t},"number, number":function(e,t){return de(e,t,n.epsilon)},"BigNumber, BigNumber":function(e,t){return e.eq(t)||fm(e,t,n.epsilon)},"Fraction, Fraction":function(e,t){return e.equals(t)},"Complex, Complex":function(e,t){return pm(e,t,n.epsilon)},"Unit, Unit":function(e,t){if(!e.equalBase(t))throw new Error("Cannot compare units with different base");return this(e.value,t.value)}})})),ym=(Le(mm,["typed","config"],(e=>{var{typed:t,config:n}=e;return t(mm,{"number, number":function(e,t){return de(e,t,n.epsilon)}})})),"erf"),bm=["typed"],xm=Le(ym,bm,(e=>{var{typed:t}=e;return t("name",{number:function(e){var t=Math.abs(e);return t>=Nm?G(e):t<=wm?G(e)*n(t):t<=4?G(e)*(1-r(t)):G(e)*(1-i(t))},"Array | Matrix":function(e){return Qn(e,this)}});function n(e){var t,n=e*e,r=Cm[0][4]*n,i=n;for(t=0;t<3;t+=1)r=(r+Cm[0][t])*n,i=(i+Sm[0][t])*n;return e*(r+Cm[0][3])/(i+Sm[0][3])}function r(e){var t,n=Cm[1][8]*e,r=e;for(t=0;t<7;t+=1)n=(n+Cm[1][t])*e,r=(r+Sm[1][t])*e;var i=(n+Cm[1][7])/(r+Sm[1][7]),a=parseInt(16*e)/16,o=(e-a)*(e+a);return Math.exp(-a*a)*Math.exp(-o)*i}function i(e){var t,n=1/(e*e),r=Cm[2][5]*n,i=n;for(t=0;t<4;t+=1)r=(r+Cm[2][t])*n,i=(i+Sm[2][t])*n;var a=n*(r+Cm[2][4])/(i+Sm[2][4]);a=(_m-a)/e,n=parseInt(16*e)/16;var o=(e-n)*(e+n);return Math.exp(-n*n)*Math.exp(-o)*a}})),wm=.46875,_m=.5641895835477563,Cm=[[3.1611237438705655,113.86415415105016,377.485237685302,3209.3775891384694,.18577770618460315],[.5641884969886701,8.883149794388377,66.11919063714163,298.6351381974001,881.952221241769,1712.0476126340707,2051.0783778260716,1230.3393547979972,2.1531153547440383e-8],[.30532663496123236,.36034489994980445,.12578172611122926,.016083785148742275,.0006587491615298378,.016315387137302097]],Sm=[[23.601290952344122,244.02463793444417,1282.6165260773723,2844.236833439171],[15.744926110709835,117.6939508913125,537.1811018620099,1621.3895745666903,3290.7992357334597,4362.619090143247,3439.3676741437216,1230.3393548037495],[2.568520192289822,1.8729528499234604,.5279051029514285,.06051834131244132,.0023352049762686918]],Nm=Math.pow(2,53),km="exp",Em=["typed"],Mm=Le(km,Em,(e=>{var{typed:t}=e;return t(km,{number:Hh,Complex:function(e){return e.exp()},BigNumber:function(e){return e.exp()},"Array | Matrix":function(e){return Qn(e,this)}})})),Om="expm1",Dm=["typed","Complex"],Tm=Le(Om,Dm,(e=>{var{typed:t,Complex:n}=e;return t(Om,{number:Uh,Complex:function(e){var t=Math.exp(e.re);return new n(t*Math.cos(e.im)-1,t*Math.sin(e.im))},BigNumber:function(e){return e.exp().minus(1)},"Array | Matrix":function(e){return Qn(e,this)}})})),Am="filter",Im=["typed"],$m=Le(Am,Im,(e=>{var{typed:t}=e;return t("filter",{"Array, function":Pm,"Matrix, function":function(e,t){return e.create(Pm(e.toArray(),t))},"Array, RegExp":$t,"Matrix, RegExp":function(e,t){return e.create($t(e.toArray(),t))}})}));function Pm(e,t){var n=Sl(t);return It(e,(function(e,r,i){return 1===n?t(e):2===n?t(e,[r]):t(e,[r],i)}))}var jm="forEach",Fm=["typed"],Bm=Le(jm,Fm,(e=>{var{typed:t}=e;return t(jm,{"Array, function":Lm,"Matrix, function":function(e,t){return e.forEach(t)}})}));function Lm(e,t){var n=Sl(t),r=function r(i,a){Array.isArray(i)?At(i,(function(e,t){r(e,a.concat(t))})):1===n?t(i):2===n?t(i,a):t(i,a,e)};r(e,[])}var zm="format",Rm=["typed"],Vm=Le(zm,Rm,(e=>{var{typed:t}=e;return t(zm,{any:Ne,"any, Object | function | number":Ne})})),qm="getMatrixDataType",Hm=["typed"],Um=Le(qm,Hm,(e=>{var{typed:t}=e;return t(qm,{Array:function(e){return Bt(e,W)},Matrix:function(e){return e.getDataType()}})})),Wm="hex",Ym=["typed","format"],Gm=Le(Wm,Ym,(e=>{var{typed:t,format:n}=e;return t(Wm,{"number | BigNumber":function(e){return n(e,{notation:"hex"})},"number | BigNumber, number":function(e,t){return n(e,{notation:"hex",wordSize:t})}})})),Km="im",Xm=["typed"],Zm=Le(Km,Xm,(e=>{var{typed:t}=e;return t(Km,{number:function(e){return 0},BigNumber:function(e){return e.mul(0)},Fraction:function(e){return e.mul(0)},Complex:function(e){return e.im},"Array | Matrix":function(e){return Qn(e,this)}})})),Jm="isInteger",Qm=["typed"],ev=Le(Jm,Qm,(e=>{var{typed:t}=e;return t(Jm,{number:Y,BigNumber:function(e){return e.isInt()},Fraction:function(e){return 1===e.d&&isFinite(e.n)},"Array | Matrix":function(e){return Qn(e,this)}})})),tv="number";function nv(e){return Y(e)}function rv(e){return e<0}function iv(e){return e>0}function av(e){return 0===e}function ov(e){return Number.isNaN(e)}nv.signature=tv,rv.signature=tv,iv.signature=tv,av.signature=tv,ov.signature=tv;var sv="isNegative",lv=["typed"],uv=Le(sv,lv,(e=>{var{typed:t}=e;return t(sv,{number:rv,BigNumber:function(e){return e.isNeg()&&!e.isZero()&&!e.isNaN()},Fraction:function(e){return e.s<0},Unit:function(e){return this(e.value)},"Array | Matrix":function(e){return Qn(e,this)}})})),cv="isPositive",dv=["typed"],hv=Le(cv,dv,(e=>{var{typed:t}=e;return t(cv,{number:iv,BigNumber:function(e){return!e.isNeg()&&!e.isZero()&&!e.isNaN()},Fraction:function(e){return e.s>0&&e.n>0},Unit:function(e){return this(e.value)},"Array | Matrix":function(e){return Qn(e,this)}})})),fv="isZero",pv=["typed"],mv=Le(fv,pv,(e=>{var{typed:t}=e;return t(fv,{number:av,BigNumber:function(e){return e.isZero()},Complex:function(e){return 0===e.re&&0===e.im},Fraction:function(e){return 1===e.d&&0===e.n},Unit:function(e){return this(e.value)},"Array | Matrix":function(e){return Qn(e,this)}})}));function vv(e){var t;if(Y(e))return e<=0?isFinite(e)?1/0:NaN:e>171?1/0:qp(1,e-1);if(e<.5)return Math.PI/(Math.sin(Math.PI*e)*vv(1-e));if(e>=171.35)return 1/0;if(e>85){var n=e*e,r=n*e,i=r*e,a=i*e;return Math.sqrt(2*Math.PI/e)*Math.pow(e/Math.E,e)*(1+1/(12*e)+1/(288*n)-139/(51840*r)-571/(2488320*i)+163879/(209018880*a)+5246819/(75246796800*a*e))}--e,t=yv[0];for(var o=1;o<yv.length;++o)t+=yv[o]/(e+o);var s=e+gv+.5;return Math.sqrt(2*Math.PI)*Math.pow(s,e+.5)*Math.exp(-s)*t}vv.signature="number";var gv=4.7421875,yv=[.9999999999999971,57.15623566586292,-59.59796035547549,14.136097974741746,-.4919138160976202,3399464998481189e-20,4652362892704858e-20,-9837447530487956e-20,.0001580887032249125,-.00021026444172410488,.00021743961811521265,-.0001643181065367639,8441822398385275e-20,-26190838401581408e-21,36899182659531625e-22],bv=.9189385332046728,xv=5,wv=7,_v=[1.000000000190015,76.18009172947146,-86.50532032941678,24.01409824083091,-1.231739572450155,.001208650973866179,-5395239384953e-18];function Cv(e){if(e<0)return NaN;if(0===e)return 1/0;if(!isFinite(e))return e;if(e<.5)return Math.log(Math.PI/Math.sin(Math.PI*e))-Cv(1-e);e-=1;for(var t=e+xv+.5,n=_v[0],r=wv-1;r>=1;r--)n+=_v[r]/(e+r);return bv+(e+.5)*Math.log(t)-t+Math.log(n)}Cv.signature="number";var Sv="lgamma",Nv=["Complex","typed"],kv=Le(Sv,Nv,(e=>{var{Complex:t,typed:n}=e,r=7,i=7,a=[-.029550653594771242,.00641025641025641,-.0019175269175269176,.0008417508417508417,-.0005952380952380953,.0007936507936507937,-.002777777777777778,.08333333333333333];return n(Sv,{number:Cv,Complex:function(e){var n=6.283185307179586,a=1.1447298858494002,l=.1;if(e.isNaN())return new t(NaN,NaN);if(0===e.im)return new t(Cv(e.re),0);if(e.re>=r||Math.abs(e.im)>=i)return o(e);if(e.re<=l){var u=ye(n,e.im)*Math.floor(.5*e.re+.25),c=e.mul(Math.PI).sin().log(),d=this(new t(1-e.re,-e.im));return new t(a,u).sub(c).sub(d)}return e.im>=0?s(e):s(e.conjugate()).conjugate()},BigNumber:function(){throw new Error("mathjs doesn't yet provide an implementation of the algorithm lgamma for BigNumber")}});function o(e){for(var n=e.sub(.5).mul(e.log()).sub(e).add(bv),r=new t(1,0).div(e),i=r.div(e),o=a[0],s=a[1],l=2*i.re,u=i.re*i.re+i.im*i.im,c=2;c<8;c++){var d=s;s=-u*o+a[c],o=l*o+d}var h=r.mul(i.mul(o).add(s));return n.add(h)}function s(e){var n=0,i=0,a=e;e=e.add(1);while(e.re<=r){a=a.mul(e);var s=a.im<0?1:0;0!==s&&0===i&&n++,i=s,e=e.add(1)}return o(e).sub(a.log()).sub(new t(0,2*n*Math.PI*1))}})),Ev="log10",Mv=["typed","config","Complex"],Ov=Le(Ev,Mv,(e=>{var{typed:t,config:n,Complex:r}=e;return t(Ev,{number:function(e){return e>=0||n.predictable?Kh(e):new r(e,0).log().div(Math.LN10)},Complex:function(e){return new r(e).log().div(Math.LN10)},BigNumber:function(e){return!e.isNegative()||n.predictable?e.log():new r(e.toNumber(),0).log().div(Math.LN10)},"Array | Matrix":function(e){return Qn(e,this)}})})),Dv="log2",Tv=["typed","config","Complex"],Av=Le(Dv,Tv,(e=>{var{typed:t,config:n,Complex:r}=e;return t(Dv,{number:function(e){return e>=0||n.predictable?Xh(e):i(new r(e,0))},Complex:i,BigNumber:function(e){return!e.isNegative()||n.predictable?e.log(2):i(new r(e.toNumber(),0))},"Array | Matrix":function(e){return Qn(e,this)}});function i(e){var t=Math.sqrt(e.re*e.re+e.im*e.im);return new r(Math.log2?Math.log2(t):Math.log(t)/Math.LN2,Math.atan2(e.im,e.re)/Math.LN2)}})),Iv="map",$v=["typed"],Pv=Le(Iv,$v,(e=>{var{typed:t}=e;return t(Iv,{"Array, function":jv,"Matrix, function":function(e,t){return e.map(t)}})}));function jv(e,t){var n=Sl(t),r=function r(i,a){if(Array.isArray(i))return i.map((function(e,t){return r(e,a.concat(t))}));try{return 1===n?t(i):2===n?t(i,a):t(i,a,e)}catch(l){if(l instanceof TypeError&&"data"in l&&"wrongType"===l.data.category){var o="map attempted to call '".concat(l.data.fn,"(").concat(i),s=JSON.stringify(a);throw 2===n?o+=","+s:1!==n&&(o+=",".concat(s,",").concat(e)),o+=")' but argument ".concat(l.data.index+1," of type "),o+="".concat(l.data.actual," does not match expected type "),o+=l.data.expected.join(" or "),new TypeError(o)}throw l}};return r(e,[])}var Fv="multiplyScalar",Bv=["typed"],Lv=Le(Fv,Bv,(e=>{var{typed:t}=e;return t("multiplyScalar",{"number, number":Bh,"Complex, Complex":function(e,t){return e.mul(t)},"BigNumber, BigNumber":function(e,t){return e.times(t)},"Fraction, Fraction":function(e,t){return e.mul(t)},"number | Fraction | BigNumber | Complex, Unit":function(e,t){var n=t.clone();return n.value=null===n.value?n._normalize(e):this(n.value,e),n},"Unit, number | Fraction | BigNumber | Complex":function(e,t){var n=e.clone();return n.value=null===n.value?n._normalize(t):this(n.value,t),n},"Unit, Unit":function(e,t){return e.multiply(t)}})})),zv="number",Rv="number, number";function Vv(e){return!e}function qv(e,t){return!(!e&&!t)}function Hv(e,t){return!!e!==!!t}function Uv(e,t){return!(!e||!t)}Vv.signature=zv,qv.signature=Rv,Hv.signature=Rv,Uv.signature=Rv;var Wv="not",Yv=["typed"],Gv=Le(Wv,Yv,(e=>{var{typed:t}=e;return t(Wv,{number:Vv,Complex:function(e){return 0===e.re&&0===e.im},BigNumber:function(e){return e.isZero()||e.isNaN()},Unit:function(e){return null===e.value||this(e.value)},"Array | Matrix":function(e){return Qn(e,this)}})})),Kv="number",Xv=["typed"];function Zv(e){var t=e.match(/(0[box])([0-9a-fA-F]*)\.([0-9a-fA-F]*)/);if(t){var n={"0b":2,"0o":8,"0x":16}[t[1]],r=t[2],i=t[3];return{input:e,radix:n,integerPart:r,fractionalPart:i}}return null}function Jv(e){for(var t=parseInt(e.integerPart,e.radix),n=0,r=0;r<e.fractionalPart.length;r++){var i=parseInt(e.fractionalPart[r],e.radix);n+=i/Math.pow(e.radix,r+1)}var a=t+n;if(isNaN(a))throw new SyntaxError('String "'+e.input+'" is no valid number');return a}var Qv=Le(Kv,Xv,(e=>{var{typed:t}=e,n=t("number",{"":function(){return 0},number:function(e){return e},string:function(e){if("NaN"===e)return NaN;var t=Zv(e);if(t)return Jv(t);var n=0,r=e.match(/(0[box][0-9a-fA-F]*)i([0-9]*)/);r&&(n=Number(r[2]),e=r[1]);var i=Number(e);if(isNaN(i))throw new SyntaxError('String "'+e+'" is no valid number');if(r){if(i>2**n-1)throw new SyntaxError('String "'.concat(e,'" is out of range'));i>=2**(n-1)&&(i-=2**n)}return i},BigNumber:function(e){return e.toNumber()},Fraction:function(e){return e.valueOf()},Unit:function(e){throw new Error("Second argument with valueless unit expected")},null:function(e){return 0},"Unit, string | Unit":function(e,t){return e.toNumber(t)},"Array | Matrix":function(e){return Qn(e,this)}});return n.fromJSON=function(e){return parseFloat(e.value)},n})),eg="oct",tg=["typed","format"],ng=Le(eg,tg,(e=>{var{typed:t,format:n}=e;return t(eg,{"number | BigNumber":function(e){return n(e,{notation:"oct"})},"number | BigNumber, number":function(e,t){return n(e,{notation:"oct",wordSize:t})}})})),rg=n(6377),ig=rg(Date.now());function ag(e){var t;function n(e){t=null===e?ig:rg(String(e))}function r(){return t()}return n(e),r}var og="pickRandom",sg=["typed","config","?on"],lg=Le(og,sg,(e=>{var{typed:t,config:n,on:r}=e,i=ag(n.randomSeed);return r&&r("config",(function(e,t){e.randomSeed!==t.randomSeed&&(i=ag(e.randomSeed))})),t(og,{"Array | Matrix":function(e){return a(e,{})},"Array | Matrix, Object":function(e,t){return a(e,t)},"Array | Matrix, number":function(e,t){return a(e,{number:t})},"Array | Matrix, Array | Matrix":function(e,t){return a(e,{weights:t})},"Array | Matrix, Array | Matrix, number":function(e,t,n){return a(e,{number:n,weights:t})},"Array | Matrix, number, Array | Matrix":function(e,t,n){return a(e,{number:t,weights:n})}});function a(e,t){var{number:n,weights:r,elementWise:a=!0}=t,o="undefined"===typeof n;o&&(n=1);var s=m(e)?e.create:m(r)?r.create:null;e=e.valueOf(),r&&(r=r.valueOf()),!0===a&&(e=Dt(e),r=Dt(r));var u=0;if("undefined"!==typeof r){if(r.length!==e.length)throw new Error("Weights must have the same length as possibles");for(var c=0,d=r.length;c<d;c++){if(!l(r[c])||r[c]<0)throw new Error("Weights must be an array of positive numbers");u+=r[c]}}var h,f=e.length,p=[];while(p.length<n){if("undefined"===typeof r)h=e[Math.floor(i()*f)];else for(var v=i()*u,g=0,y=e.length;g<y;g++)if(v-=r[g],v<0){h=e[g];break}p.push(h)}return o?p[0]:s?s(p):p}})),ug="print",cg=["typed"],dg=Le(ug,cg,(e=>{var{typed:t}=e;return t(ug,{"string, Object | Array":hg,"string, Object | Array, number | Object":hg})}));function hg(e,t,n){return e.replace(/\$([\w.]+)/g,(function(e,r){var i=r.split("."),a=t[i.shift()];while(i.length&&void 0!==a){var o=i.shift();a=o?a[o]:a+"."}return void 0!==a?f(a)?a:Ne(a,n):e}))}function fg(e,t){var n=[];if(e=e.slice(0),e.length>1)for(var r=0,i=e.shift();r<i;r++)n.push(fg(e,t));else for(var a=0,o=e.shift();a<o;a++)n.push(t());return n}var pg="random",mg=["typed","config","?on"],vg=Le(pg,mg,(e=>{var{typed:t,config:n,on:r}=e,i=ag(n.randomSeed);return r&&r("config",(function(e,t){e.randomSeed!==t.randomSeed&&(i=ag(e.randomSeed))})),t(pg,{"":()=>o(0,1),number:e=>o(0,e),"number, number":(e,t)=>o(e,t),"Array | Matrix":e=>a(e,0,1),"Array | Matrix, number":(e,t)=>a(e,0,t),"Array | Matrix, number, number":(e,t,n)=>a(e,t,n)});function a(e,t,n){var r=fg(e.valueOf(),(()=>o(t,n)));return m(e)?e.create(r):r}function o(e,t){return e+i()*(t-e)}})),gg="re",yg=["typed"],bg=Le(gg,yg,(e=>{var{typed:t}=e;return t(gg,{number:function(e){return e},BigNumber:function(e){return e},Fraction:function(e){return e},Complex:function(e){return e.re},"Array | Matrix":function(e){return Qn(e,this)}})})),xg="sec",wg=["typed","BigNumber"],_g=Le(xg,wg,(e=>{var{typed:t,BigNumber:n}=e;return t(xg,{number:Bf,Complex:function(e){return e.sec()},BigNumber:function(e){return new n(1).div(e.cos())},Unit:function(e){if(!e.hasBase(e.constructor.BASE_UNITS.ANGLE))throw new TypeError("Unit in function sec is no angle");return this(e.value)},"Array | Matrix":function(e){return Qn(e,this)}})})),Cg="sign",Sg=["typed","BigNumber","Fraction","complex"],Ng=Le(Cg,Sg,(e=>{var{typed:t,BigNumber:n,complex:r,Fraction:i}=e;return t(Cg,{number:ef,Complex:function(e){return 0===e.im?r(ef(e.re)):e.sign()},BigNumber:function(e){return new n(e.cmp(0))},Fraction:function(e){return new i(e.s,1)},"Array | Matrix":function(e){return Qn(e,this,!0)},Unit:function(e){if(!e._isDerived()&&0!==e.units[0].unit.offset)throw new TypeError("sign is ambiguous for units with offset");return this(e.value)}})})),kg="sin",Eg=["typed"],Mg=Le(kg,Eg,(e=>{var{typed:t}=e;return t(kg,{number:Math.sin,Complex:function(e){return e.sin()},BigNumber:function(e){return e.sin()},Unit:function(e){if(!e.hasBase(e.constructor.BASE_UNITS.ANGLE))throw new TypeError("Unit in function sin is no angle");return this(e.value)},"Array | Matrix":function(e){return Qn(e,this,!0)}})})),Og="SparseMatrix",Dg=["typed","equalScalar","Matrix"],Tg=Le(Og,Dg,(e=>{var{typed:t,equalScalar:n,Matrix:r}=e;function i(e,t){if(!(this instanceof i))throw new SyntaxError("Constructor must be called with the new operator");if(t&&!f(t))throw new Error("Invalid datatype: "+t);if(m(e))a(this,e,t);else if(e&&p(e.index)&&p(e.ptr)&&p(e.size))this._values=e.values,this._index=e.index,this._ptr=e.ptr,this._size=e.size,this._datatype=t||e.datatype;else if(p(e))o(this,e,t);else{if(e)throw new TypeError("Unsupported type of data ("+W(e)+")");this._values=[],this._index=[],this._ptr=[0],this._size=[0,0],this._datatype=t}}function a(e,t,n){"SparseMatrix"===t.type?(e._values=t._values?Ae(t._values):void 0,e._index=Ae(t._index),e._ptr=Ae(t._ptr),e._size=Ae(t._size),e._datatype=n||t._datatype):o(e,t.valueOf(),n||t._datatype)}function o(e,r,i){e._values=[],e._index=[],e._ptr=[],e._datatype=i;var a=r.length,o=0,s=n,l=0;if(f(i)&&(s=t.find(n,[i,i])||n,l=t.convert(0,i)),a>0){var u=0;do{e._ptr.push(e._index.length);for(var c=0;c<a;c++){var d=r[c];if(p(d)){if(0===u&&o<d.length&&(o=d.length),u<d.length){var h=d[u];s(h,l)||(e._values.push(h),e._index.push(c))}}else 0===u&&o<1&&(o=1),s(d,l)||(e._values.push(d),e._index.push(c))}u++}while(u<o)}e._ptr.push(e._index.length),e._size=[a,o]}function s(e,t){if(!x(t))throw new TypeError("Invalid index");var n=t.isScalar();if(n)return e.get(t.min());var r,a,o,s,l=t.size();if(l.length!==e._size.length)throw new pt(l.length,e._size.length);var u=t.min(),c=t.max();for(r=0,a=e._size.length;r<a;r++)bt(u[r],e._size[r]),bt(c[r],e._size[r]);var d=e._values,h=e._index,f=e._ptr,p=t.dimension(0),m=t.dimension(1),v=[],g=[];p.forEach((function(e,t){g[e]=t[0],v[e]=!0}));var y=d?[]:void 0,b=[],w=[];return m.forEach((function(e){for(w.push(b.length),o=f[e],s=f[e+1];o<s;o++)r=h[o],!0===v[r]&&(b.push(g[r]),y&&y.push(d[o]))})),w.push(b.length),new i({values:y,index:b,ptr:w,size:l,datatype:e._datatype})}function c(e,t,n,r){if(!t||!0!==t.isIndex)throw new TypeError("Invalid index");var i,a=t.size(),o=t.isScalar();if(m(n)?(i=n.size(),n=n.toArray()):i=vt(n),o){if(0!==i.length)throw new TypeError("Scalar expected");e.set(t.min(),n,r)}else{if(1!==a.length&&2!==a.length)throw new pt(a.length,e._size.length,"<");if(i.length<a.length){var s=0,l=0;while(1===a[s]&&1===i[s])s++;while(1===a[s])l++,s++;n=Mt(n,a.length,l,i)}if(!Pe(a,i))throw new pt(a,i,">");if(1===a.length){var u=t.dimension(0);u.forEach((function(t,i){bt(t),e.set([t,0],n[i[0]],r)}))}else{var c=t.dimension(0),d=t.dimension(1);c.forEach((function(t,i){bt(t),d.forEach((function(a,o){bt(a),e.set([t,a],n[i[0]][o[0]],r)}))}))}}return e}function d(e,t,n,r){if(n-t===0)return n;for(var i=t;i<n;i++)if(r[i]===e)return i;return t}function h(e,t,n,r,i){n.splice(e,1),r.splice(e,1);for(var a=t+1;a<i.length;a++)i[a]--}function g(e,t,n,r,i,a,o){i.splice(e,0,r),a.splice(e,0,t);for(var s=n+1;s<o.length;s++)o[s]++}function y(e,r,i,a){var o=a||0,s=n,l=0;f(e._datatype)&&(s=t.find(n,[e._datatype,e._datatype])||n,l=t.convert(0,e._datatype),o=t.convert(o,e._datatype));var u,c,d,h=!s(o,l),p=e._size[0],m=e._size[1];if(i>m){for(c=m;c<i;c++)if(e._ptr[c]=e._values.length,h)for(u=0;u<p;u++)e._values.push(o),e._index.push(u);e._ptr[i]=e._values.length}else i<m&&(e._ptr.splice(i+1,m-i),e._values.splice(e._ptr[i],e._values.length),e._index.splice(e._ptr[i],e._index.length));if(m=i,r>p){if(h){var v=0;for(c=0;c<m;c++){e._ptr[c]=e._ptr[c]+v,d=e._ptr[c+1]+v;var g=0;for(u=p;u<r;u++,g++)e._values.splice(d+g,0,o),e._index.splice(d+g,0,u),v++}e._ptr[m]=e._values.length}}else if(r<p){var y=0;for(c=0;c<m;c++){e._ptr[c]=e._ptr[c]-y;var b=e._ptr[c],x=e._ptr[c+1]-y;for(d=b;d<x;d++)u=e._index[d],u>r-1&&(e._values.splice(d,1),e._index.splice(d,1),y++)}e._ptr[c]=e._values.length}return e._size[0]=r,e._size[1]=i,e}function b(e,r,a,o,s,l,u){var c=[],d=[],h=[],p=n,m=0;f(e._datatype)&&(p=t.find(n,[e._datatype,e._datatype])||n,m=t.convert(0,e._datatype));for(var v=function(e,t,n){e=l(e,t,n),p(e,m)||(c.push(e),d.push(t))},g=o;g<=s;g++){h.push(c.length);var y=e._ptr[g],b=e._ptr[g+1];if(u)for(var x=y;x<b;x++){var w=e._index[x];w>=r&&w<=a&&v(e._values[x],w-r,g-o)}else{for(var _={},C=y;C<b;C++){var S=e._index[C];_[S]=e._values[C]}for(var N=r;N<=a;N++){var k=N in _?_[N]:0;v(k,N-r,g-o)}}}return h.push(c.length),new i({values:c,index:d,ptr:h,size:[a-r+1,s-o+1]})}function w(e,t,n,r,i){var a,o,s=r[0],l=r[1],u=[];for(a=0;a<s;a++)for(u[a]=[],o=0;o<l;o++)u[a][o]=0;for(o=0;o<l;o++)for(var c=n[o],d=n[o+1],h=c;h<d;h++)a=t[h],u[a][o]=e?i?Ae(e[h]):e[h]:1;return u}return i.prototype=new r,i.prototype.createSparseMatrix=function(e,t){return new i(e,t)},i.prototype.type="SparseMatrix",i.prototype.isSparseMatrix=!0,i.prototype.getDataType=function(){return Bt(this._values,W)},i.prototype.storage=function(){return"sparse"},i.prototype.datatype=function(){return this._datatype},i.prototype.create=function(e,t){return new i(e,t)},i.prototype.density=function(){var e=this._size[0],t=this._size[1];return 0!==e&&0!==t?this._index.length/(e*t):0},i.prototype.subset=function(e,t,n){if(!this._values)throw new Error("Cannot invoke subset on a Pattern only matrix");switch(arguments.length){case 1:return s(this,e);case 2:case 3:return c(this,e,t,n);default:throw new SyntaxError("Wrong number of arguments")}},i.prototype.get=function(e){if(!p(e))throw new TypeError("Array expected");if(e.length!==this._size.length)throw new pt(e.length,this._size.length);if(!this._values)throw new Error("Cannot invoke get on a Pattern only matrix");var t=e[0],n=e[1];bt(t,this._size[0]),bt(n,this._size[1]);var r=d(t,this._ptr[n],this._ptr[n+1],this._index);return r<this._ptr[n+1]&&this._index[r]===t?this._values[r]:0},i.prototype.set=function(e,r,i){if(!p(e))throw new TypeError("Array expected");if(e.length!==this._size.length)throw new pt(e.length,this._size.length);if(!this._values)throw new Error("Cannot invoke set on a Pattern only matrix");var a=e[0],o=e[1],s=this._size[0],l=this._size[1],u=n,c=0;f(this._datatype)&&(u=t.find(n,[this._datatype,this._datatype])||n,c=t.convert(0,this._datatype)),(a>s-1||o>l-1)&&(y(this,Math.max(a+1,s),Math.max(o+1,l),i),s=this._size[0],l=this._size[1]),bt(a,s),bt(o,l);var m=d(a,this._ptr[o],this._ptr[o+1],this._index);return m<this._ptr[o+1]&&this._index[m]===a?u(r,c)?h(m,o,this._values,this._index,this._ptr):this._values[m]=r:g(m,a,o,r,this._values,this._index,this._ptr),this},i.prototype.resize=function(e,t,n){if(!v(e))throw new TypeError("Array or Matrix expected");var r=e.valueOf().map((e=>Array.isArray(e)&&1===e.length?e[0]:e));if(2!==r.length)throw new Error("Only two dimensions matrix are supported");r.forEach((function(e){if(!l(e)||!Y(e)||e<0)throw new TypeError("Invalid size, must contain positive integers (size: "+Ne(r)+")")}));var i=n?this.clone():this;return y(i,r[0],r[1],t)},i.prototype.reshape=function(e,t){if(!p(e))throw new TypeError("Array expected");if(2!==e.length)throw new Error("Sparse matrices can only be reshaped in two dimensions");e.forEach((function(t){if(!l(t)||!Y(t)||t<=-2||0===t)throw new TypeError("Invalid size, must contain positive integers or -1 (size: "+Ne(e)+")")}));var n=this._size[0]*this._size[1];e=Ct(e,n);var r=e[0]*e[1];if(n!==r)throw new Error("Reshaping sparse matrix will result in the wrong number of elements");var i=t?this.clone():this;if(this._size[0]===e[0]&&this._size[1]===e[1])return i;for(var a=[],o=0;o<i._ptr.length;o++)for(var s=0;s<i._ptr[o+1]-i._ptr[o];s++)a.push(o);for(var u=i._values.slice(),c=i._index.slice(),h=0;h<i._index.length;h++){var f=c[h],m=a[h],v=f*i._size[1]+m;a[h]=v%e[1],c[h]=Math.floor(v/e[1])}i._values.length=0,i._index.length=0,i._ptr.length=e[1]+1,i._size=e.slice();for(var y=0;y<i._ptr.length;y++)i._ptr[y]=0;for(var b=0;b<u.length;b++){var x=c[b],w=a[b],_=u[b],C=d(x,i._ptr[w],i._ptr[w+1],i._index);g(C,x,w,_,i._values,i._index,i._ptr)}return i},i.prototype.clone=function(){var e=new i({values:this._values?Ae(this._values):void 0,index:Ae(this._index),ptr:Ae(this._ptr),size:Ae(this._size),datatype:this._datatype});return e},i.prototype.size=function(){return this._size.slice(0)},i.prototype.map=function(e,t){if(!this._values)throw new Error("Cannot invoke map on a Pattern only matrix");var n=this,r=this._size[0],i=this._size[1],a=function(t,r,i){return e(t,[r,i],n)};return b(this,0,r-1,0,i-1,a,t)},i.prototype.forEach=function(e,t){if(!this._values)throw new Error("Cannot invoke forEach on a Pattern only matrix");for(var n=this,r=this._size[0],i=this._size[1],a=0;a<i;a++){var o=this._ptr[a],s=this._ptr[a+1];if(t)for(var l=o;l<s;l++){var u=this._index[l];e(this._values[l],[u,a],n)}else{for(var c={},d=o;d<s;d++){var h=this._index[d];c[h]=this._values[d]}for(var f=0;f<r;f++){var p=f in c?c[f]:0;e(p,[f,a],n)}}}},i.prototype[Symbol.iterator]=function*(){if(!this._values)throw new Error("Cannot iterate a Pattern only matrix");for(var e=this._size[1],t=0;t<e;t++)for(var n=this._ptr[t],r=this._ptr[t+1],i=n;i<r;i++){var a=this._index[i];yield{value:this._values[i],index:[a,t]}}},i.prototype.toArray=function(){return w(this._values,this._index,this._ptr,this._size,!0)},i.prototype.valueOf=function(){return w(this._values,this._index,this._ptr,this._size,!1)},i.prototype.format=function(e){for(var t=this._size[0],n=this._size[1],r=this.density(),i="Sparse Matrix ["+Ne(t,e)+" x "+Ne(n,e)+"] density: "+Ne(r,e)+"\n",a=0;a<n;a++)for(var o=this._ptr[a],s=this._ptr[a+1],l=o;l<s;l++){var u=this._index[l];i+="\n ("+Ne(u,e)+", "+Ne(a,e)+") ==> "+(this._values?Ne(this._values[l],e):"X")}return i},i.prototype.toString=function(){return Ne(this.toArray())},i.prototype.toJSON=function(){return{mathjs:"SparseMatrix",values:this._values,index:this._index,ptr:this._ptr,size:this._size,datatype:this._datatype}},i.prototype.diagonal=function(e){if(e){if(u(e)&&(e=e.toNumber()),!l(e)||!Y(e))throw new TypeError("The parameter k must be an integer number")}else e=0;var t=e>0?e:0,n=e<0?-e:0,r=this._size[0],a=this._size[1],o=Math.min(r-n,a-t),s=[],c=[],d=[];d[0]=0;for(var h=t;h<a&&s.length<o;h++)for(var f=this._ptr[h],p=this._ptr[h+1],m=f;m<p;m++){var v=this._index[m];if(v===h-t+n){s.push(this._values[m]),c[s.length-1]=v-n;break}}return d.push(s.length),new i({values:s,index:c,ptr:d,size:[o,1]})},i.fromJSON=function(e){return new i(e)},i.diagonal=function(e,r,a,o,s){if(!p(e))throw new TypeError("Array expected, size parameter");if(2!==e.length)throw new Error("Only two dimensions matrix are supported");if(e=e.map((function(e){if(u(e)&&(e=e.toNumber()),!l(e)||!Y(e)||e<1)throw new Error("Size values must be positive integers");return e})),a){if(u(a)&&(a=a.toNumber()),!l(a)||!Y(a))throw new TypeError("The parameter k must be an integer number")}else a=0;var c=n,d=0;f(s)&&(c=t.find(n,[s,s])||n,d=t.convert(0,s));var h,v=a>0?a:0,g=a<0?-a:0,y=e[0],b=e[1],x=Math.min(y-g,b-v);if(p(r)){if(r.length!==x)throw new Error("Invalid value array length");h=function(e){return r[e]}}else if(m(r)){var w=r.size();if(1!==w.length||w[0]!==x)throw new Error("Invalid matrix length");h=function(e){return r.get([e])}}else h=function(){return r};for(var _=[],C=[],S=[],N=0;N<b;N++){S.push(_.length);var k=N-v;if(k>=0&&k<x){var E=h(k);c(E,d)||(C.push(k+g),_.push(E))}}return S.push(_.length),new i({values:_,index:C,ptr:S,size:[y,b]})},i.prototype.swapRows=function(e,t){if(!l(e)||!Y(e)||!l(t)||!Y(t))throw new Error("Row index must be positive integers");if(2!==this._size.length)throw new Error("Only two dimensional matrix is supported");return bt(e,this._size[0]),bt(t,this._size[0]),i._swapRows(e,t,this._size[1],this._values,this._index,this._ptr),this},i._forEachRow=function(e,t,n,r,i){for(var a=r[e],o=r[e+1],s=a;s<o;s++)i(n[s],t[s])},i._swapRows=function(e,t,n,r,i,a){for(var o=0;o<n;o++){var s=a[o],l=a[o+1],u=d(e,s,l,i),c=d(t,s,l,i);if(u<l&&c<l&&i[u]===e&&i[c]===t){if(r){var h=r[u];r[u]=r[c],r[c]=h}}else if(u<l&&i[u]===e&&(c>=l||i[c]!==t)){var f=r?r[u]:void 0;i.splice(c,0,t),r&&r.splice(c,0,f),i.splice(c<=u?u+1:u,1),r&&r.splice(c<=u?u+1:u,1)}else if(c<l&&i[c]===t&&(u>=l||i[u]!==e)){var p=r?r[c]:void 0;i.splice(u,0,e),r&&r.splice(u,0,p),i.splice(u<=c?c+1:c,1),r&&r.splice(u<=c?c+1:c,1)}}},i}),{isClass:!0}),Ag="splitUnit",Ig=["typed"],$g=Le(Ag,Ig,(e=>{var{typed:t}=e;return t(Ag,{"Unit, Array":function(e,t){return e.splitUnit(t)}})})),Pg="square",jg=["typed"],Fg=Le(Pg,jg,(e=>{var{typed:t}=e;return t(Pg,{number:nf,Complex:function(e){return e.mul(e)},BigNumber:function(e){return e.times(e)},Fraction:function(e){return e.mul(e)},"Array | Matrix":function(e){return Qn(e,this,!0)},Unit:function(e){return e.pow(2)}})})),Bg="string",Lg=["typed"],zg=Le(Bg,Lg,(e=>{var{typed:t}=e;return t(Bg,{"":function(){return""},number:te,null:function(e){return"null"},boolean:function(e){return e+""},string:function(e){return e},"Array | Matrix":function(e){return Qn(e,this)},any:function(e){return String(e)}})})),Rg="tan",Vg=["typed"],qg=Le(Rg,Vg,(e=>{var{typed:t}=e;return t(Rg,{number:Math.tan,Complex:function(e){return e.tan()},BigNumber:function(e){return e.tan()},Unit:function(e){if(!e.hasBase(e.constructor.BASE_UNITS.ANGLE))throw new TypeError("Unit in function tan is no angle");return this(e.value)},"Array | Matrix":function(e){return Qn(e,this,!0)}})})),Hg="typeOf",Ug=["typed"],Wg=Le(Hg,Ug,(e=>{var{typed:t}=e;return t(Hg,{any:W})})),Yg="acosh",Gg=["typed","config","Complex"],Kg=Le(Yg,Gg,(e=>{var{typed:t,config:n,Complex:r}=e;return t(Yg,{number:function(e){return e>=1||n.predictable?xf(e):e<=-1?new r(Math.log(Math.sqrt(e*e-1)-e),Math.PI):new r(e,0).acosh()},Complex:function(e){return e.acosh()},BigNumber:function(e){return e.acosh()},"Array | Matrix":function(e){return Qn(e,this)}})})),Xg="acsch",Zg=["typed","BigNumber"],Jg=Le(Xg,Zg,(e=>{var{typed:t,BigNumber:n}=e;return t(Xg,{number:Sf,Complex:function(e){return e.acsch()},BigNumber:function(e){return new n(1).div(e).asinh()},"Array | Matrix":function(e){return Qn(e,this)}})})),Qg="asec",ey=["typed","config","Complex","BigNumber"],ty=Le(Qg,ey,(e=>{var{typed:t,config:n,Complex:r,BigNumber:i}=e;return t(Qg,{number:function(e){return e<=-1||e>=1||n.predictable?Nf(e):new r(e,0).asec()},Complex:function(e){return e.asec()},BigNumber:function(e){return new i(1).div(e).acos()},"Array | Matrix":function(e){return Qn(e,this)}})})),ny="bin",ry=["typed","format"],iy=Le(ny,ry,(e=>{var{typed:t,format:n}=e;return t(ny,{"number | BigNumber":function(e){return n(e,{notation:"bin"})},"number | BigNumber, number":function(e,t){return n(e,{notation:"bin",wordSize:t})}})})),ay="combinationsWithRep",oy=["typed"],sy=Le(ay,oy,(e=>{var{typed:t}=e;return t(ay,{"number, number":function(e,t){if(!Y(e)||e<0)throw new TypeError("Positive integer value expected in function combinationsWithRep");if(!Y(t)||t<0)throw new TypeError("Positive integer value expected in function combinationsWithRep");if(e<1)throw new TypeError("k must be less than or equal to n + k - 1");if(t<e-1){var n=qp(e,e+t-1);return n/qp(1,t)}var r=qp(t+1,e+t-1);return r/qp(1,e-1)},"BigNumber, BigNumber":function(e,t){var n,r,i=e.constructor,a=new i(1),o=e.minus(a);if(!ly(e)||!ly(t))throw new TypeError("Positive integer value expected in function combinationsWithRep");if(e.lt(a))throw new TypeError("k must be less than or equal to n + k - 1 in function combinationsWithRep");if(n=a,t.lt(o))for(r=a;r.lte(o);r=r.plus(a))n=n.times(t.plus(r)).dividedBy(r);else for(r=a;r.lte(t);r=r.plus(a))n=n.times(o.plus(r)).dividedBy(r);return n}})}));function ly(e){return e.isInteger()&&e.gte(0)}var uy="cos",cy=["typed"],dy=Le(uy,cy,(e=>{var{typed:t}=e;return t(uy,{number:Math.cos,Complex:function(e){return e.cos()},BigNumber:function(e){return e.cos()},Unit:function(e){if(!e.hasBase(e.constructor.BASE_UNITS.ANGLE))throw new TypeError("Unit in function cos is no angle");return this(e.value)},"Array | Matrix":function(e){return Qn(e,this)}})})),hy="csch",fy=["typed","BigNumber"],py=Le(hy,fy,(e=>{var{typed:t,BigNumber:n}=e;return t(hy,{number:Ff,Complex:function(e){return e.csch()},BigNumber:function(e){return new n(1).div(e.sinh())},Unit:function(e){if(!e.hasBase(e.constructor.BASE_UNITS.ANGLE))throw new TypeError("Unit in function csch is no angle");return this(e.value)},"Array | Matrix":function(e){return Qn(e,this)}})})),my="isNaN",vy=["typed"],gy=Le(my,vy,(e=>{var{typed:t}=e;return t(my,{number:ov,BigNumber:function(e){return e.isNaN()},Fraction:function(e){return!1},Complex:function(e){return e.isNaN()},Unit:function(e){return Number.isNaN(e.value)},"Array | Matrix":function(e){return Qn(e,Number.isNaN)}})})),yy="isPrime",by=["typed"],xy=Le(yy,by,(e=>{var{typed:t}=e;return t(yy,{number:function(e){if(0*e!==0)return!1;if(e<=3)return e>1;if(e%2===0||e%3===0)return!1;for(var t=5;t*t<=e;t+=6)if(e%t===0||e%(t+2)===0)return!1;return!0},BigNumber:function(e){if(0*e.toNumber()!==0)return!1;if(e.lte(3))return e.gt(1);if(e.mod(2).eq(0)||e.mod(3).eq(0))return!1;if(e.lt(Math.pow(2,32))){for(var t=e.toNumber(),n=5;n*n<=t;n+=6)if(t%n===0||t%(n+2)===0)return!1;return!0}function r(e,t,n){var r=1;while(!t.eq(0))t.mod(2).eq(0)?(t=t.div(2),e=e.mul(e).mod(n)):(t=t.sub(1),r=e.mul(r).mod(n));return r}var i=e.constructor.clone({precision:2*e.toFixed(0).length});e=new i(e);var a=0,o=e.sub(1);while(o.mod(2).eq(0))o=o.div(2),a+=1;var s=null;if(e.lt("3317044064679887385961981"))s=[2,3,5,7,11,13,17,19,23,29,31,37,41].filter((t=>t<e));else{var l=Math.min(e.toNumber()-2,Math.floor(2*Math.pow(e.toFixed(0).length*Math.log(10),2)));s=[];for(var u=2;u<=l;u+=1)s.push(l)}for(var c=0;c<s.length;c+=1){var d=s[c],h=r(e.sub(e).add(d),o,e);if(!h.eq(1))for(var f=0,p=h;!p.eq(e.sub(1));f+=1,p=p.mul(p).mod(e))if(f===a-1)return!1}return!0},"Array | Matrix":function(e){return Qn(e,this)}})})),wy="randomInt",_y=["typed","config","?on"],Cy=Le(wy,_y,(e=>{var{typed:t,config:n,on:r}=e,i=ag(n.randomSeed);return r&&r("config",(function(e,t){e.randomSeed!==t.randomSeed&&(i=ag(e.randomSeed))})),t(wy,{"":()=>o(0,1),number:e=>o(0,e),"number, number":(e,t)=>o(e,t),"Array | Matrix":e=>a(e,0,1),"Array | Matrix, number":(e,t)=>a(e,0,t),"Array | Matrix, number, number":(e,t,n)=>a(e,t,n)});function a(e,t,n){var r=fg(e.valueOf(),(()=>o(t,n)));return m(e)?e.create(r):r}function o(e,t){return Math.floor(e+i()*(t-e))}})),Sy="sech",Ny=["typed","BigNumber"],ky=Le(Sy,Ny,(e=>{var{typed:t,BigNumber:n}=e;return t(Sy,{number:Lf,Complex:function(e){return e.sech()},BigNumber:function(e){return new n(1).div(e.cosh())},Unit:function(e){if(!e.hasBase(e.constructor.BASE_UNITS.ANGLE))throw new TypeError("Unit in function sech is no angle");return this(e.value)},"Array | Matrix":function(e){return Qn(e,this)}})})),Ey="sinh",My=["typed"],Oy=Le(Ey,My,(e=>{var{typed:t}=e;return t(Ey,{number:Rf,Complex:function(e){return e.sinh()},BigNumber:function(e){return e.sinh()},Unit:function(e){if(!e.hasBase(e.constructor.BASE_UNITS.ANGLE))throw new TypeError("Unit in function sinh is no angle");return this(e.value)},"Array | Matrix":function(e){return Qn(e,this,!0)}})})),Dy="sparse",Ty=["typed","SparseMatrix"],Ay=Le(Dy,Ty,(e=>{var{typed:t,SparseMatrix:n}=e;return t(Dy,{"":function(){return new n([])},string:function(e){return new n([],e)},"Array | Matrix":function(e){return new n(e)},"Array | Matrix, string":function(e,t){return new n(e,t)}})})),Iy="sqrt",$y=["config","typed","Complex"],Py=Le(Iy,$y,(e=>{var{config:t,typed:n,Complex:r}=e;return n("sqrt",{number:i,Complex:function(e){return e.sqrt()},BigNumber:function(e){return!e.isNegative()||t.predictable?e.sqrt():i(e.toNumber())},"Array | Matrix":function(e){return Qn(e,this,!0)},Unit:function(e){return e.pow(.5)}});function i(e){return isNaN(e)?NaN:e>=0||t.predictable?Math.sqrt(e):new r(e,0).sqrt()}})),jy="tanh",Fy=["typed"],By=Le(jy,Fy,(e=>{var{typed:t}=e;return t("tanh",{number:ge,Complex:function(e){return e.tanh()},BigNumber:function(e){return e.tanh()},Unit:function(e){if(!e.hasBase(e.constructor.BASE_UNITS.ANGLE))throw new TypeError("Unit in function tanh is no angle");return this(e.value)},"Array | Matrix":function(e){return Qn(e,this,!0)}})})),Ly="unaryMinus",zy=["typed"],Ry=Le(Ly,zy,(e=>{var{typed:t}=e;return t(Ly,{number:zh,Complex:function(e){return e.neg()},BigNumber:function(e){return e.neg()},Fraction:function(e){return e.neg()},Unit:function(e){var t=e.clone();return t.value=this(e.value),t},"Array | Matrix":function(e){return Qn(e,this,!0)}})})),Vy="acoth",qy=["typed","config","Complex","BigNumber"],Hy=Le(Vy,qy,(e=>{var{typed:t,config:n,Complex:r,BigNumber:i}=e;return t(Vy,{number:function(e){return e>=1||e<=-1||n.predictable?_f(e):new r(e,0).acoth()},Complex:function(e){return e.acoth()},BigNumber:function(e){return new i(1).div(e).atanh()},"Array | Matrix":function(e){return Qn(e,this)}})})),Uy="cot",Wy=["typed","BigNumber"],Yy=Le(Uy,Wy,(e=>{var{typed:t,BigNumber:n}=e;return t(Uy,{number:$f,Complex:function(e){return e.cot()},BigNumber:function(e){return new n(1).div(e.tan())},Unit:function(e){if(!e.hasBase(e.constructor.BASE_UNITS.ANGLE))throw new TypeError("Unit in function cot is no angle");return this(e.value)},"Array | Matrix":function(e){return Qn(e,this)}})})),Gy="fraction",Ky=["typed","Fraction"],Xy=Le(Gy,Ky,(e=>{var{typed:t,Fraction:n}=e;return t("fraction",{number:function(e){if(!isFinite(e)||isNaN(e))throw new Error(e+" cannot be represented as a fraction");return new n(e)},string:function(e){return new n(e)},"number, number":function(e,t){return new n(e,t)},null:function(e){return new n(0)},BigNumber:function(e){return new n(e.toString())},Fraction:function(e){return e},Object:function(e){return new n(e)},"Array | Matrix":function(e){return Qn(e,this)}})})),Zy="isNumeric",Jy=["typed"],Qy=Le(Zy,Jy,(e=>{var{typed:t}=e;return t(Zy,{"number | BigNumber | Fraction | boolean":function(){return!0},"Complex | Unit | string | null | undefined | Node":function(){return!1},"Array | Matrix":function(e){return Qn(e,this)}})})),eb="matrix",tb=["typed","Matrix","DenseMatrix","SparseMatrix"],nb=Le(eb,tb,(e=>{var{typed:t,Matrix:n,DenseMatrix:r,SparseMatrix:i}=e;return t(eb,{"":function(){return a([])},string:function(e){return a([],e)},"string, string":function(e,t){return a([],e,t)},Array:function(e){return a(e)},Matrix:function(e){return a(e,e.storage())},"Array | Matrix, string":a,"Array | Matrix, string, string":a});function a(e,t,n){if("dense"===t||"default"===t||void 0===t)return new r(e,n);if("sparse"===t)return new i(e,n);throw new TypeError("Unknown matrix type "+JSON.stringify(t)+".")}})),rb="matrixFromFunction",ib=["typed","matrix","isZero"],ab=Le(rb,ib,(e=>{var{typed:t,matrix:n,isZero:r}=e;return t(rb,{"Array | Matrix, function, string, string":function(e,t,n,r){return i(e,t,n,r)},"Array | Matrix, function, string":function(e,t,n){return i(e,t,n)},"Matrix, function":function(e,t){return i(e,t,"dense")},"Array, function":function(e,t){return i(e,t,"dense").toArray()},"Array | Matrix, string, function":function(e,t,n){return i(e,n,t)},"Array | Matrix, string, string, function":function(e,t,n,r){return i(e,r,t,n)}});function i(e,t,i,a){var o;return o=void 0!==a?n(i,a):n(i),o.resize(e),o.forEach((function(e,n){var i=t(n);r(i)||o.set(n,i)})),o}})),ob="algorithm02",sb=["typed","equalScalar"],lb=Le(ob,sb,(e=>{var{typed:t,equalScalar:n}=e;return function(e,r,i,a){var o=e._data,s=e._size,l=e._datatype,u=r._values,c=r._index,d=r._ptr,h=r._size,f=r._datatype;if(s.length!==h.length)throw new pt(s.length,h.length);if(s[0]!==h[0]||s[1]!==h[1])throw new RangeError("Dimension mismatch. Matrix A ("+s+") must match Matrix B ("+h+")");if(!u)throw new Error("Cannot perform operation on Dense Matrix and Pattern Sparse Matrix");var p,m=s[0],v=s[1],g=n,y=0,b=i;"string"===typeof l&&l===f&&(p=l,g=t.find(n,[p,p]),y=t.convert(0,p),b=t.find(i,[p,p]));for(var x=[],w=[],_=[],C=0;C<v;C++){_[C]=w.length;for(var S=d[C],N=d[C+1],k=S;k<N;k++){var E=c[k],M=a?b(u[k],o[E][C]):b(o[E][C],u[k]);g(M,y)||(w.push(E),x.push(M))}}return _[v]=w.length,r.createSparseMatrix({values:x,index:w,ptr:_,size:[m,v],datatype:p})}})),ub="algorithm03",cb=["typed"],db=Le(ub,cb,(e=>{var{typed:t}=e;return function(e,n,r,i){var a=e._data,o=e._size,s=e._datatype,l=n._values,u=n._index,c=n._ptr,d=n._size,h=n._datatype;if(o.length!==d.length)throw new pt(o.length,d.length);if(o[0]!==d[0]||o[1]!==d[1])throw new RangeError("Dimension mismatch. Matrix A ("+o+") must match Matrix B ("+d+")");if(!l)throw new Error("Cannot perform operation on Dense Matrix and Pattern Sparse Matrix");var f,p=o[0],m=o[1],v=0,g=r;"string"===typeof s&&s===h&&(f=s,v=t.convert(0,f),g=t.find(r,[f,f]));for(var y=[],b=0;b<p;b++)y[b]=[];for(var x=[],w=[],_=0;_<m;_++){for(var C=_+1,S=c[_],N=c[_+1],k=S;k<N;k++){var E=u[k];x[E]=i?g(l[k],a[E][_]):g(a[E][_],l[k]),w[E]=C}for(var M=0;M<p;M++)w[M]===C?y[M][_]=x[M]:y[M][_]=i?g(v,a[M][_]):g(a[M][_],v)}return e.createDenseMatrix({data:y,size:[p,m],datatype:f})}})),hb="algorithm05",fb=["typed","equalScalar"],pb=Le(hb,fb,(e=>{var{typed:t,equalScalar:n}=e;return function(e,r,i){var a=e._values,o=e._index,s=e._ptr,l=e._size,u=e._datatype,c=r._values,d=r._index,h=r._ptr,f=r._size,p=r._datatype;if(l.length!==f.length)throw new pt(l.length,f.length);if(l[0]!==f[0]||l[1]!==f[1])throw new RangeError("Dimension mismatch. Matrix A ("+l+") must match Matrix B ("+f+")");var m,v=l[0],g=l[1],y=n,b=0,x=i;"string"===typeof u&&u===p&&(m=u,y=t.find(n,[m,m]),b=t.convert(0,m),x=t.find(i,[m,m]));var w,_,C,S,N=a&&c?[]:void 0,k=[],E=[],M=N?[]:void 0,O=N?[]:void 0,D=[],T=[];for(_=0;_<g;_++){E[_]=k.length;var A=_+1;for(C=s[_],S=s[_+1];C<S;C++)w=o[C],k.push(w),D[w]=A,M&&(M[w]=a[C]);for(C=h[_],S=h[_+1];C<S;C++)w=d[C],D[w]!==A&&k.push(w),T[w]=A,O&&(O[w]=c[C]);if(N){C=E[_];while(C<k.length){w=k[C];var I=D[w],$=T[w];if(I===A||$===A){var P=I===A?M[w]:b,j=$===A?O[w]:b,F=x(P,j);y(F,b)?k.splice(C,1):(N.push(F),C++)}}}}return E[g]=k.length,e.createSparseMatrix({values:N,index:k,ptr:E,size:[v,g],datatype:m})}})),mb="algorithm11",vb=["typed","equalScalar"],gb=Le(mb,vb,(e=>{var{typed:t,equalScalar:n}=e;return function(e,r,i,a){var o=e._values,s=e._index,l=e._ptr,u=e._size,c=e._datatype;if(!o)throw new Error("Cannot perform operation on Pattern Sparse Matrix and Scalar value");var d,h=u[0],f=u[1],p=n,m=0,v=i;"string"===typeof c&&(d=c,p=t.find(n,[d,d]),m=t.convert(0,d),r=t.convert(r,d),v=t.find(i,[d,d]));for(var g=[],y=[],b=[],x=0;x<f;x++){b[x]=y.length;for(var w=l[x],_=l[x+1],C=w;C<_;C++){var S=s[C],N=a?v(r,o[C]):v(o[C],r);p(N,m)||(y.push(S),g.push(N))}}return b[f]=y.length,e.createSparseMatrix({values:g,index:y,ptr:b,size:[h,f],datatype:d})}})),yb="algorithm12",bb=["typed","DenseMatrix"],xb=Le(yb,bb,(e=>{var{typed:t,DenseMatrix:n}=e;return function(e,r,i,a){var o=e._values,s=e._index,l=e._ptr,u=e._size,c=e._datatype;if(!o)throw new Error("Cannot perform operation on Pattern Sparse Matrix and Scalar value");var d,h=u[0],f=u[1],p=i;"string"===typeof c&&(d=c,r=t.convert(r,d),p=t.find(i,[d,d]));for(var m=[],v=[],g=[],y=0;y<f;y++){for(var b=y+1,x=l[y],w=l[y+1],_=x;_<w;_++){var C=s[_];v[C]=o[_],g[C]=b}for(var S=0;S<h;S++)0===y&&(m[S]=[]),g[S]===b?m[S][y]=a?p(r,v[S]):p(v[S],r):m[S][y]=a?p(r,0):p(0,r)}return new n({data:m,size:[h,f],datatype:d})}})),wb="algorithm13",_b=["typed"],Cb=Le(wb,_b,(e=>{var{typed:t}=e;return function(e,r,i){var a,o=e._data,s=e._size,l=e._datatype,u=r._data,c=r._size,d=r._datatype,h=[];if(s.length!==c.length)throw new pt(s.length,c.length);for(var f=0;f<s.length;f++){if(s[f]!==c[f])throw new RangeError("Dimension mismatch. Matrix A ("+s+") must match Matrix B ("+c+")");h[f]=s[f]}var p=i;"string"===typeof l&&l===d&&(a=l,p=t.find(i,[a,a]));var m=h.length>0?n(p,0,h,h[0],o,u):[];return e.createDenseMatrix({data:m,size:h,datatype:a})};function n(e,t,r,i,a,o){var s=[];if(t===r.length-1)for(var l=0;l<i;l++)s[l]=e(a[l],o[l]);else for(var u=0;u<i;u++)s[u]=n(e,t+1,r,r[t+1],a[u],o[u]);return s}})),Sb="algorithm14",Nb=["typed"],kb=Le(Sb,Nb,(e=>{var{typed:t}=e;return function(e,r,i,a){var o,s=e._data,l=e._size,u=e._datatype,c=i;"string"===typeof u&&(o=u,r=t.convert(r,o),c=t.find(i,[o,o]));var d=l.length>0?n(c,0,l,l[0],s,r,a):[];return e.createDenseMatrix({data:d,size:Ae(l),datatype:o})};function n(e,t,r,i,a,o,s){var l=[];if(t===r.length-1)for(var u=0;u<i;u++)l[u]=s?e(o,a[u]):e(a[u],o);else for(var c=0;c<i;c++)l[c]=n(e,t+1,r,r[t+1],a[c],o,s);return l}})),Eb="mod",Mb=["typed","matrix","equalScalar","DenseMatrix"],Ob=Le(Eb,Mb,(e=>{var{typed:t,matrix:n,equalScalar:r,DenseMatrix:i}=e,a=lb({typed:t,equalScalar:r}),o=db({typed:t}),s=pb({typed:t,equalScalar:r}),l=gb({typed:t,equalScalar:r}),u=xb({typed:t,DenseMatrix:i}),c=Cb({typed:t}),d=kb({typed:t});return t(Eb,{"number, number":Jh,"BigNumber, BigNumber":function(e,t){if(t.isNeg())throw new Error("Cannot calculate mod for a negative divisor");return t.isZero()?e:e.mod(t)},"Fraction, Fraction":function(e,t){if(t.compare(0)<0)throw new Error("Cannot calculate mod for a negative divisor");return e.compare(0)>=0?e.mod(t):e.mod(t).add(t).mod(t)},"SparseMatrix, SparseMatrix":function(e,t){return s(e,t,this,!1)},"SparseMatrix, DenseMatrix":function(e,t){return a(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return o(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return c(e,t,this)},"Array, Array":function(e,t){return this(n(e),n(t)).valueOf()},"Array, Matrix":function(e,t){return this(n(e),t)},"Matrix, Array":function(e,t){return this(e,n(t))},"SparseMatrix, any":function(e,t){return l(e,t,this,!1)},"DenseMatrix, any":function(e,t){return d(e,t,this,!1)},"any, SparseMatrix":function(e,t){return u(t,e,this,!0)},"any, DenseMatrix":function(e,t){return d(t,e,this,!0)},"Array, any":function(e,t){return d(n(e),t,this,!1).valueOf()},"any, Array":function(e,t){return d(n(t),e,this,!0).valueOf()}})})),Db="algorithm01",Tb=["typed"],Ab=Le(Db,Tb,(e=>{var{typed:t}=e;return function(e,n,r,i){var a=e._data,o=e._size,s=e._datatype,l=n._values,u=n._index,c=n._ptr,d=n._size,h=n._datatype;if(o.length!==d.length)throw new pt(o.length,d.length);if(o[0]!==d[0]||o[1]!==d[1])throw new RangeError("Dimension mismatch. Matrix A ("+o+") must match Matrix B ("+d+")");if(!l)throw new Error("Cannot perform operation on Dense Matrix and Pattern Sparse Matrix");var f,p,m=o[0],v=o[1],g="string"===typeof s&&s===h?s:void 0,y=g?t.find(r,[g,g]):r,b=[];for(f=0;f<m;f++)b[f]=[];var x=[],w=[];for(p=0;p<v;p++){for(var _=p+1,C=c[p],S=c[p+1],N=C;N<S;N++)f=u[N],x[f]=i?y(l[N],a[f][p]):y(a[f][p],l[N]),w[f]=_;for(f=0;f<m;f++)w[f]===_?b[f][p]=x[f]:b[f][p]=a[f][p]}return e.createDenseMatrix({data:b,size:[m,v],datatype:g})}})),Ib="algorithm06",$b=["typed","equalScalar"],Pb=Le(Ib,$b,(e=>{var{typed:t,equalScalar:n}=e;return function(e,r,i){var a=e._values,o=e._size,s=e._datatype,l=r._values,u=r._size,c=r._datatype;if(o.length!==u.length)throw new pt(o.length,u.length);if(o[0]!==u[0]||o[1]!==u[1])throw new RangeError("Dimension mismatch. Matrix A ("+o+") must match Matrix B ("+u+")");var d,h=o[0],f=o[1],p=n,m=0,v=i;"string"===typeof s&&s===c&&(d=s,p=t.find(n,[d,d]),m=t.convert(0,d),v=t.find(i,[d,d]));for(var g=a&&l?[]:void 0,y=[],b=[],x=g?[]:void 0,w=[],_=[],C=0;C<f;C++){b[C]=y.length;var S=C+1;if(nr(e,C,w,x,_,S,y,v),nr(r,C,w,x,_,S,y,v),x){var N=b[C];while(N<y.length){var k=y[N];if(_[k]===S){var E=x[k];p(E,m)?y.splice(N,1):(g.push(E),N++)}else y.splice(N,1)}}else{var M=b[C];while(M<y.length){var O=y[M];_[O]!==S?y.splice(M,1):M++}}}return b[f]=y.length,e.createSparseMatrix({values:g,index:y,ptr:b,size:[h,f],datatype:d})}})),jb="nthRoot",Fb=["typed","matrix","equalScalar","BigNumber"],Bb=Le(jb,Fb,(e=>{var{typed:t,matrix:n,equalScalar:r,BigNumber:i}=e,a=Ab({typed:t}),o=lb({typed:t,equalScalar:r}),s=Pb({typed:t,equalScalar:r}),l=gb({typed:t,equalScalar:r}),u=Cb({typed:t}),c=kb({typed:t}),d="Complex number not supported in function nthRoot. Use nthRoots instead.";return t(jb,{number:Qh,"number, number":Qh,BigNumber:function(e){return h(e,new i(2))},Complex:function(e){throw new Error(d)},"Complex, number":function(e,t){throw new Error(d)},"BigNumber, BigNumber":h,"Array | Matrix":function(e){return this(e,2)},"SparseMatrix, SparseMatrix":function(e,t){if(1===t.density())return s(e,t,this);throw new Error("Root must be non-zero")},"SparseMatrix, DenseMatrix":function(e,t){return o(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){if(1===t.density())return a(e,t,this,!1);throw new Error("Root must be non-zero")},"DenseMatrix, DenseMatrix":function(e,t){return u(e,t,this)},"Array, Array":function(e,t){return this(n(e),n(t)).valueOf()},"Array, Matrix":function(e,t){return this(n(e),t)},"Matrix, Array":function(e,t){return this(e,n(t))},"SparseMatrix, number | BigNumber":function(e,t){return l(e,t,this,!1)},"DenseMatrix, number | BigNumber":function(e,t){return c(e,t,this,!1)},"number | BigNumber, SparseMatrix":function(e,t){if(1===t.density())return l(t,e,this,!0);throw new Error("Root must be non-zero")},"number | BigNumber, DenseMatrix":function(e,t){return c(t,e,this,!0)},"Array, number | BigNumber":function(e,t){return this(n(e),t).valueOf()},"number | BigNumber, Array":function(e,t){return this(e,n(t)).valueOf()}});function h(e,t){var n=i.precision,r=i.clone({precision:n+2}),a=new i(0),o=new r(1),s=t.isNegative();if(s&&(t=t.neg()),t.isZero())throw new Error("Root must be non-zero");if(e.isNegative()&&!t.abs().mod(2).equals(1))throw new Error("Root must be odd when a is negative.");if(e.isZero())return s?new r(1/0):0;if(!e.isFinite())return s?a:e;var l=e.abs().pow(o.div(t));return l=e.isNeg()?l.neg():l,new i((s?o.div(l):l).toPrecision(n))}})),Lb="numeric",zb=["number","?bignumber","?fraction"],Rb=Le(Lb,zb,(e=>{var{number:t,bignumber:n,fraction:r}=e,i={string:!0,number:!0,BigNumber:!0,Fraction:!0},a={number:e=>t(e),BigNumber:n?e=>n(e):Er,Fraction:r?e=>r(e):Mr};return function(e,t){var n=W(e);if(!(n in i))throw new TypeError("Cannot convert "+e+' of type "'+n+'"; valid input types are '+Object.keys(i).join(", "));if(!(t in a))throw new TypeError("Cannot convert "+e+' to type "'+t+'"; valid output types are '+Object.keys(a).join(", "));return t===n?e:a[t](e)}})),Vb="or",qb=["typed","matrix","equalScalar","DenseMatrix"],Hb=Le(Vb,qb,(e=>{var{typed:t,matrix:n,equalScalar:r,DenseMatrix:i}=e,a=db({typed:t}),o=pb({typed:t,equalScalar:r}),s=xb({typed:t,DenseMatrix:i}),l=Cb({typed:t}),u=kb({typed:t});return t(Vb,{"number, number":qv,"Complex, Complex":function(e,t){return 0!==e.re||0!==e.im||0!==t.re||0!==t.im},"BigNumber, BigNumber":function(e,t){return!e.isZero()&&!e.isNaN()||!t.isZero()&&!t.isNaN()},"Unit, Unit":function(e,t){return this(e.value||0,t.value||0)},"SparseMatrix, SparseMatrix":function(e,t){return o(e,t,this)},"SparseMatrix, DenseMatrix":function(e,t){return a(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return a(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return l(e,t,this)},"Array, Array":function(e,t){return this(n(e),n(t)).valueOf()},"Array, Matrix":function(e,t){return this(n(e),t)},"Matrix, Array":function(e,t){return this(e,n(t))},"SparseMatrix, any":function(e,t){return s(e,t,this,!1)},"DenseMatrix, any":function(e,t){return u(e,t,this,!1)},"any, SparseMatrix":function(e,t){return s(t,e,this,!0)},"any, DenseMatrix":function(e,t){return u(t,e,this,!0)},"Array, any":function(e,t){return u(n(e),t,this,!1).valueOf()},"any, Array":function(e,t){return u(n(t),e,this,!0).valueOf()}})})),Ub="prod",Wb=["typed","config","multiplyScalar","numeric"],Yb=Le(Ub,Wb,(e=>{var{typed:t,config:n,multiplyScalar:r,numeric:i}=e;return t(Ub,{"Array | Matrix":a,"Array | Matrix, number | BigNumber":function(e,t){throw new Error("prod(A, dim) is not yet supported")},"...":function(e){return a(e)}});function a(e){var t;if(Jn(e,(function(e){try{t=void 0===t?e:r(t,e)}catch(n){throw mu(n,"prod",e)}})),"string"===typeof t&&(t=i(t,n.number)),void 0===t)throw new Error("Cannot calculate prod of an empty array");return t}})),Gb="reshape",Kb=["typed","isInteger","matrix"],Xb=Le(Gb,Kb,(e=>{var{typed:t,isInteger:n}=e;return t(Gb,{"Matrix, Array":function(e,t){return e.reshape(t)},"Array, Array":function(e,t){return t.forEach((function(e){if(!n(e))throw new TypeError("Invalid size for dimension: "+e)})),_t(e,t)}})})),Zb="size",Jb=["typed","config","?matrix"],Qb=Le(Zb,Jb,(e=>{var{typed:t,config:n,matrix:r}=e;return t(Zb,{Matrix:function(e){return e.create(e.size())},Array:vt,string:function(e){return"Array"===n.matrix?[e.length]:r([e.length])},"number | Complex | BigNumber | Unit | boolean | null":function(e){return"Array"===n.matrix?[]:r?r([]):Or()}})})),ex="algorithm07",tx=["typed","DenseMatrix"],nx=Le(ex,tx,(e=>{var{typed:t,DenseMatrix:n}=e;return function(e,i,a){var o=e._size,s=e._datatype,l=i._size,u=i._datatype;if(o.length!==l.length)throw new pt(o.length,l.length);if(o[0]!==l[0]||o[1]!==l[1])throw new RangeError("Dimension mismatch. Matrix A ("+o+") must match Matrix B ("+l+")");var c,d,h,f=o[0],p=o[1],m=0,v=a;"string"===typeof s&&s===u&&(c=s,m=t.convert(0,c),v=t.find(a,[c,c]));var g=[];for(d=0;d<f;d++)g[d]=[];var y=[],b=[],x=[],w=[];for(h=0;h<p;h++){var _=h+1;for(r(e,h,x,y,_),r(i,h,w,b,_),d=0;d<f;d++){var C=x[d]===_?y[d]:m,S=w[d]===_?b[d]:m;g[d][h]=v(C,S)}}return new n({data:g,size:[f,p],datatype:c})};function r(e,t,n,r,i){for(var a=e._values,o=e._index,s=e._ptr,l=s[t],u=s[t+1];l<u;l++){var c=o[l];n[c]=i,r[c]=a[l]}}})),rx="smaller",ix=["typed","config","matrix","DenseMatrix"],ax=Le(rx,ix,(e=>{var{typed:t,config:n,matrix:r,DenseMatrix:i}=e,a=db({typed:t}),o=nx({typed:t,DenseMatrix:i}),s=xb({typed:t,DenseMatrix:i}),l=Cb({typed:t}),u=kb({typed:t});return t(rx,{"boolean, boolean":function(e,t){return e<t},"number, number":function(e,t){return e<t&&!de(e,t,n.epsilon)},"BigNumber, BigNumber":function(e,t){return e.lt(t)&&!fm(e,t,n.epsilon)},"Fraction, Fraction":function(e,t){return-1===e.compare(t)},"Complex, Complex":function(e,t){throw new TypeError("No ordering relation is defined for complex numbers")},"Unit, Unit":function(e,t){if(!e.equalBase(t))throw new Error("Cannot compare units with different base");return this(e.value,t.value)},"SparseMatrix, SparseMatrix":function(e,t){return o(e,t,this)},"SparseMatrix, DenseMatrix":function(e,t){return a(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return a(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return l(e,t,this)},"Array, Array":function(e,t){return this(r(e),r(t)).valueOf()},"Array, Matrix":function(e,t){return this(r(e),t)},"Matrix, Array":function(e,t){return this(e,r(t))},"SparseMatrix, any":function(e,t){return s(e,t,this,!1)},"DenseMatrix, any":function(e,t){return u(e,t,this,!1)},"any, SparseMatrix":function(e,t){return s(t,e,this,!0)},"any, DenseMatrix":function(e,t){return u(t,e,this,!0)},"Array, any":function(e,t){return u(r(e),t,this,!1).valueOf()},"any, Array":function(e,t){return u(r(t),e,this,!0).valueOf()}})})),ox="squeeze",sx=["typed","matrix"],lx=Le(ox,sx,(e=>{var{typed:t,matrix:n}=e;return t(ox,{Array:function(e){return kt(Ae(e))},Matrix:function(e){var t=kt(e.toArray());return Array.isArray(t)?n(t):t},any:function(e){return Ae(e)}})})),ux="algorithm10",cx=["typed","DenseMatrix"],dx=Le(ux,cx,(e=>{var{typed:t,DenseMatrix:n}=e;return function(e,r,i,a){var o=e._values,s=e._index,l=e._ptr,u=e._size,c=e._datatype;if(!o)throw new Error("Cannot perform operation on Pattern Sparse Matrix and Scalar value");var d,h=u[0],f=u[1],p=i;"string"===typeof c&&(d=c,r=t.convert(r,d),p=t.find(i,[d,d]));for(var m=[],v=[],g=[],y=0;y<f;y++){for(var b=y+1,x=l[y],w=l[y+1],_=x;_<w;_++){var C=s[_];v[C]=o[_],g[C]=b}for(var S=0;S<h;S++)0===y&&(m[S]=[]),g[S]===b?m[S][y]=a?p(r,v[S]):p(v[S],r):m[S][y]=r}return new n({data:m,size:[h,f],datatype:d})}})),hx="subtract",fx=["typed","matrix","equalScalar","addScalar","unaryMinus","DenseMatrix"],px=Le(hx,fx,(e=>{var{typed:t,matrix:n,equalScalar:r,addScalar:i,unaryMinus:a,DenseMatrix:o}=e,s=Ab({typed:t}),l=db({typed:t}),u=pb({typed:t,equalScalar:r}),c=dx({typed:t,DenseMatrix:o}),d=Cb({typed:t}),h=kb({typed:t});return t(hx,{"number, number":function(e,t){return e-t},"Complex, Complex":function(e,t){return e.sub(t)},"BigNumber, BigNumber":function(e,t){return e.minus(t)},"Fraction, Fraction":function(e,t){return e.sub(t)},"Unit, Unit":function(e,t){if(null===e.value)throw new Error("Parameter x contains a unit with undefined value");if(null===t.value)throw new Error("Parameter y contains a unit with undefined value");if(!e.equalBase(t))throw new Error("Units do not match");var n=e.clone();return n.value=this(n.value,t.value),n.fixPrefix=!1,n},"SparseMatrix, SparseMatrix":function(e,t){return mx(e,t),u(e,t,this)},"SparseMatrix, DenseMatrix":function(e,t){return mx(e,t),l(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return mx(e,t),s(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return mx(e,t),d(e,t,this)},"Array, Array":function(e,t){return this(n(e),n(t)).valueOf()},"Array, Matrix":function(e,t){return this(n(e),t)},"Matrix, Array":function(e,t){return this(e,n(t))},"SparseMatrix, any":function(e,t){return c(e,a(t),i)},"DenseMatrix, any":function(e,t){return h(e,t,this)},"any, SparseMatrix":function(e,t){return c(t,e,this,!0)},"any, DenseMatrix":function(e,t){return h(t,e,this,!0)},"Array, any":function(e,t){return h(n(e),t,this,!1).valueOf()},"any, Array":function(e,t){return h(n(t),e,this,!0).valueOf()}})}));function mx(e,t){var n=e.size(),r=t.size();if(n.length!==r.length)throw new pt(n.length,r.length)}var vx="to",gx=["typed","matrix"],yx=Le(vx,gx,(e=>{var{typed:t,matrix:n}=e,r=Cb({typed:t}),i=kb({typed:t});return t(vx,{"Unit, Unit | string":function(e,t){return e.to(t)},"Matrix, Matrix":function(e,t){return r(e,t,this)},"Array, Array":function(e,t){return this(n(e),n(t)).valueOf()},"Array, Matrix":function(e,t){return this(n(e),t)},"Matrix, Array":function(e,t){return this(e,n(t))},"Matrix, any":function(e,t){return i(e,t,this,!1)},"any, Matrix":function(e,t){return i(t,e,this,!0)},"Array, any":function(e,t){return i(n(e),t,this,!1).valueOf()},"any, Array":function(e,t){return i(n(t),e,this,!0).valueOf()}})})),bx="transpose",xx=["typed","matrix"],wx=Le(bx,xx,(e=>{var{typed:t,matrix:n}=e;return t("transpose",{Array:function(e){return this(n(e)).valueOf()},Matrix:function(e){var t,n=e.size();switch(n.length){case 1:t=e.clone();break;case 2:var a=n[0],o=n[1];if(0===o)throw new RangeError("Cannot transpose a 2D matrix with no columns (size: "+Ne(n)+")");switch(e.storage()){case"dense":t=r(e,a,o);break;case"sparse":t=i(e,a,o);break}break;default:throw new RangeError("Matrix must be a vector or two dimensional (size: "+Ne(this._size)+")")}return t},any:function(e){return Ae(e)}});function r(e,t,n){for(var r,i=e._data,a=[],o=0;o<n;o++){r=a[o]=[];for(var s=0;s<t;s++)r[s]=Ae(i[s][o])}return e.createDenseMatrix({data:a,size:[n,t],datatype:e._datatype})}function i(e,t,n){for(var r,i,a,o=e._values,s=e._index,l=e._ptr,u=o?[]:void 0,c=[],d=[],h=[],f=0;f<t;f++)h[f]=0;for(r=0,i=s.length;r<i;r++)h[s[r]]++;for(var p=0,m=0;m<t;m++)d.push(p),p+=h[m],h[m]=d[m];for(d.push(p),a=0;a<n;a++)for(var v=l[a],g=l[a+1],y=v;y<g;y++){var b=h[s[y]]++;c[b]=a,o&&(u[b]=Ae(o[y]))}return e.createSparseMatrix({values:u,index:c,ptr:d,size:[n,t],datatype:e._datatype})}})),_x="xgcd",Cx=["typed","config","matrix","BigNumber"],Sx=Le(_x,Cx,(e=>{var{typed:t,config:n,matrix:r,BigNumber:i}=e;return t(_x,{"number, number":function(e,t){var i=rf(e,t);return"Array"===n.matrix?i:r(i)},"BigNumber, BigNumber":a});function a(e,t){var a,o,s,l,u=new i(0),c=new i(1),d=u,h=c,f=c,p=u;if(!e.isInt()||!t.isInt())throw new Error("Parameters in function xgcd must be integer numbers");while(!t.isZero())o=e.div(t).floor(),s=e.mod(t),a=d,d=h.minus(o.times(d)),h=a,a=f,f=p.minus(o.times(f)),p=a,e=t,t=s;return l=e.lt(u)?[e.neg(),h.neg(),p.neg()]:[e,e.isZero()?0:h,p],"Array"===n.matrix?l:r(l)}})),Nx="zeros",kx=["typed","config","matrix","BigNumber"],Ex=Le(Nx,kx,(e=>{var{typed:t,config:n,matrix:r,BigNumber:i}=e;return t(Nx,{"":function(){return"Array"===n.matrix?a([]):a([],"default")},"...number | BigNumber | string":function(e){var t=e[e.length-1];if("string"===typeof t){var r=e.pop();return a(e,r)}return"Array"===n.matrix?a(e):a(e,"default")},Array:a,Matrix:function(e){var t=e.storage();return a(e.valueOf(),t)},"Array | Matrix, string":function(e,t){return a(e.valueOf(),t)}});function a(e,t){var n=o(e),a=n?new i(0):0;if(s(e),t){var l=r(t);return e.length>0?l.resize(e,a):l}var u=[];return e.length>0?xt(u,e,a):u}function o(e){var t=!1;return e.forEach((function(e,n,r){u(e)&&(t=!0,r[n]=e.toNumber())})),t}function s(e){e.forEach((function(e){if("number"!==typeof e||!Y(e)||e<0)throw new Error("Parameters in function zeros must be positive integers")}))}})),Mx="and",Ox=["typed","matrix","equalScalar","zeros","not"],Dx=Le(Mx,Ox,(e=>{var{typed:t,matrix:n,equalScalar:r,zeros:i,not:a}=e,o=lb({typed:t,equalScalar:r}),s=Pb({typed:t,equalScalar:r}),l=gb({typed:t,equalScalar:r}),u=Cb({typed:t}),c=kb({typed:t});return t(Mx,{"number, number":Uv,"Complex, Complex":function(e,t){return(0!==e.re||0!==e.im)&&(0!==t.re||0!==t.im)},"BigNumber, BigNumber":function(e,t){return!e.isZero()&&!t.isZero()&&!e.isNaN()&&!t.isNaN()},"Unit, Unit":function(e,t){return this(e.value||0,t.value||0)},"SparseMatrix, SparseMatrix":function(e,t){return s(e,t,this,!1)},"SparseMatrix, DenseMatrix":function(e,t){return o(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return o(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return u(e,t,this)},"Array, Array":function(e,t){return this(n(e),n(t)).valueOf()},"Array, Matrix":function(e,t){return this(n(e),t)},"Matrix, Array":function(e,t){return this(e,n(t))},"SparseMatrix, any":function(e,t){return a(t)?i(e.size(),e.storage()):l(e,t,this,!1)},"DenseMatrix, any":function(e,t){return a(t)?i(e.size(),e.storage()):c(e,t,this,!1)},"any, SparseMatrix":function(e,t){return a(e)?i(e.size(),e.storage()):l(t,e,this,!0)},"any, DenseMatrix":function(e,t){return a(e)?i(e.size(),e.storage()):c(t,e,this,!0)},"Array, any":function(e,t){return this(n(e),t).valueOf()},"any, Array":function(e,t){return this(e,n(t)).valueOf()}})})),Tx="bitAnd",Ax=["typed","matrix","equalScalar"],Ix=Le(Tx,Ax,(e=>{var{typed:t,matrix:n,equalScalar:r}=e,i=lb({typed:t,equalScalar:r}),a=Pb({typed:t,equalScalar:r}),o=gb({typed:t,equalScalar:r}),s=Cb({typed:t}),l=kb({typed:t});return t(Tx,{"number, number":Ep,"BigNumber, BigNumber":gp,"SparseMatrix, SparseMatrix":function(e,t){return a(e,t,this,!1)},"SparseMatrix, DenseMatrix":function(e,t){return i(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return i(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return s(e,t,this)},"Array, Array":function(e,t){return this(n(e),n(t)).valueOf()},"Array, Matrix":function(e,t){return this(n(e),t)},"Matrix, Array":function(e,t){return this(e,n(t))},"SparseMatrix, any":function(e,t){return o(e,t,this,!1)},"DenseMatrix, any":function(e,t){return l(e,t,this,!1)},"any, SparseMatrix":function(e,t){return o(t,e,this,!0)},"any, DenseMatrix":function(e,t){return l(t,e,this,!0)},"Array, any":function(e,t){return l(n(e),t,this,!1).valueOf()},"any, Array":function(e,t){return l(n(t),e,this,!0).valueOf()}})})),$x="bitXor",Px=["typed","matrix","DenseMatrix"],jx=Le($x,Px,(e=>{var{typed:t,matrix:n,DenseMatrix:r}=e,i=db({typed:t}),a=nx({typed:t,DenseMatrix:r}),o=xb({typed:t,DenseMatrix:r}),s=Cb({typed:t}),l=kb({typed:t});return t($x,{"number, number":Dp,"BigNumber, BigNumber":_p,"SparseMatrix, SparseMatrix":function(e,t){return a(e,t,this)},"SparseMatrix, DenseMatrix":function(e,t){return i(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return i(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return s(e,t,this)},"Array, Array":function(e,t){return this(n(e),n(t)).valueOf()},"Array, Matrix":function(e,t){return this(n(e),t)},"Matrix, Array":function(e,t){return this(e,n(t))},"SparseMatrix, any":function(e,t){return o(e,t,this,!1)},"DenseMatrix, any":function(e,t){return l(e,t,this,!1)},"any, SparseMatrix":function(e,t){return o(t,e,this,!0)},"any, DenseMatrix":function(e,t){return l(t,e,this,!0)},"Array, any":function(e,t){return l(n(e),t,this,!1).valueOf()},"any, Array":function(e,t){return l(n(t),e,this,!0).valueOf()}})})),Fx="cbrt",Bx=["config","typed","isNegative","unaryMinus","matrix","Complex","BigNumber","Fraction"],Lx=Le(Fx,Bx,(e=>{var{config:t,typed:n,isNegative:r,unaryMinus:i,matrix:a,Complex:o,BigNumber:s,Fraction:l}=e;return n(Fx,{number:Vh,Complex:h,"Complex, boolean":h,BigNumber:function(e){return e.cbrt()},Unit:f,"Array | Matrix":function(e){return Qn(e,this,!0)}});function h(e,n){var r=e.arg()/3,i=e.abs(),s=new o(Vh(i),0).mul(new o(0,r).exp());if(n){var l=[s,new o(Vh(i),0).mul(new o(0,r+2*Math.PI/3).exp()),new o(Vh(i),0).mul(new o(0,r-2*Math.PI/3).exp())];return"Array"===t.matrix?l:a(l)}return s}function f(e){if(e.value&&c(e.value)){var t=e.clone();return t.value=1,t=t.pow(1/3),t.value=h(e.value),t}var n,a=r(e.value);a&&(e.value=i(e.value)),n=u(e.value)?new s(1).div(3):d(e.value)?new l(1,3):1/3;var o=e.pow(n);return a&&(o.value=i(o.value)),o}})),zx="compare",Rx=["typed","config","matrix","equalScalar","BigNumber","Fraction","DenseMatrix"],Vx=Le(zx,Rx,(e=>{var{typed:t,config:n,equalScalar:r,matrix:i,BigNumber:a,Fraction:o,DenseMatrix:s}=e,l=db({typed:t}),u=pb({typed:t,equalScalar:r}),c=xb({typed:t,DenseMatrix:s}),d=Cb({typed:t}),h=kb({typed:t});return t(zx,{"boolean, boolean":function(e,t){return e===t?0:e>t?1:-1},"number, number":function(e,t){return de(e,t,n.epsilon)?0:e>t?1:-1},"BigNumber, BigNumber":function(e,t){return fm(e,t,n.epsilon)?new a(0):new a(e.cmp(t))},"Fraction, Fraction":function(e,t){return new o(e.compare(t))},"Complex, Complex":function(){throw new TypeError("No ordering relation is defined for complex numbers")},"Unit, Unit":function(e,t){if(!e.equalBase(t))throw new Error("Cannot compare units with different base");return this(e.value,t.value)},"SparseMatrix, SparseMatrix":function(e,t){return u(e,t,this)},"SparseMatrix, DenseMatrix":function(e,t){return l(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return l(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return d(e,t,this)},"Array, Array":function(e,t){return this(i(e),i(t)).valueOf()},"Array, Matrix":function(e,t){return this(i(e),t)},"Matrix, Array":function(e,t){return this(e,i(t))},"SparseMatrix, any":function(e,t){return c(e,t,this,!1)},"DenseMatrix, any":function(e,t){return h(e,t,this,!1)},"any, SparseMatrix":function(e,t){return c(t,e,this,!0)},"any, DenseMatrix":function(e,t){return h(t,e,this,!0)},"Array, any":function(e,t){return h(i(e),t,this,!1).valueOf()},"any, Array":function(e,t){return h(i(t),e,this,!0).valueOf()}})})),qx="compareText",Hx=["typed","matrix"],Ux=Le(qx,Hx,(e=>{var{typed:t,matrix:n}=e,r=Cb({typed:t}),i=kb({typed:t});return t(qx,{"any, any":Te,"DenseMatrix, DenseMatrix":function(e,t){return r(e,t,Te)},"Array, Array":function(e,t){return this(n(e),n(t)).valueOf()},"Array, Matrix":function(e,t){return this(n(e),t)},"Matrix, Array":function(e,t){return this(e,n(t))},"DenseMatrix, any":function(e,t){return i(e,t,Te,!1)},"any, DenseMatrix":function(e,t){return i(t,e,Te,!0)},"Array, any":function(e,t){return i(n(e),t,Te,!1).valueOf()},"any, Array":function(e,t){return i(n(t),e,Te,!0).valueOf()}})})),Wx="count",Yx=["typed","size","prod"],Gx=Le(Wx,Yx,(e=>{var{typed:t,size:n,prod:r}=e;return t(Wx,{string:function(e){return e.length},"Matrix | Array":function(e){return r(n(e))}})})),Kx="ctranspose",Xx=["typed","transpose","conj"],Zx=Le(Kx,Xx,(e=>{var{typed:t,transpose:n,conj:r}=e;return t(Kx,{any:function(e){return r(n(e))}})})),Jx="diag",Qx=["typed","matrix","DenseMatrix","SparseMatrix"],ew=Le(Jx,Qx,(e=>{var{typed:t,matrix:n,DenseMatrix:r,SparseMatrix:i}=e;return t(Jx,{Array:function(e){return a(e,0,vt(e),null)},"Array, number":function(e,t){return a(e,t,vt(e),null)},"Array, BigNumber":function(e,t){return a(e,t.toNumber(),vt(e),null)},"Array, string":function(e,t){return a(e,0,vt(e),t)},"Array, number, string":function(e,t,n){return a(e,t,vt(e),n)},"Array, BigNumber, string":function(e,t,n){return a(e,t.toNumber(),vt(e),n)},Matrix:function(e){return a(e,0,e.size(),e.storage())},"Matrix, number":function(e,t){return a(e,t,e.size(),e.storage())},"Matrix, BigNumber":function(e,t){return a(e,t.toNumber(),e.size(),e.storage())},"Matrix, string":function(e,t){return a(e,0,e.size(),t)},"Matrix, number, string":function(e,t,n){return a(e,t,e.size(),n)},"Matrix, BigNumber, string":function(e,t,n){return a(e,t.toNumber(),e.size(),n)}});function a(e,t,n,r){if(!Y(t))throw new TypeError("Second parameter in function diag must be an integer");var i=t>0?t:0,a=t<0?-t:0;switch(n.length){case 1:return o(e,t,r,n[0],a,i);case 2:return s(e,t,r,n,a,i)}throw new RangeError("Matrix for function diag must be 2 dimensional")}function o(e,t,n,a,o,s){var l=[a+o,a+s];if(n&&"sparse"!==n&&"dense"!==n)throw new TypeError("Unknown matrix type ".concat(n,'"'));var u="sparse"===n?i.diagonal(l,e,t):r.diagonal(l,e,t);return null!==n?u:u.valueOf()}function s(e,t,r,i,a,o){if(m(e)){var s=e.diagonal(t);return null!==r?r!==s.storage()?n(s,r):s:s.valueOf()}for(var l=Math.min(i[0]-a,i[1]-o),u=[],c=0;c<l;c++)u[c]=e[c+a][c+o];return null!==r?n(u):u}})),tw="divideScalar",nw=["typed","numeric"],rw=Le(tw,nw,(e=>{var{typed:t,numeric:n}=e;return t(tw,{"number, number":function(e,t){return e/t},"Complex, Complex":function(e,t){return e.div(t)},"BigNumber, BigNumber":function(e,t){return e.div(t)},"Fraction, Fraction":function(e,t){return e.div(t)},"Unit, number | Fraction | BigNumber":function(e,t){var r=e.clone(),i=n(1,W(t));return r.value=this(null===r.value?r._normalize(i):r.value,t),r},"number | Fraction | BigNumber, Unit":function(e,t){var r=t.clone();r=r.pow(-1);var i=n(1,W(e));return r.value=this(e,null===t.value?t._normalize(i):t.value),r},"Unit, Unit":function(e,t){return e.divide(t)}})})),iw="dotDivide",aw=["typed","matrix","equalScalar","divideScalar","DenseMatrix"],ow=Le(iw,aw,(e=>{var{typed:t,matrix:n,equalScalar:r,divideScalar:i,DenseMatrix:a}=e,o=lb({typed:t,equalScalar:r}),s=db({typed:t}),l=nx({typed:t,DenseMatrix:a}),u=gb({typed:t,equalScalar:r}),c=xb({typed:t,DenseMatrix:a}),d=Cb({typed:t}),h=kb({typed:t});return t(iw,{"any, any":i,"SparseMatrix, SparseMatrix":function(e,t){return l(e,t,i,!1)},"SparseMatrix, DenseMatrix":function(e,t){return o(t,e,i,!0)},"DenseMatrix, SparseMatrix":function(e,t){return s(e,t,i,!1)},"DenseMatrix, DenseMatrix":function(e,t){return d(e,t,i)},"Array, Array":function(e,t){return this(n(e),n(t)).valueOf()},"Array, Matrix":function(e,t){return this(n(e),t)},"Matrix, Array":function(e,t){return this(e,n(t))},"SparseMatrix, any":function(e,t){return u(e,t,i,!1)},"DenseMatrix, any":function(e,t){return h(e,t,i,!1)},"any, SparseMatrix":function(e,t){return c(t,e,i,!0)},"any, DenseMatrix":function(e,t){return h(t,e,i,!0)},"Array, any":function(e,t){return h(n(e),t,i,!1).valueOf()},"any, Array":function(e,t){return h(n(t),e,i,!0).valueOf()}})})),sw="equal",lw=["typed","matrix","equalScalar","DenseMatrix"],uw=Le(sw,lw,(e=>{var{typed:t,matrix:n,equalScalar:r,DenseMatrix:i}=e,a=db({typed:t}),o=nx({typed:t,DenseMatrix:i}),s=xb({typed:t,DenseMatrix:i}),l=Cb({typed:t}),u=kb({typed:t});return t(sw,{"any, any":function(e,t){return null===e?null===t:null===t?null===e:void 0===e?void 0===t:void 0===t?void 0===e:r(e,t)},"SparseMatrix, SparseMatrix":function(e,t){return o(e,t,r)},"SparseMatrix, DenseMatrix":function(e,t){return a(t,e,r,!0)},"DenseMatrix, SparseMatrix":function(e,t){return a(e,t,r,!1)},"DenseMatrix, DenseMatrix":function(e,t){return l(e,t,r)},"Array, Array":function(e,t){return this(n(e),n(t)).valueOf()},"Array, Matrix":function(e,t){return this(n(e),t)},"Matrix, Array":function(e,t){return this(e,n(t))},"SparseMatrix, any":function(e,t){return s(e,t,r,!1)},"DenseMatrix, any":function(e,t){return u(e,t,r,!1)},"any, SparseMatrix":function(e,t){return s(t,e,r,!0)},"any, DenseMatrix":function(e,t){return u(t,e,r,!0)},"Array, any":function(e,t){return u(n(e),t,r,!1).valueOf()},"any, Array":function(e,t){return u(n(t),e,r,!0).valueOf()}})})),cw=(Le(sw,["typed","equalScalar"],(e=>{var{typed:t,equalScalar:n}=e;return t(sw,{"any, any":function(e,t){return null===e?null===t:null===t?null===e:void 0===e?void 0===t:void 0===t?void 0===e:n(e,t)}})})),"fft"),dw=["typed","matrix","addScalar","multiplyScalar","divideScalar","exp","tau","i"],hw=Le(cw,dw,(e=>{var{typed:t,matrix:n,addScalar:r,multiplyScalar:i,divideScalar:a,exp:o,tau:s,i:l}=e;return t(cw,{Array:u,Matrix:function(e){return e.create(u(e.toArray()))}});function u(e){var t=vt(e);return 1===t.length?d(e,t[0]):c(e.map((e=>u(e,t.slice(1)))),0)}function c(e,t){var n=vt(e);if(0!==t)return new Array(n[0]).fill(0).map(((n,r)=>c(e[r],t-1)));if(1===n.length)return d(e);function r(e){var t=vt(e);return new Array(t[1]).fill(0).map(((n,r)=>new Array(t[0]).fill(0).map(((t,n)=>e[n][r]))))}return r(c(r(e),1))}function d(e){var t=e.length;if(1===t)return[e[0]];if(t%2===0){for(var n=[...d(e.filter(((e,t)=>t%2===0)),t/2),...d(e.filter(((e,t)=>t%2===1)),t/2)],u=0;u<t/2;u++){var c=n[u],h=i(n[u+t/2],o(i(i(s,l),a(-u,t))));n[u]=r(c,h),n[u+t/2]=r(c,i(-1,h))}return n}throw new Error("Can only calculate FFT of power-of-two size")}})),fw="flatten",pw=["typed","matrix"],mw=Le(fw,pw,(e=>{var{typed:t,matrix:n}=e;return t(fw,{Array:function(e){return Dt(Ae(e))},Matrix:function(e){var t=Dt(Ae(e.toArray()));return n(t)}})})),vw="algorithm04",gw=["typed","equalScalar"],yw=Le(vw,gw,(e=>{var{typed:t,equalScalar:n}=e;return function(e,r,i){var a=e._values,o=e._index,s=e._ptr,l=e._size,u=e._datatype,c=r._values,d=r._index,h=r._ptr,f=r._size,p=r._datatype;if(l.length!==f.length)throw new pt(l.length,f.length);if(l[0]!==f[0]||l[1]!==f[1])throw new RangeError("Dimension mismatch. Matrix A ("+l+") must match Matrix B ("+f+")");var m,v=l[0],g=l[1],y=n,b=0,x=i;"string"===typeof u&&u===p&&(m=u,y=t.find(n,[m,m]),b=t.convert(0,m),x=t.find(i,[m,m]));var w,_,C,S,N,k=a&&c?[]:void 0,E=[],M=[],O=a&&c?[]:void 0,D=a&&c?[]:void 0,T=[],A=[];for(_=0;_<g;_++){M[_]=E.length;var I=_+1;for(S=s[_],N=s[_+1],C=S;C<N;C++)w=o[C],E.push(w),T[w]=I,O&&(O[w]=a[C]);for(S=h[_],N=h[_+1],C=S;C<N;C++)if(w=d[C],T[w]===I){if(O){var $=x(O[w],c[C]);y($,b)?T[w]=null:O[w]=$}}else E.push(w),A[w]=I,D&&(D[w]=c[C]);if(O&&D){C=M[_];while(C<E.length)w=E[C],T[w]===I?(k[C]=O[w],C++):A[w]===I?(k[C]=D[w],C++):E.splice(C,1)}}return M[g]=E.length,e.createSparseMatrix({values:k,index:E,ptr:M,size:[v,g],datatype:m})}})),bw="gcd",xw=["typed","matrix","equalScalar","BigNumber","DenseMatrix"],ww=Le(bw,xw,(e=>{var{typed:t,matrix:n,equalScalar:r,BigNumber:i,DenseMatrix:a}=e,o=Ab({typed:t}),s=yw({typed:t,equalScalar:r}),l=dx({typed:t,DenseMatrix:a}),u=Cb({typed:t}),c=kb({typed:t});return t(bw,{"number, number":Wh,"BigNumber, BigNumber":d,"Fraction, Fraction":function(e,t){return e.gcd(t)},"SparseMatrix, SparseMatrix":function(e,t){return s(e,t,this)},"SparseMatrix, DenseMatrix":function(e,t){return o(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return o(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return u(e,t,this)},"Array, Array":function(e,t){return this(n(e),n(t)).valueOf()},"Array, Matrix":function(e,t){return this(n(e),t)},"Matrix, Array":function(e,t){return this(e,n(t))},"SparseMatrix, number | BigNumber":function(e,t){return l(e,t,this,!1)},"DenseMatrix, number | BigNumber":function(e,t){return c(e,t,this,!1)},"number | BigNumber, SparseMatrix":function(e,t){return l(t,e,this,!0)},"number | BigNumber, DenseMatrix":function(e,t){return c(t,e,this,!0)},"Array, number | BigNumber":function(e,t){return c(n(e),t,this,!1).valueOf()},"number | BigNumber, Array":function(e,t){return c(n(t),e,this,!0).valueOf()},"Array | Matrix | number | BigNumber, Array | Matrix | number | BigNumber, ...Array | Matrix | number | BigNumber":function(e,t,n){for(var r=this(e,t),i=0;i<n.length;i++)r=this(r,n[i]);return r}});function d(e,t){if(!e.isInt()||!t.isInt())throw new Error("Parameters in function gcd must be integer numbers");var n=new i(0);while(!t.isZero()){var r=e.mod(t);e=t,t=r}return e.lt(n)?e.neg():e}})),_w="hasNumericValue",Cw=["typed","isNumeric"],Sw=Le(_w,Cw,(e=>{var{typed:t,isNumeric:n}=e;return t(_w,{string:function(e){return e.trim().length>0&&!isNaN(Number(e))},any:function(e){return n(e)}})})),Nw="hypot",kw=["typed","abs","addScalar","divideScalar","multiplyScalar","sqrt","smaller","isPositive"],Ew=Le(Nw,kw,(e=>{var{typed:t,abs:n,addScalar:r,divideScalar:i,multiplyScalar:a,sqrt:o,smaller:s,isPositive:l}=e;return t(Nw,{"... number | BigNumber":u,Array:function(e){return this.apply(this,Dt(e))},Matrix:function(e){return this.apply(this,Dt(e.toArray()))}});function u(e){for(var t=0,u=0,c=0;c<e.length;c++){var d=n(e[c]);s(u,d)?(t=a(t,a(i(u,d),i(u,d))),t=r(t,1),u=d):t=r(t,l(d)?a(i(d,u),i(d,u)):d)}return a(u,o(t))}})),Mw="ifft",Ow=["typed","fft","dotDivide","conj"],Dw=Le(Mw,Ow,(e=>{var{typed:t,fft:n,dotDivide:r,conj:i}=e;return t(Mw,{"Array | Matrix":function(e){var t=m(e)?e.size():vt(e);return r(i(n(i(e))),t.reduce(((e,t)=>e*t),1))}})})),Tw="kron",Aw=["typed","matrix","multiplyScalar"],Iw=Le(Tw,Aw,(e=>{var{typed:t,matrix:n,multiplyScalar:r}=e;return t(Tw,{"Matrix, Matrix":function(e,t){return n(i(e.toArray(),t.toArray()))},"Matrix, Array":function(e,t){return n(i(e.toArray(),t))},"Array, Matrix":function(e,t){return n(i(e,t.toArray()))},"Array, Array":i});function i(e,t){if(1===vt(e).length&&(e=[e]),1===vt(t).length&&(t=[t]),vt(e).length>2||vt(t).length>2)throw new RangeError("Vectors with dimensions greater then 2 are not supported expected (Size x = "+JSON.stringify(e.length)+", y = "+JSON.stringify(t.length)+")");var n=[],i=[];return e.map((function(e){return t.map((function(t){return i=[],n.push(i),e.map((function(e){return t.map((function(t){return i.push(r(e,t))}))}))}))}))&&n}})),$w="largerEq",Pw=["typed","config","matrix","DenseMatrix"],jw=Le($w,Pw,(e=>{var{typed:t,config:n,matrix:r,DenseMatrix:i}=e,a=db({typed:t}),o=nx({typed:t,DenseMatrix:i}),s=xb({typed:t,DenseMatrix:i}),l=Cb({typed:t}),u=kb({typed:t});return t($w,{"boolean, boolean":function(e,t){return e>=t},"number, number":function(e,t){return e>=t||de(e,t,n.epsilon)},"BigNumber, BigNumber":function(e,t){return e.gte(t)||fm(e,t,n.epsilon)},"Fraction, Fraction":function(e,t){return-1!==e.compare(t)},"Complex, Complex":function(){throw new TypeError("No ordering relation is defined for complex numbers")},"Unit, Unit":function(e,t){if(!e.equalBase(t))throw new Error("Cannot compare units with different base");return this(e.value,t.value)},"SparseMatrix, SparseMatrix":function(e,t){return o(e,t,this)},"SparseMatrix, DenseMatrix":function(e,t){return a(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return a(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return l(e,t,this)},"Array, Array":function(e,t){return this(r(e),r(t)).valueOf()},"Array, Matrix":function(e,t){return this(r(e),t)},"Matrix, Array":function(e,t){return this(e,r(t))},"SparseMatrix, any":function(e,t){return s(e,t,this,!1)},"DenseMatrix, any":function(e,t){return u(e,t,this,!1)},"any, SparseMatrix":function(e,t){return s(t,e,this,!0)},"any, DenseMatrix":function(e,t){return u(t,e,this,!0)},"Array, any":function(e,t){return u(r(e),t,this,!1).valueOf()},"any, Array":function(e,t){return u(r(t),e,this,!0).valueOf()}})})),Fw="algorithm08",Bw=["typed","equalScalar"],Lw=Le(Fw,Bw,(e=>{var{typed:t,equalScalar:n}=e;return function(e,r,i){var a=e._values,o=e._index,s=e._ptr,l=e._size,u=e._datatype,c=r._values,d=r._index,h=r._ptr,f=r._size,p=r._datatype;if(l.length!==f.length)throw new pt(l.length,f.length);if(l[0]!==f[0]||l[1]!==f[1])throw new RangeError("Dimension mismatch. Matrix A ("+l+") must match Matrix B ("+f+")");if(!a||!c)throw new Error("Cannot perform operation on Pattern Sparse Matrices");var m,v=l[0],g=l[1],y=n,b=0,x=i;"string"===typeof u&&u===p&&(m=u,y=t.find(n,[m,m]),b=t.convert(0,m),x=t.find(i,[m,m]));for(var w,_,C,S,N=[],k=[],E=[],M=[],O=[],D=0;D<g;D++){E[D]=k.length;var T=D+1;for(_=s[D],C=s[D+1],w=_;w<C;w++)S=o[w],O[S]=T,M[S]=a[w],k.push(S);for(_=h[D],C=h[D+1],w=_;w<C;w++)S=d[w],O[S]===T&&(M[S]=x(M[S],c[w]));w=E[D];while(w<k.length){S=k[w];var A=M[S];y(A,b)?k.splice(w,1):(N.push(A),w++)}}return E[g]=k.length,e.createSparseMatrix({values:N,index:k,ptr:E,size:[v,g],datatype:m})}})),zw="leftShift",Rw=["typed","matrix","equalScalar","zeros","DenseMatrix"],Vw=Le(zw,Rw,(e=>{var{typed:t,matrix:n,equalScalar:r,zeros:i,DenseMatrix:a}=e,o=Ab({typed:t}),s=lb({typed:t,equalScalar:r}),l=Lw({typed:t,equalScalar:r}),u=dx({typed:t,DenseMatrix:a}),c=gb({typed:t,equalScalar:r}),d=Cb({typed:t}),h=kb({typed:t});return t(zw,{"number, number":Tp,"BigNumber, BigNumber":Cp,"SparseMatrix, SparseMatrix":function(e,t){return l(e,t,this,!1)},"SparseMatrix, DenseMatrix":function(e,t){return s(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return o(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return d(e,t,this)},"Array, Array":function(e,t){return this(n(e),n(t)).valueOf()},"Array, Matrix":function(e,t){return this(n(e),t)},"Matrix, Array":function(e,t){return this(e,n(t))},"SparseMatrix, number | BigNumber":function(e,t){return r(t,0)?e.clone():c(e,t,this,!1)},"DenseMatrix, number | BigNumber":function(e,t){return r(t,0)?e.clone():h(e,t,this,!1)},"number | BigNumber, SparseMatrix":function(e,t){return r(e,0)?i(t.size(),t.storage()):u(t,e,this,!0)},"number | BigNumber, DenseMatrix":function(e,t){return r(e,0)?i(t.size(),t.storage()):h(t,e,this,!0)},"Array, number | BigNumber":function(e,t){return this(n(e),t).valueOf()},"number | BigNumber, Array":function(e,t){return this(e,n(t)).valueOf()}})}));function qw(e){var{DenseMatrix:t}=e;return function(e,n,r){var i=e.size();if(2!==i.length)throw new RangeError("Matrix must be two dimensional (size: "+Ne(i)+")");var a=i[0],o=i[1];if(a!==o)throw new RangeError("Matrix must be square (size: "+Ne(i)+")");var s=[];if(m(n)){var l=n.size(),u=n._data;if(1===l.length){if(l[0]!==a)throw new RangeError("Dimension mismatch. Matrix columns must match vector length.");for(var c=0;c<a;c++)s[c]=[u[c]];return new t({data:s,size:[a,1],datatype:n._datatype})}if(2===l.length){if(l[0]!==a||1!==l[1])throw new RangeError("Dimension mismatch. Matrix columns must match vector length.");if(g(n)){if(r){s=[];for(var d=0;d<a;d++)s[d]=[u[d][0]];return new t({data:s,size:[a,1],datatype:n._datatype})}return n}if(y(n)){for(var h=0;h<a;h++)s[h]=[0];for(var f=n._values,v=n._index,b=n._ptr,x=b[1],w=b[0];w<x;w++){var _=v[w];s[_][0]=f[w]}return new t({data:s,size:[a,1],datatype:n._datatype})}}throw new RangeError("Dimension mismatch. The right side has to be either 1- or 2-dimensional vector.")}if(p(n)){var C=vt(n);if(1===C.length){if(C[0]!==a)throw new RangeError("Dimension mismatch. Matrix columns must match vector length.");for(var S=0;S<a;S++)s[S]=[n[S]];return new t({data:s,size:[a,1]})}if(2===C.length){if(C[0]!==a||1!==C[1])throw new RangeError("Dimension mismatch. Matrix columns must match vector length.");for(var N=0;N<a;N++)s[N]=[n[N][0]];return new t({data:s,size:[a,1]})}throw new RangeError("Dimension mismatch. The right side has to be either 1- or 2-dimensional vector.")}}}var Hw="lsolve",Uw=["typed","matrix","divideScalar","multiplyScalar","subtract","equalScalar","DenseMatrix"],Ww=Le(Hw,Uw,(e=>{var{typed:t,matrix:n,divideScalar:r,multiplyScalar:i,subtract:a,equalScalar:o,DenseMatrix:s}=e,l=qw({DenseMatrix:s});return t(Hw,{"SparseMatrix, Array | Matrix":function(e,t){return c(e,t)},"DenseMatrix, Array | Matrix":function(e,t){return u(e,t)},"Array, Array | Matrix":function(e,t){var r=n(e),i=u(r,t);return i.valueOf()}});function u(e,t){t=l(e,t,!0);for(var n=t._data,u=e._size[0],c=e._size[1],d=[],h=e._data,f=0;f<c;f++){var p=n[f][0]||0,m=void 0;if(o(p,0))m=0;else{var v=h[f][f];if(o(v,0))throw new Error("Linear system cannot be solved since matrix is singular");m=r(p,v);for(var g=f+1;g<u;g++)n[g]=[a(n[g][0]||0,i(m,h[g][f]))]}d[f]=[m]}return new s({data:d,size:[u,1]})}function c(e,t){t=l(e,t,!0);for(var n=t._data,u=e._size[0],c=e._size[1],d=e._values,h=e._index,f=e._ptr,p=[],m=0;m<c;m++){var v=n[m][0]||0;if(o(v,0))p[m]=[0];else{for(var g=0,y=[],b=[],x=f[m],w=f[m+1],_=x;_<w;_++){var C=h[_];C===m?g=d[_]:C>m&&(y.push(d[_]),b.push(C))}if(o(g,0))throw new Error("Linear system cannot be solved since matrix is singular");for(var S=r(v,g),N=0,k=b.length;N<k;N++){var E=b[N];n[E]=[a(n[E][0]||0,i(S,y[N]))]}p[m]=[S]}}return new s({data:p,size:[u,1]})}})),Yw="matrixFromColumns",Gw=["typed","matrix","flatten","size"],Kw=Le(Yw,Gw,(e=>{var{typed:t,matrix:n,flatten:r,size:i}=e;return t(Yw,{"...Array":function(e){return a(e)},"...Matrix":function(e){return n(a(e.map((e=>e.toArray()))))}});function a(e){if(0===e.length)throw new TypeError("At least one column is needed to construct a matrix.");for(var t=o(e[0]),n=[],i=0;i<t;i++)n[i]=[];for(var a of e){var s=o(a);if(s!==t)throw new TypeError("The vectors had different length: "+(0|t)+" ≠ "+(0|s));for(var l=r(a),u=0;u<t;u++)n[u].push(l[u])}return n}function o(e){var t=i(e);if(1===t.length)return t[0];if(2===t.length){if(1===t[0])return t[1];if(1===t[1])return t[0];throw new TypeError("At least one of the arguments is not a vector.")}throw new TypeError("Only one- or two-dimensional vectors are supported.")}})),Xw="mode",Zw=["typed","isNaN","isNumeric"],Jw=Le(Xw,Zw,(e=>{var{typed:t,isNaN:n,isNumeric:r}=e;return t(Xw,{"Array | Matrix":i,"...":function(e){return i(e)}});function i(e){e=Dt(e.valueOf());var t=e.length;if(0===t)throw new Error("Cannot calculate mode of an empty array");for(var i={},a=[],o=0,s=0;s<e.length;s++){var l=e[s];if(r(l)&&n(l))throw new Error("Cannot calculate mode of an array containing NaN values");l in i||(i[l]=0),i[l]++,i[l]===o?a.push(l):i[l]>o&&(o=i[l],a=[l])}return a}})),Qw="nthRoots",e_=["config","typed","divideScalar","Complex"],t_=Le(Qw,e_,(e=>{var{typed:t,config:n,divideScalar:r,Complex:i}=e,a=[function(e){return new i(e,0)},function(e){return new i(0,e)},function(e){return new i(-e,0)},function(e){return new i(0,-e)}];function o(e,t){if(t<0)throw new Error("Root must be greater than zero");if(0===t)throw new Error("Root must be non-zero");if(t%1!==0)throw new Error("Root must be an integer");if(0===e||0===e.abs())return[new i(0,0)];var n,r="number"===typeof e;(r||0===e.re||0===e.im)&&(n=r?2*+(e<0):0===e.im?2*+(e.re<0):2*+(e.im<0)+1);for(var o=e.arg(),s=e.abs(),l=[],u=Math.pow(s,1/t),c=0;c<t;c++){var d=(n+4*c)/t;d!==Math.round(d)?l.push(new i({r:u,phi:(o+2*Math.PI*c)/t})):l.push(a[d%4](u))}return l}return t(Qw,{Complex:function(e){return o(e,2)},"Complex, number":o})})),n_="ones",r_=["typed","config","matrix","BigNumber"],i_=Le(n_,r_,(e=>{var{typed:t,config:n,matrix:r,BigNumber:i}=e;return t("ones",{"":function(){return"Array"===n.matrix?a([]):a([],"default")},"...number | BigNumber | string":function(e){var t=e[e.length-1];if("string"===typeof t){var r=e.pop();return a(e,r)}return"Array"===n.matrix?a(e):a(e,"default")},Array:a,Matrix:function(e){var t=e.storage();return a(e.valueOf(),t)},"Array | Matrix, string":function(e,t){return a(e.valueOf(),t)}});function a(e,t){var n=o(e),a=n?new i(1):1;if(s(e),t){var l=r(t);return e.length>0?l.resize(e,a):l}var u=[];return e.length>0?xt(u,e,a):u}function o(e){var t=!1;return e.forEach((function(e,n,r){u(e)&&(t=!0,r[n]=e.toNumber())})),t}function s(e){e.forEach((function(e){if("number"!==typeof e||!Y(e)||e<0)throw new Error("Parameters in function ones must be positive integers")}))}})),a_="partitionSelect",o_=["typed","isNumeric","isNaN","compare"],s_=Le(a_,o_,(e=>{var{typed:t,isNumeric:n,isNaN:r,compare:i}=e,a=i,o=(e,t)=>-i(e,t);return t(a_,{"Array | Matrix, number":function(e,t){return s(e,t,a)},"Array | Matrix, number, string":function(e,t,n){if("asc"===n)return s(e,t,a);if("desc"===n)return s(e,t,o);throw new Error('Compare string must be "asc" or "desc"')},"Array | Matrix, number, function":s});function s(e,t,n){if(!Y(t)||t<0)throw new Error("k must be a non-negative integer");if(m(e)){var r=e.size();if(r.length>1)throw new Error("Only one dimensional matrices supported");return l(e.valueOf(),t,n)}if(Array.isArray(e))return l(e,t,n)}function l(e,t,i){if(t>=e.length)throw new Error("k out of bounds");for(var a=0;a<e.length;a++)if(n(e[a])&&r(e[a]))return e[a];var o=0,s=e.length-1;while(o<s){var l=o,u=s,c=e[Math.floor(Math.random()*(s-o+1))+o];while(l<u)if(i(e[l],c)>=0){var d=e[u];e[u]=e[l],e[l]=d,--u}else++l;i(e[l],c)>0&&--l,t<=l?s=l:o=l+1}return e[t]}}));function l_(e,t,n,r){if(!(this instanceof l_))throw new SyntaxError("Constructor must be called with the new operator");this.fn=e,this.count=t,this.min=n,this.max=r,this.message="Wrong number of arguments in function "+e+" ("+t+" provided, "+n+(void 0!==r&&null!==r?"-"+r:"")+" expected)",this.stack=(new Error).stack}l_.prototype=new Error,l_.prototype.constructor=Error,l_.prototype.name="ArgumentsError",l_.prototype.isArgumentsError=!0;var u_="resize",c_=["config","matrix"],d_=Le(u_,c_,(e=>{var{config:t,matrix:n}=e;return function(e,i,a){if(2!==arguments.length&&3!==arguments.length)throw new l_("resize",arguments.length,2,3);if(m(i)&&(i=i.valueOf()),u(i[0])&&(i=i.map((function(e){return u(e)?e.toNumber():e}))),m(e))return e.resize(i,a,!0);if("string"===typeof e)return r(e,i,a);var o=!Array.isArray(e)&&"Array"!==t.matrix;if(0===i.length){while(Array.isArray(e))e=e[0];return Ae(e)}Array.isArray(e)||(e=[e]),e=Ae(e);var s=xt(e,i,a);return o?n(s):s};function r(e,t,n){if(void 0!==n){if("string"!==typeof n||1!==n.length)throw new TypeError("Single character expected as defaultValue")}else n=" ";if(1!==t.length)throw new pt(t.length,1);var r=t[0];if("number"!==typeof r||!Y(r))throw new TypeError("Invalid size, must contain positive integers (size: "+Ne(t)+")");if(e.length>r)return e.substring(0,r);if(e.length<r){for(var i=e,a=0,o=r-e.length;a<o;a++)i+=n;return i}return e}})),h_="rightArithShift",f_=["typed","matrix","equalScalar","zeros","DenseMatrix"],p_=Le(h_,f_,(e=>{var{typed:t,matrix:n,equalScalar:r,zeros:i,DenseMatrix:a}=e,o=Ab({typed:t}),s=lb({typed:t,equalScalar:r}),l=Lw({typed:t,equalScalar:r}),u=dx({typed:t,DenseMatrix:a}),c=gb({typed:t,equalScalar:r}),d=Cb({typed:t}),h=kb({typed:t});return t(h_,{"number, number":Ap,"BigNumber, BigNumber":Sp,"SparseMatrix, SparseMatrix":function(e,t){return l(e,t,this,!1)},"SparseMatrix, DenseMatrix":function(e,t){return s(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return o(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return d(e,t,this)},"Array, Array":function(e,t){return this(n(e),n(t)).valueOf()},"Array, Matrix":function(e,t){return this(n(e),t)},"Matrix, Array":function(e,t){return this(e,n(t))},"SparseMatrix, number | BigNumber":function(e,t){return r(t,0)?e.clone():c(e,t,this,!1)},"DenseMatrix, number | BigNumber":function(e,t){return r(t,0)?e.clone():h(e,t,this,!1)},"number | BigNumber, SparseMatrix":function(e,t){return r(e,0)?i(t.size(),t.storage()):u(t,e,this,!0)},"number | BigNumber, DenseMatrix":function(e,t){return r(e,0)?i(t.size(),t.storage()):h(t,e,this,!0)},"Array, number | BigNumber":function(e,t){return this(n(e),t).valueOf()},"number | BigNumber, Array":function(e,t){return this(e,n(t)).valueOf()}})})),m_="Number of decimals in function round must be an integer",v_="round",g_=["typed","matrix","equalScalar","zeros","BigNumber","DenseMatrix"],y_=Le(v_,g_,(e=>{var{typed:t,matrix:n,equalScalar:r,zeros:i,BigNumber:a,DenseMatrix:o}=e,s=gb({typed:t,equalScalar:r}),l=xb({typed:t,DenseMatrix:o}),u=kb({typed:t});return t(v_,{number:of,"number, number":of,"number, BigNumber":function(e,t){if(!t.isInteger())throw new TypeError(m_);return new a(e).toDecimalPlaces(t.toNumber())},Complex:function(e){return e.round()},"Complex, number":function(e,t){if(t%1)throw new TypeError(m_);return e.round(t)},"Complex, BigNumber":function(e,t){if(!t.isInteger())throw new TypeError(m_);var n=t.toNumber();return e.round(n)},BigNumber:function(e){return e.toDecimalPlaces(0)},"BigNumber, BigNumber":function(e,t){if(!t.isInteger())throw new TypeError(m_);return e.toDecimalPlaces(t.toNumber())},Fraction:function(e){return e.round()},"Fraction, number":function(e,t){if(t%1)throw new TypeError(m_);return e.round(t)},"Fraction, BigNumber":function(e,t){if(!t.isInteger())throw new TypeError(m_);return e.round(t.toNumber())},"Array | Matrix":function(e){return Qn(e,this,!0)},"SparseMatrix, number | BigNumber":function(e,t){return s(e,t,this,!1)},"DenseMatrix, number | BigNumber":function(e,t){return u(e,t,this,!1)},"Array, number | BigNumber":function(e,t){return u(n(e),t,this,!1).valueOf()},"number | Complex | BigNumber | Fraction, SparseMatrix":function(e,t){return r(e,0)?i(t.size(),t.storage()):l(t,e,this,!0)},"number | Complex | BigNumber | Fraction, DenseMatrix":function(e,t){return r(e,0)?i(t.size(),t.storage()):u(t,e,this,!0)},"number | Complex | BigNumber | Fraction, Array":function(e,t){return u(n(t),e,this,!0).valueOf()}})})),b_="smallerEq",x_=["typed","config","matrix","DenseMatrix"],w_=Le(b_,x_,(e=>{var{typed:t,config:n,matrix:r,DenseMatrix:i}=e,a=db({typed:t}),o=nx({typed:t,DenseMatrix:i}),s=xb({typed:t,DenseMatrix:i}),l=Cb({typed:t}),u=kb({typed:t});return t(b_,{"boolean, boolean":function(e,t){return e<=t},"number, number":function(e,t){return e<=t||de(e,t,n.epsilon)},"BigNumber, BigNumber":function(e,t){return e.lte(t)||fm(e,t,n.epsilon)},"Fraction, Fraction":function(e,t){return 1!==e.compare(t)},"Complex, Complex":function(){throw new TypeError("No ordering relation is defined for complex numbers")},"Unit, Unit":function(e,t){if(!e.equalBase(t))throw new Error("Cannot compare units with different base");return this(e.value,t.value)},"SparseMatrix, SparseMatrix":function(e,t){return o(e,t,this)},"SparseMatrix, DenseMatrix":function(e,t){return a(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return a(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return l(e,t,this)},"Array, Array":function(e,t){return this(r(e),r(t)).valueOf()},"Array, Matrix":function(e,t){return this(r(e),t)},"Matrix, Array":function(e,t){return this(e,r(t))},"SparseMatrix, any":function(e,t){return s(e,t,this,!1)},"DenseMatrix, any":function(e,t){return u(e,t,this,!1)},"any, SparseMatrix":function(e,t){return s(t,e,this,!0)},"any, DenseMatrix":function(e,t){return u(t,e,this,!0)},"Array, any":function(e,t){return u(r(e),t,this,!1).valueOf()},"any, Array":function(e,t){return u(r(t),e,this,!0).valueOf()}})})),__="unequal",C_=["typed","config","equalScalar","matrix","DenseMatrix"],S_=Le(__,C_,(e=>{var{typed:t,config:n,equalScalar:r,matrix:i,DenseMatrix:a}=e,o=db({typed:t}),s=nx({typed:t,DenseMatrix:a}),l=xb({typed:t,DenseMatrix:a}),u=Cb({typed:t}),c=kb({typed:t});return t("unequal",{"any, any":function(e,t){return null===e?null!==t:null===t?null!==e:void 0===e?void 0!==t:void 0===t?void 0!==e:d(e,t)},"SparseMatrix, SparseMatrix":function(e,t){return s(e,t,d)},"SparseMatrix, DenseMatrix":function(e,t){return o(t,e,d,!0)},"DenseMatrix, SparseMatrix":function(e,t){return o(e,t,d,!1)},"DenseMatrix, DenseMatrix":function(e,t){return u(e,t,d)},"Array, Array":function(e,t){return this(i(e),i(t)).valueOf()},"Array, Matrix":function(e,t){return this(i(e),t)},"Matrix, Array":function(e,t){return this(e,i(t))},"SparseMatrix, any":function(e,t){return l(e,t,d,!1)},"DenseMatrix, any":function(e,t){return c(e,t,d,!1)},"any, SparseMatrix":function(e,t){return l(t,e,d,!0)},"any, DenseMatrix":function(e,t){return c(t,e,d,!0)},"Array, any":function(e,t){return c(i(e),t,d,!1).valueOf()},"any, Array":function(e,t){return c(i(t),e,d,!0).valueOf()}});function d(e,t){return!r(e,t)}})),N_=(Le(__,["typed","equalScalar"],(e=>{var{typed:t,equalScalar:n}=e;return t(__,{"any, any":function(e,t){return null===e?null!==t:null===t?null!==e:void 0===e?void 0!==t:void 0===t?void 0!==e:!n(e,t)}})})),"usolve"),k_=["typed","matrix","divideScalar","multiplyScalar","subtract","equalScalar","DenseMatrix"],E_=Le(N_,k_,(e=>{var{typed:t,matrix:n,divideScalar:r,multiplyScalar:i,subtract:a,equalScalar:o,DenseMatrix:s}=e,l=qw({DenseMatrix:s});return t(N_,{"SparseMatrix, Array | Matrix":function(e,t){return c(e,t)},"DenseMatrix, Array | Matrix":function(e,t){return u(e,t)},"Array, Array | Matrix":function(e,t){var r=n(e),i=u(r,t);return i.valueOf()}});function u(e,t){t=l(e,t,!0);for(var n=t._data,u=e._size[0],c=e._size[1],d=[],h=e._data,f=c-1;f>=0;f--){var p=n[f][0]||0,m=void 0;if(o(p,0))m=0;else{var v=h[f][f];if(o(v,0))throw new Error("Linear system cannot be solved since matrix is singular");m=r(p,v);for(var g=f-1;g>=0;g--)n[g]=[a(n[g][0]||0,i(m,h[g][f]))]}d[f]=[m]}return new s({data:d,size:[u,1]})}function c(e,t){t=l(e,t,!0);for(var n=t._data,u=e._size[0],c=e._size[1],d=e._values,h=e._index,f=e._ptr,p=[],m=c-1;m>=0;m--){var v=n[m][0]||0;if(o(v,0))p[m]=[0];else{for(var g=0,y=[],b=[],x=f[m],w=f[m+1],_=w-1;_>=x;_--){var C=h[_];C===m?g=d[_]:C<m&&(y.push(d[_]),b.push(C))}if(o(g,0))throw new Error("Linear system cannot be solved since matrix is singular");for(var S=r(v,g),N=0,k=b.length;N<k;N++){var E=b[N];n[E]=[a(n[E][0],i(S,y[N]))]}p[m]=[S]}}return new s({data:p,size:[u,1]})}})),M_="xor",O_=["typed","matrix","DenseMatrix"],D_=Le(M_,O_,(e=>{var{typed:t,matrix:n,DenseMatrix:r}=e,i=db({typed:t}),a=nx({typed:t,DenseMatrix:r}),o=xb({typed:t,DenseMatrix:r}),s=Cb({typed:t}),l=kb({typed:t});return t(M_,{"number, number":Hv,"Complex, Complex":function(e,t){return(0!==e.re||0!==e.im)!==(0!==t.re||0!==t.im)},"BigNumber, BigNumber":function(e,t){return(!e.isZero()&&!e.isNaN())!==(!t.isZero()&&!t.isNaN())},"Unit, Unit":function(e,t){return this(e.value||0,t.value||0)},"SparseMatrix, SparseMatrix":function(e,t){return a(e,t,this)},"SparseMatrix, DenseMatrix":function(e,t){return i(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return i(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return s(e,t,this)},"Array, Array":function(e,t){return this(n(e),n(t)).valueOf()},"Array, Matrix":function(e,t){return this(n(e),t)},"Matrix, Array":function(e,t){return this(e,n(t))},"SparseMatrix, any":function(e,t){return o(e,t,this,!1)},"DenseMatrix, any":function(e,t){return l(e,t,this,!1)},"any, SparseMatrix":function(e,t){return o(t,e,this,!0)},"any, DenseMatrix":function(e,t){return l(t,e,this,!0)},"Array, any":function(e,t){return l(n(e),t,this,!1).valueOf()},"any, Array":function(e,t){return l(n(t),e,this,!0).valueOf()}})})),T_="add",A_=["typed","matrix","addScalar","equalScalar","DenseMatrix","SparseMatrix"],I_=Le(T_,A_,(e=>{var{typed:t,matrix:n,addScalar:r,equalScalar:i,DenseMatrix:a,SparseMatrix:o}=e,s=Ab({typed:t}),l=yw({typed:t,equalScalar:i}),u=dx({typed:t,DenseMatrix:a}),c=Cb({typed:t}),d=kb({typed:t});return t(T_,$e({"DenseMatrix, DenseMatrix":function(e,t){return c(e,t,r)},"DenseMatrix, SparseMatrix":function(e,t){return s(e,t,r,!1)},"SparseMatrix, DenseMatrix":function(e,t){return s(t,e,r,!0)},"SparseMatrix, SparseMatrix":function(e,t){return l(e,t,r)},"Array, Array":function(e,t){return this(n(e),n(t)).valueOf()},"Array, Matrix":function(e,t){return this(n(e),t)},"Matrix, Array":function(e,t){return this(e,n(t))},"DenseMatrix, any":function(e,t){return d(e,t,r,!1)},"SparseMatrix, any":function(e,t){return u(e,t,r,!1)},"any, DenseMatrix":function(e,t){return d(t,e,r,!0)},"any, SparseMatrix":function(e,t){return u(t,e,r,!0)},"Array, any":function(e,t){return d(n(e),t,r,!1).valueOf()},"any, Array":function(e,t){return d(n(t),e,r,!0).valueOf()},"any, any":r,"any, any, ...any":function(e,t,n){for(var r=this(e,t),i=0;i<n.length;i++)r=this(r,n[i]);return r}},r.signatures))})),$_="algorithm09",P_=["typed","equalScalar"],j_=Le($_,P_,(e=>{var{typed:t,equalScalar:n}=e;return function(e,r,i){var a=e._values,o=e._index,s=e._ptr,l=e._size,u=e._datatype,c=r._values,d=r._index,h=r._ptr,f=r._size,p=r._datatype;if(l.length!==f.length)throw new pt(l.length,f.length);if(l[0]!==f[0]||l[1]!==f[1])throw new RangeError("Dimension mismatch. Matrix A ("+l+") must match Matrix B ("+f+")");var m,v=l[0],g=l[1],y=n,b=0,x=i;"string"===typeof u&&u===p&&(m=u,y=t.find(n,[m,m]),b=t.convert(0,m),x=t.find(i,[m,m]));var w,_,C,S,N,k=a&&c?[]:void 0,E=[],M=[],O=k?[]:void 0,D=[];for(_=0;_<g;_++){M[_]=E.length;var T=_+1;if(O)for(S=h[_],N=h[_+1],C=S;C<N;C++)w=d[C],D[w]=T,O[w]=c[C];for(S=s[_],N=s[_+1],C=S;C<N;C++)if(w=o[C],O){var A=D[w]===T?O[w]:b,I=x(a[C],A);y(I,b)||(E.push(w),k.push(I))}else E.push(w)}return M[g]=E.length,e.createSparseMatrix({values:k,index:E,ptr:M,size:[v,g],datatype:m})}})),F_="atan2",B_=["typed","matrix","equalScalar","BigNumber","DenseMatrix"],L_=Le(F_,B_,(e=>{var{typed:t,matrix:n,equalScalar:r,BigNumber:i,DenseMatrix:a}=e,o=lb({typed:t,equalScalar:r}),s=db({typed:t}),l=j_({typed:t,equalScalar:r}),u=gb({typed:t,equalScalar:r}),c=xb({typed:t,DenseMatrix:a}),d=Cb({typed:t}),h=kb({typed:t});return t(F_,{"number, number":Math.atan2,"BigNumber, BigNumber":function(e,t){return i.atan2(e,t)},"SparseMatrix, SparseMatrix":function(e,t){return l(e,t,this,!1)},"SparseMatrix, DenseMatrix":function(e,t){return o(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return s(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return d(e,t,this)},"Array, Array":function(e,t){return this(n(e),n(t)).valueOf()},"Array, Matrix":function(e,t){return this(n(e),t)},"Matrix, Array":function(e,t){return this(e,n(t))},"SparseMatrix, number | BigNumber":function(e,t){return u(e,t,this,!1)},"DenseMatrix, number | BigNumber":function(e,t){return h(e,t,this,!1)},"number | BigNumber, SparseMatrix":function(e,t){return c(t,e,this,!0)},"number | BigNumber, DenseMatrix":function(e,t){return h(t,e,this,!0)},"Array, number | BigNumber":function(e,t){return h(n(e),t,this,!1).valueOf()},"number | BigNumber, Array":function(e,t){return h(n(t),e,this,!0).valueOf()}})})),z_="bitOr",R_=["typed","matrix","equalScalar","DenseMatrix"],V_=Le(z_,R_,(e=>{var{typed:t,matrix:n,equalScalar:r,DenseMatrix:i}=e,a=Ab({typed:t}),o=yw({typed:t,equalScalar:r}),s=dx({typed:t,DenseMatrix:i}),l=Cb({typed:t}),u=kb({typed:t});return t(z_,{"number, number":Op,"BigNumber, BigNumber":bp,"SparseMatrix, SparseMatrix":function(e,t){return o(e,t,this)},"SparseMatrix, DenseMatrix":function(e,t){return a(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return a(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return l(e,t,this)},"Array, Array":function(e,t){return this(n(e),n(t)).valueOf()},"Array, Matrix":function(e,t){return this(n(e),t)},"Matrix, Array":function(e,t){return this(e,n(t))},"SparseMatrix, any":function(e,t){return s(e,t,this,!1)},"DenseMatrix, any":function(e,t){return u(e,t,this,!1)},"any, SparseMatrix":function(e,t){return s(t,e,this,!0)},"any, DenseMatrix":function(e,t){return u(t,e,this,!0)},"Array, any":function(e,t){return u(n(e),t,this,!1).valueOf()},"any, Array":function(e,t){return u(n(t),e,this,!0).valueOf()}})})),q_="catalan",H_=["typed","addScalar","divideScalar","multiplyScalar","combinations","isNegative","isInteger"],U_=Le(q_,H_,(e=>{var{typed:t,addScalar:n,divideScalar:r,multiplyScalar:i,combinations:a,isNegative:o,isInteger:s}=e;return t(q_,{"number | BigNumber":function(e){if(!s(e)||o(e))throw new TypeError("Non-negative integer value expected in function catalan");return r(a(i(e,2),e),n(e,1))}})})),W_=n(3228),Y_="compareNatural",G_=["typed","compare"],K_=Le(Y_,G_,(e=>{var{typed:t,compare:n}=e,r=n.signatures["boolean,boolean"];return t(Y_,{"any, any":function(e,t){var s,l=W(e),u=W(t);if(("number"===l||"BigNumber"===l||"Fraction"===l)&&("number"===u||"BigNumber"===u||"Fraction"===u))return s=n(e,t),"0"!==s.toString()?s>0?1:-1:W_(l,u);if("Array"===l||"Matrix"===l||"Array"===u||"Matrix"===u)return s=i(this,e,t),0!==s?s:W_(l,u);if(l!==u)return W_(l,u);if("Complex"===l)return X_(e,t);if("Unit"===l)return e.equalBase(t)?this(e.value,t.value):a(this,e.formatUnits(),t.formatUnits());if("boolean"===l)return r(e,t);if("string"===l)return W_(e,t);if("Object"===l)return o(this,e,t);if("null"===l)return 0;if("undefined"===l)return 0;throw new TypeError('Unsupported type of value "'+l+'"')}});function i(e,t,n){return y(t)&&y(n)?a(e,t.toJSON().values,n.toJSON().values):y(t)?i(e,t.toArray(),n):y(n)?i(e,t,n.toArray()):g(t)?i(e,t.toJSON().data,n):g(n)?i(e,t,n.toJSON().data):Array.isArray(t)?Array.isArray(n)?a(e,t,n):i(e,t,[n]):i(e,[t],n)}function a(e,t,n){for(var r=0,i=Math.min(t.length,n.length);r<i;r++){var a=e(t[r],n[r]);if(0!==a)return a}return t.length>n.length?1:t.length<n.length?-1:0}function o(e,t,n){var r=Object.keys(t),i=Object.keys(n);r.sort(W_),i.sort(W_);var o=a(e,r,i);if(0!==o)return o;for(var s=0;s<r.length;s++){var l=e(t[r[s]],n[i[s]]);if(0!==l)return l}return 0}}));function X_(e,t){return e.re>t.re?1:e.re<t.re?-1:e.im>t.im?1:e.im<t.im?-1:0}var Z_="deepEqual",J_=["typed","equal"],Q_=Le(Z_,J_,(e=>{var{typed:t,equal:n}=e;return t(Z_,{"any, any":function(e,t){return r(e.valueOf(),t.valueOf())}});function r(e,t){if(Array.isArray(e)){if(Array.isArray(t)){var i=e.length;if(i!==t.length)return!1;for(var a=0;a<i;a++)if(!r(e[a],t[a]))return!1;return!0}return!1}return!Array.isArray(t)&&n(e,t)}})),eC="dot",tC=["typed","addScalar","multiplyScalar","conj","size"],nC=Le(eC,tC,(e=>{var{typed:t,addScalar:n,multiplyScalar:r,conj:i,size:a}=e;return t(eC,{"Array | DenseMatrix, Array | DenseMatrix":s,"SparseMatrix, SparseMatrix":l});function o(e,t){var n,r,i=u(e),a=u(t);if(1===i.length)n=i[0];else{if(2!==i.length||1!==i[1])throw new RangeError("Expected a column vector, instead got a matrix of size ("+i.join(", ")+")");n=i[0]}if(1===a.length)r=a[0];else{if(2!==a.length||1!==a[1])throw new RangeError("Expected a column vector, instead got a matrix of size ("+a.join(", ")+")");r=a[0]}if(n!==r)throw new RangeError("Vectors must have equal length ("+n+" != "+r+")");if(0===n)throw new RangeError("Cannot calculate the dot product of empty vectors");return n}function s(e,a){var s=o(e,a),l=m(e)?e._data:e,c=m(e)?e._datatype:void 0,d=m(a)?a._data:a,h=m(a)?a._datatype:void 0,f=2===u(e).length,p=2===u(a).length,v=n,g=r;if(c&&h&&c===h&&"string"===typeof c){var y=c;v=t.find(n,[y,y]),g=t.find(r,[y,y])}if(!f&&!p){for(var b=g(i(l[0]),d[0]),x=1;x<s;x++)b=v(b,g(i(l[x]),d[x]));return b}if(!f&&p){for(var w=g(i(l[0]),d[0][0]),_=1;_<s;_++)w=v(w,g(i(l[_]),d[_][0]));return w}if(f&&!p){for(var C=g(i(l[0][0]),d[0]),S=1;S<s;S++)C=v(C,g(i(l[S][0]),d[S]));return C}if(f&&p){for(var N=g(i(l[0][0]),d[0][0]),k=1;k<s;k++)N=v(N,g(i(l[k][0]),d[k][0]));return N}}function l(e,t){o(e,t);var i=e._index,a=e._values,s=t._index,l=t._values,u=0,c=n,d=r,h=0,f=0;while(h<i.length&&f<s.length){var p=i[h],m=s[f];p<m?h++:p>m?f++:p===m&&(u=c(u,d(a[h],l[f])),h++,f++)}return u}function u(e){return m(e)?e.size():a(e)}})),rC="equalText",iC=["typed","compareText","isZero"],aC=Le(rC,iC,(e=>{var{typed:t,compareText:n,isZero:r}=e;return t(rC,{"any, any":function(e,t){return r(n(e,t))}})})),oC="floor",sC=["typed","config","round","matrix","equalScalar","zeros","DenseMatrix"],lC=Le(oC,["typed","config","round"],(e=>{var{typed:t,config:n,round:r}=e;return t(oC,{number:function(e){return de(e,r(e),n.epsilon)?r(e):Math.floor(e)},"number, number":function(e,t){if(de(e,r(e,t),n.epsilon))return r(e,t);var[i,a]="".concat(e,"e").split("e"),o=Math.floor(Number("".concat(i,"e").concat(Number(a)+t)));return[i,a]="".concat(o,"e").split("e"),Number("".concat(i,"e").concat(Number(a)-t))}})})),uC=Le(oC,sC,(e=>{var{typed:t,config:n,round:r,matrix:i,equalScalar:a,zeros:o,DenseMatrix:s}=e,l=gb({typed:t,equalScalar:a}),u=xb({typed:t,DenseMatrix:s}),c=kb({typed:t}),d=lC({typed:t,config:n,round:r});return t("floor",{number:d.signatures.number,"number,number":d.signatures["number,number"],Complex:function(e){return e.floor()},"Complex, number":function(e,t){return e.floor(t)},"Complex, BigNumber":function(e,t){return e.floor(t.toNumber())},BigNumber:function(e){return fm(e,r(e),n.epsilon)?r(e):e.floor()},"BigNumber, BigNumber":function(e,t){return fm(e,r(e,t),n.epsilon)?r(e,t):e.toDecimalPlaces(t.toNumber(),kc.ROUND_FLOOR)},Fraction:function(e){return e.floor()},"Fraction, number":function(e,t){return e.floor(t)},"Fraction, BigNumber":function(e,t){return e.floor(t.toNumber())},"Array | Matrix":function(e){return Qn(e,this,!0)},"Array, number | BigNumber":function(e,t){return Qn(e,(e=>this(e,t)),!0)},"SparseMatrix, number | BigNumber":function(e,t){return l(e,t,this,!1)},"DenseMatrix, number | BigNumber":function(e,t){return c(e,t,this,!1)},"number | Complex | Fraction | BigNumber, Array":function(e,t){return c(i(t),e,this,!0).valueOf()},"number | Complex | Fraction | BigNumber, Matrix":function(e,t){return a(e,0)?o(t.size(),t.storage()):"dense"===t.storage()?c(t,e,this,!0):u(t,e,this,!0)}})})),cC="identity",dC=["typed","config","matrix","BigNumber","DenseMatrix","SparseMatrix"],hC=Le(cC,dC,(e=>{var{typed:t,config:n,matrix:r,BigNumber:i,DenseMatrix:a,SparseMatrix:o}=e;return t(cC,{"":function(){return"Matrix"===n.matrix?r([]):[]},string:function(e){return r(e)},"number | BigNumber":function(e){return l(e,e,"Matrix"===n.matrix?"dense":void 0)},"number | BigNumber, string":function(e,t){return l(e,e,t)},"number | BigNumber, number | BigNumber":function(e,t){return l(e,t,"Matrix"===n.matrix?"dense":void 0)},"number | BigNumber, number | BigNumber, string":function(e,t,n){return l(e,t,n)},Array:function(e){return s(e)},"Array, string":function(e,t){return s(e,t)},Matrix:function(e){return s(e.valueOf(),e.storage())},"Matrix, string":function(e,t){return s(e.valueOf(),t)}});function s(e,t){switch(e.length){case 0:return t?r(t):[];case 1:return l(e[0],e[0],t);case 2:return l(e[0],e[1],t);default:throw new Error("Vector containing two values expected")}}function l(e,t,n){var r=u(e)||u(t)?i:null;if(u(e)&&(e=e.toNumber()),u(t)&&(t=t.toNumber()),!Y(e)||e<1)throw new Error("Parameters in function identity must be positive integers");if(!Y(t)||t<1)throw new Error("Parameters in function identity must be positive integers");var s=r?new i(1):1,l=r?new r(0):0,c=[e,t];if(n){if("sparse"===n)return o.diagonal(c,s,0,l);if("dense"===n)return a.diagonal(c,s,0,l);throw new TypeError('Unknown matrix type "'.concat(n,'"'))}for(var d=xt([],c,l),h=e<t?e:t,f=0;f<h;f++)d[f][f]=s;return d}})),fC="invmod",pC=["typed","config","BigNumber","xgcd","equal","smaller","mod","add","isInteger"],mC=Le(fC,pC,(e=>{var{typed:t,config:n,BigNumber:r,xgcd:i,equal:a,smaller:o,mod:s,add:l,isInteger:u}=e;return t(fC,{"number, number":c,"BigNumber, BigNumber":c});function c(e,t){if(!u(e)||!u(t))throw new Error("Parameters in function invmod must be integer numbers");if(e=s(e,t),a(t,0))throw new Error("Divisor must be non zero");var n=i(e,t);n=n.valueOf();var[c,d]=n;return a(c,r(1))?(d=s(d,t),o(d,r(0))&&(d=l(d,t)),d):NaN}})),vC="larger",gC=["typed","config","matrix","DenseMatrix"],yC=Le(vC,gC,(e=>{var{typed:t,config:n,matrix:r,DenseMatrix:i}=e,a=db({typed:t}),o=nx({typed:t,DenseMatrix:i}),s=xb({typed:t,DenseMatrix:i}),l=Cb({typed:t}),u=kb({typed:t});return t(vC,{"boolean, boolean":function(e,t){return e>t},"number, number":function(e,t){return e>t&&!de(e,t,n.epsilon)},"BigNumber, BigNumber":function(e,t){return e.gt(t)&&!fm(e,t,n.epsilon)},"Fraction, Fraction":function(e,t){return 1===e.compare(t)},"Complex, Complex":function(){throw new TypeError("No ordering relation is defined for complex numbers")},"Unit, Unit":function(e,t){if(!e.equalBase(t))throw new Error("Cannot compare units with different base");return this(e.value,t.value)},"SparseMatrix, SparseMatrix":function(e,t){return o(e,t,this)},"SparseMatrix, DenseMatrix":function(e,t){return a(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return a(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return l(e,t,this)},"Array, Array":function(e,t){return this(r(e),r(t)).valueOf()},"Array, Matrix":function(e,t){return this(r(e),t)},"Matrix, Array":function(e,t){return this(e,r(t))},"SparseMatrix, any":function(e,t){return s(e,t,this,!1)},"DenseMatrix, any":function(e,t){return u(e,t,this,!1)},"any, SparseMatrix":function(e,t){return s(t,e,this,!0)},"any, DenseMatrix":function(e,t){return u(t,e,this,!0)},"Array, any":function(e,t){return u(r(e),t,this,!1).valueOf()},"any, Array":function(e,t){return u(r(t),e,this,!0).valueOf()}})})),bC="log",xC=["config","typed","divideScalar","Complex"],wC=Le(bC,xC,(e=>{var{typed:t,config:n,divideScalar:r,Complex:i}=e;return t(bC,{number:function(e){return e>=0||n.predictable?Gh(e):new i(e,0).log()},Complex:function(e){return e.log()},BigNumber:function(e){return!e.isNegative()||n.predictable?e.ln():new i(e.toNumber(),0).log()},"Array | Matrix":function(e){return Qn(e,this)},"any, any":function(e,t){return r(this(e),this(t))}})})),_C="lsolveAll",CC=["typed","matrix","divideScalar","multiplyScalar","subtract","equalScalar","DenseMatrix"],SC=Le(_C,CC,(e=>{var{typed:t,matrix:n,divideScalar:r,multiplyScalar:i,subtract:a,equalScalar:o,DenseMatrix:s}=e,l=qw({DenseMatrix:s});return t(_C,{"SparseMatrix, Array | Matrix":function(e,t){return c(e,t)},"DenseMatrix, Array | Matrix":function(e,t){return u(e,t)},"Array, Array | Matrix":function(e,t){var r=n(e),i=u(r,t);return i.map((e=>e.valueOf()))}});function u(e,t){for(var n=[l(e,t,!0)._data.map((e=>e[0]))],u=e._data,c=e._size[0],d=e._size[1],h=0;h<d;h++)for(var f=n.length,p=0;p<f;p++){var m=n[p];if(o(u[h][h],0))if(o(m[h],0)){if(0===p){var v=[...m];v[h]=1;for(var g=h+1;g<d;g++)v[g]=a(v[g],u[g][h]);n.push(v)}}else{if(0===p)return[];n.splice(p,1),p-=1,f-=1}else{m[h]=r(m[h],u[h][h]);for(var y=h+1;y<d;y++)m[y]=a(m[y],i(m[h],u[y][h]))}}return n.map((e=>new s({data:e.map((e=>[e])),size:[c,1]})))}function c(e,t){for(var n=[l(e,t,!0)._data.map((e=>e[0]))],u=e._size[0],c=e._size[1],d=e._values,h=e._index,f=e._ptr,p=0;p<c;p++)for(var m=n.length,v=0;v<m;v++){for(var g=n[v],y=[],b=[],x=f[p],w=f[p+1],_=0,C=x;C<w;C++){var S=h[C];S===p?_=d[C]:S>p&&(y.push(d[C]),b.push(S))}if(o(_,0))if(o(g[p],0)){if(0===v){var N=[...g];N[p]=1;for(var k=0,E=b.length;k<E;k++){var M=b[k];N[M]=a(N[M],y[k])}n.push(N)}}else{if(0===v)return[];n.splice(v,1),v-=1,m-=1}else{g[p]=r(g[p],_);for(var O=0,D=b.length;O<D;O++){var T=b[O];g[T]=a(g[T],i(g[p],y[O]))}}}return n.map((e=>new s({data:e.map((e=>[e])),size:[u,1]})))}})),NC="matrixFromRows",kC=["typed","matrix","flatten","size"],EC=Le(NC,kC,(e=>{var{typed:t,matrix:n,flatten:r,size:i}=e;return t(NC,{"...Array":function(e){return a(e)},"...Matrix":function(e){return n(a(e.map((e=>e.toArray()))))}});function a(e){if(0===e.length)throw new TypeError("At least one row is needed to construct a matrix.");var t=o(e[0]),n=[];for(var i of e){var a=o(i);if(a!==t)throw new TypeError("The vectors had different length: "+(0|t)+" ≠ "+(0|a));n.push(r(i))}return n}function o(e){var t=i(e);if(1===t.length)return t[0];if(2===t.length){if(1===t[0])return t[1];if(1===t[1])return t[0];throw new TypeError("At least one of the arguments is not a vector.")}throw new TypeError("Only one- or two-dimensional vectors are supported.")}})),MC="multiply",OC=["typed","matrix","addScalar","multiplyScalar","equalScalar","dot"],DC=Le(MC,OC,(e=>{var{typed:t,matrix:n,addScalar:r,multiplyScalar:i,equalScalar:a,dot:o}=e,s=gb({typed:t,equalScalar:a}),l=kb({typed:t});function u(e,t){switch(e.length){case 1:switch(t.length){case 1:if(e[0]!==t[0])throw new RangeError("Dimension mismatch in multiplication. Vectors must have the same length");break;case 2:if(e[0]!==t[0])throw new RangeError("Dimension mismatch in multiplication. Vector length ("+e[0]+") must match Matrix rows ("+t[0]+")");break;default:throw new Error("Can only multiply a 1 or 2 dimensional matrix (Matrix B has "+t.length+" dimensions)")}break;case 2:switch(t.length){case 1:if(e[1]!==t[0])throw new RangeError("Dimension mismatch in multiplication. Matrix columns ("+e[1]+") must match Vector length ("+t[0]+")");break;case 2:if(e[1]!==t[0])throw new RangeError("Dimension mismatch in multiplication. Matrix A columns ("+e[1]+") must match Matrix B rows ("+t[0]+")");break;default:throw new Error("Can only multiply a 1 or 2 dimensional matrix (Matrix B has "+t.length+" dimensions)")}break;default:throw new Error("Can only multiply a 1 or 2 dimensional matrix (Matrix A has "+e.length+" dimensions)")}}function c(e,t,n){if(0===n)throw new Error("Cannot multiply two empty vectors");return o(e,t)}function d(e,t){if("dense"!==t.storage())throw new Error("Support for SparseMatrix not implemented");return h(e,t)}function h(e,n){var a,o=e._data,s=e._size,l=e._datatype,u=n._data,c=n._size,d=n._datatype,h=s[0],f=c[1],p=r,m=i;l&&d&&l===d&&"string"===typeof l&&(a=l,p=t.find(r,[a,a]),m=t.find(i,[a,a]));for(var v=[],g=0;g<f;g++){for(var y=m(o[0],u[0][g]),b=1;b<h;b++)y=p(y,m(o[b],u[b][g]));v[g]=y}return e.createDenseMatrix({data:v,size:[f],datatype:a})}var f=t("_multiplyMatrixVector",{"DenseMatrix, any":v,"SparseMatrix, any":b}),p=t("_multiplyMatrixMatrix",{"DenseMatrix, DenseMatrix":g,"DenseMatrix, SparseMatrix":y,"SparseMatrix, DenseMatrix":x,"SparseMatrix, SparseMatrix":w});function v(e,n){var a,o=e._data,s=e._size,l=e._datatype,u=n._data,c=n._datatype,d=s[0],h=s[1],f=r,p=i;l&&c&&l===c&&"string"===typeof l&&(a=l,f=t.find(r,[a,a]),p=t.find(i,[a,a]));for(var m=[],v=0;v<d;v++){for(var g=o[v],y=p(g[0],u[0]),b=1;b<h;b++)y=f(y,p(g[b],u[b]));m[v]=y}return e.createDenseMatrix({data:m,size:[d],datatype:a})}function g(e,n){var a,o=e._data,s=e._size,l=e._datatype,u=n._data,c=n._size,d=n._datatype,h=s[0],f=s[1],p=c[1],m=r,v=i;l&&d&&l===d&&"string"===typeof l&&(a=l,m=t.find(r,[a,a]),v=t.find(i,[a,a]));for(var g=[],y=0;y<h;y++){var b=o[y];g[y]=[];for(var x=0;x<p;x++){for(var w=v(b[0],u[0][x]),_=1;_<f;_++)w=m(w,v(b[_],u[_][x]));g[y][x]=w}}return e.createDenseMatrix({data:g,size:[h,p],datatype:a})}function y(e,n){var o=e._data,s=e._size,l=e._datatype,u=n._values,c=n._index,d=n._ptr,h=n._size,f=n._datatype;if(!u)throw new Error("Cannot multiply Dense Matrix times Pattern only Matrix");var p,m=s[0],v=h[1],g=r,y=i,b=a,x=0;l&&f&&l===f&&"string"===typeof l&&(p=l,g=t.find(r,[p,p]),y=t.find(i,[p,p]),b=t.find(a,[p,p]),x=t.convert(0,p));for(var w=[],_=[],C=[],S=n.createSparseMatrix({values:w,index:_,ptr:C,size:[m,v],datatype:p}),N=0;N<v;N++){C[N]=_.length;var k=d[N],E=d[N+1];if(E>k)for(var M=0,O=0;O<m;O++){for(var D=O+1,T=void 0,A=k;A<E;A++){var I=c[A];M!==D?(T=y(o[O][I],u[A]),M=D):T=g(T,y(o[O][I],u[A]))}M!==D||b(T,x)||(_.push(O),w.push(T))}}return C[v]=_.length,S}function b(e,n){var o=e._values,s=e._index,l=e._ptr,u=e._datatype;if(!o)throw new Error("Cannot multiply Pattern only Matrix times Dense Matrix");var c,d=n._data,h=n._datatype,f=e._size[0],p=n._size[0],m=[],v=[],g=[],y=r,b=i,x=a,w=0;u&&h&&u===h&&"string"===typeof u&&(c=u,y=t.find(r,[c,c]),b=t.find(i,[c,c]),x=t.find(a,[c,c]),w=t.convert(0,c));var _=[],C=[];g[0]=0;for(var S=0;S<p;S++){var N=d[S];if(!x(N,w))for(var k=l[S],E=l[S+1],M=k;M<E;M++){var O=s[M];C[O]?_[O]=y(_[O],b(N,o[M])):(C[O]=!0,v.push(O),_[O]=b(N,o[M]))}}for(var D=v.length,T=0;T<D;T++){var A=v[T];m[T]=_[A]}return g[1]=v.length,e.createSparseMatrix({values:m,index:v,ptr:g,size:[f,1],datatype:c})}function x(e,n){var o=e._values,s=e._index,l=e._ptr,u=e._datatype;if(!o)throw new Error("Cannot multiply Pattern only Matrix times Dense Matrix");var c,d=n._data,h=n._datatype,f=e._size[0],p=n._size[0],m=n._size[1],v=r,g=i,y=a,b=0;u&&h&&u===h&&"string"===typeof u&&(c=u,v=t.find(r,[c,c]),g=t.find(i,[c,c]),y=t.find(a,[c,c]),b=t.convert(0,c));for(var x=[],w=[],_=[],C=e.createSparseMatrix({values:x,index:w,ptr:_,size:[f,m],datatype:c}),S=[],N=[],k=0;k<m;k++){_[k]=w.length;for(var E=k+1,M=0;M<p;M++){var O=d[M][k];if(!y(O,b))for(var D=l[M],T=l[M+1],A=D;A<T;A++){var I=s[A];N[I]!==E?(N[I]=E,w.push(I),S[I]=g(O,o[A])):S[I]=v(S[I],g(O,o[A]))}}for(var $=_[k],P=w.length,j=$;j<P;j++){var F=w[j];x[j]=S[F]}}return _[m]=w.length,C}function w(e,n){var a,o=e._values,s=e._index,l=e._ptr,u=e._datatype,c=n._values,d=n._index,h=n._ptr,f=n._datatype,p=e._size[0],m=n._size[1],v=o&&c,g=r,y=i;u&&f&&u===f&&"string"===typeof u&&(a=u,g=t.find(r,[a,a]),y=t.find(i,[a,a]));for(var b,x,w,_,C,S,N,k,E=v?[]:void 0,M=[],O=[],D=e.createSparseMatrix({values:E,index:M,ptr:O,size:[p,m],datatype:a}),T=v?[]:void 0,A=[],I=0;I<m;I++){O[I]=M.length;var $=I+1;for(C=h[I],S=h[I+1],_=C;_<S;_++)if(k=d[_],v)for(x=l[k],w=l[k+1],b=x;b<w;b++)N=s[b],A[N]!==$?(A[N]=$,M.push(N),T[N]=y(c[_],o[b])):T[N]=g(T[N],y(c[_],o[b]));else for(x=l[k],w=l[k+1],b=x;b<w;b++)N=s[b],A[N]!==$&&(A[N]=$,M.push(N));if(v)for(var P=O[I],j=M.length,F=P;F<j;F++){var B=M[F];E[F]=T[B]}}return O[m]=M.length,D}return t(MC,$e({"Array, Array":function(e,t){u(vt(e),vt(t));var r=this(n(e),n(t));return m(r)?r.valueOf():r},"Matrix, Matrix":function(e,t){var n=e.size(),r=t.size();return u(n,r),1===n.length?1===r.length?c(e,t,n[0]):d(e,t):1===r.length?f(e,t):p(e,t)},"Matrix, Array":function(e,t){return this(e,n(t))},"Array, Matrix":function(e,t){return this(n(e,t.storage()),t)},"SparseMatrix, any":function(e,t){return s(e,t,i,!1)},"DenseMatrix, any":function(e,t){return l(e,t,i,!1)},"any, SparseMatrix":function(e,t){return s(t,e,i,!0)},"any, DenseMatrix":function(e,t){return l(t,e,i,!0)},"Array, any":function(e,t){return l(n(e),t,i,!1).valueOf()},"any, Array":function(e,t){return l(n(t),e,i,!0).valueOf()},"any, any":i,"any, any, ...any":function(e,t,n){for(var r=this(e,t),i=0;i<n.length;i++)r=this(r,n[i]);return r}},i.signatures))})),TC="qr",AC=["typed","matrix","zeros","identity","isZero","equal","sign","sqrt","conj","unaryMinus","addScalar","divideScalar","multiplyScalar","subtract","complex"],IC=Le(TC,AC,(e=>{var{typed:t,matrix:n,zeros:i,identity:a,isZero:o,equal:s,sign:l,sqrt:u,conj:c,unaryMinus:d,addScalar:h,divideScalar:f,multiplyScalar:p,subtract:m,complex:v}=e;return r(t(TC,{DenseMatrix:function(e){return y(e)},SparseMatrix:function(e){return b(e)},Array:function(e){var t=n(e),r=y(t);return{Q:r.Q.valueOf(),R:r.R.valueOf()}}}),{_denseQRimpl:g});function g(e){var t,n,r,v=e._size[0],g=e._size[1],y=a([v],"dense"),b=y._data,x=e.clone(),w=x._data,_=i([v],"");for(r=0;r<Math.min(g,v);++r){var C=w[r][r],S=d(s(C,0)?1:l(C)),N=c(S),k=0;for(t=r;t<v;t++)k=h(k,p(w[t][r],c(w[t][r])));var E=p(S,u(k));if(!o(E)){var M=m(C,E);for(_[r]=1,t=r+1;t<v;t++)_[t]=f(w[t][r],M);var O=d(c(f(M,E))),D=void 0;for(n=r;n<g;n++){for(D=0,t=r;t<v;t++)D=h(D,p(c(_[t]),w[t][n]));for(D=p(D,O),t=r;t<v;t++)w[t][n]=p(m(w[t][n],p(_[t],D)),N)}for(t=0;t<v;t++){for(D=0,n=r;n<v;n++)D=h(D,p(b[t][n],_[n]));for(D=p(D,O),n=r;n<v;++n)b[t][n]=f(m(b[t][n],p(D,c(_[n]))),N)}}}return{Q:y,R:x,toString:function(){return"Q: "+this.Q.toString()+"\nR: "+this.R.toString()}}}function y(e){var t=g(e),n=t.R._data;if(e._data.length>0)for(var r="Complex"===n[0][0].type?v(0):0,i=0;i<n.length;++i)for(var a=0;a<i&&a<(n[0]||[]).length;++a)n[i][a]=r;return t}function b(e){throw new Error("qr not implemented for sparse matrices yet")}})),$C="rightLogShift",PC=["typed","matrix","equalScalar","zeros","DenseMatrix"],jC=Le($C,PC,(e=>{var{typed:t,matrix:n,equalScalar:r,zeros:i,DenseMatrix:a}=e,o=Ab({typed:t}),s=lb({typed:t,equalScalar:r}),l=Lw({typed:t,equalScalar:r}),u=dx({typed:t,DenseMatrix:a}),c=gb({typed:t,equalScalar:r}),d=Cb({typed:t}),h=kb({typed:t});return t($C,{"number, number":Ip,"SparseMatrix, SparseMatrix":function(e,t){return l(e,t,this,!1)},"SparseMatrix, DenseMatrix":function(e,t){return s(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return o(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return d(e,t,this)},"Array, Array":function(e,t){return this(n(e),n(t)).valueOf()},"Array, Matrix":function(e,t){return this(n(e),t)},"Matrix, Array":function(e,t){return this(e,n(t))},"SparseMatrix, number | BigNumber":function(e,t){return r(t,0)?e.clone():c(e,t,this,!1)},"DenseMatrix, number | BigNumber":function(e,t){return r(t,0)?e.clone():h(e,t,this,!1)},"number | BigNumber, SparseMatrix":function(e,t){return r(e,0)?i(t.size(),t.storage()):u(t,e,this,!0)},"number | BigNumber, DenseMatrix":function(e,t){return r(e,0)?i(t.size(),t.storage()):h(t,e,this,!0)},"Array, number | BigNumber":function(e,t){return this(n(e),t).valueOf()},"number | BigNumber, Array":function(e,t){return this(e,n(t)).valueOf()}})})),FC="setSize",BC=["typed","compareNatural"],LC=Le(FC,BC,(e=>{var{typed:t,compareNatural:n}=e;return t(FC,{"Array | Matrix":function(e){return Array.isArray(e)?Dt(e).length:Dt(e.toArray()).length},"Array | Matrix, boolean":function(e,t){if(!1===t||0===e.length)return Array.isArray(e)?Dt(e).length:Dt(e.toArray()).length;for(var r=Dt(Array.isArray(e)?e:e.toArray()).sort(n),i=1,a=1;a<r.length;a++)0!==n(r[a],r[a-1])&&i++;return i}})}));function zC(e,t,n,r){for(var i=e._values,a=e._index,o=e._ptr,s=e._size,l=e._datatype,u=s[0],c=s[1],d=r&&e._values?[]:null,h=[],f=[],p=0,m=0;m<c;m++){f[m]=p;for(var v=n?n[m]:m,g=o[v],y=o[v+1],b=g;b<y;b++){var x=t?t[a[b]]:a[b];h[p]=x,d&&(d[p]=i[b]),p++}}return f[c]=p,e.createSparseMatrix({values:d,index:h,ptr:f,size:[u,c],datatype:l})}function RC(e,t,n,r,i,a,o){var s=0;n[o]=e;while(s>=0){var l=n[o+s],u=n[r+l];-1===u?(s--,a[t++]=l):(n[r+l]=n[i+u],++s,n[o+s]=u)}return t}function VC(e,t){if(!e)return null;var n,r=0,i=[],a=[],o=0,s=t,l=2*t;for(n=0;n<t;n++)a[o+n]=-1;for(n=t-1;n>=0;n--)-1!==e[n]&&(a[s+n]=a[o+e[n]],a[o+e[n]]=n);for(n=0;n<t;n++)-1===e[n]&&(r=RC(n,r,a,o,s,i,l));return i}function qC(e,t){if(!e)return null;var n,r,i=e._index,a=e._ptr,o=e._size,s=o[0],l=o[1],u=[],c=[],d=0,h=l;if(t)for(n=0;n<s;n++)c[h+n]=-1;for(var f=0;f<l;f++){u[f]=-1,c[d+f]=-1;for(var p=a[f],m=a[f+1],v=p;v<m;v++){var g=i[v];for(n=t?c[h+g]:g;-1!==n&&n<f;n=r)r=c[d+n],c[d+n]=f,-1===r&&(u[n]=f);t&&(c[h+g]=f)}}return u}function HC(e,t,n){for(var r=e._values,i=e._index,a=e._ptr,o=e._size,s=o[1],l=0,u=0;u<s;u++){var c=a[u];for(a[u]=l;c<a[u+1];c++)t(i[c],u,r?r[c]:1,n)&&(i[l]=i[c],r&&(r[l]=r[c]),l++)}return a[s]=l,i.splice(l,i.length-l),r&&r.splice(l,r.length-l),l}function UC(e){return-e-2}var WC="csAmd",YC=["add","multiply","transpose"],GC=Le(WC,YC,(e=>{var{add:t,multiply:n,transpose:r}=e;return function(e,t){if(!t||e<=0||e>3)return null;var n=t._size,r=n[0],u=n[1],c=0,d=Math.max(16,10*Math.sqrt(u));d=Math.min(u-2,d);var h=i(e,t,r,u,d);HC(h,l,null);var f,p,m,v,g,y,b,x,w,_,C,S,N,k,E,M,O=h._index,D=h._ptr,T=D[u],A=[],I=[],$=0,P=u+1,j=2*(u+1),F=3*(u+1),B=4*(u+1),L=5*(u+1),z=6*(u+1),R=7*(u+1),V=A,q=a(u,D,I,$,F,V,j,R,P,z,B,L),H=o(u,D,I,L,B,z,d,P,F,V,j),U=0;while(H<u){for(m=-1;U<u&&-1===(m=I[F+U]);U++);-1!==I[j+m]&&(V[I[j+m]]=-1),I[F+U]=I[j+m];var W=I[B+m],Y=I[P+m];H+=Y;var G=0;I[P+m]=-Y;var K=D[m],X=0===W?K:T,Z=X;for(v=1;v<=W+1;v++){for(v>W?(y=m,b=K,x=I[$+m]-W):(y=O[K++],b=D[y],x=I[$+y]),g=1;g<=x;g++)f=O[b++],(w=I[P+f])<=0||(G+=w,I[P+f]=-w,O[Z++]=f,-1!==I[j+f]&&(V[I[j+f]]=V[f]),-1!==V[f]?I[j+V[f]]=I[j+f]:I[F+I[L+f]]=I[j+f]);y!==m&&(D[y]=UC(m),I[z+y]=0)}for(0!==W&&(T=Z),I[L+m]=G,D[m]=X,I[$+m]=Z-X,I[B+m]=-2,q=s(q,c,I,z,u),_=X;_<Z;_++)if(f=O[_],!((C=I[B+f])<=0)){w=-I[P+f];var J=q-w;for(K=D[f],S=D[f]+C-1;K<=S;K++)y=O[K],I[z+y]>=q?I[z+y]-=w:0!==I[z+y]&&(I[z+y]=I[L+y]+J)}for(_=X;_<Z;_++){for(f=O[_],S=D[f],N=S+I[B+f]-1,k=S,E=0,M=0,K=S;K<=N;K++)if(y=O[K],0!==I[z+y]){var Q=I[z+y]-q;Q>0?(M+=Q,O[k++]=y,E+=y):(D[y]=UC(m),I[z+y]=0)}I[B+f]=k-S+1;var ee=k,te=S+I[$+f];for(K=N+1;K<te;K++){p=O[K];var ne=I[P+p];ne<=0||(M+=ne,O[k++]=p,E+=p)}0===M?(D[f]=UC(m),w=-I[P+f],G-=w,Y+=w,H+=w,I[P+f]=0,I[B+f]=-1):(I[L+f]=Math.min(I[L+f],M),O[k]=O[ee],O[ee]=O[S],O[S]=m,I[$+f]=k-S+1,E=(E<0?-E:E)%u,I[j+f]=I[R+E],I[R+E]=f,V[f]=E)}for(I[L+m]=G,c=Math.max(c,G),q=s(q+c,c,I,z,u),_=X;_<Z;_++)if(f=O[_],!(I[P+f]>=0))for(E=V[f],f=I[R+E],I[R+E]=-1;-1!==f&&-1!==I[j+f];f=I[j+f],q++){for(x=I[$+f],C=I[B+f],K=D[f]+1;K<=D[f]+x-1;K++)I[z+O[K]]=q;var re=f;for(p=I[j+f];-1!==p;){var ie=I[$+p]===x&&I[B+p]===C;for(K=D[p]+1;ie&&K<=D[p]+x-1;K++)I[z+O[K]]!==q&&(ie=0);ie?(D[p]=UC(f),I[P+f]+=I[P+p],I[P+p]=0,I[B+p]=-1,p=I[j+p],I[j+re]=p):(re=p,p=I[j+p])}}for(K=X,_=X;_<Z;_++)f=O[_],(w=-I[P+f])<=0||(I[P+f]=w,M=I[L+f]+G-w,M=Math.min(M,u-H-w),-1!==I[F+M]&&(V[I[F+M]]=f),I[j+f]=I[F+M],V[f]=-1,I[F+M]=f,U=Math.min(U,M),I[L+f]=M,O[K++]=f);I[P+m]=Y,0===(I[$+m]=K-X)&&(D[m]=-1,I[z+m]=0),0!==W&&(T=K)}for(f=0;f<u;f++)D[f]=UC(D[f]);for(p=0;p<=u;p++)I[F+p]=-1;for(p=u;p>=0;p--)I[P+p]>0||(I[j+p]=I[F+D[p]],I[F+D[p]]=p);for(y=u;y>=0;y--)I[P+y]<=0||-1!==D[y]&&(I[j+y]=I[F+D[y]],I[F+D[y]]=y);for(m=0,f=0;f<=u;f++)-1===D[f]&&(m=RC(f,m,I,F,j,A,z));return A.splice(A.length-1,1),A};function i(e,i,a,o,s){var l=r(i);if(1===e&&o===a)return t(i,l);if(2===e){for(var u=l._index,c=l._ptr,d=0,h=0;h<a;h++){var f=c[h];if(c[h]=d,!(c[h+1]-f>s))for(var p=c[h+1];f<p;f++)u[d++]=u[f]}return c[a]=d,i=r(l),n(l,i)}return n(l,i)}function a(e,t,n,r,i,a,o,l,u,c,d,h){for(var f=0;f<e;f++)n[r+f]=t[f+1]-t[f];n[r+e]=0;for(var p=0;p<=e;p++)n[i+p]=-1,a[p]=-1,n[o+p]=-1,n[l+p]=-1,n[u+p]=1,n[c+p]=1,n[d+p]=0,n[h+p]=n[r+p];var m=s(0,0,n,c,e);return n[d+e]=-2,t[e]=-1,n[c+e]=0,m}function o(e,t,n,r,i,a,o,s,l,u,c){for(var d=0,h=0;h<e;h++){var f=n[r+h];if(0===f)n[i+h]=-2,d++,t[h]=-1,n[a+h]=0;else if(f>o)n[s+h]=0,n[i+h]=-1,d++,t[h]=UC(e),n[s+e]++;else{var p=n[l+f];-1!==p&&(u[p]=h),n[c+h]=n[l+f],n[l+f]=h}}return d}function s(e,t,n,r,i){if(e<2||e+t<0){for(var a=0;a<i;a++)0!==n[r+a]&&(n[r+a]=1);e=2}return e}function l(e,t){return e!==t}}));function KC(e,t,n,r,i,a,o){var s,l,u,c=0;if(e<=t||n[r+t]<=n[i+e])return-1;n[i+e]=n[r+t];var d=n[a+e];if(n[a+e]=t,-1===d)c=1,u=e;else{for(c=2,u=d;u!==n[o+u];u=n[o+u]);for(s=d;s!==u;s=l)l=n[o+s],n[o+s]=u}return{jleaf:c,q:u}}var XC="csCounts",ZC=["transpose"],JC=Le(XC,ZC,(e=>{var{transpose:t}=e;return function(e,n,r,i){if(!e||!n||!r)return null;var a,o,s,l,u,c,d,h=e._size,f=h[0],p=h[1],m=4*p+(i?p+f+1:0),v=[],g=0,y=p,b=2*p,x=3*p,w=4*p,_=5*p+1;for(s=0;s<m;s++)v[s]=-1;var C=[],S=t(e),N=S._index,k=S._ptr;for(s=0;s<p;s++)for(o=r[s],C[o]=-1===v[x+o]?1:0;-1!==o&&-1===v[x+o];o=n[o])v[x+o]=s;if(i){for(s=0;s<p;s++)v[r[s]]=s;for(a=0;a<f;a++){for(s=p,c=k[a],d=k[a+1],u=c;u<d;u++)s=Math.min(s,v[N[u]]);v[_+a]=v[w+s],v[w+s]=a}}for(a=0;a<p;a++)v[g+a]=a;for(s=0;s<p;s++){for(o=r[s],-1!==n[o]&&C[n[o]]--,l=i?v[w+s]:o;-1!==l;l=i?v[_+l]:-1)for(u=k[l];u<k[l+1];u++){a=N[u];var E=KC(a,o,v,x,y,b,g);E.jleaf>=1&&C[o]++,2===E.jleaf&&C[E.q]--}-1!==n[o]&&(v[g+o]=n[o])}for(o=0;o<p;o++)-1!==n[o]&&(C[n[o]]+=C[o]);return C}})),QC="csSqr",eS=["add","multiply","transpose"],tS=Le(QC,eS,(e=>{var{add:t,multiply:n,transpose:r}=e,i=GC({add:t,multiply:n,transpose:r}),a=JC({transpose:r});return function(e,t,n){var r,s=t._ptr,l=t._size,u=l[1],c={};if(c.q=i(e,t),e&&!c.q)return null;if(n){var d=e?zC(t,null,c.q,0):t;c.parent=qC(d,1);var h=VC(c.parent,u);if(c.cp=a(d,c.parent,h,1),d&&c.parent&&c.cp&&o(d,c))for(c.unz=0,r=0;r<u;r++)c.unz+=c.cp[r]}else c.unz=4*s[u]+u,c.lnz=c.unz;return c};function o(e,t){var n=e._ptr,r=e._index,i=e._size,a=i[0],o=i[1];t.pinv=[],t.leftmost=[];var s,l,u,c,d,h=t.parent,f=t.pinv,p=t.leftmost,m=[],v=0,g=a,y=a+o,b=a+2*o;for(l=0;l<o;l++)m[g+l]=-1,m[y+l]=-1,m[b+l]=0;for(s=0;s<a;s++)p[s]=-1;for(l=o-1;l>=0;l--)for(c=n[l],d=n[l+1],u=c;u<d;u++)p[r[u]]=l;for(s=a-1;s>=0;s--)f[s]=-1,l=p[s],-1!==l&&(0===m[b+l]++&&(m[y+l]=s),m[v+s]=m[g+l],m[g+l]=s);for(t.lnz=0,t.m2=a,l=0;l<o;l++)if(s=m[g+l],t.lnz++,s<0&&(s=t.m2++),f[s]=l,!(--b[l]<=0)){t.lnz+=m[b+l];var x=h[l];-1!==x&&(0===m[b+x]&&(m[y+x]=m[y+l]),m[v+m[y+l]]=m[g+x],m[g+x]=m[v+s],m[b+x]+=m[b+l])}for(s=0;s<a;s++)f[s]<0&&(f[s]=l++);return!0}}));function nS(e,t){return e[t]<0}function rS(e,t){e[t]=UC(e[t])}function iS(e){return e<0?UC(e):e}function aS(e,t,n,r,i){var a,o,s,l=t._index,u=t._ptr,c=t._size,d=c[1],h=0;r[0]=e;while(h>=0){e=r[h];var f=i?i[e]:e;nS(u,e)||(rS(u,e),r[d+h]=f<0?0:iS(u[f]));var p=1;for(o=r[d+h],s=f<0?0:iS(u[f+1]);o<s;o++)if(a=l[o],!nS(u,a)){r[d+h]=o,r[++h]=a,p=0;break}p&&(h--,r[--n]=e)}return n}function oS(e,t,n,r,i){var a,o,s,l=e._ptr,u=e._size,c=t._index,d=t._ptr,h=u[1],f=h;for(o=d[n],s=d[n+1],a=o;a<s;a++){var p=c[a];nS(l,p)||(f=aS(p,e,f,r,i))}for(a=f;a<h;a++)rS(l,r[a]);return f}var sS="csSpsolve",lS=["divideScalar","multiply","subtract"],uS=Le(sS,lS,(e=>{var{divideScalar:t,multiply:n,subtract:r}=e;return function(e,i,a,o,s,l,u){var c,d,h,f,p=e._values,m=e._index,v=e._ptr,g=e._size,y=g[1],b=i._values,x=i._index,w=i._ptr,_=oS(e,i,a,o,l);for(c=_;c<y;c++)s[o[c]]=0;for(d=w[a],h=w[a+1],c=d;c<h;c++)s[x[c]]=b[c];for(var C=_;C<y;C++){var S=o[C],N=l?l[S]:S;if(!(N<0))for(d=v[N],h=v[N+1],s[S]=t(s[S],p[u?d:h-1]),c=u?d+1:d,f=u?h:h-1;c<f;c++){var k=m[c];s[k]=r(s[k],n(p[c],s[S]))}}return _}})),cS="csLu",dS=["abs","divideScalar","multiply","subtract","larger","largerEq","SparseMatrix"],hS=Le(cS,dS,(e=>{var{abs:t,divideScalar:n,multiply:r,subtract:i,larger:a,largerEq:o,SparseMatrix:s}=e,l=uS({divideScalar:n,multiply:r,subtract:i});return function(e,i,u){if(!e)return null;var c,d=e._size,h=d[1],f=100,p=100;i&&(c=i.q,f=i.lnz||f,p=i.unz||p);var m,v,g=[],y=[],b=[],x=new s({values:g,index:y,ptr:b,size:[h,h]}),w=[],_=[],C=[],S=new s({values:w,index:_,ptr:C,size:[h,h]}),N=[],k=[],E=[];for(m=0;m<h;m++)k[m]=0,N[m]=-1,b[m+1]=0;f=0,p=0;for(var M=0;M<h;M++){b[M]=f,C[M]=p;var O=c?c[M]:M,D=l(x,e,O,E,k,N,1),T=-1,A=-1;for(v=D;v<h;v++)if(m=E[v],N[m]<0){var I=t(k[m]);a(I,A)&&(A=I,T=m)}else _[p]=N[m],w[p++]=k[m];if(-1===T||A<=0)return null;N[O]<0&&o(t(k[O]),r(A,u))&&(T=O);var $=k[T];for(_[p]=M,w[p++]=$,N[T]=M,y[f]=T,g[f++]=1,v=D;v<h;v++)m=E[v],N[m]<0&&(y[f]=m,g[f++]=n(k[m],$)),k[m]=0}for(b[h]=f,C[h]=p,v=0;v<f;v++)y[v]=N[y[v]];return g.splice(f,g.length-f),y.splice(f,y.length-f),w.splice(p,w.length-p),_.splice(p,_.length-p),{L:x,U:S,pinv:N}}})),fS="slu",pS=["typed","abs","add","multiply","transpose","divideScalar","subtract","larger","largerEq","SparseMatrix"],mS=Le(fS,pS,(e=>{var{typed:t,abs:n,add:r,multiply:i,transpose:a,divideScalar:o,subtract:s,larger:l,largerEq:u,SparseMatrix:c}=e,d=tS({add:r,multiply:i,transpose:a}),h=hS({abs:n,divideScalar:o,multiply:i,subtract:s,larger:l,largerEq:u,SparseMatrix:c});return t(fS,{"SparseMatrix, number, number":function(e,t,n){if(!Y(t)||t<0||t>3)throw new Error("Symbolic Ordering and Analysis order must be an integer number in the interval [0, 3]");if(n<0||n>1)throw new Error("Partial pivoting threshold must be a number from 0 to 1");var r=d(t,e,!1),i=h(e,r,n);return{L:i.L,U:i.U,p:i.pinv,q:r.q,toString:function(){return"L: "+this.L.toString()+"\nU: "+this.U.toString()+"\np: "+this.p.toString()+(this.q?"\nq: "+this.q.toString():"")+"\n"}}}})})),vS="trace",gS=["typed","matrix","add"],yS=Le(vS,gS,(e=>{var{typed:t,matrix:n,add:r}=e;return t("trace",{Array:function(e){return i(n(e))},SparseMatrix:a,DenseMatrix:i,any:Ae});function i(e){var t=e._size,n=e._data;switch(t.length){case 1:if(1===t[0])return Ae(n[0]);throw new RangeError("Matrix must be square (size: "+Ne(t)+")");case 2:var i=t[0],a=t[1];if(i===a){for(var o=0,s=0;s<i;s++)o=r(o,n[s][s]);return o}throw new RangeError("Matrix must be square (size: "+Ne(t)+")");default:throw new RangeError("Matrix must be two dimensional (size: "+Ne(t)+")")}}function a(e){var t=e._values,n=e._index,i=e._ptr,a=e._size,o=a[0],s=a[1];if(o===s){var l=0;if(t.length>0)for(var u=0;u<s;u++)for(var c=i[u],d=i[u+1],h=c;h<d;h++){var f=n[h];if(f===u){l=r(l,t[h]);break}if(f>u)break}return l}throw new RangeError("Matrix must be square (size: "+Ne(a)+")")}})),bS="usolveAll",xS=["typed","matrix","divideScalar","multiplyScalar","subtract","equalScalar","DenseMatrix"],wS=Le(bS,xS,(e=>{var{typed:t,matrix:n,divideScalar:r,multiplyScalar:i,subtract:a,equalScalar:o,DenseMatrix:s}=e,l=qw({DenseMatrix:s});return t(bS,{"SparseMatrix, Array | Matrix":function(e,t){return c(e,t)},"DenseMatrix, Array | Matrix":function(e,t){return u(e,t)},"Array, Array | Matrix":function(e,t){var r=n(e),i=u(r,t);return i.map((e=>e.valueOf()))}});function u(e,t){for(var n=[l(e,t,!0)._data.map((e=>e[0]))],u=e._data,c=e._size[0],d=e._size[1],h=d-1;h>=0;h--)for(var f=n.length,p=0;p<f;p++){var m=n[p];if(o(u[h][h],0))if(o(m[h],0)){if(0===p){var v=[...m];v[h]=1;for(var g=h-1;g>=0;g--)v[g]=a(v[g],u[g][h]);n.push(v)}}else{if(0===p)return[];n.splice(p,1),p-=1,f-=1}else{m[h]=r(m[h],u[h][h]);for(var y=h-1;y>=0;y--)m[y]=a(m[y],i(m[h],u[y][h]))}}return n.map((e=>new s({data:e.map((e=>[e])),size:[c,1]})))}function c(e,t){for(var n=[l(e,t,!0)._data.map((e=>e[0]))],u=e._size[0],c=e._size[1],d=e._values,h=e._index,f=e._ptr,p=c-1;p>=0;p--)for(var m=n.length,v=0;v<m;v++){for(var g=n[v],y=[],b=[],x=f[p],w=f[p+1],_=0,C=w-1;C>=x;C--){var S=h[C];S===p?_=d[C]:S<p&&(y.push(d[C]),b.push(S))}if(o(_,0))if(o(g[p],0)){if(0===v){var N=[...g];N[p]=1;for(var k=0,E=b.length;k<E;k++){var M=b[k];N[M]=a(N[M],y[k])}n.push(N)}}else{if(0===v)return[];n.splice(v,1),v-=1,m-=1}else{g[p]=r(g[p],_);for(var O=0,D=b.length;O<D;O++){var T=b[O];g[T]=a(g[T],i(g[p],y[O]))}}}return n.map((e=>new s({data:e.map((e=>[e])),size:[u,1]})))}})),_S="asin",CS=["typed","config","Complex"],SS=Le(_S,CS,(e=>{var{typed:t,config:n,Complex:r}=e;return t(_S,{number:function(e){return e>=-1&&e<=1||n.predictable?Math.asin(e):new r(e,0).asin()},Complex:function(e){return e.asin()},BigNumber:function(e){return e.asin()},"Array | Matrix":function(e){return Qn(e,this,!0)}})})),NS="ceil",kS=["typed","config","round","matrix","equalScalar","zeros","DenseMatrix"],ES=Le(NS,["typed","config","round"],(e=>{var{typed:t,config:n,round:r}=e;return t(NS,{number:function(e){return de(e,r(e),n.epsilon)?r(e):Math.ceil(e)},"number, number":function(e,t){if(de(e,r(e,t),n.epsilon))return r(e,t);var[i,a]="".concat(e,"e").split("e"),o=Math.ceil(Number("".concat(i,"e").concat(Number(a)+t)));return[i,a]="".concat(o,"e").split("e"),Number("".concat(i,"e").concat(Number(a)-t))}})})),MS=Le(NS,kS,(e=>{var{typed:t,config:n,round:r,matrix:i,equalScalar:a,zeros:o,DenseMatrix:s}=e,l=gb({typed:t,equalScalar:a}),u=xb({typed:t,DenseMatrix:s}),c=kb({typed:t}),d=ES({typed:t,config:n,round:r});return t("ceil",{number:d.signatures.number,"number,number":d.signatures["number,number"],Complex:function(e){return e.ceil()},"Complex, number":function(e,t){return e.ceil(t)},"Complex, BigNumber":function(e,t){return e.ceil(t.toNumber())},BigNumber:function(e){return fm(e,r(e),n.epsilon)?r(e):e.ceil()},"BigNumber, BigNumber":function(e,t){return fm(e,r(e,t),n.epsilon)?r(e,t):e.toDecimalPlaces(t.toNumber(),kc.ROUND_CEIL)},Fraction:function(e){return e.ceil()},"Fraction, number":function(e,t){return e.ceil(t)},"Fraction, BigNumber":function(e,t){return e.ceil(t.toNumber())},"Array | Matrix":function(e){return Qn(e,this,!0)},"Array, number | BigNumber":function(e,t){return Qn(e,(e=>this(e,t)),!0)},"SparseMatrix, number | BigNumber":function(e,t){return l(e,t,this,!1)},"DenseMatrix, number | BigNumber":function(e,t){return c(e,t,this,!1)},"number | Complex | Fraction | BigNumber, Array":function(e,t){return c(i(t),e,this,!0).valueOf()},"number | Complex | Fraction | BigNumber, Matrix":function(e,t){return a(e,0)?o(t.size(),t.storage()):"dense"===t.storage()?c(t,e,this,!0):u(t,e,this,!0)}})})),OS="composition",DS=["typed","addScalar","combinations","isNegative","isPositive","isInteger","larger"],TS=Le(OS,DS,(e=>{var{typed:t,addScalar:n,combinations:r,isPositive:i,isNegative:a,isInteger:o,larger:s}=e;return t(OS,{"number | BigNumber, number | BigNumber":function(e,t){if(!(o(e)&&i(e)&&o(t)&&i(t)))throw new TypeError("Positive integer value expected in function composition");if(s(t,e))throw new TypeError("k must be less than or equal to n in function composition");return r(n(e,-1),n(t,-1))}})})),AS="cross",IS=["typed","matrix","subtract","multiply"],$S=Le(AS,IS,(e=>{var{typed:t,matrix:n,subtract:r,multiply:i}=e;return t(AS,{"Matrix, Matrix":function(e,t){return n(a(e.toArray(),t.toArray()))},"Matrix, Array":function(e,t){return n(a(e.toArray(),t))},"Array, Matrix":function(e,t){return n(a(e,t.toArray()))},"Array, Array":a});function a(e,t){var n=Math.max(vt(e).length,vt(t).length);e=kt(e),t=kt(t);var a=vt(e),o=vt(t);if(1!==a.length||1!==o.length||3!==a[0]||3!==o[0])throw new RangeError("Vectors with length 3 expected (Size A = ["+a.join(", ")+"], B = ["+o.join(", ")+"])");var s=[r(i(e[1],t[2]),i(e[2],t[1])),r(i(e[2],t[0]),i(e[0],t[2])),r(i(e[0],t[1]),i(e[1],t[0]))];return n>1?[s]:s}})),PS="det",jS=["typed","matrix","subtract","multiply","divideScalar","isZero","unaryMinus"],FS=Le(PS,jS,(e=>{var{typed:t,matrix:n,subtract:r,multiply:i,divideScalar:a,isZero:o,unaryMinus:s}=e;return t(PS,{any:function(e){return Ae(e)},"Array | Matrix":function(e){var t;switch(m(e)?t=e.size():Array.isArray(e)?(e=n(e),t=e.size()):t=[],t.length){case 0:return Ae(e);case 1:if(1===t[0])return Ae(e.valueOf()[0]);throw new RangeError("Matrix must be square (size: "+Ne(t)+")");case 2:var r=t[0],i=t[1];if(r===i)return l(e.clone().valueOf(),r,i);throw new RangeError("Matrix must be square (size: "+Ne(t)+")");default:throw new RangeError("Matrix must be two dimensional (size: "+Ne(t)+")")}}});function l(e,t,n){if(1===t)return Ae(e[0][0]);if(2===t)return r(i(e[0][0],e[1][1]),i(e[1][0],e[0][1]));for(var l=!1,u=new Array(t).fill(0).map(((e,t)=>t)),c=0;c<t;c++){var d=u[c];if(o(e[d][c])){var h=void 0;for(h=c+1;h<t;h++)if(!o(e[u[h]][c])){d=u[h],u[h]=u[c],u[c]=d,l=!l;break}if(h===t)return e[d][c]}for(var f=e[d][c],p=0===c?1:e[u[c-1]][c-1],m=c+1;m<t;m++)for(var v=u[m],g=c+1;g<t;g++)e[v][g]=a(r(i(e[v][g],f),i(e[v][c],e[d][g])),p)}var y=e[u[t-1]][t-1];return l?s(y):y}})),BS="distance",LS=["typed","addScalar","subtract","divideScalar","multiplyScalar","unaryMinus","sqrt","abs"],zS=Le(BS,LS,(e=>{var{typed:t,addScalar:n,subtract:r,multiplyScalar:i,divideScalar:a,unaryMinus:o,sqrt:s,abs:l}=e;return t(BS,{"Array, Array, Array":function(e,t,n){if(2===e.length&&2===t.length&&2===n.length){if(!d(e))throw new TypeError("Array with 2 numbers or BigNumbers expected for first argument");if(!d(t))throw new TypeError("Array with 2 numbers or BigNumbers expected for second argument");if(!d(n))throw new TypeError("Array with 2 numbers or BigNumbers expected for third argument");var s=a(r(n[1],n[0]),r(t[1],t[0])),l=i(i(s,s),t[0]),u=o(i(s,t[0])),c=e[1];return g(e[0],e[1],l,u,c)}throw new TypeError("Invalid Arguments: Try again")},"Object, Object, Object":function(e,t,n){if(2===Object.keys(e).length&&2===Object.keys(t).length&&2===Object.keys(n).length){if(!d(e))throw new TypeError("Values of pointX and pointY should be numbers or BigNumbers");if(!d(t))throw new TypeError("Values of lineOnePtX and lineOnePtY should be numbers or BigNumbers");if(!d(n))throw new TypeError("Values of lineTwoPtX and lineTwoPtY should be numbers or BigNumbers");if("pointX"in e&&"pointY"in e&&"lineOnePtX"in t&&"lineOnePtY"in t&&"lineTwoPtX"in n&&"lineTwoPtY"in n){var s=a(r(n.lineTwoPtY,n.lineTwoPtX),r(t.lineOnePtY,t.lineOnePtX)),l=i(i(s,s),t.lineOnePtX),u=o(i(s,t.lineOnePtX)),c=e.pointX;return g(e.pointX,e.pointY,l,u,c)}throw new TypeError("Key names do not match")}throw new TypeError("Invalid Arguments: Try again")},"Array, Array":function(e,t){if(2===e.length&&3===t.length){if(!d(e))throw new TypeError("Array with 2 numbers or BigNumbers expected for first argument");if(!h(t))throw new TypeError("Array with 3 numbers or BigNumbers expected for second argument");return g(e[0],e[1],t[0],t[1],t[2])}if(3===e.length&&6===t.length){if(!h(e))throw new TypeError("Array with 3 numbers or BigNumbers expected for first argument");if(!p(t))throw new TypeError("Array with 6 numbers or BigNumbers expected for second argument");return y(e[0],e[1],e[2],t[0],t[1],t[2],t[3],t[4],t[5])}if(e.length===t.length&&e.length>0){if(!f(e))throw new TypeError("All values of an array should be numbers or BigNumbers");if(!f(t))throw new TypeError("All values of an array should be numbers or BigNumbers");return b(e,t)}throw new TypeError("Invalid Arguments: Try again")},"Object, Object":function(e,t){if(2===Object.keys(e).length&&3===Object.keys(t).length){if(!d(e))throw new TypeError("Values of pointX and pointY should be numbers or BigNumbers");if(!h(t))throw new TypeError("Values of xCoeffLine, yCoeffLine and constant should be numbers or BigNumbers");if("pointX"in e&&"pointY"in e&&"xCoeffLine"in t&&"yCoeffLine"in t&&"constant"in t)return g(e.pointX,e.pointY,t.xCoeffLine,t.yCoeffLine,t.constant);throw new TypeError("Key names do not match")}if(3===Object.keys(e).length&&6===Object.keys(t).length){if(!h(e))throw new TypeError("Values of pointX, pointY and pointZ should be numbers or BigNumbers");if(!p(t))throw new TypeError("Values of x0, y0, z0, a, b and c should be numbers or BigNumbers");if("pointX"in e&&"pointY"in e&&"x0"in t&&"y0"in t&&"z0"in t&&"a"in t&&"b"in t&&"c"in t)return y(e.pointX,e.pointY,e.pointZ,t.x0,t.y0,t.z0,t.a,t.b,t.c);throw new TypeError("Key names do not match")}if(2===Object.keys(e).length&&2===Object.keys(t).length){if(!d(e))throw new TypeError("Values of pointOneX and pointOneY should be numbers or BigNumbers");if(!d(t))throw new TypeError("Values of pointTwoX and pointTwoY should be numbers or BigNumbers");if("pointOneX"in e&&"pointOneY"in e&&"pointTwoX"in t&&"pointTwoY"in t)return b([e.pointOneX,e.pointOneY],[t.pointTwoX,t.pointTwoY]);throw new TypeError("Key names do not match")}if(3===Object.keys(e).length&&3===Object.keys(t).length){if(!h(e))throw new TypeError("Values of pointOneX, pointOneY and pointOneZ should be numbers or BigNumbers");if(!h(t))throw new TypeError("Values of pointTwoX, pointTwoY and pointTwoZ should be numbers or BigNumbers");if("pointOneX"in e&&"pointOneY"in e&&"pointOneZ"in e&&"pointTwoX"in t&&"pointTwoY"in t&&"pointTwoZ"in t)return b([e.pointOneX,e.pointOneY,e.pointOneZ],[t.pointTwoX,t.pointTwoY,t.pointTwoZ]);throw new TypeError("Key names do not match")}throw new TypeError("Invalid Arguments: Try again")},Array:function(e){if(!v(e))throw new TypeError("Incorrect array format entered for pairwise distance calculation");return x(e)}});function c(e){return"number"===typeof e||u(e)}function d(e){return e.constructor!==Array&&(e=m(e)),c(e[0])&&c(e[1])}function h(e){return e.constructor!==Array&&(e=m(e)),c(e[0])&&c(e[1])&&c(e[2])}function f(e){return Array.isArray(e)||(e=m(e)),e.every(c)}function p(e){return e.constructor!==Array&&(e=m(e)),c(e[0])&&c(e[1])&&c(e[2])&&c(e[3])&&c(e[4])&&c(e[5])}function m(e){for(var t=Object.keys(e),n=[],r=0;r<t.length;r++)n.push(e[t[r]]);return n}function v(e){if(2===e[0].length&&c(e[0][0])&&c(e[0][1])){if(e.some((e=>2!==e.length||!c(e[0])||!c(e[1]))))return!1}else{if(!(3===e[0].length&&c(e[0][0])&&c(e[0][1])&&c(e[0][2])))return!1;if(e.some((e=>3!==e.length||!c(e[0])||!c(e[1])||!c(e[2]))))return!1}return!0}function g(e,t,r,o,u){var c=l(n(n(i(r,e),i(o,t)),u)),d=s(n(i(r,r),i(o,o)));return a(c,d)}function y(e,t,o,l,u,c,d,h,f){var p=[r(i(r(u,t),f),i(r(c,o),h)),r(i(r(c,o),d),i(r(l,e),f)),r(i(r(l,e),h),i(r(u,t),d))];p=s(n(n(i(p[0],p[0]),i(p[1],p[1])),i(p[2],p[2])));var m=s(n(n(i(d,d),i(h,h)),i(f,f)));return a(p,m)}function b(e,t){for(var a=e.length,o=0,l=0,u=0;u<a;u++)l=r(e[u],t[u]),o=n(i(l,l),o);return s(o)}function x(e){for(var t=[],n=[],r=[],i=0;i<e.length-1;i++)for(var a=i+1;a<e.length;a++)2===e[0].length?(n=[e[i][0],e[i][1]],r=[e[a][0],e[a][1]]):3===e[0].length&&(n=[e[i][0],e[i][1],e[i][2]],r=[e[a][0],e[a][1],e[a][2]]),t.push(b(n,r));return t}})),RS="dotMultiply",VS=["typed","matrix","equalScalar","multiplyScalar"],qS=Le(RS,VS,(e=>{var{typed:t,matrix:n,equalScalar:r,multiplyScalar:i}=e,a=lb({typed:t,equalScalar:r}),o=j_({typed:t,equalScalar:r}),s=gb({typed:t,equalScalar:r}),l=Cb({typed:t}),u=kb({typed:t});return t(RS,{"any, any":i,"SparseMatrix, SparseMatrix":function(e,t){return o(e,t,i,!1)},"SparseMatrix, DenseMatrix":function(e,t){return a(t,e,i,!0)},"DenseMatrix, SparseMatrix":function(e,t){return a(e,t,i,!1)},"DenseMatrix, DenseMatrix":function(e,t){return l(e,t,i)},"Array, Array":function(e,t){return this(n(e),n(t)).valueOf()},"Array, Matrix":function(e,t){return this(n(e),t)},"Matrix, Array":function(e,t){return this(e,n(t))},"SparseMatrix, any":function(e,t){return s(e,t,i,!1)},"DenseMatrix, any":function(e,t){return u(e,t,i,!1)},"any, SparseMatrix":function(e,t){return s(t,e,i,!0)},"any, DenseMatrix":function(e,t){return u(t,e,i,!0)},"Array, any":function(e,t){return u(n(e),t,i,!1).valueOf()},"any, Array":function(e,t){return u(n(t),e,i,!0).valueOf()}})})),HS="FibonacciHeap",US=["smaller","larger"],WS=Le(HS,US,(e=>{var{smaller:t,larger:n}=e,r=1/Math.log((1+Math.sqrt(5))/2);function i(){if(!(this instanceof i))throw new SyntaxError("Constructor must be called with the new operator");this._minimum=null,this._size=0}function a(e,n,r){n.key=r;var i=n.parent;return i&&t(n.key,i.key)&&(o(e,n,i),s(e,i)),t(n.key,e.key)&&(e=n),e}function o(e,t,n){t.left.right=t.right,t.right.left=t.left,n.degree--,n.child===t&&(n.child=t.right),0===n.degree&&(n.child=null),t.left=e,t.right=e.right,e.right=t,t.right.left=t,t.parent=null,t.mark=!1}function s(e,t){var n=t.parent;n&&(t.mark?(o(e,t,n),s(n)):t.mark=!0)}i.prototype.type="FibonacciHeap",i.prototype.isFibonacciHeap=!0,i.prototype.insert=function(e,n){var r={key:e,value:n,degree:0};if(this._minimum){var i=this._minimum;r.left=i,r.right=i.right,i.right=r,r.right.left=r,t(e,i.key)&&(this._minimum=r)}else r.left=r,r.right=r,this._minimum=r;return this._size++,r},i.prototype.size=function(){return this._size},i.prototype.clear=function(){this._minimum=null,this._size=0},i.prototype.isEmpty=function(){return 0===this._size},i.prototype.extractMinimum=function(){var e=this._minimum;if(null===e)return e;var t=this._minimum,n=e.degree,r=e.child;while(n>0){var i=r.right;r.left.right=r.right,r.right.left=r.left,r.left=t,r.right=t.right,t.right=r,r.right.left=r,r.parent=null,r=i,n--}return e.left.right=e.right,e.right.left=e.left,e===e.right?t=null:(t=e.right,t=u(t,this._size)),this._size--,this._minimum=t,e},i.prototype.remove=function(e){this._minimum=a(this._minimum,e,-1),this.extractMinimum()};var l=function(e,t){e.left.right=e.right,e.right.left=e.left,e.parent=t,t.child?(e.left=t.child,e.right=t.child.right,t.child.right=e,e.right.left=e):(t.child=e,e.right=e,e.left=e),t.degree++,e.mark=!1};function u(e,i){var a,o=Math.floor(Math.log(i)*r)+1,s=new Array(o),u=0,c=e;if(c){u++,c=c.right;while(c!==e)u++,c=c.right}while(u>0){var d=c.degree,h=c.right;while(1){if(a=s[d],!a)break;if(n(c.key,a.key)){var f=a;a=c,c=f}l(a,c),s[d]=null,d++}s[d]=c,c=h,u--}e=null;for(var p=0;p<o;p++)a=s[p],a&&(e?(a.left.right=a.right,a.right.left=a.left,a.left=e,a.right=e.right,e.right=a,a.right.left=a,t(a.key,e.key)&&(e=a)):e=a);return e}return i}),{isClass:!0}),YS="fix",GS=["typed","Complex","matrix","ceil","floor","equalScalar","zeros","DenseMatrix"],KS=Le(YS,["typed","ceil","floor"],(e=>{var{typed:t,ceil:n,floor:r}=e;return t(YS,{number:function(e){return e>0?r(e):n(e)},"number, number":function(e,t){return e>0?r(e,t):n(e,t)}})})),XS=Le(YS,GS,(e=>{var{typed:t,Complex:n,matrix:r,ceil:i,floor:a,equalScalar:o,zeros:s,DenseMatrix:l}=e,u=xb({typed:t,DenseMatrix:l}),c=kb({typed:t}),d=KS({typed:t,ceil:i,floor:a});return t("fix",{number:d.signatures.number,"number, number | BigNumber":d.signatures["number,number"],Complex:function(e){return new n(e.re>0?Math.floor(e.re):Math.ceil(e.re),e.im>0?Math.floor(e.im):Math.ceil(e.im))},"Complex, number":function(e,t){return new n(e.re>0?a(e.re,t):i(e.re,t),e.im>0?a(e.im,t):i(e.im,t))},"Complex, BigNumber":function(e,t){var r=t.toNumber();return new n(e.re>0?a(e.re,r):i(e.re,r),e.im>0?a(e.im,r):i(e.im,r))},BigNumber:function(e){return e.isNegative()?i(e):a(e)},"BigNumber, number | BigNumber":function(e,t){return e.isNegative()?i(e,t):a(e,t)},Fraction:function(e){return e.s<0?e.ceil():e.floor()},"Fraction, number | BigNumber":function(e,t){return e.s<0?i(e,t):a(e,t)},"Array | Matrix":function(e){return Qn(e,this,!0)},"Array | Matrix, number | BigNumber":function(e,t){return Qn(e,(e=>this(e,t)),!0)},"number | Complex | Fraction | BigNumber, Array":function(e,t){return c(r(t),e,this,!0).valueOf()},"number | Complex | Fraction | BigNumber, Matrix":function(e,t){return o(e,0)?s(t.size(),t.storage()):"dense"===t.storage()?c(t,e,this,!0):u(t,e,this,!0)}})})),ZS="ImmutableDenseMatrix",JS=["smaller","DenseMatrix"],QS=Le(ZS,JS,(e=>{var{smaller:t,DenseMatrix:n}=e;function r(e,t){if(!(this instanceof r))throw new SyntaxError("Constructor must be called with the new operator");if(t&&!f(t))throw new Error("Invalid datatype: "+t);if(m(e)||p(e)){var i=new n(e,t);this._data=i._data,this._size=i._size,this._datatype=i._datatype,this._min=null,this._max=null}else if(e&&p(e.data)&&p(e.size))this._data=e.data,this._size=e.size,this._datatype=e.datatype,this._min="undefined"!==typeof e.min?e.min:null,this._max="undefined"!==typeof e.max?e.max:null;else{if(e)throw new TypeError("Unsupported type of data ("+W(e)+")");this._data=[],this._size=[0],this._datatype=t,this._min=null,this._max=null}}return r.prototype=new n,r.prototype.type="ImmutableDenseMatrix",r.prototype.isImmutableDenseMatrix=!0,r.prototype.subset=function(e){switch(arguments.length){case 1:var t=n.prototype.subset.call(this,e);return m(t)?new r({data:t._data,size:t._size,datatype:t._datatype}):t;case 2:case 3:throw new Error("Cannot invoke set subset on an Immutable Matrix instance");default:throw new SyntaxError("Wrong number of arguments")}},r.prototype.set=function(){throw new Error("Cannot invoke set on an Immutable Matrix instance")},r.prototype.resize=function(){throw new Error("Cannot invoke resize on an Immutable Matrix instance")},r.prototype.reshape=function(){throw new Error("Cannot invoke reshape on an Immutable Matrix instance")},r.prototype.clone=function(){return new r({data:Ae(this._data),size:Ae(this._size),datatype:this._datatype})},r.prototype.toJSON=function(){return{mathjs:"ImmutableDenseMatrix",data:this._data,size:this._size,datatype:this._datatype}},r.fromJSON=function(e){return new r(e)},r.prototype.swapRows=function(){throw new Error("Cannot invoke swapRows on an Immutable Matrix instance")},r.prototype.min=function(){if(null===this._min){var e=null;this.forEach((function(n){(null===e||t(n,e))&&(e=n)})),this._min=null!==e?e:void 0}return this._min},r.prototype.max=function(){if(null===this._max){var e=null;this.forEach((function(n){(null===e||t(e,n))&&(e=n)})),this._max=null!==e?e:void 0}return this._max},r}),{isClass:!0}),eN="Index",tN=["ImmutableDenseMatrix"],nN=Le(eN,tN,(e=>{var{ImmutableDenseMatrix:t}=e;function n(e){if(!(this instanceof n))throw new SyntaxError("Constructor must be called with the new operator");this._dimensions=[],this._isScalar=!0;for(var t=0,i=arguments.length;t<i;t++){var a=arguments[t];if(b(a))this._dimensions.push(a),this._isScalar=!1;else if(Array.isArray(a)||m(a)){var o=r(a.valueOf());this._dimensions.push(o);var s=o.size();1===s.length&&1===s[0]||(this._isScalar=!1)}else if("number"===typeof a)this._dimensions.push(r([a]));else{if("string"!==typeof a)throw new TypeError("Dimension must be an Array, Matrix, number, string, or Range");this._dimensions.push(a)}}}function r(e){for(var n=0,r=e.length;n<r;n++)if("number"!==typeof e[n]||!Y(e[n]))throw new TypeError("Index parameters must be positive integer numbers");return new t(e)}return n.prototype.type="Index",n.prototype.isIndex=!0,n.prototype.clone=function(){var e=new n;return e._dimensions=Ae(this._dimensions),e._isScalar=this._isScalar,e},n.create=function(e){var t=new n;return n.apply(t,e),t},n.prototype.size=function(){for(var e=[],t=0,n=this._dimensions.length;t<n;t++){var r=this._dimensions[t];e[t]="string"===typeof r?1:r.size()[0]}return e},n.prototype.max=function(){for(var e=[],t=0,n=this._dimensions.length;t<n;t++){var r=this._dimensions[t];e[t]="string"===typeof r?r:r.max()}return e},n.prototype.min=function(){for(var e=[],t=0,n=this._dimensions.length;t<n;t++){var r=this._dimensions[t];e[t]="string"===typeof r?r:r.min()}return e},n.prototype.forEach=function(e){for(var t=0,n=this._dimensions.length;t<n;t++)e(this._dimensions[t],t,this)},n.prototype.dimension=function(e){return this._dimensions[e]||null},n.prototype.isObjectProperty=function(){return 1===this._dimensions.length&&"string"===typeof this._dimensions[0]},n.prototype.getObjectProperty=function(){return this.isObjectProperty()?this._dimensions[0]:null},n.prototype.isScalar=function(){return this._isScalar},n.prototype.toArray=function(){for(var e=[],t=0,n=this._dimensions.length;t<n;t++){var r=this._dimensions[t];e.push("string"===typeof r?r:r.toArray())}return e},n.prototype.valueOf=n.prototype.toArray,n.prototype.toString=function(){for(var e=[],t=0,n=this._dimensions.length;t<n;t++){var r=this._dimensions[t];"string"===typeof r?e.push(JSON.stringify(r)):e.push(r.toString())}return"["+e.join(", ")+"]"},n.prototype.toJSON=function(){return{mathjs:"Index",dimensions:this._dimensions}},n.fromJSON=function(e){return n.create(e.dimensions)},n}),{isClass:!0}),rN="intersect",iN=["typed","config","abs","add","addScalar","matrix","multiply","multiplyScalar","divideScalar","subtract","smaller","equalScalar","flatten","isZero","isNumeric"],aN=Le(rN,iN,(e=>{var{typed:t,config:n,abs:r,add:i,addScalar:a,matrix:o,multiply:s,multiplyScalar:l,divideScalar:u,subtract:c,smaller:d,equalScalar:h,flatten:f,isZero:p,isNumeric:m}=e;return t("intersect",{"Array, Array, Array":v,"Array, Array, Array, Array":g,"Matrix, Matrix, Matrix":function(e,t,n){var r=v(e.valueOf(),t.valueOf(),n.valueOf());return null===r?null:o(r)},"Matrix, Matrix, Matrix, Matrix":function(e,t,n,r){var i=g(e.valueOf(),t.valueOf(),n.valueOf(),r.valueOf());return null===i?null:o(i)}});function v(e,t,n){if(e=y(e),t=y(t),n=y(n),!x(e))throw new TypeError("Array with 3 numbers or BigNumbers expected for first argument");if(!x(t))throw new TypeError("Array with 3 numbers or BigNumbers expected for second argument");if(!w(n))throw new TypeError("Array with 4 numbers expected as third argument");return N(e[0],e[1],e[2],t[0],t[1],t[2],n[0],n[1],n[2],n[3])}function g(e,t,n,r){if(e=y(e),t=y(t),n=y(n),r=y(r),2===e.length){if(!b(e))throw new TypeError("Array with 2 numbers or BigNumbers expected for first argument");if(!b(t))throw new TypeError("Array with 2 numbers or BigNumbers expected for second argument");if(!b(n))throw new TypeError("Array with 2 numbers or BigNumbers expected for third argument");if(!b(r))throw new TypeError("Array with 2 numbers or BigNumbers expected for fourth argument");return _(e,t,n,r)}if(3===e.length){if(!x(e))throw new TypeError("Array with 3 numbers or BigNumbers expected for first argument");if(!x(t))throw new TypeError("Array with 3 numbers or BigNumbers expected for second argument");if(!x(n))throw new TypeError("Array with 3 numbers or BigNumbers expected for third argument");if(!x(r))throw new TypeError("Array with 3 numbers or BigNumbers expected for fourth argument");return S(e[0],e[1],e[2],t[0],t[1],t[2],n[0],n[1],n[2],r[0],r[1],r[2])}throw new TypeError("Arrays with two or thee dimensional points expected")}function y(e){return 1===e.length?e[0]:e.length>1&&Array.isArray(e[0])&&e.every((e=>Array.isArray(e)&&1===e.length))?f(e):e}function b(e){return 2===e.length&&m(e[0])&&m(e[1])}function x(e){return 3===e.length&&m(e[0])&&m(e[1])&&m(e[2])}function w(e){return 4===e.length&&m(e[0])&&m(e[1])&&m(e[2])&&m(e[3])}function _(e,t,o,h){var f=e,m=o,v=c(f,t),g=c(m,h),y=c(l(v[0],g[1]),l(g[0],v[1]));if(p(y))return null;if(d(r(y),n.epsilon))return null;var b=l(g[0],f[1]),x=l(g[1],f[0]),w=l(g[0],m[1]),_=l(g[1],m[0]),C=u(a(c(c(b,x),w),_),y);return i(s(v,C),f)}function C(e,t,n,r,i,o,s,u,d,h,f,p){var m=l(c(e,t),c(n,r)),v=l(c(i,o),c(s,u)),g=l(c(d,h),c(f,p));return a(a(m,v),g)}function S(e,t,n,r,i,o,s,d,f,m,v,g){var y=C(e,s,m,s,t,d,v,d,n,f,g,f),b=C(m,s,r,e,v,d,i,t,g,f,o,n),x=C(e,s,r,e,t,d,i,t,n,f,o,n),w=C(m,s,m,s,v,d,v,d,g,f,g,f),_=C(r,e,r,e,i,t,i,t,o,n,o,n),S=c(l(y,b),l(x,w)),N=c(l(_,w),l(b,b));if(p(N))return null;var k=u(S,N),E=u(a(y,l(k,b)),w),M=a(e,l(k,c(r,e))),O=a(t,l(k,c(i,t))),D=a(n,l(k,c(o,n))),T=a(s,l(E,c(m,s))),A=a(d,l(E,c(v,d))),I=a(f,l(E,c(g,f)));return h(M,T)&&h(O,A)&&h(D,I)?[M,O,D]:null}function N(e,t,n,r,i,o,s,d,h,f){var p=l(e,s),m=l(r,s),v=l(t,d),g=l(i,d),y=l(n,h),b=l(o,h),x=c(c(c(f,p),v),y),w=c(c(c(a(a(m,g),b),p),v),y),_=u(x,w),C=a(e,l(_,c(r,e))),S=a(t,l(_,c(i,t))),N=a(n,l(_,c(o,n)));return[C,S,N]}})),oN="lcm",sN=["typed","matrix","equalScalar"],lN=Le(oN,sN,(e=>{var{typed:t,matrix:n,equalScalar:r}=e,i=lb({typed:t,equalScalar:r}),a=Pb({typed:t,equalScalar:r}),o=gb({typed:t,equalScalar:r}),s=Cb({typed:t}),l=kb({typed:t});return t(oN,{"number, number":Yh,"BigNumber, BigNumber":u,"Fraction, Fraction":function(e,t){return e.lcm(t)},"SparseMatrix, SparseMatrix":function(e,t){return a(e,t,this)},"SparseMatrix, DenseMatrix":function(e,t){return i(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return i(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return s(e,t,this)},"Array, Array":function(e,t){return this(n(e),n(t)).valueOf()},"Array, Matrix":function(e,t){return this(n(e),t)},"Matrix, Array":function(e,t){return this(e,n(t))},"SparseMatrix, number | BigNumber":function(e,t){return o(e,t,this,!1)},"DenseMatrix, number | BigNumber":function(e,t){return l(e,t,this,!1)},"number | BigNumber, SparseMatrix":function(e,t){return o(t,e,this,!0)},"number | BigNumber, DenseMatrix":function(e,t){return l(t,e,this,!0)},"Array, number | BigNumber":function(e,t){return l(n(e),t,this,!1).valueOf()},"number | BigNumber, Array":function(e,t){return l(n(t),e,this,!0).valueOf()},"Array | Matrix | number | BigNumber, Array | Matrix | number | BigNumber, ...Array | Matrix | number | BigNumber":function(e,t,n){for(var r=this(e,t),i=0;i<n.length;i++)r=this(r,n[i]);return r}});function u(e,t){if(!e.isInt()||!t.isInt())throw new Error("Parameters in function lcm must be integer numbers");if(e.isZero())return e;if(t.isZero())return t;var n=e.times(t);while(!t.isZero()){var r=t;t=e.mod(r),e=r}return n.div(e).abs()}})),uN="log1p",cN=["typed","config","divideScalar","log","Complex"],dN=Le(uN,cN,(e=>{var{typed:t,config:n,divideScalar:r,log:i,Complex:a}=e;return t(uN,{number:function(e){return e>=-1||n.predictable?Z(e):o(new a(e,0))},Complex:o,BigNumber:function(e){var t=e.plus(1);return!t.isNegative()||n.predictable?t.ln():o(new a(e.toNumber(),0))},"Array | Matrix":function(e){return Qn(e,this)},"any, any":function(e,t){return r(this(e),i(t))}});function o(e){var t=e.re+1;return new a(Math.log(Math.sqrt(t*t+e.im*e.im)),Math.atan2(e.im,t))}})),hN="quantileSeq",fN=["typed","add","multiply","partitionSelect","compare"],pN=Le(hN,fN,(e=>{var{typed:t,add:n,multiply:r,partitionSelect:i,compare:a}=e;function o(e,t,n){var r,i,a;if(arguments.length<2||arguments.length>3)throw new SyntaxError("Function quantileSeq requires two or three parameters");if(v(e)){if(n=n||!1,"boolean"===typeof n){if(i=e.valueOf(),l(t)){if(t<0)throw new Error("N/prob must be non-negative");if(t<=1)return s(i,t,n);if(t>1){if(!Y(t))throw new Error("N must be a positive integer");var o=t+1;r=new Array(t);for(var c=0;c<t;)r[c]=s(i,++c/o,n);return r}}if(u(t)){var d=t.constructor;if(t.isNegative())throw new Error("N/prob must be non-negative");if(a=new d(1),t.lte(a))return new d(s(i,t,n));if(t.gt(a)){if(!t.isInteger())throw new Error("N must be a positive integer");var h=t.toNumber();if(h>4294967295)throw new Error("N must be less than or equal to 2^32-1, as that is the maximum length of an Array");var f=new d(h+1);r=new Array(h);for(var p=0;p<h;)r[p]=new d(s(i,new d(++p).div(f),n));return r}}if(Array.isArray(t)){r=new Array(t.length);for(var m=0;m<r.length;++m){var g=t[m];if(l(g)){if(g<0||g>1)throw new Error("Probability must be between 0 and 1, inclusive")}else{if(!u(g))throw new TypeError("Unexpected type of argument in function quantileSeq");if(a=new g.constructor(1),g.isNegative()||g.gt(a))throw new Error("Probability must be between 0 and 1, inclusive")}r[m]=s(i,g,n)}return r}throw new TypeError("Unexpected type of argument in function quantileSeq")}throw new TypeError("Unexpected type of argument in function quantileSeq")}throw new TypeError("Unexpected type of argument in function quantileSeq")}function s(e,t,o){var s=Dt(e),u=s.length;if(0===u)throw new Error("Cannot calculate quantile of an empty sequence");if(l(t)){var d=t*(u-1),h=d%1;if(0===h){var f=o?s[d]:i(s,d);return c(f),f}var p,m,v=Math.floor(d);if(o)p=s[v],m=s[v+1];else{m=i(s,v+1),p=s[v];for(var g=0;g<v;++g)a(s[g],p)>0&&(p=s[g])}return c(p),c(m),n(r(p,1-h),r(m,h))}var y=t.times(u-1);if(y.isInteger()){y=y.toNumber();var b=o?s[y]:i(s,y);return c(b),b}var x,w,_=y.floor(),C=y.minus(_),S=_.toNumber();if(o)x=s[S],w=s[S+1];else{w=i(s,S+1),x=s[S];for(var N=0;N<S;++N)a(s[N],x)>0&&(x=s[N])}c(x),c(w);var k=new C.constructor(1);return n(r(x,k.minus(C)),r(w,C))}var c=t({"number | BigNumber | Unit":function(e){return e}});return o})),mN="setCartesian",vN=["typed","size","subset","compareNatural","Index","DenseMatrix"],gN=Le(mN,vN,(e=>{var{typed:t,size:n,subset:r,compareNatural:i,Index:a,DenseMatrix:o}=e;return t(mN,{"Array | Matrix, Array | Matrix":function(e,t){var s=[];if(0!==r(n(e),new a(0))&&0!==r(n(t),new a(0))){var l=Dt(Array.isArray(e)?e:e.toArray()).sort(i),u=Dt(Array.isArray(t)?t:t.toArray()).sort(i);s=[];for(var c=0;c<l.length;c++)for(var d=0;d<u.length;d++)s.push([l[c],u[d]])}return Array.isArray(e)&&Array.isArray(t)?s:new o(s)}})})),yN="setDistinct",bN=["typed","size","subset","compareNatural","Index","DenseMatrix"],xN=Le(yN,bN,(e=>{var{typed:t,size:n,subset:r,compareNatural:i,Index:a,DenseMatrix:o}=e;return t(yN,{"Array | Matrix":function(e){var t;if(0===r(n(e),new a(0)))t=[];else{var s=Dt(Array.isArray(e)?e:e.toArray()).sort(i);t=[],t.push(s[0]);for(var l=1;l<s.length;l++)0!==i(s[l],s[l-1])&&t.push(s[l])}return Array.isArray(e)?t:new o(t)}})})),wN="setIsSubset",_N=["typed","size","subset","compareNatural","Index"],CN=Le(wN,_N,(e=>{var{typed:t,size:n,subset:r,compareNatural:i,Index:a}=e;return t(wN,{"Array | Matrix, Array | Matrix":function(e,t){if(0===r(n(e),new a(0)))return!0;if(0===r(n(t),new a(0)))return!1;for(var o,s=jt(Dt(Array.isArray(e)?e:e.toArray()).sort(i)),l=jt(Dt(Array.isArray(t)?t:t.toArray()).sort(i)),u=0;u<s.length;u++){o=!1;for(var c=0;c<l.length;c++)if(0===i(s[u].value,l[c].value)&&s[u].identifier===l[c].identifier){o=!0;break}if(!1===o)return!1}return!0}})})),SN="setPowerset",NN=["typed","size","subset","compareNatural","Index"],kN=Le(SN,NN,(e=>{var{typed:t,size:n,subset:r,compareNatural:i,Index:a}=e;return t(SN,{"Array | Matrix":function(e){if(0===r(n(e),new a(0)))return[];var t=Dt(Array.isArray(e)?e:e.toArray()).sort(i),l=[],u=0;while(u.toString(2).length<=t.length)l.push(o(t,u.toString(2).split("").reverse())),u++;return s(l)}});function o(e,t){for(var n=[],r=0;r<t.length;r++)"1"===t[r]&&n.push(e[r]);return n}function s(e){for(var t=[],n=e.length-1;n>0;n--)for(var r=0;r<n;r++)e[r].length>e[r+1].length&&(t=e[r],e[r]=e[r+1],e[r+1]=t);return e}})),EN="sort",MN=["typed","matrix","compare","compareNatural"],ON=Le(EN,MN,(e=>{var{typed:t,matrix:n,compare:r,compareNatural:i}=e,a=r,o=(e,t)=>-r(e,t);return t(EN,{Array:function(e){return l(e),e.sort(a)},Matrix:function(e){return u(e),n(e.toArray().sort(a),e.storage())},"Array, function":function(e,t){return l(e),e.sort(t)},"Matrix, function":function(e,t){return u(e),n(e.toArray().sort(t),e.storage())},"Array, string":function(e,t){return l(e),e.sort(s(t))},"Matrix, string":function(e,t){return u(e),n(e.toArray().sort(s(t)),e.storage())}});function s(e){if("asc"===e)return a;if("desc"===e)return o;if("natural"===e)return i;throw new Error('String "asc", "desc", or "natural" expected')}function l(e){if(1!==vt(e).length)throw new Error("One dimensional array expected")}function u(e){if(1!==e.size().length)throw new Error("One dimensional matrix expected")}})),DN="index",TN=["typed","Index"],AN=Le(DN,TN,(e=>{var{typed:t,Index:n}=e;return t(DN,{"...number | string | BigNumber | Range | Array | Matrix":function(e){var t=e.map((function(e){return u(e)?e.toNumber():Array.isArray(e)||m(e)?e.map((function(e){return u(e)?e.toNumber():e})):e})),r=new n;return n.apply(r,t),r}})})),IN="inv",$N=["typed","matrix","divideScalar","addScalar","multiply","unaryMinus","det","identity","abs"],PN=Le(IN,$N,(e=>{var{typed:t,matrix:n,divideScalar:r,addScalar:i,multiply:a,unaryMinus:o,det:s,identity:l,abs:u}=e;return t(IN,{"Array | Matrix":function(e){var t=m(e)?e.size():vt(e);switch(t.length){case 1:if(1===t[0])return m(e)?n([r(1,e.valueOf()[0])]):[r(1,e[0])];throw new RangeError("Matrix must be square (size: "+Ne(t)+")");case 2:var i=t[0],a=t[1];if(i===a)return m(e)?n(c(e.valueOf(),i,a),e.storage()):c(e,i,a);throw new RangeError("Matrix must be square (size: "+Ne(t)+")");default:throw new RangeError("Matrix must be two dimensional (size: "+Ne(t)+")")}},any:function(e){return r(1,e)}});function c(e,t,n){var c,d,h,f,p;if(1===t){if(f=e[0][0],0===f)throw Error("Cannot calculate inverse, determinant is zero");return[[r(1,f)]]}if(2===t){var m=s(e);if(0===m)throw Error("Cannot calculate inverse, determinant is zero");return[[r(e[1][1],m),r(o(e[0][1]),m)],[r(o(e[1][0]),m),r(e[0][0],m)]]}var v=e.concat();for(c=0;c<t;c++)v[c]=v[c].concat();for(var g=l(t).valueOf(),y=0;y<n;y++){var b=u(v[y][y]),x=y;c=y+1;while(c<t)u(v[c][y])>b&&(b=u(v[c][y]),x=c),c++;if(0===b)throw Error("Cannot calculate inverse, determinant is zero");c=x,c!==y&&(p=v[y],v[y]=v[c],v[c]=p,p=g[y],g[y]=g[c],g[c]=p);var w=v[y],_=g[y];for(c=0;c<t;c++){var C=v[c],S=g[c];if(c!==y){if(0!==C[y]){for(h=r(o(C[y]),w[y]),d=y;d<n;d++)C[d]=i(C[d],a(h,w[d]));for(d=0;d<n;d++)S[d]=i(S[d],a(h,_[d]))}}else{for(h=w[y],d=y;d<n;d++)C[d]=r(C[d],h);for(d=0;d<n;d++)S[d]=r(S[d],h)}}}return g}})),jN="pinv",FN=["typed","matrix","inv","deepEqual","equal","dotDivide","dot","ctranspose","divideScalar","multiply","add","Complex"],BN=Le(jN,FN,(e=>{var{typed:t,matrix:n,inv:r,deepEqual:i,equal:a,dotDivide:o,dot:s,ctranspose:l,divideScalar:u,multiply:c,add:d,Complex:h}=e;return t(jN,{"Array | Matrix":function(e){var t=m(e)?e.size():vt(e);switch(t.length){case 1:return y(e)?l(e):1===t[0]?r(e):o(l(e),s(e,e));case 2:if(y(e))return l(e);var i=t[0],a=t[1];if(i===a)try{return r(e)}catch(u){if(!(u instanceof Error&&u.message.match(/Cannot calculate inverse, determinant is zero/)))throw u}return m(e)?n(f(e.valueOf(),i,a),e.storage()):f(e,i,a);default:throw new RangeError("Matrix must be two dimensional (size: "+Ne(t)+")")}},any:function(e){return a(e,0)?Ae(e):u(1,e)}});function f(e,t,n){var{C:i,F:a}=v(e,t,n),o=c(r(c(l(i),i)),l(i)),s=c(l(a),r(c(a,l(a))));return c(s,o)}function p(e,t,n){for(var r=Ae(e),i=0,a=0;a<t;a++){if(n<=i)return r;var s=a;while(g(r[s][i]))if(s++,t===s&&(s=a,i++,n===i))return r;[r[s],r[a]]=[r[a],r[s]];for(var l=r[a][i],u=0;u<n;u++)r[a][u]=o(r[a][u],l);for(var h=0;h<t;h++)if(h!==a){l=r[h][i];for(var f=0;f<n;f++)r[h][f]=d(r[h][f],c(-1,c(l,r[a][f])))}i++}return r}function v(e,t,n){var r=p(e,t,n),i=e.map(((e,n)=>e.filter(((e,n)=>n<t&&!g(s(r[n],r[n])))))),a=r.filter(((e,t)=>!g(s(r[t],r[t]))));return{C:i,F:a}}function g(e){return a(d(e,h(1,1)),d(0,h(1,1)))}function y(e){return i(d(e,h(1,1)),d(c(e,0),h(1,1)))}})),LN="pow",zN=["typed","config","identity","multiply","matrix","inv","fraction","number","Complex"],RN=Le(LN,zN,(e=>{var{typed:t,config:n,identity:r,multiply:i,matrix:a,inv:o,number:s,fraction:l,Complex:u}=e;return t(LN,{"number, number":c,"Complex, Complex":function(e,t){return e.pow(t)},"BigNumber, BigNumber":function(e,t){return t.isInteger()||e>=0||n.predictable?e.pow(t):new u(e.toNumber(),0).pow(t.toNumber(),0)},"Fraction, Fraction":function(e,t){var r=e.pow(t);if(null!=r)return r;if(n.predictable)throw new Error("Result of pow is non-rational and cannot be expressed as a fraction");return c(e.valueOf(),t.valueOf())},"Array, number":d,"Array, BigNumber":function(e,t){return d(e,t.toNumber())},"Matrix, number":h,"Matrix, BigNumber":function(e,t){return h(e,t.toNumber())},"Unit, number | BigNumber":function(e,t){return e.pow(t)}});function c(e,t){if(n.predictable&&!Y(t)&&e<0)try{var r=l(t),i=s(r);if((t===i||Math.abs((t-i)/t)<1e-14)&&r.d%2===1)return(r.n%2===0?1:-1)*Math.pow(-e,t)}catch(a){}return n.predictable&&(e<-1&&t===1/0||e>-1&&e<0&&t===-1/0)?NaN:Y(t)||e>=0||n.predictable?af(e,t):e*e<1&&t===1/0||e*e>1&&t===-1/0?0:new u(e,0).pow(t,0)}function d(e,t){if(!Y(t))throw new TypeError("For A^b, b must be an integer (value is "+t+")");var n=vt(e);if(2!==n.length)throw new Error("For A^b, A must be 2 dimensional (A has "+n.length+" dimensions)");if(n[0]!==n[1])throw new Error("For A^b, A must be square (size is "+n[0]+"x"+n[1]+")");if(t<0)try{return d(o(e),-t)}catch(l){if("Cannot calculate inverse, determinant is zero"===l.message)throw new TypeError("For A^b, when A is not invertible, b must be a positive integer (value is "+t+")");throw l}var a=r(n[0]).valueOf(),s=e;while(t>=1)1===(1&t)&&(a=i(s,a)),t>>=1,s=i(s,s);return a}function h(e,t){return a(d(e.valueOf(),t))}})),VN="setDifference",qN=["typed","size","subset","compareNatural","Index","DenseMatrix"],HN=Le(VN,qN,(e=>{var{typed:t,size:n,subset:r,compareNatural:i,Index:a,DenseMatrix:o}=e;return t(VN,{"Array | Matrix, Array | Matrix":function(e,t){var s;if(0===r(n(e),new a(0)))s=[];else{if(0===r(n(t),new a(0)))return Dt(e.toArray());var l,u=jt(Dt(Array.isArray(e)?e:e.toArray()).sort(i)),c=jt(Dt(Array.isArray(t)?t:t.toArray()).sort(i));s=[];for(var d=0;d<u.length;d++){l=!1;for(var h=0;h<c.length;h++)if(0===i(u[d].value,c[h].value)&&u[d].identifier===c[h].identifier){l=!0;break}l||s.push(u[d])}}return Array.isArray(e)&&Array.isArray(t)?Ft(s):new o(Ft(s))}})})),UN="setMultiplicity",WN=["typed","size","subset","compareNatural","Index"],YN=Le(UN,WN,(e=>{var{typed:t,size:n,subset:r,compareNatural:i,Index:a}=e;return t(UN,{"number | BigNumber | Fraction | Complex, Array | Matrix":function(e,t){if(0===r(n(t),new a(0)))return 0;for(var o=Dt(Array.isArray(t)?t:t.toArray()),s=0,l=0;l<o.length;l++)0===i(o[l],e)&&s++;return s}})})),GN="Spa",KN=["addScalar","equalScalar","FibonacciHeap"],XN=Le(GN,KN,(e=>{var{addScalar:t,equalScalar:n,FibonacciHeap:r}=e;function i(){if(!(this instanceof i))throw new SyntaxError("Constructor must be called with the new operator");this._values=[],this._heap=new r}return i.prototype.type="Spa",i.prototype.isSpa=!0,i.prototype.set=function(e,t){if(this._values[e])this._values[e].value=t;else{var n=this._heap.insert(e,t);this._values[e]=n}},i.prototype.get=function(e){var t=this._values[e];return t?t.value:0},i.prototype.accumulate=function(e,n){var r=this._values[e];r?r.value=t(r.value,n):(r=this._heap.insert(e,n),this._values[e]=r)},i.prototype.forEach=function(e,t,r){var i=this._heap,a=this._values,o=[],s=i.extractMinimum();s&&o.push(s);while(s&&s.key<=t)s.key>=e&&(n(s.value,0)||r(s.key,s.value,this)),s=i.extractMinimum(),s&&o.push(s);for(var l=0;l<o.length;l++){var u=o[l];s=i.insert(u.key,u.value),a[s.key]=s}},i.prototype.swap=function(e,t){var n=this._values[e],r=this._values[t];if(!n&&r)n=this._heap.insert(e,r.value),this._heap.remove(r),this._values[e]=n,this._values[t]=void 0;else if(n&&!r)r=this._heap.insert(t,n.value),this._heap.remove(n),this._values[t]=r,this._values[e]=void 0;else if(n&&r){var i=n.value;n.value=r.value,r.value=i}},i}),{isClass:!0}),ZN="sqrtm",JN=["typed","abs","add","multiply","sqrt","subtract","inv","size","max","identity"],QN=Le(ZN,JN,(e=>{var{typed:t,abs:n,add:r,multiply:i,sqrt:a,subtract:o,inv:s,size:l,max:u,identity:c}=e,d=1e3,h=1e-6;function f(e){var t,a=0,f=e,p=c(l(e));do{var m=f;if(f=i(.5,r(m,s(p))),p=i(.5,r(p,s(m))),t=u(n(o(f,m))),t>h&&++a>d)throw new Error("computing square root of matrix: iterative method could not converge")}while(t>h);return f}return t(ZN,{"Array | Matrix":function(e){var t=m(e)?e.size():vt(e);switch(t.length){case 1:if(1===t[0])return a(e);throw new RangeError("Matrix must be square (size: "+Ne(t)+")");case 2:var n=t[0],r=t[1];if(n===r)return f(e);throw new RangeError("Matrix must be square (size: "+Ne(t)+")");default:throw new RangeError("Matrix must be at most two dimensional (size: "+Ne(t)+")")}}})}));function ek(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 tk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ek(Object(n),!0).forEach((function(t){ur(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ek(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var nk="Unit",rk=["?on","config","addScalar","subtract","multiplyScalar","divideScalar","pow","abs","fix","round","equal","isNumeric","format","number","Complex","BigNumber","Fraction"],ik=Le(nk,rk,(e=>{var t,n,i,{on:a,config:o,addScalar:s,subtract:l,multiplyScalar:u,divideScalar:d,pow:f,abs:p,fix:m,round:v,equal:g,isNumeric:y,format:b,number:x,Complex:w,BigNumber:_,Fraction:C}=e,S=x;function N(e,t){if(!(this instanceof N))throw new Error("Constructor must be called with the new operator");if(null!==e&&void 0!==e&&!y(e)&&!c(e))throw new TypeError("First parameter in Unit constructor must be number, BigNumber, Fraction, Complex, or undefined");if(void 0!==t&&("string"!==typeof t||""===t))throw new TypeError("Second parameter in Unit constructor must be a string");if(void 0!==t){var n=N.parse(t);this.units=n.units,this.dimensions=n.dimensions}else{this.units=[{unit:R,prefix:j.NONE,power:0}],this.dimensions=[];for(var r=0;r<F.length;r++)this.dimensions[r]=0}this.value=void 0!==e&&null!==e?this._normalize(e):null,this.fixPrefix=!1,this.skipAutomaticSimplification=!0}function k(){while(" "===i||"\t"===i)O()}function E(e){return e>="0"&&e<="9"||"."===e}function M(e){return e>="0"&&e<="9"}function O(){n++,i=t.charAt(n)}function D(e){n=e,i=t.charAt(n)}function T(){var e="",t=n;if("+"===i?O():"-"===i&&(e+=i,O()),!E(i))return D(t),null;if("."===i){if(e+=i,O(),!M(i))return D(t),null}else{while(M(i))e+=i,O();"."===i&&(e+=i,O())}while(M(i))e+=i,O();if("E"===i||"e"===i){var r="",a=n;if(r+=i,O(),"+"!==i&&"-"!==i||(r+=i,O()),!M(i))return D(a),e;e+=r;while(M(i))e+=i,O()}return e}function A(){var e="";while(M(i)||N.isValidAlpha(i))e+=i,O();var t=e.charAt(0);return N.isValidAlpha(t)?e:null}function I(e){return i===e?(O(),e):null}N.prototype.type="Unit",N.prototype.isUnit=!0,N.parse=function(e,r){if(r=r||{},t=e,n=-1,i="","string"!==typeof t)throw new TypeError("Invalid argument in Unit.parse, string expected");var a=new N;a.units=[];var s=1,l=!1;O(),k();var u=T(),c=null;if(u){if("BigNumber"===o.number)c=new _(u);else if("Fraction"===o.number)try{c=new C(u)}catch(x){c=parseFloat(u)}else c=parseFloat(u);k(),I("*")?(s=1,l=!0):I("/")&&(s=-1,l=!0)}var d=[],h=1;while(1){k();while("("===i)d.push(s),h*=s,s=1,O(),k();var f=void 0;if(!i)break;var p=i;if(f=A(),null===f)throw new SyntaxError('Unexpected "'+p+'" in "'+t+'" at index '+n.toString());var m=$(f);if(null===m)throw new SyntaxError('Unit "'+f+'" not found.');var v=s*h;if(k(),I("^")){k();var g=T();if(null===g)throw new SyntaxError('In "'+e+'", "^" must be followed by a floating-point number');v*=g}a.units.push({unit:m.unit,prefix:m.prefix,power:v});for(var y=0;y<F.length;y++)a.dimensions[y]+=(m.unit.dimensions[y]||0)*v;k();while(")"===i){if(0===d.length)throw new SyntaxError('Unmatched ")" in "'+t+'" at index '+n.toString());h/=d.pop(),O(),k()}if(l=!1,I("*")?(s=1,l=!0):I("/")?(s=-1,l=!0):s=1,m.unit.base){var b=m.unit.base.key;U.auto[b]={unit:m.unit,prefix:m.prefix}}}if(k(),i)throw new SyntaxError('Could not parse: "'+e+'"');if(l)throw new SyntaxError('Trailing characters: "'+e+'"');if(0!==d.length)throw new SyntaxError('Unmatched "(" in "'+t+'"');if(0===a.units.length&&!r.allowNoUnits)throw new SyntaxError('"'+e+'" contains no units');return a.value=void 0!==c?a._normalize(c):null,a},N.prototype.clone=function(){var e=new N;e.fixPrefix=this.fixPrefix,e.skipAutomaticSimplification=this.skipAutomaticSimplification,e.value=Ae(this.value),e.dimensions=this.dimensions.slice(0),e.units=[];for(var t=0;t<this.units.length;t++)for(var n in e.units[t]={},this.units[t])Fe(this.units[t],n)&&(e.units[t][n]=this.units[t][n]);return e},N.prototype._isDerived=function(){return 0!==this.units.length&&(this.units.length>1||Math.abs(this.units[0].power-1)>1e-15)},N.prototype._normalize=function(e){if(null===e||void 0===e||0===this.units.length)return e;for(var t=e,n=N._getNumberConverter(W(e)),r=0;r<this.units.length;r++){var i=n(this.units[r].unit.value),a=n(this.units[r].prefix.value),o=n(this.units[r].power);t=u(t,f(u(i,a),o))}return t},N.prototype._denormalize=function(e,t){if(null===e||void 0===e||0===this.units.length)return e;for(var n=e,r=N._getNumberConverter(W(e)),i=0;i<this.units.length;i++){var a=r(this.units[i].unit.value),o=r(this.units[i].prefix.value),s=r(this.units[i].power);n=d(n,f(u(a,o),s))}return n};var $=Cl((e=>{if(Fe(V,e)){var t=V[e],n=t.prefixes[""];return{unit:t,prefix:n}}for(var r in V)if(Fe(V,r)&&Se(e,r)){var i=V[r],a=e.length-r.length,o=e.substring(0,a),s=Fe(i.prefixes,o)?i.prefixes[o]:void 0;if(void 0!==s)return{unit:i,prefix:s}}return null}),{hasher:e=>e[0],limit:100});function P(e){return e.equalBase(B.NONE)&&null!==e.value&&!o.predictable?e.value:e}N.isValuelessUnit=function(e){return null!==$(e)},N.prototype.hasBase=function(e){if("string"===typeof e&&(e=B[e]),!e)return!1;for(var t=0;t<F.length;t++)if(Math.abs((this.dimensions[t]||0)-(e.dimensions[t]||0))>1e-12)return!1;return!0},N.prototype.equalBase=function(e){for(var t=0;t<F.length;t++)if(Math.abs((this.dimensions[t]||0)-(e.dimensions[t]||0))>1e-12)return!1;return!0},N.prototype.equals=function(e){return this.equalBase(e)&&g(this.value,e.value)},N.prototype.multiply=function(e){for(var t=this.clone(),n=0;n<F.length;n++)t.dimensions[n]=(this.dimensions[n]||0)+(e.dimensions[n]||0);for(var r=0;r<e.units.length;r++){var i=tk({},e.units[r]);t.units.push(i)}if(null!==this.value||null!==e.value){var a=null===this.value?this._normalize(1):this.value,o=null===e.value?e._normalize(1):e.value;t.value=u(a,o)}else t.value=null;return t.skipAutomaticSimplification=!1,P(t)},N.prototype.divide=function(e){for(var t=this.clone(),n=0;n<F.length;n++)t.dimensions[n]=(this.dimensions[n]||0)-(e.dimensions[n]||0);for(var r=0;r<e.units.length;r++){var i=tk(tk({},e.units[r]),{},{power:-e.units[r].power});t.units.push(i)}if(null!==this.value||null!==e.value){var a=null===this.value?this._normalize(1):this.value,o=null===e.value?e._normalize(1):e.value;t.value=d(a,o)}else t.value=null;return t.skipAutomaticSimplification=!1,P(t)},N.prototype.pow=function(e){for(var t=this.clone(),n=0;n<F.length;n++)t.dimensions[n]=(this.dimensions[n]||0)*e;for(var r=0;r<t.units.length;r++)t.units[r].power*=e;return null!==t.value?t.value=f(t.value,e):t.value=null,t.skipAutomaticSimplification=!1,P(t)},N.prototype.abs=function(){var e=this.clone();if(null!==e.value)if(e._isDerived()||0===e.units[0].unit.offset)e.value=p(e.value);else{var t=N._getNumberConverter(W(e.value)),n=t(e.units[0].unit.value),r=t(e.units[0].unit.offset),i=u(n,r);e.value=l(p(s(e.value,i)),i)}for(var a in e.units)"VA"!==e.units[a].unit.name&&"VAR"!==e.units[a].unit.name||(e.units[a].unit=V.W);return e},N.prototype.to=function(e){var t,n=null===this.value?this._normalize(1):this.value;if("string"===typeof e)t=N.parse(e);else{if(!h(e))throw new Error("String or Unit expected as parameter");t=e.clone()}if(!this.equalBase(t))throw new Error("Units do not match ('".concat(t.toString(),"' != '").concat(this.toString(),"')"));if(null!==t.value)throw new Error("Cannot convert to a unit with a value");if(null===this.value||this._isDerived()||this.units[0].unit.offset===t.units[0].unit.offset)t.value=Ae(n);else{var r=N._getNumberConverter(W(n)),i=r(this.units[0].unit.value),a=r(this.units[0].unit.offset),o=u(i,a),c=r(t.units[0].unit.value),d=r(t.units[0].unit.offset),f=u(c,d);t.value=l(s(n,o),f)}return t.fixPrefix=!0,t.skipAutomaticSimplification=!0,t},N.prototype.toNumber=function(e){return S(this.toNumeric(e))},N.prototype.toNumeric=function(e){var t;return t=e?this.to(e):this.clone(),t._isDerived()||0===t.units.length?t._denormalize(t.value):t._denormalize(t.value,t.units[0].prefix.value)},N.prototype.toString=function(){return this.format()},N.prototype.toJSON=function(){return{mathjs:"Unit",value:this._denormalize(this.value),unit:this.formatUnits(),fixPrefix:this.fixPrefix}},N.fromJSON=function(e){var t=new N(e.value,e.unit);return t.fixPrefix=e.fixPrefix||!1,t},N.prototype.valueOf=N.prototype.toString,N.prototype.simplify=function(){var e,t,n=this.clone(),r=[];for(var i in Y)if(Fe(Y,i)&&n.hasBase(B[i])){e=i;break}if("NONE"===e)n.units=[];else if(e&&Fe(Y,e)&&(t=Y[e]),t)n.units=[{unit:t.unit,prefix:t.prefix,power:1}];else{for(var a=!1,o=0;o<F.length;o++){var s=F[o];Math.abs(n.dimensions[o]||0)>1e-12&&(Fe(Y,s)?r.push({unit:Y[s].unit,prefix:Y[s].prefix,power:n.dimensions[o]||0}):a=!0)}r.length<n.units.length&&!a&&(n.units=r)}return n},N.prototype.toSI=function(){for(var e=this.clone(),t=[],n=0;n<F.length;n++){var r=F[n];if(Math.abs(e.dimensions[n]||0)>1e-12){if(!Fe(U.si,r))throw new Error("Cannot express custom unit "+r+" in SI units");t.push({unit:U.si[r].unit,prefix:U.si[r].prefix,power:e.dimensions[n]||0})}}return e.units=t,e.fixPrefix=!0,e.skipAutomaticSimplification=!0,e},N.prototype.formatUnits=function(){for(var e="",t="",n=0,r=0,i=0;i<this.units.length;i++)this.units[i].power>0?(n++,e+=" "+this.units[i].prefix.name+this.units[i].unit.name,Math.abs(this.units[i].power-1)>1e-15&&(e+="^"+this.units[i].power)):this.units[i].power<0&&r++;if(r>0)for(var a=0;a<this.units.length;a++)this.units[a].power<0&&(n>0?(t+=" "+this.units[a].prefix.name+this.units[a].unit.name,Math.abs(this.units[a].power+1)>1e-15&&(t+="^"+-this.units[a].power)):(t+=" "+this.units[a].prefix.name+this.units[a].unit.name,t+="^"+this.units[a].power));e=e.substr(1),t=t.substr(1),n>1&&r>0&&(e="("+e+")"),r>1&&n>0&&(t="("+t+")");var o=e;return n>0&&r>0&&(o+=" / "),o+=t,o},N.prototype.format=function(e){var t=this.skipAutomaticSimplification||null===this.value?this.clone():this.simplify(),n=!1;for(var r in"undefined"!==typeof t.value&&null!==t.value&&c(t.value)&&(n=Math.abs(t.value.re)<1e-14),t.units)Fe(t.units,r)&&t.units[r].unit&&("VA"===t.units[r].unit.name&&n?t.units[r].unit=V.VAR:"VAR"!==t.units[r].unit.name||n||(t.units[r].unit=V.VA));1!==t.units.length||t.fixPrefix||Math.abs(t.units[0].power-Math.round(t.units[0].power))<1e-14&&(t.units[0].prefix=t._bestPrefix());var i=t._denormalize(t.value),a=null!==t.value?b(i,e||{}):"",o=t.formatUnits();return t.value&&c(t.value)&&(a="("+a+")"),o.length>0&&a.length>0&&(a+=" "),a+=o,a},N.prototype._bestPrefix=function(){if(1!==this.units.length)throw new Error("Can only compute the best prefix for single units with integer powers, like kg, s^2, N^-1, and so forth!");if(Math.abs(this.units[0].power-Math.round(this.units[0].power))>=1e-14)throw new Error("Can only compute the best prefix for single units with integer powers, like kg, s^2, N^-1, and so forth!");var e=null!==this.value?p(this.value):0,t=p(this.units[0].unit.value),n=this.units[0].prefix;if(0===e)return n;var r=this.units[0].power,i=Math.log(e/Math.pow(n.value*t,r))/Math.LN10-1.2;if(i>-2.200001&&i<1.800001)return n;i=Math.abs(i);var a=this.units[0].unit.prefixes;for(var o in a)if(Fe(a,o)){var s=a[o];if(s.scientific){var l=Math.abs(Math.log(e/Math.pow(s.value*t,r))/Math.LN10-1.2);(l<i||l===i&&s.name.length<n.name.length)&&(n=s,i=l)}}return n},N.prototype.splitUnit=function(e){for(var t=this.clone(),n=[],r=0;r<e.length;r++){if(t=t.to(e[r]),r===e.length-1)break;var i=t.toNumeric(),a=v(i),o=void 0,u=g(a,i);o=u?a:m(t.toNumeric());var c=new N(o,e[r].toString());n.push(c),t=l(t,c)}for(var d=0,h=0;h<n.length;h++)d=s(d,n[h].value);return g(d,this.value)&&(t.value=0),n.push(t),n};var j={NONE:{"":{name:"",value:1,scientific:!0}},SHORT:{"":{name:"",value:1,scientific:!0},da:{name:"da",value:10,scientific:!1},h:{name:"h",value:100,scientific:!1},k:{name:"k",value:1e3,scientific:!0},M:{name:"M",value:1e6,scientific:!0},G:{name:"G",value:1e9,scientific:!0},T:{name:"T",value:1e12,scientific:!0},P:{name:"P",value:1e15,scientific:!0},E:{name:"E",value:1e18,scientific:!0},Z:{name:"Z",value:1e21,scientific:!0},Y:{name:"Y",value:1e24,scientific:!0},d:{name:"d",value:.1,scientific:!1},c:{name:"c",value:.01,scientific:!1},m:{name:"m",value:.001,scientific:!0},u:{name:"u",value:1e-6,scientific:!0},n:{name:"n",value:1e-9,scientific:!0},p:{name:"p",value:1e-12,scientific:!0},f:{name:"f",value:1e-15,scientific:!0},a:{name:"a",value:1e-18,scientific:!0},z:{name:"z",value:1e-21,scientific:!0},y:{name:"y",value:1e-24,scientific:!0}},LONG:{"":{name:"",value:1,scientific:!0},deca:{name:"deca",value:10,scientific:!1},hecto:{name:"hecto",value:100,scientific:!1},kilo:{name:"kilo",value:1e3,scientific:!0},mega:{name:"mega",value:1e6,scientific:!0},giga:{name:"giga",value:1e9,scientific:!0},tera:{name:"tera",value:1e12,scientific:!0},peta:{name:"peta",value:1e15,scientific:!0},exa:{name:"exa",value:1e18,scientific:!0},zetta:{name:"zetta",value:1e21,scientific:!0},yotta:{name:"yotta",value:1e24,scientific:!0},deci:{name:"deci",value:.1,scientific:!1},centi:{name:"centi",value:.01,scientific:!1},milli:{name:"milli",value:.001,scientific:!0},micro:{name:"micro",value:1e-6,scientific:!0},nano:{name:"nano",value:1e-9,scientific:!0},pico:{name:"pico",value:1e-12,scientific:!0},femto:{name:"femto",value:1e-15,scientific:!0},atto:{name:"atto",value:1e-18,scientific:!0},zepto:{name:"zepto",value:1e-21,scientific:!0},yocto:{name:"yocto",value:1e-24,scientific:!0}},SQUARED:{"":{name:"",value:1,scientific:!0},da:{name:"da",value:100,scientific:!1},h:{name:"h",value:1e4,scientific:!1},k:{name:"k",value:1e6,scientific:!0},M:{name:"M",value:1e12,scientific:!0},G:{name:"G",value:1e18,scientific:!0},T:{name:"T",value:1e24,scientific:!0},P:{name:"P",value:1e30,scientific:!0},E:{name:"E",value:1e36,scientific:!0},Z:{name:"Z",value:1e42,scientific:!0},Y:{name:"Y",value:1e48,scientific:!0},d:{name:"d",value:.01,scientific:!1},c:{name:"c",value:1e-4,scientific:!1},m:{name:"m",value:1e-6,scientific:!0},u:{name:"u",value:1e-12,scientific:!0},n:{name:"n",value:1e-18,scientific:!0},p:{name:"p",value:1e-24,scientific:!0},f:{name:"f",value:1e-30,scientific:!0},a:{name:"a",value:1e-36,scientific:!0},z:{name:"z",value:1e-42,scientific:!0},y:{name:"y",value:1e-48,scientific:!0}},CUBIC:{"":{name:"",value:1,scientific:!0},da:{name:"da",value:1e3,scientific:!1},h:{name:"h",value:1e6,scientific:!1},k:{name:"k",value:1e9,scientific:!0},M:{name:"M",value:1e18,scientific:!0},G:{name:"G",value:1e27,scientific:!0},T:{name:"T",value:1e36,scientific:!0},P:{name:"P",value:1e45,scientific:!0},E:{name:"E",value:1e54,scientific:!0},Z:{name:"Z",value:1e63,scientific:!0},Y:{name:"Y",value:1e72,scientific:!0},d:{name:"d",value:.001,scientific:!1},c:{name:"c",value:1e-6,scientific:!1},m:{name:"m",value:1e-9,scientific:!0},u:{name:"u",value:1e-18,scientific:!0},n:{name:"n",value:1e-27,scientific:!0},p:{name:"p",value:1e-36,scientific:!0},f:{name:"f",value:1e-45,scientific:!0},a:{name:"a",value:1e-54,scientific:!0},z:{name:"z",value:1e-63,scientific:!0},y:{name:"y",value:1e-72,scientific:!0}},BINARY_SHORT_SI:{"":{name:"",value:1,scientific:!0},k:{name:"k",value:1e3,scientific:!0},M:{name:"M",value:1e6,scientific:!0},G:{name:"G",value:1e9,scientific:!0},T:{name:"T",value:1e12,scientific:!0},P:{name:"P",value:1e15,scientific:!0},E:{name:"E",value:1e18,scientific:!0},Z:{name:"Z",value:1e21,scientific:!0},Y:{name:"Y",value:1e24,scientific:!0}},BINARY_SHORT_IEC:{"":{name:"",value:1,scientific:!0},Ki:{name:"Ki",value:1024,scientific:!0},Mi:{name:"Mi",value:Math.pow(1024,2),scientific:!0},Gi:{name:"Gi",value:Math.pow(1024,3),scientific:!0},Ti:{name:"Ti",value:Math.pow(1024,4),scientific:!0},Pi:{name:"Pi",value:Math.pow(1024,5),scientific:!0},Ei:{name:"Ei",value:Math.pow(1024,6),scientific:!0},Zi:{name:"Zi",value:Math.pow(1024,7),scientific:!0},Yi:{name:"Yi",value:Math.pow(1024,8),scientific:!0}},BINARY_LONG_SI:{"":{name:"",value:1,scientific:!0},kilo:{name:"kilo",value:1e3,scientific:!0},mega:{name:"mega",value:1e6,scientific:!0},giga:{name:"giga",value:1e9,scientific:!0},tera:{name:"tera",value:1e12,scientific:!0},peta:{name:"peta",value:1e15,scientific:!0},exa:{name:"exa",value:1e18,scientific:!0},zetta:{name:"zetta",value:1e21,scientific:!0},yotta:{name:"yotta",value:1e24,scientific:!0}},BINARY_LONG_IEC:{"":{name:"",value:1,scientific:!0},kibi:{name:"kibi",value:1024,scientific:!0},mebi:{name:"mebi",value:Math.pow(1024,2),scientific:!0},gibi:{name:"gibi",value:Math.pow(1024,3),scientific:!0},tebi:{name:"tebi",value:Math.pow(1024,4),scientific:!0},pebi:{name:"pebi",value:Math.pow(1024,5),scientific:!0},exi:{name:"exi",value:Math.pow(1024,6),scientific:!0},zebi:{name:"zebi",value:Math.pow(1024,7),scientific:!0},yobi:{name:"yobi",value:Math.pow(1024,8),scientific:!0}},BTU:{"":{name:"",value:1,scientific:!0},MM:{name:"MM",value:1e6,scientific:!0}}};j.SHORTLONG=r({},j.SHORT,j.LONG),j.BINARY_SHORT=r({},j.BINARY_SHORT_SI,j.BINARY_SHORT_IEC),j.BINARY_LONG=r({},j.BINARY_LONG_SI,j.BINARY_LONG_IEC);var F=["MASS","LENGTH","TIME","CURRENT","TEMPERATURE","LUMINOUS_INTENSITY","AMOUNT_OF_SUBSTANCE","ANGLE","BIT"],B={NONE:{dimensions:[0,0,0,0,0,0,0,0,0]},MASS:{dimensions:[1,0,0,0,0,0,0,0,0]},LENGTH:{dimensions:[0,1,0,0,0,0,0,0,0]},TIME:{dimensions:[0,0,1,0,0,0,0,0,0]},CURRENT:{dimensions:[0,0,0,1,0,0,0,0,0]},TEMPERATURE:{dimensions:[0,0,0,0,1,0,0,0,0]},LUMINOUS_INTENSITY:{dimensions:[0,0,0,0,0,1,0,0,0]},AMOUNT_OF_SUBSTANCE:{dimensions:[0,0,0,0,0,0,1,0,0]},FORCE:{dimensions:[1,1,-2,0,0,0,0,0,0]},SURFACE:{dimensions:[0,2,0,0,0,0,0,0,0]},VOLUME:{dimensions:[0,3,0,0,0,0,0,0,0]},ENERGY:{dimensions:[1,2,-2,0,0,0,0,0,0]},POWER:{dimensions:[1,2,-3,0,0,0,0,0,0]},PRESSURE:{dimensions:[1,-1,-2,0,0,0,0,0,0]},ELECTRIC_CHARGE:{dimensions:[0,0,1,1,0,0,0,0,0]},ELECTRIC_CAPACITANCE:{dimensions:[-1,-2,4,2,0,0,0,0,0]},ELECTRIC_POTENTIAL:{dimensions:[1,2,-3,-1,0,0,0,0,0]},ELECTRIC_RESISTANCE:{dimensions:[1,2,-3,-2,0,0,0,0,0]},ELECTRIC_INDUCTANCE:{dimensions:[1,2,-2,-2,0,0,0,0,0]},ELECTRIC_CONDUCTANCE:{dimensions:[-1,-2,3,2,0,0,0,0,0]},MAGNETIC_FLUX:{dimensions:[1,2,-2,-1,0,0,0,0,0]},MAGNETIC_FLUX_DENSITY:{dimensions:[1,0,-2,-1,0,0,0,0,0]},FREQUENCY:{dimensions:[0,0,-1,0,0,0,0,0,0]},ANGLE:{dimensions:[0,0,0,0,0,0,0,1,0]},BIT:{dimensions:[0,0,0,0,0,0,0,0,1]}};for(var L in B)Fe(B,L)&&(B[L].key=L);var z={},R={name:"",base:z,value:1,offset:0,dimensions:F.map((e=>0))},V={meter:{name:"meter",base:B.LENGTH,prefixes:j.LONG,value:1,offset:0},inch:{name:"inch",base:B.LENGTH,prefixes:j.NONE,value:.0254,offset:0},foot:{name:"foot",base:B.LENGTH,prefixes:j.NONE,value:.3048,offset:0},yard:{name:"yard",base:B.LENGTH,prefixes:j.NONE,value:.9144,offset:0},mile:{name:"mile",base:B.LENGTH,prefixes:j.NONE,value:1609.344,offset:0},link:{name:"link",base:B.LENGTH,prefixes:j.NONE,value:.201168,offset:0},rod:{name:"rod",base:B.LENGTH,prefixes:j.NONE,value:5.0292,offset:0},chain:{name:"chain",base:B.LENGTH,prefixes:j.NONE,value:20.1168,offset:0},angstrom:{name:"angstrom",base:B.LENGTH,prefixes:j.NONE,value:1e-10,offset:0},m:{name:"m",base:B.LENGTH,prefixes:j.SHORT,value:1,offset:0},in:{name:"in",base:B.LENGTH,prefixes:j.NONE,value:.0254,offset:0},ft:{name:"ft",base:B.LENGTH,prefixes:j.NONE,value:.3048,offset:0},yd:{name:"yd",base:B.LENGTH,prefixes:j.NONE,value:.9144,offset:0},mi:{name:"mi",base:B.LENGTH,prefixes:j.NONE,value:1609.344,offset:0},li:{name:"li",base:B.LENGTH,prefixes:j.NONE,value:.201168,offset:0},rd:{name:"rd",base:B.LENGTH,prefixes:j.NONE,value:5.02921,offset:0},ch:{name:"ch",base:B.LENGTH,prefixes:j.NONE,value:20.1168,offset:0},mil:{name:"mil",base:B.LENGTH,prefixes:j.NONE,value:254e-7,offset:0},m2:{name:"m2",base:B.SURFACE,prefixes:j.SQUARED,value:1,offset:0},sqin:{name:"sqin",base:B.SURFACE,prefixes:j.NONE,value:64516e-8,offset:0},sqft:{name:"sqft",base:B.SURFACE,prefixes:j.NONE,value:.09290304,offset:0},sqyd:{name:"sqyd",base:B.SURFACE,prefixes:j.NONE,value:.83612736,offset:0},sqmi:{name:"sqmi",base:B.SURFACE,prefixes:j.NONE,value:2589988.110336,offset:0},sqrd:{name:"sqrd",base:B.SURFACE,prefixes:j.NONE,value:25.29295,offset:0},sqch:{name:"sqch",base:B.SURFACE,prefixes:j.NONE,value:404.6873,offset:0},sqmil:{name:"sqmil",base:B.SURFACE,prefixes:j.NONE,value:6.4516e-10,offset:0},acre:{name:"acre",base:B.SURFACE,prefixes:j.NONE,value:4046.86,offset:0},hectare:{name:"hectare",base:B.SURFACE,prefixes:j.NONE,value:1e4,offset:0},m3:{name:"m3",base:B.VOLUME,prefixes:j.CUBIC,value:1,offset:0},L:{name:"L",base:B.VOLUME,prefixes:j.SHORT,value:.001,offset:0},l:{name:"l",base:B.VOLUME,prefixes:j.SHORT,value:.001,offset:0},litre:{name:"litre",base:B.VOLUME,prefixes:j.LONG,value:.001,offset:0},cuin:{name:"cuin",base:B.VOLUME,prefixes:j.NONE,value:16387064e-12,offset:0},cuft:{name:"cuft",base:B.VOLUME,prefixes:j.NONE,value:.028316846592,offset:0},cuyd:{name:"cuyd",base:B.VOLUME,prefixes:j.NONE,value:.764554857984,offset:0},teaspoon:{name:"teaspoon",base:B.VOLUME,prefixes:j.NONE,value:5e-6,offset:0},tablespoon:{name:"tablespoon",base:B.VOLUME,prefixes:j.NONE,value:15e-6,offset:0},drop:{name:"drop",base:B.VOLUME,prefixes:j.NONE,value:5e-8,offset:0},gtt:{name:"gtt",base:B.VOLUME,prefixes:j.NONE,value:5e-8,offset:0},minim:{name:"minim",base:B.VOLUME,prefixes:j.NONE,value:6.161152e-8,offset:0},fluiddram:{name:"fluiddram",base:B.VOLUME,prefixes:j.NONE,value:36966911e-13,offset:0},fluidounce:{name:"fluidounce",base:B.VOLUME,prefixes:j.NONE,value:2957353e-11,offset:0},gill:{name:"gill",base:B.VOLUME,prefixes:j.NONE,value:.0001182941,offset:0},cc:{name:"cc",base:B.VOLUME,prefixes:j.NONE,value:1e-6,offset:0},cup:{name:"cup",base:B.VOLUME,prefixes:j.NONE,value:.0002365882,offset:0},pint:{name:"pint",base:B.VOLUME,prefixes:j.NONE,value:.0004731765,offset:0},quart:{name:"quart",base:B.VOLUME,prefixes:j.NONE,value:.0009463529,offset:0},gallon:{name:"gallon",base:B.VOLUME,prefixes:j.NONE,value:.003785412,offset:0},beerbarrel:{name:"beerbarrel",base:B.VOLUME,prefixes:j.NONE,value:.1173478,offset:0},oilbarrel:{name:"oilbarrel",base:B.VOLUME,prefixes:j.NONE,value:.1589873,offset:0},hogshead:{name:"hogshead",base:B.VOLUME,prefixes:j.NONE,value:.238481,offset:0},fldr:{name:"fldr",base:B.VOLUME,prefixes:j.NONE,value:36966911e-13,offset:0},floz:{name:"floz",base:B.VOLUME,prefixes:j.NONE,value:2957353e-11,offset:0},gi:{name:"gi",base:B.VOLUME,prefixes:j.NONE,value:.0001182941,offset:0},cp:{name:"cp",base:B.VOLUME,prefixes:j.NONE,value:.0002365882,offset:0},pt:{name:"pt",base:B.VOLUME,prefixes:j.NONE,value:.0004731765,offset:0},qt:{name:"qt",base:B.VOLUME,prefixes:j.NONE,value:.0009463529,offset:0},gal:{name:"gal",base:B.VOLUME,prefixes:j.NONE,value:.003785412,offset:0},bbl:{name:"bbl",base:B.VOLUME,prefixes:j.NONE,value:.1173478,offset:0},obl:{name:"obl",base:B.VOLUME,prefixes:j.NONE,value:.1589873,offset:0},g:{name:"g",base:B.MASS,prefixes:j.SHORT,value:.001,offset:0},gram:{name:"gram",base:B.MASS,prefixes:j.LONG,value:.001,offset:0},ton:{name:"ton",base:B.MASS,prefixes:j.SHORT,value:907.18474,offset:0},t:{name:"t",base:B.MASS,prefixes:j.SHORT,value:1e3,offset:0},tonne:{name:"tonne",base:B.MASS,prefixes:j.LONG,value:1e3,offset:0},grain:{name:"grain",base:B.MASS,prefixes:j.NONE,value:6479891e-11,offset:0},dram:{name:"dram",base:B.MASS,prefixes:j.NONE,value:.0017718451953125,offset:0},ounce:{name:"ounce",base:B.MASS,prefixes:j.NONE,value:.028349523125,offset:0},poundmass:{name:"poundmass",base:B.MASS,prefixes:j.NONE,value:.45359237,offset:0},hundredweight:{name:"hundredweight",base:B.MASS,prefixes:j.NONE,value:45.359237,offset:0},stick:{name:"stick",base:B.MASS,prefixes:j.NONE,value:.115,offset:0},stone:{name:"stone",base:B.MASS,prefixes:j.NONE,value:6.35029318,offset:0},gr:{name:"gr",base:B.MASS,prefixes:j.NONE,value:6479891e-11,offset:0},dr:{name:"dr",base:B.MASS,prefixes:j.NONE,value:.0017718451953125,offset:0},oz:{name:"oz",base:B.MASS,prefixes:j.NONE,value:.028349523125,offset:0},lbm:{name:"lbm",base:B.MASS,prefixes:j.NONE,value:.45359237,offset:0},cwt:{name:"cwt",base:B.MASS,prefixes:j.NONE,value:45.359237,offset:0},s:{name:"s",base:B.TIME,prefixes:j.SHORT,value:1,offset:0},min:{name:"min",base:B.TIME,prefixes:j.NONE,value:60,offset:0},h:{name:"h",base:B.TIME,prefixes:j.NONE,value:3600,offset:0},second:{name:"second",base:B.TIME,prefixes:j.LONG,value:1,offset:0},sec:{name:"sec",base:B.TIME,prefixes:j.LONG,value:1,offset:0},minute:{name:"minute",base:B.TIME,prefixes:j.NONE,value:60,offset:0},hour:{name:"hour",base:B.TIME,prefixes:j.NONE,value:3600,offset:0},day:{name:"day",base:B.TIME,prefixes:j.NONE,value:86400,offset:0},week:{name:"week",base:B.TIME,prefixes:j.NONE,value:604800,offset:0},month:{name:"month",base:B.TIME,prefixes:j.NONE,value:2629800,offset:0},year:{name:"year",base:B.TIME,prefixes:j.NONE,value:31557600,offset:0},decade:{name:"decade",base:B.TIME,prefixes:j.NONE,value:315576e3,offset:0},century:{name:"century",base:B.TIME,prefixes:j.NONE,value:315576e4,offset:0},millennium:{name:"millennium",base:B.TIME,prefixes:j.NONE,value:315576e5,offset:0},hertz:{name:"Hertz",base:B.FREQUENCY,prefixes:j.LONG,value:1,offset:0,reciprocal:!0},Hz:{name:"Hz",base:B.FREQUENCY,prefixes:j.SHORT,value:1,offset:0,reciprocal:!0},rad:{name:"rad",base:B.ANGLE,prefixes:j.SHORT,value:1,offset:0},radian:{name:"radian",base:B.ANGLE,prefixes:j.LONG,value:1,offset:0},deg:{name:"deg",base:B.ANGLE,prefixes:j.SHORT,value:null,offset:0},degree:{name:"degree",base:B.ANGLE,prefixes:j.LONG,value:null,offset:0},grad:{name:"grad",base:B.ANGLE,prefixes:j.SHORT,value:null,offset:0},gradian:{name:"gradian",base:B.ANGLE,prefixes:j.LONG,value:null,offset:0},cycle:{name:"cycle",base:B.ANGLE,prefixes:j.NONE,value:null,offset:0},arcsec:{name:"arcsec",base:B.ANGLE,prefixes:j.NONE,value:null,offset:0},arcmin:{name:"arcmin",base:B.ANGLE,prefixes:j.NONE,value:null,offset:0},A:{name:"A",base:B.CURRENT,prefixes:j.SHORT,value:1,offset:0},ampere:{name:"ampere",base:B.CURRENT,prefixes:j.LONG,value:1,offset:0},K:{name:"K",base:B.TEMPERATURE,prefixes:j.NONE,value:1,offset:0},degC:{name:"degC",base:B.TEMPERATURE,prefixes:j.NONE,value:1,offset:273.15},degF:{name:"degF",base:B.TEMPERATURE,prefixes:j.NONE,value:1/1.8,offset:459.67},degR:{name:"degR",base:B.TEMPERATURE,prefixes:j.NONE,value:1/1.8,offset:0},kelvin:{name:"kelvin",base:B.TEMPERATURE,prefixes:j.NONE,value:1,offset:0},celsius:{name:"celsius",base:B.TEMPERATURE,prefixes:j.NONE,value:1,offset:273.15},fahrenheit:{name:"fahrenheit",base:B.TEMPERATURE,prefixes:j.NONE,value:1/1.8,offset:459.67},rankine:{name:"rankine",base:B.TEMPERATURE,prefixes:j.NONE,value:1/1.8,offset:0},mol:{name:"mol",base:B.AMOUNT_OF_SUBSTANCE,prefixes:j.SHORT,value:1,offset:0},mole:{name:"mole",base:B.AMOUNT_OF_SUBSTANCE,prefixes:j.LONG,value:1,offset:0},cd:{name:"cd",base:B.LUMINOUS_INTENSITY,prefixes:j.SHORT,value:1,offset:0},candela:{name:"candela",base:B.LUMINOUS_INTENSITY,prefixes:j.LONG,value:1,offset:0},N:{name:"N",base:B.FORCE,prefixes:j.SHORT,value:1,offset:0},newton:{name:"newton",base:B.FORCE,prefixes:j.LONG,value:1,offset:0},dyn:{name:"dyn",base:B.FORCE,prefixes:j.SHORT,value:1e-5,offset:0},dyne:{name:"dyne",base:B.FORCE,prefixes:j.LONG,value:1e-5,offset:0},lbf:{name:"lbf",base:B.FORCE,prefixes:j.NONE,value:4.4482216152605,offset:0},poundforce:{name:"poundforce",base:B.FORCE,prefixes:j.NONE,value:4.4482216152605,offset:0},kip:{name:"kip",base:B.FORCE,prefixes:j.LONG,value:4448.2216,offset:0},kilogramforce:{name:"kilogramforce",base:B.FORCE,prefixes:j.NONE,value:9.80665,offset:0},J:{name:"J",base:B.ENERGY,prefixes:j.SHORT,value:1,offset:0},joule:{name:"joule",base:B.ENERGY,prefixes:j.SHORT,value:1,offset:0},erg:{name:"erg",base:B.ENERGY,prefixes:j.NONE,value:1e-7,offset:0},Wh:{name:"Wh",base:B.ENERGY,prefixes:j.SHORT,value:3600,offset:0},BTU:{name:"BTU",base:B.ENERGY,prefixes:j.BTU,value:1055.05585262,offset:0},eV:{name:"eV",base:B.ENERGY,prefixes:j.SHORT,value:1602176565e-28,offset:0},electronvolt:{name:"electronvolt",base:B.ENERGY,prefixes:j.LONG,value:1602176565e-28,offset:0},W:{name:"W",base:B.POWER,prefixes:j.SHORT,value:1,offset:0},watt:{name:"watt",base:B.POWER,prefixes:j.LONG,value:1,offset:0},hp:{name:"hp",base:B.POWER,prefixes:j.NONE,value:745.6998715386,offset:0},VAR:{name:"VAR",base:B.POWER,prefixes:j.SHORT,value:w.I,offset:0},VA:{name:"VA",base:B.POWER,prefixes:j.SHORT,value:1,offset:0},Pa:{name:"Pa",base:B.PRESSURE,prefixes:j.SHORT,value:1,offset:0},psi:{name:"psi",base:B.PRESSURE,prefixes:j.NONE,value:6894.75729276459,offset:0},atm:{name:"atm",base:B.PRESSURE,prefixes:j.NONE,value:101325,offset:0},bar:{name:"bar",base:B.PRESSURE,prefixes:j.SHORTLONG,value:1e5,offset:0},torr:{name:"torr",base:B.PRESSURE,prefixes:j.NONE,value:133.322,offset:0},mmHg:{name:"mmHg",base:B.PRESSURE,prefixes:j.NONE,value:133.322,offset:0},mmH2O:{name:"mmH2O",base:B.PRESSURE,prefixes:j.NONE,value:9.80665,offset:0},cmH2O:{name:"cmH2O",base:B.PRESSURE,prefixes:j.NONE,value:98.0665,offset:0},coulomb:{name:"coulomb",base:B.ELECTRIC_CHARGE,prefixes:j.LONG,value:1,offset:0},C:{name:"C",base:B.ELECTRIC_CHARGE,prefixes:j.SHORT,value:1,offset:0},farad:{name:"farad",base:B.ELECTRIC_CAPACITANCE,prefixes:j.LONG,value:1,offset:0},F:{name:"F",base:B.ELECTRIC_CAPACITANCE,prefixes:j.SHORT,value:1,offset:0},volt:{name:"volt",base:B.ELECTRIC_POTENTIAL,prefixes:j.LONG,value:1,offset:0},V:{name:"V",base:B.ELECTRIC_POTENTIAL,prefixes:j.SHORT,value:1,offset:0},ohm:{name:"ohm",base:B.ELECTRIC_RESISTANCE,prefixes:j.SHORTLONG,value:1,offset:0},henry:{name:"henry",base:B.ELECTRIC_INDUCTANCE,prefixes:j.LONG,value:1,offset:0},H:{name:"H",base:B.ELECTRIC_INDUCTANCE,prefixes:j.SHORT,value:1,offset:0},siemens:{name:"siemens",base:B.ELECTRIC_CONDUCTANCE,prefixes:j.LONG,value:1,offset:0},S:{name:"S",base:B.ELECTRIC_CONDUCTANCE,prefixes:j.SHORT,value:1,offset:0},weber:{name:"weber",base:B.MAGNETIC_FLUX,prefixes:j.LONG,value:1,offset:0},Wb:{name:"Wb",base:B.MAGNETIC_FLUX,prefixes:j.SHORT,value:1,offset:0},tesla:{name:"tesla",base:B.MAGNETIC_FLUX_DENSITY,prefixes:j.LONG,value:1,offset:0},T:{name:"T",base:B.MAGNETIC_FLUX_DENSITY,prefixes:j.SHORT,value:1,offset:0},b:{name:"b",base:B.BIT,prefixes:j.BINARY_SHORT,value:1,offset:0},bits:{name:"bits",base:B.BIT,prefixes:j.BINARY_LONG,value:1,offset:0},B:{name:"B",base:B.BIT,prefixes:j.BINARY_SHORT,value:8,offset:0},bytes:{name:"bytes",base:B.BIT,prefixes:j.BINARY_LONG,value:8,offset:0}},q={meters:"meter",inches:"inch",feet:"foot",yards:"yard",miles:"mile",links:"link",rods:"rod",chains:"chain",angstroms:"angstrom",lt:"l",litres:"litre",liter:"litre",liters:"litre",teaspoons:"teaspoon",tablespoons:"tablespoon",minims:"minim",fluiddrams:"fluiddram",fluidounces:"fluidounce",gills:"gill",cups:"cup",pints:"pint",quarts:"quart",gallons:"gallon",beerbarrels:"beerbarrel",oilbarrels:"oilbarrel",hogsheads:"hogshead",gtts:"gtt",grams:"gram",tons:"ton",tonnes:"tonne",grains:"grain",drams:"dram",ounces:"ounce",poundmasses:"poundmass",hundredweights:"hundredweight",sticks:"stick",lb:"lbm",lbs:"lbm",kips:"kip",kgf:"kilogramforce",acres:"acre",hectares:"hectare",sqfeet:"sqft",sqyard:"sqyd",sqmile:"sqmi",sqmiles:"sqmi",mmhg:"mmHg",mmh2o:"mmH2O",cmh2o:"cmH2O",seconds:"second",secs:"second",minutes:"minute",mins:"minute",hours:"hour",hr:"hour",hrs:"hour",days:"day",weeks:"week",months:"month",years:"year",decades:"decade",centuries:"century",millennia:"millennium",hertz:"hertz",radians:"radian",degrees:"degree",gradians:"gradian",cycles:"cycle",arcsecond:"arcsec",arcseconds:"arcsec",arcminute:"arcmin",arcminutes:"arcmin",BTUs:"BTU",watts:"watt",joules:"joule",amperes:"ampere",coulombs:"coulomb",volts:"volt",ohms:"ohm",farads:"farad",webers:"weber",teslas:"tesla",electronvolts:"electronvolt",moles:"mole",bit:"bits",byte:"bytes"};function H(e){if("BigNumber"===e.number){var t=Fc(_);V.rad.value=new _(1),V.deg.value=t.div(180),V.grad.value=t.div(200),V.cycle.value=t.times(2),V.arcsec.value=t.div(648e3),V.arcmin.value=t.div(10800)}else V.rad.value=1,V.deg.value=Math.PI/180,V.grad.value=Math.PI/200,V.cycle.value=2*Math.PI,V.arcsec.value=Math.PI/648e3,V.arcmin.value=Math.PI/10800;V.radian.value=V.rad.value,V.degree.value=V.deg.value,V.gradian.value=V.grad.value}H(o),a&&a("config",(function(e,t){e.number!==t.number&&H(e)}));var U={si:{NONE:{unit:R,prefix:j.NONE[""]},LENGTH:{unit:V.m,prefix:j.SHORT[""]},MASS:{unit:V.g,prefix:j.SHORT.k},TIME:{unit:V.s,prefix:j.SHORT[""]},CURRENT:{unit:V.A,prefix:j.SHORT[""]},TEMPERATURE:{unit:V.K,prefix:j.SHORT[""]},LUMINOUS_INTENSITY:{unit:V.cd,prefix:j.SHORT[""]},AMOUNT_OF_SUBSTANCE:{unit:V.mol,prefix:j.SHORT[""]},ANGLE:{unit:V.rad,prefix:j.SHORT[""]},BIT:{unit:V.bits,prefix:j.SHORT[""]},FORCE:{unit:V.N,prefix:j.SHORT[""]},ENERGY:{unit:V.J,prefix:j.SHORT[""]},POWER:{unit:V.W,prefix:j.SHORT[""]},PRESSURE:{unit:V.Pa,prefix:j.SHORT[""]},ELECTRIC_CHARGE:{unit:V.C,prefix:j.SHORT[""]},ELECTRIC_CAPACITANCE:{unit:V.F,prefix:j.SHORT[""]},ELECTRIC_POTENTIAL:{unit:V.V,prefix:j.SHORT[""]},ELECTRIC_RESISTANCE:{unit:V.ohm,prefix:j.SHORT[""]},ELECTRIC_INDUCTANCE:{unit:V.H,prefix:j.SHORT[""]},ELECTRIC_CONDUCTANCE:{unit:V.S,prefix:j.SHORT[""]},MAGNETIC_FLUX:{unit:V.Wb,prefix:j.SHORT[""]},MAGNETIC_FLUX_DENSITY:{unit:V.T,prefix:j.SHORT[""]},FREQUENCY:{unit:V.Hz,prefix:j.SHORT[""]}}};U.cgs=JSON.parse(JSON.stringify(U.si)),U.cgs.LENGTH={unit:V.m,prefix:j.SHORT.c},U.cgs.MASS={unit:V.g,prefix:j.SHORT[""]},U.cgs.FORCE={unit:V.dyn,prefix:j.SHORT[""]},U.cgs.ENERGY={unit:V.erg,prefix:j.NONE[""]},U.us=JSON.parse(JSON.stringify(U.si)),U.us.LENGTH={unit:V.ft,prefix:j.NONE[""]},U.us.MASS={unit:V.lbm,prefix:j.NONE[""]},U.us.TEMPERATURE={unit:V.degF,prefix:j.NONE[""]},U.us.FORCE={unit:V.lbf,prefix:j.NONE[""]},U.us.ENERGY={unit:V.BTU,prefix:j.BTU[""]},U.us.POWER={unit:V.hp,prefix:j.NONE[""]},U.us.PRESSURE={unit:V.psi,prefix:j.NONE[""]},U.auto=JSON.parse(JSON.stringify(U.si));var Y=U.auto;for(var G in N.setUnitSystem=function(e){if(!Fe(U,e))throw new Error("Unit system "+e+" does not exist. Choices are: "+Object.keys(U).join(", "));Y=U[e]},N.getUnitSystem=function(){for(var e in U)if(Fe(U,e)&&U[e]===Y)return e},N.typeConverters={BigNumber:function(e){return new _(e+"")},Fraction:function(e){return new C(e)},Complex:function(e){return e},number:function(e){return e}},N._getNumberConverter=function(e){if(!N.typeConverters[e])throw new TypeError('Unsupported type "'+e+'"');return N.typeConverters[e]},V)if(Fe(V,G)){var K=V[G];K.dimensions=K.base.dimensions}for(var X in q)if(Fe(q,X)){var Z=V[q[X]],J={};for(var Q in Z)Fe(Z,Q)&&(J[Q]=Z[Q]);J.name=X,V[X]=J}function ee(e){for(var t=0;t<e.length;t++){if(i=e.charAt(t),0===t&&!N.isValidAlpha(i))throw new Error('Invalid unit name (must begin with alpha character): "'+e+'"');if(t>0&&!N.isValidAlpha(i)&&!M(i))throw new Error('Invalid unit name (only alphanumeric characters are allowed): "'+e+'"')}}return N.isValidAlpha=function(e){return/^[a-zA-Z]$/.test(e)},N.createUnit=function(e,t){if("object"!==typeof e)throw new TypeError("createUnit expects first parameter to be of type 'Object'");if(t&&t.override)for(var n in e)if(Fe(e,n)&&N.deleteUnit(n),e[n].aliases)for(var r=0;r<e[n].aliases.length;r++)N.deleteUnit(e[n].aliases[r]);var i;for(var a in e)Fe(e,a)&&(i=N.createUnitSingle(a,e[a]));return i},N.createUnitSingle=function(e,t,n){if("undefined"!==typeof t&&null!==t||(t={}),"string"!==typeof e)throw new TypeError("createUnitSingle expects first parameter to be of type 'string'");if(Fe(V,e))throw new Error('Cannot create unit "'+e+'": a unit with that name already exists');ee(e);var r,i,a,o=null,s=[],l=0;if(t&&"Unit"===t.type)o=t.clone();else if("string"===typeof t)""!==t&&(r=t);else{if("object"!==typeof t)throw new TypeError('Cannot create unit "'+e+'" from "'+t.toString()+'": expecting "string" or "Unit" or "Object"');r=t.definition,i=t.prefixes,l=t.offset,a=t.baseName,t.aliases&&(s=t.aliases.valueOf())}if(s)for(var u=0;u<s.length;u++)if(Fe(V,s[u]))throw new Error('Cannot create alias "'+s[u]+'": a unit with that name already exists');if(r&&"string"===typeof r&&!o)try{o=N.parse(r,{allowNoUnits:!0})}catch(C){throw C.message='Could not create unit "'+e+'" from "'+r+'": '+C.message,C}else r&&"Unit"===r.type&&(o=r.clone());s=s||[],l=l||0,i=i&&i.toUpperCase&&j[i.toUpperCase()]||j.NONE;var c={};if(o){c={name:e,value:o.value,dimensions:o.dimensions.slice(0),prefixes:i,offset:l};var d=!1;for(var h in B)if(Fe(B,h)){for(var f=!0,p=0;p<F.length;p++)if(Math.abs((c.dimensions[p]||0)-(B[h].dimensions[p]||0))>1e-12){f=!1;break}if(f){d=!0,c.base=B[h];break}}if(!d){a=a||e+"_STUFF";var m={dimensions:o.dimensions.slice(0)};m.key=a,B[a]=m,Y[a]={unit:c,prefix:j.NONE[""]},c.base=B[a]}}else{if(a=a||e+"_STUFF",F.indexOf(a)>=0)throw new Error('Cannot create new base unit "'+e+'": a base unit with that name already exists (and cannot be overridden)');for(var v in F.push(a),B)Fe(B,v)&&(B[v].dimensions[F.length-1]=0);for(var g={dimensions:[]},y=0;y<F.length;y++)g.dimensions[y]=0;g.dimensions[F.length-1]=1,g.key=a,B[a]=g,c={name:e,value:1,dimensions:B[a].dimensions.slice(0),prefixes:i,offset:l,base:B[a]},Y[a]={unit:c,prefix:j.NONE[""]}}N.UNITS[e]=c;for(var b=0;b<s.length;b++){var x=s[b],w={};for(var _ in c)Fe(c,_)&&(w[_]=c[_]);w.name=x,N.UNITS[x]=w}return delete $.cache,new N(null,e)},N.deleteUnit=function(e){delete N.UNITS[e]},N.PREFIXES=j,N.BASE_DIMENSIONS=F,N.BASE_UNITS=B,N.UNIT_SYSTEMS=U,N.UNITS=V,N}),{isClass:!0}),ak="createUnit",ok=["typed","Unit"],sk=Le(ak,ok,(e=>{var{typed:t,Unit:n}=e;return t(ak,{"Object, Object":function(e,t){return n.createUnit(e,t)},Object:function(e){return n.createUnit(e,{})},"string, Unit | string | Object, Object":function(e,t,r){var i={};return i[e]=t,n.createUnit(i,r)},"string, Unit | string | Object":function(e,t){var r={};return r[e]=t,n.createUnit(r,{})},string:function(e){var t={};return t[e]={},n.createUnit(t,{})}})})),lk="dotPow",uk=["typed","equalScalar","matrix","pow","DenseMatrix"],ck=Le(lk,uk,(e=>{var{typed:t,equalScalar:n,matrix:r,pow:i,DenseMatrix:a}=e,o=db({typed:t}),s=nx({typed:t,DenseMatrix:a}),l=gb({typed:t,equalScalar:n}),u=xb({typed:t,DenseMatrix:a}),c=Cb({typed:t}),d=kb({typed:t});return t(lk,{"any, any":i,"SparseMatrix, SparseMatrix":function(e,t){return s(e,t,i,!1)},"SparseMatrix, DenseMatrix":function(e,t){return o(t,e,i,!0)},"DenseMatrix, SparseMatrix":function(e,t){return o(e,t,i,!1)},"DenseMatrix, DenseMatrix":function(e,t){return c(e,t,i)},"Array, Array":function(e,t){return this(r(e),r(t)).valueOf()},"Array, Matrix":function(e,t){return this(r(e),t)},"Matrix, Array":function(e,t){return this(e,r(t))},"SparseMatrix, any":function(e,t){return l(e,t,this,!1)},"DenseMatrix, any":function(e,t){return d(e,t,this,!1)},"any, SparseMatrix":function(e,t){return u(t,e,this,!0)},"any, DenseMatrix":function(e,t){return d(t,e,this,!0)},"Array, any":function(e,t){return d(r(e),t,this,!1).valueOf()},"any, Array":function(e,t){return d(r(t),e,this,!0).valueOf()}})})),dk="expm",hk=["typed","abs","add","identity","inv","multiply"],fk=Le(dk,hk,(e=>{var{typed:t,abs:n,add:r,identity:i,inv:a,multiply:o}=e;return t(dk,{Matrix:function(e){var t=e.size();if(2!==t.length||t[0]!==t[1])throw new RangeError("Matrix must be square (size: "+Ne(t)+")");for(var n=t[0],u=1e-15,c=s(e),d=l(c,u),h=d.q,f=d.j,p=o(e,Math.pow(2,-f)),m=i(n),v=i(n),g=1,b=p,x=-1,w=1;w<=h;w++)w>1&&(b=o(b,p),x=-x),g=g*(h-w+1)/((2*h-w+1)*w),m=r(m,o(g,b)),v=r(v,o(g*x,b));for(var _=o(a(v),m),C=0;C<f;C++)_=o(_,_);return y(e)?e.createSparseMatrix(_):_}});function s(e){for(var t=e.size()[0],r=0,i=0;i<t;i++){for(var a=0,o=0;o<t;o++)a+=n(e.get([i,o]));r=Math.max(a,r)}return r}function l(e,t){for(var n=30,r=0;r<n;r++)for(var i=0;i<=r;i++){var a=r-i;if(u(e,i,a)<t)return{q:i,j:a}}throw new Error("Could not find acceptable parameters to compute the matrix exponential (try increasing maxSearchSize in expm.js)")}function u(e,t,n){for(var r=1,i=2;i<=t;i++)r*=i;for(var a=r,o=t+1;o<=2*t;o++)a*=o;var s=a*(2*t+1);return 8*Math.pow(e/Math.pow(2,n),2*t)*r*r/(a*s)}})),pk="gamma",mk=["typed","config","multiplyScalar","pow","BigNumber","Complex"],vk=Le(pk,mk,(e=>{var{typed:t,config:n,multiplyScalar:r,pow:i,BigNumber:a,Complex:o}=e;return t(pk,{number:vv,Complex:function(e){if(0===e.im)return this(e.re);if(e.re<.5){var t=new o(1-e.re,-e.im),n=new o(Math.PI*e.re,Math.PI*e.im);return new o(Math.PI).div(n.sin()).div(this(t))}e=new o(e.re-1,e.im);for(var r=new o(yv[0],0),i=1;i<yv.length;++i){var a=new o(yv[i],0);r=r.add(a.div(e.add(i)))}var s=new o(e.re+gv+.5,e.im),l=Math.sqrt(2*Math.PI),u=s.pow(e.add(.5)),c=s.neg().exp();return r.mul(l).mul(u).mul(c)},BigNumber:function(e){if(e.isInteger())return e.isNegative()||e.isZero()?new a(1/0):s(e.minus(1));if(!e.isFinite())return new a(e.isNegative()?NaN:1/0);throw new Error("Integer BigNumber expected")},"Array | Matrix":function(e){return Qn(e,this)}});function s(e){if(e<8)return new a([1,1,2,6,24,120,720,5040][e]);var t=n.precision+(0|Math.log(e.toNumber())),r=a.clone({precision:t});if(e%2===1)return e.times(s(new a(e-1)));var i=e,o=new r(e),l=e.toNumber();while(i>2)i-=2,l+=i,o=o.times(l);return new a(o.toPrecision(a.precision))}})),gk="setIntersect",yk=["typed","size","subset","compareNatural","Index","DenseMatrix"],bk=Le(gk,yk,(e=>{var{typed:t,size:n,subset:r,compareNatural:i,Index:a,DenseMatrix:o}=e;return t(gk,{"Array | Matrix, Array | Matrix":function(e,t){var s;if(0===r(n(e),new a(0))||0===r(n(t),new a(0)))s=[];else{var l=jt(Dt(Array.isArray(e)?e:e.toArray()).sort(i)),u=jt(Dt(Array.isArray(t)?t:t.toArray()).sort(i));s=[];for(var c=0;c<l.length;c++)for(var d=0;d<u.length;d++)if(0===i(l[c].value,u[d].value)&&l[c].identifier===u[d].identifier){s.push(l[c]);break}}return Array.isArray(e)&&Array.isArray(t)?Ft(s):new o(Ft(s))}})})),xk="divide",wk=["typed","matrix","multiply","equalScalar","divideScalar","inv"],_k=Le(xk,wk,(e=>{var{typed:t,matrix:n,multiply:r,equalScalar:i,divideScalar:a,inv:o}=e,s=gb({typed:t,equalScalar:i}),l=kb({typed:t});return t("divide",$e({"Array | Matrix, Array | Matrix":function(e,t){return r(e,o(t))},"DenseMatrix, any":function(e,t){return l(e,t,a,!1)},"SparseMatrix, any":function(e,t){return s(e,t,a,!1)},"Array, any":function(e,t){return l(n(e),t,a,!1).valueOf()},"any, Array | Matrix":function(e,t){return r(e,o(t))}},a.signatures))})),Ck="factorial",Sk=["typed","gamma"],Nk=Le(Ck,Sk,(e=>{var{typed:t,gamma:n}=e;return t(Ck,{number:function(e){if(e<0)throw new Error("Value must be non-negative");return n(e+1)},BigNumber:function(e){if(e.isNegative())throw new Error("Value must be non-negative");return n(e.plus(1))},"Array | Matrix":function(e){return Qn(e,this)}})})),kk="lup",Ek=["typed","matrix","abs","addScalar","divideScalar","multiplyScalar","subtract","larger","equalScalar","unaryMinus","DenseMatrix","SparseMatrix","Spa"],Mk=Le(kk,Ek,(e=>{var{typed:t,matrix:n,abs:r,addScalar:i,divideScalar:a,multiplyScalar:o,subtract:s,larger:l,equalScalar:u,unaryMinus:c,DenseMatrix:d,SparseMatrix:h,Spa:f}=e;return t(kk,{DenseMatrix:function(e){return p(e)},SparseMatrix:function(e){return m(e)},Array:function(e){var t=n(e),r=p(t);return{L:r.L.valueOf(),U:r.U.valueOf(),p:r.p}}});function p(e){var t,n,c,h=e._size[0],f=e._size[1],p=Math.min(h,f),m=Ae(e._data),v=[],g=[h,p],y=[],b=[p,f],x=[];for(t=0;t<h;t++)x[t]=t;for(n=0;n<f;n++){if(n>0)for(t=0;t<h;t++){var w=Math.min(t,n),_=0;for(c=0;c<w;c++)_=i(_,o(m[t][c],m[c][n]));m[t][n]=s(m[t][n],_)}var C=n,S=0,N=0;for(t=n;t<h;t++){var k=m[t][n],E=r(k);l(E,S)&&(C=t,S=E,N=k)}if(n!==C&&(x[n]=[x[C],x[C]=x[n]][0],d._swapRows(n,C,m)),n<h)for(t=n+1;t<h;t++){var M=m[t][n];u(M,0)||(m[t][n]=a(m[t][n],N))}}for(n=0;n<f;n++)for(t=0;t<h;t++)0===n&&(t<f&&(y[t]=[]),v[t]=[]),t<n?(t<f&&(y[t][n]=m[t][n]),n<h&&(v[t][n]=0)):t!==n?(t<f&&(y[t][n]=0),n<h&&(v[t][n]=m[t][n])):(t<f&&(y[t][n]=m[t][n]),n<h&&(v[t][n]=1));var O=new d({data:v,size:g}),D=new d({data:y,size:b}),T=[];for(t=0,p=x.length;t<p;t++)T[x[t]]=t;return{L:O,U:D,p:T,toString:function(){return"L: "+this.L.toString()+"\nU: "+this.U.toString()+"\nP: "+this.p}}}function m(e){var t,n,i,s=e._size[0],d=e._size[1],p=Math.min(s,d),m=e._values,v=e._index,g=e._ptr,y=[],b=[],x=[],w=[s,p],_=[],C=[],S=[],N=[p,d],k=[],E=[];for(t=0;t<s;t++)k[t]=t,E[t]=t;var M=function(e,t){var n=E[e],r=E[t];k[n]=t,k[r]=e,E[e]=r,E[t]=n},O=function(){var e=new f;n<s&&(x.push(y.length),y.push(1),b.push(n)),S.push(_.length);var d=g[n],p=g[n+1];for(i=d;i<p;i++)t=v[i],e.set(k[t],m[i]);n>0&&e.forEach(0,n-1,(function(t,n){h._forEachRow(t,y,b,x,(function(r,i){r>t&&e.accumulate(r,c(o(i,n)))}))}));var E=n,O=e.get(n),D=r(O);e.forEach(n+1,s-1,(function(e,t){var n=r(t);l(n,D)&&(E=e,D=n,O=t)})),n!==E&&(h._swapRows(n,E,w[1],y,b,x),h._swapRows(n,E,N[1],_,C,S),e.swap(n,E),M(n,E)),e.forEach(0,s-1,(function(e,t){e<=n?(_.push(t),C.push(e)):(t=a(t,O),u(t,0)||(y.push(t),b.push(e)))}))};for(n=0;n<d;n++)O();return S.push(_.length),x.push(y.length),{L:new h({values:y,index:b,ptr:x,size:w}),U:new h({values:_,index:C,ptr:S,size:N}),p:k,toString:function(){return"L: "+this.L.toString()+"\nU: "+this.U.toString()+"\nP: "+this.p}}}})),Ok="multinomial",Dk=["typed","add","divide","multiply","factorial","isInteger","isPositive"],Tk=Le(Ok,Dk,(e=>{var{typed:t,add:n,divide:r,multiply:i,factorial:a,isInteger:o,isPositive:s}=e;return t(Ok,{"Array | Matrix":function(e){var t=0,l=1;return Jn(e,(function(e){if(!o(e)||!s(e))throw new TypeError("Positive integer value expected in function multinomial");t=n(t,e),l=i(l,a(e))})),r(a(t),l)}})})),Ak="permutations",Ik=["typed","factorial"],$k=Le(Ak,Ik,(e=>{var{typed:t,factorial:n}=e;return t(Ak,{"number | BigNumber":n,"number, number":function(e,t){if(!Y(e)||e<0)throw new TypeError("Positive integer value expected in function permutations");if(!Y(t)||t<0)throw new TypeError("Positive integer value expected in function permutations");if(t>e)throw new TypeError("second argument k must be less than or equal to first argument n");return qp(e-t+1,e)},"BigNumber, BigNumber":function(e,t){var n,r;if(!Pk(e)||!Pk(t))throw new TypeError("Positive integer value expected in function permutations");if(t.gt(e))throw new TypeError("second argument k must be less than or equal to first argument n");var i=e.mul(0).add(1);for(n=i,r=e.minus(t).plus(1);r.lte(e);r=r.plus(1))n=n.times(r);return n}})}));function Pk(e){return e.isInteger()&&e.gte(0)}var jk="stirlingS2",Fk=["typed","addScalar","subtract","multiplyScalar","divideScalar","pow","factorial","combinations","isNegative","isInteger","number","?bignumber","larger"],Bk=Le(jk,Fk,(e=>{var{typed:t,addScalar:n,subtract:r,multiplyScalar:i,divideScalar:a,pow:o,factorial:s,combinations:u,isNegative:c,isInteger:d,number:h,bignumber:f,larger:p}=e,m=[],v=[];return t(jk,{"number | BigNumber, number | BigNumber":function(e,t){if(!d(e)||c(e)||!d(t)||c(t))throw new TypeError("Non-negative integer value expected in function stirlingS2");if(p(t,e))throw new TypeError("k must be less than or equal to n in function stirlingS2");var r=!(l(e)&&l(t)),a=r?v:m,o=r?f:h,s=h(e),u=h(t);if(a[s]&&a[s].length>u)return a[s][u];for(var g=0;g<=s;++g)if(a[g]||(a[g]=[o(0===g?1:0)]),0!==g)for(var y=a[g],b=a[g-1],x=y.length;x<=g&&x<=u;++x)y[x]=x===g?1:n(i(o(x),b[x]),b[x-1]);return a[s][u]}})})),Lk="unit",zk=["typed","Unit"],Rk=Le(Lk,zk,(e=>{var{typed:t,Unit:n}=e;return t(Lk,{Unit:function(e){return e.clone()},string:function(e){return n.isValuelessUnit(e)?new n(null,e):n.parse(e,{allowNoUnits:!0})},"number | BigNumber | Fraction | Complex, string":function(e,t){return new n(e,t)},"Array | Matrix":function(e){return Qn(e,this)}})})),Vk="bellNumbers",qk=["typed","addScalar","isNegative","isInteger","stirlingS2"],Hk=Le(Vk,qk,(e=>{var{typed:t,addScalar:n,isNegative:r,isInteger:i,stirlingS2:a}=e;return t(Vk,{"number | BigNumber":function(e){if(!i(e)||r(e))throw new TypeError("Non-negative integer value expected in function bellNumbers");for(var t=0,o=0;o<=e;o++)t=n(t,a(e,o));return t}})}));function Uk(e){var{addScalar:t,subtract:n,flatten:r,multiply:i,multiplyScalar:a,divideScalar:o,sqrt:s,abs:l,bignumber:u,diag:c,inv:d,qr:h,usolve:f,usolveAll:p,equal:m,complex:v,larger:g,smaller:y,matrixFromColumns:b,dot:x}=e;function w(e,t,n,r,i){void 0===i&&(i=!0);var a=_(e,t,n,r,i);C(e,t,n,r,i,a);var o,{values:s,C:l}=S(e,t,n,r,i);return i&&(o=N(e,t,l,a,s,n,r),o=b(...o)),{values:s,vectors:o}}function _(e,n,r,i,s){var d,h="BigNumber"===i,f="Complex"===i,p=h?u(0):0,b=h?u(1):f?v(1):1,x=h?u(1):1,w=h?u(10):2,_=a(w,w);s&&(d=Array(n).fill(b));var C=!1;while(!C){C=!0;for(var S=0;S<n;S++){for(var N=p,k=p,E=0;E<n;E++)if(S!==E){var M=l(e[S][E]);N=t(N,M),k=t(k,M)}if(!m(N,0)&&!m(k,0)){var O=x,D=N,T=o(k,w),A=a(k,w);while(y(D,T))D=a(D,_),O=a(O,w);while(g(D,A))D=o(D,_),O=o(O,w);var I=y(o(t(D,k),O),a(t(N,k),.95));if(I){C=!1;for(var $=o(1,O),P=0;P<n;P++)S!==P&&(e[S][P]=a(e[S][P],O),e[P][S]=a(e[P][S],$));s&&(d[S]=a(d[S],O))}}}}return c(d)}function C(e,r,i,s,c,d){var h="BigNumber"===s,f="Complex"===s,p=h?u(0):f?v(0):0;h&&(i=u(i));for(var m=0;m<r-2;m++){for(var g=0,b=p,x=m+1;x<r;x++){var w=e[x][m];y(l(b),l(w))&&(b=w,g=x)}if(!y(l(b),i)){if(g!==m+1){var _=e[g];e[g]=e[m+1],e[m+1]=_;for(var C=0;C<r;C++){var S=e[C][g];e[C][g]=e[C][m+1],e[C][m+1]=S}if(c){var N=d[g];d[g]=d[m+1],d[m+1]=N}}for(var k=m+2;k<r;k++){var E=o(e[k][m],b);if(0!==E){for(var M=0;M<r;M++)e[k][M]=n(e[k][M],a(E,e[m+1][M]));for(var O=0;O<r;O++)e[O][m+1]=t(e[O][m+1],a(E,e[O][k]));if(c)for(var D=0;D<r;D++)d[k][D]=n(d[k][D],a(E,d[m+1][D]))}}}}return d}function S(e,r,a,o,s){var d="BigNumber"===o,f="Complex"===o,p=d?u(1):f?v(1):1;d&&(a=u(a));var m=Ae(e),g=[],b=r,x=[],w=s?c(Array(r).fill(p)):void 0,_=s?c(Array(b).fill(p)):void 0,C=0;while(C<=100){C+=1;for(var S=0,N=0;N<b;N++)m[N][N]=n(m[N][N],S);var{Q:D,R:T}=h(m);m=i(T,D);for(var A=0;A<b;A++)m[A][A]=t(m[A][A],S);if(s&&(_=i(_,D)),1===b||y(l(m[b-1][b-2]),a)){C=0,g.push(m[b-1][b-1]),s&&(x.unshift([[1]]),M(_,r),w=i(w,_),b>1&&(_=c(Array(b-1).fill(p)))),b-=1,m.pop();for(var I=0;I<b;I++)m[I].pop()}else if(2===b||y(l(m[b-2][b-3]),a)){C=0;var $=k(m[b-2][b-2],m[b-2][b-1],m[b-1][b-2],m[b-1][b-1]);g.push(...$),s&&(x.unshift(E(m[b-2][b-2],m[b-2][b-1],m[b-1][b-2],m[b-1][b-1],$[0],$[1],a,o)),M(_,r),w=i(w,_),b>2&&(_=c(Array(b-2).fill(p)))),b-=2,m.pop(),m.pop();for(var P=0;P<b;P++)m[P].pop(),m[P].pop()}if(0===b)break}if(g.sort(((e,t)=>+n(l(e),l(t)))),C>100){var j=Error("The eigenvalues failed to converge. Only found these eigenvalues: "+g.join(", "));throw j.values=g,j.vectors=[],j}var F=s?i(w,O(x,r)):void 0;return{values:g,C:F}}function N(e,t,a,o,s,l,h){var f=d(a),g=i(f,e,a),y="BigNumber"===h,b="Complex"===h,x=y?u(0):b?v(0):0,w=y?u(1):b?v(1):1,_=[],C=[];for(var S of s){var N=D(_,S,m);-1===N?(_.push(S),C.push(1)):C[N]+=1}for(var k=[],E=_.length,M=Array(t).fill(x),O=c(Array(t).fill(w)),A=[],I=function(e){var s=_[e],u=n(g,i(s,O)),c=p(u,M);c.shift();while(c.length<C[e]){var f=T(u,t,c,l,h);if(null==f){A.push(s);break}c.push(f)}var m=i(d(o),a);c=c.map((e=>i(m,e))),k.push(...c.map((e=>r(e))))},$=0;$<E;$++)I($);if(0!==A.length){var P=new Error("Failed to find eigenvectors for the following eigenvalues: "+A.join(", "));throw P.values=s,P.vectors=k,P}return k}function k(e,r,i,o){var l=t(e,o),u=n(a(e,o),a(r,i)),c=a(l,.5),d=a(s(n(a(l,l),a(4,u))),.5);return[t(c,d),n(c,d)]}function E(e,t,r,i,a,o,s,c){var d="BigNumber"===c,h="Complex"===c,f=d?u(0):h?v(0):0,p=d?u(1):h?v(1):1;if(y(l(r),s))return[[p,f],[f,p]];if(g(l(n(a,o)),s))return[[n(a,i),n(o,i)],[r,r]];var m=n(e,a),b=n(t,a),x=n(r,a),w=n(i,a);return y(l(b),s)?[[m,p],[x,f]]:[[b,f],[w,p]]}function M(e,t){for(var n=0;n<e.length;n++)e[n].push(...Array(t-e[n].length).fill(0));for(var r=e.length;r<t;r++)e.push(Array(t).fill(0)),e[r][r]=1;return e}function O(e,t){for(var n=[],r=0;r<t;r++)n[r]=Array(t).fill(0);var i=0;for(var a of e){for(var o=a.length,s=0;s<o;s++)for(var l=0;l<o;l++)n[i+s][i+l]=a[s][l];i+=o}return n}function D(e,t,n){for(var r=0;r<e.length;r++)if(n(e[r],t))return r;return-1}function T(e,t,n,r,i){var a,o="BigNumber"===i?u(1e3):1e3,s=0;while(1){if(a=A(t,n,i),a=f(e,a),g($(a),o))break;if(++s>=5)return null}s=0;while(1){var l=f(e,a);if(y($(I(a,[l])),r))break;if(++s>=10)return null;a=P(l)}return a}function A(e,t,n){var r="BigNumber"===n,i="Complex"===n,a=Array(e).fill(0).map((e=>2*Math.random()-1));return r&&(a=a.map((e=>u(e)))),i&&(a=a.map((e=>v(e)))),a=I(a,t),P(a,n)}function I(e,t){for(var r of t)e=n(e,i(o(x(r,e),x(r,r)),r));return e}function $(e){return l(s(x(e,e)))}function P(e,t){var n="BigNumber"===t,r="Complex"===t,a=n?u(1):r?v(1):1;return i(o(a,$(e)),e)}return w}function Wk(e){var{config:t,addScalar:n,subtract:r,abs:i,atan:a,cos:o,sin:s,multiplyScalar:l,inv:u,bignumber:c,multiply:d,add:h}=e;function f(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.epsilon,i=arguments.length>3?arguments[3]:void 0;if("number"===i)return p(e,r);if("BigNumber"===i)return m(e,r);throw TypeError("Unsupported data type: "+i)}function p(e,t){for(var n,r=e.length,i=Math.abs(t/r),a=new Array(r),o=0;o<r;o++)a[o]=N(r,0),a[o][o]=1;var s=_(e);while(Math.abs(s[1])>=Math.abs(i)){var l=s[0][0],u=s[0][1];n=v(e[l][l],e[u][u],e[l][u]),e=w(e,n,l,u),a=y(a,n,l,u),s=_(e)}for(var c=N(r,0),d=0;d<r;d++)c[d]=e[d][d];return S(Ae(c),Ae(a))}function m(e,t){for(var n,r=e.length,a=i(t/r),o=new Array(r),s=0;s<r;s++)o[s]=N(r,0),o[s][s]=1;var l=C(e);while(i(l[1])>=i(a)){var u=l[0][0],c=l[0][1];n=g(e[u][u],e[c][c],e[u][c]),e=x(e,n,u,c),o=b(o,n,u,c),l=C(e)}for(var d=N(r,0),h=0;h<r;h++)d[h]=e[h][h];return S(Ae(d),Ae(o))}function v(e,n,r){var i=n-e;return Math.abs(i)<=t.epsilon?Math.PI/4:.5*Math.atan(2*r/(n-e))}function g(e,n,o){var s=r(n,e);return i(s)<=t.epsilon?c(-1).acos().div(4):l(.5,a(d(2,o,u(s))))}function y(e,t,n,r){for(var i=e.length,a=Math.cos(t),o=Math.sin(t),s=N(i,0),l=N(i,0),u=0;u<i;u++)s[u]=a*e[u][n]-o*e[u][r],l[u]=o*e[u][n]+a*e[u][r];for(var c=0;c<i;c++)e[c][n]=s[c],e[c][r]=l[c];return e}function b(e,t,i,a){for(var u=e.length,d=o(t),h=s(t),f=N(u,c(0)),p=N(u,c(0)),m=0;m<u;m++)f[m]=r(l(d,e[m][i]),l(h,e[m][a])),p[m]=n(l(h,e[m][i]),l(d,e[m][a]));for(var v=0;v<u;v++)e[v][i]=f[v],e[v][a]=p[v];return e}function x(e,t,i,a){for(var u=e.length,f=c(o(t)),p=c(s(t)),m=l(f,f),v=l(p,p),g=N(u,c(0)),y=N(u,c(0)),b=d(c(2),f,p,e[i][a]),x=n(r(l(m,e[i][i]),b),l(v,e[a][a])),w=h(l(v,e[i][i]),b,l(m,e[a][a])),_=0;_<u;_++)g[_]=r(l(f,e[i][_]),l(p,e[a][_])),y[_]=n(l(p,e[i][_]),l(f,e[a][_]));e[i][i]=x,e[a][a]=w,e[i][a]=c(0),e[a][i]=c(0);for(var C=0;C<u;C++)C!==i&&C!==a&&(e[i][C]=g[C],e[C][i]=g[C],e[a][C]=y[C],e[C][a]=y[C]);return e}function w(e,t,n,r){for(var i=e.length,a=Math.cos(t),o=Math.sin(t),s=a*a,l=o*o,u=N(i,0),c=N(i,0),d=s*e[n][n]-2*a*o*e[n][r]+l*e[r][r],h=l*e[n][n]+2*a*o*e[n][r]+s*e[r][r],f=0;f<i;f++)u[f]=a*e[n][f]-o*e[r][f],c[f]=o*e[n][f]+a*e[r][f];e[n][n]=d,e[r][r]=h,e[n][r]=0,e[r][n]=0;for(var p=0;p<i;p++)p!==n&&p!==r&&(e[n][p]=u[p],e[p][n]=u[p],e[r][p]=c[p],e[p][r]=c[p]);return e}function _(e){for(var t=e.length,n=0,r=[0,1],i=0;i<t;i++)for(var a=i+1;a<t;a++)Math.abs(n)<Math.abs(e[i][a])&&(n=Math.abs(e[i][a]),r=[i,a]);return[r,n]}function C(e){for(var t=e.length,n=0,r=[0,1],a=0;a<t;a++)for(var o=a+1;o<t;o++)i(n)<i(e[a][o])&&(n=i(e[a][o]),r=[a,o]);return[r,n]}function S(e,t){for(var n=e.length,r=Array(n),a=Array(n),o=0;o<n;o++)a[o]=Array(n);for(var s=0;s<n;s++){for(var l=0,u=e[0],c=0;c<e.length;c++)i(e[c])<i(u)&&(l=c,u=e[l]);r[s]=e.splice(l,1)[0];for(var d=0;d<n;d++)a[d][s]=t[d][l],t[d].splice(l,1)}return{values:r,vectors:a}}function N(e,t){for(var n=new Array(e),r=0;r<e;r++)n[r]=t;return n}return f}var Yk="eigs",Gk=["config","typed","matrix","addScalar","equal","subtract","abs","atan","cos","sin","multiplyScalar","divideScalar","inv","bignumber","multiply","add","larger","column","flatten","number","complex","sqrt","diag","qr","usolve","usolveAll","im","re","smaller","matrixFromColumns","dot"],Kk=Le(Yk,Gk,(e=>{var{config:t,typed:n,matrix:r,addScalar:i,subtract:a,equal:o,abs:s,atan:h,cos:f,sin:p,multiplyScalar:m,divideScalar:v,inv:g,bignumber:y,multiply:b,add:x,larger:w,column:_,flatten:C,number:S,complex:N,sqrt:k,diag:E,qr:M,usolve:O,usolveAll:D,im:T,re:A,smaller:I,matrixFromColumns:$,dot:P}=e,j=Wk({config:t,addScalar:i,subtract:a,column:_,flatten:C,equal:o,abs:s,atan:h,cos:f,sin:p,multiplyScalar:m,inv:g,bignumber:y,complex:N,multiply:b,add:x}),F=Uk({config:t,addScalar:i,subtract:a,multiply:b,multiplyScalar:m,flatten:C,divideScalar:v,sqrt:k,abs:s,bignumber:y,diag:E,qr:M,inv:g,usolve:O,usolveAll:D,equal:o,complex:N,larger:w,smaller:I,matrixFromColumns:$,dot:P});return n("eigs",{Array:function(e){var t=r(e);return B(t)},"Array, number|BigNumber":function(e,t){var n=r(e);return B(n,t)},Matrix:function(e){var{values:t,vectors:n}=B(e);return{values:r(t),vectors:r(n)}},"Matrix, number|BigNumber":function(e,t){var{values:n,vectors:i}=B(e,t);return{values:r(n),vectors:r(i)}}});function B(e,n){void 0===n&&(n=t.epsilon);var r=e.size();if(2!==r.length||r[0]!==r[1])throw new RangeError("Matrix must be square (size: "+Ne(r)+")");var i=e.toArray(),a=r[0];if(z(i,a,n)&&(R(i,a),L(i,a,n))){var o=V(e,i,a);return j(i,a,n,o)}var s=V(e,i,a);return F(i,a,n,s)}function L(e,t,n){for(var r=0;r<t;r++)for(var i=r;i<t;i++)if(w(y(s(a(e[r][i],e[i][r]))),n))return!1;return!0}function z(e,t,n){for(var r=0;r<t;r++)for(var i=0;i<t;i++)if(w(y(s(T(e[r][i]))),n))return!1;return!0}function R(e,t){for(var n=0;n<t;n++)for(var r=0;r<t;r++)e[n][r]=A(e[n][r])}function V(e,t,n){var r=e.datatype();if("number"===r||"BigNumber"===r||"Complex"===r)return r;for(var i=!1,a=!1,o=!1,s=0;s<n;s++)for(var h=0;h<n;h++){var f=t[s][h];if(l(f)||d(f))i=!0;else if(u(f))a=!0;else{if(!c(f))throw TypeError("Unsupported type in Matrix: "+W(f));o=!0}}if(a&&o&&console.warn("Complex BigNumbers not supported, this operation will lose precission."),o){for(var p=0;p<n;p++)for(var m=0;m<n;m++)t[p][m]=N(t[p][m]);return"Complex"}if(a){for(var v=0;v<n;v++)for(var g=0;g<n;g++)t[v][g]=y(t[v][g]);return"BigNumber"}if(i){for(var b=0;b<n;b++)for(var x=0;x<n;x++)t[b][x]=S(t[b][x]);return"number"}throw TypeError("Matrix contains unsupported types only.")}})),Xk="setSymDifference",Zk=["typed","size","concat","subset","setDifference","Index"],Jk=Le(Xk,Zk,(e=>{var{typed:t,size:n,concat:r,subset:i,setDifference:a,Index:o}=e;return t(Xk,{"Array | Matrix, Array | Matrix":function(e,t){if(0===i(n(e),new o(0)))return Dt(t);if(0===i(n(t),new o(0)))return Dt(e);var s=Dt(e),l=Dt(t);return r(a(s,l),a(l,s))}})}));function Qk(e,t){var n,r=t.length,i=[];if(e)for(n=0;n<r;n++)i[e[n]]=t[n];else for(n=0;n<r;n++)i[n]=t[n];return i}var eE="lusolve",tE=["typed","matrix","lup","slu","usolve","lsolve","DenseMatrix"],nE=Le(eE,tE,(e=>{var{typed:t,matrix:n,lup:r,slu:i,usolve:a,lsolve:o,DenseMatrix:s}=e,l=qw({DenseMatrix:s});return t(eE,{"Array, Array | Matrix":function(e,t){e=n(e);var i=r(e),a=c(i.L,i.U,i.p,null,t);return a.valueOf()},"DenseMatrix, Array | Matrix":function(e,t){var n=r(e);return c(n.L,n.U,n.p,null,t)},"SparseMatrix, Array | Matrix":function(e,t){var n=r(e);return c(n.L,n.U,n.p,null,t)},"SparseMatrix, Array | Matrix, number, number":function(e,t,n,r){var a=i(e,n,r);return c(a.L,a.U,a.p,a.q,t)},"Object, Array | Matrix":function(e,t){return c(e.L,e.U,e.p,e.q,t)}});function u(e){if(m(e))return e;if(p(e))return n(e);throw new TypeError("Invalid Matrix LU decomposition")}function c(e,t,n,r,i){e=u(e),t=u(t),n&&(i=l(e,i,!0),i._data=Qk(n,i._data));var s=o(e,i),c=a(t,s);return r&&(c._data=Qk(r,c._data)),c}})),rE="median",iE=["typed","add","divide","compare","partitionSelect"],aE=Le(rE,iE,(e=>{var{typed:t,add:n,divide:r,compare:i,partitionSelect:a}=e;function o(e){try{e=Dt(e.valueOf());var t=e.length;if(0===t)throw new Error("Cannot calculate median of an empty array");if(t%2===0){for(var n=t/2-1,r=a(e,n+1),o=e[n],u=0;u<n;++u)i(e[u],o)>0&&(o=e[u]);return l(o,r)}var c=a(e,(t-1)/2);return s(c)}catch(d){throw mu(d,"median")}}var s=t({"number | BigNumber | Complex | Unit":function(e){return e}}),l=t({"number | BigNumber | Complex | Unit, number | BigNumber | Complex | Unit":function(e,t){return r(n(e,t),2)}});return t(rE,{"Array | Matrix":o,"Array | Matrix, number | BigNumber":function(e,t){throw new Error("median(A, dim) is not yet supported")},"...":function(e){if(Zn(e))throw new TypeError("Scalar values expected in function median");return o(e)}})})),oE="setUnion",sE=["typed","size","concat","subset","setIntersect","setSymDifference","Index"],lE=Le(oE,sE,(e=>{var{typed:t,size:n,concat:r,subset:i,setIntersect:a,setSymDifference:o,Index:s}=e;return t(oE,{"Array | Matrix, Array | Matrix":function(e,t){if(0===i(n(e),new s(0)))return Dt(t);if(0===i(n(t),new s(0)))return Dt(e);var l=Dt(e),u=Dt(t);return r(o(l,u),a(l,u))}})})),uE="kldivergence",cE=["typed","matrix","divide","sum","multiply","dotDivide","log","isNumeric"],dE=Le(uE,cE,(e=>{var{typed:t,matrix:n,divide:r,sum:i,multiply:a,dotDivide:o,log:s,isNumeric:l}=e;return t(uE,{"Array, Array":function(e,t){return u(n(e),n(t))},"Matrix, Array":function(e,t){return u(e,n(t))},"Array, Matrix":function(e,t){return u(n(e),t)},"Matrix, Matrix":function(e,t){return u(e,t)}});function u(e,t){var n=t.size().length,u=e.size().length;if(n>1)throw new Error("first object must be one dimensional");if(u>1)throw new Error("second object must be one dimensional");if(n!==u)throw new Error("Length of two vectors must be equal");var c=i(e);if(0===c)throw new Error("Sum of elements in first object must be non zero");var d=i(t);if(0===d)throw new Error("Sum of elements in second object must be non zero");var h=r(e,i(e)),f=r(t,i(t)),p=i(a(h,s(o(h,f))));return l(p)?p:Number.NaN}})),hE="norm",fE=["typed","abs","add","pow","conj","sqrt","multiply","equalScalar","larger","smaller","matrix","ctranspose","eigs"],pE=Le(hE,fE,(e=>{var{typed:t,abs:n,add:r,pow:i,conj:a,sqrt:o,multiply:s,equalScalar:l,larger:u,smaller:c,matrix:d,ctranspose:h,eigs:f}=e;return t(hE,{number:Math.abs,Complex:function(e){return e.abs()},BigNumber:function(e){return e.abs()},boolean:function(e){return Math.abs(e)},Array:function(e){return _(d(e),2)},Matrix:function(e){return _(e,2)},"number | Complex | BigNumber | boolean, number | BigNumber | string":function(e){return this(e)},"Array, number | BigNumber | string":function(e,t){return _(d(e),t)},"Matrix, number | BigNumber | string":function(e,t){return _(e,t)}});function p(e){var t=0;return e.forEach((function(e){var r=n(e);u(r,t)&&(t=r)}),!0),t}function m(e){var t;return e.forEach((function(e){var r=n(e);t&&!c(r,t)||(t=r)}),!0),t||0}function v(e,t){if(t===Number.POSITIVE_INFINITY||"inf"===t)return p(e);if(t===Number.NEGATIVE_INFINITY||"-inf"===t)return m(e);if("fro"===t)return _(e,2);if("number"===typeof t&&!isNaN(t)){if(!l(t,0)){var a=0;return e.forEach((function(e){a=r(i(n(e),t),a)}),!0),i(a,1/t)}return Number.POSITIVE_INFINITY}throw new Error("Unsupported parameter value")}function g(e){var t=0;return e.forEach((function(e,n){t=r(t,s(e,a(e)))})),n(o(t))}function y(e){var t=[],i=0;return e.forEach((function(e,a){var o=a[1],s=r(t[o]||0,n(e));u(s,i)&&(i=s),t[o]=s}),!0),i}function b(e){var t=e.size();if(t[0]!==t[1])throw new RangeError("Invalid matrix dimensions");var r=h(e),i=s(r,e),a=f(i).values.toArray(),l=a[a.length-1];return n(o(l))}function x(e){var t=[],i=0;return e.forEach((function(e,a){var o=a[0],s=r(t[o]||0,n(e));u(s,i)&&(i=s),t[o]=s}),!0),i}function w(e,t){if(1===t)return y(e);if(t===Number.POSITIVE_INFINITY||"inf"===t)return x(e);if("fro"===t)return g(e);if(2===t)return b(e);throw new Error("Unsupported parameter value "+t)}function _(e,t){var n=e.size();if(1===n.length)return v(e,t);if(2===n.length){if(n[0]&&n[1])return w(e,t);throw new RangeError("Invalid matrix dimensions")}}})),mE="rotationMatrix",vE=["typed","config","multiplyScalar","addScalar","unaryMinus","norm","matrix","BigNumber","DenseMatrix","SparseMatrix","cos","sin"],gE=Le(mE,vE,(e=>{var{typed:t,config:n,multiplyScalar:r,addScalar:i,unaryMinus:a,norm:o,BigNumber:s,matrix:l,DenseMatrix:c,SparseMatrix:d,cos:h,sin:f}=e;return t(mE,{"":function(){return"Matrix"===n.matrix?l([]):[]},string:function(e){return l(e)},"number | BigNumber | Complex | Unit":function(e){return p(e,"Matrix"===n.matrix?"dense":void 0)},"number | BigNumber | Complex | Unit, string":function(e,t){return p(e,t)},"number | BigNumber | Complex | Unit, Array":function(e,t){var n=l(t);return m(n),y(e,n,void 0)},"number | BigNumber | Complex | Unit, Matrix":function(e,t){m(t);var r=t.storage()||("Matrix"===n.matrix?"dense":void 0);return y(e,t,r)},"number | BigNumber | Complex | Unit, Array, string":function(e,t,n){var r=l(t);return m(r),y(e,r,n)},"number | BigNumber | Complex | Unit, Matrix, string":function(e,t,n){return m(t),y(e,t,n)}});function p(e,t){var n=u(e),i=n?new s(-1):-1,a=h(e),o=f(e),l=[[a,r(i,o)],[o,a]];return g(l,t)}function m(e){var t=e.size();if(t.length<1||3!==t[0])throw new RangeError("Vector must be of dimensions 1x3")}function v(e){return e.reduce(((e,t)=>r(e,t)))}function g(e,t){if(t){if("sparse"===t)return new d(e);if("dense"===t)return new c(e);throw new TypeError('Unknown matrix type "'.concat(t,'"'))}return e}function y(e,t,n){var r=o(t);if(0===r)throw new RangeError("Rotation around zero vector");var l=u(e)?s:null,c=l?new l(1):1,d=l?new l(-1):-1,p=l?new l(t.get([0])/r):t.get([0])/r,m=l?new l(t.get([1])/r):t.get([1])/r,y=l?new l(t.get([2])/r):t.get([2])/r,b=h(e),x=i(c,a(b)),w=f(e),_=i(b,v([p,p,x])),C=i(v([p,m,x]),v([d,y,w])),S=i(v([p,y,x]),v([m,w])),N=i(v([p,m,x]),v([y,w])),k=i(b,v([m,m,x])),E=i(v([m,y,x]),v([d,p,w])),M=i(v([p,y,x]),v([d,m,w])),O=i(v([m,y,x]),v([p,w])),D=i(b,v([y,y,x])),T=[[_,C,S],[N,k,E],[M,O,D]];return g(T,n)}})),yE="mad",bE=["typed","abs","map","median","subtract"],xE=Le(yE,bE,(e=>{var{typed:t,abs:n,map:r,median:i,subtract:a}=e;return t(yE,{"Array | Matrix":o,"...":function(e){return o(e)}});function o(e){if(e=Dt(e.valueOf()),0===e.length)throw new Error("Cannot calculate median absolute deviation (mad) of an empty array");try{var t=i(e);return i(r(e,(function(e){return n(a(e,t))})))}catch(o){throw o instanceof TypeError&&-1!==o.message.indexOf("median")?new TypeError(o.message.replace("median","mad")):mu(o,"mad")}}})),wE="rotate",_E=["typed","multiply","rotationMatrix"],CE=Le(wE,_E,(e=>{var{typed:t,multiply:n,rotationMatrix:r}=e;return t(wE,{"Array , number | BigNumber | Complex | Unit":function(e,t){i(e,2);var a=n(r(t),e);return a.toArray()},"Matrix , number | BigNumber | Complex | Unit":function(e,t){return i(e,2),n(r(t),e)},"Array, number | BigNumber | Complex | Unit, Array | Matrix":function(e,t,a){i(e,3);var o=n(r(t,a),e);return o},"Matrix, number | BigNumber | Complex | Unit, Array | Matrix":function(e,t,a){return i(e,3),n(r(t,a),e)}});function i(e,t){var n=Array.isArray(e)?vt(e):e.size();if(n.length>2)throw new RangeError("Vector must be of dimensions 1x".concat(t));if(2===n.length&&1!==n[1])throw new RangeError("Vector must be of dimensions 1x".concat(t));if(n[0]!==t)throw new RangeError("Vector must be of dimensions 1x".concat(t))}})),SE=Oc({config:s}),NE=Ic({}),kE=Zc({BigNumber:SE,config:s}),EE=Uc({}),ME=Ed({BigNumber:SE,config:s}),OE=uh({}),DE=ad({Complex:NE}),TE=Yc({BigNumber:SE,config:s}),AE=ed({BigNumber:SE,config:s}),IE=nd({BigNumber:SE,config:s}),$E=hh({}),PE=Gc({BigNumber:SE,config:s}),jE=Wc({}),FE=Jc({BigNumber:SE,config:s}),BE=mh({}),LE=yh({}),zE=rd({BigNumber:SE,config:s}),RE=Wd({BigNumber:SE,config:s}),VE=Xc({BigNumber:SE,config:s}),qE=Hc({}),HE=od({}),UE=wh({Matrix:$E}),WE=jd({BigNumber:SE,config:s}),YE=Qc({BigNumber:SE,config:s}),GE=Kc({BigNumber:SE,config:s}),KE=Sh({}),XE=id({BigNumber:SE,config:s}),ZE=Mh({BigNumber:SE,Complex:NE,DenseMatrix:UE,Fraction:OE}),JE=cf({BigNumber:SE,config:s,typed:ZE}),QE=Pd({BigNumber:SE,config:s}),eM=ff({typed:ZE}),tM=vf({Complex:NE,config:s,typed:ZE}),nM=Wf({BigNumber:SE,typed:ZE}),rM=Kf({BigNumber:SE,Complex:NE,config:s,typed:ZE}),iM=Jf({typed:ZE}),aM=tp({typed:ZE}),oM=ip({BigNumber:SE,Complex:NE,config:s,typed:ZE}),sM=sp({typed:ZE}),lM=cp({typed:ZE}),uM=fp({Complex:NE,config:s,typed:ZE}),cM=vp({BigNumber:SE,typed:ZE}),dM=jp({typed:ZE}),hM=Lp({typed:ZE}),fM=Vp({typed:ZE}),pM=Yp({typed:ZE}),mM=Zp({Complex:NE,typed:ZE}),vM=em({typed:ZE}),gM=rm({typed:ZE}),yM=om({BigNumber:SE,typed:ZE}),bM=um({BigNumber:SE,typed:ZE}),xM=hm({typed:ZE}),wM=gm({config:s,typed:ZE}),_M=xm({typed:ZE}),CM=Mm({typed:ZE}),SM=Tm({Complex:NE,typed:ZE}),NM=$m({typed:ZE}),kM=Bm({typed:ZE}),EM=Vm({typed:ZE}),MM=Um({typed:ZE}),OM=Gm({format:EM,typed:ZE}),DM=Zm({typed:ZE}),TM=ev({typed:ZE}),AM=uv({typed:ZE}),IM=hv({typed:ZE}),$M=mv({typed:ZE}),PM=td({BigNumber:SE,config:s}),jM=kv({Complex:NE,typed:ZE}),FM=Ov({Complex:NE,config:s,typed:ZE}),BM=Av({Complex:NE,config:s,typed:ZE}),LM=Pv({typed:ZE}),zM=Lv({typed:ZE}),RM=Gv({typed:ZE}),VM=Qv({typed:ZE}),qM=ng({format:EM,typed:ZE}),HM=lg({config:s,typed:ZE}),UM=dg({typed:ZE}),WM=vg({config:s,typed:ZE}),YM=bg({typed:ZE}),GM=_g({BigNumber:SE,typed:ZE}),KM=Ng({BigNumber:SE,Fraction:OE,complex:mM,typed:ZE}),XM=Mg({typed:ZE}),ZM=Tg({Matrix:$E,equalScalar:wM,typed:ZE}),JM=$g({typed:ZE}),QM=Fg({typed:ZE}),eO=zg({typed:ZE}),tO=qg({typed:ZE}),nO=Wg({typed:ZE}),rO=Kg({Complex:NE,config:s,typed:ZE}),iO=Jg({BigNumber:SE,typed:ZE}),aO=Ll({isInteger:TM,typed:ZE}),oO=ty({BigNumber:SE,Complex:NE,config:s,typed:ZE}),sO=iy({format:EM,typed:ZE}),lO=sy({typed:ZE}),uO=dy({typed:ZE}),cO=py({BigNumber:SE,typed:ZE}),dO=gy({typed:ZE}),hO=xy({typed:ZE}),fO=Cy({config:s,typed:ZE}),pO=ky({BigNumber:SE,typed:ZE}),mO=Oy({typed:ZE}),vO=Ay({SparseMatrix:ZM,typed:ZE}),gO=Py({Complex:NE,config:s,typed:ZE}),yO=By({typed:ZE}),bO=Ry({typed:ZE}),xO=Hy({BigNumber:SE,Complex:NE,config:s,typed:ZE}),wO=Yy({BigNumber:SE,typed:ZE}),_O=Xy({Fraction:OE,typed:ZE}),CO=Qy({typed:ZE}),SO=nb({DenseMatrix:UE,Matrix:$E,SparseMatrix:ZM,typed:ZE}),NO=ab({isZero:$M,matrix:SO,typed:ZE}),kO=Ob({DenseMatrix:UE,equalScalar:wM,matrix:SO,typed:ZE}),EO=Bb({BigNumber:SE,equalScalar:wM,matrix:SO,typed:ZE}),MO=Rb({bignumber:cM,fraction:_O,number:VM}),OO=Hb({DenseMatrix:UE,equalScalar:wM,matrix:SO,typed:ZE}),DO=Yb({config:s,multiplyScalar:zM,numeric:MO,typed:ZE}),TO=Xb({isInteger:TM,matrix:SO,typed:ZE}),AO=Qb({matrix:SO,config:s,typed:ZE}),IO=ax({DenseMatrix:UE,config:s,matrix:SO,typed:ZE}),$O=lx({matrix:SO,typed:ZE}),PO=eu({matrix:SO,typed:ZE}),jO=px({DenseMatrix:UE,addScalar:iM,equalScalar:wM,matrix:SO,typed:ZE,unaryMinus:bO}),FO=yx({matrix:SO,typed:ZE}),BO=wx({matrix:SO,typed:ZE}),LO=Sx({BigNumber:SE,config:s,matrix:SO,typed:ZE}),zO=Ex({BigNumber:SE,config:s,matrix:SO,typed:ZE}),RO=Dx({equalScalar:wM,matrix:SO,not:RM,typed:ZE,zeros:zO}),VO=Ix({equalScalar:wM,matrix:SO,typed:ZE}),qO=jx({DenseMatrix:UE,matrix:SO,typed:ZE}),HO=Lx({BigNumber:SE,Complex:NE,Fraction:OE,config:s,isNegative:AM,matrix:SO,typed:ZE,unaryMinus:bO}),UO=Vx({BigNumber:SE,DenseMatrix:UE,Fraction:OE,config:s,equalScalar:wM,matrix:SO,typed:ZE}),WO=Ux({matrix:SO,typed:ZE}),YO=cu({isInteger:TM,matrix:SO,typed:ZE}),GO=Gx({prod:DO,size:AO,typed:ZE}),KO=Zx({conj:vM,transpose:BO,typed:ZE}),XO=ew({DenseMatrix:UE,SparseMatrix:ZM,matrix:SO,typed:ZE}),ZO=rw({numeric:MO,typed:ZE}),JO=ow({DenseMatrix:UE,divideScalar:ZO,equalScalar:wM,matrix:SO,typed:ZE}),QO=uw({DenseMatrix:UE,equalScalar:wM,matrix:SO,typed:ZE}),eD=hw({addScalar:iM,divideScalar:ZO,exp:CM,i:DE,matrix:SO,multiplyScalar:zM,tau:VE,typed:ZE}),tD=mw({matrix:SO,typed:ZE}),nD=ww({BigNumber:SE,DenseMatrix:UE,equalScalar:wM,matrix:SO,typed:ZE}),rD=Sw({isNumeric:CO,typed:ZE}),iD=Ew({abs:eM,addScalar:iM,divideScalar:ZO,isPositive:IM,multiplyScalar:zM,smaller:IO,sqrt:gO,typed:ZE}),aD=Dw({conj:vM,dotDivide:JO,fft:eD,typed:ZE}),oD=Iw({matrix:SO,multiplyScalar:zM,typed:ZE}),sD=jw({DenseMatrix:UE,config:s,matrix:SO,typed:ZE}),lD=Vw({DenseMatrix:UE,equalScalar:wM,matrix:SO,typed:ZE,zeros:zO}),uD=Ww({DenseMatrix:UE,divideScalar:ZO,equalScalar:wM,matrix:SO,multiplyScalar:zM,subtract:jO,typed:ZE}),cD=Kw({flatten:tD,matrix:SO,size:AO,typed:ZE}),dD=Su({config:s,numeric:MO,smaller:IO,typed:ZE}),hD=Jw({isNaN:dO,isNumeric:CO,typed:ZE}),fD=t_({Complex:NE,config:s,divideScalar:ZO,typed:ZE}),pD=i_({BigNumber:SE,config:s,matrix:SO,typed:ZE}),mD=s_({compare:UO,isNaN:dO,isNumeric:CO,typed:ZE}),vD=d_({config:s,matrix:SO}),gD=p_({DenseMatrix:UE,equalScalar:wM,matrix:SO,typed:ZE,zeros:zO}),yD=y_({BigNumber:SE,DenseMatrix:UE,equalScalar:wM,matrix:SO,typed:ZE,zeros:zO}),bD=w_({DenseMatrix:UE,config:s,matrix:SO,typed:ZE}),xD=S_({DenseMatrix:UE,config:s,equalScalar:wM,matrix:SO,typed:ZE}),wD=E_({DenseMatrix:UE,divideScalar:ZO,equalScalar:wM,matrix:SO,multiplyScalar:zM,subtract:jO,typed:ZE}),_D=D_({DenseMatrix:UE,matrix:SO,typed:ZE}),CD=I_({DenseMatrix:UE,SparseMatrix:ZM,addScalar:iM,equalScalar:wM,matrix:SO,typed:ZE}),SD=L_({BigNumber:SE,DenseMatrix:UE,equalScalar:wM,matrix:SO,typed:ZE}),ND=V_({DenseMatrix:UE,equalScalar:wM,matrix:SO,typed:ZE}),kD=U_({addScalar:iM,combinations:pM,divideScalar:ZO,isInteger:TM,isNegative:AM,multiplyScalar:zM,typed:ZE}),ED=K_({compare:UO,typed:ZE}),MD=Vu({add:CD,typed:ZE,unaryPlus:JE}),OD=Q_({equal:QO,typed:ZE}),DD=Yl({matrix:SO,number:VM,subtract:jO,typed:ZE}),TD=nC({addScalar:iM,conj:vM,multiplyScalar:zM,size:AO,typed:ZE}),AD=aC({compareText:WO,isZero:$M,typed:ZE}),ID=uC({DenseMatrix:UE,config:s,equalScalar:wM,matrix:SO,round:yD,typed:ZE,zeros:zO}),$D=hC({BigNumber:SE,DenseMatrix:UE,SparseMatrix:ZM,config:s,matrix:SO,typed:ZE}),PD=mC({BigNumber:SE,add:CD,config:s,equal:QO,isInteger:TM,mod:kO,smaller:IO,typed:ZE,xgcd:LO}),jD=yC({DenseMatrix:UE,config:s,matrix:SO,typed:ZE}),FD=wC({Complex:NE,config:s,divideScalar:ZO,typed:ZE}),BD=SC({DenseMatrix:UE,divideScalar:ZO,equalScalar:wM,matrix:SO,multiplyScalar:zM,subtract:jO,typed:ZE}),LD=EC({flatten:tD,matrix:SO,size:AO,typed:ZE}),zD=DC({addScalar:iM,dot:TD,equalScalar:wM,matrix:SO,multiplyScalar:zM,typed:ZE}),RD=IC({addScalar:iM,complex:mM,conj:vM,divideScalar:ZO,equal:QO,identity:$D,isZero:$M,matrix:SO,multiplyScalar:zM,sign:KM,sqrt:gO,subtract:jO,typed:ZE,unaryMinus:bO,zeros:zO}),VD=Du({bignumber:cM,matrix:SO,config:s,larger:jD,largerEq:sD,smaller:IO,smallerEq:bD,typed:ZE}),qD=jC({DenseMatrix:UE,equalScalar:wM,matrix:SO,typed:ZE,zeros:zO}),HD=LC({compareNatural:ED,typed:ZE}),UD=mS({SparseMatrix:ZM,abs:eM,add:CD,divideScalar:ZO,larger:jD,largerEq:sD,multiply:zD,subtract:jO,transpose:BO,typed:ZE}),WD=ju({add:CD,config:s,numeric:MO,typed:ZE}),YD=yS({add:CD,matrix:SO,typed:ZE}),GD=wS({DenseMatrix:UE,divideScalar:ZO,equalScalar:wM,matrix:SO,multiplyScalar:zM,subtract:jO,typed:ZE}),KD=SS({Complex:NE,config:s,typed:ZE}),XD=MS({DenseMatrix:UE,config:s,equalScalar:wM,matrix:SO,round:yD,typed:ZE,zeros:zO}),ZD=TS({addScalar:iM,combinations:pM,isInteger:TM,isNegative:AM,isPositive:IM,larger:jD,typed:ZE}),JD=$S({matrix:SO,multiply:zD,subtract:jO,typed:ZE}),QD=FS({divideScalar:ZO,isZero:$M,matrix:SO,multiply:zD,subtract:jO,typed:ZE,unaryMinus:bO}),eT=zS({abs:eM,addScalar:iM,divideScalar:ZO,multiplyScalar:zM,sqrt:gO,subtract:jO,typed:ZE,unaryMinus:bO}),tT=qS({equalScalar:wM,matrix:SO,multiplyScalar:zM,typed:ZE}),nT=WS({larger:jD,smaller:IO}),rT=XS({Complex:NE,DenseMatrix:UE,ceil:XD,equalScalar:wM,floor:ID,matrix:SO,typed:ZE,zeros:zO}),iT=QS({DenseMatrix:UE,smaller:IO}),aT=nN({ImmutableDenseMatrix:iT}),oT=aN({abs:eM,add:CD,addScalar:iM,config:s,divideScalar:ZO,equalScalar:wM,flatten:tD,isNumeric:CO,isZero:$M,matrix:SO,multiply:zD,multiplyScalar:zM,smaller:IO,subtract:jO,typed:ZE}),sT=lN({equalScalar:wM,matrix:SO,typed:ZE}),lT=dN({Complex:NE,config:s,divideScalar:ZO,log:FD,typed:ZE}),uT=yu({config:s,larger:jD,numeric:MO,typed:ZE}),cT=pN({add:CD,compare:UO,multiply:zD,partitionSelect:mD,typed:ZE}),dT=Gu({Index:aT,matrix:SO,range:VD,typed:ZE}),hT=gN({DenseMatrix:UE,Index:aT,compareNatural:ED,size:AO,subset:PO,typed:ZE}),fT=xN({DenseMatrix:UE,Index:aT,compareNatural:ED,size:AO,subset:PO,typed:ZE}),pT=CN({Index:aT,compareNatural:ED,size:AO,subset:PO,typed:ZE}),mT=kN({Index:aT,compareNatural:ED,size:AO,subset:PO,typed:ZE}),vT=ON({compare:UO,compareNatural:ED,matrix:SO,typed:ZE}),gT=ec({Index:aT,matrix:SO,range:VD,typed:ZE}),yT=AN({Index:aT,typed:ZE}),bT=PN({abs:eM,addScalar:iM,det:QD,divideScalar:ZO,identity:$D,matrix:SO,multiply:zD,typed:ZE,unaryMinus:bO}),xT=BN({Complex:NE,add:CD,ctranspose:KO,deepEqual:OD,divideScalar:ZO,dot:TD,dotDivide:JO,equal:QO,inv:bT,matrix:SO,multiply:zD,typed:ZE}),wT=RN({Complex:NE,config:s,fraction:_O,identity:$D,inv:bT,matrix:SO,multiply:zD,number:VM,typed:ZE}),_T=HN({DenseMatrix:UE,Index:aT,compareNatural:ED,size:AO,subset:PO,typed:ZE}),CT=YN({Index:aT,compareNatural:ED,size:AO,subset:PO,typed:ZE}),ST=XN({FibonacciHeap:nT,addScalar:iM,equalScalar:wM}),NT=QN({abs:eM,add:CD,identity:$D,inv:bT,max:uT,multiply:zD,size:AO,sqrt:gO,subtract:jO,typed:ZE}),kT=ik({BigNumber:SE,Complex:NE,Fraction:OE,abs:eM,addScalar:iM,config:s,divideScalar:ZO,equal:QO,fix:rT,format:EM,isNumeric:CO,multiplyScalar:zM,number:VM,pow:wT,round:yD,subtract:jO}),ET=pd({BigNumber:SE,Unit:kT,config:s}),MT=Kd({BigNumber:SE,Unit:kT,config:s}),OT=Fd({BigNumber:SE,Unit:kT,config:s}),DT=gd({BigNumber:SE,Unit:kT,config:s}),TT=Ld({BigNumber:SE,Unit:kT,config:s}),AT=yd({BigNumber:SE,Unit:kT,config:s}),IT=sk({Unit:kT,typed:ZE}),$T=Dd({BigNumber:SE,Unit:kT,config:s}),PT=ck({DenseMatrix:UE,equalScalar:wM,matrix:SO,pow:wT,typed:ZE}),jT=fd({BigNumber:SE,Unit:kT,config:s}),FT=vd({BigNumber:SE,Unit:kT,config:s}),BT=fk({abs:eM,add:CD,identity:$D,inv:bT,multiply:zD,typed:ZE}),LT=zd({BigNumber:SE,Unit:kT,config:s}),zT=Rd({BigNumber:SE,Unit:kT,config:s}),RT=vk({BigNumber:SE,Complex:NE,config:s,multiplyScalar:zM,pow:wT,typed:ZE}),VT=ud({BigNumber:SE,Unit:kT,config:s}),qT=Md({BigNumber:SE,Unit:kT,config:s}),HT=_d({BigNumber:SE,Unit:kT,config:s}),UT=Vd({BigNumber:SE,Unit:kT,config:s}),WT=hd({BigNumber:SE,Unit:kT,config:s}),YT=Xd({BigNumber:SE,Unit:kT,config:s}),GT=Hd({BigNumber:SE,Unit:kT,config:s}),KT=Td({BigNumber:SE,Unit:kT,config:s}),XT=wd({BigNumber:SE,Unit:kT,config:s}),ZT=nh({BigNumber:SE,Unit:kT,config:s}),JT=Qd({BigNumber:SE,Unit:kT,config:s}),QT=rh({BigNumber:SE,Unit:kT,config:s}),eA=Od({BigNumber:SE,Unit:kT,config:s}),tA=dd({BigNumber:SE,Unit:kT,config:s}),nA=Id({BigNumber:SE,Unit:kT,config:s}),rA=bk({DenseMatrix:UE,Index:aT,compareNatural:ED,size:AO,subset:PO,typed:ZE}),iA=ld({BigNumber:SE,Unit:kT,config:s}),aA=Gd({BigNumber:SE,Unit:kT,config:s}),oA=$d({BigNumber:SE,Unit:kT,config:s}),sA=Bd({BigNumber:SE,Unit:kT,config:s}),lA=Cd({BigNumber:SE,Unit:kT,config:s}),uA=md({BigNumber:SE,Unit:kT,config:s}),cA=_k({divideScalar:ZO,equalScalar:wM,inv:bT,matrix:SO,multiply:zD,typed:ZE}),dA=Nd({BigNumber:SE,Unit:kT,config:s}),hA=Nk({gamma:RT,typed:ZE}),fA=Jd({BigNumber:SE,Unit:kT,config:s}),pA=bd({BigNumber:SE,Unit:kT,config:s}),mA=Mk({DenseMatrix:UE,Spa:ST,SparseMatrix:ZM,abs:eM,addScalar:iM,divideScalar:ZO,equalScalar:wM,larger:jD,matrix:SO,multiplyScalar:zM,subtract:jO,typed:ZE,unaryMinus:bO}),vA=xd({BigNumber:SE,Unit:kT,config:s}),gA=Zd({BigNumber:SE,Unit:kT,config:s}),yA=Tk({add:CD,divide:cA,factorial:hA,isInteger:TM,isPositive:IM,multiply:zD,typed:ZE}),bA=$k({factorial:hA,typed:ZE}),xA=eh({BigNumber:SE,Unit:kT,config:s}),wA=Ad({BigNumber:SE,Unit:kT,config:s}),_A=Yd({BigNumber:SE,Unit:kT,config:s}),CA=Bk({bignumber:cM,addScalar:iM,combinations:pM,divideScalar:ZO,factorial:hA,isInteger:TM,isNegative:AM,larger:jD,multiplyScalar:zM,number:VM,pow:wT,subtract:jO,typed:ZE}),SA=Rk({Unit:kT,typed:ZE}),NA=Hk({addScalar:iM,isInteger:TM,isNegative:AM,stirlingS2:CA,typed:ZE}),kA=Kk({abs:eM,add:CD,addScalar:iM,atan:lM,bignumber:cM,column:gT,complex:mM,config:s,cos:uO,diag:XO,divideScalar:ZO,dot:TD,equal:QO,flatten:tD,im:DM,inv:bT,larger:jD,matrix:SO,matrixFromColumns:cD,multiply:zD,multiplyScalar:zM,number:VM,qr:RD,re:YM,sin:XM,smaller:IO,sqrt:gO,subtract:jO,typed:ZE,usolve:wD,usolveAll:GD}),EA=kd({BigNumber:SE,Unit:kT,config:s}),MA=uc({add:CD,divide:cA,typed:ZE}),OA=Ud({BigNumber:SE,Unit:kT,config:s}),DA=cd({BigNumber:SE,Unit:kT,config:s}),TA=Jk({Index:aT,concat:YO,setDifference:_T,size:AO,subset:PO,typed:ZE}),AA=Sd({BigNumber:SE,Unit:kT,config:s}),IA=nE({DenseMatrix:UE,lsolve:uD,lup:mA,matrix:SO,slu:UD,typed:ZE,usolve:wD}),$A=aE({add:CD,compare:UO,divide:cA,partitionSelect:mD,typed:ZE}),PA=lE({Index:aT,concat:YO,setIntersect:rA,setSymDifference:TA,size:AO,subset:PO,typed:ZE}),jA=vc({add:CD,apply:aO,divide:cA,isNaN:dO,multiply:zD,subtract:jO,typed:ZE}),FA=dE({divide:cA,dotDivide:JO,isNumeric:CO,log:FD,matrix:SO,multiply:zD,sum:WD,typed:ZE}),BA=pE({abs:eM,add:CD,conj:vM,ctranspose:KO,eigs:kA,equalScalar:wM,larger:jD,matrix:SO,multiply:zD,pow:wT,smaller:IO,sqrt:gO,typed:ZE}),LA=th({BigNumber:SE,Unit:kT,config:s}),zA=gE({BigNumber:SE,DenseMatrix:UE,SparseMatrix:ZM,addScalar:iM,config:s,cos:uO,matrix:SO,multiplyScalar:zM,norm:BA,sin:XM,typed:ZE,unaryMinus:bO}),RA=qd({BigNumber:SE,Unit:kT,config:s}),VA=_c({sqrt:gO,typed:ZE,variance:jA}),qA=xE({abs:eM,map:LM,median:$A,subtract:jO,typed:ZE}),HA=CE({multiply:zD,rotationMatrix:zA,typed:ZE}),UA={},WA={},YA={},GA=Ue({math:UA}),KA=ct({mathWithTransform:WA}),XA=ft({Node:KA}),ZA=Qt({Node:KA}),JA=nn({Node:KA}),QA=on({Node:KA}),eI=un({Node:KA}),tI=hn({Node:KA,ResultSet:LE}),nI=mn({Node:KA}),rI=yn({Node:KA}),iI=wn({Node:KA}),aI=Sn({classes:YA}),oI=En({Chain:GA,typed:ZE}),sI=Dn({Node:KA,typed:ZE}),lI=Pn({Node:KA,subset:PO}),uI=Ln({matrix:SO,Node:KA,subset:PO}),cI=Vn({Node:KA,size:AO}),dI=Un({Unit:kT,Node:KA,math:UA}),hI=Kn({Node:KA,SymbolNode:dI,math:UA}),fI=ar({AccessorNode:lI,ArrayNode:eI,AssignmentNode:uI,BlockNode:tI,ConditionalNode:nI,ConstantNode:rI,FunctionAssignmentNode:sI,FunctionNode:hI,IndexNode:cI,ObjectNode:XA,OperatorNode:ZA,ParenthesisNode:JA,RangeNode:iI,RelationalNode:QA,SymbolNode:dI,config:s,numeric:MO,typed:ZE}),pI=lr({ConstantNode:rI,FunctionNode:hI,OperatorNode:ZA,ParenthesisNode:JA,parse:fI}),mI=gr({AccessorNode:lI,ArrayNode:eI,ConstantNode:rI,FunctionNode:hI,IndexNode:cI,ObjectNode:XA,OperatorNode:ZA,ParenthesisNode:JA,SymbolNode:dI,add:CD,divide:cA,equal:QO,isZero:$M,multiply:zD,pow:wT,subtract:jO}),vI=xr({parse:fI,typed:ZE}),gI=Cr({parse:fI}),yI=kr({parse:fI,typed:ZE}),bI=Pr({bignumber:cM,fraction:_O,AccessorNode:lI,ArrayNode:eI,ConstantNode:rI,FunctionNode:hI,IndexNode:cI,ObjectNode:XA,OperatorNode:ZA,ParenthesisNode:JA,SymbolNode:dI,add:CD,config:s,divide:cA,equal:QO,isZero:$M,mathWithTransform:WA,matrix:SO,multiply:zD,parse:fI,pow:wT,resolve:pI,simplifyCore:mI,subtract:jO,typed:ZE}),xI=Br({OperatorNode:ZA,parse:fI,simplify:bI,typed:ZE}),wI=Rr({parse:fI,typed:ZE}),_I=ul({Help:gI,mathWithTransform:WA,typed:ZE}),CI=hl({evaluate:wI}),SI=ml({bignumber:cM,fraction:_O,AccessorNode:lI,ArrayNode:eI,ConstantNode:rI,FunctionNode:hI,IndexNode:cI,ObjectNode:XA,OperatorNode:ZA,ParenthesisNode:JA,SymbolNode:dI,add:CD,config:s,divide:cA,equal:QO,isZero:$M,mathWithTransform:WA,matrix:SO,multiply:zD,parse:fI,pow:wT,simplify:bI,simplifyCore:mI,subtract:jO,typed:ZE}),NI=yl({ConstantNode:rI,FunctionNode:hI,OperatorNode:ZA,ParenthesisNode:JA,SymbolNode:dI,config:s,equal:QO,isZero:$M,numeric:MO,parse:fI,simplify:bI,typed:ZE}),kI=wl({Parser:CI,typed:ZE});r(UA,{e:kE,false:EE,fineStructure:ME,i:DE,Infinity:TE,LN10:AE,LOG10E:IE,NaN:PE,null:jE,phi:FE,SQRT1_2:zE,sackurTetrode:RE,tau:VE,true:qE,E:kE,version:HE,efimovFactor:WE,LN2:YE,pi:GE,replacer:KE,reviver:aI,SQRT2:XE,typed:ZE,unaryPlus:JE,PI:GE,weakMixingAngle:QE,abs:eM,acos:tM,acot:nM,acsc:rM,addScalar:iM,arg:aM,asech:oM,asinh:sM,atan:lM,atanh:uM,bignumber:cM,bitNot:dM,boolean:hM,chain:oI,clone:fM,combinations:pM,complex:mM,conj:vM,cosh:gM,coth:yM,csc:bM,cube:xM,equalScalar:wM,erf:_M,exp:CM,expm1:SM,filter:NM,forEach:kM,format:EM,getMatrixDataType:MM,hex:OM,im:DM,isInteger:TM,isNegative:AM,isPositive:IM,isZero:$M,LOG2E:PM,lgamma:jM,log10:FM,log2:BM,map:LM,multiplyScalar:zM,not:RM,number:VM,oct:qM,pickRandom:HM,print:UM,random:WM,re:YM,sec:GM,sign:KM,sin:XM,splitUnit:JM,square:QM,string:eO,tan:tO,typeOf:nO,acosh:rO,acsch:iO,apply:aO,asec:oO,bin:sO,combinationsWithRep:lO,cos:uO,csch:cO,isNaN:dO,isPrime:hO,randomInt:fO,sech:pO,sinh:mO,sparse:vO,sqrt:gO,tanh:yO,unaryMinus:bO,acoth:xO,cot:wO,fraction:_O,isNumeric:CO,matrix:SO,matrixFromFunction:NO,mod:kO,nthRoot:EO,numeric:MO,or:OO,prod:DO,reshape:TO,size:AO,smaller:IO,squeeze:$O,subset:PO,subtract:jO,to:FO,transpose:BO,xgcd:LO,zeros:zO,and:RO,bitAnd:VO,bitXor:qO,cbrt:HO,compare:UO,compareText:WO,concat:YO,count:GO,ctranspose:KO,diag:XO,divideScalar:ZO,dotDivide:JO,equal:QO,fft:eD,flatten:tD,gcd:nD,hasNumericValue:rD,hypot:iD,ifft:aD,kron:oD,largerEq:sD,leftShift:lD,lsolve:uD,matrixFromColumns:cD,min:dD,mode:hD,nthRoots:fD,ones:pD,partitionSelect:mD,resize:vD,rightArithShift:gD,round:yD,smallerEq:bD,unequal:xD,usolve:wD,xor:_D,add:CD,atan2:SD,bitOr:ND,catalan:kD,compareNatural:ED,cumsum:MD,deepEqual:OD,diff:DD,dot:TD,equalText:AD,floor:ID,identity:$D,invmod:PD,larger:jD,log:FD,lsolveAll:BD,matrixFromRows:LD,multiply:zD,qr:RD,range:VD,rightLogShift:qD,setSize:HD,slu:UD,sum:WD,trace:YD,usolveAll:GD,asin:KD,ceil:XD,composition:ZD,cross:JD,det:QD,distance:eT,dotMultiply:tT,fix:rT,intersect:oT,lcm:sT,log1p:lT,max:uT,quantileSeq:cT,row:dT,setCartesian:hT,setDistinct:fT,setIsSubset:pT,setPowerset:mT,sort:vT,column:gT,index:yT,inv:bT,pinv:xT,pow:wT,setDifference:_T,setMultiplicity:CT,sqrtm:NT,vacuumImpedance:ET,wienDisplacement:MT,atomicMass:OT,bohrMagneton:DT,boltzmann:TT,conductanceQuantum:AT,createUnit:IT,deuteronMass:$T,dotPow:PT,electricConstant:jT,elementaryCharge:FT,expm:BT,faraday:LT,firstRadiation:zT,gamma:RT,gravitationConstant:VT,hartreeEnergy:qT,klitzing:HT,loschmidt:UT,magneticConstant:WT,molarMass:YT,molarPlanckConstant:GT,neutronMass:KT,nuclearMagneton:XT,planckCharge:ZT,planckLength:JT,planckTemperature:QT,protonMass:eA,reducedPlanckConstant:tA,rydberg:nA,setIntersect:rA,speedOfLight:iA,stefanBoltzmann:aA,thomsonCrossSection:oA,avogadro:sA,bohrRadius:lA,coulomb:uA,divide:cA,electronMass:dA,factorial:hA,gravity:fA,inverseConductanceQuantum:pA,lup:mA,magneticFluxQuantum:vA,molarMassC12:gA,multinomial:yA,parse:fI,permutations:bA,planckMass:xA,quantumOfCirculation:wA,resolve:pI,secondRadiation:_A,simplifyCore:mI,stirlingS2:CA,unit:SA,bellNumbers:NA,compile:vI,eigs:kA,fermiCoupling:EA,leafCount:yI,mean:MA,molarVolume:OA,planckConstant:DA,setSymDifference:TA,simplify:bI,symbolicEqual:xI,classicalElectronRadius:AA,evaluate:wI,help:_I,lusolve:IA,median:$A,rationalize:SI,setUnion:PA,variance:jA,derivative:NI,kldivergence:FA,norm:BA,planckTime:LA,rotationMatrix:zA,gasConstant:RA,parser:kI,std:VA,mad:qA,rotate:HA,config:s}),r(WA,UA,{filter:Ml({typed:ZE}),forEach:Al({typed:ZE}),map:Pl({typed:ZE}),apply:Hl({isInteger:TM,typed:ZE}),diff:Zl({bignumber:cM,matrix:SO,number:VM,subtract:jO,typed:ZE}),subset:su({matrix:SO,typed:ZE}),concat:pu({isInteger:TM,matrix:SO,typed:ZE}),max:wu({config:s,larger:jD,numeric:MO,typed:ZE}),min:Eu({config:s,numeric:MO,smaller:IO,typed:ZE}),range:Iu({bignumber:cM,matrix:SO,config:s,larger:jD,largerEq:sD,smaller:IO,smallerEq:bD,typed:ZE}),sum:Lu({add:CD,config:s,numeric:MO,typed:ZE}),cumsum:Uu({add:CD,typed:ZE,unaryPlus:JE}),row:Zu({Index:aT,matrix:SO,range:VD,typed:ZE}),column:rc({Index:aT,matrix:SO,range:VD,typed:ZE}),index:oc({Index:aT}),mean:hc({add:CD,divide:cA,typed:ZE}),variance:bc({add:CD,apply:aO,divide:cA,isNaN:dO,multiply:zD,subtract:jO,typed:ZE}),std:Nc({sqrt:gO,typed:ZE,variance:jA})}),r(YA,{BigNumber:SE,Chain:GA,Complex:NE,Fraction:OE,Matrix:$E,Node:KA,ObjectNode:XA,OperatorNode:ZA,ParenthesisNode:JA,Range:BE,RelationalNode:QA,ResultSet:LE,ArrayNode:eI,BlockNode:tI,ConditionalNode:nI,ConstantNode:rI,DenseMatrix:UE,RangeNode:iI,FunctionAssignmentNode:sI,SparseMatrix:ZM,AccessorNode:lI,AssignmentNode:uI,IndexNode:cI,FibonacciHeap:nT,ImmutableDenseMatrix:iT,Index:aT,Spa:ST,Unit:kT,SymbolNode:dI,FunctionNode:hI,Help:gI,Parser:CI}),GA.createProxy(UA)},2996:function(e,t,n){"use strict";function r(e,t){return t.get?t.get.call(e):t.value}n.d(t,{Z:function(){return a}});n(1703);function i(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function a(e,t){var n=i(e,t,"get");return r(e,n)}},103:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});n(1703);function r(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function i(e,t,n){r(e,t),t.set(e,n)}},8593:function(e){"use strict";e.exports=JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}')}}]);
|