bri-components 1.2.13 → 1.2.14

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.
@@ -1,4 +1,4 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("vue"),require("axios"),require("view-design"),require("vuedraggable"),require("vue-cropperjs"),require("minio"),require("wangeditor"),require("jshint"),require("vue-codemirror")):"function"==typeof define&&define.amd?define("bri-components",["vue","axios","view-design","vuedraggable","vue-cropperjs","minio","wangeditor","jshint","vue-codemirror"],t):"object"==typeof exports?exports["bri-components"]=t(require("vue"),require("axios"),require("view-design"),require("vuedraggable"),require("vue-cropperjs"),require("minio"),require("wangeditor"),require("jshint"),require("vue-codemirror")):e["bri-components"]=t(e.Vue,e.axios,e["view-design"],e.vuedraggable,e["vue-cropperjs"],e.minio,e.wangeditor,e.jshint,e["vue-codemirror"])}("undefined"!=typeof self?self:this,function(e,t,n,r,i,o,a,s,l){return function(e){var t=window.webpackJsonpbri_components;window.webpackJsonpbri_components=function(n,i,o){for(var a,s,l=0,c=[];l<n.length;l++)s=n[l],r[s]&&c.push(r[s][0]),r[s]=0;for(a in i)Object.prototype.hasOwnProperty.call(i,a)&&(e[a]=i[a]);for(t&&t(n,i,o);c.length;)c.shift()()};var n={},r={7:0};function i(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.e=function(e){var t=r[e];if(0===t)return new Promise(function(e){e()});if(t)return t[2];var n=new Promise(function(n,i){t=r[e]=[n,i]});t[2]=n;var o=document.getElementsByTagName("head")[0],a=document.createElement("script");a.type="text/javascript",a.charset="utf-8",a.async=!0,a.timeout=12e4,i.nc&&a.setAttribute("nonce",i.nc),a.src=i.p+""+e+".bri-components.min.js";var s=setTimeout(l,12e4);function l(){a.onerror=a.onload=null,clearTimeout(s);var t=r[e];0!==t&&(t&&t[1](new Error("Loading chunk "+e+" failed.")),r[e]=void 0)}return a.onerror=a.onload=l,o.appendChild(a),n},i.m=e,i.c=n,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/lib/",i.oe=function(e){throw console.error(e),e},i(i.s=211)}([function(e,t){e.exports=function(e,t,n,r,i,o){var a,s=e=e||{},l=typeof e.default;"object"!==l&&"function"!==l||(a=e,s=e.default);var c,u="function"==typeof s?s.options:s;if(t&&(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0),n&&(u.functional=!0),i&&(u._scopeId=i),o?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},u._ssrRegister=c):r&&(c=r),c){var d=u.functional,f=d?u.render:u.beforeCreate;d?(u._injectStyles=c,u.render=function(e,t){return c.call(t),f(e,t)}):u.beforeCreate=f?[].concat(f,c):[c]}return{esModule:a,exports:s,options:u}}},function(e,t,n){"use strict";t.__esModule=!0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(19));t.default=r.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}},function(e,t,n){"use strict";t.__esModule=!0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(230));t.default=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return(0,r.default)(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={props:{canEdit:{type:Boolean,default:!0},value:{type:Object,default:function(){return{}}},propsObj:{type:Object,default:function(){return{}}},allFormList:{type:Array,default:function(){return[]}},rowIndex:Number,parentData:{type:Array,default:function(){return[]}}},data:function(){return{}},computed:{curVal:{get:function(){return this.value[this.controlKey]},set:function(e){this.value[this.controlKey]=e}},curValList:{get:function(){return this.value[this.controlKey]||[]},set:function(e){this.$set(this.value,this.controlKey,e),this.change()}},emptyShowVal:function(){return this.canEdit?this.commonDealPropsObj._placeholder:this.isUnitShow?"--":"暂无内容"},showVal:function(){return this.$isEmptyData(this.curVal)?this.emptyShowVal:this.curVal},controlKey:function(){return this.propsObj._key},fieldKey:function(){return"_default"===this.controlKey?this.value._key:this.propsObj.__realKey__||this.controlKey},controlType:function(){return this.propsObj._type},finalCanEdit:function(){return this.canEdit&&(void 0==this.propsObj.canEdit||this.propsObj.canEdit)},multipleMode:function(){return!!this.propsObj._multiple},commonDealPropsObj:function(){return{_placeholder:this.canEdit&&"calculate"!==this.propsObj._enterType?this.propsObj._placeholder||"请"+(["date","switch","select","checkbox","file","region","regions","cascader","cascaders","coordinates","users","departments"].includes(this.propsObj._type)?"选择":"输入")+this.propsObj._name:void 0,_clearable:this.finalCanEdit&&(void 0===this.propsObj._clearable||this.propsObj._clearable)}},commonClass:function(){return{"bri-control-edit":this.canEdit&&this.finalCanEdit,"bri-control-disabled":this.canEdit&&!this.finalCanEdit,"bri-control-unit":!this.canEdit&&this.isUnitShow,"bri-control-show":!this.canEdit&&!this.isUnitShow,"dsh-ellipsis":!0,"bri-control-nodata":this.$isEmptyData(this.curVal)}},isFullRow:function(){return 24===this.propsObj._span||!this.propsObj._span},isCore:function(){return!!this.propsObj.isCore},isInTable:function(){return!!this.propsObj.isInTable},isUnitShow:function(){return!this.canEdit&&this.isInTable},isShare:function(){return!!this.propsObj.isShare},compKey:function(){return this.propsObj.compKey},appKey:function(){return this.propsObj.appKey},entityKey:function(){return this.propsObj.entityKey},modKey:function(){return this.propsObj.modKey}},methods:{change:function(){this.$emit("change",this.value[this.controlKey])},refChange:function(){this.$emit("refChange",this.value[this.controlKey])}}}},function(e,t){var n=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},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)},function(e,t,n){var r=n(53)("wks"),i=n(35),o=n(5).Symbol,a="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=r},function(e,t,n){!function(t,n){e.exports=n()}(0,function(){"use strict";var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),a=r||i||o,s=a&&(r?document.documentMode||6:+(o||i)[1]),l=!o&&/WebKit\//.test(e),c=l&&/Qt\/\d+\.\d+/.test(e),u=!o&&/Chrome\/(\d+)/.exec(e),d=u&&+u[1],f=/Opera\//.test(e),h=/Apple Computer/.test(navigator.vendor),p=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),m=/PhantomJS/.test(e),y=h&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),v=/Android/.test(e),g=y||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),b=y||/Mac/.test(t),_=/\bCrOS\b/.test(e),k=/win/i.test(t),w=f&&e.match(/Version\/(\d*\.\d*)/);w&&(w=Number(w[1])),w&&w>=15&&(f=!1,l=!0);var x=b&&(c||f&&(null==w||w<12.11)),C=n||a&&s>=9;function S(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var A,O=function(e,t){var n=e.className,r=S(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function j(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function T(e,t){return j(e).appendChild(t)}function E(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)i.appendChild(t[o]);return i}function D(e,t,n,r){var i=E(e,t,n,r);return i.setAttribute("role","presentation"),i}function I(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function R(e){var t;try{t=e.activeElement}catch(n){t=e.body||null}for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function M(e,t){var n=e.className;S(t).test(n)||(e.className+=(n?" ":"")+t)}function P(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)n[r]&&!S(n[r]).test(t)&&(t+=" "+n[r]);return t}A=document.createRange?function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(e){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};var L=function(e){e.select()};function B(e){return e.display.wrapper.ownerDocument}function N(e){return B(e).defaultView}function F(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function K(e,t,n){for(var r in t||(t={}),e)!e.hasOwnProperty(r)||!1===n&&t.hasOwnProperty(r)||(t[r]=e[r]);return t}function V(e,t,n,r,i){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(var o=r||0,a=i||0;;){var s=e.indexOf("\t",o);if(s<0||s>=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}}y?L=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(L=function(e){try{e.select()}catch(e){}});var z=function(){this.id=null,this.f=null,this.time=0,this.handler=F(this.onTimeout,this)};function U(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}z.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},z.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=n)};var q=50,W={toString:function(){return"CodeMirror.Pass"}},$={scroll:!1},H={origin:"*mouse"},G={origin:"+move"};function Z(e,t,n){for(var r=0,i=0;;){var o=e.indexOf("\t",r);-1==o&&(o=e.length);var a=o-r;if(o==e.length||i+a>=t)return r+Math.min(a,t-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=t)return r}}var Y=[""];function X(e){for(;Y.length<=e;)Y.push(J(Y)+" ");return Y[e]}function J(e){return e[e.length-1]}function Q(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function ee(){}function te(e,t){var n;return Object.create?n=Object.create(e):(ee.prototype=e,n=new ee),t&&K(t,n),n}var ne=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function re(e){return/\w/.test(e)||e>"€"&&(e.toUpperCase()!=e.toLowerCase()||ne.test(e))}function ie(e,t){return t?!!(t.source.indexOf("\\w")>-1&&re(e))||t.test(e):re(e)}function oe(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ae=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function se(e){return e.charCodeAt(0)>=768&&ae.test(e)}function le(e,t,n){for(;(n<0?t>0:t<e.length)&&se(e.charAt(t));)t+=n;return t}function ce(e,t,n){for(var r=t>n?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}var ue=null;function de(e,t,n){var r;ue=null;for(var i=0;i<e.length;++i){var o=e[i];if(o.from<t&&o.to>t)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:ue=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:ue=i)}return null!=r?r:ue}var fe=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(n){return n<=247?e.charAt(n):1424<=n&&n<=1524?"R":1536<=n&&n<=1785?t.charAt(n-1536):1774<=n&&n<=2220?"r":8192<=n&&n<=8203?"w":8204==n?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,o=/[LRr]/,a=/[Lb1n]/,s=/[1n]/;function l(e,t,n){this.level=e,this.from=t,this.to=n}return function(e,t){var c="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!r.test(e))return!1;for(var u=e.length,d=[],f=0;f<u;++f)d.push(n(e.charCodeAt(f)));for(var h=0,p=c;h<u;++h){var m=d[h];"m"==m?d[h]=p:p=m}for(var y=0,v=c;y<u;++y){var g=d[y];"1"==g&&"r"==v?d[y]="n":o.test(g)&&(v=g,"r"==g&&(d[y]="R"))}for(var b=1,_=d[0];b<u-1;++b){var k=d[b];"+"==k&&"1"==_&&"1"==d[b+1]?d[b]="1":","!=k||_!=d[b+1]||"1"!=_&&"n"!=_||(d[b]=_),_=k}for(var w=0;w<u;++w){var x=d[w];if(","==x)d[w]="N";else if("%"==x){var C=void 0;for(C=w+1;C<u&&"%"==d[C];++C);for(var S=w&&"!"==d[w-1]||C<u&&"1"==d[C]?"1":"N",A=w;A<C;++A)d[A]=S;w=C-1}}for(var O=0,j=c;O<u;++O){var T=d[O];"L"==j&&"1"==T?d[O]="L":o.test(T)&&(j=T)}for(var E=0;E<u;++E)if(i.test(d[E])){var D=void 0;for(D=E+1;D<u&&i.test(d[D]);++D);for(var I="L"==(E?d[E-1]:c),R=I==("L"==(D<u?d[D]:c))?I?"L":"R":c,M=E;M<D;++M)d[M]=R;E=D-1}for(var P,L=[],B=0;B<u;)if(a.test(d[B])){var N=B;for(++B;B<u&&a.test(d[B]);++B);L.push(new l(0,N,B))}else{var F=B,K=L.length,V="rtl"==t?1:0;for(++B;B<u&&"L"!=d[B];++B);for(var z=F;z<B;)if(s.test(d[z])){F<z&&(L.splice(K,0,new l(1,F,z)),K+=V);var U=z;for(++z;z<B&&s.test(d[z]);++z);L.splice(K,0,new l(2,U,z)),K+=V,F=z}else++z;F<B&&L.splice(K,0,new l(1,F,B))}return"ltr"==t&&(1==L[0].level&&(P=e.match(/^\s+/))&&(L[0].from=P[0].length,L.unshift(new l(0,0,P[0].length))),1==J(L).level&&(P=e.match(/\s+$/))&&(J(L).to-=P[0].length,L.push(new l(0,u-P[0].length,u)))),"rtl"==t?L.reverse():L}}();function he(e,t){var n=e.order;return null==n&&(n=e.order=fe(e.text,t)),n}var pe=[],me=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent("on"+t,n);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||pe).concat(n)}};function ye(e,t){return e._handlers&&e._handlers[t]||pe}function ve(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var r=e._handlers,i=r&&r[t];if(i){var o=U(i,n);o>-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function ge(e,t){var n=ye(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function be(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),ge(e,n||t.type,e,t),Se(t)||t.codemirrorIgnore}function _e(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)-1==U(n,t[r])&&n.push(t[r])}function ke(e,t){return ye(e,t).length>0}function we(e){e.prototype.on=function(e,t){me(this,e,t)},e.prototype.off=function(e,t){ve(this,e,t)}}function xe(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Ce(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Se(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Ae(e){xe(e),Ce(e)}function Oe(e){return e.target||e.srcElement}function je(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),b&&e.ctrlKey&&1==t&&(t=3),t}var Te,Ee,De=function(){if(a&&s<9)return!1;var e=E("div");return"draggable"in e||"dragDrop"in e}();function Ie(e){if(null==Te){var t=E("span","​");T(e,E("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Te=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&s<8))}var n=Te?E("span","​"):E("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Re(e){if(null!=Ee)return Ee;var t=T(e,document.createTextNode("AخA")),n=A(t,0,1).getBoundingClientRect(),r=A(t,1,2).getBoundingClientRect();return j(e),!(!n||n.left==n.right)&&(Ee=r.right-n.right<3)}var Me=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Pe=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Le=function(){var e=E("div");return"oncopy"in e||(e.setAttribute("oncopy","return;"),"function"==typeof e.oncopy)}(),Be=null;var Ne={},Fe={};function Ke(e){if("string"==typeof e&&Fe.hasOwnProperty(e))e=Fe[e];else if(e&&"string"==typeof e.name&&Fe.hasOwnProperty(e.name)){var t=Fe[e.name];"string"==typeof t&&(t={name:t}),(e=te(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ke("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ke("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Ve(e,t){t=Ke(t);var n=Ne[t.name];if(!n)return Ve(e,"text/plain");var r=n(e,t);if(ze.hasOwnProperty(t.name)){var i=ze[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var ze={};function Ue(e,t){K(t,ze.hasOwnProperty(e)?ze[e]:ze[e]={})}function qe(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function We(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function $e(e,t,n){return!e.startState||e.startState(t,n)}var He=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function Ge(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t<o){n=i;break}t-=o}return n.lines[t]}function Ze(e,t,n){var r=[],i=t.line;return e.iter(t.line,n.line+1,function(e){var o=e.text;i==n.line&&(o=o.slice(0,n.ch)),i==t.line&&(o=o.slice(t.ch)),r.push(o),++i}),r}function Ye(e,t,n){var r=[];return e.iter(t,n,function(e){r.push(e.text)}),r}function Xe(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function Je(e){if(null==e.parent)return null;for(var t=e.parent,n=U(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var i=0;r.children[i]!=t;++i)n+=r.children[i].chunkSize();return n+t.first}function Qe(e,t){var n=e.first;e:do{for(var r=0;r<e.children.length;++r){var i=e.children[r],o=i.height;if(t<o){e=i;continue e}t-=o,n+=i.chunkSize()}return n}while(!e.lines);for(var a=0;a<e.lines.length;++a){var s=e.lines[a].height;if(t<s)break;t-=s}return n+a}function et(e,t){return t>=e.first&&t<e.first+e.size}function tt(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function nt(e,t,n){if(void 0===n&&(n=null),!(this instanceof nt))return new nt(e,t,n);this.line=e,this.ch=t,this.sticky=n}function rt(e,t){return e.line-t.line||e.ch-t.ch}function it(e,t){return e.sticky==t.sticky&&0==rt(e,t)}function ot(e){return nt(e.line,e.ch)}function at(e,t){return rt(e,t)<0?t:e}function st(e,t){return rt(e,t)<0?e:t}function lt(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function ct(e,t){if(t.line<e.first)return nt(e.first,0);var n=e.first+e.size-1;return t.line>n?nt(n,Ge(e,n).text.length):function(e,t){var n=e.ch;return null==n||n>t?nt(e.line,t):n<0?nt(e.line,0):e}(t,Ge(e,t.line).text.length)}function ut(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=ct(e,t[r]);return n}He.prototype.eol=function(){return this.pos>=this.string.length},He.prototype.sol=function(){return this.pos==this.lineStart},He.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},He.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},He.prototype.eat=function(e){var t=this.string.charAt(this.pos);if("string"==typeof e?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},He.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},He.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},He.prototype.skipToEnd=function(){this.pos=this.string.length},He.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},He.prototype.backUp=function(e){this.pos-=e},He.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=V(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?V(this.string,this.lineStart,this.tabSize):0)},He.prototype.indentation=function(){return V(this.string,null,this.tabSize)-(this.lineStart?V(this.string,this.lineStart,this.tabSize):0)},He.prototype.match=function(e,t,n){if("string"!=typeof e){var r=this.string.slice(this.pos).match(e);return r&&r.index>0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},He.prototype.current=function(){return this.string.slice(this.start,this.pos)},He.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},He.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},He.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var dt=function(e,t){this.state=e,this.lookAhead=t},ft=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function ht(e,t,n,r){var i=[e.state.modeGen],o={};wt(e,t.text,e.doc.mode,n,function(e,t){return i.push(e,t)},o,r);for(var a=n.state,s=function(r){n.baseTokens=i;var s=e.state.overlays[r],l=1,c=0;n.state=!0,wt(e,t.text,s.mode,n,function(e,t){for(var n=l;c<e;){var r=i[l];r>e&&i.splice(l,1,e,i[l+1],r),l+=2,c=Math.min(e,r)}if(t)if(s.opaque)i.splice(n,l-n,e,"overlay "+t),l=n+2;else for(;n<l;n+=2){var o=i[n+1];i[n+1]=(o?o+" ":"")+"overlay "+t}},o),n.state=a,n.baseTokens=null,n.baseTokenPos=1},l=0;l<e.state.overlays.length;++l)s(l);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function pt(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=mt(e,Je(t)),i=t.text.length>e.options.maxHighlightLength&&qe(e.doc.mode,r.state),o=ht(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function mt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new ft(r,!0,t);var o=function(e,t,n){for(var r,i,o=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>a;--s){if(s<=o.first)return o.first;var l=Ge(o,s-1),c=l.stateAfter;if(c&&(!n||s+(c instanceof dt?c.lookAhead:0)<=o.modeFrontier))return s;var u=V(l.text,null,e.options.tabSize);(null==i||r>u)&&(i=s-1,r=u)}return i}(e,t,n),a=o>r.first&&Ge(r,o-1).stateAfter,s=a?ft.fromSaved(r,a,o):new ft(r,$e(r.mode),o);return r.iter(o,t,function(n){yt(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&r<i.viewTo?s.save():null,s.nextLine()}),n&&(r.modeFrontier=s.line),s}function yt(e,t,n,r){var i=e.doc.mode,o=new He(t,e.options.tabSize,n);for(o.start=o.pos=r||0,""==t&&vt(i,n.state);!o.eol();)gt(i,o,n.state),o.start=o.pos}function vt(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=We(e,t);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function gt(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=We(e,n).mode);var o=e.token(t,n);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}ft.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},ft.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},ft.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ft.fromSaved=function(e,t,n){return t instanceof dt?new ft(e,qe(e.mode,t.state),n,t.lookAhead):new ft(e,qe(e.mode,t),n)},ft.prototype.save=function(e){var t=!1!==e?qe(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new dt(t,this.maxLookAhead):t};var bt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function _t(e,t,n,r){var i,o,a=e.doc,s=a.mode,l=Ge(a,(t=ct(a,t)).line),c=mt(e,t.line,n),u=new He(l.text,e.options.tabSize,c);for(r&&(o=[]);(r||u.pos<t.ch)&&!u.eol();)u.start=u.pos,i=gt(s,u,c.state),r&&o.push(new bt(u,i,qe(a.mode,c.state)));return r?o:new bt(u,i,c.state)}function kt(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==t[r]?t[r]=n[2]:new RegExp("(?:^|\\s)"+n[2]+"(?:$|\\s)").test(t[r])||(t[r]+=" "+n[2])}return e}function wt(e,t,n,r,i,o,a){var s=n.flattenSpans;null==s&&(s=e.options.flattenSpans);var l,c=0,u=null,d=new He(t,e.options.tabSize,r),f=e.options.addModeClass&&[null];for(""==t&&kt(vt(n,r.state),o);!d.eol();){if(d.pos>e.options.maxHighlightLength?(s=!1,a&&yt(e,t,r,d.pos),d.pos=t.length,l=null):l=kt(gt(n,d,r.state,f),o),f){var h=f[0].name;h&&(l="m-"+(l?h+" "+l:h))}if(!s||u!=l){for(;c<d.start;)i(c=Math.min(d.start,c+5e3),u);u=l}d.start=d.pos}for(;c<d.pos;){var p=Math.min(d.pos,c+5e3);i(p,u),c=p}}var xt=!1,Ct=!1;function St(e,t,n){this.marker=e,this.from=t,this.to=n}function At(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function Ot(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function jt(e,t){if(t.full)return null;var n=et(e,t.from.line)&&Ge(e,t.from.line).markedSpans,r=et(e,t.to.line)&&Ge(e,t.to.line).markedSpans;if(!n&&!r)return null;var i=t.from.ch,o=t.to.ch,a=0==rt(t.from,t.to),s=function(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t)||o.from==t&&"bookmark"==a.type&&(!n||!o.marker.insertLeft)){var s=null==o.to||(a.inclusiveRight?o.to>=t:o.to>t);(r||(r=[])).push(new St(a,o.from,s?null:o.to))}}return r}(n,i,a),l=function(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.to||(a.inclusiveRight?o.to>=t:o.to>t)||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var s=null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t);(r||(r=[])).push(new St(a,s?null:o.from-t,null==o.to?null:o.to-t))}}return r}(r,o,a),c=1==t.text.length,u=J(t.text).length+(c?i:0);if(s)for(var d=0;d<s.length;++d){var f=s[d];if(null==f.to){var h=At(l,f.marker);h?c&&(f.to=null==h.to?null:h.to+u):f.to=i}}if(l)for(var p=0;p<l.length;++p){var m=l[p];if(null!=m.to&&(m.to+=u),null==m.from)At(s,m.marker)||(m.from=u,c&&(s||(s=[])).push(m));else m.from+=u,c&&(s||(s=[])).push(m)}s&&(s=Tt(s)),l&&l!=s&&(l=Tt(l));var y=[s];if(!c){var v,g=t.text.length-2;if(g>0&&s)for(var b=0;b<s.length;++b)null==s[b].to&&(v||(v=[])).push(new St(s[b].marker,null,null));for(var _=0;_<g;++_)y.push(v);y.push(l)}return y}function Tt(e){for(var t=0;t<e.length;++t){var n=e[t];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function Et(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function Dt(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function It(e){return e.inclusiveLeft?-1:0}function Rt(e){return e.inclusiveRight?1:0}function Mt(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var r=e.find(),i=t.find(),o=rt(r.from,i.from)||It(e)-It(t);if(o)return-o;var a=rt(r.to,i.to)||Rt(e)-Rt(t);return a||t.id-e.id}function Pt(e,t){var n,r=Ct&&e.markedSpans;if(r)for(var i=void 0,o=0;o<r.length;++o)(i=r[o]).marker.collapsed&&null==(t?i.from:i.to)&&(!n||Mt(n,i.marker)<0)&&(n=i.marker);return n}function Lt(e){return Pt(e,!0)}function Bt(e){return Pt(e,!1)}function Nt(e,t){var n,r=Ct&&e.markedSpans;if(r)for(var i=0;i<r.length;++i){var o=r[i];o.marker.collapsed&&(null==o.from||o.from<t)&&(null==o.to||o.to>t)&&(!n||Mt(n,o.marker)<0)&&(n=o.marker)}return n}function Ft(e,t,n,r,i){var o=Ge(e,t),a=Ct&&o.markedSpans;if(a)for(var s=0;s<a.length;++s){var l=a[s];if(l.marker.collapsed){var c=l.marker.find(0),u=rt(c.from,n)||It(l.marker)-It(i),d=rt(c.to,r)||Rt(l.marker)-Rt(i);if(!(u>=0&&d<=0||u<=0&&d>=0)&&(u<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?rt(c.to,n)>=0:rt(c.to,n)>0)||u>=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?rt(c.from,r)<=0:rt(c.from,r)<0)))return!0}}}function Kt(e){for(var t;t=Lt(e);)e=t.find(-1,!0).line;return e}function Vt(e,t){var n=Ge(e,t),r=Kt(n);return n==r?t:Je(r)}function zt(e,t){if(t>e.lastLine())return t;var n,r=Ge(e,t);if(!Ut(e,r))return t;for(;n=Bt(r);)r=n.find(1,!0).line;return Je(r)+1}function Ut(e,t){var n=Ct&&t.markedSpans;if(n)for(var r=void 0,i=0;i<n.length;++i)if((r=n[i]).marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&qt(e,t,r))return!0}}function qt(e,t,n){if(null==n.to){var r=n.marker.find(1,!0);return qt(e,r.line,At(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var i=void 0,o=0;o<t.markedSpans.length;++o)if((i=t.markedSpans[o]).marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(null==i.to||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&qt(e,t,i))return!0}function Wt(e){for(var t=0,n=(e=Kt(e)).parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==e)break;t+=i.height}for(var o=n.parent;o;o=(n=o).parent)for(var a=0;a<o.children.length;++a){var s=o.children[a];if(s==n)break;t+=s.height}return t}function $t(e){if(0==e.height)return 0;for(var t,n=e.text.length,r=e;t=Lt(r);){var i=t.find(0,!0);r=i.from.line,n+=i.from.ch-i.to.ch}for(r=e;t=Bt(r);){var o=t.find(0,!0);n-=r.text.length-o.from.ch,n+=(r=o.to.line).text.length-o.to.ch}return n}function Ht(e){var t=e.display,n=e.doc;t.maxLine=Ge(n,n.first),t.maxLineLength=$t(t.maxLine),t.maxLineChanged=!0,n.iter(function(e){var n=$t(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)})}var Gt=function(e,t,n){this.text=e,Dt(this,t),this.height=n?n(this):1};function Zt(e){e.parent=null,Et(e)}Gt.prototype.lineNo=function(){return Je(this)},we(Gt);var Yt={},Xt={};function Jt(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?Xt:Yt;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function Qt(e,t){var n=D("span",null,null,l?"padding-right: .1px":null),r={pre:D("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,a=void 0;r.pos=0,r.addToken=tn,Re(e.display.measure)&&(a=he(o,e.doc.direction))&&(r.addToken=nn(r.addToken,a)),r.map=[],on(o,r,pt(e,o,t!=e.display.externalMeasured&&Je(o))),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=P(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=P(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Ie(e.display.measure))),0==i?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(l){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return ge(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=P(r.pre.className,r.textClass||"")),r}function en(e){var t=E("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function tn(e,t,n,r,i,o,l){if(t){var c,u=e.splitSpaces?function(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;i<e.length;i++){var o=e.charAt(i);" "!=o||!n||i!=e.length-1&&32!=e.charCodeAt(i+1)||(o=" "),r+=o,n=" "==o}return r}(t,e.trailingSpace):t,d=e.cm.state.specialChars,f=!1;if(d.test(t)){c=document.createDocumentFragment();for(var h=0;;){d.lastIndex=h;var p=d.exec(t),m=p?p.index-h:t.length-h;if(m){var y=document.createTextNode(u.slice(h,h+m));a&&s<9?c.appendChild(E("span",[y])):c.appendChild(y),e.map.push(e.pos,e.pos+m,y),e.col+=m,e.pos+=m}if(!p)break;h+=m+1;var v=void 0;if("\t"==p[0]){var g=e.cm.options.tabSize,b=g-e.col%g;(v=c.appendChild(E("span",X(b),"cm-tab"))).setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),e.col+=b}else"\r"==p[0]||"\n"==p[0]?((v=c.appendChild(E("span","\r"==p[0]?"␍":"␤","cm-invalidchar"))).setAttribute("cm-text",p[0]),e.col+=1):((v=e.cm.options.specialCharPlaceholder(p[0])).setAttribute("cm-text",p[0]),a&&s<9?c.appendChild(E("span",[v])):c.appendChild(v),e.col+=1);e.map.push(e.pos,e.pos+1,v),e.pos++}}else e.col+=t.length,c=document.createTextNode(u),e.map.push(e.pos,e.pos+t.length,c),a&&s<9&&(f=!0),e.pos+=t.length;if(e.trailingSpace=32==u.charCodeAt(t.length-1),n||r||i||f||o||l){var _=n||"";r&&(_+=r),i&&(_+=i);var k=E("span",[c],_,o);if(l)for(var w in l)l.hasOwnProperty(w)&&"style"!=w&&"class"!=w&&k.setAttribute(w,l[w]);return e.content.appendChild(k)}e.content.appendChild(c)}}function nn(e,t){return function(n,r,i,o,a,s,l){i=i?i+" cm-force-border":"cm-force-border";for(var c=n.pos,u=c+r.length;;){for(var d=void 0,f=0;f<t.length&&!((d=t[f]).to>c&&d.from<=c);f++);if(d.to>=u)return e(n,r,i,o,a,s,l);e(n,r.slice(0,d.to-c),i,o,null,s,l),o=null,r=r.slice(d.to-c),c=d.to}}}function rn(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function on(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,s,l,c,u,d,f,h=i.length,p=0,m=1,y="",v=0;;){if(v==p){l=c=u=s="",f=null,d=null,v=1/0;for(var g=[],b=void 0,_=0;_<r.length;++_){var k=r[_],w=k.marker;if("bookmark"==w.type&&k.from==p&&w.widgetNode)g.push(w);else if(k.from<=p&&(null==k.to||k.to>p||w.collapsed&&k.to==p&&k.from==p)){if(null!=k.to&&k.to!=p&&v>k.to&&(v=k.to,c=""),w.className&&(l+=" "+w.className),w.css&&(s=(s?s+";":"")+w.css),w.startStyle&&k.from==p&&(u+=" "+w.startStyle),w.endStyle&&k.to==v&&(b||(b=[])).push(w.endStyle,k.to),w.title&&((f||(f={})).title=w.title),w.attributes)for(var x in w.attributes)(f||(f={}))[x]=w.attributes[x];w.collapsed&&(!d||Mt(d.marker,w)<0)&&(d=k)}else k.from>p&&v>k.from&&(v=k.from)}if(b)for(var C=0;C<b.length;C+=2)b[C+1]==v&&(c+=" "+b[C]);if(!d||d.from==p)for(var S=0;S<g.length;++S)rn(t,0,g[S]);if(d&&(d.from||0)==p){if(rn(t,(null==d.to?h+1:d.to)-p,d.marker,null==d.from),null==d.to)return;d.to==p&&(d=!1)}}if(p>=h)break;for(var A=Math.min(h,v);;){if(y){var O=p+y.length;if(!d){var j=O>A?y.slice(0,A-p):y;t.addToken(t,j,a?a+l:l,u,p+j.length==v?c:"",s,f)}if(O>=A){y=y.slice(A-p),p=A;break}p=O,u=""}y=i.slice(o,o=n[m++]),a=Jt(n[m++],t.cm.options)}}else for(var T=1;T<n.length;T+=2)t.addToken(t,i.slice(o,o=n[T]),Jt(n[T+1],t.cm.options))}function an(e,t,n){this.line=t,this.rest=function(e){for(var t,n;t=Bt(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}(t),this.size=this.rest?Je(J(this.rest))-n+1:1,this.node=this.text=null,this.hidden=Ut(e,t)}function sn(e,t,n){for(var r,i=[],o=t;o<n;o=r){var a=new an(e.doc,Ge(e.doc,o),o);r=o+a.size,i.push(a)}return i}var ln=null;var cn=null;function un(e,t){var n=ye(e,t);if(n.length){var r,i=Array.prototype.slice.call(arguments,2);ln?r=ln.delayedCallbacks:cn?r=cn:(r=cn=[],setTimeout(dn,0));for(var o=function(e){r.push(function(){return n[e].apply(null,i)})},a=0;a<n.length;++a)o(a)}}function dn(){var e=cn;cn=null;for(var t=0;t<e.length;++t)e[t]()}function fn(e,t,n,r){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];"text"==o?mn(e,t):"gutter"==o?vn(e,t,n,r):"class"==o?yn(e,t):"widget"==o&&gn(e,t,r)}t.changes=null}function hn(e){return e.node==e.text&&(e.node=E("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),a&&s<8&&(e.node.style.zIndex=2)),e.node}function pn(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):Qt(e,t)}function mn(e,t){var n=t.text.className,r=pn(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,yn(e,t)):n&&(t.text.className=n)}function yn(e,t){!function(e,t){var n=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),t.background)n?t.background.className=n:(t.background.parentNode.removeChild(t.background),t.background=null);else if(n){var r=hn(t);t.background=r.insertBefore(E("div",null,n),r.firstChild),e.display.input.setUneditable(t.background)}}(e,t),t.line.wrapClass?hn(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var n=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=n||""}function vn(e,t,n,r){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var i=hn(t);t.gutterBackground=E("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),i.insertBefore(t.gutterBackground,t.text)}var o=t.line.gutterMarkers;if(e.options.lineNumbers||o){var a=hn(t),s=t.gutter=E("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(s.setAttribute("aria-hidden","true"),e.display.input.setUneditable(s),a.insertBefore(s,t.text),t.line.gutterClass&&(s.className+=" "+t.line.gutterClass),!e.options.lineNumbers||o&&o["CodeMirror-linenumbers"]||(t.lineNumber=s.appendChild(E("div",tt(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),o)for(var l=0;l<e.display.gutterSpecs.length;++l){var c=e.display.gutterSpecs[l].className,u=o.hasOwnProperty(c)&&o[c];u&&s.appendChild(E("div",[u],"CodeMirror-gutter-elt","left: "+r.gutterLeft[c]+"px; width: "+r.gutterWidth[c]+"px"))}}}function gn(e,t,n){t.alignable&&(t.alignable=null);for(var r=S("CodeMirror-linewidget"),i=t.node.firstChild,o=void 0;i;i=o)o=i.nextSibling,r.test(i.className)&&t.node.removeChild(i);_n(e,t,n)}function bn(e,t,n,r){var i=pn(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),yn(e,t),vn(e,t,n,r),_n(e,t,r),t.node}function _n(e,t,n){if(kn(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)kn(e,t.rest[r],t,n,!1)}function kn(e,t,n,r,i){if(t.widgets)for(var o=hn(n),a=0,s=t.widgets;a<s.length;++a){var l=s[a],c=E("div",[l.node],"CodeMirror-linewidget"+(l.className?" "+l.className:""));l.handleMouseEvents||c.setAttribute("cm-ignore-events","true"),wn(l,c,n,r),e.display.input.setUneditable(c),i&&l.above?o.insertBefore(c,n.gutter||n.text):o.appendChild(c),un(l,"redraw")}}function wn(e,t,n,r){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var i=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(i-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function xn(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!I(document.body,e.node)){var n="position: relative;";e.coverGutter&&(n+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(n+="width: "+t.display.wrapper.clientWidth+"px;"),T(t.display.measure,E("div",[e.node],null,n))}return e.height=e.node.parentNode.offsetHeight}function Cn(e,t){for(var n=Oe(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return!0}function Sn(e){return e.lineSpace.offsetTop}function An(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function On(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=T(e.measure,E("pre","x","CodeMirror-line-like")),n=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(r.left)||isNaN(r.right)||(e.cachedPaddingH=r),r}function jn(e){return q-e.display.nativeBarWidth}function Tn(e){return e.display.scroller.clientWidth-jn(e)-e.display.barWidth}function En(e){return e.display.scroller.clientHeight-jn(e)-e.display.barHeight}function Dn(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var i=0;i<e.rest.length;i++)if(Je(e.rest[i])>n)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function In(e,t,n,r){return Pn(e,Mn(e,t),n,r)}function Rn(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[ur(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}function Mn(e,t){var n=Je(t),r=Rn(e,n);r&&!r.text?r=null:r&&r.changes&&(fn(e,r,n,or(e)),e.curOp.forceUpdate=!0),r||(r=function(e,t){var n=Je(t=Kt(t)),r=e.display.externalMeasured=new an(e.doc,t,n);r.lineN=n;var i=r.built=Qt(e,r);return r.text=i.pre,T(e.display.lineMeasure,i.pre),r}(e,t));var i=Dn(r,t,n);return{line:t,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function Pn(e,t,n,r,i){t.before&&(n=-1);var o,l=n+(r||"");return t.cache.hasOwnProperty(l)?o=t.cache[l]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(!function(e,t,n){var r=e.options.lineWrapping,i=r&&Tn(e);if(!t.measure.heights||r&&t.measure.width!=i){var o=t.measure.heights=[];if(r){t.measure.width=i;for(var a=t.text.firstChild.getClientRects(),s=0;s<a.length-1;s++){var l=a[s],c=a[s+1];Math.abs(l.bottom-c.bottom)>2&&o.push((l.bottom+c.top)/2-n.top)}}o.push(n.bottom-n.top)}}(e,t.view,t.rect),t.hasHeights=!0),(o=function(e,t,n,r){var i,o=Nn(t.map,n,r),l=o.node,c=o.start,u=o.end,d=o.collapse;if(3==l.nodeType){for(var f=0;f<4;f++){for(;c&&se(t.line.text.charAt(o.coverStart+c));)--c;for(;o.coverStart+u<o.coverEnd&&se(t.line.text.charAt(o.coverStart+u));)++u;if((i=a&&s<9&&0==c&&u==o.coverEnd-o.coverStart?l.parentNode.getBoundingClientRect():Fn(A(l,c,u).getClientRects(),r)).left||i.right||0==c)break;u=c,c-=1,d="right"}a&&s<11&&(i=function(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!function(e){if(null!=Be)return Be;var t=T(e,E("span","x")),n=t.getBoundingClientRect(),r=A(t,0,1).getBoundingClientRect();return Be=Math.abs(n.left-r.left)>1}(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}(e.display.measure,i))}else{var h;c>0&&(d=r="right"),i=e.options.lineWrapping&&(h=l.getClientRects()).length>1?h["right"==r?h.length-1:0]:l.getBoundingClientRect()}if(a&&s<9&&!c&&(!i||!i.left&&!i.right)){var p=l.parentNode.getClientRects()[0];i=p?{left:p.left,right:p.left+ir(e.display),top:p.top,bottom:p.bottom}:Bn}for(var m=i.top-t.rect.top,y=i.bottom-t.rect.top,v=(m+y)/2,g=t.view.measure.heights,b=0;b<g.length-1&&!(v<g[b]);b++);var _=b?g[b-1]:0,k=g[b],w={left:("right"==d?i.right:i.left)-t.rect.left,right:("left"==d?i.left:i.right)-t.rect.left,top:_,bottom:k};i.left||i.right||(w.bogus=!0);e.options.singleCursorHeightPerLine||(w.rtop=m,w.rbottom=y);return w}(e,t,n,r)).bogus||(t.cache[l]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}var Ln,Bn={left:0,right:0,top:0,bottom:0};function Nn(e,t,n){for(var r,i,o,a,s,l,c=0;c<e.length;c+=3)if(s=e[c],l=e[c+1],t<s?(i=0,o=1,a="left"):t<l?o=(i=t-s)+1:(c==e.length-3||t==l&&e[c+3]>t)&&(i=(o=l-s)-1,t>=l&&(a="right")),null!=i){if(r=e[c+2],s==l&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;c&&e[c-2]==e[c-3]&&e[c-1].insertLeft;)r=e[2+(c-=3)],a="left";if("right"==n&&i==l-s)for(;c<e.length-3&&e[c+3]==e[c+4]&&!e[c+5].insertLeft;)r=e[(c+=3)+2],a="right";break}return{node:r,start:i,end:o,collapse:a,coverStart:s,coverEnd:l}}function Fn(e,t){var n=Bn;if("left"==t)for(var r=0;r<e.length&&(n=e[r]).left==n.right;r++);else for(var i=e.length-1;i>=0&&(n=e[i]).left==n.right;i--);return n}function Kn(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function Vn(e){e.display.externalMeasure=null,j(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)Kn(e.display.view[t])}function zn(e){Vn(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Un(e){return u&&v?-(e.body.getBoundingClientRect().left-parseInt(getComputedStyle(e.body).marginLeft)):e.defaultView.pageXOffset||(e.documentElement||e.body).scrollLeft}function qn(e){return u&&v?-(e.body.getBoundingClientRect().top-parseInt(getComputedStyle(e.body).marginTop)):e.defaultView.pageYOffset||(e.documentElement||e.body).scrollTop}function Wn(e){var t=Kt(e).widgets,n=0;if(t)for(var r=0;r<t.length;++r)t[r].above&&(n+=xn(t[r]));return n}function $n(e,t,n,r,i){if(!i){var o=Wn(t);n.top+=o,n.bottom+=o}if("line"==r)return n;r||(r="local");var a=Wt(t);if("local"==r?a+=Sn(e.display):a-=e.display.viewOffset,"page"==r||"window"==r){var s=e.display.lineSpace.getBoundingClientRect();a+=s.top+("window"==r?0:qn(B(e)));var l=s.left+("window"==r?0:Un(B(e)));n.left+=l,n.right+=l}return n.top+=a,n.bottom+=a,n}function Hn(e,t,n){if("div"==n)return t;var r=t.left,i=t.top;if("page"==n)r-=Un(B(e)),i-=qn(B(e));else if("local"==n||!n){var o=e.display.sizer.getBoundingClientRect();r+=o.left,i+=o.top}var a=e.display.lineSpace.getBoundingClientRect();return{left:r-a.left,top:i-a.top}}function Gn(e,t,n,r,i){return r||(r=Ge(e.doc,t.line)),$n(e,r,In(e,r,t.ch,i),n)}function Zn(e,t,n,r,i,o){function a(t,a){var s=Pn(e,i,t,a?"right":"left",o);return a?s.left=s.right:s.right=s.left,$n(e,r,s,n)}r=r||Ge(e.doc,t.line),i||(i=Mn(e,r));var s=he(r,e.doc.direction),l=t.ch,c=t.sticky;if(l>=r.text.length?(l=r.text.length,c="before"):l<=0&&(l=0,c="after"),!s)return a("before"==c?l-1:l,"before"==c);function u(e,t,n){var r=1==s[t].level;return a(n?e-1:e,r!=n)}var d=de(s,l,c),f=ue,h=u(l,d,"before"==c);return null!=f&&(h.other=u(l,f,"before"!=c)),h}function Yn(e,t){var n=0;t=ct(e.doc,t),e.options.lineWrapping||(n=ir(e.display)*t.ch);var r=Ge(e.doc,t.line),i=Wt(r)+Sn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Xn(e,t,n,r,i){var o=nt(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function Jn(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return Xn(r.first,0,null,-1,-1);var i=Qe(r,n),o=r.first+r.size-1;if(i>o)return Xn(r.first+r.size-1,Ge(r,o).text.length,null,1,1);t<0&&(t=0);for(var a=Ge(r,i);;){var s=nr(e,a,i,t,n),l=Nt(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var c=l.find(1);if(c.line==i)return c;a=Ge(r,i=c.line)}}function Qn(e,t,n,r){r-=Wn(t);var i=t.text.length,o=ce(function(t){return Pn(e,n,t-1).bottom<=r},i,0);return{begin:o,end:i=ce(function(t){return Pn(e,n,t).top>r},o,i)}}function er(e,t,n,r){return n||(n=Mn(e,t)),Qn(e,t,n,$n(e,t,Pn(e,n,r),"line").top)}function tr(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function nr(e,t,n,r,i){i-=Wt(t);var o=Mn(e,t),a=Wn(t),s=0,l=t.text.length,c=!0,u=he(t,e.doc.direction);if(u){var d=(e.options.lineWrapping?function(e,t,n,r,i,o,a){var s=Qn(e,t,r,a),l=s.begin,c=s.end;/\s/.test(t.text.charAt(c-1))&&c--;for(var u=null,d=null,f=0;f<i.length;f++){var h=i[f];if(!(h.from>=c||h.to<=l)){var p=1!=h.level,m=Pn(e,r,p?Math.min(c,h.to)-1:Math.max(l,h.from)).right,y=m<o?o-m+1e9:m-o;(!u||d>y)&&(u=h,d=y)}}u||(u=i[i.length-1]);u.from<l&&(u={from:l,to:u.to,level:u.level});u.to>c&&(u={from:u.from,to:c,level:u.level});return u}:function(e,t,n,r,i,o,a){var s=ce(function(s){var l=i[s],c=1!=l.level;return tr(Zn(e,nt(n,c?l.to:l.from,c?"before":"after"),"line",t,r),o,a,!0)},0,i.length-1),l=i[s];if(s>0){var c=1!=l.level,u=Zn(e,nt(n,c?l.from:l.to,c?"after":"before"),"line",t,r);tr(u,o,a,!0)&&u.top>a&&(l=i[s-1])}return l})(e,t,n,o,u,r,i);s=(c=1!=d.level)?d.from:d.to-1,l=c?d.to:d.from-1}var f,h,p=null,m=null,y=ce(function(t){var n=Pn(e,o,t);return n.top+=a,n.bottom+=a,!!tr(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(p=t,m=n),!0)},s,l),v=!1;if(m){var g=r-m.left<m.right-r,b=g==c;y=p+(b?0:1),h=b?"after":"before",f=g?m.left:m.right}else{c||y!=l&&y!=s||y++,h=0==y?"after":y==t.text.length?"before":Pn(e,o,y-(c?1:0)).bottom+a<=i==c?"after":"before";var _=Zn(e,nt(n,y,h),"line",t,o);f=_.left,v=i<_.top?-1:i>=_.bottom?1:0}return Xn(n,y=le(t.text,y,1),h,v,r-f)}function rr(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Ln){Ln=E("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Ln.appendChild(document.createTextNode("x")),Ln.appendChild(E("br"));Ln.appendChild(document.createTextNode("x"))}T(e.measure,Ln);var n=Ln.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),j(e.measure),n||1}function ir(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=E("span","xxxxxxxxxx"),n=E("pre",[t],"CodeMirror-line-like");T(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function or(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=e.display.gutterSpecs[a].className;n[s]=o.offsetLeft+o.clientLeft+i,r[s]=o.clientWidth}return{fixedPos:ar(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function ar(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function sr(e){var t=rr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/ir(e.display)-3);return function(i){if(Ut(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a<i.widgets.length;a++)i.widgets[a].height&&(o+=i.widgets[a].height);return n?o+(Math.ceil(i.text.length/r)||1)*t:o+t}}function lr(e){var t=e.doc,n=sr(e);t.iter(function(e){var t=n(e);t!=e.height&&Xe(e,t)})}function cr(e,t,n,r){var i=e.display;if(!n&&"true"==Oe(t).getAttribute("cm-not-content"))return null;var o,a,s=i.lineSpace.getBoundingClientRect();try{o=t.clientX-s.left,a=t.clientY-s.top}catch(e){return null}var l,c=Jn(e,o,a);if(r&&c.xRel>0&&(l=Ge(e.doc,c.line).text).length==c.ch){var u=V(l,l.length,e.options.tabSize)-l.length;c=nt(c.line,Math.max(0,Math.round((o-On(e.display).left)/ir(e.display))-u))}return c}function ur(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;r<n.length;r++)if((t-=n[r].size)<0)return r}function dr(e,t,n,r){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size),r||(r=0);var i=e.display;if(r&&n<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Ct&&Vt(e.doc,t)<i.viewTo&&hr(e);else if(n<=i.viewFrom)Ct&&zt(e.doc,n+r)>i.viewFrom?hr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)hr(e);else if(t<=i.viewFrom){var o=pr(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):hr(e)}else if(n>=i.viewTo){var a=pr(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):hr(e)}else{var s=pr(e,t,t,-1),l=pr(e,n,n+r,1);s&&l?(i.view=i.view.slice(0,s.index).concat(sn(e,s.lineN,l.lineN)).concat(i.view.slice(l.index)),i.viewTo+=r):hr(e)}var c=i.externalMeasured;c&&(n<c.lineN?c.lineN+=r:t<c.lineN+c.size&&(i.externalMeasured=null))}function fr(e,t,n){e.curOp.viewChanged=!0;var r=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(r.externalMeasured=null),!(t<r.viewFrom||t>=r.viewTo)){var o=r.view[ur(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==U(a,n)&&a.push(n)}}}function hr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function pr(e,t,n,r){var i,o=ur(e,t),a=e.display.view;if(!Ct||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,l=0;l<o;l++)s+=a[l].size;if(s!=t){if(r>0){if(o==a.length-1)return null;i=s+a[o].size-t,o++}else i=s-t;t+=i,n+=i}for(;Vt(e.doc,n)!=n;){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function mr(e){for(var t=e.display.view,n=0,r=0;r<t.length;r++){var i=t[r];i.hidden||i.node&&!i.changes||++n}return n}function yr(e){e.display.input.showSelection(e.display.input.prepareSelection())}function vr(e,t){void 0===t&&(t=!0);var n=e.doc,r={},i=r.cursors=document.createDocumentFragment(),o=r.selection=document.createDocumentFragment(),a=e.options.$customCursor;a&&(t=!0);for(var s=0;s<n.sel.ranges.length;s++)if(t||s!=n.sel.primIndex){var l=n.sel.ranges[s];if(!(l.from().line>=e.display.viewTo||l.to().line<e.display.viewFrom)){var c=l.empty();if(a){var u=a(e,l);u&&gr(e,u,i)}else(c||e.options.showCursorWhenSelecting)&&gr(e,l.head,i);c||_r(e,l,o)}}return r}function gr(e,t,n){var r=Zn(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=n.appendChild(E("div"," ","CodeMirror-cursor"));if(i.style.left=r.left+"px",i.style.top=r.top+"px",i.style.height=Math.max(0,r.bottom-r.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var o=Gn(e,t,"div",null,null),a=o.right-o.left;i.style.width=(a>0?a:e.defaultCharWidth())+"px"}if(r.other){var s=n.appendChild(E("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));s.style.display="",s.style.left=r.other.left+"px",s.style.top=r.other.top+"px",s.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function br(e,t){return e.top-t.top||e.left-t.left}function _r(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),a=On(e.display),s=a.left,l=Math.max(r.sizerWidth,Tn(e)-r.sizer.offsetLeft)-a.right,c="ltr"==i.direction;function u(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),o.appendChild(E("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==n?l-e:n)+"px;\n height: "+(r-t)+"px"))}function d(t,n,r){var o,a,d=Ge(i,t),f=d.text.length;function h(n,r){return Gn(e,nt(t,n),"div",d,r)}function p(t,n,r){var i=er(e,d,null,t),o="ltr"==n==("after"==r)?"left":"right";return h("after"==r?i.begin:i.end-(/\s/.test(d.text.charAt(i.end-1))?2:1),o)[o]}var m=he(d,i.direction);return function(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;o<e.length;++o){var a=e[o];(a.from<n&&a.to>t||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}(m,n||0,null==r?f:r,function(e,t,i,d){var y="ltr"==i,v=h(e,y?"left":"right"),g=h(t-1,y?"right":"left"),b=null==n&&0==e,_=null==r&&t==f,k=0==d,w=!m||d==m.length-1;if(g.top-v.top<=3){var x=(c?_:b)&&w,C=(c?b:_)&&k?s:(y?v:g).left,S=x?l:(y?g:v).right;u(C,v.top,S-C,v.bottom)}else{var A,O,j,T;y?(A=c&&b&&k?s:v.left,O=c?l:p(e,i,"before"),j=c?s:p(t,i,"after"),T=c&&_&&w?l:g.right):(A=c?p(e,i,"before"):s,O=!c&&b&&k?l:v.right,j=!c&&_&&w?s:g.left,T=c?p(t,i,"after"):l),u(A,v.top,O-A,v.bottom),v.bottom<g.top&&u(s,v.bottom,null,g.top),u(j,g.top,T-j,g.bottom)}(!o||br(v,o)<0)&&(o=v),br(g,o)<0&&(o=g),(!a||br(v,a)<0)&&(a=v),br(g,a)<0&&(a=g)}),{start:o,end:a}}var f=t.from(),h=t.to();if(f.line==h.line)d(f.line,f.ch,h.ch);else{var p=Ge(i,f.line),m=Ge(i,h.line),y=Kt(p)==Kt(m),v=d(f.line,f.ch,y?p.text.length+1:null).end,g=d(h.line,y?0:null,h.ch).start;y&&(v.top<g.top-2?(u(v.right,v.top,null,v.bottom),u(s,g.top,g.left,g.bottom)):u(v.right,v.top,g.left-v.right,v.bottom)),v.bottom<g.top&&u(s,v.bottom,null,g.top)}n.appendChild(o)}function kr(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){e.hasFocus()||Sr(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function wr(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Cr(e))}function xr(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Sr(e))},100)}function Cr(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(ge(e,"focus",e,t),e.state.focused=!0,M(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),l&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),kr(e))}function Sr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(ge(e,"blur",e,t),e.state.focused=!1,O(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Ar(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,o=0,l=0;l<t.view.length;l++){var c=t.view[l],u=e.options.lineWrapping,d=void 0,f=0;if(!c.hidden){if(i+=c.line.height,a&&s<8){var h=c.node.offsetTop+c.node.offsetHeight;d=h-n,n=h}else{var p=c.node.getBoundingClientRect();d=p.bottom-p.top,!u&&c.text.firstChild&&(f=c.text.firstChild.getBoundingClientRect().right-p.left-1)}var m=c.line.height-d;if((m>.005||m<-.005)&&(i<r&&(o-=m),Xe(c.line,d),Or(c.line),c.rest))for(var y=0;y<c.rest.length;y++)Or(c.rest[y]);if(f>e.display.sizerWidth){var v=Math.ceil(f/ir(e.display));v>e.display.maxLineLength&&(e.display.maxLineLength=v,e.display.maxLine=c.line,e.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(t.scroller.scrollTop+=o)}function Or(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function jr(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-Sn(e));var i=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,o=Qe(t,r),a=Qe(t,i);if(n&&n.ensure){var s=n.ensure.from.line,l=n.ensure.to.line;s<o?(o=s,a=Qe(t,Wt(Ge(t,s))+e.wrapper.clientHeight)):Math.min(l,t.lastLine())>=a&&(o=Qe(t,Wt(Ge(t,l))-e.wrapper.clientHeight),a=l)}return{from:o,to:Math.max(a,o+1)}}function Tr(e,t){var n=e.display,r=rr(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=En(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+An(n),l=t.top<r,c=t.bottom>s-r;if(t.top<i)a.scrollTop=l?0:t.top;else if(t.bottom>i+o){var u=Math.min(t.top,(c?s:t.bottom)-o);u!=i&&(a.scrollTop=u)}var d=e.options.fixedGutter?0:n.gutters.offsetWidth,f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-d,h=Tn(e)-n.gutters.offsetWidth,p=t.right-t.left>h;return p&&(t.right=t.left+h),t.left<10?a.scrollLeft=0:t.left<f?a.scrollLeft=Math.max(0,t.left+d-(p?0:10)):t.right>h+f-3&&(a.scrollLeft=t.right+(p?0:10)-h),a}function Er(e,t){null!=t&&(Rr(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Dr(e){Rr(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Ir(e,t,n){null==t&&null==n||Rr(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function Rr(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,Mr(e,Yn(e,t.from),Yn(e,t.to),t.margin))}function Mr(e,t,n,r){var i=Tr(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});Ir(e,i.scrollLeft,i.scrollTop)}function Pr(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||ci(e,{top:t}),Lr(e,t,!0),n&&ci(e),ri(e,100))}function Lr(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Br(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,fi(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Nr(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+An(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+jn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var Fr=function(e,t,n){this.cm=n;var r=this.vert=E("div",[E("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=E("div",[E("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),me(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),me(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Fr.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},Fr.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Fr.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Fr.prototype.zeroWidthHack=function(){var e=b&&!p?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new z,this.disableVert=new z},Fr.prototype.enableZeroWidthBar=function(e,t,n){e.style.visibility="",t.set(1e3,function r(){var i=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.visibility="hidden":t.set(1e3,r)})},Fr.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Kr=function(){};function Vr(e,t){t||(t=Nr(e));var n=e.display.barWidth,r=e.display.barHeight;zr(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&Ar(e),zr(e,Nr(e)),n=e.display.barWidth,r=e.display.barHeight}function zr(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}Kr.prototype.update=function(){return{bottom:0,right:0}},Kr.prototype.setScrollLeft=function(){},Kr.prototype.setScrollTop=function(){},Kr.prototype.clear=function(){};var Ur={native:Fr,null:Kr};function qr(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&O(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Ur[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),me(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,n){"horizontal"==n?Br(e,t):Pr(e,t)},e),e.display.scrollbars.addClass&&M(e.display.wrapper,e.display.scrollbars.addClass)}var Wr=0;function $r(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Wr,markArrays:null},function(e){ln?ln.ops.push(e):e.ownsGroup=ln={ops:[e],delayedCallbacks:[]}}(e.curOp)}function Hr(e){var t=e.curOp;t&&function(e,t){var n=e.ownsGroup;if(n)try{!function(e){var t=e.delayedCallbacks,n=0;do{for(;n<t.length;n++)t[n].call(null);for(var r=0;r<e.ops.length;r++){var i=e.ops[r];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<t.length)}(n)}finally{ln=null,t(n)}}(t,function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;!function(e){for(var t=e.ops,n=0;n<t.length;n++)Gr(t[n]);for(var r=0;r<t.length;r++)Zr(t[r]);for(var i=0;i<t.length;i++)Yr(t[i]);for(var o=0;o<t.length;o++)Xr(t[o]);for(var a=0;a<t.length;a++)Jr(t[a])}(e)})}function Gr(e){var t=e.cm,n=t.display;!function(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=jn(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=jn(e)+"px",t.scrollbarsClipped=!0)}(t),e.updateMaxLine&&Ht(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new oi(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Zr(e){e.updatedDisplay=e.mustUpdate&&si(e.cm,e.update)}function Yr(e){var t=e.cm,n=t.display;e.updatedDisplay&&Ar(t),e.barMeasure=Nr(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=In(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+jn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Tn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Xr(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&Br(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==R(B(t));e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&Vr(t,e.barMeasure),e.updatedDisplay&&di(t,e.barMeasure),e.selectionChanged&&kr(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&wr(e.cm)}function Jr(e){var t=e.cm,n=t.display,r=t.doc;(e.updatedDisplay&&li(t,e.update),null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=e.scrollTop&&Lr(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&Br(t,e.scrollLeft,!0,!0),e.scrollToPos)&&function(e,t){if(!be(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null,o=n.wrapper.ownerDocument;if(t.top+r.top<0?i=!0:t.bottom+r.top>(o.defaultView.innerHeight||o.documentElement.clientHeight)&&(i=!1),null!=i&&!m){var a=E("div","​",null,"position: absolute;\n top: "+(t.top-n.viewOffset-Sn(e.display))+"px;\n height: "+(t.bottom-t.top+jn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(a),a.scrollIntoView(i),e.display.lineSpace.removeChild(a)}}}(t,function(e,t,n,r){var i;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==t.sticky?nt(t.line,t.ch+1,"before"):t,t=t.ch?nt(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t);for(var o=0;o<5;o++){var a=!1,s=Zn(e,t),l=n&&n!=t?Zn(e,n):s,c=Tr(e,i={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-r,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+r}),u=e.doc.scrollTop,d=e.doc.scrollLeft;if(null!=c.scrollTop&&(Pr(e,c.scrollTop),Math.abs(e.doc.scrollTop-u)>1&&(a=!0)),null!=c.scrollLeft&&(Br(e,c.scrollLeft),Math.abs(e.doc.scrollLeft-d)>1&&(a=!0)),!a)break}return i}(t,ct(r,e.scrollToPos.from),ct(r,e.scrollToPos.to),e.scrollToPos.margin));var i=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(i)for(var a=0;a<i.length;++a)i[a].lines.length||ge(i[a],"hide");if(o)for(var s=0;s<o.length;++s)o[s].lines.length&&ge(o[s],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&ge(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Qr(e,t){if(e.curOp)return t();$r(e);try{return t()}finally{Hr(e)}}function ei(e,t){return function(){if(e.curOp)return t.apply(e,arguments);$r(e);try{return t.apply(e,arguments)}finally{Hr(e)}}}function ti(e){return function(){if(this.curOp)return e.apply(this,arguments);$r(this);try{return e.apply(this,arguments)}finally{Hr(this)}}}function ni(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);$r(t);try{return e.apply(this,arguments)}finally{Hr(t)}}}function ri(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,F(ii,e))}function ii(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,r=mt(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(r.line>=e.display.viewFrom){var a=o.styles,s=o.text.length>e.options.maxHighlightLength?qe(t.mode,r.state):null,l=ht(e,o,r,!0);s&&(r.state=s),o.styles=l.styles;var c=o.styleClasses,u=l.classes;u?o.styleClasses=u:c&&(o.styleClasses=null);for(var d=!a||a.length!=o.styles.length||c!=u&&(!c||!u||c.bgClass!=u.bgClass||c.textClass!=u.textClass),f=0;!d&&f<a.length;++f)d=a[f]!=o.styles[f];d&&i.push(r.line),o.stateAfter=r.save(),r.nextLine()}else o.text.length<=e.options.maxHighlightLength&&yt(e,o.text,r),o.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return ri(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&Qr(e,function(){for(var t=0;t<i.length;t++)fr(e,i[t],"text")})}}var oi=function(e,t,n){var r=e.display;this.viewport=t,this.visible=jr(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=Tn(e),this.force=n,this.dims=or(e),this.events=[]};function ai(e){if(e.hasFocus())return null;var t=R(B(e));if(!t||!I(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=N(e).getSelection();r.anchorNode&&r.extend&&I(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}function si(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)return hr(e),!1;if(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==mr(e))return!1;hi(e)&&(hr(e),t.dims=or(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFrom<o&&o-n.viewFrom<20&&(o=Math.max(r.first,n.viewFrom)),n.viewTo>a&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),Ct&&(o=Vt(e.doc,o),a=zt(e.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;!function(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=sn(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=sn(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(ur(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat(sn(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,ur(e,n)))),r.viewTo=n}(e,o,a),n.viewOffset=Wt(Ge(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var c=mr(e);if(!s&&0==c&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var u=ai(e);return c>4&&(n.lineDiv.style.display="none"),function(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function s(t){var n=t.nextSibling;return l&&b&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var c=r.view,u=r.viewFrom,d=0;d<c.length;d++){var f=c[d];if(f.hidden);else if(f.node&&f.node.parentNode==o){for(;a!=f.node;)a=s(a);var h=i&&null!=t&&t<=u&&f.lineNumber;f.changes&&(U(f.changes,"gutter")>-1&&(h=!1),fn(e,f,u,n)),h&&(j(f.lineNumber),f.lineNumber.appendChild(document.createTextNode(tt(e.options,u)))),a=f.node.nextSibling}else{var p=bn(e,f,u,n);o.insertBefore(p,a)}u+=f.size}for(;a;)a=s(a)}(e,n.updateLineNumbers,t.dims),c>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,function(e){if(e&&e.activeElt&&e.activeElt!=R(e.activeElt.ownerDocument)&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&I(document.body,e.anchorNode)&&I(document.body,e.focusNode))){var t=e.activeElt.ownerDocument,n=t.defaultView.getSelection(),r=t.createRange();r.setEnd(e.anchorNode,e.anchorOffset),r.collapse(!1),n.removeAllRanges(),n.addRange(r),n.extend(e.focusNode,e.focusOffset)}}(u),j(n.cursorDiv),j(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,ri(e,400)),n.updateLineNumbers=null,!0}function li(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Tn(e))r&&(t.visible=jr(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+An(e.display)-En(e),n.top)}),t.visible=jr(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!si(e,t))break;Ar(e);var i=Nr(e);yr(e),Vr(e,i),di(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function ci(e,t){var n=new oi(e,t);if(si(e,n)){Ar(e),li(e,n);var r=Nr(e);yr(e),Vr(e,r),di(e,r),n.finish()}}function ui(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",un(e,"gutterChanged",e)}function di(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+jn(e)+"px"}function fi(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=ar(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;a<n.length;a++)if(!n[a].hidden){e.options.fixedGutter&&(n[a].gutter&&(n[a].gutter.style.left=o),n[a].gutterBackground&&(n[a].gutterBackground.style.left=o));var s=n[a].alignable;if(s)for(var l=0;l<s.length;l++)s[l].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=r+i+"px")}}function hi(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=tt(e.options,t.first+t.size-1),r=e.display;if(n.length!=r.lineNumChars){var i=r.measure.appendChild(E("div",[E("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=i.firstChild.offsetWidth,a=i.offsetWidth-o;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(o,r.lineGutter.offsetWidth-a)+1,r.lineNumWidth=r.lineNumInnerWidth+a,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",ui(e.display),!0}return!1}function pi(e,t){for(var n=[],r=!1,i=0;i<e.length;i++){var o=e[i],a=null;if("string"!=typeof o&&(a=o.style,o=o.className),"CodeMirror-linenumbers"==o){if(!t)continue;r=!0}n.push({className:o,style:a})}return t&&!r&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function mi(e){var t=e.gutters,n=e.gutterSpecs;j(t),e.lineGutter=null;for(var r=0;r<n.length;++r){var i=n[r],o=i.className,a=i.style,s=t.appendChild(E("div",null,"CodeMirror-gutter "+o));a&&(s.style.cssText=a),"CodeMirror-linenumbers"==o&&(e.lineGutter=s,s.style.width=(e.lineNumWidth||1)+"px")}t.style.display=n.length?"":"none",ui(e)}function yi(e){mi(e.display),dr(e),fi(e)}oi.prototype.signal=function(e,t){ke(e,t)&&this.events.push(arguments)},oi.prototype.finish=function(){for(var e=0;e<this.events.length;e++)ge.apply(null,this.events[e])};var vi=0,gi=null;function bi(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function _i(e){var t=bi(e);return t.x*=gi,t.y*=gi,t}function ki(e,t){u&&102==d&&(null==e.display.chromeScrollHack?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout(function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""},100));var r=bi(t),i=r.x,o=r.y,a=gi;0===t.deltaMode&&(i=t.deltaX,o=t.deltaY,a=1);var s=e.display,c=s.scroller,h=c.scrollWidth>c.clientWidth,p=c.scrollHeight>c.clientHeight;if(i&&h||o&&p){if(o&&b&&l)e:for(var m=t.target,y=s.view;m!=c;m=m.parentNode)for(var v=0;v<y.length;v++)if(y[v].node==m){e.display.currentWheelTarget=m;break e}if(i&&!n&&!f&&null!=a)return o&&p&&Pr(e,Math.max(0,c.scrollTop+o*a)),Br(e,Math.max(0,c.scrollLeft+i*a)),(!o||o&&p)&&xe(t),void(s.wheelStartX=null);if(o&&null!=a){var g=o*a,_=e.doc.scrollTop,k=_+s.wrapper.clientHeight;g<0?_=Math.max(0,_+g-50):k=Math.min(e.doc.height,k+g+50),ci(e,{top:_,bottom:k})}vi<20&&0!==t.deltaMode&&(null==s.wheelStartX?(s.wheelStartX=c.scrollLeft,s.wheelStartY=c.scrollTop,s.wheelDX=i,s.wheelDY=o,setTimeout(function(){if(null!=s.wheelStartX){var e=c.scrollLeft-s.wheelStartX,t=c.scrollTop-s.wheelStartY,n=t&&s.wheelDY&&t/s.wheelDY||e&&s.wheelDX&&e/s.wheelDX;s.wheelStartX=s.wheelStartY=null,n&&(gi=(gi*vi+n)/(vi+1),++vi)}},200)):(s.wheelDX+=i,s.wheelDY+=o))}}a?gi=-.53:n?gi=15:u?gi=-.7:h&&(gi=-1/3);var wi=function(e,t){this.ranges=e,this.primIndex=t};wi.prototype.primary=function(){return this.ranges[this.primIndex]},wi.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var n=this.ranges[t],r=e.ranges[t];if(!it(n.anchor,r.anchor)||!it(n.head,r.head))return!1}return!0},wi.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new xi(ot(this.ranges[t].anchor),ot(this.ranges[t].head));return new wi(e,this.primIndex)},wi.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},wi.prototype.contains=function(e,t){t||(t=e);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(rt(t,r.from())>=0&&rt(e,r.to())<=0)return n}return-1};var xi=function(e,t){this.anchor=e,this.head=t};function Ci(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort(function(e,t){return rt(e.from(),t.from())}),n=U(t,i);for(var o=1;o<t.length;o++){var a=t[o],s=t[o-1],l=rt(s.to(),a.from());if(r&&!a.empty()?l>0:l>=0){var c=st(s.from(),a.from()),u=at(s.to(),a.to()),d=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,t.splice(--o,2,new xi(d?u:c,d?c:u))}}return new wi(t,n)}function Si(e,t){return new wi([new xi(e,t||e)],0)}function Ai(e){return e.text?nt(e.from.line+e.text.length-1,J(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function Oi(e,t){if(rt(e,t.from)<0)return e;if(rt(e,t.to)<=0)return Ai(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=Ai(t).ch-t.to.ch),nt(n,r)}function ji(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new xi(Oi(i.anchor,t),Oi(i.head,t)))}return Ci(e.cm,n,e.sel.primIndex)}function Ti(e,t,n){return e.line==t.line?nt(n.line,e.ch-t.ch+n.ch):nt(n.line+(e.line-t.line),e.ch)}function Ei(e){e.doc.mode=Ve(e.options,e.doc.modeOption),Di(e)}function Di(e){e.doc.iter(function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,ri(e,100),e.state.modeGen++,e.curOp&&dr(e)}function Ii(e,t){return 0==t.from.ch&&0==t.to.ch&&""==J(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Ri(e,t,n,r){function i(e){return n?n[e]:null}function o(e,n,i){!function(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Et(e),Dt(e,n);var i=r?r(e):1;i!=e.height&&Xe(e,i)}(e,n,i,r),un(e,"change",e,t)}function a(e,t){for(var n=[],o=e;o<t;++o)n.push(new Gt(c[o],i(o),r));return n}var s=t.from,l=t.to,c=t.text,u=Ge(e,s.line),d=Ge(e,l.line),f=J(c),h=i(c.length-1),p=l.line-s.line;if(t.full)e.insert(0,a(0,c.length)),e.remove(c.length,e.size-c.length);else if(Ii(e,t)){var m=a(0,c.length-1);o(d,d.text,h),p&&e.remove(s.line,p),m.length&&e.insert(s.line,m)}else if(u==d)if(1==c.length)o(u,u.text.slice(0,s.ch)+f+u.text.slice(l.ch),h);else{var y=a(1,c.length-1);y.push(new Gt(f+u.text.slice(l.ch),h,r)),o(u,u.text.slice(0,s.ch)+c[0],i(0)),e.insert(s.line+1,y)}else if(1==c.length)o(u,u.text.slice(0,s.ch)+c[0]+d.text.slice(l.ch),i(0)),e.remove(s.line+1,p);else{o(u,u.text.slice(0,s.ch)+c[0],i(0)),o(d,f+d.text.slice(l.ch),h);var v=a(1,c.length-1);p>1&&e.remove(s.line+1,p-1),e.insert(s.line+1,v)}un(e,"change",e,t)}function Mi(e,t,n){!function e(r,i,o){if(r.linked)for(var a=0;a<r.linked.length;++a){var s=r.linked[a];if(s.doc!=i){var l=o&&s.sharedHist;n&&!l||(t(s.doc,l),e(s.doc,r,l))}}}(e,null,!0)}function Pi(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,lr(e),Ei(e),Li(e),e.options.direction=t.direction,e.options.lineWrapping||Ht(e),e.options.mode=t.modeOption,dr(e)}function Li(e){("rtl"==e.doc.direction?M:O)(e.display.lineDiv,"CodeMirror-rtl")}function Bi(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function Ni(e,t){var n={from:ot(t.from),to:Ai(t),text:Ze(e,t.from,t.to)};return Ui(e,n,t.from.line,t.to.line+1),Mi(e,function(e){return Ui(e,n,t.from.line,t.to.line+1)},!0),n}function Fi(e){for(;e.length;){if(!J(e).ranges)break;e.pop()}}function Ki(e,t,n,r){var i=e.history;i.undone.length=0;var o,a,s=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=function(e,t){return t?(Fi(e.done),J(e.done)):e.done.length&&!J(e.done).ranges?J(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),J(e.done)):void 0}(i,i.lastOp==r)))a=J(o.changes),0==rt(t.from,t.to)&&0==rt(t.from,a.to)?a.to=Ai(t):o.changes.push(Ni(e,t));else{var l=J(i.done);for(l&&l.ranges||zi(e.sel,i.done),o={changes:[Ni(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||ge(e,"historyAdded")}function Vi(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||function(e,t,n,r){var i=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}(e,o,J(i.done),t))?i.done[i.done.length-1]=t:zi(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&Fi(i.undone)}function zi(e,t){var n=J(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Ui(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o})}function qi(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t||(t=e.slice(0,n)):t&&t.push(e[n]);return t?t.length?t:null:e}function Wi(e,t){var n=function(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=[],i=0;i<t.text.length;++i)r.push(qi(n[i]));return r}(e,t),r=jt(e,t);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var o=n[i],a=r[i];if(o&&a)e:for(var s=0;s<a.length;++s){for(var l=a[s],c=0;c<o.length;++c)if(o[c].marker==l.marker)continue e;o.push(l)}else a&&(n[i]=a)}return n}function $i(e,t,n){for(var r=[],i=0;i<e.length;++i){var o=e[i];if(o.ranges)r.push(n?wi.prototype.deepCopy.call(o):o);else{var a=o.changes,s=[];r.push({changes:s});for(var l=0;l<a.length;++l){var c=a[l],u=void 0;if(s.push({from:c.from,to:c.to,text:c.text}),t)for(var d in c)(u=d.match(/^spans_(\d+)$/))&&U(t,Number(u[1]))>-1&&(J(s)[d]=c[d],delete c[d])}}}return r}function Hi(e,t,n,r){if(r){var i=e.anchor;if(n){var o=rt(t,i)<0;o!=rt(n,i)<0?(i=t,t=n):o!=rt(t,n)<0&&(t=n)}return new xi(i,t)}return new xi(n||t,t)}function Gi(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),Qi(e,new wi([Hi(e.sel.primary(),t,n,i)],0),r)}function Zi(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o<e.sel.ranges.length;o++)r[o]=Hi(e.sel.ranges[o],t[o],null,i);Qi(e,Ci(e.cm,r,e.sel.primIndex),n)}function Yi(e,t,n,r){var i=e.sel.ranges.slice(0);i[t]=n,Qi(e,Ci(e.cm,i,e.sel.primIndex),r)}function Xi(e,t,n,r){Qi(e,Si(t,n),r)}function Ji(e,t,n){var r=e.history.done,i=J(r);i&&i.ranges?(r[r.length-1]=t,eo(e,t,n)):Qi(e,t,n)}function Qi(e,t,n){eo(e,t,n),Vi(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function eo(e,t,n){(ke(e,"beforeSelectionChange")||e.cm&&ke(e.cm,"beforeSelectionChange"))&&(t=function(e,t,n){var r={ranges:t.ranges,update:function(t){this.ranges=[];for(var n=0;n<t.length;n++)this.ranges[n]=new xi(ct(e,t[n].anchor),ct(e,t[n].head))},origin:n&&n.origin};return ge(e,"beforeSelectionChange",e,r),e.cm&&ge(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?Ci(e.cm,r.ranges,r.ranges.length-1):t}(e,t,n)),to(e,ro(e,t,n&&n.bias||(rt(t.primary().head,e.sel.primary().head)<0?-1:1),!0)),n&&!1===n.scroll||!e.cm||"nocursor"==e.cm.getOption("readOnly")||Dr(e.cm)}function to(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,_e(e.cm)),un(e,"cursorActivity",e))}function no(e){to(e,ro(e,e.sel,null,!1))}function ro(e,t,n,r){for(var i,o=0;o<t.ranges.length;o++){var a=t.ranges[o],s=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],l=oo(e,a.anchor,s&&s.anchor,n,r),c=a.head==a.anchor?l:oo(e,a.head,s&&s.head,n,r);(i||l!=a.anchor||c!=a.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new xi(l,c))}return i?Ci(e.cm,i,t.primIndex):t}function io(e,t,n,r,i){var o=Ge(e,t.line);if(o.markedSpans)for(var a=0;a<o.markedSpans.length;++a){var s=o.markedSpans[a],l=s.marker,c="selectLeft"in l?!l.selectLeft:l.inclusiveLeft,u="selectRight"in l?!l.selectRight:l.inclusiveRight;if((null==s.from||(c?s.from<=t.ch:s.from<t.ch))&&(null==s.to||(u?s.to>=t.ch:s.to>t.ch))){if(i&&(ge(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var d=l.find(r<0?1:-1),f=void 0;if((r<0?u:c)&&(d=ao(e,d,-r,d&&d.line==t.line?o:null)),d&&d.line==t.line&&(f=rt(d,n))&&(r<0?f<0:f>0))return io(e,d,t,r,i)}var h=l.find(r<0?-1:1);return(r<0?c:u)&&(h=ao(e,h,r,h.line==t.line?o:null)),h?io(e,h,t,r,i):null}}return t}function oo(e,t,n,r,i){var o=r||1,a=io(e,t,n,o,i)||!i&&io(e,t,n,o,!0)||io(e,t,n,-o,i)||!i&&io(e,t,n,-o,!0);return a||(e.cantEdit=!0,nt(e.first,0))}function ao(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?ct(e,nt(t.line-1)):null:n>0&&t.ch==(r||Ge(e,t.line)).text.length?t.line<e.first+e.size-1?nt(t.line+1,0):null:new nt(t.line,t.ch+n)}function so(e){e.setSelection(nt(e.firstLine(),0),nt(e.lastLine()),$)}function lo(e,t,n){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(t,n,i,o){t&&(r.from=ct(e,t)),n&&(r.to=ct(e,n)),i&&(r.text=i),void 0!==o&&(r.origin=o)}),ge(e,"beforeChange",e,r),e.cm&&ge(e.cm,"beforeChange",e.cm,r),r.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function co(e,t,n){if(e.cm){if(!e.cm.curOp)return ei(e.cm,co)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(ke(e,"beforeChange")||e.cm&&ke(e.cm,"beforeChange"))||(t=lo(e,t,!0))){var r=xt&&!n&&function(e,t,n){var r=null;if(e.iter(t.line,n.line+1,function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;!n.readOnly||r&&-1!=U(r,n)||(r||(r=[])).push(n)}}),!r)return null;for(var i=[{from:t,to:n}],o=0;o<r.length;++o)for(var a=r[o],s=a.find(0),l=0;l<i.length;++l){var c=i[l];if(!(rt(c.to,s.from)<0||rt(c.from,s.to)>0)){var u=[l,1],d=rt(c.from,s.from),f=rt(c.to,s.to);(d<0||!a.inclusiveLeft&&!d)&&u.push({from:c.from,to:s.from}),(f>0||!a.inclusiveRight&&!f)&&u.push({from:s.to,to:c.to}),i.splice.apply(i,u),l+=u.length-3}}return i}(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)uo(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else uo(e,t)}}function uo(e,t){if(1!=t.text.length||""!=t.text[0]||0!=rt(t.from,t.to)){var n=ji(e,t);Ki(e,t,n,e.cm?e.cm.curOp.id:NaN),po(e,t,n,jt(e,t));var r=[];Mi(e,function(e,n){n||-1!=U(r,e.history)||(go(e.history,t),r.push(e.history)),po(e,t,null,jt(e,t))})}}function fo(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,o=e.history,a=e.sel,s="undo"==t?o.done:o.undone,l="undo"==t?o.undone:o.done,c=0;c<s.length&&(i=s[c],n?!i.ranges||i.equals(e.sel):i.ranges);c++);if(c!=s.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(!(i=s.pop()).ranges){if(r)return void s.push(i);break}if(zi(i,l),n&&!i.equals(e.sel))return void Qi(e,i,{clearRedo:!1});a=i}var u=[];zi(a,l),l.push({changes:u,generation:o.generation}),o.generation=i.generation||++o.maxGeneration;for(var d=ke(e,"beforeChange")||e.cm&&ke(e.cm,"beforeChange"),f=function(n){var r=i.changes[n];if(r.origin=t,d&&!lo(e,r,!1))return s.length=0,{};u.push(Ni(e,r));var o=n?ji(e,r):J(s);po(e,r,o,Wi(e,r)),!n&&e.cm&&e.cm.scrollIntoView({from:r.from,to:Ai(r)});var a=[];Mi(e,function(e,t){t||-1!=U(a,e.history)||(go(e.history,r),a.push(e.history)),po(e,r,null,Wi(e,r))})},h=i.changes.length-1;h>=0;--h){var p=f(h);if(p)return p.v}}}}function ho(e,t){if(0!=t&&(e.first+=t,e.sel=new wi(Q(e.sel.ranges,function(e){return new xi(nt(e.anchor.line+t,e.anchor.ch),nt(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){dr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)fr(e.cm,r,"gutter")}}function po(e,t,n,r){if(e.cm&&!e.cm.curOp)return ei(e.cm,po)(e,t,n,r);if(t.to.line<e.first)ho(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);ho(e,i),t={from:nt(e.first,0),to:nt(t.to.line+i,t.to.ch),text:[J(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:nt(o,Ge(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Ze(e,t.from,t.to),n||(n=ji(e,t)),e.cm?function(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,s=!1,l=o.line;e.options.lineWrapping||(l=Je(Kt(Ge(r,o.line))),r.iter(l,a.line+1,function(e){if(e==i.maxLine)return s=!0,!0}));r.sel.contains(t.from,t.to)>-1&&_e(e);Ri(r,t,n,sr(e)),e.options.lineWrapping||(r.iter(l,o.line+t.text.length,function(e){var t=$t(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)}),s&&(e.curOp.updateMaxLine=!0));(function(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var n=e.first,r=t-1;r>n;r--){var i=Ge(e,r).stateAfter;if(i&&(!(i instanceof dt)||r+i.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}})(r,o.line),ri(e,400);var c=t.text.length-(a.line-o.line)-1;t.full?dr(e):o.line!=a.line||1!=t.text.length||Ii(e.doc,t)?dr(e,o.line,a.line+1,c):fr(e,o.line,"text");var u=ke(e,"changes"),d=ke(e,"change");if(d||u){var f={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};d&&un(e,"change",e,f),u&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(f)}e.display.selForContextMenu=null}(e.cm,t,r):Ri(e,t,r),eo(e,n,$),e.cantEdit&&oo(e,nt(e.firstLine(),0))&&(e.cantEdit=!1)}}function mo(e,t,n,r,i){var o;r||(r=n),rt(r,n)<0&&(n=(o=[r,n])[0],r=o[1]),"string"==typeof t&&(t=e.splitLines(t)),co(e,{from:n,to:r,text:t,origin:i})}function yo(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function vo(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i],a=!0;if(o.ranges){o.copied||((o=e[i]=o.deepCopy()).copied=!0);for(var s=0;s<o.ranges.length;s++)yo(o.ranges[s].anchor,t,n,r),yo(o.ranges[s].head,t,n,r)}else{for(var l=0;l<o.changes.length;++l){var c=o.changes[l];if(n<c.from.line)c.from=nt(c.from.line+r,c.from.ch),c.to=nt(c.to.line+r,c.to.ch);else if(t<=c.to.line){a=!1;break}}a||(e.splice(0,i+1),i=0)}}}function go(e,t){var n=t.from.line,r=t.to.line,i=t.text.length-(r-n)-1;vo(e.done,n,r,i),vo(e.undone,n,r,i)}function bo(e,t,n,r){var i=t,o=t;return"number"==typeof t?o=Ge(e,lt(e,t)):i=Je(t),null==i?null:(r(o,i)&&e.cm&&fr(e.cm,i,n),o)}function _o(e){this.lines=e,this.parent=null;for(var t=0,n=0;n<e.length;++n)e[n].parent=this,t+=e[n].height;this.height=t}function ko(e){this.children=e;for(var t=0,n=0,r=0;r<e.length;++r){var i=e[r];t+=i.chunkSize(),n+=i.height,i.parent=this}this.size=t,this.height=n,this.parent=null}xi.prototype.from=function(){return st(this.anchor,this.head)},xi.prototype.to=function(){return at(this.anchor,this.head)},xi.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},_o.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=e,r=e+t;n<r;++n){var i=this.lines[n];this.height-=i.height,Zt(i),un(i,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;r<t.length;++r)t[r].parent=this},iterN:function(e,t,n){for(var r=e+t;e<r;++e)if(n(this.lines[e]))return!0}},ko.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var n=0;n<this.children.length;++n){var r=this.children[n],i=r.chunkSize();if(e<i){var o=Math.min(t,i-e),a=r.height;if(r.removeInner(e,o),this.height-=a-r.height,i==o&&(this.children.splice(n--,1),r.parent=null),0==(t-=o))break;e=0}else e-=i}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof _o))){var s=[];this.collapse(s),this.children=[new _o(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,n){this.size+=t.length,this.height+=n;for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<=o){if(i.insertInner(e,t,n),i.lines&&i.lines.length>50){for(var a=i.lines.length%25+25,s=a;s<i.lines.length;){var l=new _o(i.lines.slice(s,s+=25));i.height-=l.height,this.children.splice(++r,0,l),l.parent=this}i.lines=i.lines.slice(0,a),this.maybeSpill()}break}e-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=new ko(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=t.size,e.height-=t.height;var n=U(e.parent.children,e);e.parent.children.splice(n+1,0,t)}else{var r=new ko(e.children);r.parent=e,e.children=[r,t],e=r}t.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<o){var a=Math.min(t,o-e);if(i.iterN(e,a,n))return!0;if(0==(t-=a))break;e=0}else e-=o}}};var wo=function(e,t,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=e,this.node=t};function xo(e,t,n){Wt(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Er(e,n)}wo.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,n=this.line,r=Je(n);if(null!=r&&t){for(var i=0;i<t.length;++i)t[i]==this&&t.splice(i--,1);t.length||(n.widgets=null);var o=xn(this);Xe(n,Math.max(0,n.height-o)),e&&(Qr(e,function(){xo(e,n,-o),fr(e,r,"widget")}),un(e,"lineWidgetCleared",e,this,r))}},wo.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=xn(this)-t;i&&(Ut(this.doc,r)||Xe(r,r.height+i),n&&Qr(n,function(){n.curOp.forceUpdate=!0,xo(n,r,i),un(n,"lineWidgetChanged",n,e,Je(r))}))},we(wo);var Co=0,So=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++Co};function Ao(e,t,n,r,i){if(r&&r.shared)return function(e,t,n,r,i){(r=K(r)).shared=!1;var o=[Ao(e,t,n,r,i)],a=o[0],s=r.widgetNode;return Mi(e,function(e){s&&(r.widgetNode=s.cloneNode(!0)),o.push(Ao(e,ct(e,t),ct(e,n),r,i));for(var l=0;l<e.linked.length;++l)if(e.linked[l].isParent)return;a=J(o)}),new Oo(o,a)}(e,t,n,r,i);if(e.cm&&!e.cm.curOp)return ei(e.cm,Ao)(e,t,n,r,i);var o=new So(e,i),a=rt(t,n);if(r&&K(r,o,!1),a>0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=D("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Ft(e,t.line,t,n,o)||t.line!=n.line&&Ft(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ct=!0}o.addToHistory&&Ki(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,l=t.line,c=e.cm;if(e.iter(l,n.line+1,function(r){c&&o.collapsed&&!c.options.lineWrapping&&Kt(r)==c.display.maxLine&&(s=!0),o.collapsed&&l!=t.line&&Xe(r,0),function(e,t,n){var r=n&&window.WeakSet&&(n.markedSpans||(n.markedSpans=new WeakSet));r&&e.markedSpans&&r.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],r&&r.add(e.markedSpans)),t.marker.attachLine(e)}(r,new St(o,l==t.line?t.ch:null,l==n.line?n.ch:null),e.cm&&e.cm.curOp),++l}),o.collapsed&&e.iter(t.line,n.line+1,function(t){Ut(e,t)&&Xe(t,0)}),o.clearOnEnter&&me(o,"beforeCursorEnter",function(){return o.clear()}),o.readOnly&&(xt=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++Co,o.atomic=!0),c){if(s&&(c.curOp.updateMaxLine=!0),o.collapsed)dr(c,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var u=t.line;u<=n.line;u++)fr(c,u,"text");o.atomic&&no(c.doc),un(c,"markerAdded",c,o)}return o}So.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&$r(e),ke(this,"clear")){var n=this.find();n&&un(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;o<this.lines.length;++o){var a=this.lines[o],s=At(a.markedSpans,this);e&&!this.collapsed?fr(e,Je(a),"text"):e&&(null!=s.to&&(i=Je(a)),null!=s.from&&(r=Je(a))),a.markedSpans=Ot(a.markedSpans,s),null==s.from&&this.collapsed&&!Ut(this.doc,a)&&e&&Xe(a,rr(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var l=0;l<this.lines.length;++l){var c=Kt(this.lines[l]),u=$t(c);u>e.display.maxLineLength&&(e.display.maxLine=c,e.display.maxLineLength=u,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&dr(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&no(e.doc)),e&&un(e,"markerCleared",e,this,r,i),t&&Hr(e),this.parent&&this.parent.clear()}},So.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i<this.lines.length;++i){var o=this.lines[i],a=At(o.markedSpans,this);if(null!=a.from&&(n=nt(t?o:Je(o),a.from),-1==e))return n;if(null!=a.to&&(r=nt(t?o:Je(o),a.to),1==e))return r}return n&&{from:n,to:r}},So.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,r=this.doc.cm;t&&r&&Qr(r,function(){var i=t.line,o=Je(t.line),a=Rn(r,o);if(a&&(Kn(a),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!Ut(n.doc,i)&&null!=n.height){var s=n.height;n.height=null;var l=xn(n)-s;l&&Xe(i,i.height+l)}un(r,"markerChanged",r,e)})},So.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=U(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},So.prototype.detachLine=function(e){if(this.lines.splice(U(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},we(So);var Oo=function(e,t){this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=this};function jo(e){return e.findMarks(nt(e.first,0),e.clipPos(nt(e.lastLine())),function(e){return e.parent})}function To(e){for(var t=function(t){var n=e[t],r=[n.primary.doc];Mi(n.primary.doc,function(e){return r.push(e)});for(var i=0;i<n.markers.length;i++){var o=n.markers[i];-1==U(r,o.doc)&&(o.parent=null,n.markers.splice(i--,1))}},n=0;n<e.length;n++)t(n)}Oo.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();un(this,"clear")}},Oo.prototype.find=function(e,t){return this.primary.find(e,t)},we(Oo);var Eo=0,Do=function(e,t,n,r,i){if(!(this instanceof Do))return new Do(e,t,n,r,i);null==n&&(n=0),ko.call(this,[new _o([new Gt("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var o=nt(n,0);this.sel=Si(o),this.history=new Bi(null),this.id=++Eo,this.modeOption=t,this.lineSep=r,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),Ri(this,{from:o,to:o,text:e}),Qi(this,Si(o),$)};Do.prototype=te(ko.prototype,{constructor:Do,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,r=0;r<t.length;++r)n+=t[r].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=Ye(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:ni(function(e){var t=nt(this.first,0),n=this.first+this.size-1;co(this,{from:t,to:nt(n,Ge(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&Ir(this.cm,0,0),Qi(this,Si(t),$)}),replaceRange:function(e,t,n,r){mo(this,e,t=ct(this,t),n=n?ct(this,n):t,r)},getRange:function(e,t,n){var r=Ze(this,ct(this,e),ct(this,t));return!1===n?r:""===n?r.join(""):r.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(et(this,e))return Ge(this,e)},getLineNumber:function(e){return Je(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=Ge(this,e)),Kt(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return ct(this,e)},getCursor:function(e){var t=this.sel.primary();return null==e||"head"==e?t.head:"anchor"==e?t.anchor:"end"==e||"to"==e||!1===e?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:ni(function(e,t,n){Xi(this,ct(this,"number"==typeof e?nt(e,t||0):e),null,n)}),setSelection:ni(function(e,t,n){Xi(this,ct(this,e),ct(this,t||e),n)}),extendSelection:ni(function(e,t,n){Gi(this,ct(this,e),t&&ct(this,t),n)}),extendSelections:ni(function(e,t){Zi(this,ut(this,e),t)}),extendSelectionsBy:ni(function(e,t){Zi(this,ut(this,Q(this.sel.ranges,e)),t)}),setSelections:ni(function(e,t,n){if(e.length){for(var r=[],i=0;i<e.length;i++)r[i]=new xi(ct(this,e[i].anchor),ct(this,e[i].head||e[i].anchor));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),Qi(this,Ci(this.cm,r,t),n)}}),addSelection:ni(function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new xi(ct(this,e),ct(this,t||e))),Qi(this,Ci(this.cm,r,r.length-1),n)}),getSelection:function(e){for(var t,n=this.sel.ranges,r=0;r<n.length;r++){var i=Ze(this,n[r].from(),n[r].to());t=t?t.concat(i):i}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],n=this.sel.ranges,r=0;r<n.length;r++){var i=Ze(this,n[r].from(),n[r].to());!1!==e&&(i=i.join(e||this.lineSeparator())),t[r]=i}return t},replaceSelection:function(e,t,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=e;this.replaceSelections(r,t,n||"+input")},replaceSelections:ni(function(e,t,n){for(var r=[],i=this.sel,o=0;o<i.ranges.length;o++){var a=i.ranges[o];r[o]={from:a.from(),to:a.to(),text:this.splitLines(e[o]),origin:n}}for(var s=t&&"end"!=t&&function(e,t,n){for(var r=[],i=nt(e.first,0),o=i,a=0;a<t.length;a++){var s=t[a],l=Ti(s.from,i,o),c=Ti(Ai(s),i,o);if(i=s.to,o=c,"around"==n){var u=e.sel.ranges[a],d=rt(u.head,u.anchor)<0;r[a]=new xi(d?c:l,d?l:c)}else r[a]=new xi(l,l)}return new wi(r,e.sel.primIndex)}(this,r,t),l=r.length-1;l>=0;l--)co(this,r[l]);s?Ji(this,s):this.cm&&Dr(this.cm)}),undo:ni(function(){fo(this,"undo")}),redo:ni(function(){fo(this,"redo")}),undoSelection:ni(function(){fo(this,"undo",!0)}),redoSelection:ni(function(){fo(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r<e.done.length;r++)e.done[r].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){var e=this;this.history=new Bi(this.history),Mi(this,function(t){return t.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:$i(this.history.done),undone:$i(this.history.undone)}},setHistory:function(e){var t=this.history=new Bi(this.history);t.done=$i(e.done.slice(0),null,!0),t.undone=$i(e.undone.slice(0),null,!0)},setGutterMarker:ni(function(e,t,n){return bo(this,e,"gutter",function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&oe(r)&&(e.gutterMarkers=null),!0})}),clearGutter:ni(function(e){var t=this;this.iter(function(n){n.gutterMarkers&&n.gutterMarkers[e]&&bo(t,n,"gutter",function(){return n.gutterMarkers[e]=null,oe(n.gutterMarkers)&&(n.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if("number"==typeof e){if(!et(this,e))return null;if(t=e,!(e=Ge(this,e)))return null}else if(null==(t=Je(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:ni(function(e,t,n){return bo(this,e,"gutter"==t?"gutter":"class",function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[r]){if(S(n).test(e[r]))return!1;e[r]+=" "+n}else e[r]=n;return!0})}),removeLineClass:ni(function(e,t,n){return bo(this,e,"gutter"==t?"gutter":"class",function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass",i=e[r];if(!i)return!1;if(null==n)e[r]=null;else{var o=i.match(S(n));if(!o)return!1;var a=o.index+o[0].length;e[r]=i.slice(0,o.index)+(o.index&&a!=i.length?" ":"")+i.slice(a)||null}return!0})}),addLineWidget:ni(function(e,t,n){return function(e,t,n,r){var i=new wo(e,n,r),o=e.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),bo(e,t,"widget",function(t){var n=t.widgets||(t.widgets=[]);if(null==i.insertAt?n.push(i):n.splice(Math.min(n.length,Math.max(0,i.insertAt)),0,i),i.line=t,o&&!Ut(e,t)){var r=Wt(t)<e.scrollTop;Xe(t,t.height+xn(i)),r&&Er(o,i.height),o.curOp.forceUpdate=!0}return!0}),o&&un(o,"lineWidgetAdded",o,i,"number"==typeof t?t:Je(t)),i}(this,e,t,n)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return Ao(this,ct(this,e),ct(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){var n={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return Ao(this,e=ct(this,e),e,n,"bookmark")},findMarksAt:function(e){var t=[],n=Ge(this,(e=ct(this,e)).line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(null==i.from||i.from<=e.ch)&&(null==i.to||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=ct(this,e),t=ct(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,function(o){var a=o.markedSpans;if(a)for(var s=0;s<a.length;s++){var l=a[s];null!=l.to&&i==e.line&&e.ch>=l.to||null==l.from&&i!=e.line||null!=l.from&&i==t.line&&l.from>=t.ch||n&&!n(l.marker)||r.push(l.marker.parent||l.marker)}++i}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&e.push(n[r].marker)}),e},posFromIndex:function(e){var t,n=this.first,r=this.lineSeparator().length;return this.iter(function(i){var o=i.text.length+r;if(o>e)return t=e,!0;e-=o,++n}),ct(this,nt(n,t))},indexFromPos:function(e){var t=(e=ct(this,e)).ch;if(e.line<this.first||e.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,function(e){t+=e.text.length+n}),t},copy:function(e){var t=new Do(Ye(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,n=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<n&&(n=e.to);var r=new Do(Ye(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:e.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.find(),o=e.clipPos(i.from),a=e.clipPos(i.to);if(rt(o,a)){var s=Ao(e,o,a,r.primary,r.primary.type);r.markers.push(s),s.parent=r}}}(r,jo(this)),r},unlinkDoc:function(e){if(e instanceof Oa&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t){if(this.linked[t].doc==e){this.linked.splice(t,1),e.unlinkDoc(this),To(jo(this));break}}if(e.history==this.history){var n=[e.id];Mi(e,function(e){return n.push(e.id)},!0),e.history=new Bi(null),e.history.done=$i(this.history.done,n),e.history.undone=$i(this.history.undone,n)}},iterLinkedDocs:function(e){Mi(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Me(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:ni(function(e){"rtl"!=e&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(e){return e.order=null}),this.cm&&function(e){Qr(e,function(){Li(e),dr(e)})}(this.cm))})}),Do.prototype.eachLine=Do.prototype.iter;var Io=0;function Ro(e){var t=this;if(Mo(t),!be(t,e)&&!Cn(t.display,e)){xe(e),a&&(Io=+new Date);var n=cr(t,e,!0),r=e.dataTransfer.files;if(n&&!t.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,o=Array(i),s=0,l=function(){++s==i&&ei(t,function(){var e={from:n=ct(t.doc,n),to:n,text:t.doc.splitLines(o.filter(function(e){return null!=e}).join(t.doc.lineSeparator())),origin:"paste"};co(t.doc,e),Ji(t.doc,Si(ct(t.doc,n),ct(t.doc,Ai(e))))})()},c=function(e,n){if(t.options.allowDropFileTypes&&-1==U(t.options.allowDropFileTypes,e.type))l();else{var r=new FileReader;r.onerror=function(){return l()},r.onload=function(){var e=r.result;/[\x00-\x08\x0e-\x1f]{2}/.test(e)?l():(o[n]=e,l())},r.readAsText(e)}},u=0;u<r.length;u++)c(r[u],u);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-1)return t.state.draggingText(e),void setTimeout(function(){return t.display.input.focus()},20);try{var d=e.dataTransfer.getData("Text");if(d){var f;if(t.state.draggingText&&!t.state.draggingText.copy&&(f=t.listSelections()),eo(t.doc,Si(n,n)),f)for(var h=0;h<f.length;++h)mo(t.doc,"",f[h].anchor,f[h].head,"drag");t.replaceSelection(d,"around","paste"),t.display.input.focus()}}catch(e){}}}}function Mo(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Po(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),n=[],r=0;r<t.length;r++){var i=t[r].CodeMirror;i&&n.push(i)}n.length&&n[0].operation(function(){for(var t=0;t<n.length;t++)e(n[t])})}}var Lo=!1;function Bo(){Lo||(!function(){var e;me(window,"resize",function(){null==e&&(e=setTimeout(function(){e=null,Po(No)},100))}),me(window,"blur",function(){return Po(Sr)})}(),Lo=!0)}function No(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Fo={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Ko=0;Ko<10;Ko++)Fo[Ko+48]=Fo[Ko+96]=String(Ko);for(var Vo=65;Vo<=90;Vo++)Fo[Vo]=String.fromCharCode(Vo);for(var zo=1;zo<=12;zo++)Fo[zo+111]=Fo[zo+63235]="F"+zo;var Uo={};function qo(e){var t,n,r,i,o=e.split(/-(?!$)/);e=o[o.length-1];for(var a=0;a<o.length-1;a++){var s=o[a];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))t=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);r=!0}}return t&&(e="Alt-"+e),n&&(e="Ctrl-"+e),i&&(e="Cmd-"+e),r&&(e="Shift-"+e),e}function Wo(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete e[n];continue}for(var i=Q(n.split(" "),qo),o=0;o<i.length;o++){var a=void 0,s=void 0;o==i.length-1?(s=i.join(" "),a=r):(s=i.slice(0,o+1).join(" "),a="...");var l=t[s];if(l){if(l!=a)throw new Error("Inconsistent bindings for "+s)}else t[s]=a}delete e[n]}for(var c in t)e[c]=t[c];return e}function $o(e,t,n,r){var i=(t=Yo(t)).call?t.call(e,r):t[e];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&n(i))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return $o(e,t.fallthrough,n,r);for(var o=0;o<t.fallthrough.length;o++){var a=$o(e,t.fallthrough[o],n,r);if(a)return a}}}function Ho(e){var t="string"==typeof e?e:Fo[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function Go(e,t,n){var r=e;return t.altKey&&"Alt"!=r&&(e="Alt-"+e),(x?t.metaKey:t.ctrlKey)&&"Ctrl"!=r&&(e="Ctrl-"+e),(x?t.ctrlKey:t.metaKey)&&"Mod"!=r&&(e="Cmd-"+e),!n&&t.shiftKey&&"Shift"!=r&&(e="Shift-"+e),e}function Zo(e,t){if(f&&34==e.keyCode&&e.char)return!1;var n=Fo[e.keyCode];return null!=n&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(n=e.code),Go(n,e,t))}function Yo(e){return"string"==typeof e?Uo[e]:e}function Xo(e,t){for(var n=e.doc.sel.ranges,r=[],i=0;i<n.length;i++){for(var o=t(n[i]);r.length&&rt(o.from,J(r).to)<=0;){var a=r.pop();if(rt(a.from,o.from)<0){o.from=a.from;break}}r.push(o)}Qr(e,function(){for(var t=r.length-1;t>=0;t--)mo(e.doc,"",r[t].from,r[t].to,"+delete");Dr(e)})}function Jo(e,t,n){var r=le(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Qo(e,t,n){var r=Jo(e,t.ch,n);return null==r?null:new nt(t.line,r,n<0?"after":"before")}function ea(e,t,n,r,i){if(e){"rtl"==t.doc.direction&&(i=-i);var o=he(n,t.doc.direction);if(o){var a,s=i<0?J(o):o[0],l=i<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var c=Mn(t,n);a=i<0?n.text.length-1:0;var u=Pn(t,c,a).top;a=ce(function(e){return Pn(t,c,e).top==u},i<0==(1==s.level)?s.from:s.to-1,a),"before"==l&&(a=Jo(n,a,1))}else a=i<0?s.to:s.from;return new nt(r,a,l)}}return new nt(r,i<0?n.text.length:0,i<0?"before":"after")}Uo.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Uo.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Uo.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Uo.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Uo.default=b?Uo.macDefault:Uo.pcDefault;var ta={selectAll:so,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),$)},killLine:function(e){return Xo(e,function(t){if(t.empty()){var n=Ge(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:nt(t.head.line+1,0)}:{from:t.head,to:nt(t.head.line,n)}}return{from:t.from(),to:t.to()}})},deleteLine:function(e){return Xo(e,function(t){return{from:nt(t.from().line,0),to:ct(e.doc,nt(t.to().line+1,0))}})},delLineLeft:function(e){return Xo(e,function(e){return{from:nt(e.from().line,0),to:e.from()}})},delWrappedLineLeft:function(e){return Xo(e,function(t){var n=e.charCoords(t.head,"div").top+5;return{from:e.coordsChar({left:0,top:n},"div"),to:t.from()}})},delWrappedLineRight:function(e){return Xo(e,function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:r}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(nt(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(nt(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return na(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return ra(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return function(e,t){var n=Ge(e.doc,t),r=function(e){for(var t;t=Bt(e);)e=t.find(1,!0).line;return e}(n);r!=n&&(t=Je(r));return ea(!0,e,n,t,-1)}(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div")},G)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:n},"div")},G)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return r.ch<e.getLine(r.line).search(/\S/)?ra(e,t.head):r},G)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),r=e.options.tabSize,i=0;i<n.length;i++){var o=n[i].from(),a=V(e.getLine(o.line),o.ch,r);t.push(X(r-a%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Qr(e,function(){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)if(t[r].empty()){var i=t[r].head,o=Ge(e.doc,i.line).text;if(o)if(i.ch==o.length&&(i=new nt(i.line,i.ch-1)),i.ch>0)i=new nt(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),nt(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=Ge(e.doc,i.line-1).text;a&&(i=new nt(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),nt(i.line-1,a.length-1),i,"+transpose"))}n.push(new xi(i,i))}e.setSelections(n)})},newlineAndIndent:function(e){return Qr(e,function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r<t.length;r++)e.indentLine(t[r].from().line,null,!0);Dr(e)})},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function na(e,t){var n=Ge(e.doc,t),r=Kt(n);return r!=n&&(t=Je(r)),ea(!0,e,r,t,1)}function ra(e,t){var n=na(e,t.line),r=Ge(e.doc,n.line),i=he(r,e.doc.direction);if(!i||0==i[0].level){var o=Math.max(n.ch,r.text.search(/\S/)),a=t.line==n.line&&t.ch<=o&&t.ch;return nt(n.line,a?0:o,n.sticky)}return n}function ia(e,t,n){if("string"==typeof t&&!(t=ta[t]))return!1;e.display.input.ensurePolled();var r=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),i=t(e)!=W}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}var oa=new z;function aa(e,t,n,r){var i=e.state.keySeq;if(i){if(Ho(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:oa.set(50,function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())}),sa(e,i+" "+t,n,r))return!0}return sa(e,t,n,r)}function sa(e,t,n,r){var i=function(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var i=$o(t,e.state.keyMaps[r],n,e);if(i)return i}return e.options.extraKeys&&$o(t,e.options.extraKeys,n,e)||$o(t,e.options.keyMap,n,e)}(e,t,r);return"multi"==i&&(e.state.keySeq=t),"handled"==i&&un(e,"keyHandled",e,t,n),"handled"!=i&&"multi"!=i||(xe(n),kr(e)),!!i}function la(e,t){var n=Zo(t,!0);return!!n&&(t.shiftKey&&!e.state.keySeq?aa(e,"Shift-"+n,t,function(t){return ia(e,t,!0)})||aa(e,n,t,function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return ia(e,t)}):aa(e,n,t,function(t){return ia(e,t)}))}var ca=null;function ua(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||(t.curOp.focus=R(B(t)),be(t,e)))){a&&s<11&&27==e.keyCode&&(e.returnValue=!1);var r=e.keyCode;t.display.shift=16==r||e.shiftKey;var i=la(t,e);f&&(ca=i?r:null,!i&&88==r&&!Le&&(b?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),n&&!b&&!i&&46==r&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=r||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||function(e){var t=e.display.lineDiv;function n(e){18!=e.keyCode&&e.altKey||(O(t,"CodeMirror-crosshair"),ve(document,"keyup",n),ve(document,"mouseover",n))}M(t,"CodeMirror-crosshair"),me(document,"keyup",n),me(document,"mouseover",n)}(t)}}function da(e){16==e.keyCode&&(this.doc.sel.shift=!1),be(this,e)}function fa(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||Cn(t.display,e)||be(t,e)||e.ctrlKey&&!e.altKey||b&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(f&&n==ca)return ca=null,void xe(e);if(!f||e.which&&!(e.which<10)||!la(t,e)){var i=String.fromCharCode(null==r?n:r);"\b"!=i&&(function(e,t,n){return aa(e,"'"+n+"'",t,function(t){return ia(e,t,!0)})}(t,e,i)||t.display.input.onKeyPress(e))}}}var ha,pa,ma=function(e,t,n){this.time=e,this.pos=t,this.button=n};function ya(e){var t=this,n=t.display;if(!(be(t,e)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=e.shiftKey,Cn(n,e))l||(n.scroller.draggable=!1,setTimeout(function(){return n.scroller.draggable=!0},100));else if(!ba(t,e)){var r=cr(t,e),i=je(e),o=r?function(e,t){var n=+new Date;return pa&&pa.compare(n,e,t)?(ha=pa=null,"triple"):ha&&ha.compare(n,e,t)?(pa=new ma(n,e,t),ha=null,"double"):(ha=new ma(n,e,t),pa=null,"single")}(r,i):"single";N(t).focus(),1==i&&t.state.selectingText&&t.state.selectingText(e),r&&function(e,t,n,r,i){var o="Click";"double"==r?o="Double"+o:"triple"==r&&(o="Triple"+o);return aa(e,Go(o=(1==t?"Left":2==t?"Middle":"Right")+o,i),i,function(t){if("string"==typeof t&&(t=ta[t]),!t)return!1;var r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r=t(e,n)!=W}finally{e.state.suppressEdits=!1}return r})}(t,i,r,o,e)||(1==i?r?function(e,t,n,r){a?setTimeout(F(wr,e),0):e.curOp.focus=R(B(e));var i,o=function(e,t,n){var r=e.getOption("configureMouse"),i=r?r(e,t,n):{};if(null==i.unit){var o=_?n.shiftKey&&n.metaKey:n.altKey;i.unit=o?"rectangle":"single"==t?"char":"double"==t?"word":"line"}(null==i.extend||e.doc.extend)&&(i.extend=e.doc.extend||n.shiftKey);null==i.addNew&&(i.addNew=b?n.metaKey:n.ctrlKey);null==i.moveOnDrag&&(i.moveOnDrag=!(b?n.altKey:n.ctrlKey));return i}(e,n,r),c=e.doc.sel;e.options.dragDrop&&De&&!e.isReadOnly()&&"single"==n&&(i=c.contains(t))>-1&&(rt((i=c.ranges[i]).from(),t)<0||t.xRel>0)&&(rt(i.to(),t)>0||t.xRel<0)?function(e,t,n,r){var i=e.display,o=!1,c=ei(e,function(t){l&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:xr(e)),ve(i.wrapper.ownerDocument,"mouseup",c),ve(i.wrapper.ownerDocument,"mousemove",u),ve(i.scroller,"dragstart",d),ve(i.scroller,"drop",c),o||(xe(t),r.addNew||Gi(e.doc,n,null,null,r.extend),l&&!h||a&&9==s?setTimeout(function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()},20):i.input.focus())}),u=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},d=function(){return o=!0};l&&(i.scroller.draggable=!0);e.state.draggingText=c,c.copy=!r.moveOnDrag,me(i.wrapper.ownerDocument,"mouseup",c),me(i.wrapper.ownerDocument,"mousemove",u),me(i.scroller,"dragstart",d),me(i.scroller,"drop",c),e.state.delayingBlurEvent=!0,setTimeout(function(){return i.input.focus()},20),i.scroller.dragDrop&&i.scroller.dragDrop()}(e,r,t,o):function(e,t,n,r){a&&xr(e);var i=e.display,o=e.doc;xe(t);var s,l,c=o.sel,u=c.ranges;r.addNew&&!r.extend?(l=o.sel.contains(n),s=l>-1?u[l]:new xi(n,n)):(s=o.sel.primary(),l=o.sel.primIndex);if("rectangle"==r.unit)r.addNew||(s=new xi(n,n)),n=cr(e,t,!0,!0),l=-1;else{var d=va(e,n,r.unit);s=r.extend?Hi(s,d.anchor,d.head,r.extend):d}r.addNew?-1==l?(l=u.length,Qi(o,Ci(e,u.concat([s]),l),{scroll:!1,origin:"*mouse"})):u.length>1&&u[l].empty()&&"char"==r.unit&&!r.extend?(Qi(o,Ci(e,u.slice(0,l).concat(u.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),c=o.sel):Yi(o,l,s,H):(l=0,Qi(o,new wi([s],0),H),c=o.sel);var f=n;function h(t){if(0!=rt(f,t))if(f=t,"rectangle"==r.unit){for(var i=[],a=e.options.tabSize,u=V(Ge(o,n.line).text,n.ch,a),d=V(Ge(o,t.line).text,t.ch,a),h=Math.min(u,d),p=Math.max(u,d),m=Math.min(n.line,t.line),y=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=y;m++){var v=Ge(o,m).text,g=Z(v,h,a);h==p?i.push(new xi(nt(m,g),nt(m,g))):v.length>g&&i.push(new xi(nt(m,g),nt(m,Z(v,p,a))))}i.length||i.push(new xi(n,n)),Qi(o,Ci(e,c.ranges.slice(0,l).concat(i),l),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,_=s,k=va(e,t,r.unit),w=_.anchor;rt(k.anchor,w)>0?(b=k.head,w=st(_.from(),k.anchor)):(b=k.anchor,w=at(_.to(),k.head));var x=c.ranges.slice(0);x[l]=function(e,t){var n=t.anchor,r=t.head,i=Ge(e.doc,n.line);if(0==rt(n,r)&&n.sticky==r.sticky)return t;var o=he(i);if(!o)return t;var a=de(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var l,c=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==c||c==o.length)return t;if(r.line!=n.line)l=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var u=de(o,r.ch,r.sticky),d=u-a||(r.ch-n.ch)*(1==s.level?-1:1);l=u==c-1||u==c?d<0:d>0}var f=o[c+(l?-1:0)],h=l==(1==f.level),p=h?f.from:f.to,m=h?"after":"before";return n.ch==p&&n.sticky==m?t:new xi(new nt(n.line,p,m),r)}(e,new xi(ct(o,w),b)),Qi(o,Ci(e,x,l),H)}}var p=i.wrapper.getBoundingClientRect(),m=0;function y(t){e.state.selectingText=!1,m=1/0,t&&(xe(t),i.input.focus()),ve(i.wrapper.ownerDocument,"mousemove",v),ve(i.wrapper.ownerDocument,"mouseup",g),o.history.lastSelOrigin=null}var v=ei(e,function(t){0!==t.buttons&&je(t)?function t(n){var a=++m;var s=cr(e,n,!0,"rectangle"==r.unit);if(!s)return;if(0!=rt(s,f)){e.curOp.focus=R(B(e)),h(s);var l=jr(i,o);(s.line>=l.to||s.line<l.from)&&setTimeout(ei(e,function(){m==a&&t(n)}),150)}else{var c=n.clientY<p.top?-20:n.clientY>p.bottom?20:0;c&&setTimeout(ei(e,function(){m==a&&(i.scroller.scrollTop+=c,t(n))}),50)}}(t):y(t)}),g=ei(e,y);e.state.selectingText=g,me(i.wrapper.ownerDocument,"mousemove",v),me(i.wrapper.ownerDocument,"mouseup",g)}(e,r,t,o)}(t,r,o,e):Oe(e)==n.scroller&&xe(e):2==i?(r&&Gi(t.doc,r),setTimeout(function(){return n.input.focus()},20)):3==i&&(C?t.display.input.onContextMenu(e):xr(t)))}}function va(e,t,n){if("char"==n)return new xi(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new xi(nt(t.line,0),ct(e.doc,nt(t.line+1,0)));var r=n(e,t);return new xi(r.from,r.to)}function ga(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(e){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&xe(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!ke(e,n))return Se(t);o-=s.top-a.viewOffset;for(var l=0;l<e.display.gutterSpecs.length;++l){var c=a.gutters.childNodes[l];if(c&&c.getBoundingClientRect().right>=i)return ge(e,n,e,Qe(e.doc,o),e.display.gutterSpecs[l].className,t),Se(t)}}function ba(e,t){return ga(e,t,"gutterClick",!0)}function _a(e,t){Cn(e.display,t)||function(e,t){if(!ke(e,"gutterContextMenu"))return!1;return ga(e,t,"gutterContextMenu",!1)}(e,t)||be(e,t,"contextmenu")||C||e.display.input.onContextMenu(t)}function ka(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),zn(e)}ma.prototype.compare=function(e,t,n){return this.time+400>e&&0==rt(t,this.pos)&&n==this.button};var wa={toString:function(){return"CodeMirror.Init"}},xa={},Ca={};function Sa(e,t,n){if(!t!=!(n&&n!=wa)){var r=e.display.dragFunctions,i=t?me:ve;i(e.display.scroller,"dragstart",r.start),i(e.display.scroller,"dragenter",r.enter),i(e.display.scroller,"dragover",r.over),i(e.display.scroller,"dragleave",r.leave),i(e.display.scroller,"drop",r.drop)}}function Aa(e){e.options.lineWrapping?(M(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(O(e.display.wrapper,"CodeMirror-wrap"),Ht(e)),lr(e),dr(e),zn(e),setTimeout(function(){return Vr(e)},100)}function Oa(e,t){var r=this;if(!(this instanceof Oa))return new Oa(e,t);this.options=t=t?K(t):{},K(xa,t,!1);var i=t.value;"string"==typeof i?i=new Do(i,t.mode,null,t.lineSeparator,t.direction):t.mode&&(i.modeOption=t.mode),this.doc=i;var o=new Oa.inputStyles[t.inputStyle](this),c=this.display=new function(e,t,r,i){var o=this;this.input=r,o.scrollbarFiller=E("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=E("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=D("div",null,"CodeMirror-code"),o.selectionDiv=E("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=E("div",null,"CodeMirror-cursors"),o.measure=E("div",null,"CodeMirror-measure"),o.lineMeasure=E("div",null,"CodeMirror-measure"),o.lineSpace=D("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var c=D("div",[o.lineSpace],"CodeMirror-lines");o.mover=E("div",[c],null,"position: relative"),o.sizer=E("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=E("div",null,null,"position: absolute; height: "+q+"px; width: 1px;"),o.gutters=E("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=E("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=E("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),u&&d>=105&&(o.wrapper.style.clipPath="inset(0px)"),o.wrapper.setAttribute("translate","no"),a&&s<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),l||n&&g||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=pi(i.gutters,i.lineNumbers),mi(o),r.init(o)}(e,i,o,t);for(var p in c.wrapper.CodeMirror=this,ka(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),qr(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new z,keySeq:null,specialChars:null},t.autofocus&&!g&&c.input.focus(),a&&s<11&&setTimeout(function(){return r.display.input.reset(!0)},20),function(e){var t=e.display;me(t.scroller,"mousedown",ei(e,ya)),me(t.scroller,"dblclick",a&&s<11?ei(e,function(t){if(!be(e,t)){var n=cr(e,t);if(n&&!ba(e,t)&&!Cn(e.display,t)){xe(t);var r=e.findWordAt(n);Gi(e.doc,r.anchor,r.head)}}}):function(t){return be(e,t)||xe(t)});me(t.scroller,"contextmenu",function(t){return _a(e,t)}),me(t.input.getField(),"contextmenu",function(n){t.scroller.contains(n.target)||_a(e,n)});var n,r={end:0};function i(){t.activeTouch&&(n=setTimeout(function(){return t.activeTouch=null},1e3),(r=t.activeTouch).end=+new Date)}function o(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}me(t.scroller,"touchstart",function(i){if(!be(e,i)&&!function(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}(i)&&!ba(e,i)){t.input.ensurePolled(),clearTimeout(n);var o=+new Date;t.activeTouch={start:o,moved:!1,prev:o-r.end<=300?r:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}}),me(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),me(t.scroller,"touchend",function(n){var r=t.activeTouch;if(r&&!Cn(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var a,s=e.coordsChar(t.activeTouch,"page");a=!r.prev||o(r,r.prev)?new xi(s,s):!r.prev.prev||o(r,r.prev.prev)?e.findWordAt(s):new xi(nt(s.line,0),ct(e.doc,nt(s.line+1,0))),e.setSelection(a.anchor,a.head),e.focus(),xe(n)}i()}),me(t.scroller,"touchcancel",i),me(t.scroller,"scroll",function(){t.scroller.clientHeight&&(Pr(e,t.scroller.scrollTop),Br(e,t.scroller.scrollLeft,!0),ge(e,"scroll",e))}),me(t.scroller,"mousewheel",function(t){return ki(e,t)}),me(t.scroller,"DOMMouseScroll",function(t){return ki(e,t)}),me(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(t){be(e,t)||Ae(t)},over:function(t){be(e,t)||(!function(e,t){var n=cr(e,t);if(n){var r=document.createDocumentFragment();gr(e,n,r),e.display.dragCursor||(e.display.dragCursor=E("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),T(e.display.dragCursor,r)}}(e,t),Ae(t))},start:function(t){return function(e,t){if(a&&(!e.state.draggingText||+new Date-Io<100))Ae(t);else if(!be(e,t)&&!Cn(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!h)){var n=E("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",f&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),f&&n.parentNode.removeChild(n)}}(e,t)},drop:ei(e,Ro),leave:function(t){be(e,t)||Mo(e)}};var l=t.input.getField();me(l,"keyup",function(t){return da.call(e,t)}),me(l,"keydown",ei(e,ua)),me(l,"keypress",ei(e,fa)),me(l,"focus",function(t){return Cr(e,t)}),me(l,"blur",function(t){return Sr(e,t)})}(this),Bo(),$r(this),this.curOp.forceUpdate=!0,Pi(this,i),t.autofocus&&!g||this.hasFocus()?setTimeout(function(){r.hasFocus()&&!r.state.focused&&Cr(r)},20):Sr(this),Ca)Ca.hasOwnProperty(p)&&Ca[p](this,t[p],wa);hi(this),t.finishInit&&t.finishInit(this);for(var m=0;m<ja.length;++m)ja[m](this);Hr(this),l&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(c.lineDiv).textRendering&&(c.lineDiv.style.textRendering="auto")}Oa.defaults=xa,Oa.optionHandlers=Ca;var ja=[];function Ta(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=mt(e,t).state:n="prev");var a=e.options.tabSize,s=Ge(o,t),l=V(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var c,u=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&((c=o.mode.indent(i,s.text.slice(u.length),s.text))==W||c>150)){if(!r)return;n="prev"}}else c=0,n="not";"prev"==n?c=t>o.first?V(Ge(o,t-1).text,null,a):0:"add"==n?c=l+e.options.indentUnit:"subtract"==n?c=l-e.options.indentUnit:"number"==typeof n&&(c=l+n),c=Math.max(0,c);var d="",f=0;if(e.options.indentWithTabs)for(var h=Math.floor(c/a);h;--h)f+=a,d+="\t";if(f<c&&(d+=X(c-f)),d!=u)return mo(o,d,nt(t,0),nt(t,u.length),"+input"),s.stateAfter=null,!0;for(var p=0;p<o.sel.ranges.length;p++){var m=o.sel.ranges[p];if(m.head.line==t&&m.head.ch<u.length){var y=nt(t,u.length);Yi(o,p,new xi(y,y));break}}}Oa.defineInitHook=function(e){return ja.push(e)};var Ea=null;function Da(e){Ea=e}function Ia(e,t,n,r,i){var o=e.doc;e.display.shift=!1,r||(r=o.sel);var a=+new Date-200,s="paste"==i||e.state.pasteIncoming>a,l=Me(t),c=null;if(s&&r.ranges.length>1)if(Ea&&Ea.text.join("\n")==t){if(r.ranges.length%Ea.text.length==0){c=[];for(var u=0;u<Ea.text.length;u++)c.push(o.splitLines(Ea.text[u]))}}else l.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(c=Q(l,function(e){return[e]}));for(var d=e.curOp.updateInput,f=r.ranges.length-1;f>=0;f--){var h=r.ranges[f],p=h.from(),m=h.to();h.empty()&&(n&&n>0?p=nt(p.line,p.ch-n):e.state.overwrite&&!s?m=nt(m.line,Math.min(Ge(o,m.line).text.length,m.ch+J(l).length)):s&&Ea&&Ea.lineWise&&Ea.text.join("\n")==l.join("\n")&&(p=m=nt(p.line,0)));var y={from:p,to:m,text:c?c[f%c.length]:l,origin:i||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};co(e.doc,y),un(e,"inputRead",e,y)}t&&!s&&Ma(e,t),Dr(e),e.curOp.updateInput<2&&(e.curOp.updateInput=d),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Ra(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||!t.hasFocus()||Qr(t,function(){return Ia(t,n,0,null,"paste")}),!0}function Ma(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var s=0;s<o.electricChars.length;s++)if(t.indexOf(o.electricChars.charAt(s))>-1){a=Ta(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Ge(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Ta(e,i.head.line,"smart"));a&&un(e,"electricInput",e,i.head.line)}}}function Pa(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var i=e.doc.sel.ranges[r].head.line,o={anchor:nt(i,0),head:nt(i+1,0)};n.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:n}}function La(e,t,n,r){e.setAttribute("autocorrect",n?"on":"off"),e.setAttribute("autocapitalize",r?"on":"off"),e.setAttribute("spellcheck",!!t)}function Ba(){var e=E("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),t=E("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return l?e.style.width="1000px":e.setAttribute("wrap","off"),y&&(e.style.border="1px solid black"),t}function Na(e,t,n,r,i){var o=t,a=n,s=Ge(e,t.line),l=i&&"rtl"==e.direction?-n:n;function c(o){var a;if("codepoint"==r){var c=s.text.charCodeAt(t.ch+(n>0?0:-1));if(isNaN(c))a=null;else{var u=n>0?c>=55296&&c<56320:c>=56320&&c<57343;a=new nt(t.line,Math.max(0,Math.min(s.text.length,t.ch+n*(u?2:1))),-n)}}else a=i?function(e,t,n,r){var i=he(t,e.doc.direction);if(!i)return Qo(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=de(i,n.ch,n.sticky),a=i[o];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from<n.ch))return Qo(t,n,r);var s,l=function(e,n){return Jo(t,e instanceof nt?e.ch:e,n)},c=function(n){return e.options.lineWrapping?(s=s||Mn(e,t),er(e,t,s,n)):{begin:0,end:t.text.length}},u=c("before"==n.sticky?l(n,-1):n.ch);if("rtl"==e.doc.direction||1==a.level){var d=1==a.level==r<0,f=l(n,d?1:-1);if(null!=f&&(d?f<=a.to&&f<=u.end:f>=a.from&&f>=u.begin)){var h=d?"before":"after";return new nt(n.line,f,h)}}var p=function(e,t,r){for(var o=function(e,t){return t?new nt(n.line,l(e,1),"before"):new nt(n.line,e,"after")};e>=0&&e<i.length;e+=t){var a=i[e],s=t>0==(1!=a.level),c=s?r.begin:l(r.end,-1);if(a.from<=c&&c<a.to)return o(c,s);if(c=s?a.from:l(a.to,-1),r.begin<=c&&c<r.end)return o(c,s)}},m=p(o+r,r,u);if(m)return m;var y=r>0?u.end:l(u.begin,-1);return null==y||r>0&&y==t.text.length||!(m=p(r>0?0:i.length-1,r,c(y)))?null:m}(e.cm,s,t,n):Qo(s,t,n);if(null==a){if(o||!function(){var n=t.line+l;return!(n<e.first||n>=e.first+e.size)&&(t=new nt(n,t.ch,t.sticky),s=Ge(e,n))}())return!1;t=ea(i,e.cm,s,t.line,l)}else t=a;return!0}if("char"==r||"codepoint"==r)c();else if("column"==r)c(!0);else if("word"==r||"group"==r)for(var u=null,d="group"==r,f=e.cm&&e.cm.getHelper(t,"wordChars"),h=!0;!(n<0)||c(!h);h=!1){var p=s.text.charAt(t.ch)||"\n",m=ie(p,f)?"w":d&&"\n"==p?"n":!d||/\s/.test(p)?null:"p";if(!d||h||m||(m="s"),u&&u!=m){n<0&&(n=1,c(),t.sticky="after");break}if(m&&(u=m),n>0&&!c(!h))break}var y=oo(e,t,o,a,!0);return it(o,y)&&(y.hitSide=!0),y}function Fa(e,t,n,r){var i,o,a=e.doc,s=t.left;if("page"==r){var l=Math.min(e.display.wrapper.clientHeight,N(e).innerHeight||a(e).documentElement.clientHeight),c=Math.max(l-.5*rr(e.display),3);i=(n>0?t.bottom:t.top)+n*c}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;(o=Jn(e,s,i)).outside;){if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var Ka=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new z,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Va(e,t){var n=Rn(e,t.line);if(!n||n.hidden)return null;var r=Ge(e.doc,t.line),i=Dn(n,r,t.line),o=he(r,e.doc.direction),a="left";o&&(a=de(o,t.ch)%2?"right":"left");var s=Nn(i.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function za(e,t){return t&&(e.bad=!0),e}function Ua(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return za(e.clipPos(nt(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var i=0;i<e.display.view.length;i++){var o=e.display.view[i];if(o.node==r)return qa(o,t,n)}}function qa(e,t,n){var r=e.text.firstChild,i=!1;if(!t||!I(r,t))return za(nt(Je(e.line),0),!0);if(t==r&&(i=!0,t=r.childNodes[n],n=0,!t)){var o=e.rest?J(e.rest):e.line;return za(nt(Je(o),o.text.length),i)}var a=3==t.nodeType?t:null,s=t;for(a||1!=t.childNodes.length||3!=t.firstChild.nodeType||(a=t.firstChild,n&&(n=a.nodeValue.length));s.parentNode!=r;)s=s.parentNode;var l=e.measure,c=l.maps;function u(t,n,r){for(var i=-1;i<(c?c.length:0);i++)for(var o=i<0?l.map:c[i],a=0;a<o.length;a+=3){var s=o[a+2];if(s==t||s==n){var u=Je(i<0?e.line:e.rest[i]),d=o[a]+r;return(r<0||s!=t)&&(d=o[a+(r?1:0)]),nt(u,d)}}}var d=u(a,s,n);if(d)return za(d,i);for(var f=s.nextSibling,h=a?a.nodeValue.length-n:0;f;f=f.nextSibling){if(d=u(f,f.firstChild,0))return za(nt(d.line,d.ch-h),i);h+=f.textContent.length}for(var p=s.previousSibling,m=n;p;p=p.previousSibling){if(d=u(p,p.firstChild,-1))return za(nt(d.line,d.ch+m),i);m+=p.textContent.length}}Ka.prototype.init=function(e){var t=this,n=this,r=n.cm,i=n.div=e.lineDiv;function o(e){for(var t=e.target;t;t=t.parentNode){if(t==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(t.className))break}return!1}function a(e){if(o(e)&&!be(r,e)){if(r.somethingSelected())Da({lineWise:!1,text:r.getSelections()}),"cut"==e.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var t=Pa(r);Da({lineWise:!0,text:t.text}),"cut"==e.type&&r.operation(function(){r.setSelections(t.ranges,0,$),r.replaceSelection("",null,"cut")})}if(e.clipboardData){e.clipboardData.clearData();var a=Ea.text.join("\n");if(e.clipboardData.setData("Text",a),e.clipboardData.getData("Text")==a)return void e.preventDefault()}var s=Ba(),l=s.firstChild;La(l),r.display.lineSpace.insertBefore(s,r.display.lineSpace.firstChild),l.value=Ea.text.join("\n");var c=R(i.ownerDocument);L(l),setTimeout(function(){r.display.lineSpace.removeChild(s),c.focus(),c==i&&n.showPrimarySelection()},50)}}i.contentEditable=!0,La(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize),me(i,"paste",function(e){!o(e)||be(r,e)||Ra(e,r)||s<=11&&setTimeout(ei(r,function(){return t.updateFromDOM()}),20)}),me(i,"compositionstart",function(e){t.composing={data:e.data,done:!1}}),me(i,"compositionupdate",function(e){t.composing||(t.composing={data:e.data,done:!1})}),me(i,"compositionend",function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),me(i,"touchstart",function(){return n.forceCompositionEnd()}),me(i,"input",function(){t.composing||t.readFromDOMSoon()}),me(i,"copy",a),me(i,"cut",a)},Ka.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Ka.prototype.prepareSelection=function(){var e=vr(this.cm,!1);return e.focus=R(this.div.ownerDocument)==this.div,e},Ka.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Ka.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ka.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,r=t.doc.sel.primary(),i=r.from(),o=r.to();if(t.display.viewTo==t.display.viewFrom||i.line>=t.display.viewTo||o.line<t.display.viewFrom)e.removeAllRanges();else{var a=Ua(t,e.anchorNode,e.anchorOffset),s=Ua(t,e.focusNode,e.focusOffset);if(!a||a.bad||!s||s.bad||0!=rt(st(a,s),i)||0!=rt(at(a,s),o)){var l=t.display.view,c=i.line>=t.display.viewFrom&&Va(t,i)||{node:l[0].measure.map[2],offset:0},u=o.line<t.display.viewTo&&Va(t,o);if(!u){var d=l[l.length-1].measure,f=d.maps?d.maps[d.maps.length-1]:d.map;u={node:f[f.length-1],offset:f[f.length-2]-f[f.length-3]}}if(c&&u){var h,p=e.rangeCount&&e.getRangeAt(0);try{h=A(c.node,c.offset,u.offset,u.node)}catch(e){}h&&(!n&&t.state.focused?(e.collapse(c.node,c.offset),h.collapsed||(e.removeAllRanges(),e.addRange(h))):(e.removeAllRanges(),e.addRange(h)),p&&null==e.anchorNode?e.addRange(p):n&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},Ka.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},Ka.prototype.showMultipleSelections=function(e){T(this.cm.display.cursorDiv,e.cursors),T(this.cm.display.selectionDiv,e.selection)},Ka.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Ka.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return I(this.div,t)},Ka.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&R(this.div.ownerDocument)==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ka.prototype.blur=function(){this.div.blur()},Ka.prototype.getField=function(){return this.div},Ka.prototype.supportsTouch=function(){return!0},Ka.prototype.receivedFocus=function(){var e=this,t=this;this.selectionInEditor()?setTimeout(function(){return e.pollSelection()},20):Qr(this.cm,function(){return t.cm.curOp.selectionChanged=!0}),this.polling.set(this.cm.options.pollInterval,function e(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,e))})},Ka.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Ka.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(v&&u&&this.cm.display.gutterSpecs.length&&function(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=Ua(t,e.anchorNode,e.anchorOffset),r=Ua(t,e.focusNode,e.focusOffset);n&&r&&Qr(t,function(){Qi(t.doc,Si(n,r),$),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)})}}},Ka.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t,n,r=this.cm,i=r.display,o=r.doc.sel.primary(),a=o.from(),s=o.to();if(0==a.ch&&a.line>r.firstLine()&&(a=nt(a.line-1,Ge(r.doc,a.line-1).length)),s.ch==Ge(r.doc,s.line).text.length&&s.line<r.lastLine()&&(s=nt(s.line+1,0)),a.line<i.viewFrom||s.line>i.viewTo-1)return!1;a.line==i.viewFrom||0==(e=ur(r,a.line))?(t=Je(i.view[0].line),n=i.view[0].node):(t=Je(i.view[e].line),n=i.view[e-1].node.nextSibling);var l,c,u=ur(r,s.line);if(u==i.view.length-1?(l=i.viewTo-1,c=i.lineDiv.lastChild):(l=Je(i.view[u+1].line)-1,c=i.view[u+1].node.previousSibling),!n)return!1;for(var d=r.doc.splitLines(function(e,t,n,r,i){var o="",a=!1,s=e.doc.lineSeparator(),l=!1;function c(){a&&(o+=s,l&&(o+=s),a=l=!1)}function u(e){e&&(c(),o+=e)}function d(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void u(n);var o,f=t.getAttribute("cm-marker");if(f){var h=e.findMarks(nt(r,0),nt(i+1,0),function(e){return function(t){return t.id==e}}(+f));return void(h.length&&(o=h[0].find(0))&&u(Ze(e.doc,o.from,o.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var p=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;p&&c();for(var m=0;m<t.childNodes.length;m++)d(t.childNodes[m]);/^(pre|p)$/i.test(t.nodeName)&&(l=!0),p&&(a=!0)}else 3==t.nodeType&&u(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;d(t),t!=n;)t=t.nextSibling,l=!1;return o}(r,n,c,t,l)),f=Ze(r.doc,nt(t,0),nt(l,Ge(r.doc,l).text.length));d.length>1&&f.length>1;)if(J(d)==J(f))d.pop(),f.pop(),l--;else{if(d[0]!=f[0])break;d.shift(),f.shift(),t++}for(var h=0,p=0,m=d[0],y=f[0],v=Math.min(m.length,y.length);h<v&&m.charCodeAt(h)==y.charCodeAt(h);)++h;for(var g=J(d),b=J(f),_=Math.min(g.length-(1==d.length?h:0),b.length-(1==f.length?h:0));p<_&&g.charCodeAt(g.length-p-1)==b.charCodeAt(b.length-p-1);)++p;if(1==d.length&&1==f.length&&t==a.line)for(;h&&h>a.ch&&g.charCodeAt(g.length-p-1)==b.charCodeAt(b.length-p-1);)h--,p++;d[d.length-1]=g.slice(0,g.length-p).replace(/^\u200b+/,""),d[0]=d[0].slice(h).replace(/\u200b+$/,"");var k=nt(t,h),w=nt(l,f.length?J(f).length-p:0);return d.length>1||d[0]||rt(k,w)?(mo(r.doc,d,k,w,"+input"),!0):void 0},Ka.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ka.prototype.reset=function(){this.forceCompositionEnd()},Ka.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ka.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()},80))},Ka.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Qr(this.cm,function(){return dr(e.cm)})},Ka.prototype.setUneditable=function(e){e.contentEditable="false"},Ka.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||ei(this.cm,Ia)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Ka.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Ka.prototype.onContextMenu=function(){},Ka.prototype.resetPosition=function(){},Ka.prototype.needsContentAttribute=!0;var Wa=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new z,this.hasSelection=!1,this.composing=null,this.resetting=!1};Wa.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!be(r,e)){if(r.somethingSelected())Da({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=Pa(r);Da({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,$):(n.prevInput="",i.value=t.text.join("\n"),L(i))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),y&&(i.style.width="0px"),me(i,"input",function(){a&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()}),me(i,"paste",function(e){be(r,e)||Ra(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())}),me(i,"cut",o),me(i,"copy",o),me(e.scroller,"paste",function(t){if(!Cn(e,t)&&!be(r,t)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,i.dispatchEvent(o)}}),me(e.lineSpace,"selectstart",function(t){Cn(e,t)||xe(t)}),me(i,"compositionstart",function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}}),me(i,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},Wa.prototype.createField=function(e){this.wrapper=Ba(),this.textarea=this.wrapper.firstChild;var t=this.cm.options;La(this.textarea,t.spellcheck,t.autocorrect,t.autocapitalize)},Wa.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Wa.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=vr(e);if(e.options.moveInputWithCursor){var i=Zn(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},Wa.prototype.showSelection=function(e){var t=this.cm.display;T(t.cursorDiv,e.cursors),T(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Wa.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&L(this.textarea),a&&s>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null));this.resetting=!1}},Wa.prototype.getField=function(){return this.textarea},Wa.prototype.supportsTouch=function(){return!1},Wa.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!g||R(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch(e){}},Wa.prototype.blur=function(){this.textarea.blur()},Wa.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Wa.prototype.receivedFocus=function(){this.slowPoll()},Wa.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Wa.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0,t.polling.set(20,function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))})},Wa.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||Pe(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===i||b&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var l=0,c=Math.min(r.length,i.length);l<c&&r.charCodeAt(l)==i.charCodeAt(l);)++l;return Qr(t,function(){Ia(t,i.slice(l),r.length-l,null,e.composing?"*compose":null),i.length>1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Wa.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Wa.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},Wa.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=cr(n,e),c=r.scroller.scrollTop;if(o&&!f){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&ei(n,Qi)(n.doc,Si(o),$);var u,d=i.style.cssText,h=t.wrapper.style.cssText,p=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-p.top-5)+"px; left: "+(e.clientX-p.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(u=i.ownerDocument.defaultView.scrollY),r.input.focus(),l&&i.ownerDocument.defaultView.scrollTo(null,u),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=v,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&s>=9&&y(),C){Ae(e);var m=function(){ve(window,"mouseup",m),setTimeout(v,20)};me(window,"mouseup",m)}else setTimeout(v,50)}function y(){if(null!=i.selectionStart){var e=n.somethingSelected(),o="​"+(e?i.value:"");i.value="⇚",i.value=o,t.prevInput=e?"":"​",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function v(){if(t.contextMenuPending==v&&(t.contextMenuPending=!1,t.wrapper.style.cssText=h,i.style.cssText=d,a&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=c),null!=i.selectionStart)){(!a||a&&s<9)&&y();var e=0,o=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==t.prevInput?ei(n,so)(n):e++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},Wa.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},Wa.prototype.setUneditable=function(){},Wa.prototype.needsContentAttribute=!1,function(e){var t=e.optionHandlers;function n(n,r,i,o){e.defaults[n]=r,i&&(t[n]=o?function(e,t,n){n!=wa&&i(e,t,n)}:i)}e.defineOption=n,e.Init=wa,n("value","",function(e,t){return e.setValue(t)},!0),n("mode",null,function(e,t){e.doc.modeOption=t,Ei(e)},!0),n("indentUnit",2,Ei,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,function(e){Di(e),zn(e),dr(e)},!0),n("lineSeparator",null,function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter(function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(nt(r,o))}r++});for(var i=n.length-1;i>=0;i--)mo(e.doc,t,n[i],nt(n[i].line,n[i].ch+t.length))}}),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=wa&&e.refresh()}),n("specialCharPlaceholder",en,function(e){return e.refresh()},!0),n("electricChars",!0),n("inputStyle",g?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),n("spellcheck",!1,function(e,t){return e.getInputField().spellcheck=t},!0),n("autocorrect",!1,function(e,t){return e.getInputField().autocorrect=t},!0),n("autocapitalize",!1,function(e,t){return e.getInputField().autocapitalize=t},!0),n("rtlMoveVisually",!k),n("wholeLineUpdateBefore",!0),n("theme","default",function(e){ka(e),yi(e)},!0),n("keyMap","default",function(e,t,n){var r=Yo(t),i=n!=wa&&Yo(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)}),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Aa,!0),n("gutters",[],function(e,t){e.display.gutterSpecs=pi(t,e.options.lineNumbers),yi(e)},!0),n("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?ar(e.display)+"px":"0",e.refresh()},!0),n("coverGutterNextToScrollbar",!1,function(e){return Vr(e)},!0),n("scrollbarStyle","native",function(e){qr(e),Vr(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),n("lineNumbers",!1,function(e,t){e.display.gutterSpecs=pi(e.options.gutters,t),yi(e)},!0),n("firstLineNumber",1,yi,!0),n("lineNumberFormatter",function(e){return e},yi,!0),n("showCursorWhenSelecting",!1,yr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,function(e,t){"nocursor"==t&&(Sr(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)}),n("screenReaderLabel",null,function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)}),n("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),n("dragDrop",!0,Sa),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,yr,!0),n("singleCursorHeightPerLine",!0,yr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,Di,!0),n("addModeClass",!1,Di,!0),n("pollInterval",100),n("undoDepth",200,function(e,t){return e.doc.history.undoDepth=t}),n("historyEventDelay",1250),n("viewportMargin",10,function(e){return e.refresh()},!0),n("maxHighlightLength",1e4,Di,!0),n("moveInputWithCursor",!0,function(e,t){t||e.display.input.resetPosition()}),n("tabindex",null,function(e,t){return e.display.input.getField().tabIndex=t||""}),n("autofocus",null),n("direction","ltr",function(e,t){return e.doc.setDirection(t)},!0),n("phrases",null)}(Oa),function(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){N(this).focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,i=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&ei(this,t[e])(this,n,i),ge(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Yo(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:ti(function(t,n){var r=t.token?t:e.getMode(this.options,t);if(r.startState)throw new Error("Overlays may not be stateful.");!function(e,t,n){for(var r=0,i=n(t);r<e.length&&n(e[r])<=i;)r++;e.splice(r,0,t)}(this.state.overlays,{mode:r,modeSpec:t,opaque:n&&n.opaque,priority:n&&n.priority||0},function(e){return e.priority}),this.state.modeGen++,dr(this)}),removeOverlay:ti(function(e){for(var t=this.state.overlays,n=0;n<t.length;++n){var r=t[n].modeSpec;if(r==e||"string"==typeof e&&r.name==e)return t.splice(n,1),this.state.modeGen++,void dr(this)}}),indentLine:ti(function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),et(this.doc,e)&&Ta(this,e,t,n)}),indentSelection:ti(function(e){for(var t=this.doc.sel.ranges,n=-1,r=0;r<t.length;r++){var i=t[r];if(i.empty())i.head.line>n&&(Ta(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&Dr(this));else{var o=i.from(),a=i.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l<n;++l)Ta(this,l,e);var c=this.doc.sel.ranges;0==o.ch&&t.length==c.length&&c[r].from().ch>0&&Yi(this.doc,r,new xi(o,c[r].to()),$)}}}),getTokenAt:function(e,t){return _t(this,e,t)},getLineTokens:function(e,t){return _t(this,nt(e),t,!0)},getTokenTypeAt:function(e){e=ct(this.doc,e);var t,n=pt(this,Ge(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]<o)){t=n[2*a+2];break}r=a+1}}var s=t?t.indexOf("overlay "):-1;return s<0?t:0==s?null:t.slice(0,s-1)},getModeAt:function(t){var n=this.doc.mode;return n.innerMode?e.innerMode(n,this.getTokenAt(t).state).mode:n},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var r=[];if(!n.hasOwnProperty(t))return r;var i=n[t],o=this.getModeAt(e);if("string"==typeof o[t])i[o[t]]&&r.push(i[o[t]]);else if(o[t])for(var a=0;a<o[t].length;a++){var s=i[o[t][a]];s&&r.push(s)}else o.helperType&&i[o.helperType]?r.push(i[o.helperType]):i[o.name]&&r.push(i[o.name]);for(var l=0;l<i._global.length;l++){var c=i._global[l];c.pred(o,this)&&-1==U(r,c.val)&&r.push(c.val)}return r},getStateAfter:function(e,t){var n=this.doc;return mt(this,(e=lt(n,null==e?n.first+n.size-1:e))+1,t).state},cursorCoords:function(e,t){var n=this.doc.sel.primary();return Zn(this,null==e?n.head:"object"==typeof e?ct(this.doc,e):e?n.from():n.to(),t||"page")},charCoords:function(e,t){return Gn(this,ct(this.doc,e),t||"page")},coordsChar:function(e,t){return Jn(this,(e=Hn(this,e,t||"page")).left,e.top)},lineAtHeight:function(e,t){return e=Hn(this,{top:e,left:0},t||"page").top,Qe(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,n){var r,i=!1;if("number"==typeof e){var o=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>o&&(e=o,i=!0),r=Ge(this.doc,e)}else r=e;return $n(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-Wt(r):0)},defaultTextHeight:function(){return rr(this.display)},defaultCharWidth:function(){return ir(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o=this.display,a=(e=Zn(this,ct(this.doc,e))).bottom,s=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),o.sizer.appendChild(t),"over"==r)a=e.top;else if("above"==r||"near"==r){var l=Math.max(o.wrapper.clientHeight,this.doc.height),c=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>l)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=l&&(a=e.bottom),s+t.offsetWidth>c&&(s=c-t.offsetWidth)}t.style.top=a+"px",t.style.left=t.style.right="","right"==i?(s=o.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?s=0:"middle"==i&&(s=(o.sizer.clientWidth-t.offsetWidth)/2),t.style.left=s+"px"),n&&function(e,t){var n=Tr(e,t);null!=n.scrollTop&&Pr(e,n.scrollTop),null!=n.scrollLeft&&Br(e,n.scrollLeft)}(this,{left:s,top:a,right:s+t.offsetWidth,bottom:a+t.offsetHeight})},triggerOnKeyDown:ti(ua),triggerOnKeyPress:ti(fa),triggerOnKeyUp:da,triggerOnMouseDown:ti(ya),execCommand:function(e){if(ta.hasOwnProperty(e))return ta[e].call(null,this)},triggerElectric:ti(function(e){Ma(this,e)}),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=ct(this.doc,e),a=0;a<t&&!(o=Na(this.doc,o,i,n,r)).hitSide;++a);return o},moveH:ti(function(e,t){var n=this;this.extendSelectionsBy(function(r){return n.display.shift||n.doc.extend||r.empty()?Na(n.doc,r.head,e,t,n.options.rtlMoveVisually):e<0?r.from():r.to()},G)}),deleteH:ti(function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):Xo(this,function(n){var i=Na(r,n.head,e,t,!1);return e<0?{from:i,to:n.head}:{from:n.head,to:i}})}),findPosV:function(e,t,n,r){var i=1,o=r;t<0&&(i=-1,t=-t);for(var a=ct(this.doc,e),s=0;s<t;++s){var l=Zn(this,a,"div");if(null==o?o=l.left:l.left=o,(a=Fa(this,l,i,n)).hitSide)break}return a},moveV:ti(function(e,t){var n=this,r=this.doc,i=[],o=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy(function(a){if(o)return e<0?a.from():a.to();var s=Zn(n,a.head,"div");null!=a.goalColumn&&(s.left=a.goalColumn),i.push(s.left);var l=Fa(n,s,e,t);return"page"==t&&a==r.sel.primary()&&Er(n,Gn(n,l,"div").top-s.top),l},G),i.length)for(var a=0;a<r.sel.ranges.length;a++)r.sel.ranges[a].goalColumn=i[a]}),findWordAt:function(e){var t=Ge(this.doc,e.line).text,n=e.ch,r=e.ch;if(t){var i=this.getHelper(e,"wordChars");"before"!=e.sticky&&r!=t.length||!n?++r:--n;for(var o=t.charAt(n),a=ie(o,i)?function(e){return ie(e,i)}:/\s/.test(o)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!ie(e)};n>0&&a(t.charAt(n-1));)--n;for(;r<t.length&&a(t.charAt(r));)++r}return new xi(nt(e.line,n),nt(e.line,r))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?M(this.display.cursorDiv,"CodeMirror-overwrite"):O(this.display.cursorDiv,"CodeMirror-overwrite"),ge(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==R(B(this))},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:ti(function(e,t){Ir(this,e,t)}),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-jn(this)-this.display.barHeight,width:e.scrollWidth-jn(this)-this.display.barWidth,clientHeight:En(this),clientWidth:Tn(this)}},scrollIntoView:ti(function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:nt(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?function(e,t){Rr(e),e.curOp.scrollToPos=t}(this,e):Mr(this,e.from,e.to,e.margin)}),setSize:ti(function(e,t){var n=this,r=function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e};null!=e&&(this.display.wrapper.style.width=r(e)),null!=t&&(this.display.wrapper.style.height=r(t)),this.options.lineWrapping&&Vn(this);var i=this.display.viewFrom;this.doc.iter(i,this.display.viewTo,function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){fr(n,i,"widget");break}++i}),this.curOp.forceUpdate=!0,ge(this,"refresh",this)}),operation:function(e){return Qr(this,e)},startOperation:function(){return $r(this)},endOperation:function(){return Hr(this)},refresh:ti(function(){var e=this.display.cachedTextHeight;dr(this),this.curOp.forceUpdate=!0,zn(this),Ir(this,this.doc.scrollLeft,this.doc.scrollTop),ui(this.display),(null==e||Math.abs(e-rr(this.display))>.5||this.options.lineWrapping)&&lr(this),ge(this,"refresh",this)}),swapDoc:ti(function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),Pi(this,e),zn(this),this.display.input.reset(),Ir(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,un(this,"swapDoc",this,t),t}),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},we(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}(Oa);var $a="iter insert remove copy getEditor constructor".split(" ");for(var Ha in Do.prototype)Do.prototype.hasOwnProperty(Ha)&&U($a,Ha)<0&&(Oa.prototype[Ha]=function(e){return function(){return e.apply(this.doc,arguments)}}(Do.prototype[Ha]));return we(Do),Oa.inputStyles={textarea:Wa,contenteditable:Ka},Oa.defineMode=function(e){Oa.defaults.mode||"null"==e||(Oa.defaults.mode=e),function(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Ne[e]=t}.apply(this,arguments)},Oa.defineMIME=function(e,t){Fe[e]=t},Oa.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Oa.defineMIME("text/plain","null"),Oa.defineExtension=function(e,t){Oa.prototype[e]=t},Oa.defineDocExtension=function(e,t){Do.prototype[e]=t},Oa.fromTextArea=function(e,t){if((t=t?K(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=R(e.ownerDocument);t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=s.getValue()}var i;if(e.form&&(me(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch(e){}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(ve(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var s=Oa(function(t){return e.parentNode.insertBefore(t,e.nextSibling)},t);return s},function(e){e.off=ve,e.on=me,e.wheelEventPixels=_i,e.Doc=Do,e.splitLines=Me,e.countColumn=V,e.findColumn=Z,e.isWordChar=re,e.Pass=W,e.signal=ge,e.Line=Gt,e.changeEnd=Ai,e.scrollbarModel=Ur,e.Pos=nt,e.cmpPos=rt,e.modes=Ne,e.mimeModes=Fe,e.resolveMode=Ke,e.getMode=Ve,e.modeExtensions=ze,e.extendMode=Ue,e.copyState=qe,e.startState=$e,e.innerMode=We,e.commands=ta,e.keyMap=Uo,e.keyName=Zo,e.isModifierKey=Ho,e.lookupKey=$o,e.normalizeKeyMap=Wo,e.StringStream=He,e.SharedTextMarker=Oo,e.TextMarker=So,e.LineWidget=wo,e.e_preventDefault=xe,e.e_stopPropagation=Ce,e.e_stop=Ae,e.addClass=M,e.contains=I,e.rmClass=O,e.keyNames=Fo}(Oa),Oa.version="5.65.11",Oa})},function(e,t,n){var r=n(5),i=n(4),o=n(23),a=n(14),s=n(16),l=function(e,t,n){var c,u,d,f=e&l.F,h=e&l.G,p=e&l.S,m=e&l.P,y=e&l.B,v=e&l.W,g=h?i:i[t]||(i[t]={}),b=g.prototype,_=h?r:p?r[t]:(r[t]||{}).prototype;for(c in h&&(n=t),n)(u=!f&&_&&void 0!==_[c])&&s(g,c)||(d=u?_[c]:n[c],g[c]=h&&"function"!=typeof _[c]?n[c]:y&&u?o(d,r):v&&_[c]==d?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.prototype=e.prototype,t}(d):m&&"function"==typeof d?o(Function.call,d):d,m&&((g.virtual||(g.virtual={}))[c]=d,e&l.R&&b&&!b[c]&&a(b,c,d)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t,n){e.exports=!n(20)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(11),i=n(98),o=n(48),a=Object.defineProperty;t.f=n(9)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(15);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";t.__esModule=!0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(238));t.default=function(e,t,n){return t in e?(0,r.default)(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){var r=n(10),i=n(24);e.exports=n(9)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(100),i=n(49);e.exports=function(e){return r(i(e))}},function(e,t,n){"use strict";var r=n(41),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=d;var o=Object.create(n(32));o.inherits=n(22);var a=n(137),s=n(70);o.inherits(d,a);for(var l=i(s.prototype),c=0;c<l.length;c++){var u=l[c];d.prototype[u]||(d.prototype[u]=s.prototype[u])}function d(e){if(!(this instanceof d))return new d(e);a.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",f)}function f(){this.allowHalfOpen||this._writableState.ended||r.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(d.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(d.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),d.prototype._destroy=function(e,t){this.push(null),this.end(),r.nextTick(t,e)}},function(e,t,n){e.exports={default:n(212),__esModule:!0}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(99),i=n(54);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},function(e,t,n){var r=n(34);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)}}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=!0},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var r=n(49);e.exports=function(e){return Object(r(e))}},function(e,t){e.exports={}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){var r=n(257),i=n.n(r),o=n(260),a=n.n(o),s=n(1),l=n.n(s),c=n(66),u=n.n(c),d=n(136),f=n.n(d),h=n(277),p=n.n(h),m=n(278),y=n(279);t.default={props:{groupKey:{type:String},urlModule:{type:Object,default:function(){return{module:"file",name:"ossToken"}}},ossType:{type:String,default:"multipartUpload"}},data:function(){return{percent:0}},created:function(){},computed:{computedGroupKey:function(){return this.propsObj.groupKey||this.groupKey},computedUrlModule:function(){return this.propsObj.urlModule||this.urlModule},computedOssType:function(){return this.propsObj.ossType||this.ossType},archiveKey:function(){return this.propsObj._archiveKey||[]},percentColor:function(){return 100===this.percent?"#5cb85c":"#6090ed"}},methods:{handlePost:function(e,t){var n=this;this.$https({url:this.computedUrlModule,params:{token:this.$route.query&&this.$route.query.token},callback:function(r){n.inputType="file","ali-oss"===r.ossType?n[n.computedOssType](e,r,t):"local"===r.ossType?n.localUpload(e,r,t):"minio"===r.ossType?n.minioUpload(e,r,t):console.log("请开发这种类型‘"+r.ossType+"’的上传模式")}})},localUpload:function(e,t,n){var r=this,i={groupKey:this.computedGroupKey,archiveKey:this.archiveKey[this.archiveKey.length-1]},o=""+t.ossHost+t.uploadPath,a=new FormData;a.append("file_stream",e),f.a.post(o,a,{headers:{filetoken:t.filetoken,filebody:u()(i)},onUploadProgress:function(e){r.inProgress(Number((e.loaded/e.total*100).toFixed(0)))}}).then(function(t){r.successCb&&r.successCb(t,t.data,e),n&&n(t.data)}).catch(function(t){r.handleError&&r.handleError(t,{},e),n&&n(t)})},multipartUpload:function(e,t,n){var r=this,i=e.name.substring(e.name.lastIndexOf(".")+1).toLowerCase(),o=this.randomTimeStampFn()+"."+i,a="";if(!e.type)switch(i){case"xls":case"xlsx":a="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";break;case"doc":case"docx":a="application/msword";break;case"ppt":case"pptx":a="application/vnd.ms-powerpoint";break;default:a=""}var s={name:e.name,mimetype:e.type||a,size:e.size,path:o,bucket:t.ossConfig.bucket,filetoken:t.filetoken,groupKey:this.computedGroupKey,archiveKey:this.archiveKey[this.archiveKey.length-1]},l={callbackUrl:t.ossHost+t.confirmPath,callbackBodyType:"application/json",callbackBody:this.transferCallBody(s)};new p.a(t.ossConfig).multipartUpload(o,e,{progress:function(t){r.inProgress(Number((100*t).toFixed(0))),r.handleProgress&&r.handleProgress(t,e)},headers:{"x-oss-callback":this.base64Encode(u()(l)),"Content-Disposition":"pdf"===i?"inline;filename="+encodeURI(e.name):"attachment;filename="+encodeURI(e.name)}}).then(function(t){r.successCb&&r.successCb(t,t.data,e),n&&n(t.data)}).catch(function(t,i){r.handleError&&r.handleError(t,i,e),n&&n(t)})},minioUpload:function(t,n,r){var i=this,o=t.name.substring(t.name.lastIndexOf(".")+1).toLowerCase(),a=this.randomTimeStampFn()+"."+o,s="";if(!t.type)switch(o){case"xls":case"xlsx":s="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";break;case"doc":case"docx":s="application/msword";break;case"ppt":case"pptx":s="application/vnd.ms-powerpoint";break;default:s=""}var c=new m.Client({endPoint:n.ossConfig.endPoint,port:n.ossConfig.port,useSSL:n.ossConfig.useSSL,accessKey:window.config.minioAccessKey,secretKey:window.config.minioSecretKey}),u=t.size,d=new FileReader;d.readAsDataURL(t),d.onloadend=function(r){var o=r.target.result,d=i.toBlob(o),h=new FileReader;h.readAsArrayBuffer(d);var p={"content-type":t.type||s,"content-length":u};h.onload=function(r){var o=new y.PassThrough;o.end(e.from(r.target.result)),c.putObject(n.ossConfig.bucket,a,o,u,p,function(e,r){if(null==e){var o={name:t.name,mimetype:t.type||s,size:u,path:a,bucket:n.ossConfig.bucket,filetoken:n.filetoken,groupKey:i.computedGroupKey,archiveKey:i.archiveKey[i.archiveKey.length-1]};f.a.post(n.ossHost+n.confirmPath,l()({},o)).then(function(e){i.successCb&&i.successCb(null,e,null)})}})}}},binaryMultipartUpload:function(e,t,n){var r=this,o=this.randomTimeStampFn()+".jpg",s={name:o,mimetype:"image/jpeg",size:e.length,path:o,bucket:t.ossConfig.bucket,filetoken:t.filetoken,groupKey:this.computedGroupKey,archiveKey:this.archiveKey[this.archiveKey.length-1]},c={callbackUrl:t.ossHost+t.confirmPath,callbackBodyType:"application/json",callbackBody:this.transferCallBody(s)},d=l()({},t.ossConfig,{refreshSTSToken:function(){var e=a()(i.a.mark(function e(){return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{accessKeyId:t.ossConfig.accessKeyId,accessKeySecret:t.ossConfig.accessKeySecret,stsToken:t.ossConfig.stsToken});case 1:case"end":return e.stop()}},e,r)}));return function(){return e.apply(this,arguments)}}(),refreshSTSTokenInterval:36e5});new p.a(d).multipartUpload(o,e,{progress:function(t){r.inProgress(Number((100*t).toFixed(0))),r.handleProgress&&r.handleProgress(t,e)},headers:{"x-oss-callback":this.base64Encode(u()(c)),"Content-Disposition":"attachment;filename="+encodeURI(e.name)}}).then(function(t){r.successCb&&r.successCb(t,t.data,e),n&&n(t.data)}).catch(function(t,i){r.handleError&&r.handleError(t,i,e),n&&n(t)})},inProgress:function(e){var t=this;this.percent=e,e>=100&&(this.percent=100,setTimeout(function(){t.percent=0},500))},randomTimeStampFn:function(){var e=(new Date).getTime()+""+Math.floor(1e4*Math.random());return this.$md5(e)},transferCallBody:function(e){var t={};for(var n in e)t[n]=e[n];return u()(t)},base64Encode:function(e){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n="",r=void 0,i=void 0,o=void 0,a=void 0,s=void 0,l=void 0,c=void 0,u=0;for(e=this.utf8Encode(e);u<e.length;)a=(r=e.charCodeAt(u++))>>2,s=(3&r)<<4|(i=e.charCodeAt(u++))>>4,l=(15&i)<<2|(o=e.charCodeAt(u++))>>6,c=63&o,isNaN(i)?l=c=64:isNaN(o)&&(c=64),n=n+t.charAt(a)+t.charAt(s)+t.charAt(l)+t.charAt(c);return n},utf8Encode:function(e){e=e.replace(/\r\n/g,"\n");for(var t="",n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t+=String.fromCharCode(r):r>127&&r<2048?(t+=String.fromCharCode(r>>6|192),t+=String.fromCharCode(63&r|128)):(t+=String.fromCharCode(r>>12|224),t+=String.fromCharCode(r>>6&63|128),t+=String.fromCharCode(63&r|128))}return t},toBlob:function(e){var t=e;t=e.split(",")[0].indexOf("base64")>=0?atob(e.split(",")[1]):unescape(e.split(",")[1]);for(var n=e.split(";")[0].split(":")[1],r=new Uint8Array(t.length),i=0;i<t.length;i+=1)r[i]=t.charCodeAt(i);return new Blob([r],{type:n})}}}}.call(t,n(31).Buffer)},function(e,t,n){"use strict";(function(e){
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("vue"),require("axios"),require("view-design"),require("vuedraggable"),require("vue-cropperjs"),require("minio"),require("wangeditor"),require("jshint"),require("vue-codemirror")):"function"==typeof define&&define.amd?define("bri-components",["vue","axios","view-design","vuedraggable","vue-cropperjs","minio","wangeditor","jshint","vue-codemirror"],t):"object"==typeof exports?exports["bri-components"]=t(require("vue"),require("axios"),require("view-design"),require("vuedraggable"),require("vue-cropperjs"),require("minio"),require("wangeditor"),require("jshint"),require("vue-codemirror")):e["bri-components"]=t(e.Vue,e.axios,e["view-design"],e.vuedraggable,e["vue-cropperjs"],e.minio,e.wangeditor,e.jshint,e["vue-codemirror"])}("undefined"!=typeof self?self:this,function(e,t,n,r,i,o,a,s,l){return function(e){var t=window.webpackJsonpbri_components;window.webpackJsonpbri_components=function(n,i,o){for(var a,s,l=0,c=[];l<n.length;l++)s=n[l],r[s]&&c.push(r[s][0]),r[s]=0;for(a in i)Object.prototype.hasOwnProperty.call(i,a)&&(e[a]=i[a]);for(t&&t(n,i,o);c.length;)c.shift()()};var n={},r={7:0};function i(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.e=function(e){var t=r[e];if(0===t)return new Promise(function(e){e()});if(t)return t[2];var n=new Promise(function(n,i){t=r[e]=[n,i]});t[2]=n;var o=document.getElementsByTagName("head")[0],a=document.createElement("script");a.type="text/javascript",a.charset="utf-8",a.async=!0,a.timeout=12e4,i.nc&&a.setAttribute("nonce",i.nc),a.src=i.p+""+e+".bri-components.min.js";var s=setTimeout(l,12e4);function l(){a.onerror=a.onload=null,clearTimeout(s);var t=r[e];0!==t&&(t&&t[1](new Error("Loading chunk "+e+" failed.")),r[e]=void 0)}return a.onerror=a.onload=l,o.appendChild(a),n},i.m=e,i.c=n,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/lib/",i.oe=function(e){throw console.error(e),e},i(i.s=211)}([function(e,t){e.exports=function(e,t,n,r,i,o){var a,s=e=e||{},l=typeof e.default;"object"!==l&&"function"!==l||(a=e,s=e.default);var c,u="function"==typeof s?s.options:s;if(t&&(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0),n&&(u.functional=!0),i&&(u._scopeId=i),o?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},u._ssrRegister=c):r&&(c=r),c){var d=u.functional,f=d?u.render:u.beforeCreate;d?(u._injectStyles=c,u.render=function(e,t){return c.call(t),f(e,t)}):u.beforeCreate=f?[].concat(f,c):[c]}return{esModule:a,exports:s,options:u}}},function(e,t,n){"use strict";t.__esModule=!0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(19));t.default=r.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}},function(e,t,n){"use strict";t.__esModule=!0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(230));t.default=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return(0,r.default)(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={props:{canEdit:{type:Boolean,default:!0},value:{type:Object,default:function(){return{}}},propsObj:{type:Object,default:function(){return{}}},allFormList:{type:Array,default:function(){return[]}},rowIndex:Number,parentData:{type:Array,default:function(){return[]}}},data:function(){return{}},computed:{curVal:{get:function(){return this.value[this.controlKey]},set:function(e){this.value[this.controlKey]=e}},curValList:{get:function(){return this.value[this.controlKey]||[]},set:function(e){this.$set(this.value,this.controlKey,e),this.change()}},emptyShowVal:function(){return this.canEdit?this.commonDealPropsObj._placeholder:this.isUnitShow?"--":"暂无内容"},showVal:function(){return this.$isEmptyData(this.curVal)?this.emptyShowVal:this.curVal},controlKey:function(){return this.propsObj._key},fieldKey:function(){return"_default"===this.controlKey?this.value._key:this.propsObj.__realKey__||this.controlKey},controlType:function(){return this.propsObj._type},finalCanEdit:function(){return this.canEdit&&(void 0==this.propsObj.canEdit||this.propsObj.canEdit)},multipleMode:function(){return!!this.propsObj._multiple},commonDealPropsObj:function(){return{_placeholder:this.canEdit&&"calculate"!==this.propsObj._enterType?this.propsObj._placeholder||"请"+(["date","switch","select","checkbox","file","region","regions","cascader","cascaders","coordinates","users","departments"].includes(this.propsObj._type)?"选择":"输入")+this.propsObj._name:void 0,_clearable:this.finalCanEdit&&(void 0===this.propsObj._clearable||this.propsObj._clearable)}},commonClass:function(){return{"bri-control-edit":this.canEdit&&this.finalCanEdit,"bri-control-disabled":this.canEdit&&!this.finalCanEdit,"bri-control-unit":!this.canEdit&&this.isUnitShow,"bri-control-show":!this.canEdit&&!this.isUnitShow,"dsh-ellipsis":!0,"bri-control-nodata":this.$isEmptyData(this.curVal)}},isFullRow:function(){return 24===this.propsObj._span||!this.propsObj._span},isCore:function(){return!!this.propsObj.isCore},isInTable:function(){return!!this.propsObj.isInTable},isUnitShow:function(){return!this.canEdit&&this.isInTable},isShare:function(){return!!this.propsObj.isShare},compKey:function(){return this.propsObj.compKey},appKey:function(){return this.propsObj.appKey},entityKey:function(){return this.propsObj.entityKey},modKey:function(){return this.propsObj.modKey}},methods:{change:function(){this.$emit("change",this.value[this.controlKey])},refChange:function(){this.$emit("refChange",this.value[this.controlKey])}}}},function(e,t){var n=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},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)},function(e,t,n){var r=n(53)("wks"),i=n(35),o=n(5).Symbol,a="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=r},function(e,t,n){!function(t,n){e.exports=n()}(0,function(){"use strict";var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),a=r||i||o,s=a&&(r?document.documentMode||6:+(o||i)[1]),l=!o&&/WebKit\//.test(e),c=l&&/Qt\/\d+\.\d+/.test(e),u=!o&&/Chrome\/(\d+)/.exec(e),d=u&&+u[1],f=/Opera\//.test(e),h=/Apple Computer/.test(navigator.vendor),p=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),m=/PhantomJS/.test(e),y=h&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),v=/Android/.test(e),g=y||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),b=y||/Mac/.test(t),_=/\bCrOS\b/.test(e),k=/win/i.test(t),w=f&&e.match(/Version\/(\d*\.\d*)/);w&&(w=Number(w[1])),w&&w>=15&&(f=!1,l=!0);var x=b&&(c||f&&(null==w||w<12.11)),C=n||a&&s>=9;function S(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var A,O=function(e,t){var n=e.className,r=S(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function j(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function T(e,t){return j(e).appendChild(t)}function E(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)i.appendChild(t[o]);return i}function D(e,t,n,r){var i=E(e,t,n,r);return i.setAttribute("role","presentation"),i}function I(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function R(e){var t;try{t=e.activeElement}catch(n){t=e.body||null}for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function M(e,t){var n=e.className;S(t).test(n)||(e.className+=(n?" ":"")+t)}function P(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)n[r]&&!S(n[r]).test(t)&&(t+=" "+n[r]);return t}A=document.createRange?function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(e){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};var L=function(e){e.select()};function B(e){return e.display.wrapper.ownerDocument}function N(e){return B(e).defaultView}function F(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function K(e,t,n){for(var r in t||(t={}),e)!e.hasOwnProperty(r)||!1===n&&t.hasOwnProperty(r)||(t[r]=e[r]);return t}function V(e,t,n,r,i){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(var o=r||0,a=i||0;;){var s=e.indexOf("\t",o);if(s<0||s>=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}}y?L=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(L=function(e){try{e.select()}catch(e){}});var z=function(){this.id=null,this.f=null,this.time=0,this.handler=F(this.onTimeout,this)};function U(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}z.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},z.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=n)};var q=50,W={toString:function(){return"CodeMirror.Pass"}},$={scroll:!1},H={origin:"*mouse"},G={origin:"+move"};function Z(e,t,n){for(var r=0,i=0;;){var o=e.indexOf("\t",r);-1==o&&(o=e.length);var a=o-r;if(o==e.length||i+a>=t)return r+Math.min(a,t-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=t)return r}}var Y=[""];function X(e){for(;Y.length<=e;)Y.push(J(Y)+" ");return Y[e]}function J(e){return e[e.length-1]}function Q(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function ee(){}function te(e,t){var n;return Object.create?n=Object.create(e):(ee.prototype=e,n=new ee),t&&K(t,n),n}var ne=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function re(e){return/\w/.test(e)||e>"€"&&(e.toUpperCase()!=e.toLowerCase()||ne.test(e))}function ie(e,t){return t?!!(t.source.indexOf("\\w")>-1&&re(e))||t.test(e):re(e)}function oe(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ae=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function se(e){return e.charCodeAt(0)>=768&&ae.test(e)}function le(e,t,n){for(;(n<0?t>0:t<e.length)&&se(e.charAt(t));)t+=n;return t}function ce(e,t,n){for(var r=t>n?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}var ue=null;function de(e,t,n){var r;ue=null;for(var i=0;i<e.length;++i){var o=e[i];if(o.from<t&&o.to>t)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:ue=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:ue=i)}return null!=r?r:ue}var fe=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(n){return n<=247?e.charAt(n):1424<=n&&n<=1524?"R":1536<=n&&n<=1785?t.charAt(n-1536):1774<=n&&n<=2220?"r":8192<=n&&n<=8203?"w":8204==n?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,o=/[LRr]/,a=/[Lb1n]/,s=/[1n]/;function l(e,t,n){this.level=e,this.from=t,this.to=n}return function(e,t){var c="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!r.test(e))return!1;for(var u=e.length,d=[],f=0;f<u;++f)d.push(n(e.charCodeAt(f)));for(var h=0,p=c;h<u;++h){var m=d[h];"m"==m?d[h]=p:p=m}for(var y=0,v=c;y<u;++y){var g=d[y];"1"==g&&"r"==v?d[y]="n":o.test(g)&&(v=g,"r"==g&&(d[y]="R"))}for(var b=1,_=d[0];b<u-1;++b){var k=d[b];"+"==k&&"1"==_&&"1"==d[b+1]?d[b]="1":","!=k||_!=d[b+1]||"1"!=_&&"n"!=_||(d[b]=_),_=k}for(var w=0;w<u;++w){var x=d[w];if(","==x)d[w]="N";else if("%"==x){var C=void 0;for(C=w+1;C<u&&"%"==d[C];++C);for(var S=w&&"!"==d[w-1]||C<u&&"1"==d[C]?"1":"N",A=w;A<C;++A)d[A]=S;w=C-1}}for(var O=0,j=c;O<u;++O){var T=d[O];"L"==j&&"1"==T?d[O]="L":o.test(T)&&(j=T)}for(var E=0;E<u;++E)if(i.test(d[E])){var D=void 0;for(D=E+1;D<u&&i.test(d[D]);++D);for(var I="L"==(E?d[E-1]:c),R=I==("L"==(D<u?d[D]:c))?I?"L":"R":c,M=E;M<D;++M)d[M]=R;E=D-1}for(var P,L=[],B=0;B<u;)if(a.test(d[B])){var N=B;for(++B;B<u&&a.test(d[B]);++B);L.push(new l(0,N,B))}else{var F=B,K=L.length,V="rtl"==t?1:0;for(++B;B<u&&"L"!=d[B];++B);for(var z=F;z<B;)if(s.test(d[z])){F<z&&(L.splice(K,0,new l(1,F,z)),K+=V);var U=z;for(++z;z<B&&s.test(d[z]);++z);L.splice(K,0,new l(2,U,z)),K+=V,F=z}else++z;F<B&&L.splice(K,0,new l(1,F,B))}return"ltr"==t&&(1==L[0].level&&(P=e.match(/^\s+/))&&(L[0].from=P[0].length,L.unshift(new l(0,0,P[0].length))),1==J(L).level&&(P=e.match(/\s+$/))&&(J(L).to-=P[0].length,L.push(new l(0,u-P[0].length,u)))),"rtl"==t?L.reverse():L}}();function he(e,t){var n=e.order;return null==n&&(n=e.order=fe(e.text,t)),n}var pe=[],me=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent("on"+t,n);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||pe).concat(n)}};function ye(e,t){return e._handlers&&e._handlers[t]||pe}function ve(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var r=e._handlers,i=r&&r[t];if(i){var o=U(i,n);o>-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function ge(e,t){var n=ye(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function be(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),ge(e,n||t.type,e,t),Se(t)||t.codemirrorIgnore}function _e(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)-1==U(n,t[r])&&n.push(t[r])}function ke(e,t){return ye(e,t).length>0}function we(e){e.prototype.on=function(e,t){me(this,e,t)},e.prototype.off=function(e,t){ve(this,e,t)}}function xe(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Ce(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Se(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Ae(e){xe(e),Ce(e)}function Oe(e){return e.target||e.srcElement}function je(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),b&&e.ctrlKey&&1==t&&(t=3),t}var Te,Ee,De=function(){if(a&&s<9)return!1;var e=E("div");return"draggable"in e||"dragDrop"in e}();function Ie(e){if(null==Te){var t=E("span","​");T(e,E("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Te=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&s<8))}var n=Te?E("span","​"):E("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Re(e){if(null!=Ee)return Ee;var t=T(e,document.createTextNode("AخA")),n=A(t,0,1).getBoundingClientRect(),r=A(t,1,2).getBoundingClientRect();return j(e),!(!n||n.left==n.right)&&(Ee=r.right-n.right<3)}var Me=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Pe=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Le=function(){var e=E("div");return"oncopy"in e||(e.setAttribute("oncopy","return;"),"function"==typeof e.oncopy)}(),Be=null;var Ne={},Fe={};function Ke(e){if("string"==typeof e&&Fe.hasOwnProperty(e))e=Fe[e];else if(e&&"string"==typeof e.name&&Fe.hasOwnProperty(e.name)){var t=Fe[e.name];"string"==typeof t&&(t={name:t}),(e=te(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ke("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ke("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Ve(e,t){t=Ke(t);var n=Ne[t.name];if(!n)return Ve(e,"text/plain");var r=n(e,t);if(ze.hasOwnProperty(t.name)){var i=ze[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var ze={};function Ue(e,t){K(t,ze.hasOwnProperty(e)?ze[e]:ze[e]={})}function qe(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function We(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function $e(e,t,n){return!e.startState||e.startState(t,n)}var He=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function Ge(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t<o){n=i;break}t-=o}return n.lines[t]}function Ze(e,t,n){var r=[],i=t.line;return e.iter(t.line,n.line+1,function(e){var o=e.text;i==n.line&&(o=o.slice(0,n.ch)),i==t.line&&(o=o.slice(t.ch)),r.push(o),++i}),r}function Ye(e,t,n){var r=[];return e.iter(t,n,function(e){r.push(e.text)}),r}function Xe(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function Je(e){if(null==e.parent)return null;for(var t=e.parent,n=U(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var i=0;r.children[i]!=t;++i)n+=r.children[i].chunkSize();return n+t.first}function Qe(e,t){var n=e.first;e:do{for(var r=0;r<e.children.length;++r){var i=e.children[r],o=i.height;if(t<o){e=i;continue e}t-=o,n+=i.chunkSize()}return n}while(!e.lines);for(var a=0;a<e.lines.length;++a){var s=e.lines[a].height;if(t<s)break;t-=s}return n+a}function et(e,t){return t>=e.first&&t<e.first+e.size}function tt(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function nt(e,t,n){if(void 0===n&&(n=null),!(this instanceof nt))return new nt(e,t,n);this.line=e,this.ch=t,this.sticky=n}function rt(e,t){return e.line-t.line||e.ch-t.ch}function it(e,t){return e.sticky==t.sticky&&0==rt(e,t)}function ot(e){return nt(e.line,e.ch)}function at(e,t){return rt(e,t)<0?t:e}function st(e,t){return rt(e,t)<0?e:t}function lt(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function ct(e,t){if(t.line<e.first)return nt(e.first,0);var n=e.first+e.size-1;return t.line>n?nt(n,Ge(e,n).text.length):function(e,t){var n=e.ch;return null==n||n>t?nt(e.line,t):n<0?nt(e.line,0):e}(t,Ge(e,t.line).text.length)}function ut(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=ct(e,t[r]);return n}He.prototype.eol=function(){return this.pos>=this.string.length},He.prototype.sol=function(){return this.pos==this.lineStart},He.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},He.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},He.prototype.eat=function(e){var t=this.string.charAt(this.pos);if("string"==typeof e?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},He.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},He.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},He.prototype.skipToEnd=function(){this.pos=this.string.length},He.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},He.prototype.backUp=function(e){this.pos-=e},He.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=V(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?V(this.string,this.lineStart,this.tabSize):0)},He.prototype.indentation=function(){return V(this.string,null,this.tabSize)-(this.lineStart?V(this.string,this.lineStart,this.tabSize):0)},He.prototype.match=function(e,t,n){if("string"!=typeof e){var r=this.string.slice(this.pos).match(e);return r&&r.index>0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},He.prototype.current=function(){return this.string.slice(this.start,this.pos)},He.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},He.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},He.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var dt=function(e,t){this.state=e,this.lookAhead=t},ft=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function ht(e,t,n,r){var i=[e.state.modeGen],o={};wt(e,t.text,e.doc.mode,n,function(e,t){return i.push(e,t)},o,r);for(var a=n.state,s=function(r){n.baseTokens=i;var s=e.state.overlays[r],l=1,c=0;n.state=!0,wt(e,t.text,s.mode,n,function(e,t){for(var n=l;c<e;){var r=i[l];r>e&&i.splice(l,1,e,i[l+1],r),l+=2,c=Math.min(e,r)}if(t)if(s.opaque)i.splice(n,l-n,e,"overlay "+t),l=n+2;else for(;n<l;n+=2){var o=i[n+1];i[n+1]=(o?o+" ":"")+"overlay "+t}},o),n.state=a,n.baseTokens=null,n.baseTokenPos=1},l=0;l<e.state.overlays.length;++l)s(l);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function pt(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=mt(e,Je(t)),i=t.text.length>e.options.maxHighlightLength&&qe(e.doc.mode,r.state),o=ht(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function mt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new ft(r,!0,t);var o=function(e,t,n){for(var r,i,o=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>a;--s){if(s<=o.first)return o.first;var l=Ge(o,s-1),c=l.stateAfter;if(c&&(!n||s+(c instanceof dt?c.lookAhead:0)<=o.modeFrontier))return s;var u=V(l.text,null,e.options.tabSize);(null==i||r>u)&&(i=s-1,r=u)}return i}(e,t,n),a=o>r.first&&Ge(r,o-1).stateAfter,s=a?ft.fromSaved(r,a,o):new ft(r,$e(r.mode),o);return r.iter(o,t,function(n){yt(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&r<i.viewTo?s.save():null,s.nextLine()}),n&&(r.modeFrontier=s.line),s}function yt(e,t,n,r){var i=e.doc.mode,o=new He(t,e.options.tabSize,n);for(o.start=o.pos=r||0,""==t&&vt(i,n.state);!o.eol();)gt(i,o,n.state),o.start=o.pos}function vt(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=We(e,t);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function gt(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=We(e,n).mode);var o=e.token(t,n);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}ft.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},ft.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},ft.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ft.fromSaved=function(e,t,n){return t instanceof dt?new ft(e,qe(e.mode,t.state),n,t.lookAhead):new ft(e,qe(e.mode,t),n)},ft.prototype.save=function(e){var t=!1!==e?qe(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new dt(t,this.maxLookAhead):t};var bt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function _t(e,t,n,r){var i,o,a=e.doc,s=a.mode,l=Ge(a,(t=ct(a,t)).line),c=mt(e,t.line,n),u=new He(l.text,e.options.tabSize,c);for(r&&(o=[]);(r||u.pos<t.ch)&&!u.eol();)u.start=u.pos,i=gt(s,u,c.state),r&&o.push(new bt(u,i,qe(a.mode,c.state)));return r?o:new bt(u,i,c.state)}function kt(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==t[r]?t[r]=n[2]:new RegExp("(?:^|\\s)"+n[2]+"(?:$|\\s)").test(t[r])||(t[r]+=" "+n[2])}return e}function wt(e,t,n,r,i,o,a){var s=n.flattenSpans;null==s&&(s=e.options.flattenSpans);var l,c=0,u=null,d=new He(t,e.options.tabSize,r),f=e.options.addModeClass&&[null];for(""==t&&kt(vt(n,r.state),o);!d.eol();){if(d.pos>e.options.maxHighlightLength?(s=!1,a&&yt(e,t,r,d.pos),d.pos=t.length,l=null):l=kt(gt(n,d,r.state,f),o),f){var h=f[0].name;h&&(l="m-"+(l?h+" "+l:h))}if(!s||u!=l){for(;c<d.start;)i(c=Math.min(d.start,c+5e3),u);u=l}d.start=d.pos}for(;c<d.pos;){var p=Math.min(d.pos,c+5e3);i(p,u),c=p}}var xt=!1,Ct=!1;function St(e,t,n){this.marker=e,this.from=t,this.to=n}function At(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function Ot(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function jt(e,t){if(t.full)return null;var n=et(e,t.from.line)&&Ge(e,t.from.line).markedSpans,r=et(e,t.to.line)&&Ge(e,t.to.line).markedSpans;if(!n&&!r)return null;var i=t.from.ch,o=t.to.ch,a=0==rt(t.from,t.to),s=function(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t)||o.from==t&&"bookmark"==a.type&&(!n||!o.marker.insertLeft)){var s=null==o.to||(a.inclusiveRight?o.to>=t:o.to>t);(r||(r=[])).push(new St(a,o.from,s?null:o.to))}}return r}(n,i,a),l=function(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.to||(a.inclusiveRight?o.to>=t:o.to>t)||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var s=null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t);(r||(r=[])).push(new St(a,s?null:o.from-t,null==o.to?null:o.to-t))}}return r}(r,o,a),c=1==t.text.length,u=J(t.text).length+(c?i:0);if(s)for(var d=0;d<s.length;++d){var f=s[d];if(null==f.to){var h=At(l,f.marker);h?c&&(f.to=null==h.to?null:h.to+u):f.to=i}}if(l)for(var p=0;p<l.length;++p){var m=l[p];if(null!=m.to&&(m.to+=u),null==m.from)At(s,m.marker)||(m.from=u,c&&(s||(s=[])).push(m));else m.from+=u,c&&(s||(s=[])).push(m)}s&&(s=Tt(s)),l&&l!=s&&(l=Tt(l));var y=[s];if(!c){var v,g=t.text.length-2;if(g>0&&s)for(var b=0;b<s.length;++b)null==s[b].to&&(v||(v=[])).push(new St(s[b].marker,null,null));for(var _=0;_<g;++_)y.push(v);y.push(l)}return y}function Tt(e){for(var t=0;t<e.length;++t){var n=e[t];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function Et(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function Dt(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function It(e){return e.inclusiveLeft?-1:0}function Rt(e){return e.inclusiveRight?1:0}function Mt(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var r=e.find(),i=t.find(),o=rt(r.from,i.from)||It(e)-It(t);if(o)return-o;var a=rt(r.to,i.to)||Rt(e)-Rt(t);return a||t.id-e.id}function Pt(e,t){var n,r=Ct&&e.markedSpans;if(r)for(var i=void 0,o=0;o<r.length;++o)(i=r[o]).marker.collapsed&&null==(t?i.from:i.to)&&(!n||Mt(n,i.marker)<0)&&(n=i.marker);return n}function Lt(e){return Pt(e,!0)}function Bt(e){return Pt(e,!1)}function Nt(e,t){var n,r=Ct&&e.markedSpans;if(r)for(var i=0;i<r.length;++i){var o=r[i];o.marker.collapsed&&(null==o.from||o.from<t)&&(null==o.to||o.to>t)&&(!n||Mt(n,o.marker)<0)&&(n=o.marker)}return n}function Ft(e,t,n,r,i){var o=Ge(e,t),a=Ct&&o.markedSpans;if(a)for(var s=0;s<a.length;++s){var l=a[s];if(l.marker.collapsed){var c=l.marker.find(0),u=rt(c.from,n)||It(l.marker)-It(i),d=rt(c.to,r)||Rt(l.marker)-Rt(i);if(!(u>=0&&d<=0||u<=0&&d>=0)&&(u<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?rt(c.to,n)>=0:rt(c.to,n)>0)||u>=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?rt(c.from,r)<=0:rt(c.from,r)<0)))return!0}}}function Kt(e){for(var t;t=Lt(e);)e=t.find(-1,!0).line;return e}function Vt(e,t){var n=Ge(e,t),r=Kt(n);return n==r?t:Je(r)}function zt(e,t){if(t>e.lastLine())return t;var n,r=Ge(e,t);if(!Ut(e,r))return t;for(;n=Bt(r);)r=n.find(1,!0).line;return Je(r)+1}function Ut(e,t){var n=Ct&&t.markedSpans;if(n)for(var r=void 0,i=0;i<n.length;++i)if((r=n[i]).marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&qt(e,t,r))return!0}}function qt(e,t,n){if(null==n.to){var r=n.marker.find(1,!0);return qt(e,r.line,At(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var i=void 0,o=0;o<t.markedSpans.length;++o)if((i=t.markedSpans[o]).marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(null==i.to||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&qt(e,t,i))return!0}function Wt(e){for(var t=0,n=(e=Kt(e)).parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==e)break;t+=i.height}for(var o=n.parent;o;o=(n=o).parent)for(var a=0;a<o.children.length;++a){var s=o.children[a];if(s==n)break;t+=s.height}return t}function $t(e){if(0==e.height)return 0;for(var t,n=e.text.length,r=e;t=Lt(r);){var i=t.find(0,!0);r=i.from.line,n+=i.from.ch-i.to.ch}for(r=e;t=Bt(r);){var o=t.find(0,!0);n-=r.text.length-o.from.ch,n+=(r=o.to.line).text.length-o.to.ch}return n}function Ht(e){var t=e.display,n=e.doc;t.maxLine=Ge(n,n.first),t.maxLineLength=$t(t.maxLine),t.maxLineChanged=!0,n.iter(function(e){var n=$t(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)})}var Gt=function(e,t,n){this.text=e,Dt(this,t),this.height=n?n(this):1};function Zt(e){e.parent=null,Et(e)}Gt.prototype.lineNo=function(){return Je(this)},we(Gt);var Yt={},Xt={};function Jt(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?Xt:Yt;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function Qt(e,t){var n=D("span",null,null,l?"padding-right: .1px":null),r={pre:D("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,a=void 0;r.pos=0,r.addToken=tn,Re(e.display.measure)&&(a=he(o,e.doc.direction))&&(r.addToken=nn(r.addToken,a)),r.map=[],on(o,r,pt(e,o,t!=e.display.externalMeasured&&Je(o))),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=P(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=P(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Ie(e.display.measure))),0==i?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(l){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return ge(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=P(r.pre.className,r.textClass||"")),r}function en(e){var t=E("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function tn(e,t,n,r,i,o,l){if(t){var c,u=e.splitSpaces?function(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;i<e.length;i++){var o=e.charAt(i);" "!=o||!n||i!=e.length-1&&32!=e.charCodeAt(i+1)||(o=" "),r+=o,n=" "==o}return r}(t,e.trailingSpace):t,d=e.cm.state.specialChars,f=!1;if(d.test(t)){c=document.createDocumentFragment();for(var h=0;;){d.lastIndex=h;var p=d.exec(t),m=p?p.index-h:t.length-h;if(m){var y=document.createTextNode(u.slice(h,h+m));a&&s<9?c.appendChild(E("span",[y])):c.appendChild(y),e.map.push(e.pos,e.pos+m,y),e.col+=m,e.pos+=m}if(!p)break;h+=m+1;var v=void 0;if("\t"==p[0]){var g=e.cm.options.tabSize,b=g-e.col%g;(v=c.appendChild(E("span",X(b),"cm-tab"))).setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),e.col+=b}else"\r"==p[0]||"\n"==p[0]?((v=c.appendChild(E("span","\r"==p[0]?"␍":"␤","cm-invalidchar"))).setAttribute("cm-text",p[0]),e.col+=1):((v=e.cm.options.specialCharPlaceholder(p[0])).setAttribute("cm-text",p[0]),a&&s<9?c.appendChild(E("span",[v])):c.appendChild(v),e.col+=1);e.map.push(e.pos,e.pos+1,v),e.pos++}}else e.col+=t.length,c=document.createTextNode(u),e.map.push(e.pos,e.pos+t.length,c),a&&s<9&&(f=!0),e.pos+=t.length;if(e.trailingSpace=32==u.charCodeAt(t.length-1),n||r||i||f||o||l){var _=n||"";r&&(_+=r),i&&(_+=i);var k=E("span",[c],_,o);if(l)for(var w in l)l.hasOwnProperty(w)&&"style"!=w&&"class"!=w&&k.setAttribute(w,l[w]);return e.content.appendChild(k)}e.content.appendChild(c)}}function nn(e,t){return function(n,r,i,o,a,s,l){i=i?i+" cm-force-border":"cm-force-border";for(var c=n.pos,u=c+r.length;;){for(var d=void 0,f=0;f<t.length&&!((d=t[f]).to>c&&d.from<=c);f++);if(d.to>=u)return e(n,r,i,o,a,s,l);e(n,r.slice(0,d.to-c),i,o,null,s,l),o=null,r=r.slice(d.to-c),c=d.to}}}function rn(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function on(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,s,l,c,u,d,f,h=i.length,p=0,m=1,y="",v=0;;){if(v==p){l=c=u=s="",f=null,d=null,v=1/0;for(var g=[],b=void 0,_=0;_<r.length;++_){var k=r[_],w=k.marker;if("bookmark"==w.type&&k.from==p&&w.widgetNode)g.push(w);else if(k.from<=p&&(null==k.to||k.to>p||w.collapsed&&k.to==p&&k.from==p)){if(null!=k.to&&k.to!=p&&v>k.to&&(v=k.to,c=""),w.className&&(l+=" "+w.className),w.css&&(s=(s?s+";":"")+w.css),w.startStyle&&k.from==p&&(u+=" "+w.startStyle),w.endStyle&&k.to==v&&(b||(b=[])).push(w.endStyle,k.to),w.title&&((f||(f={})).title=w.title),w.attributes)for(var x in w.attributes)(f||(f={}))[x]=w.attributes[x];w.collapsed&&(!d||Mt(d.marker,w)<0)&&(d=k)}else k.from>p&&v>k.from&&(v=k.from)}if(b)for(var C=0;C<b.length;C+=2)b[C+1]==v&&(c+=" "+b[C]);if(!d||d.from==p)for(var S=0;S<g.length;++S)rn(t,0,g[S]);if(d&&(d.from||0)==p){if(rn(t,(null==d.to?h+1:d.to)-p,d.marker,null==d.from),null==d.to)return;d.to==p&&(d=!1)}}if(p>=h)break;for(var A=Math.min(h,v);;){if(y){var O=p+y.length;if(!d){var j=O>A?y.slice(0,A-p):y;t.addToken(t,j,a?a+l:l,u,p+j.length==v?c:"",s,f)}if(O>=A){y=y.slice(A-p),p=A;break}p=O,u=""}y=i.slice(o,o=n[m++]),a=Jt(n[m++],t.cm.options)}}else for(var T=1;T<n.length;T+=2)t.addToken(t,i.slice(o,o=n[T]),Jt(n[T+1],t.cm.options))}function an(e,t,n){this.line=t,this.rest=function(e){for(var t,n;t=Bt(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}(t),this.size=this.rest?Je(J(this.rest))-n+1:1,this.node=this.text=null,this.hidden=Ut(e,t)}function sn(e,t,n){for(var r,i=[],o=t;o<n;o=r){var a=new an(e.doc,Ge(e.doc,o),o);r=o+a.size,i.push(a)}return i}var ln=null;var cn=null;function un(e,t){var n=ye(e,t);if(n.length){var r,i=Array.prototype.slice.call(arguments,2);ln?r=ln.delayedCallbacks:cn?r=cn:(r=cn=[],setTimeout(dn,0));for(var o=function(e){r.push(function(){return n[e].apply(null,i)})},a=0;a<n.length;++a)o(a)}}function dn(){var e=cn;cn=null;for(var t=0;t<e.length;++t)e[t]()}function fn(e,t,n,r){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];"text"==o?mn(e,t):"gutter"==o?vn(e,t,n,r):"class"==o?yn(e,t):"widget"==o&&gn(e,t,r)}t.changes=null}function hn(e){return e.node==e.text&&(e.node=E("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),a&&s<8&&(e.node.style.zIndex=2)),e.node}function pn(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):Qt(e,t)}function mn(e,t){var n=t.text.className,r=pn(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,yn(e,t)):n&&(t.text.className=n)}function yn(e,t){!function(e,t){var n=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),t.background)n?t.background.className=n:(t.background.parentNode.removeChild(t.background),t.background=null);else if(n){var r=hn(t);t.background=r.insertBefore(E("div",null,n),r.firstChild),e.display.input.setUneditable(t.background)}}(e,t),t.line.wrapClass?hn(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var n=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=n||""}function vn(e,t,n,r){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var i=hn(t);t.gutterBackground=E("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),i.insertBefore(t.gutterBackground,t.text)}var o=t.line.gutterMarkers;if(e.options.lineNumbers||o){var a=hn(t),s=t.gutter=E("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(s.setAttribute("aria-hidden","true"),e.display.input.setUneditable(s),a.insertBefore(s,t.text),t.line.gutterClass&&(s.className+=" "+t.line.gutterClass),!e.options.lineNumbers||o&&o["CodeMirror-linenumbers"]||(t.lineNumber=s.appendChild(E("div",tt(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),o)for(var l=0;l<e.display.gutterSpecs.length;++l){var c=e.display.gutterSpecs[l].className,u=o.hasOwnProperty(c)&&o[c];u&&s.appendChild(E("div",[u],"CodeMirror-gutter-elt","left: "+r.gutterLeft[c]+"px; width: "+r.gutterWidth[c]+"px"))}}}function gn(e,t,n){t.alignable&&(t.alignable=null);for(var r=S("CodeMirror-linewidget"),i=t.node.firstChild,o=void 0;i;i=o)o=i.nextSibling,r.test(i.className)&&t.node.removeChild(i);_n(e,t,n)}function bn(e,t,n,r){var i=pn(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),yn(e,t),vn(e,t,n,r),_n(e,t,r),t.node}function _n(e,t,n){if(kn(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)kn(e,t.rest[r],t,n,!1)}function kn(e,t,n,r,i){if(t.widgets)for(var o=hn(n),a=0,s=t.widgets;a<s.length;++a){var l=s[a],c=E("div",[l.node],"CodeMirror-linewidget"+(l.className?" "+l.className:""));l.handleMouseEvents||c.setAttribute("cm-ignore-events","true"),wn(l,c,n,r),e.display.input.setUneditable(c),i&&l.above?o.insertBefore(c,n.gutter||n.text):o.appendChild(c),un(l,"redraw")}}function wn(e,t,n,r){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var i=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(i-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function xn(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!I(document.body,e.node)){var n="position: relative;";e.coverGutter&&(n+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(n+="width: "+t.display.wrapper.clientWidth+"px;"),T(t.display.measure,E("div",[e.node],null,n))}return e.height=e.node.parentNode.offsetHeight}function Cn(e,t){for(var n=Oe(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return!0}function Sn(e){return e.lineSpace.offsetTop}function An(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function On(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=T(e.measure,E("pre","x","CodeMirror-line-like")),n=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(r.left)||isNaN(r.right)||(e.cachedPaddingH=r),r}function jn(e){return q-e.display.nativeBarWidth}function Tn(e){return e.display.scroller.clientWidth-jn(e)-e.display.barWidth}function En(e){return e.display.scroller.clientHeight-jn(e)-e.display.barHeight}function Dn(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var i=0;i<e.rest.length;i++)if(Je(e.rest[i])>n)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function In(e,t,n,r){return Pn(e,Mn(e,t),n,r)}function Rn(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[ur(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}function Mn(e,t){var n=Je(t),r=Rn(e,n);r&&!r.text?r=null:r&&r.changes&&(fn(e,r,n,or(e)),e.curOp.forceUpdate=!0),r||(r=function(e,t){var n=Je(t=Kt(t)),r=e.display.externalMeasured=new an(e.doc,t,n);r.lineN=n;var i=r.built=Qt(e,r);return r.text=i.pre,T(e.display.lineMeasure,i.pre),r}(e,t));var i=Dn(r,t,n);return{line:t,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function Pn(e,t,n,r,i){t.before&&(n=-1);var o,l=n+(r||"");return t.cache.hasOwnProperty(l)?o=t.cache[l]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(!function(e,t,n){var r=e.options.lineWrapping,i=r&&Tn(e);if(!t.measure.heights||r&&t.measure.width!=i){var o=t.measure.heights=[];if(r){t.measure.width=i;for(var a=t.text.firstChild.getClientRects(),s=0;s<a.length-1;s++){var l=a[s],c=a[s+1];Math.abs(l.bottom-c.bottom)>2&&o.push((l.bottom+c.top)/2-n.top)}}o.push(n.bottom-n.top)}}(e,t.view,t.rect),t.hasHeights=!0),(o=function(e,t,n,r){var i,o=Nn(t.map,n,r),l=o.node,c=o.start,u=o.end,d=o.collapse;if(3==l.nodeType){for(var f=0;f<4;f++){for(;c&&se(t.line.text.charAt(o.coverStart+c));)--c;for(;o.coverStart+u<o.coverEnd&&se(t.line.text.charAt(o.coverStart+u));)++u;if((i=a&&s<9&&0==c&&u==o.coverEnd-o.coverStart?l.parentNode.getBoundingClientRect():Fn(A(l,c,u).getClientRects(),r)).left||i.right||0==c)break;u=c,c-=1,d="right"}a&&s<11&&(i=function(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!function(e){if(null!=Be)return Be;var t=T(e,E("span","x")),n=t.getBoundingClientRect(),r=A(t,0,1).getBoundingClientRect();return Be=Math.abs(n.left-r.left)>1}(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}(e.display.measure,i))}else{var h;c>0&&(d=r="right"),i=e.options.lineWrapping&&(h=l.getClientRects()).length>1?h["right"==r?h.length-1:0]:l.getBoundingClientRect()}if(a&&s<9&&!c&&(!i||!i.left&&!i.right)){var p=l.parentNode.getClientRects()[0];i=p?{left:p.left,right:p.left+ir(e.display),top:p.top,bottom:p.bottom}:Bn}for(var m=i.top-t.rect.top,y=i.bottom-t.rect.top,v=(m+y)/2,g=t.view.measure.heights,b=0;b<g.length-1&&!(v<g[b]);b++);var _=b?g[b-1]:0,k=g[b],w={left:("right"==d?i.right:i.left)-t.rect.left,right:("left"==d?i.left:i.right)-t.rect.left,top:_,bottom:k};i.left||i.right||(w.bogus=!0);e.options.singleCursorHeightPerLine||(w.rtop=m,w.rbottom=y);return w}(e,t,n,r)).bogus||(t.cache[l]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}var Ln,Bn={left:0,right:0,top:0,bottom:0};function Nn(e,t,n){for(var r,i,o,a,s,l,c=0;c<e.length;c+=3)if(s=e[c],l=e[c+1],t<s?(i=0,o=1,a="left"):t<l?o=(i=t-s)+1:(c==e.length-3||t==l&&e[c+3]>t)&&(i=(o=l-s)-1,t>=l&&(a="right")),null!=i){if(r=e[c+2],s==l&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;c&&e[c-2]==e[c-3]&&e[c-1].insertLeft;)r=e[2+(c-=3)],a="left";if("right"==n&&i==l-s)for(;c<e.length-3&&e[c+3]==e[c+4]&&!e[c+5].insertLeft;)r=e[(c+=3)+2],a="right";break}return{node:r,start:i,end:o,collapse:a,coverStart:s,coverEnd:l}}function Fn(e,t){var n=Bn;if("left"==t)for(var r=0;r<e.length&&(n=e[r]).left==n.right;r++);else for(var i=e.length-1;i>=0&&(n=e[i]).left==n.right;i--);return n}function Kn(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function Vn(e){e.display.externalMeasure=null,j(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)Kn(e.display.view[t])}function zn(e){Vn(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Un(e){return u&&v?-(e.body.getBoundingClientRect().left-parseInt(getComputedStyle(e.body).marginLeft)):e.defaultView.pageXOffset||(e.documentElement||e.body).scrollLeft}function qn(e){return u&&v?-(e.body.getBoundingClientRect().top-parseInt(getComputedStyle(e.body).marginTop)):e.defaultView.pageYOffset||(e.documentElement||e.body).scrollTop}function Wn(e){var t=Kt(e).widgets,n=0;if(t)for(var r=0;r<t.length;++r)t[r].above&&(n+=xn(t[r]));return n}function $n(e,t,n,r,i){if(!i){var o=Wn(t);n.top+=o,n.bottom+=o}if("line"==r)return n;r||(r="local");var a=Wt(t);if("local"==r?a+=Sn(e.display):a-=e.display.viewOffset,"page"==r||"window"==r){var s=e.display.lineSpace.getBoundingClientRect();a+=s.top+("window"==r?0:qn(B(e)));var l=s.left+("window"==r?0:Un(B(e)));n.left+=l,n.right+=l}return n.top+=a,n.bottom+=a,n}function Hn(e,t,n){if("div"==n)return t;var r=t.left,i=t.top;if("page"==n)r-=Un(B(e)),i-=qn(B(e));else if("local"==n||!n){var o=e.display.sizer.getBoundingClientRect();r+=o.left,i+=o.top}var a=e.display.lineSpace.getBoundingClientRect();return{left:r-a.left,top:i-a.top}}function Gn(e,t,n,r,i){return r||(r=Ge(e.doc,t.line)),$n(e,r,In(e,r,t.ch,i),n)}function Zn(e,t,n,r,i,o){function a(t,a){var s=Pn(e,i,t,a?"right":"left",o);return a?s.left=s.right:s.right=s.left,$n(e,r,s,n)}r=r||Ge(e.doc,t.line),i||(i=Mn(e,r));var s=he(r,e.doc.direction),l=t.ch,c=t.sticky;if(l>=r.text.length?(l=r.text.length,c="before"):l<=0&&(l=0,c="after"),!s)return a("before"==c?l-1:l,"before"==c);function u(e,t,n){var r=1==s[t].level;return a(n?e-1:e,r!=n)}var d=de(s,l,c),f=ue,h=u(l,d,"before"==c);return null!=f&&(h.other=u(l,f,"before"!=c)),h}function Yn(e,t){var n=0;t=ct(e.doc,t),e.options.lineWrapping||(n=ir(e.display)*t.ch);var r=Ge(e.doc,t.line),i=Wt(r)+Sn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Xn(e,t,n,r,i){var o=nt(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function Jn(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return Xn(r.first,0,null,-1,-1);var i=Qe(r,n),o=r.first+r.size-1;if(i>o)return Xn(r.first+r.size-1,Ge(r,o).text.length,null,1,1);t<0&&(t=0);for(var a=Ge(r,i);;){var s=nr(e,a,i,t,n),l=Nt(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var c=l.find(1);if(c.line==i)return c;a=Ge(r,i=c.line)}}function Qn(e,t,n,r){r-=Wn(t);var i=t.text.length,o=ce(function(t){return Pn(e,n,t-1).bottom<=r},i,0);return{begin:o,end:i=ce(function(t){return Pn(e,n,t).top>r},o,i)}}function er(e,t,n,r){return n||(n=Mn(e,t)),Qn(e,t,n,$n(e,t,Pn(e,n,r),"line").top)}function tr(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function nr(e,t,n,r,i){i-=Wt(t);var o=Mn(e,t),a=Wn(t),s=0,l=t.text.length,c=!0,u=he(t,e.doc.direction);if(u){var d=(e.options.lineWrapping?function(e,t,n,r,i,o,a){var s=Qn(e,t,r,a),l=s.begin,c=s.end;/\s/.test(t.text.charAt(c-1))&&c--;for(var u=null,d=null,f=0;f<i.length;f++){var h=i[f];if(!(h.from>=c||h.to<=l)){var p=1!=h.level,m=Pn(e,r,p?Math.min(c,h.to)-1:Math.max(l,h.from)).right,y=m<o?o-m+1e9:m-o;(!u||d>y)&&(u=h,d=y)}}u||(u=i[i.length-1]);u.from<l&&(u={from:l,to:u.to,level:u.level});u.to>c&&(u={from:u.from,to:c,level:u.level});return u}:function(e,t,n,r,i,o,a){var s=ce(function(s){var l=i[s],c=1!=l.level;return tr(Zn(e,nt(n,c?l.to:l.from,c?"before":"after"),"line",t,r),o,a,!0)},0,i.length-1),l=i[s];if(s>0){var c=1!=l.level,u=Zn(e,nt(n,c?l.from:l.to,c?"after":"before"),"line",t,r);tr(u,o,a,!0)&&u.top>a&&(l=i[s-1])}return l})(e,t,n,o,u,r,i);s=(c=1!=d.level)?d.from:d.to-1,l=c?d.to:d.from-1}var f,h,p=null,m=null,y=ce(function(t){var n=Pn(e,o,t);return n.top+=a,n.bottom+=a,!!tr(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(p=t,m=n),!0)},s,l),v=!1;if(m){var g=r-m.left<m.right-r,b=g==c;y=p+(b?0:1),h=b?"after":"before",f=g?m.left:m.right}else{c||y!=l&&y!=s||y++,h=0==y?"after":y==t.text.length?"before":Pn(e,o,y-(c?1:0)).bottom+a<=i==c?"after":"before";var _=Zn(e,nt(n,y,h),"line",t,o);f=_.left,v=i<_.top?-1:i>=_.bottom?1:0}return Xn(n,y=le(t.text,y,1),h,v,r-f)}function rr(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Ln){Ln=E("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Ln.appendChild(document.createTextNode("x")),Ln.appendChild(E("br"));Ln.appendChild(document.createTextNode("x"))}T(e.measure,Ln);var n=Ln.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),j(e.measure),n||1}function ir(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=E("span","xxxxxxxxxx"),n=E("pre",[t],"CodeMirror-line-like");T(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function or(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=e.display.gutterSpecs[a].className;n[s]=o.offsetLeft+o.clientLeft+i,r[s]=o.clientWidth}return{fixedPos:ar(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function ar(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function sr(e){var t=rr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/ir(e.display)-3);return function(i){if(Ut(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a<i.widgets.length;a++)i.widgets[a].height&&(o+=i.widgets[a].height);return n?o+(Math.ceil(i.text.length/r)||1)*t:o+t}}function lr(e){var t=e.doc,n=sr(e);t.iter(function(e){var t=n(e);t!=e.height&&Xe(e,t)})}function cr(e,t,n,r){var i=e.display;if(!n&&"true"==Oe(t).getAttribute("cm-not-content"))return null;var o,a,s=i.lineSpace.getBoundingClientRect();try{o=t.clientX-s.left,a=t.clientY-s.top}catch(e){return null}var l,c=Jn(e,o,a);if(r&&c.xRel>0&&(l=Ge(e.doc,c.line).text).length==c.ch){var u=V(l,l.length,e.options.tabSize)-l.length;c=nt(c.line,Math.max(0,Math.round((o-On(e.display).left)/ir(e.display))-u))}return c}function ur(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;r<n.length;r++)if((t-=n[r].size)<0)return r}function dr(e,t,n,r){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size),r||(r=0);var i=e.display;if(r&&n<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Ct&&Vt(e.doc,t)<i.viewTo&&hr(e);else if(n<=i.viewFrom)Ct&&zt(e.doc,n+r)>i.viewFrom?hr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)hr(e);else if(t<=i.viewFrom){var o=pr(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):hr(e)}else if(n>=i.viewTo){var a=pr(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):hr(e)}else{var s=pr(e,t,t,-1),l=pr(e,n,n+r,1);s&&l?(i.view=i.view.slice(0,s.index).concat(sn(e,s.lineN,l.lineN)).concat(i.view.slice(l.index)),i.viewTo+=r):hr(e)}var c=i.externalMeasured;c&&(n<c.lineN?c.lineN+=r:t<c.lineN+c.size&&(i.externalMeasured=null))}function fr(e,t,n){e.curOp.viewChanged=!0;var r=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(r.externalMeasured=null),!(t<r.viewFrom||t>=r.viewTo)){var o=r.view[ur(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==U(a,n)&&a.push(n)}}}function hr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function pr(e,t,n,r){var i,o=ur(e,t),a=e.display.view;if(!Ct||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,l=0;l<o;l++)s+=a[l].size;if(s!=t){if(r>0){if(o==a.length-1)return null;i=s+a[o].size-t,o++}else i=s-t;t+=i,n+=i}for(;Vt(e.doc,n)!=n;){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function mr(e){for(var t=e.display.view,n=0,r=0;r<t.length;r++){var i=t[r];i.hidden||i.node&&!i.changes||++n}return n}function yr(e){e.display.input.showSelection(e.display.input.prepareSelection())}function vr(e,t){void 0===t&&(t=!0);var n=e.doc,r={},i=r.cursors=document.createDocumentFragment(),o=r.selection=document.createDocumentFragment(),a=e.options.$customCursor;a&&(t=!0);for(var s=0;s<n.sel.ranges.length;s++)if(t||s!=n.sel.primIndex){var l=n.sel.ranges[s];if(!(l.from().line>=e.display.viewTo||l.to().line<e.display.viewFrom)){var c=l.empty();if(a){var u=a(e,l);u&&gr(e,u,i)}else(c||e.options.showCursorWhenSelecting)&&gr(e,l.head,i);c||_r(e,l,o)}}return r}function gr(e,t,n){var r=Zn(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=n.appendChild(E("div"," ","CodeMirror-cursor"));if(i.style.left=r.left+"px",i.style.top=r.top+"px",i.style.height=Math.max(0,r.bottom-r.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var o=Gn(e,t,"div",null,null),a=o.right-o.left;i.style.width=(a>0?a:e.defaultCharWidth())+"px"}if(r.other){var s=n.appendChild(E("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));s.style.display="",s.style.left=r.other.left+"px",s.style.top=r.other.top+"px",s.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function br(e,t){return e.top-t.top||e.left-t.left}function _r(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),a=On(e.display),s=a.left,l=Math.max(r.sizerWidth,Tn(e)-r.sizer.offsetLeft)-a.right,c="ltr"==i.direction;function u(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),o.appendChild(E("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==n?l-e:n)+"px;\n height: "+(r-t)+"px"))}function d(t,n,r){var o,a,d=Ge(i,t),f=d.text.length;function h(n,r){return Gn(e,nt(t,n),"div",d,r)}function p(t,n,r){var i=er(e,d,null,t),o="ltr"==n==("after"==r)?"left":"right";return h("after"==r?i.begin:i.end-(/\s/.test(d.text.charAt(i.end-1))?2:1),o)[o]}var m=he(d,i.direction);return function(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;o<e.length;++o){var a=e[o];(a.from<n&&a.to>t||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}(m,n||0,null==r?f:r,function(e,t,i,d){var y="ltr"==i,v=h(e,y?"left":"right"),g=h(t-1,y?"right":"left"),b=null==n&&0==e,_=null==r&&t==f,k=0==d,w=!m||d==m.length-1;if(g.top-v.top<=3){var x=(c?_:b)&&w,C=(c?b:_)&&k?s:(y?v:g).left,S=x?l:(y?g:v).right;u(C,v.top,S-C,v.bottom)}else{var A,O,j,T;y?(A=c&&b&&k?s:v.left,O=c?l:p(e,i,"before"),j=c?s:p(t,i,"after"),T=c&&_&&w?l:g.right):(A=c?p(e,i,"before"):s,O=!c&&b&&k?l:v.right,j=!c&&_&&w?s:g.left,T=c?p(t,i,"after"):l),u(A,v.top,O-A,v.bottom),v.bottom<g.top&&u(s,v.bottom,null,g.top),u(j,g.top,T-j,g.bottom)}(!o||br(v,o)<0)&&(o=v),br(g,o)<0&&(o=g),(!a||br(v,a)<0)&&(a=v),br(g,a)<0&&(a=g)}),{start:o,end:a}}var f=t.from(),h=t.to();if(f.line==h.line)d(f.line,f.ch,h.ch);else{var p=Ge(i,f.line),m=Ge(i,h.line),y=Kt(p)==Kt(m),v=d(f.line,f.ch,y?p.text.length+1:null).end,g=d(h.line,y?0:null,h.ch).start;y&&(v.top<g.top-2?(u(v.right,v.top,null,v.bottom),u(s,g.top,g.left,g.bottom)):u(v.right,v.top,g.left-v.right,v.bottom)),v.bottom<g.top&&u(s,v.bottom,null,g.top)}n.appendChild(o)}function kr(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){e.hasFocus()||Sr(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function wr(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Cr(e))}function xr(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Sr(e))},100)}function Cr(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(ge(e,"focus",e,t),e.state.focused=!0,M(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),l&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),kr(e))}function Sr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(ge(e,"blur",e,t),e.state.focused=!1,O(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Ar(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,o=0,l=0;l<t.view.length;l++){var c=t.view[l],u=e.options.lineWrapping,d=void 0,f=0;if(!c.hidden){if(i+=c.line.height,a&&s<8){var h=c.node.offsetTop+c.node.offsetHeight;d=h-n,n=h}else{var p=c.node.getBoundingClientRect();d=p.bottom-p.top,!u&&c.text.firstChild&&(f=c.text.firstChild.getBoundingClientRect().right-p.left-1)}var m=c.line.height-d;if((m>.005||m<-.005)&&(i<r&&(o-=m),Xe(c.line,d),Or(c.line),c.rest))for(var y=0;y<c.rest.length;y++)Or(c.rest[y]);if(f>e.display.sizerWidth){var v=Math.ceil(f/ir(e.display));v>e.display.maxLineLength&&(e.display.maxLineLength=v,e.display.maxLine=c.line,e.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(t.scroller.scrollTop+=o)}function Or(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function jr(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-Sn(e));var i=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,o=Qe(t,r),a=Qe(t,i);if(n&&n.ensure){var s=n.ensure.from.line,l=n.ensure.to.line;s<o?(o=s,a=Qe(t,Wt(Ge(t,s))+e.wrapper.clientHeight)):Math.min(l,t.lastLine())>=a&&(o=Qe(t,Wt(Ge(t,l))-e.wrapper.clientHeight),a=l)}return{from:o,to:Math.max(a,o+1)}}function Tr(e,t){var n=e.display,r=rr(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=En(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+An(n),l=t.top<r,c=t.bottom>s-r;if(t.top<i)a.scrollTop=l?0:t.top;else if(t.bottom>i+o){var u=Math.min(t.top,(c?s:t.bottom)-o);u!=i&&(a.scrollTop=u)}var d=e.options.fixedGutter?0:n.gutters.offsetWidth,f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-d,h=Tn(e)-n.gutters.offsetWidth,p=t.right-t.left>h;return p&&(t.right=t.left+h),t.left<10?a.scrollLeft=0:t.left<f?a.scrollLeft=Math.max(0,t.left+d-(p?0:10)):t.right>h+f-3&&(a.scrollLeft=t.right+(p?0:10)-h),a}function Er(e,t){null!=t&&(Rr(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Dr(e){Rr(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Ir(e,t,n){null==t&&null==n||Rr(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function Rr(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,Mr(e,Yn(e,t.from),Yn(e,t.to),t.margin))}function Mr(e,t,n,r){var i=Tr(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});Ir(e,i.scrollLeft,i.scrollTop)}function Pr(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||ci(e,{top:t}),Lr(e,t,!0),n&&ci(e),ri(e,100))}function Lr(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Br(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,fi(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Nr(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+An(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+jn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var Fr=function(e,t,n){this.cm=n;var r=this.vert=E("div",[E("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=E("div",[E("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),me(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),me(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Fr.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},Fr.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Fr.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Fr.prototype.zeroWidthHack=function(){var e=b&&!p?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new z,this.disableVert=new z},Fr.prototype.enableZeroWidthBar=function(e,t,n){e.style.visibility="",t.set(1e3,function r(){var i=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.visibility="hidden":t.set(1e3,r)})},Fr.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Kr=function(){};function Vr(e,t){t||(t=Nr(e));var n=e.display.barWidth,r=e.display.barHeight;zr(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&Ar(e),zr(e,Nr(e)),n=e.display.barWidth,r=e.display.barHeight}function zr(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}Kr.prototype.update=function(){return{bottom:0,right:0}},Kr.prototype.setScrollLeft=function(){},Kr.prototype.setScrollTop=function(){},Kr.prototype.clear=function(){};var Ur={native:Fr,null:Kr};function qr(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&O(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Ur[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),me(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,n){"horizontal"==n?Br(e,t):Pr(e,t)},e),e.display.scrollbars.addClass&&M(e.display.wrapper,e.display.scrollbars.addClass)}var Wr=0;function $r(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Wr,markArrays:null},function(e){ln?ln.ops.push(e):e.ownsGroup=ln={ops:[e],delayedCallbacks:[]}}(e.curOp)}function Hr(e){var t=e.curOp;t&&function(e,t){var n=e.ownsGroup;if(n)try{!function(e){var t=e.delayedCallbacks,n=0;do{for(;n<t.length;n++)t[n].call(null);for(var r=0;r<e.ops.length;r++){var i=e.ops[r];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<t.length)}(n)}finally{ln=null,t(n)}}(t,function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;!function(e){for(var t=e.ops,n=0;n<t.length;n++)Gr(t[n]);for(var r=0;r<t.length;r++)Zr(t[r]);for(var i=0;i<t.length;i++)Yr(t[i]);for(var o=0;o<t.length;o++)Xr(t[o]);for(var a=0;a<t.length;a++)Jr(t[a])}(e)})}function Gr(e){var t=e.cm,n=t.display;!function(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=jn(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=jn(e)+"px",t.scrollbarsClipped=!0)}(t),e.updateMaxLine&&Ht(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new oi(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Zr(e){e.updatedDisplay=e.mustUpdate&&si(e.cm,e.update)}function Yr(e){var t=e.cm,n=t.display;e.updatedDisplay&&Ar(t),e.barMeasure=Nr(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=In(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+jn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Tn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Xr(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&Br(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==R(B(t));e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&Vr(t,e.barMeasure),e.updatedDisplay&&di(t,e.barMeasure),e.selectionChanged&&kr(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&wr(e.cm)}function Jr(e){var t=e.cm,n=t.display,r=t.doc;(e.updatedDisplay&&li(t,e.update),null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=e.scrollTop&&Lr(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&Br(t,e.scrollLeft,!0,!0),e.scrollToPos)&&function(e,t){if(!be(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null,o=n.wrapper.ownerDocument;if(t.top+r.top<0?i=!0:t.bottom+r.top>(o.defaultView.innerHeight||o.documentElement.clientHeight)&&(i=!1),null!=i&&!m){var a=E("div","​",null,"position: absolute;\n top: "+(t.top-n.viewOffset-Sn(e.display))+"px;\n height: "+(t.bottom-t.top+jn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(a),a.scrollIntoView(i),e.display.lineSpace.removeChild(a)}}}(t,function(e,t,n,r){var i;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==t.sticky?nt(t.line,t.ch+1,"before"):t,t=t.ch?nt(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t);for(var o=0;o<5;o++){var a=!1,s=Zn(e,t),l=n&&n!=t?Zn(e,n):s,c=Tr(e,i={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-r,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+r}),u=e.doc.scrollTop,d=e.doc.scrollLeft;if(null!=c.scrollTop&&(Pr(e,c.scrollTop),Math.abs(e.doc.scrollTop-u)>1&&(a=!0)),null!=c.scrollLeft&&(Br(e,c.scrollLeft),Math.abs(e.doc.scrollLeft-d)>1&&(a=!0)),!a)break}return i}(t,ct(r,e.scrollToPos.from),ct(r,e.scrollToPos.to),e.scrollToPos.margin));var i=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(i)for(var a=0;a<i.length;++a)i[a].lines.length||ge(i[a],"hide");if(o)for(var s=0;s<o.length;++s)o[s].lines.length&&ge(o[s],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&ge(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Qr(e,t){if(e.curOp)return t();$r(e);try{return t()}finally{Hr(e)}}function ei(e,t){return function(){if(e.curOp)return t.apply(e,arguments);$r(e);try{return t.apply(e,arguments)}finally{Hr(e)}}}function ti(e){return function(){if(this.curOp)return e.apply(this,arguments);$r(this);try{return e.apply(this,arguments)}finally{Hr(this)}}}function ni(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);$r(t);try{return e.apply(this,arguments)}finally{Hr(t)}}}function ri(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,F(ii,e))}function ii(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,r=mt(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(r.line>=e.display.viewFrom){var a=o.styles,s=o.text.length>e.options.maxHighlightLength?qe(t.mode,r.state):null,l=ht(e,o,r,!0);s&&(r.state=s),o.styles=l.styles;var c=o.styleClasses,u=l.classes;u?o.styleClasses=u:c&&(o.styleClasses=null);for(var d=!a||a.length!=o.styles.length||c!=u&&(!c||!u||c.bgClass!=u.bgClass||c.textClass!=u.textClass),f=0;!d&&f<a.length;++f)d=a[f]!=o.styles[f];d&&i.push(r.line),o.stateAfter=r.save(),r.nextLine()}else o.text.length<=e.options.maxHighlightLength&&yt(e,o.text,r),o.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return ri(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&Qr(e,function(){for(var t=0;t<i.length;t++)fr(e,i[t],"text")})}}var oi=function(e,t,n){var r=e.display;this.viewport=t,this.visible=jr(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=Tn(e),this.force=n,this.dims=or(e),this.events=[]};function ai(e){if(e.hasFocus())return null;var t=R(B(e));if(!t||!I(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=N(e).getSelection();r.anchorNode&&r.extend&&I(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}function si(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)return hr(e),!1;if(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==mr(e))return!1;hi(e)&&(hr(e),t.dims=or(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFrom<o&&o-n.viewFrom<20&&(o=Math.max(r.first,n.viewFrom)),n.viewTo>a&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),Ct&&(o=Vt(e.doc,o),a=zt(e.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;!function(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=sn(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=sn(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(ur(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat(sn(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,ur(e,n)))),r.viewTo=n}(e,o,a),n.viewOffset=Wt(Ge(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var c=mr(e);if(!s&&0==c&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var u=ai(e);return c>4&&(n.lineDiv.style.display="none"),function(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function s(t){var n=t.nextSibling;return l&&b&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var c=r.view,u=r.viewFrom,d=0;d<c.length;d++){var f=c[d];if(f.hidden);else if(f.node&&f.node.parentNode==o){for(;a!=f.node;)a=s(a);var h=i&&null!=t&&t<=u&&f.lineNumber;f.changes&&(U(f.changes,"gutter")>-1&&(h=!1),fn(e,f,u,n)),h&&(j(f.lineNumber),f.lineNumber.appendChild(document.createTextNode(tt(e.options,u)))),a=f.node.nextSibling}else{var p=bn(e,f,u,n);o.insertBefore(p,a)}u+=f.size}for(;a;)a=s(a)}(e,n.updateLineNumbers,t.dims),c>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,function(e){if(e&&e.activeElt&&e.activeElt!=R(e.activeElt.ownerDocument)&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&I(document.body,e.anchorNode)&&I(document.body,e.focusNode))){var t=e.activeElt.ownerDocument,n=t.defaultView.getSelection(),r=t.createRange();r.setEnd(e.anchorNode,e.anchorOffset),r.collapse(!1),n.removeAllRanges(),n.addRange(r),n.extend(e.focusNode,e.focusOffset)}}(u),j(n.cursorDiv),j(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,ri(e,400)),n.updateLineNumbers=null,!0}function li(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Tn(e))r&&(t.visible=jr(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+An(e.display)-En(e),n.top)}),t.visible=jr(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!si(e,t))break;Ar(e);var i=Nr(e);yr(e),Vr(e,i),di(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function ci(e,t){var n=new oi(e,t);if(si(e,n)){Ar(e),li(e,n);var r=Nr(e);yr(e),Vr(e,r),di(e,r),n.finish()}}function ui(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",un(e,"gutterChanged",e)}function di(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+jn(e)+"px"}function fi(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=ar(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;a<n.length;a++)if(!n[a].hidden){e.options.fixedGutter&&(n[a].gutter&&(n[a].gutter.style.left=o),n[a].gutterBackground&&(n[a].gutterBackground.style.left=o));var s=n[a].alignable;if(s)for(var l=0;l<s.length;l++)s[l].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=r+i+"px")}}function hi(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=tt(e.options,t.first+t.size-1),r=e.display;if(n.length!=r.lineNumChars){var i=r.measure.appendChild(E("div",[E("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=i.firstChild.offsetWidth,a=i.offsetWidth-o;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(o,r.lineGutter.offsetWidth-a)+1,r.lineNumWidth=r.lineNumInnerWidth+a,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",ui(e.display),!0}return!1}function pi(e,t){for(var n=[],r=!1,i=0;i<e.length;i++){var o=e[i],a=null;if("string"!=typeof o&&(a=o.style,o=o.className),"CodeMirror-linenumbers"==o){if(!t)continue;r=!0}n.push({className:o,style:a})}return t&&!r&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function mi(e){var t=e.gutters,n=e.gutterSpecs;j(t),e.lineGutter=null;for(var r=0;r<n.length;++r){var i=n[r],o=i.className,a=i.style,s=t.appendChild(E("div",null,"CodeMirror-gutter "+o));a&&(s.style.cssText=a),"CodeMirror-linenumbers"==o&&(e.lineGutter=s,s.style.width=(e.lineNumWidth||1)+"px")}t.style.display=n.length?"":"none",ui(e)}function yi(e){mi(e.display),dr(e),fi(e)}oi.prototype.signal=function(e,t){ke(e,t)&&this.events.push(arguments)},oi.prototype.finish=function(){for(var e=0;e<this.events.length;e++)ge.apply(null,this.events[e])};var vi=0,gi=null;function bi(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function _i(e){var t=bi(e);return t.x*=gi,t.y*=gi,t}function ki(e,t){u&&102==d&&(null==e.display.chromeScrollHack?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout(function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""},100));var r=bi(t),i=r.x,o=r.y,a=gi;0===t.deltaMode&&(i=t.deltaX,o=t.deltaY,a=1);var s=e.display,c=s.scroller,h=c.scrollWidth>c.clientWidth,p=c.scrollHeight>c.clientHeight;if(i&&h||o&&p){if(o&&b&&l)e:for(var m=t.target,y=s.view;m!=c;m=m.parentNode)for(var v=0;v<y.length;v++)if(y[v].node==m){e.display.currentWheelTarget=m;break e}if(i&&!n&&!f&&null!=a)return o&&p&&Pr(e,Math.max(0,c.scrollTop+o*a)),Br(e,Math.max(0,c.scrollLeft+i*a)),(!o||o&&p)&&xe(t),void(s.wheelStartX=null);if(o&&null!=a){var g=o*a,_=e.doc.scrollTop,k=_+s.wrapper.clientHeight;g<0?_=Math.max(0,_+g-50):k=Math.min(e.doc.height,k+g+50),ci(e,{top:_,bottom:k})}vi<20&&0!==t.deltaMode&&(null==s.wheelStartX?(s.wheelStartX=c.scrollLeft,s.wheelStartY=c.scrollTop,s.wheelDX=i,s.wheelDY=o,setTimeout(function(){if(null!=s.wheelStartX){var e=c.scrollLeft-s.wheelStartX,t=c.scrollTop-s.wheelStartY,n=t&&s.wheelDY&&t/s.wheelDY||e&&s.wheelDX&&e/s.wheelDX;s.wheelStartX=s.wheelStartY=null,n&&(gi=(gi*vi+n)/(vi+1),++vi)}},200)):(s.wheelDX+=i,s.wheelDY+=o))}}a?gi=-.53:n?gi=15:u?gi=-.7:h&&(gi=-1/3);var wi=function(e,t){this.ranges=e,this.primIndex=t};wi.prototype.primary=function(){return this.ranges[this.primIndex]},wi.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var n=this.ranges[t],r=e.ranges[t];if(!it(n.anchor,r.anchor)||!it(n.head,r.head))return!1}return!0},wi.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new xi(ot(this.ranges[t].anchor),ot(this.ranges[t].head));return new wi(e,this.primIndex)},wi.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},wi.prototype.contains=function(e,t){t||(t=e);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(rt(t,r.from())>=0&&rt(e,r.to())<=0)return n}return-1};var xi=function(e,t){this.anchor=e,this.head=t};function Ci(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort(function(e,t){return rt(e.from(),t.from())}),n=U(t,i);for(var o=1;o<t.length;o++){var a=t[o],s=t[o-1],l=rt(s.to(),a.from());if(r&&!a.empty()?l>0:l>=0){var c=st(s.from(),a.from()),u=at(s.to(),a.to()),d=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,t.splice(--o,2,new xi(d?u:c,d?c:u))}}return new wi(t,n)}function Si(e,t){return new wi([new xi(e,t||e)],0)}function Ai(e){return e.text?nt(e.from.line+e.text.length-1,J(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function Oi(e,t){if(rt(e,t.from)<0)return e;if(rt(e,t.to)<=0)return Ai(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=Ai(t).ch-t.to.ch),nt(n,r)}function ji(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new xi(Oi(i.anchor,t),Oi(i.head,t)))}return Ci(e.cm,n,e.sel.primIndex)}function Ti(e,t,n){return e.line==t.line?nt(n.line,e.ch-t.ch+n.ch):nt(n.line+(e.line-t.line),e.ch)}function Ei(e){e.doc.mode=Ve(e.options,e.doc.modeOption),Di(e)}function Di(e){e.doc.iter(function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,ri(e,100),e.state.modeGen++,e.curOp&&dr(e)}function Ii(e,t){return 0==t.from.ch&&0==t.to.ch&&""==J(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Ri(e,t,n,r){function i(e){return n?n[e]:null}function o(e,n,i){!function(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Et(e),Dt(e,n);var i=r?r(e):1;i!=e.height&&Xe(e,i)}(e,n,i,r),un(e,"change",e,t)}function a(e,t){for(var n=[],o=e;o<t;++o)n.push(new Gt(c[o],i(o),r));return n}var s=t.from,l=t.to,c=t.text,u=Ge(e,s.line),d=Ge(e,l.line),f=J(c),h=i(c.length-1),p=l.line-s.line;if(t.full)e.insert(0,a(0,c.length)),e.remove(c.length,e.size-c.length);else if(Ii(e,t)){var m=a(0,c.length-1);o(d,d.text,h),p&&e.remove(s.line,p),m.length&&e.insert(s.line,m)}else if(u==d)if(1==c.length)o(u,u.text.slice(0,s.ch)+f+u.text.slice(l.ch),h);else{var y=a(1,c.length-1);y.push(new Gt(f+u.text.slice(l.ch),h,r)),o(u,u.text.slice(0,s.ch)+c[0],i(0)),e.insert(s.line+1,y)}else if(1==c.length)o(u,u.text.slice(0,s.ch)+c[0]+d.text.slice(l.ch),i(0)),e.remove(s.line+1,p);else{o(u,u.text.slice(0,s.ch)+c[0],i(0)),o(d,f+d.text.slice(l.ch),h);var v=a(1,c.length-1);p>1&&e.remove(s.line+1,p-1),e.insert(s.line+1,v)}un(e,"change",e,t)}function Mi(e,t,n){!function e(r,i,o){if(r.linked)for(var a=0;a<r.linked.length;++a){var s=r.linked[a];if(s.doc!=i){var l=o&&s.sharedHist;n&&!l||(t(s.doc,l),e(s.doc,r,l))}}}(e,null,!0)}function Pi(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,lr(e),Ei(e),Li(e),e.options.direction=t.direction,e.options.lineWrapping||Ht(e),e.options.mode=t.modeOption,dr(e)}function Li(e){("rtl"==e.doc.direction?M:O)(e.display.lineDiv,"CodeMirror-rtl")}function Bi(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function Ni(e,t){var n={from:ot(t.from),to:Ai(t),text:Ze(e,t.from,t.to)};return Ui(e,n,t.from.line,t.to.line+1),Mi(e,function(e){return Ui(e,n,t.from.line,t.to.line+1)},!0),n}function Fi(e){for(;e.length;){if(!J(e).ranges)break;e.pop()}}function Ki(e,t,n,r){var i=e.history;i.undone.length=0;var o,a,s=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=function(e,t){return t?(Fi(e.done),J(e.done)):e.done.length&&!J(e.done).ranges?J(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),J(e.done)):void 0}(i,i.lastOp==r)))a=J(o.changes),0==rt(t.from,t.to)&&0==rt(t.from,a.to)?a.to=Ai(t):o.changes.push(Ni(e,t));else{var l=J(i.done);for(l&&l.ranges||zi(e.sel,i.done),o={changes:[Ni(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||ge(e,"historyAdded")}function Vi(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||function(e,t,n,r){var i=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}(e,o,J(i.done),t))?i.done[i.done.length-1]=t:zi(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&Fi(i.undone)}function zi(e,t){var n=J(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Ui(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o})}function qi(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t||(t=e.slice(0,n)):t&&t.push(e[n]);return t?t.length?t:null:e}function Wi(e,t){var n=function(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=[],i=0;i<t.text.length;++i)r.push(qi(n[i]));return r}(e,t),r=jt(e,t);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var o=n[i],a=r[i];if(o&&a)e:for(var s=0;s<a.length;++s){for(var l=a[s],c=0;c<o.length;++c)if(o[c].marker==l.marker)continue e;o.push(l)}else a&&(n[i]=a)}return n}function $i(e,t,n){for(var r=[],i=0;i<e.length;++i){var o=e[i];if(o.ranges)r.push(n?wi.prototype.deepCopy.call(o):o);else{var a=o.changes,s=[];r.push({changes:s});for(var l=0;l<a.length;++l){var c=a[l],u=void 0;if(s.push({from:c.from,to:c.to,text:c.text}),t)for(var d in c)(u=d.match(/^spans_(\d+)$/))&&U(t,Number(u[1]))>-1&&(J(s)[d]=c[d],delete c[d])}}}return r}function Hi(e,t,n,r){if(r){var i=e.anchor;if(n){var o=rt(t,i)<0;o!=rt(n,i)<0?(i=t,t=n):o!=rt(t,n)<0&&(t=n)}return new xi(i,t)}return new xi(n||t,t)}function Gi(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),Qi(e,new wi([Hi(e.sel.primary(),t,n,i)],0),r)}function Zi(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o<e.sel.ranges.length;o++)r[o]=Hi(e.sel.ranges[o],t[o],null,i);Qi(e,Ci(e.cm,r,e.sel.primIndex),n)}function Yi(e,t,n,r){var i=e.sel.ranges.slice(0);i[t]=n,Qi(e,Ci(e.cm,i,e.sel.primIndex),r)}function Xi(e,t,n,r){Qi(e,Si(t,n),r)}function Ji(e,t,n){var r=e.history.done,i=J(r);i&&i.ranges?(r[r.length-1]=t,eo(e,t,n)):Qi(e,t,n)}function Qi(e,t,n){eo(e,t,n),Vi(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function eo(e,t,n){(ke(e,"beforeSelectionChange")||e.cm&&ke(e.cm,"beforeSelectionChange"))&&(t=function(e,t,n){var r={ranges:t.ranges,update:function(t){this.ranges=[];for(var n=0;n<t.length;n++)this.ranges[n]=new xi(ct(e,t[n].anchor),ct(e,t[n].head))},origin:n&&n.origin};return ge(e,"beforeSelectionChange",e,r),e.cm&&ge(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?Ci(e.cm,r.ranges,r.ranges.length-1):t}(e,t,n)),to(e,ro(e,t,n&&n.bias||(rt(t.primary().head,e.sel.primary().head)<0?-1:1),!0)),n&&!1===n.scroll||!e.cm||"nocursor"==e.cm.getOption("readOnly")||Dr(e.cm)}function to(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,_e(e.cm)),un(e,"cursorActivity",e))}function no(e){to(e,ro(e,e.sel,null,!1))}function ro(e,t,n,r){for(var i,o=0;o<t.ranges.length;o++){var a=t.ranges[o],s=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],l=oo(e,a.anchor,s&&s.anchor,n,r),c=a.head==a.anchor?l:oo(e,a.head,s&&s.head,n,r);(i||l!=a.anchor||c!=a.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new xi(l,c))}return i?Ci(e.cm,i,t.primIndex):t}function io(e,t,n,r,i){var o=Ge(e,t.line);if(o.markedSpans)for(var a=0;a<o.markedSpans.length;++a){var s=o.markedSpans[a],l=s.marker,c="selectLeft"in l?!l.selectLeft:l.inclusiveLeft,u="selectRight"in l?!l.selectRight:l.inclusiveRight;if((null==s.from||(c?s.from<=t.ch:s.from<t.ch))&&(null==s.to||(u?s.to>=t.ch:s.to>t.ch))){if(i&&(ge(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var d=l.find(r<0?1:-1),f=void 0;if((r<0?u:c)&&(d=ao(e,d,-r,d&&d.line==t.line?o:null)),d&&d.line==t.line&&(f=rt(d,n))&&(r<0?f<0:f>0))return io(e,d,t,r,i)}var h=l.find(r<0?-1:1);return(r<0?c:u)&&(h=ao(e,h,r,h.line==t.line?o:null)),h?io(e,h,t,r,i):null}}return t}function oo(e,t,n,r,i){var o=r||1,a=io(e,t,n,o,i)||!i&&io(e,t,n,o,!0)||io(e,t,n,-o,i)||!i&&io(e,t,n,-o,!0);return a||(e.cantEdit=!0,nt(e.first,0))}function ao(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?ct(e,nt(t.line-1)):null:n>0&&t.ch==(r||Ge(e,t.line)).text.length?t.line<e.first+e.size-1?nt(t.line+1,0):null:new nt(t.line,t.ch+n)}function so(e){e.setSelection(nt(e.firstLine(),0),nt(e.lastLine()),$)}function lo(e,t,n){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(t,n,i,o){t&&(r.from=ct(e,t)),n&&(r.to=ct(e,n)),i&&(r.text=i),void 0!==o&&(r.origin=o)}),ge(e,"beforeChange",e,r),e.cm&&ge(e.cm,"beforeChange",e.cm,r),r.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function co(e,t,n){if(e.cm){if(!e.cm.curOp)return ei(e.cm,co)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(ke(e,"beforeChange")||e.cm&&ke(e.cm,"beforeChange"))||(t=lo(e,t,!0))){var r=xt&&!n&&function(e,t,n){var r=null;if(e.iter(t.line,n.line+1,function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;!n.readOnly||r&&-1!=U(r,n)||(r||(r=[])).push(n)}}),!r)return null;for(var i=[{from:t,to:n}],o=0;o<r.length;++o)for(var a=r[o],s=a.find(0),l=0;l<i.length;++l){var c=i[l];if(!(rt(c.to,s.from)<0||rt(c.from,s.to)>0)){var u=[l,1],d=rt(c.from,s.from),f=rt(c.to,s.to);(d<0||!a.inclusiveLeft&&!d)&&u.push({from:c.from,to:s.from}),(f>0||!a.inclusiveRight&&!f)&&u.push({from:s.to,to:c.to}),i.splice.apply(i,u),l+=u.length-3}}return i}(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)uo(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else uo(e,t)}}function uo(e,t){if(1!=t.text.length||""!=t.text[0]||0!=rt(t.from,t.to)){var n=ji(e,t);Ki(e,t,n,e.cm?e.cm.curOp.id:NaN),po(e,t,n,jt(e,t));var r=[];Mi(e,function(e,n){n||-1!=U(r,e.history)||(go(e.history,t),r.push(e.history)),po(e,t,null,jt(e,t))})}}function fo(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,o=e.history,a=e.sel,s="undo"==t?o.done:o.undone,l="undo"==t?o.undone:o.done,c=0;c<s.length&&(i=s[c],n?!i.ranges||i.equals(e.sel):i.ranges);c++);if(c!=s.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(!(i=s.pop()).ranges){if(r)return void s.push(i);break}if(zi(i,l),n&&!i.equals(e.sel))return void Qi(e,i,{clearRedo:!1});a=i}var u=[];zi(a,l),l.push({changes:u,generation:o.generation}),o.generation=i.generation||++o.maxGeneration;for(var d=ke(e,"beforeChange")||e.cm&&ke(e.cm,"beforeChange"),f=function(n){var r=i.changes[n];if(r.origin=t,d&&!lo(e,r,!1))return s.length=0,{};u.push(Ni(e,r));var o=n?ji(e,r):J(s);po(e,r,o,Wi(e,r)),!n&&e.cm&&e.cm.scrollIntoView({from:r.from,to:Ai(r)});var a=[];Mi(e,function(e,t){t||-1!=U(a,e.history)||(go(e.history,r),a.push(e.history)),po(e,r,null,Wi(e,r))})},h=i.changes.length-1;h>=0;--h){var p=f(h);if(p)return p.v}}}}function ho(e,t){if(0!=t&&(e.first+=t,e.sel=new wi(Q(e.sel.ranges,function(e){return new xi(nt(e.anchor.line+t,e.anchor.ch),nt(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){dr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)fr(e.cm,r,"gutter")}}function po(e,t,n,r){if(e.cm&&!e.cm.curOp)return ei(e.cm,po)(e,t,n,r);if(t.to.line<e.first)ho(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);ho(e,i),t={from:nt(e.first,0),to:nt(t.to.line+i,t.to.ch),text:[J(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:nt(o,Ge(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Ze(e,t.from,t.to),n||(n=ji(e,t)),e.cm?function(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,s=!1,l=o.line;e.options.lineWrapping||(l=Je(Kt(Ge(r,o.line))),r.iter(l,a.line+1,function(e){if(e==i.maxLine)return s=!0,!0}));r.sel.contains(t.from,t.to)>-1&&_e(e);Ri(r,t,n,sr(e)),e.options.lineWrapping||(r.iter(l,o.line+t.text.length,function(e){var t=$t(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)}),s&&(e.curOp.updateMaxLine=!0));(function(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var n=e.first,r=t-1;r>n;r--){var i=Ge(e,r).stateAfter;if(i&&(!(i instanceof dt)||r+i.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}})(r,o.line),ri(e,400);var c=t.text.length-(a.line-o.line)-1;t.full?dr(e):o.line!=a.line||1!=t.text.length||Ii(e.doc,t)?dr(e,o.line,a.line+1,c):fr(e,o.line,"text");var u=ke(e,"changes"),d=ke(e,"change");if(d||u){var f={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};d&&un(e,"change",e,f),u&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(f)}e.display.selForContextMenu=null}(e.cm,t,r):Ri(e,t,r),eo(e,n,$),e.cantEdit&&oo(e,nt(e.firstLine(),0))&&(e.cantEdit=!1)}}function mo(e,t,n,r,i){var o;r||(r=n),rt(r,n)<0&&(n=(o=[r,n])[0],r=o[1]),"string"==typeof t&&(t=e.splitLines(t)),co(e,{from:n,to:r,text:t,origin:i})}function yo(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function vo(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i],a=!0;if(o.ranges){o.copied||((o=e[i]=o.deepCopy()).copied=!0);for(var s=0;s<o.ranges.length;s++)yo(o.ranges[s].anchor,t,n,r),yo(o.ranges[s].head,t,n,r)}else{for(var l=0;l<o.changes.length;++l){var c=o.changes[l];if(n<c.from.line)c.from=nt(c.from.line+r,c.from.ch),c.to=nt(c.to.line+r,c.to.ch);else if(t<=c.to.line){a=!1;break}}a||(e.splice(0,i+1),i=0)}}}function go(e,t){var n=t.from.line,r=t.to.line,i=t.text.length-(r-n)-1;vo(e.done,n,r,i),vo(e.undone,n,r,i)}function bo(e,t,n,r){var i=t,o=t;return"number"==typeof t?o=Ge(e,lt(e,t)):i=Je(t),null==i?null:(r(o,i)&&e.cm&&fr(e.cm,i,n),o)}function _o(e){this.lines=e,this.parent=null;for(var t=0,n=0;n<e.length;++n)e[n].parent=this,t+=e[n].height;this.height=t}function ko(e){this.children=e;for(var t=0,n=0,r=0;r<e.length;++r){var i=e[r];t+=i.chunkSize(),n+=i.height,i.parent=this}this.size=t,this.height=n,this.parent=null}xi.prototype.from=function(){return st(this.anchor,this.head)},xi.prototype.to=function(){return at(this.anchor,this.head)},xi.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},_o.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=e,r=e+t;n<r;++n){var i=this.lines[n];this.height-=i.height,Zt(i),un(i,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;r<t.length;++r)t[r].parent=this},iterN:function(e,t,n){for(var r=e+t;e<r;++e)if(n(this.lines[e]))return!0}},ko.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var n=0;n<this.children.length;++n){var r=this.children[n],i=r.chunkSize();if(e<i){var o=Math.min(t,i-e),a=r.height;if(r.removeInner(e,o),this.height-=a-r.height,i==o&&(this.children.splice(n--,1),r.parent=null),0==(t-=o))break;e=0}else e-=i}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof _o))){var s=[];this.collapse(s),this.children=[new _o(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,n){this.size+=t.length,this.height+=n;for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<=o){if(i.insertInner(e,t,n),i.lines&&i.lines.length>50){for(var a=i.lines.length%25+25,s=a;s<i.lines.length;){var l=new _o(i.lines.slice(s,s+=25));i.height-=l.height,this.children.splice(++r,0,l),l.parent=this}i.lines=i.lines.slice(0,a),this.maybeSpill()}break}e-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=new ko(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=t.size,e.height-=t.height;var n=U(e.parent.children,e);e.parent.children.splice(n+1,0,t)}else{var r=new ko(e.children);r.parent=e,e.children=[r,t],e=r}t.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<o){var a=Math.min(t,o-e);if(i.iterN(e,a,n))return!0;if(0==(t-=a))break;e=0}else e-=o}}};var wo=function(e,t,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=e,this.node=t};function xo(e,t,n){Wt(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Er(e,n)}wo.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,n=this.line,r=Je(n);if(null!=r&&t){for(var i=0;i<t.length;++i)t[i]==this&&t.splice(i--,1);t.length||(n.widgets=null);var o=xn(this);Xe(n,Math.max(0,n.height-o)),e&&(Qr(e,function(){xo(e,n,-o),fr(e,r,"widget")}),un(e,"lineWidgetCleared",e,this,r))}},wo.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=xn(this)-t;i&&(Ut(this.doc,r)||Xe(r,r.height+i),n&&Qr(n,function(){n.curOp.forceUpdate=!0,xo(n,r,i),un(n,"lineWidgetChanged",n,e,Je(r))}))},we(wo);var Co=0,So=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++Co};function Ao(e,t,n,r,i){if(r&&r.shared)return function(e,t,n,r,i){(r=K(r)).shared=!1;var o=[Ao(e,t,n,r,i)],a=o[0],s=r.widgetNode;return Mi(e,function(e){s&&(r.widgetNode=s.cloneNode(!0)),o.push(Ao(e,ct(e,t),ct(e,n),r,i));for(var l=0;l<e.linked.length;++l)if(e.linked[l].isParent)return;a=J(o)}),new Oo(o,a)}(e,t,n,r,i);if(e.cm&&!e.cm.curOp)return ei(e.cm,Ao)(e,t,n,r,i);var o=new So(e,i),a=rt(t,n);if(r&&K(r,o,!1),a>0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=D("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Ft(e,t.line,t,n,o)||t.line!=n.line&&Ft(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ct=!0}o.addToHistory&&Ki(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,l=t.line,c=e.cm;if(e.iter(l,n.line+1,function(r){c&&o.collapsed&&!c.options.lineWrapping&&Kt(r)==c.display.maxLine&&(s=!0),o.collapsed&&l!=t.line&&Xe(r,0),function(e,t,n){var r=n&&window.WeakSet&&(n.markedSpans||(n.markedSpans=new WeakSet));r&&e.markedSpans&&r.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],r&&r.add(e.markedSpans)),t.marker.attachLine(e)}(r,new St(o,l==t.line?t.ch:null,l==n.line?n.ch:null),e.cm&&e.cm.curOp),++l}),o.collapsed&&e.iter(t.line,n.line+1,function(t){Ut(e,t)&&Xe(t,0)}),o.clearOnEnter&&me(o,"beforeCursorEnter",function(){return o.clear()}),o.readOnly&&(xt=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++Co,o.atomic=!0),c){if(s&&(c.curOp.updateMaxLine=!0),o.collapsed)dr(c,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var u=t.line;u<=n.line;u++)fr(c,u,"text");o.atomic&&no(c.doc),un(c,"markerAdded",c,o)}return o}So.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&$r(e),ke(this,"clear")){var n=this.find();n&&un(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;o<this.lines.length;++o){var a=this.lines[o],s=At(a.markedSpans,this);e&&!this.collapsed?fr(e,Je(a),"text"):e&&(null!=s.to&&(i=Je(a)),null!=s.from&&(r=Je(a))),a.markedSpans=Ot(a.markedSpans,s),null==s.from&&this.collapsed&&!Ut(this.doc,a)&&e&&Xe(a,rr(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var l=0;l<this.lines.length;++l){var c=Kt(this.lines[l]),u=$t(c);u>e.display.maxLineLength&&(e.display.maxLine=c,e.display.maxLineLength=u,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&dr(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&no(e.doc)),e&&un(e,"markerCleared",e,this,r,i),t&&Hr(e),this.parent&&this.parent.clear()}},So.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i<this.lines.length;++i){var o=this.lines[i],a=At(o.markedSpans,this);if(null!=a.from&&(n=nt(t?o:Je(o),a.from),-1==e))return n;if(null!=a.to&&(r=nt(t?o:Je(o),a.to),1==e))return r}return n&&{from:n,to:r}},So.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,r=this.doc.cm;t&&r&&Qr(r,function(){var i=t.line,o=Je(t.line),a=Rn(r,o);if(a&&(Kn(a),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!Ut(n.doc,i)&&null!=n.height){var s=n.height;n.height=null;var l=xn(n)-s;l&&Xe(i,i.height+l)}un(r,"markerChanged",r,e)})},So.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=U(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},So.prototype.detachLine=function(e){if(this.lines.splice(U(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},we(So);var Oo=function(e,t){this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=this};function jo(e){return e.findMarks(nt(e.first,0),e.clipPos(nt(e.lastLine())),function(e){return e.parent})}function To(e){for(var t=function(t){var n=e[t],r=[n.primary.doc];Mi(n.primary.doc,function(e){return r.push(e)});for(var i=0;i<n.markers.length;i++){var o=n.markers[i];-1==U(r,o.doc)&&(o.parent=null,n.markers.splice(i--,1))}},n=0;n<e.length;n++)t(n)}Oo.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();un(this,"clear")}},Oo.prototype.find=function(e,t){return this.primary.find(e,t)},we(Oo);var Eo=0,Do=function(e,t,n,r,i){if(!(this instanceof Do))return new Do(e,t,n,r,i);null==n&&(n=0),ko.call(this,[new _o([new Gt("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var o=nt(n,0);this.sel=Si(o),this.history=new Bi(null),this.id=++Eo,this.modeOption=t,this.lineSep=r,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),Ri(this,{from:o,to:o,text:e}),Qi(this,Si(o),$)};Do.prototype=te(ko.prototype,{constructor:Do,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,r=0;r<t.length;++r)n+=t[r].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=Ye(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:ni(function(e){var t=nt(this.first,0),n=this.first+this.size-1;co(this,{from:t,to:nt(n,Ge(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&Ir(this.cm,0,0),Qi(this,Si(t),$)}),replaceRange:function(e,t,n,r){mo(this,e,t=ct(this,t),n=n?ct(this,n):t,r)},getRange:function(e,t,n){var r=Ze(this,ct(this,e),ct(this,t));return!1===n?r:""===n?r.join(""):r.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(et(this,e))return Ge(this,e)},getLineNumber:function(e){return Je(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=Ge(this,e)),Kt(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return ct(this,e)},getCursor:function(e){var t=this.sel.primary();return null==e||"head"==e?t.head:"anchor"==e?t.anchor:"end"==e||"to"==e||!1===e?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:ni(function(e,t,n){Xi(this,ct(this,"number"==typeof e?nt(e,t||0):e),null,n)}),setSelection:ni(function(e,t,n){Xi(this,ct(this,e),ct(this,t||e),n)}),extendSelection:ni(function(e,t,n){Gi(this,ct(this,e),t&&ct(this,t),n)}),extendSelections:ni(function(e,t){Zi(this,ut(this,e),t)}),extendSelectionsBy:ni(function(e,t){Zi(this,ut(this,Q(this.sel.ranges,e)),t)}),setSelections:ni(function(e,t,n){if(e.length){for(var r=[],i=0;i<e.length;i++)r[i]=new xi(ct(this,e[i].anchor),ct(this,e[i].head||e[i].anchor));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),Qi(this,Ci(this.cm,r,t),n)}}),addSelection:ni(function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new xi(ct(this,e),ct(this,t||e))),Qi(this,Ci(this.cm,r,r.length-1),n)}),getSelection:function(e){for(var t,n=this.sel.ranges,r=0;r<n.length;r++){var i=Ze(this,n[r].from(),n[r].to());t=t?t.concat(i):i}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],n=this.sel.ranges,r=0;r<n.length;r++){var i=Ze(this,n[r].from(),n[r].to());!1!==e&&(i=i.join(e||this.lineSeparator())),t[r]=i}return t},replaceSelection:function(e,t,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=e;this.replaceSelections(r,t,n||"+input")},replaceSelections:ni(function(e,t,n){for(var r=[],i=this.sel,o=0;o<i.ranges.length;o++){var a=i.ranges[o];r[o]={from:a.from(),to:a.to(),text:this.splitLines(e[o]),origin:n}}for(var s=t&&"end"!=t&&function(e,t,n){for(var r=[],i=nt(e.first,0),o=i,a=0;a<t.length;a++){var s=t[a],l=Ti(s.from,i,o),c=Ti(Ai(s),i,o);if(i=s.to,o=c,"around"==n){var u=e.sel.ranges[a],d=rt(u.head,u.anchor)<0;r[a]=new xi(d?c:l,d?l:c)}else r[a]=new xi(l,l)}return new wi(r,e.sel.primIndex)}(this,r,t),l=r.length-1;l>=0;l--)co(this,r[l]);s?Ji(this,s):this.cm&&Dr(this.cm)}),undo:ni(function(){fo(this,"undo")}),redo:ni(function(){fo(this,"redo")}),undoSelection:ni(function(){fo(this,"undo",!0)}),redoSelection:ni(function(){fo(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r<e.done.length;r++)e.done[r].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){var e=this;this.history=new Bi(this.history),Mi(this,function(t){return t.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:$i(this.history.done),undone:$i(this.history.undone)}},setHistory:function(e){var t=this.history=new Bi(this.history);t.done=$i(e.done.slice(0),null,!0),t.undone=$i(e.undone.slice(0),null,!0)},setGutterMarker:ni(function(e,t,n){return bo(this,e,"gutter",function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&oe(r)&&(e.gutterMarkers=null),!0})}),clearGutter:ni(function(e){var t=this;this.iter(function(n){n.gutterMarkers&&n.gutterMarkers[e]&&bo(t,n,"gutter",function(){return n.gutterMarkers[e]=null,oe(n.gutterMarkers)&&(n.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if("number"==typeof e){if(!et(this,e))return null;if(t=e,!(e=Ge(this,e)))return null}else if(null==(t=Je(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:ni(function(e,t,n){return bo(this,e,"gutter"==t?"gutter":"class",function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[r]){if(S(n).test(e[r]))return!1;e[r]+=" "+n}else e[r]=n;return!0})}),removeLineClass:ni(function(e,t,n){return bo(this,e,"gutter"==t?"gutter":"class",function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass",i=e[r];if(!i)return!1;if(null==n)e[r]=null;else{var o=i.match(S(n));if(!o)return!1;var a=o.index+o[0].length;e[r]=i.slice(0,o.index)+(o.index&&a!=i.length?" ":"")+i.slice(a)||null}return!0})}),addLineWidget:ni(function(e,t,n){return function(e,t,n,r){var i=new wo(e,n,r),o=e.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),bo(e,t,"widget",function(t){var n=t.widgets||(t.widgets=[]);if(null==i.insertAt?n.push(i):n.splice(Math.min(n.length,Math.max(0,i.insertAt)),0,i),i.line=t,o&&!Ut(e,t)){var r=Wt(t)<e.scrollTop;Xe(t,t.height+xn(i)),r&&Er(o,i.height),o.curOp.forceUpdate=!0}return!0}),o&&un(o,"lineWidgetAdded",o,i,"number"==typeof t?t:Je(t)),i}(this,e,t,n)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return Ao(this,ct(this,e),ct(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){var n={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return Ao(this,e=ct(this,e),e,n,"bookmark")},findMarksAt:function(e){var t=[],n=Ge(this,(e=ct(this,e)).line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(null==i.from||i.from<=e.ch)&&(null==i.to||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=ct(this,e),t=ct(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,function(o){var a=o.markedSpans;if(a)for(var s=0;s<a.length;s++){var l=a[s];null!=l.to&&i==e.line&&e.ch>=l.to||null==l.from&&i!=e.line||null!=l.from&&i==t.line&&l.from>=t.ch||n&&!n(l.marker)||r.push(l.marker.parent||l.marker)}++i}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&e.push(n[r].marker)}),e},posFromIndex:function(e){var t,n=this.first,r=this.lineSeparator().length;return this.iter(function(i){var o=i.text.length+r;if(o>e)return t=e,!0;e-=o,++n}),ct(this,nt(n,t))},indexFromPos:function(e){var t=(e=ct(this,e)).ch;if(e.line<this.first||e.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,function(e){t+=e.text.length+n}),t},copy:function(e){var t=new Do(Ye(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,n=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<n&&(n=e.to);var r=new Do(Ye(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:e.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.find(),o=e.clipPos(i.from),a=e.clipPos(i.to);if(rt(o,a)){var s=Ao(e,o,a,r.primary,r.primary.type);r.markers.push(s),s.parent=r}}}(r,jo(this)),r},unlinkDoc:function(e){if(e instanceof Oa&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t){if(this.linked[t].doc==e){this.linked.splice(t,1),e.unlinkDoc(this),To(jo(this));break}}if(e.history==this.history){var n=[e.id];Mi(e,function(e){return n.push(e.id)},!0),e.history=new Bi(null),e.history.done=$i(this.history.done,n),e.history.undone=$i(this.history.undone,n)}},iterLinkedDocs:function(e){Mi(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Me(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:ni(function(e){"rtl"!=e&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(e){return e.order=null}),this.cm&&function(e){Qr(e,function(){Li(e),dr(e)})}(this.cm))})}),Do.prototype.eachLine=Do.prototype.iter;var Io=0;function Ro(e){var t=this;if(Mo(t),!be(t,e)&&!Cn(t.display,e)){xe(e),a&&(Io=+new Date);var n=cr(t,e,!0),r=e.dataTransfer.files;if(n&&!t.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,o=Array(i),s=0,l=function(){++s==i&&ei(t,function(){var e={from:n=ct(t.doc,n),to:n,text:t.doc.splitLines(o.filter(function(e){return null!=e}).join(t.doc.lineSeparator())),origin:"paste"};co(t.doc,e),Ji(t.doc,Si(ct(t.doc,n),ct(t.doc,Ai(e))))})()},c=function(e,n){if(t.options.allowDropFileTypes&&-1==U(t.options.allowDropFileTypes,e.type))l();else{var r=new FileReader;r.onerror=function(){return l()},r.onload=function(){var e=r.result;/[\x00-\x08\x0e-\x1f]{2}/.test(e)?l():(o[n]=e,l())},r.readAsText(e)}},u=0;u<r.length;u++)c(r[u],u);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-1)return t.state.draggingText(e),void setTimeout(function(){return t.display.input.focus()},20);try{var d=e.dataTransfer.getData("Text");if(d){var f;if(t.state.draggingText&&!t.state.draggingText.copy&&(f=t.listSelections()),eo(t.doc,Si(n,n)),f)for(var h=0;h<f.length;++h)mo(t.doc,"",f[h].anchor,f[h].head,"drag");t.replaceSelection(d,"around","paste"),t.display.input.focus()}}catch(e){}}}}function Mo(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Po(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),n=[],r=0;r<t.length;r++){var i=t[r].CodeMirror;i&&n.push(i)}n.length&&n[0].operation(function(){for(var t=0;t<n.length;t++)e(n[t])})}}var Lo=!1;function Bo(){Lo||(!function(){var e;me(window,"resize",function(){null==e&&(e=setTimeout(function(){e=null,Po(No)},100))}),me(window,"blur",function(){return Po(Sr)})}(),Lo=!0)}function No(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Fo={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Ko=0;Ko<10;Ko++)Fo[Ko+48]=Fo[Ko+96]=String(Ko);for(var Vo=65;Vo<=90;Vo++)Fo[Vo]=String.fromCharCode(Vo);for(var zo=1;zo<=12;zo++)Fo[zo+111]=Fo[zo+63235]="F"+zo;var Uo={};function qo(e){var t,n,r,i,o=e.split(/-(?!$)/);e=o[o.length-1];for(var a=0;a<o.length-1;a++){var s=o[a];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))t=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);r=!0}}return t&&(e="Alt-"+e),n&&(e="Ctrl-"+e),i&&(e="Cmd-"+e),r&&(e="Shift-"+e),e}function Wo(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete e[n];continue}for(var i=Q(n.split(" "),qo),o=0;o<i.length;o++){var a=void 0,s=void 0;o==i.length-1?(s=i.join(" "),a=r):(s=i.slice(0,o+1).join(" "),a="...");var l=t[s];if(l){if(l!=a)throw new Error("Inconsistent bindings for "+s)}else t[s]=a}delete e[n]}for(var c in t)e[c]=t[c];return e}function $o(e,t,n,r){var i=(t=Yo(t)).call?t.call(e,r):t[e];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&n(i))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return $o(e,t.fallthrough,n,r);for(var o=0;o<t.fallthrough.length;o++){var a=$o(e,t.fallthrough[o],n,r);if(a)return a}}}function Ho(e){var t="string"==typeof e?e:Fo[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function Go(e,t,n){var r=e;return t.altKey&&"Alt"!=r&&(e="Alt-"+e),(x?t.metaKey:t.ctrlKey)&&"Ctrl"!=r&&(e="Ctrl-"+e),(x?t.ctrlKey:t.metaKey)&&"Mod"!=r&&(e="Cmd-"+e),!n&&t.shiftKey&&"Shift"!=r&&(e="Shift-"+e),e}function Zo(e,t){if(f&&34==e.keyCode&&e.char)return!1;var n=Fo[e.keyCode];return null!=n&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(n=e.code),Go(n,e,t))}function Yo(e){return"string"==typeof e?Uo[e]:e}function Xo(e,t){for(var n=e.doc.sel.ranges,r=[],i=0;i<n.length;i++){for(var o=t(n[i]);r.length&&rt(o.from,J(r).to)<=0;){var a=r.pop();if(rt(a.from,o.from)<0){o.from=a.from;break}}r.push(o)}Qr(e,function(){for(var t=r.length-1;t>=0;t--)mo(e.doc,"",r[t].from,r[t].to,"+delete");Dr(e)})}function Jo(e,t,n){var r=le(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Qo(e,t,n){var r=Jo(e,t.ch,n);return null==r?null:new nt(t.line,r,n<0?"after":"before")}function ea(e,t,n,r,i){if(e){"rtl"==t.doc.direction&&(i=-i);var o=he(n,t.doc.direction);if(o){var a,s=i<0?J(o):o[0],l=i<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var c=Mn(t,n);a=i<0?n.text.length-1:0;var u=Pn(t,c,a).top;a=ce(function(e){return Pn(t,c,e).top==u},i<0==(1==s.level)?s.from:s.to-1,a),"before"==l&&(a=Jo(n,a,1))}else a=i<0?s.to:s.from;return new nt(r,a,l)}}return new nt(r,i<0?n.text.length:0,i<0?"before":"after")}Uo.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Uo.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Uo.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Uo.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Uo.default=b?Uo.macDefault:Uo.pcDefault;var ta={selectAll:so,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),$)},killLine:function(e){return Xo(e,function(t){if(t.empty()){var n=Ge(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:nt(t.head.line+1,0)}:{from:t.head,to:nt(t.head.line,n)}}return{from:t.from(),to:t.to()}})},deleteLine:function(e){return Xo(e,function(t){return{from:nt(t.from().line,0),to:ct(e.doc,nt(t.to().line+1,0))}})},delLineLeft:function(e){return Xo(e,function(e){return{from:nt(e.from().line,0),to:e.from()}})},delWrappedLineLeft:function(e){return Xo(e,function(t){var n=e.charCoords(t.head,"div").top+5;return{from:e.coordsChar({left:0,top:n},"div"),to:t.from()}})},delWrappedLineRight:function(e){return Xo(e,function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:r}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(nt(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(nt(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return na(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return ra(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return function(e,t){var n=Ge(e.doc,t),r=function(e){for(var t;t=Bt(e);)e=t.find(1,!0).line;return e}(n);r!=n&&(t=Je(r));return ea(!0,e,n,t,-1)}(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div")},G)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:n},"div")},G)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return r.ch<e.getLine(r.line).search(/\S/)?ra(e,t.head):r},G)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),r=e.options.tabSize,i=0;i<n.length;i++){var o=n[i].from(),a=V(e.getLine(o.line),o.ch,r);t.push(X(r-a%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Qr(e,function(){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)if(t[r].empty()){var i=t[r].head,o=Ge(e.doc,i.line).text;if(o)if(i.ch==o.length&&(i=new nt(i.line,i.ch-1)),i.ch>0)i=new nt(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),nt(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=Ge(e.doc,i.line-1).text;a&&(i=new nt(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),nt(i.line-1,a.length-1),i,"+transpose"))}n.push(new xi(i,i))}e.setSelections(n)})},newlineAndIndent:function(e){return Qr(e,function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r<t.length;r++)e.indentLine(t[r].from().line,null,!0);Dr(e)})},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function na(e,t){var n=Ge(e.doc,t),r=Kt(n);return r!=n&&(t=Je(r)),ea(!0,e,r,t,1)}function ra(e,t){var n=na(e,t.line),r=Ge(e.doc,n.line),i=he(r,e.doc.direction);if(!i||0==i[0].level){var o=Math.max(n.ch,r.text.search(/\S/)),a=t.line==n.line&&t.ch<=o&&t.ch;return nt(n.line,a?0:o,n.sticky)}return n}function ia(e,t,n){if("string"==typeof t&&!(t=ta[t]))return!1;e.display.input.ensurePolled();var r=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),i=t(e)!=W}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}var oa=new z;function aa(e,t,n,r){var i=e.state.keySeq;if(i){if(Ho(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:oa.set(50,function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())}),sa(e,i+" "+t,n,r))return!0}return sa(e,t,n,r)}function sa(e,t,n,r){var i=function(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var i=$o(t,e.state.keyMaps[r],n,e);if(i)return i}return e.options.extraKeys&&$o(t,e.options.extraKeys,n,e)||$o(t,e.options.keyMap,n,e)}(e,t,r);return"multi"==i&&(e.state.keySeq=t),"handled"==i&&un(e,"keyHandled",e,t,n),"handled"!=i&&"multi"!=i||(xe(n),kr(e)),!!i}function la(e,t){var n=Zo(t,!0);return!!n&&(t.shiftKey&&!e.state.keySeq?aa(e,"Shift-"+n,t,function(t){return ia(e,t,!0)})||aa(e,n,t,function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return ia(e,t)}):aa(e,n,t,function(t){return ia(e,t)}))}var ca=null;function ua(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||(t.curOp.focus=R(B(t)),be(t,e)))){a&&s<11&&27==e.keyCode&&(e.returnValue=!1);var r=e.keyCode;t.display.shift=16==r||e.shiftKey;var i=la(t,e);f&&(ca=i?r:null,!i&&88==r&&!Le&&(b?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),n&&!b&&!i&&46==r&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=r||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||function(e){var t=e.display.lineDiv;function n(e){18!=e.keyCode&&e.altKey||(O(t,"CodeMirror-crosshair"),ve(document,"keyup",n),ve(document,"mouseover",n))}M(t,"CodeMirror-crosshair"),me(document,"keyup",n),me(document,"mouseover",n)}(t)}}function da(e){16==e.keyCode&&(this.doc.sel.shift=!1),be(this,e)}function fa(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||Cn(t.display,e)||be(t,e)||e.ctrlKey&&!e.altKey||b&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(f&&n==ca)return ca=null,void xe(e);if(!f||e.which&&!(e.which<10)||!la(t,e)){var i=String.fromCharCode(null==r?n:r);"\b"!=i&&(function(e,t,n){return aa(e,"'"+n+"'",t,function(t){return ia(e,t,!0)})}(t,e,i)||t.display.input.onKeyPress(e))}}}var ha,pa,ma=function(e,t,n){this.time=e,this.pos=t,this.button=n};function ya(e){var t=this,n=t.display;if(!(be(t,e)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=e.shiftKey,Cn(n,e))l||(n.scroller.draggable=!1,setTimeout(function(){return n.scroller.draggable=!0},100));else if(!ba(t,e)){var r=cr(t,e),i=je(e),o=r?function(e,t){var n=+new Date;return pa&&pa.compare(n,e,t)?(ha=pa=null,"triple"):ha&&ha.compare(n,e,t)?(pa=new ma(n,e,t),ha=null,"double"):(ha=new ma(n,e,t),pa=null,"single")}(r,i):"single";N(t).focus(),1==i&&t.state.selectingText&&t.state.selectingText(e),r&&function(e,t,n,r,i){var o="Click";"double"==r?o="Double"+o:"triple"==r&&(o="Triple"+o);return aa(e,Go(o=(1==t?"Left":2==t?"Middle":"Right")+o,i),i,function(t){if("string"==typeof t&&(t=ta[t]),!t)return!1;var r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r=t(e,n)!=W}finally{e.state.suppressEdits=!1}return r})}(t,i,r,o,e)||(1==i?r?function(e,t,n,r){a?setTimeout(F(wr,e),0):e.curOp.focus=R(B(e));var i,o=function(e,t,n){var r=e.getOption("configureMouse"),i=r?r(e,t,n):{};if(null==i.unit){var o=_?n.shiftKey&&n.metaKey:n.altKey;i.unit=o?"rectangle":"single"==t?"char":"double"==t?"word":"line"}(null==i.extend||e.doc.extend)&&(i.extend=e.doc.extend||n.shiftKey);null==i.addNew&&(i.addNew=b?n.metaKey:n.ctrlKey);null==i.moveOnDrag&&(i.moveOnDrag=!(b?n.altKey:n.ctrlKey));return i}(e,n,r),c=e.doc.sel;e.options.dragDrop&&De&&!e.isReadOnly()&&"single"==n&&(i=c.contains(t))>-1&&(rt((i=c.ranges[i]).from(),t)<0||t.xRel>0)&&(rt(i.to(),t)>0||t.xRel<0)?function(e,t,n,r){var i=e.display,o=!1,c=ei(e,function(t){l&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:xr(e)),ve(i.wrapper.ownerDocument,"mouseup",c),ve(i.wrapper.ownerDocument,"mousemove",u),ve(i.scroller,"dragstart",d),ve(i.scroller,"drop",c),o||(xe(t),r.addNew||Gi(e.doc,n,null,null,r.extend),l&&!h||a&&9==s?setTimeout(function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()},20):i.input.focus())}),u=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},d=function(){return o=!0};l&&(i.scroller.draggable=!0);e.state.draggingText=c,c.copy=!r.moveOnDrag,me(i.wrapper.ownerDocument,"mouseup",c),me(i.wrapper.ownerDocument,"mousemove",u),me(i.scroller,"dragstart",d),me(i.scroller,"drop",c),e.state.delayingBlurEvent=!0,setTimeout(function(){return i.input.focus()},20),i.scroller.dragDrop&&i.scroller.dragDrop()}(e,r,t,o):function(e,t,n,r){a&&xr(e);var i=e.display,o=e.doc;xe(t);var s,l,c=o.sel,u=c.ranges;r.addNew&&!r.extend?(l=o.sel.contains(n),s=l>-1?u[l]:new xi(n,n)):(s=o.sel.primary(),l=o.sel.primIndex);if("rectangle"==r.unit)r.addNew||(s=new xi(n,n)),n=cr(e,t,!0,!0),l=-1;else{var d=va(e,n,r.unit);s=r.extend?Hi(s,d.anchor,d.head,r.extend):d}r.addNew?-1==l?(l=u.length,Qi(o,Ci(e,u.concat([s]),l),{scroll:!1,origin:"*mouse"})):u.length>1&&u[l].empty()&&"char"==r.unit&&!r.extend?(Qi(o,Ci(e,u.slice(0,l).concat(u.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),c=o.sel):Yi(o,l,s,H):(l=0,Qi(o,new wi([s],0),H),c=o.sel);var f=n;function h(t){if(0!=rt(f,t))if(f=t,"rectangle"==r.unit){for(var i=[],a=e.options.tabSize,u=V(Ge(o,n.line).text,n.ch,a),d=V(Ge(o,t.line).text,t.ch,a),h=Math.min(u,d),p=Math.max(u,d),m=Math.min(n.line,t.line),y=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=y;m++){var v=Ge(o,m).text,g=Z(v,h,a);h==p?i.push(new xi(nt(m,g),nt(m,g))):v.length>g&&i.push(new xi(nt(m,g),nt(m,Z(v,p,a))))}i.length||i.push(new xi(n,n)),Qi(o,Ci(e,c.ranges.slice(0,l).concat(i),l),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,_=s,k=va(e,t,r.unit),w=_.anchor;rt(k.anchor,w)>0?(b=k.head,w=st(_.from(),k.anchor)):(b=k.anchor,w=at(_.to(),k.head));var x=c.ranges.slice(0);x[l]=function(e,t){var n=t.anchor,r=t.head,i=Ge(e.doc,n.line);if(0==rt(n,r)&&n.sticky==r.sticky)return t;var o=he(i);if(!o)return t;var a=de(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var l,c=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==c||c==o.length)return t;if(r.line!=n.line)l=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var u=de(o,r.ch,r.sticky),d=u-a||(r.ch-n.ch)*(1==s.level?-1:1);l=u==c-1||u==c?d<0:d>0}var f=o[c+(l?-1:0)],h=l==(1==f.level),p=h?f.from:f.to,m=h?"after":"before";return n.ch==p&&n.sticky==m?t:new xi(new nt(n.line,p,m),r)}(e,new xi(ct(o,w),b)),Qi(o,Ci(e,x,l),H)}}var p=i.wrapper.getBoundingClientRect(),m=0;function y(t){e.state.selectingText=!1,m=1/0,t&&(xe(t),i.input.focus()),ve(i.wrapper.ownerDocument,"mousemove",v),ve(i.wrapper.ownerDocument,"mouseup",g),o.history.lastSelOrigin=null}var v=ei(e,function(t){0!==t.buttons&&je(t)?function t(n){var a=++m;var s=cr(e,n,!0,"rectangle"==r.unit);if(!s)return;if(0!=rt(s,f)){e.curOp.focus=R(B(e)),h(s);var l=jr(i,o);(s.line>=l.to||s.line<l.from)&&setTimeout(ei(e,function(){m==a&&t(n)}),150)}else{var c=n.clientY<p.top?-20:n.clientY>p.bottom?20:0;c&&setTimeout(ei(e,function(){m==a&&(i.scroller.scrollTop+=c,t(n))}),50)}}(t):y(t)}),g=ei(e,y);e.state.selectingText=g,me(i.wrapper.ownerDocument,"mousemove",v),me(i.wrapper.ownerDocument,"mouseup",g)}(e,r,t,o)}(t,r,o,e):Oe(e)==n.scroller&&xe(e):2==i?(r&&Gi(t.doc,r),setTimeout(function(){return n.input.focus()},20)):3==i&&(C?t.display.input.onContextMenu(e):xr(t)))}}function va(e,t,n){if("char"==n)return new xi(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new xi(nt(t.line,0),ct(e.doc,nt(t.line+1,0)));var r=n(e,t);return new xi(r.from,r.to)}function ga(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(e){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&xe(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!ke(e,n))return Se(t);o-=s.top-a.viewOffset;for(var l=0;l<e.display.gutterSpecs.length;++l){var c=a.gutters.childNodes[l];if(c&&c.getBoundingClientRect().right>=i)return ge(e,n,e,Qe(e.doc,o),e.display.gutterSpecs[l].className,t),Se(t)}}function ba(e,t){return ga(e,t,"gutterClick",!0)}function _a(e,t){Cn(e.display,t)||function(e,t){if(!ke(e,"gutterContextMenu"))return!1;return ga(e,t,"gutterContextMenu",!1)}(e,t)||be(e,t,"contextmenu")||C||e.display.input.onContextMenu(t)}function ka(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),zn(e)}ma.prototype.compare=function(e,t,n){return this.time+400>e&&0==rt(t,this.pos)&&n==this.button};var wa={toString:function(){return"CodeMirror.Init"}},xa={},Ca={};function Sa(e,t,n){if(!t!=!(n&&n!=wa)){var r=e.display.dragFunctions,i=t?me:ve;i(e.display.scroller,"dragstart",r.start),i(e.display.scroller,"dragenter",r.enter),i(e.display.scroller,"dragover",r.over),i(e.display.scroller,"dragleave",r.leave),i(e.display.scroller,"drop",r.drop)}}function Aa(e){e.options.lineWrapping?(M(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(O(e.display.wrapper,"CodeMirror-wrap"),Ht(e)),lr(e),dr(e),zn(e),setTimeout(function(){return Vr(e)},100)}function Oa(e,t){var r=this;if(!(this instanceof Oa))return new Oa(e,t);this.options=t=t?K(t):{},K(xa,t,!1);var i=t.value;"string"==typeof i?i=new Do(i,t.mode,null,t.lineSeparator,t.direction):t.mode&&(i.modeOption=t.mode),this.doc=i;var o=new Oa.inputStyles[t.inputStyle](this),c=this.display=new function(e,t,r,i){var o=this;this.input=r,o.scrollbarFiller=E("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=E("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=D("div",null,"CodeMirror-code"),o.selectionDiv=E("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=E("div",null,"CodeMirror-cursors"),o.measure=E("div",null,"CodeMirror-measure"),o.lineMeasure=E("div",null,"CodeMirror-measure"),o.lineSpace=D("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var c=D("div",[o.lineSpace],"CodeMirror-lines");o.mover=E("div",[c],null,"position: relative"),o.sizer=E("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=E("div",null,null,"position: absolute; height: "+q+"px; width: 1px;"),o.gutters=E("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=E("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=E("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),u&&d>=105&&(o.wrapper.style.clipPath="inset(0px)"),o.wrapper.setAttribute("translate","no"),a&&s<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),l||n&&g||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=pi(i.gutters,i.lineNumbers),mi(o),r.init(o)}(e,i,o,t);for(var p in c.wrapper.CodeMirror=this,ka(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),qr(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new z,keySeq:null,specialChars:null},t.autofocus&&!g&&c.input.focus(),a&&s<11&&setTimeout(function(){return r.display.input.reset(!0)},20),function(e){var t=e.display;me(t.scroller,"mousedown",ei(e,ya)),me(t.scroller,"dblclick",a&&s<11?ei(e,function(t){if(!be(e,t)){var n=cr(e,t);if(n&&!ba(e,t)&&!Cn(e.display,t)){xe(t);var r=e.findWordAt(n);Gi(e.doc,r.anchor,r.head)}}}):function(t){return be(e,t)||xe(t)});me(t.scroller,"contextmenu",function(t){return _a(e,t)}),me(t.input.getField(),"contextmenu",function(n){t.scroller.contains(n.target)||_a(e,n)});var n,r={end:0};function i(){t.activeTouch&&(n=setTimeout(function(){return t.activeTouch=null},1e3),(r=t.activeTouch).end=+new Date)}function o(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}me(t.scroller,"touchstart",function(i){if(!be(e,i)&&!function(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}(i)&&!ba(e,i)){t.input.ensurePolled(),clearTimeout(n);var o=+new Date;t.activeTouch={start:o,moved:!1,prev:o-r.end<=300?r:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}}),me(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),me(t.scroller,"touchend",function(n){var r=t.activeTouch;if(r&&!Cn(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var a,s=e.coordsChar(t.activeTouch,"page");a=!r.prev||o(r,r.prev)?new xi(s,s):!r.prev.prev||o(r,r.prev.prev)?e.findWordAt(s):new xi(nt(s.line,0),ct(e.doc,nt(s.line+1,0))),e.setSelection(a.anchor,a.head),e.focus(),xe(n)}i()}),me(t.scroller,"touchcancel",i),me(t.scroller,"scroll",function(){t.scroller.clientHeight&&(Pr(e,t.scroller.scrollTop),Br(e,t.scroller.scrollLeft,!0),ge(e,"scroll",e))}),me(t.scroller,"mousewheel",function(t){return ki(e,t)}),me(t.scroller,"DOMMouseScroll",function(t){return ki(e,t)}),me(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(t){be(e,t)||Ae(t)},over:function(t){be(e,t)||(!function(e,t){var n=cr(e,t);if(n){var r=document.createDocumentFragment();gr(e,n,r),e.display.dragCursor||(e.display.dragCursor=E("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),T(e.display.dragCursor,r)}}(e,t),Ae(t))},start:function(t){return function(e,t){if(a&&(!e.state.draggingText||+new Date-Io<100))Ae(t);else if(!be(e,t)&&!Cn(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!h)){var n=E("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",f&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),f&&n.parentNode.removeChild(n)}}(e,t)},drop:ei(e,Ro),leave:function(t){be(e,t)||Mo(e)}};var l=t.input.getField();me(l,"keyup",function(t){return da.call(e,t)}),me(l,"keydown",ei(e,ua)),me(l,"keypress",ei(e,fa)),me(l,"focus",function(t){return Cr(e,t)}),me(l,"blur",function(t){return Sr(e,t)})}(this),Bo(),$r(this),this.curOp.forceUpdate=!0,Pi(this,i),t.autofocus&&!g||this.hasFocus()?setTimeout(function(){r.hasFocus()&&!r.state.focused&&Cr(r)},20):Sr(this),Ca)Ca.hasOwnProperty(p)&&Ca[p](this,t[p],wa);hi(this),t.finishInit&&t.finishInit(this);for(var m=0;m<ja.length;++m)ja[m](this);Hr(this),l&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(c.lineDiv).textRendering&&(c.lineDiv.style.textRendering="auto")}Oa.defaults=xa,Oa.optionHandlers=Ca;var ja=[];function Ta(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=mt(e,t).state:n="prev");var a=e.options.tabSize,s=Ge(o,t),l=V(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var c,u=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&((c=o.mode.indent(i,s.text.slice(u.length),s.text))==W||c>150)){if(!r)return;n="prev"}}else c=0,n="not";"prev"==n?c=t>o.first?V(Ge(o,t-1).text,null,a):0:"add"==n?c=l+e.options.indentUnit:"subtract"==n?c=l-e.options.indentUnit:"number"==typeof n&&(c=l+n),c=Math.max(0,c);var d="",f=0;if(e.options.indentWithTabs)for(var h=Math.floor(c/a);h;--h)f+=a,d+="\t";if(f<c&&(d+=X(c-f)),d!=u)return mo(o,d,nt(t,0),nt(t,u.length),"+input"),s.stateAfter=null,!0;for(var p=0;p<o.sel.ranges.length;p++){var m=o.sel.ranges[p];if(m.head.line==t&&m.head.ch<u.length){var y=nt(t,u.length);Yi(o,p,new xi(y,y));break}}}Oa.defineInitHook=function(e){return ja.push(e)};var Ea=null;function Da(e){Ea=e}function Ia(e,t,n,r,i){var o=e.doc;e.display.shift=!1,r||(r=o.sel);var a=+new Date-200,s="paste"==i||e.state.pasteIncoming>a,l=Me(t),c=null;if(s&&r.ranges.length>1)if(Ea&&Ea.text.join("\n")==t){if(r.ranges.length%Ea.text.length==0){c=[];for(var u=0;u<Ea.text.length;u++)c.push(o.splitLines(Ea.text[u]))}}else l.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(c=Q(l,function(e){return[e]}));for(var d=e.curOp.updateInput,f=r.ranges.length-1;f>=0;f--){var h=r.ranges[f],p=h.from(),m=h.to();h.empty()&&(n&&n>0?p=nt(p.line,p.ch-n):e.state.overwrite&&!s?m=nt(m.line,Math.min(Ge(o,m.line).text.length,m.ch+J(l).length)):s&&Ea&&Ea.lineWise&&Ea.text.join("\n")==l.join("\n")&&(p=m=nt(p.line,0)));var y={from:p,to:m,text:c?c[f%c.length]:l,origin:i||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};co(e.doc,y),un(e,"inputRead",e,y)}t&&!s&&Ma(e,t),Dr(e),e.curOp.updateInput<2&&(e.curOp.updateInput=d),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Ra(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||!t.hasFocus()||Qr(t,function(){return Ia(t,n,0,null,"paste")}),!0}function Ma(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var s=0;s<o.electricChars.length;s++)if(t.indexOf(o.electricChars.charAt(s))>-1){a=Ta(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Ge(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Ta(e,i.head.line,"smart"));a&&un(e,"electricInput",e,i.head.line)}}}function Pa(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var i=e.doc.sel.ranges[r].head.line,o={anchor:nt(i,0),head:nt(i+1,0)};n.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:n}}function La(e,t,n,r){e.setAttribute("autocorrect",n?"on":"off"),e.setAttribute("autocapitalize",r?"on":"off"),e.setAttribute("spellcheck",!!t)}function Ba(){var e=E("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),t=E("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return l?e.style.width="1000px":e.setAttribute("wrap","off"),y&&(e.style.border="1px solid black"),t}function Na(e,t,n,r,i){var o=t,a=n,s=Ge(e,t.line),l=i&&"rtl"==e.direction?-n:n;function c(o){var a;if("codepoint"==r){var c=s.text.charCodeAt(t.ch+(n>0?0:-1));if(isNaN(c))a=null;else{var u=n>0?c>=55296&&c<56320:c>=56320&&c<57343;a=new nt(t.line,Math.max(0,Math.min(s.text.length,t.ch+n*(u?2:1))),-n)}}else a=i?function(e,t,n,r){var i=he(t,e.doc.direction);if(!i)return Qo(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=de(i,n.ch,n.sticky),a=i[o];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from<n.ch))return Qo(t,n,r);var s,l=function(e,n){return Jo(t,e instanceof nt?e.ch:e,n)},c=function(n){return e.options.lineWrapping?(s=s||Mn(e,t),er(e,t,s,n)):{begin:0,end:t.text.length}},u=c("before"==n.sticky?l(n,-1):n.ch);if("rtl"==e.doc.direction||1==a.level){var d=1==a.level==r<0,f=l(n,d?1:-1);if(null!=f&&(d?f<=a.to&&f<=u.end:f>=a.from&&f>=u.begin)){var h=d?"before":"after";return new nt(n.line,f,h)}}var p=function(e,t,r){for(var o=function(e,t){return t?new nt(n.line,l(e,1),"before"):new nt(n.line,e,"after")};e>=0&&e<i.length;e+=t){var a=i[e],s=t>0==(1!=a.level),c=s?r.begin:l(r.end,-1);if(a.from<=c&&c<a.to)return o(c,s);if(c=s?a.from:l(a.to,-1),r.begin<=c&&c<r.end)return o(c,s)}},m=p(o+r,r,u);if(m)return m;var y=r>0?u.end:l(u.begin,-1);return null==y||r>0&&y==t.text.length||!(m=p(r>0?0:i.length-1,r,c(y)))?null:m}(e.cm,s,t,n):Qo(s,t,n);if(null==a){if(o||!function(){var n=t.line+l;return!(n<e.first||n>=e.first+e.size)&&(t=new nt(n,t.ch,t.sticky),s=Ge(e,n))}())return!1;t=ea(i,e.cm,s,t.line,l)}else t=a;return!0}if("char"==r||"codepoint"==r)c();else if("column"==r)c(!0);else if("word"==r||"group"==r)for(var u=null,d="group"==r,f=e.cm&&e.cm.getHelper(t,"wordChars"),h=!0;!(n<0)||c(!h);h=!1){var p=s.text.charAt(t.ch)||"\n",m=ie(p,f)?"w":d&&"\n"==p?"n":!d||/\s/.test(p)?null:"p";if(!d||h||m||(m="s"),u&&u!=m){n<0&&(n=1,c(),t.sticky="after");break}if(m&&(u=m),n>0&&!c(!h))break}var y=oo(e,t,o,a,!0);return it(o,y)&&(y.hitSide=!0),y}function Fa(e,t,n,r){var i,o,a=e.doc,s=t.left;if("page"==r){var l=Math.min(e.display.wrapper.clientHeight,N(e).innerHeight||a(e).documentElement.clientHeight),c=Math.max(l-.5*rr(e.display),3);i=(n>0?t.bottom:t.top)+n*c}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;(o=Jn(e,s,i)).outside;){if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var Ka=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new z,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Va(e,t){var n=Rn(e,t.line);if(!n||n.hidden)return null;var r=Ge(e.doc,t.line),i=Dn(n,r,t.line),o=he(r,e.doc.direction),a="left";o&&(a=de(o,t.ch)%2?"right":"left");var s=Nn(i.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function za(e,t){return t&&(e.bad=!0),e}function Ua(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return za(e.clipPos(nt(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var i=0;i<e.display.view.length;i++){var o=e.display.view[i];if(o.node==r)return qa(o,t,n)}}function qa(e,t,n){var r=e.text.firstChild,i=!1;if(!t||!I(r,t))return za(nt(Je(e.line),0),!0);if(t==r&&(i=!0,t=r.childNodes[n],n=0,!t)){var o=e.rest?J(e.rest):e.line;return za(nt(Je(o),o.text.length),i)}var a=3==t.nodeType?t:null,s=t;for(a||1!=t.childNodes.length||3!=t.firstChild.nodeType||(a=t.firstChild,n&&(n=a.nodeValue.length));s.parentNode!=r;)s=s.parentNode;var l=e.measure,c=l.maps;function u(t,n,r){for(var i=-1;i<(c?c.length:0);i++)for(var o=i<0?l.map:c[i],a=0;a<o.length;a+=3){var s=o[a+2];if(s==t||s==n){var u=Je(i<0?e.line:e.rest[i]),d=o[a]+r;return(r<0||s!=t)&&(d=o[a+(r?1:0)]),nt(u,d)}}}var d=u(a,s,n);if(d)return za(d,i);for(var f=s.nextSibling,h=a?a.nodeValue.length-n:0;f;f=f.nextSibling){if(d=u(f,f.firstChild,0))return za(nt(d.line,d.ch-h),i);h+=f.textContent.length}for(var p=s.previousSibling,m=n;p;p=p.previousSibling){if(d=u(p,p.firstChild,-1))return za(nt(d.line,d.ch+m),i);m+=p.textContent.length}}Ka.prototype.init=function(e){var t=this,n=this,r=n.cm,i=n.div=e.lineDiv;function o(e){for(var t=e.target;t;t=t.parentNode){if(t==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(t.className))break}return!1}function a(e){if(o(e)&&!be(r,e)){if(r.somethingSelected())Da({lineWise:!1,text:r.getSelections()}),"cut"==e.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var t=Pa(r);Da({lineWise:!0,text:t.text}),"cut"==e.type&&r.operation(function(){r.setSelections(t.ranges,0,$),r.replaceSelection("",null,"cut")})}if(e.clipboardData){e.clipboardData.clearData();var a=Ea.text.join("\n");if(e.clipboardData.setData("Text",a),e.clipboardData.getData("Text")==a)return void e.preventDefault()}var s=Ba(),l=s.firstChild;La(l),r.display.lineSpace.insertBefore(s,r.display.lineSpace.firstChild),l.value=Ea.text.join("\n");var c=R(i.ownerDocument);L(l),setTimeout(function(){r.display.lineSpace.removeChild(s),c.focus(),c==i&&n.showPrimarySelection()},50)}}i.contentEditable=!0,La(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize),me(i,"paste",function(e){!o(e)||be(r,e)||Ra(e,r)||s<=11&&setTimeout(ei(r,function(){return t.updateFromDOM()}),20)}),me(i,"compositionstart",function(e){t.composing={data:e.data,done:!1}}),me(i,"compositionupdate",function(e){t.composing||(t.composing={data:e.data,done:!1})}),me(i,"compositionend",function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),me(i,"touchstart",function(){return n.forceCompositionEnd()}),me(i,"input",function(){t.composing||t.readFromDOMSoon()}),me(i,"copy",a),me(i,"cut",a)},Ka.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Ka.prototype.prepareSelection=function(){var e=vr(this.cm,!1);return e.focus=R(this.div.ownerDocument)==this.div,e},Ka.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Ka.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ka.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,r=t.doc.sel.primary(),i=r.from(),o=r.to();if(t.display.viewTo==t.display.viewFrom||i.line>=t.display.viewTo||o.line<t.display.viewFrom)e.removeAllRanges();else{var a=Ua(t,e.anchorNode,e.anchorOffset),s=Ua(t,e.focusNode,e.focusOffset);if(!a||a.bad||!s||s.bad||0!=rt(st(a,s),i)||0!=rt(at(a,s),o)){var l=t.display.view,c=i.line>=t.display.viewFrom&&Va(t,i)||{node:l[0].measure.map[2],offset:0},u=o.line<t.display.viewTo&&Va(t,o);if(!u){var d=l[l.length-1].measure,f=d.maps?d.maps[d.maps.length-1]:d.map;u={node:f[f.length-1],offset:f[f.length-2]-f[f.length-3]}}if(c&&u){var h,p=e.rangeCount&&e.getRangeAt(0);try{h=A(c.node,c.offset,u.offset,u.node)}catch(e){}h&&(!n&&t.state.focused?(e.collapse(c.node,c.offset),h.collapsed||(e.removeAllRanges(),e.addRange(h))):(e.removeAllRanges(),e.addRange(h)),p&&null==e.anchorNode?e.addRange(p):n&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},Ka.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},Ka.prototype.showMultipleSelections=function(e){T(this.cm.display.cursorDiv,e.cursors),T(this.cm.display.selectionDiv,e.selection)},Ka.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Ka.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return I(this.div,t)},Ka.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&R(this.div.ownerDocument)==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ka.prototype.blur=function(){this.div.blur()},Ka.prototype.getField=function(){return this.div},Ka.prototype.supportsTouch=function(){return!0},Ka.prototype.receivedFocus=function(){var e=this,t=this;this.selectionInEditor()?setTimeout(function(){return e.pollSelection()},20):Qr(this.cm,function(){return t.cm.curOp.selectionChanged=!0}),this.polling.set(this.cm.options.pollInterval,function e(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,e))})},Ka.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Ka.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(v&&u&&this.cm.display.gutterSpecs.length&&function(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=Ua(t,e.anchorNode,e.anchorOffset),r=Ua(t,e.focusNode,e.focusOffset);n&&r&&Qr(t,function(){Qi(t.doc,Si(n,r),$),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)})}}},Ka.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t,n,r=this.cm,i=r.display,o=r.doc.sel.primary(),a=o.from(),s=o.to();if(0==a.ch&&a.line>r.firstLine()&&(a=nt(a.line-1,Ge(r.doc,a.line-1).length)),s.ch==Ge(r.doc,s.line).text.length&&s.line<r.lastLine()&&(s=nt(s.line+1,0)),a.line<i.viewFrom||s.line>i.viewTo-1)return!1;a.line==i.viewFrom||0==(e=ur(r,a.line))?(t=Je(i.view[0].line),n=i.view[0].node):(t=Je(i.view[e].line),n=i.view[e-1].node.nextSibling);var l,c,u=ur(r,s.line);if(u==i.view.length-1?(l=i.viewTo-1,c=i.lineDiv.lastChild):(l=Je(i.view[u+1].line)-1,c=i.view[u+1].node.previousSibling),!n)return!1;for(var d=r.doc.splitLines(function(e,t,n,r,i){var o="",a=!1,s=e.doc.lineSeparator(),l=!1;function c(){a&&(o+=s,l&&(o+=s),a=l=!1)}function u(e){e&&(c(),o+=e)}function d(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void u(n);var o,f=t.getAttribute("cm-marker");if(f){var h=e.findMarks(nt(r,0),nt(i+1,0),function(e){return function(t){return t.id==e}}(+f));return void(h.length&&(o=h[0].find(0))&&u(Ze(e.doc,o.from,o.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var p=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;p&&c();for(var m=0;m<t.childNodes.length;m++)d(t.childNodes[m]);/^(pre|p)$/i.test(t.nodeName)&&(l=!0),p&&(a=!0)}else 3==t.nodeType&&u(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;d(t),t!=n;)t=t.nextSibling,l=!1;return o}(r,n,c,t,l)),f=Ze(r.doc,nt(t,0),nt(l,Ge(r.doc,l).text.length));d.length>1&&f.length>1;)if(J(d)==J(f))d.pop(),f.pop(),l--;else{if(d[0]!=f[0])break;d.shift(),f.shift(),t++}for(var h=0,p=0,m=d[0],y=f[0],v=Math.min(m.length,y.length);h<v&&m.charCodeAt(h)==y.charCodeAt(h);)++h;for(var g=J(d),b=J(f),_=Math.min(g.length-(1==d.length?h:0),b.length-(1==f.length?h:0));p<_&&g.charCodeAt(g.length-p-1)==b.charCodeAt(b.length-p-1);)++p;if(1==d.length&&1==f.length&&t==a.line)for(;h&&h>a.ch&&g.charCodeAt(g.length-p-1)==b.charCodeAt(b.length-p-1);)h--,p++;d[d.length-1]=g.slice(0,g.length-p).replace(/^\u200b+/,""),d[0]=d[0].slice(h).replace(/\u200b+$/,"");var k=nt(t,h),w=nt(l,f.length?J(f).length-p:0);return d.length>1||d[0]||rt(k,w)?(mo(r.doc,d,k,w,"+input"),!0):void 0},Ka.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ka.prototype.reset=function(){this.forceCompositionEnd()},Ka.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ka.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()},80))},Ka.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Qr(this.cm,function(){return dr(e.cm)})},Ka.prototype.setUneditable=function(e){e.contentEditable="false"},Ka.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||ei(this.cm,Ia)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Ka.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Ka.prototype.onContextMenu=function(){},Ka.prototype.resetPosition=function(){},Ka.prototype.needsContentAttribute=!0;var Wa=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new z,this.hasSelection=!1,this.composing=null,this.resetting=!1};Wa.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!be(r,e)){if(r.somethingSelected())Da({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=Pa(r);Da({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,$):(n.prevInput="",i.value=t.text.join("\n"),L(i))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),y&&(i.style.width="0px"),me(i,"input",function(){a&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()}),me(i,"paste",function(e){be(r,e)||Ra(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())}),me(i,"cut",o),me(i,"copy",o),me(e.scroller,"paste",function(t){if(!Cn(e,t)&&!be(r,t)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,i.dispatchEvent(o)}}),me(e.lineSpace,"selectstart",function(t){Cn(e,t)||xe(t)}),me(i,"compositionstart",function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}}),me(i,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},Wa.prototype.createField=function(e){this.wrapper=Ba(),this.textarea=this.wrapper.firstChild;var t=this.cm.options;La(this.textarea,t.spellcheck,t.autocorrect,t.autocapitalize)},Wa.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Wa.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=vr(e);if(e.options.moveInputWithCursor){var i=Zn(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},Wa.prototype.showSelection=function(e){var t=this.cm.display;T(t.cursorDiv,e.cursors),T(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Wa.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&L(this.textarea),a&&s>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null));this.resetting=!1}},Wa.prototype.getField=function(){return this.textarea},Wa.prototype.supportsTouch=function(){return!1},Wa.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!g||R(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch(e){}},Wa.prototype.blur=function(){this.textarea.blur()},Wa.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Wa.prototype.receivedFocus=function(){this.slowPoll()},Wa.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Wa.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0,t.polling.set(20,function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))})},Wa.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||Pe(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===i||b&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var l=0,c=Math.min(r.length,i.length);l<c&&r.charCodeAt(l)==i.charCodeAt(l);)++l;return Qr(t,function(){Ia(t,i.slice(l),r.length-l,null,e.composing?"*compose":null),i.length>1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Wa.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Wa.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},Wa.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=cr(n,e),c=r.scroller.scrollTop;if(o&&!f){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&ei(n,Qi)(n.doc,Si(o),$);var u,d=i.style.cssText,h=t.wrapper.style.cssText,p=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-p.top-5)+"px; left: "+(e.clientX-p.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(u=i.ownerDocument.defaultView.scrollY),r.input.focus(),l&&i.ownerDocument.defaultView.scrollTo(null,u),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=v,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&s>=9&&y(),C){Ae(e);var m=function(){ve(window,"mouseup",m),setTimeout(v,20)};me(window,"mouseup",m)}else setTimeout(v,50)}function y(){if(null!=i.selectionStart){var e=n.somethingSelected(),o="​"+(e?i.value:"");i.value="⇚",i.value=o,t.prevInput=e?"":"​",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function v(){if(t.contextMenuPending==v&&(t.contextMenuPending=!1,t.wrapper.style.cssText=h,i.style.cssText=d,a&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=c),null!=i.selectionStart)){(!a||a&&s<9)&&y();var e=0,o=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==t.prevInput?ei(n,so)(n):e++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},Wa.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},Wa.prototype.setUneditable=function(){},Wa.prototype.needsContentAttribute=!1,function(e){var t=e.optionHandlers;function n(n,r,i,o){e.defaults[n]=r,i&&(t[n]=o?function(e,t,n){n!=wa&&i(e,t,n)}:i)}e.defineOption=n,e.Init=wa,n("value","",function(e,t){return e.setValue(t)},!0),n("mode",null,function(e,t){e.doc.modeOption=t,Ei(e)},!0),n("indentUnit",2,Ei,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,function(e){Di(e),zn(e),dr(e)},!0),n("lineSeparator",null,function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter(function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(nt(r,o))}r++});for(var i=n.length-1;i>=0;i--)mo(e.doc,t,n[i],nt(n[i].line,n[i].ch+t.length))}}),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=wa&&e.refresh()}),n("specialCharPlaceholder",en,function(e){return e.refresh()},!0),n("electricChars",!0),n("inputStyle",g?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),n("spellcheck",!1,function(e,t){return e.getInputField().spellcheck=t},!0),n("autocorrect",!1,function(e,t){return e.getInputField().autocorrect=t},!0),n("autocapitalize",!1,function(e,t){return e.getInputField().autocapitalize=t},!0),n("rtlMoveVisually",!k),n("wholeLineUpdateBefore",!0),n("theme","default",function(e){ka(e),yi(e)},!0),n("keyMap","default",function(e,t,n){var r=Yo(t),i=n!=wa&&Yo(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)}),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Aa,!0),n("gutters",[],function(e,t){e.display.gutterSpecs=pi(t,e.options.lineNumbers),yi(e)},!0),n("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?ar(e.display)+"px":"0",e.refresh()},!0),n("coverGutterNextToScrollbar",!1,function(e){return Vr(e)},!0),n("scrollbarStyle","native",function(e){qr(e),Vr(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),n("lineNumbers",!1,function(e,t){e.display.gutterSpecs=pi(e.options.gutters,t),yi(e)},!0),n("firstLineNumber",1,yi,!0),n("lineNumberFormatter",function(e){return e},yi,!0),n("showCursorWhenSelecting",!1,yr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,function(e,t){"nocursor"==t&&(Sr(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)}),n("screenReaderLabel",null,function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)}),n("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),n("dragDrop",!0,Sa),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,yr,!0),n("singleCursorHeightPerLine",!0,yr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,Di,!0),n("addModeClass",!1,Di,!0),n("pollInterval",100),n("undoDepth",200,function(e,t){return e.doc.history.undoDepth=t}),n("historyEventDelay",1250),n("viewportMargin",10,function(e){return e.refresh()},!0),n("maxHighlightLength",1e4,Di,!0),n("moveInputWithCursor",!0,function(e,t){t||e.display.input.resetPosition()}),n("tabindex",null,function(e,t){return e.display.input.getField().tabIndex=t||""}),n("autofocus",null),n("direction","ltr",function(e,t){return e.doc.setDirection(t)},!0),n("phrases",null)}(Oa),function(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){N(this).focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,i=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&ei(this,t[e])(this,n,i),ge(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Yo(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:ti(function(t,n){var r=t.token?t:e.getMode(this.options,t);if(r.startState)throw new Error("Overlays may not be stateful.");!function(e,t,n){for(var r=0,i=n(t);r<e.length&&n(e[r])<=i;)r++;e.splice(r,0,t)}(this.state.overlays,{mode:r,modeSpec:t,opaque:n&&n.opaque,priority:n&&n.priority||0},function(e){return e.priority}),this.state.modeGen++,dr(this)}),removeOverlay:ti(function(e){for(var t=this.state.overlays,n=0;n<t.length;++n){var r=t[n].modeSpec;if(r==e||"string"==typeof e&&r.name==e)return t.splice(n,1),this.state.modeGen++,void dr(this)}}),indentLine:ti(function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),et(this.doc,e)&&Ta(this,e,t,n)}),indentSelection:ti(function(e){for(var t=this.doc.sel.ranges,n=-1,r=0;r<t.length;r++){var i=t[r];if(i.empty())i.head.line>n&&(Ta(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&Dr(this));else{var o=i.from(),a=i.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l<n;++l)Ta(this,l,e);var c=this.doc.sel.ranges;0==o.ch&&t.length==c.length&&c[r].from().ch>0&&Yi(this.doc,r,new xi(o,c[r].to()),$)}}}),getTokenAt:function(e,t){return _t(this,e,t)},getLineTokens:function(e,t){return _t(this,nt(e),t,!0)},getTokenTypeAt:function(e){e=ct(this.doc,e);var t,n=pt(this,Ge(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]<o)){t=n[2*a+2];break}r=a+1}}var s=t?t.indexOf("overlay "):-1;return s<0?t:0==s?null:t.slice(0,s-1)},getModeAt:function(t){var n=this.doc.mode;return n.innerMode?e.innerMode(n,this.getTokenAt(t).state).mode:n},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var r=[];if(!n.hasOwnProperty(t))return r;var i=n[t],o=this.getModeAt(e);if("string"==typeof o[t])i[o[t]]&&r.push(i[o[t]]);else if(o[t])for(var a=0;a<o[t].length;a++){var s=i[o[t][a]];s&&r.push(s)}else o.helperType&&i[o.helperType]?r.push(i[o.helperType]):i[o.name]&&r.push(i[o.name]);for(var l=0;l<i._global.length;l++){var c=i._global[l];c.pred(o,this)&&-1==U(r,c.val)&&r.push(c.val)}return r},getStateAfter:function(e,t){var n=this.doc;return mt(this,(e=lt(n,null==e?n.first+n.size-1:e))+1,t).state},cursorCoords:function(e,t){var n=this.doc.sel.primary();return Zn(this,null==e?n.head:"object"==typeof e?ct(this.doc,e):e?n.from():n.to(),t||"page")},charCoords:function(e,t){return Gn(this,ct(this.doc,e),t||"page")},coordsChar:function(e,t){return Jn(this,(e=Hn(this,e,t||"page")).left,e.top)},lineAtHeight:function(e,t){return e=Hn(this,{top:e,left:0},t||"page").top,Qe(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,n){var r,i=!1;if("number"==typeof e){var o=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>o&&(e=o,i=!0),r=Ge(this.doc,e)}else r=e;return $n(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-Wt(r):0)},defaultTextHeight:function(){return rr(this.display)},defaultCharWidth:function(){return ir(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o=this.display,a=(e=Zn(this,ct(this.doc,e))).bottom,s=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),o.sizer.appendChild(t),"over"==r)a=e.top;else if("above"==r||"near"==r){var l=Math.max(o.wrapper.clientHeight,this.doc.height),c=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>l)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=l&&(a=e.bottom),s+t.offsetWidth>c&&(s=c-t.offsetWidth)}t.style.top=a+"px",t.style.left=t.style.right="","right"==i?(s=o.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?s=0:"middle"==i&&(s=(o.sizer.clientWidth-t.offsetWidth)/2),t.style.left=s+"px"),n&&function(e,t){var n=Tr(e,t);null!=n.scrollTop&&Pr(e,n.scrollTop),null!=n.scrollLeft&&Br(e,n.scrollLeft)}(this,{left:s,top:a,right:s+t.offsetWidth,bottom:a+t.offsetHeight})},triggerOnKeyDown:ti(ua),triggerOnKeyPress:ti(fa),triggerOnKeyUp:da,triggerOnMouseDown:ti(ya),execCommand:function(e){if(ta.hasOwnProperty(e))return ta[e].call(null,this)},triggerElectric:ti(function(e){Ma(this,e)}),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=ct(this.doc,e),a=0;a<t&&!(o=Na(this.doc,o,i,n,r)).hitSide;++a);return o},moveH:ti(function(e,t){var n=this;this.extendSelectionsBy(function(r){return n.display.shift||n.doc.extend||r.empty()?Na(n.doc,r.head,e,t,n.options.rtlMoveVisually):e<0?r.from():r.to()},G)}),deleteH:ti(function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):Xo(this,function(n){var i=Na(r,n.head,e,t,!1);return e<0?{from:i,to:n.head}:{from:n.head,to:i}})}),findPosV:function(e,t,n,r){var i=1,o=r;t<0&&(i=-1,t=-t);for(var a=ct(this.doc,e),s=0;s<t;++s){var l=Zn(this,a,"div");if(null==o?o=l.left:l.left=o,(a=Fa(this,l,i,n)).hitSide)break}return a},moveV:ti(function(e,t){var n=this,r=this.doc,i=[],o=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy(function(a){if(o)return e<0?a.from():a.to();var s=Zn(n,a.head,"div");null!=a.goalColumn&&(s.left=a.goalColumn),i.push(s.left);var l=Fa(n,s,e,t);return"page"==t&&a==r.sel.primary()&&Er(n,Gn(n,l,"div").top-s.top),l},G),i.length)for(var a=0;a<r.sel.ranges.length;a++)r.sel.ranges[a].goalColumn=i[a]}),findWordAt:function(e){var t=Ge(this.doc,e.line).text,n=e.ch,r=e.ch;if(t){var i=this.getHelper(e,"wordChars");"before"!=e.sticky&&r!=t.length||!n?++r:--n;for(var o=t.charAt(n),a=ie(o,i)?function(e){return ie(e,i)}:/\s/.test(o)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!ie(e)};n>0&&a(t.charAt(n-1));)--n;for(;r<t.length&&a(t.charAt(r));)++r}return new xi(nt(e.line,n),nt(e.line,r))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?M(this.display.cursorDiv,"CodeMirror-overwrite"):O(this.display.cursorDiv,"CodeMirror-overwrite"),ge(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==R(B(this))},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:ti(function(e,t){Ir(this,e,t)}),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-jn(this)-this.display.barHeight,width:e.scrollWidth-jn(this)-this.display.barWidth,clientHeight:En(this),clientWidth:Tn(this)}},scrollIntoView:ti(function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:nt(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?function(e,t){Rr(e),e.curOp.scrollToPos=t}(this,e):Mr(this,e.from,e.to,e.margin)}),setSize:ti(function(e,t){var n=this,r=function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e};null!=e&&(this.display.wrapper.style.width=r(e)),null!=t&&(this.display.wrapper.style.height=r(t)),this.options.lineWrapping&&Vn(this);var i=this.display.viewFrom;this.doc.iter(i,this.display.viewTo,function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){fr(n,i,"widget");break}++i}),this.curOp.forceUpdate=!0,ge(this,"refresh",this)}),operation:function(e){return Qr(this,e)},startOperation:function(){return $r(this)},endOperation:function(){return Hr(this)},refresh:ti(function(){var e=this.display.cachedTextHeight;dr(this),this.curOp.forceUpdate=!0,zn(this),Ir(this,this.doc.scrollLeft,this.doc.scrollTop),ui(this.display),(null==e||Math.abs(e-rr(this.display))>.5||this.options.lineWrapping)&&lr(this),ge(this,"refresh",this)}),swapDoc:ti(function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),Pi(this,e),zn(this),this.display.input.reset(),Ir(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,un(this,"swapDoc",this,t),t}),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},we(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}(Oa);var $a="iter insert remove copy getEditor constructor".split(" ");for(var Ha in Do.prototype)Do.prototype.hasOwnProperty(Ha)&&U($a,Ha)<0&&(Oa.prototype[Ha]=function(e){return function(){return e.apply(this.doc,arguments)}}(Do.prototype[Ha]));return we(Do),Oa.inputStyles={textarea:Wa,contenteditable:Ka},Oa.defineMode=function(e){Oa.defaults.mode||"null"==e||(Oa.defaults.mode=e),function(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Ne[e]=t}.apply(this,arguments)},Oa.defineMIME=function(e,t){Fe[e]=t},Oa.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Oa.defineMIME("text/plain","null"),Oa.defineExtension=function(e,t){Oa.prototype[e]=t},Oa.defineDocExtension=function(e,t){Do.prototype[e]=t},Oa.fromTextArea=function(e,t){if((t=t?K(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=R(e.ownerDocument);t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=s.getValue()}var i;if(e.form&&(me(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch(e){}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(ve(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var s=Oa(function(t){return e.parentNode.insertBefore(t,e.nextSibling)},t);return s},function(e){e.off=ve,e.on=me,e.wheelEventPixels=_i,e.Doc=Do,e.splitLines=Me,e.countColumn=V,e.findColumn=Z,e.isWordChar=re,e.Pass=W,e.signal=ge,e.Line=Gt,e.changeEnd=Ai,e.scrollbarModel=Ur,e.Pos=nt,e.cmpPos=rt,e.modes=Ne,e.mimeModes=Fe,e.resolveMode=Ke,e.getMode=Ve,e.modeExtensions=ze,e.extendMode=Ue,e.copyState=qe,e.startState=$e,e.innerMode=We,e.commands=ta,e.keyMap=Uo,e.keyName=Zo,e.isModifierKey=Ho,e.lookupKey=$o,e.normalizeKeyMap=Wo,e.StringStream=He,e.SharedTextMarker=Oo,e.TextMarker=So,e.LineWidget=wo,e.e_preventDefault=xe,e.e_stopPropagation=Ce,e.e_stop=Ae,e.addClass=M,e.contains=I,e.rmClass=O,e.keyNames=Fo}(Oa),Oa.version="5.65.11",Oa})},function(e,t,n){var r=n(5),i=n(4),o=n(23),a=n(14),s=n(16),l=function(e,t,n){var c,u,d,f=e&l.F,h=e&l.G,p=e&l.S,m=e&l.P,y=e&l.B,v=e&l.W,g=h?i:i[t]||(i[t]={}),b=g.prototype,_=h?r:p?r[t]:(r[t]||{}).prototype;for(c in h&&(n=t),n)(u=!f&&_&&void 0!==_[c])&&s(g,c)||(d=u?_[c]:n[c],g[c]=h&&"function"!=typeof _[c]?n[c]:y&&u?o(d,r):v&&_[c]==d?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.prototype=e.prototype,t}(d):m&&"function"==typeof d?o(Function.call,d):d,m&&((g.virtual||(g.virtual={}))[c]=d,e&l.R&&b&&!b[c]&&a(b,c,d)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t,n){e.exports=!n(20)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(11),i=n(98),o=n(48),a=Object.defineProperty;t.f=n(9)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(15);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";t.__esModule=!0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(238));t.default=function(e,t,n){return t in e?(0,r.default)(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){var r=n(10),i=n(24);e.exports=n(9)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(100),i=n(49);e.exports=function(e){return r(i(e))}},function(e,t,n){"use strict";var r=n(41),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=d;var o=Object.create(n(32));o.inherits=n(22);var a=n(137),s=n(70);o.inherits(d,a);for(var l=i(s.prototype),c=0;c<l.length;c++){var u=l[c];d.prototype[u]||(d.prototype[u]=s.prototype[u])}function d(e){if(!(this instanceof d))return new d(e);a.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",f)}function f(){this.allowHalfOpen||this._writableState.ended||r.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(d.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(d.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),d.prototype._destroy=function(e,t){this.push(null),this.end(),r.nextTick(t,e)}},function(e,t,n){e.exports={default:n(212),__esModule:!0}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(99),i=n(54);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},function(e,t,n){var r=n(34);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)}}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=!0},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var r=n(49);e.exports=function(e){return Object(r(e))}},function(e,t){e.exports={}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){var r=n(257),i=n.n(r),o=n(260),a=n.n(o),s=n(1),l=n.n(s),c=n(66),u=n.n(c),d=n(136),f=n.n(d),h=n(277),p=n.n(h),m=n(278),y=n(279);t.default={props:{groupKey:{type:String},urlModule:{type:Object,default:function(){return{module:"file",name:"ossToken"}}},ossType:{type:String,default:"multipartUpload"}},data:function(){return{percent:0}},created:function(){},computed:{computedGroupKey:function(){return this.propsObj.groupKey||this.groupKey},computedUrlModule:function(){return this.propsObj.urlModule||this.urlModule},computedOssType:function(){return this.propsObj.ossType||this.ossType},archiveKey:function(){return this.propsObj._archiveKey||[]},percentColor:function(){return 100===this.percent?"#5cb85c":"#6090ed"}},methods:{handlePost:function(e,t){var n=this;this.$https({url:this.computedUrlModule,params:{token:this.$route.query&&this.$route.query.token},callback:function(r){n.inputType="file","ali-oss"===r.ossType?n[n.computedOssType](e,r,t):"local"===r.ossType?n.localUpload(e,r,t):"minio"===r.ossType?n.minioUpload(e,r,t):console.log("请开发这种类型‘"+r.ossType+"’的上传模式")}})},localUpload:function(e,t,n){var r=this,i={groupKey:this.computedGroupKey,archiveKey:this.archiveKey[this.archiveKey.length-1]},o=""+t.ossHost+t.uploadPath,a=new FormData;a.append("file_stream",e),f.a.post(o,a,{headers:{filetoken:t.filetoken,filebody:u()(i)},onUploadProgress:function(e){r.inProgress(Number((e.loaded/e.total*100).toFixed(0)))}}).then(function(t){r.successCb&&r.successCb(t,t.data,e),n&&n(t.data)}).catch(function(t){r.handleError&&r.handleError(t,{},e),n&&n(t)})},multipartUpload:function(e,t,n){var r=this,o=e.name.substring(e.name.lastIndexOf(".")+1).toLowerCase(),s=this.randomTimeStampFn()+"."+o,c="";if(!e.type)switch(o){case"xls":case"xlsx":c="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";break;case"doc":case"docx":c="application/msword";break;case"ppt":case"pptx":c="application/vnd.ms-powerpoint";break;default:c=""}var d={name:e.name,mimetype:e.type||c,size:e.size,path:s,bucket:t.ossConfig.bucket,filetoken:t.filetoken,groupKey:this.computedGroupKey,archiveKey:this.archiveKey[this.archiveKey.length-1]},f={callbackUrl:t.ossHost+t.confirmPath,callbackBodyType:"application/json",callbackBody:this.transferCallBody(d)},h=l()({},t.ossConfig,{refreshSTSToken:function(){var e=a()(i.a.mark(function e(){return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{accessKeyId:t.ossConfig.accessKeyId,accessKeySecret:t.ossConfig.accessKeySecret,stsToken:t.ossConfig.stsToken});case 1:case"end":return e.stop()}},e,r)}));return function(){return e.apply(this,arguments)}}(),refreshSTSTokenInterval:36e5});new p.a(h).multipartUpload(s,e,{progress:function(t){r.inProgress(Number((100*t).toFixed(0))),r.handleProgress&&r.handleProgress(t,e)},headers:{"x-oss-callback":this.base64Encode(u()(f)),"Content-Disposition":"pdf"===o?"inline;filename="+encodeURI(e.name):"attachment;filename="+encodeURI(e.name)}}).then(function(t){r.successCb&&r.successCb(t,t.data,e),n&&n(t.data)}).catch(function(t,i){r.handleError&&r.handleError(t,i,e),n&&n(t)})},minioUpload:function(t,n,r){var i=this,o=t.name.substring(t.name.lastIndexOf(".")+1).toLowerCase(),a=this.randomTimeStampFn()+"."+o,s="";if(!t.type)switch(o){case"xls":case"xlsx":s="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";break;case"doc":case"docx":s="application/msword";break;case"ppt":case"pptx":s="application/vnd.ms-powerpoint";break;default:s=""}var c=new m.Client({endPoint:n.ossConfig.endPoint,port:n.ossConfig.port,useSSL:n.ossConfig.useSSL,accessKey:window.config.minioAccessKey,secretKey:window.config.minioSecretKey}),u=t.size,d=new FileReader;d.readAsDataURL(t),d.onloadend=function(r){var o=r.target.result,d=i.toBlob(o),h=new FileReader;h.readAsArrayBuffer(d);var p={"content-type":t.type||s,"content-length":u};h.onload=function(r){var o=new y.PassThrough;o.end(e.from(r.target.result)),c.putObject(n.ossConfig.bucket,a,o,u,p,function(e,r){if(null==e){var o={name:t.name,mimetype:t.type||s,size:u,path:a,bucket:n.ossConfig.bucket,filetoken:n.filetoken,groupKey:i.computedGroupKey,archiveKey:i.archiveKey[i.archiveKey.length-1]};f.a.post(n.ossHost+n.confirmPath,l()({},o)).then(function(e){i.successCb&&i.successCb(null,e,null)})}})}}},binaryMultipartUpload:function(e,t,n){var r=this,o=this.randomTimeStampFn()+".jpg",s={name:o,mimetype:"image/jpeg",size:e.length,path:o,bucket:t.ossConfig.bucket,filetoken:t.filetoken,groupKey:this.computedGroupKey,archiveKey:this.archiveKey[this.archiveKey.length-1]},c={callbackUrl:t.ossHost+t.confirmPath,callbackBodyType:"application/json",callbackBody:this.transferCallBody(s)},d=l()({},t.ossConfig,{refreshSTSToken:function(){var e=a()(i.a.mark(function e(){return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{accessKeyId:t.ossConfig.accessKeyId,accessKeySecret:t.ossConfig.accessKeySecret,stsToken:t.ossConfig.stsToken});case 1:case"end":return e.stop()}},e,r)}));return function(){return e.apply(this,arguments)}}(),refreshSTSTokenInterval:36e5});new p.a(d).multipartUpload(o,e,{progress:function(t){r.inProgress(Number((100*t).toFixed(0))),r.handleProgress&&r.handleProgress(t,e)},headers:{"x-oss-callback":this.base64Encode(u()(c)),"Content-Disposition":"attachment;filename="+encodeURI(e.name)}}).then(function(t){r.successCb&&r.successCb(t,t.data,e),n&&n(t.data)}).catch(function(t,i){r.handleError&&r.handleError(t,i,e),n&&n(t)})},inProgress:function(e){var t=this;this.percent=e,e>=100&&(this.percent=100,setTimeout(function(){t.percent=0},500))},randomTimeStampFn:function(){var e=(new Date).getTime()+""+Math.floor(1e4*Math.random());return this.$md5(e)},transferCallBody:function(e){var t={};for(var n in e)t[n]=e[n];return u()(t)},base64Encode:function(e){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n="",r=void 0,i=void 0,o=void 0,a=void 0,s=void 0,l=void 0,c=void 0,u=0;for(e=this.utf8Encode(e);u<e.length;)a=(r=e.charCodeAt(u++))>>2,s=(3&r)<<4|(i=e.charCodeAt(u++))>>4,l=(15&i)<<2|(o=e.charCodeAt(u++))>>6,c=63&o,isNaN(i)?l=c=64:isNaN(o)&&(c=64),n=n+t.charAt(a)+t.charAt(s)+t.charAt(l)+t.charAt(c);return n},utf8Encode:function(e){e=e.replace(/\r\n/g,"\n");for(var t="",n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t+=String.fromCharCode(r):r>127&&r<2048?(t+=String.fromCharCode(r>>6|192),t+=String.fromCharCode(63&r|128)):(t+=String.fromCharCode(r>>12|224),t+=String.fromCharCode(r>>6&63|128),t+=String.fromCharCode(63&r|128))}return t},toBlob:function(e){var t=e;t=e.split(",")[0].indexOf("base64")>=0?atob(e.split(",")[1]):unescape(e.split(",")[1]);for(var n=e.split(";")[0].split(":")[1],r=new Uint8Array(t.length),i=0;i<t.length;i+=1)r[i]=t.charCodeAt(i);return new Blob([r],{type:n})}}}}.call(t,n(31).Buffer)},function(e,t,n){"use strict";(function(e){
2
2
  /*!
3
3
  * The buffer module from node.js, for the browser.
4
4
  *
@@ -23,7 +23,7 @@ var r=n(255),i=n(256),o=n(130);function a(){return l.TYPED_ARRAY_SUPPORT?2147483
23
23
  *
24
24
  * Date: 2023-01-01T10:14:49.638Z
25
25
  */
26
- !function(t,n){e.exports=n()}(0,function(){"use strict";function e(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 t(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?e(Object(r),!0).forEach(function(e){i(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):e(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function n(e){"@babel/helpers - typeof";return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(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,o(r.key),r)}}function i(e,t,n){return(t=o(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var a={backdrop:!0,button:!0,navbar:!0,title:!0,toolbar:!0,className:"",container:"body",filter:null,fullscreen:!0,inheritedAttributes:["crossOrigin","decoding","isMap","loading","referrerPolicy","sizes","srcset","useMap"],initialCoverage:.9,initialViewIndex:0,inline:!1,interval:5e3,keyboard:!0,focus:!0,loading:!0,loop:!0,minWidth:200,minHeight:100,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,slideOnTouch:!0,toggleOnDblclick:!0,tooltip:!0,transition:!0,zIndex:2015,zIndexInline:0,zoomRatio:.1,minZoomRatio:.01,maxZoomRatio:100,url:"src",ready:null,show:null,shown:null,hide:null,hidden:null,view:null,viewed:null,move:null,moved:null,rotate:null,rotated:null,scale:null,scaled:null,zoom:null,zoomed:null,play:null,stop:null},s="undefined"!=typeof window&&void 0!==window.document,l=s?window:{},c=!(!s||!l.document.documentElement)&&"ontouchstart"in l.document.documentElement,u=!!s&&"PointerEvent"in l,d="".concat("viewer","-active"),f="".concat("viewer","-close"),h="".concat("viewer","-fade"),p="".concat("viewer","-fixed"),m="".concat("viewer","-fullscreen"),y="".concat("viewer","-fullscreen-exit"),v="".concat("viewer","-hide"),g="".concat("viewer","-hide-md-down"),b="".concat("viewer","-hide-sm-down"),_="".concat("viewer","-hide-xs-down"),k="".concat("viewer","-in"),w="".concat("viewer","-invisible"),x="".concat("viewer","-loading"),C="".concat("viewer","-move"),S="".concat("viewer","-open"),A="".concat("viewer","-show"),O="".concat("viewer","-transition"),j=u?"pointerdown":c?"touchstart":"mousedown",T=u?"pointermove":c?"touchmove":"mousemove",E=u?"pointerup pointercancel":c?"touchend touchcancel":"mouseup",D="".concat("viewer","Action"),I=/\s\s*/,R=["zoom-in","zoom-out","one-to-one","reset","prev","play","next","rotate-left","rotate-right","flip-horizontal","flip-vertical"];function M(e){return"string"==typeof e}var P=Number.isNaN||l.isNaN;function L(e){return"number"==typeof e&&!P(e)}function B(e){return void 0===e}function N(e){return"object"===n(e)&&null!==e}var F=Object.prototype.hasOwnProperty;function K(e){if(!N(e))return!1;try{var t=e.constructor,n=t.prototype;return t&&n&&F.call(n,"isPrototypeOf")}catch(e){return!1}}function V(e){return"function"==typeof e}function z(e,t){if(e&&V(t))if(Array.isArray(e)||L(e.length)){var n,r=e.length;for(n=0;n<r&&!1!==t.call(e,e[n],n,e);n+=1);}else N(e)&&Object.keys(e).forEach(function(n){t.call(e,e[n],n,e)});return e}var U=Object.assign||function(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 N(e)&&n.length>0&&n.forEach(function(t){N(t)&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e},q=/^(?:width|height|left|top|marginLeft|marginTop)$/;function W(e,t){var n=e.style;z(t,function(e,t){q.test(t)&&L(e)&&(e+="px"),n[t]=e})}function $(e,t){return!(!e||!t)&&(e.classList?e.classList.contains(t):e.className.indexOf(t)>-1)}function H(e,t){if(e&&t)if(L(e.length))z(e,function(e){H(e,t)});else if(e.classList)e.classList.add(t);else{var n=e.className.trim();n?n.indexOf(t)<0&&(e.className="".concat(n," ").concat(t)):e.className=t}}function G(e,t){e&&t&&(L(e.length)?z(e,function(e){G(e,t)}):e.classList?e.classList.remove(t):e.className.indexOf(t)>=0&&(e.className=e.className.replace(t,"")))}function Z(e,t,n){t&&(L(e.length)?z(e,function(e){Z(e,t,n)}):n?H(e,t):G(e,t))}var Y=/([a-z\d])([A-Z])/g;function X(e){return e.replace(Y,"$1-$2").toLowerCase()}function J(e,t){return N(e[t])?e[t]:e.dataset?e.dataset[t]:e.getAttribute("data-".concat(X(t)))}function Q(e,t,n){N(n)?e[t]=n:e.dataset?e.dataset[t]=n:e.setAttribute("data-".concat(X(t)),n)}var ee=function(){var e=!1;if(s){var t=!1,n=function(){},r=Object.defineProperty({},"once",{get:function(){return e=!0,t},set:function(e){t=e}});l.addEventListener("test",n,r),l.removeEventListener("test",n,r)}return e}();function te(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=n;t.trim().split(I).forEach(function(t){if(!ee){var o=e.listeners;o&&o[t]&&o[t][n]&&(i=o[t][n],delete o[t][n],0===Object.keys(o[t]).length&&delete o[t],0===Object.keys(o).length&&delete e.listeners)}e.removeEventListener(t,i,r)})}function ne(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=n;t.trim().split(I).forEach(function(t){if(r.once&&!ee){var o=e.listeners,a=void 0===o?{}:o;i=function(){delete a[t][n],e.removeEventListener(t,i,r);for(var o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];n.apply(e,s)},a[t]||(a[t]={}),a[t][n]&&e.removeEventListener(t,a[t][n],r),a[t][n]=i,e.listeners=a}e.addEventListener(t,i,r)})}function re(e,n,r,i){var o;return V(Event)&&V(CustomEvent)?o=new CustomEvent(n,t({bubbles:!0,cancelable:!0,detail:r},i)):(o=document.createEvent("CustomEvent")).initCustomEvent(n,!0,!0,r),e.dispatchEvent(o)}function ie(e){var t=e.rotate,n=e.scaleX,r=e.scaleY,i=e.translateX,o=e.translateY,a=[];L(i)&&0!==i&&a.push("translateX(".concat(i,"px)")),L(o)&&0!==o&&a.push("translateY(".concat(o,"px)")),L(t)&&0!==t&&a.push("rotate(".concat(t,"deg)")),L(n)&&1!==n&&a.push("scaleX(".concat(n,")")),L(r)&&1!==r&&a.push("scaleY(".concat(r,")"));var s=a.length?a.join(" "):"none";return{WebkitTransform:s,msTransform:s,transform:s}}var oe=l.navigator&&/(Macintosh|iPhone|iPod|iPad).*AppleWebKit/i.test(l.navigator.userAgent);function ae(e,t,n){var r=document.createElement("img");if(e.naturalWidth&&!oe)return n(e.naturalWidth,e.naturalHeight),r;var i=document.body||document.documentElement;return r.onload=function(){n(r.width,r.height),oe||i.removeChild(r)},z(t.inheritedAttributes,function(t){var n=e.getAttribute(t);null!==n&&r.setAttribute(t,n)}),r.src=e.src,oe||(r.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",i.appendChild(r)),r}function se(e){switch(e){case 2:return _;case 3:return b;case 4:return g;default:return""}}function le(e,n){var r=e.pageX,i=e.pageY,o={endX:r,endY:i};return n?o:t({timeStamp:Date.now(),startX:r,startY:i},o)}var ce={render:function(){this.initContainer(),this.initViewer(),this.initList(),this.renderViewer()},initBody:function(){var e=this.element.ownerDocument,t=e.body||e.documentElement;this.body=t,this.scrollbarWidth=window.innerWidth-e.documentElement.clientWidth,this.initialBodyPaddingRight=t.style.paddingRight,this.initialBodyComputedPaddingRight=window.getComputedStyle(t).paddingRight},initContainer:function(){this.containerData={width:window.innerWidth,height:window.innerHeight}},initViewer:function(){var e,t=this.options,n=this.parent;t.inline&&(e={width:Math.max(n.offsetWidth,t.minWidth),height:Math.max(n.offsetHeight,t.minHeight)},this.parentData=e),!this.fulled&&e||(e=this.containerData),this.viewerData=U({},e)},renderViewer:function(){this.options.inline&&!this.fulled&&W(this.viewer,this.viewerData)},initList:function(){var e=this,t=this.element,n=this.options,r=this.list,i=[];r.innerHTML="",z(this.images,function(t,o){var a=t.src,s=t.alt||function(e){return M(e)?decodeURIComponent(e.replace(/^.*\//,"").replace(/[?&#].*$/,"")):""}(a),l=e.getImageURL(t);if(a||l){var c=document.createElement("li"),u=document.createElement("img");z(n.inheritedAttributes,function(e){var n=t.getAttribute(e);null!==n&&u.setAttribute(e,n)}),n.navbar&&(u.src=a||l),u.alt=s,u.setAttribute("data-original-url",l||a),c.setAttribute("data-index",o),c.setAttribute("data-viewer-action","view"),c.setAttribute("role","button"),n.keyboard&&c.setAttribute("tabindex",0),c.appendChild(u),r.appendChild(c),i.push(c)}}),this.items=i,z(i,function(t){var r,i,o=t.firstElementChild;Q(o,"filled",!0),n.loading&&H(t,x),ne(o,"load",r=function(r){te(o,"error",i),n.loading&&G(t,x),e.loadImage(r)},{once:!0}),ne(o,"error",i=function(){te(o,"load",r),n.loading&&G(t,x)},{once:!0})}),n.transition&&ne(t,"viewed",function(){H(r,O)},{once:!0})},renderList:function(){var e=this.index,t=this.items[e];if(t){var n=t.nextElementSibling,r=parseInt(window.getComputedStyle(n||t).marginLeft,10),i=t.offsetWidth,o=i+r;W(this.list,U({width:o*this.length-r},ie({translateX:(this.viewerData.width-i)/2-o*e})))}},resetList:function(){var e=this.list;e.innerHTML="",G(e,O),W(e,ie({translateX:0}))},initImage:function(e){var t,n=this,r=this.options,i=this.image,o=this.viewerData,a=this.footer.offsetHeight,s=o.width,l=Math.max(o.height-a,a),c=this.imageData||{};this.imageInitializing={abort:function(){t.onload=null}},t=ae(i,r,function(t,i){var o=t/i,a=Math.max(0,Math.min(1,r.initialCoverage)),u=s,d=l;n.imageInitializing=!1,l*o>s?d=s/o:u=l*o,a=L(a)?a:.9,u=Math.min(u*a,t),d=Math.min(d*a,i);var f=(s-u)/2,h=(l-d)/2,p={left:f,top:h,x:f,y:h,width:u,height:d,oldRatio:1,ratio:u/t,aspectRatio:o,naturalWidth:t,naturalHeight:i},m=U({},p);r.rotatable&&(p.rotate=c.rotate||0,m.rotate=0),r.scalable&&(p.scaleX=c.scaleX||1,p.scaleY=c.scaleY||1,m.scaleX=1,m.scaleY=1),n.imageData=p,n.initialImageData=m,e&&e()})},renderImage:function(e){var t=this,n=this.image,r=this.imageData;if(W(n,U({width:r.width,height:r.height,marginLeft:r.x,marginTop:r.y},ie(r))),e)if((this.viewing||this.moving||this.rotating||this.scaling||this.zooming)&&this.options.transition&&$(n,O)){var i=function(){t.imageRendering=!1,e()};this.imageRendering={abort:function(){te(n,"transitionend",i)}},ne(n,"transitionend",i,{once:!0})}else e()},resetImage:function(){if(this.viewing||this.viewed){var e=this.image;this.viewing&&this.viewing.abort(),e.parentNode.removeChild(e),this.image=null}}},ue={bind:function(){var e=this.options,t=this.viewer,n=this.canvas,r=this.element.ownerDocument;ne(t,"click",this.onClick=this.click.bind(this)),ne(t,"dragstart",this.onDragStart=this.dragstart.bind(this)),ne(n,j,this.onPointerDown=this.pointerdown.bind(this)),ne(r,T,this.onPointerMove=this.pointermove.bind(this)),ne(r,E,this.onPointerUp=this.pointerup.bind(this)),ne(r,"keydown",this.onKeyDown=this.keydown.bind(this)),ne(window,"resize",this.onResize=this.resize.bind(this)),e.zoomable&&e.zoomOnWheel&&ne(t,"wheel",this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),e.toggleOnDblclick&&ne(n,"dblclick",this.onDblclick=this.dblclick.bind(this))},unbind:function(){var e=this.options,t=this.viewer,n=this.canvas,r=this.element.ownerDocument;te(t,"click",this.onClick),te(t,"dragstart",this.onDragStart),te(n,j,this.onPointerDown),te(r,T,this.onPointerMove),te(r,E,this.onPointerUp),te(r,"keydown",this.onKeyDown),te(window,"resize",this.onResize),e.zoomable&&e.zoomOnWheel&&te(t,"wheel",this.onWheel,{passive:!1,capture:!0}),e.toggleOnDblclick&&te(n,"dblclick",this.onDblclick)}},de={click:function(e){var t=this.options,n=this.imageData,r=e.target,i=J(r,D);switch(i||"img"!==r.localName||"li"!==r.parentElement.localName||(i=J(r=r.parentElement,D)),c&&e.isTrusted&&r===this.canvas&&clearTimeout(this.clickCanvasTimeout),i){case"mix":this.played?this.stop():t.inline?this.fulled?this.exit():this.full():this.hide();break;case"hide":this.pointerMoved||this.hide();break;case"view":this.view(J(r,"index"));break;case"zoom-in":this.zoom(.1,!0);break;case"zoom-out":this.zoom(-.1,!0);break;case"one-to-one":this.toggle();break;case"reset":this.reset();break;case"prev":this.prev(t.loop);break;case"play":this.play(t.fullscreen);break;case"next":this.next(t.loop);break;case"rotate-left":this.rotate(-90);break;case"rotate-right":this.rotate(90);break;case"flip-horizontal":this.scaleX(-n.scaleX||-1);break;case"flip-vertical":this.scaleY(-n.scaleY||-1);break;default:this.played&&this.stop()}},dblclick:function(e){e.preventDefault(),this.viewed&&e.target===this.image&&(c&&e.isTrusted&&clearTimeout(this.doubleClickImageTimeout),this.toggle(e.isTrusted?e:e.detail&&e.detail.originalEvent))},load:function(){var e=this;this.timeout&&(clearTimeout(this.timeout),this.timeout=!1);var t=this.element,n=this.options,r=this.image,i=this.index,o=this.viewerData;G(r,w),n.loading&&G(this.canvas,x),r.style.cssText="height:0;"+"margin-left:".concat(o.width/2,"px;")+"margin-top:".concat(o.height/2,"px;")+"max-width:none!important;position:relative;width:0;",this.initImage(function(){Z(r,C,n.movable),Z(r,O,n.transition),e.renderImage(function(){e.viewed=!0,e.viewing=!1,V(n.viewed)&&ne(t,"viewed",n.viewed,{once:!0}),re(t,"viewed",{originalImage:e.images[i],index:i,image:r},{cancelable:!1})})})},loadImage:function(e){var t=e.target,n=t.parentNode,r=n.offsetWidth||30,i=n.offsetHeight||50,o=!!J(t,"filled");ae(t,this.options,function(e,n){var a=e/n,s=r,l=i;i*a>r?o?s=i*a:l=r/a:o?l=r/a:s=i*a,W(t,U({width:s,height:l},ie({translateX:(r-s)/2,translateY:(i-l)/2})))})},keydown:function(e){var t=this.options;if(t.keyboard){var n=e.keyCode||e.which||e.charCode;switch(n){case 13:this.viewer.contains(e.target)&&this.click(e)}if(this.fulled)switch(n){case 27:this.played?this.stop():t.inline?this.fulled&&this.exit():this.hide();break;case 32:this.played&&this.stop();break;case 37:this.played&&this.playing?this.playing.prev():this.prev(t.loop);break;case 38:e.preventDefault(),this.zoom(t.zoomRatio,!0);break;case 39:this.played&&this.playing?this.playing.next():this.next(t.loop);break;case 40:e.preventDefault(),this.zoom(-t.zoomRatio,!0);break;case 48:case 49:e.ctrlKey&&(e.preventDefault(),this.toggle())}}},dragstart:function(e){"img"===e.target.localName&&e.preventDefault()},pointerdown:function(e){var t=this.options,n=this.pointers,r=e.buttons,i=e.button;if(this.pointerMoved=!1,!(!this.viewed||this.showing||this.viewing||this.hiding||("mousedown"===e.type||"pointerdown"===e.type&&"mouse"===e.pointerType)&&(L(r)&&1!==r||L(i)&&0!==i||e.ctrlKey))){e.preventDefault(),e.changedTouches?z(e.changedTouches,function(e){n[e.identifier]=le(e)}):n[e.pointerId||0]=le(e);var o=!!t.movable&&"move";t.zoomOnTouch&&t.zoomable&&Object.keys(n).length>1?o="zoom":t.slideOnTouch&&("touch"===e.pointerType||"touchstart"===e.type)&&this.isSwitchable()&&(o="switch"),!t.transition||"move"!==o&&"zoom"!==o||G(this.image,O),this.action=o}},pointermove:function(e){var t=this.pointers,n=this.action;this.viewed&&n&&(e.preventDefault(),this.pointerMoved=!0,e.changedTouches?z(e.changedTouches,function(e){U(t[e.identifier]||{},le(e,!0))}):U(t[e.pointerId||0]||{},le(e,!0)),this.change(e))},pointerup:function(e){var t,n=this,r=this.options,i=this.action,o=this.pointers;e.changedTouches?z(e.changedTouches,function(e){t=o[e.identifier],delete o[e.identifier]}):(t=o[e.pointerId||0],delete o[e.pointerId||0]),i&&(e.preventDefault(),!r.transition||"move"!==i&&"zoom"!==i||H(this.image,O),this.action=!1,c&&"zoom"!==i&&t&&Date.now()-t.timeStamp<500&&(clearTimeout(this.clickCanvasTimeout),clearTimeout(this.doubleClickImageTimeout),r.toggleOnDblclick&&this.viewed&&e.target===this.image?this.imageClicked?(this.imageClicked=!1,this.doubleClickImageTimeout=setTimeout(function(){re(n.image,"dblclick",{originalEvent:e})},50)):(this.imageClicked=!0,this.doubleClickImageTimeout=setTimeout(function(){n.imageClicked=!1},500)):(this.imageClicked=!1,r.backdrop&&"static"!==r.backdrop&&e.target===this.canvas&&(this.clickCanvasTimeout=setTimeout(function(){re(n.canvas,"click",{originalEvent:e})},50)))))},resize:function(){var e=this;if(this.isShown&&!this.hiding&&(this.fulled&&(this.close(),this.initBody(),this.open()),this.initContainer(),this.initViewer(),this.renderViewer(),this.renderList(),this.viewed&&this.initImage(function(){e.renderImage()}),this.played)){if(this.options.fullscreen&&this.fulled&&!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement))return void this.stop();z(this.player.getElementsByTagName("img"),function(t){ne(t,"load",e.loadImage.bind(e),{once:!0}),re(t,"load")})}},wheel:function(e){var t=this;if(this.viewed&&(e.preventDefault(),!this.wheeling)){this.wheeling=!0,setTimeout(function(){t.wheeling=!1},50);var n=Number(this.options.zoomRatio)||.1,r=1;e.deltaY?r=e.deltaY>0?1:-1:e.wheelDelta?r=-e.wheelDelta/120:e.detail&&(r=e.detail>0?1:-1),this.zoom(-r*n,!0,null,e)}}},fe={show:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.element,n=this.options;if(n.inline||this.showing||this.isShown||this.showing)return this;if(!this.ready)return this.build(),this.ready&&this.show(e),this;if(V(n.show)&&ne(t,"show",n.show,{once:!0}),!1===re(t,"show")||!this.ready)return this;this.hiding&&this.transitioning.abort(),this.showing=!0,this.open();var r=this.viewer;if(G(r,v),r.setAttribute("role","dialog"),r.setAttribute("aria-labelledby",this.title.id),r.setAttribute("aria-modal",!0),r.removeAttribute("aria-hidden"),n.transition&&!e){var i=this.shown.bind(this);this.transitioning={abort:function(){te(r,"transitionend",i),G(r,k)}},H(r,O),r.initialOffsetWidth=r.offsetWidth,ne(r,"transitionend",i,{once:!0}),H(r,k)}else H(r,k),this.shown();return this},hide:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.element,r=this.options;if(r.inline||this.hiding||!this.isShown&&!this.showing)return this;if(V(r.hide)&&ne(n,"hide",r.hide,{once:!0}),!1===re(n,"hide"))return this;this.showing&&this.transitioning.abort(),this.hiding=!0,this.played?this.stop():this.viewing&&this.viewing.abort();var i=this.viewer,o=this.image,a=function(){G(i,k),e.hidden()};if(r.transition&&!t){var s=function t(n){n&&n.target===i&&(te(i,"transitionend",t),e.hidden())},l=function(){$(i,O)?(ne(i,"transitionend",s),G(i,k)):a()};this.transitioning={abort:function(){e.viewed&&$(o,O)?te(o,"transitionend",l):$(i,O)&&te(i,"transitionend",s)}},this.viewed&&$(o,O)?(ne(o,"transitionend",l,{once:!0}),this.zoomTo(0,!1,null,null,!0)):l()}else a();return this},view:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.initialViewIndex;if(t=Number(t)||0,this.hiding||this.played||t<0||t>=this.length||this.viewed&&t===this.index)return this;if(!this.isShown)return this.index=t,this.show();this.viewing&&this.viewing.abort();var n=this.element,r=this.options,i=this.title,o=this.canvas,a=this.items[t],s=a.querySelector("img"),l=J(s,"originalUrl"),c=s.getAttribute("alt"),u=document.createElement("img");if(z(r.inheritedAttributes,function(e){var t=s.getAttribute(e);null!==t&&u.setAttribute(e,t)}),u.src=l,u.alt=c,V(r.view)&&ne(n,"view",r.view,{once:!0}),!1===re(n,"view",{originalImage:this.images[t],index:t,image:u})||!this.isShown||this.hiding||this.played)return this;var f=this.items[this.index];f&&(G(f,d),f.removeAttribute("aria-selected")),H(a,d),a.setAttribute("aria-selected",!0),r.focus&&a.focus(),this.image=u,this.viewed=!1,this.index=t,this.imageData={},H(u,w),r.loading&&H(o,x),o.innerHTML="",o.appendChild(u),this.renderList(),i.innerHTML="";var h,p,m=function(){var t=e.imageData,n=Array.isArray(r.title)?r.title[1]:r.title;i.innerHTML=function(e){return M(e)?e.replace(/&(?!amp;|quot;|#39;|lt;|gt;)/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;"):e}(V(n)?n.call(e,u,t):"".concat(c," (").concat(t.naturalWidth," × ").concat(t.naturalHeight,")"))};return ne(n,"viewed",m,{once:!0}),this.viewing={abort:function(){te(n,"viewed",m),u.complete?e.imageRendering?e.imageRendering.abort():e.imageInitializing&&e.imageInitializing.abort():(u.src="",te(u,"load",h),e.timeout&&clearTimeout(e.timeout))}},u.complete?this.load():(ne(u,"load",h=function(){te(u,"error",p),e.load()},{once:!0}),ne(u,"error",p=function(){te(u,"load",h),e.timeout&&(clearTimeout(e.timeout),e.timeout=!1),G(u,w),r.loading&&G(e.canvas,x)},{once:!0}),this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(function(){G(u,w),e.timeout=!1},1e3)),this},prev:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.index-1;return t<0&&(t=e?this.length-1:0),this.view(t),this},next:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.length-1,n=this.index+1;return n>t&&(n=e?0:t),this.view(n),this},move:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=this.imageData;return this.moveTo(B(e)?e:n.x+Number(e),B(t)?t:n.y+Number(t)),this},moveTo:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=this.element,o=this.options,a=this.imageData;if(e=Number(e),n=Number(n),this.viewed&&!this.played&&o.movable){var s=a.x,l=a.y,c=!1;if(L(e)?c=!0:e=s,L(n)?c=!0:n=l,c){if(V(o.move)&&ne(i,"move",o.move,{once:!0}),!1===re(i,"move",{x:e,y:n,oldX:s,oldY:l,originalEvent:r}))return this;a.x=e,a.y=n,a.left=e,a.top=n,this.moving=!0,this.renderImage(function(){t.moving=!1,V(o.moved)&&ne(i,"moved",o.moved,{once:!0}),re(i,"moved",{x:e,y:n,oldX:s,oldY:l,originalEvent:r},{cancelable:!1})})}}return this},rotate:function(e){return this.rotateTo((this.imageData.rotate||0)+Number(e)),this},rotateTo:function(e){var t=this,n=this.element,r=this.options,i=this.imageData;if(L(e=Number(e))&&this.viewed&&!this.played&&r.rotatable){var o=i.rotate;if(V(r.rotate)&&ne(n,"rotate",r.rotate,{once:!0}),!1===re(n,"rotate",{degree:e,oldDegree:o}))return this;i.rotate=e,this.rotating=!0,this.renderImage(function(){t.rotating=!1,V(r.rotated)&&ne(n,"rotated",r.rotated,{once:!0}),re(n,"rotated",{degree:e,oldDegree:o},{cancelable:!1})})}return this},scaleX:function(e){return this.scale(e,this.imageData.scaleY),this},scaleY:function(e){return this.scale(this.imageData.scaleX,e),this},scale:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=this.element,i=this.options,o=this.imageData;if(e=Number(e),n=Number(n),this.viewed&&!this.played&&i.scalable){var a=o.scaleX,s=o.scaleY,l=!1;if(L(e)?l=!0:e=a,L(n)?l=!0:n=s,l){if(V(i.scale)&&ne(r,"scale",i.scale,{once:!0}),!1===re(r,"scale",{scaleX:e,scaleY:n,oldScaleX:a,oldScaleY:s}))return this;o.scaleX=e,o.scaleY=n,this.scaling=!0,this.renderImage(function(){t.scaling=!1,V(i.scaled)&&ne(r,"scaled",i.scaled,{once:!0}),re(r,"scaled",{scaleX:e,scaleY:n,oldScaleX:a,oldScaleY:s},{cancelable:!1})})}}return this},zoom:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=this.imageData;return e=(e=Number(e))<0?1/(1-e):1+e,this.zoomTo(i.width*e/i.naturalWidth,t,n,r),this},zoomTo:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=this.element,s=this.options,l=this.pointers,c=this.imageData,u=c.x,d=c.y,f=c.width,h=c.height,p=c.naturalWidth,m=c.naturalHeight;if(L(e=Math.max(0,e))&&this.viewed&&!this.played&&(o||s.zoomable)){if(!o){var y=Math.max(.01,s.minZoomRatio),v=Math.min(100,s.maxZoomRatio);e=Math.min(Math.max(e,y),v)}if(i)switch(i.type){case"wheel":s.zoomRatio>=.055&&e>.95&&e<1.05&&(e=1);break;case"pointermove":case"touchmove":case"mousemove":e>.99&&e<1.01&&(e=1)}var g=p*e,b=m*e,_=g-f,k=b-h,w=c.ratio;if(V(s.zoom)&&ne(a,"zoom",s.zoom,{once:!0}),!1===re(a,"zoom",{ratio:e,oldRatio:w,originalEvent:i}))return this;if(this.zooming=!0,i){var x=function(e){var t=e.getBoundingClientRect();return{left:t.left+(window.pageXOffset-document.documentElement.clientLeft),top:t.top+(window.pageYOffset-document.documentElement.clientTop)}}(this.viewer),C=l&&Object.keys(l).length>0?function(e){var t=0,n=0,r=0;return z(e,function(e){var i=e.startX,o=e.startY;t+=i,n+=o,r+=1}),{pageX:t/=r,pageY:n/=r}}(l):{pageX:i.pageX,pageY:i.pageY};c.x-=_*((C.pageX-x.left-u)/f),c.y-=k*((C.pageY-x.top-d)/h)}else K(r)&&L(r.x)&&L(r.y)?(c.x-=_*((r.x-u)/f),c.y-=k*((r.y-d)/h)):(c.x-=_/2,c.y-=k/2);c.left=c.x,c.top=c.y,c.width=g,c.height=b,c.oldRatio=w,c.ratio=e,this.renderImage(function(){t.zooming=!1,V(s.zoomed)&&ne(a,"zoomed",s.zoomed,{once:!0}),re(a,"zoomed",{ratio:e,oldRatio:w,originalEvent:i},{cancelable:!1})}),n&&this.tooltip()}return this},play:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.isShown||this.played)return this;var n=this.element,r=this.options;if(V(r.play)&&ne(n,"play",r.play,{once:!0}),!1===re(n,"play"))return this;var i=this.player,o=this.loadImage.bind(this),a=[],s=0,l=0;if(this.played=!0,this.onLoadWhenPlay=o,t&&this.requestFullscreen(t),H(i,A),z(this.items,function(e,t){var n=e.querySelector("img"),c=document.createElement("img");c.src=J(n,"originalUrl"),c.alt=n.getAttribute("alt"),c.referrerPolicy=n.referrerPolicy,s+=1,H(c,h),Z(c,O,r.transition),$(e,d)&&(H(c,k),l=t),a.push(c),ne(c,"load",o,{once:!0}),i.appendChild(c)}),L(r.interval)&&r.interval>0){var c=function t(){clearTimeout(e.playing.timeout),G(a[l],k),H(a[l=(l+=1)<s?l:0],k),e.playing.timeout=setTimeout(t,r.interval)};s>1&&(this.playing={prev:function t(){clearTimeout(e.playing.timeout),G(a[l],k),H(a[l=(l-=1)>=0?l:s-1],k),e.playing.timeout=setTimeout(t,r.interval)},next:c,timeout:setTimeout(c,r.interval)})}return this},stop:function(){var e=this;if(!this.played)return this;var t=this.element,n=this.options;if(V(n.stop)&&ne(t,"stop",n.stop,{once:!0}),!1===re(t,"stop"))return this;var r=this.player;return clearTimeout(this.playing.timeout),this.playing=!1,this.played=!1,z(r.getElementsByTagName("img"),function(t){te(t,"load",e.onLoadWhenPlay)}),G(r,A),r.innerHTML="",this.exitFullscreen(),this},full:function(){var e=this,t=this.options,n=this.viewer,r=this.image,i=this.list;return!this.isShown||this.played||this.fulled||!t.inline?this:(this.fulled=!0,this.open(),H(this.button,y),t.transition&&(G(i,O),this.viewed&&G(r,O)),H(n,p),n.setAttribute("role","dialog"),n.setAttribute("aria-labelledby",this.title.id),n.setAttribute("aria-modal",!0),n.removeAttribute("style"),W(n,{zIndex:t.zIndex}),t.focus&&this.enforceFocus(),this.initContainer(),this.viewerData=U({},this.containerData),this.renderList(),this.viewed&&this.initImage(function(){e.renderImage(function(){t.transition&&setTimeout(function(){H(r,O),H(i,O)},0)})}),this)},exit:function(){var e=this,t=this.options,n=this.viewer,r=this.image,i=this.list;return this.isShown&&!this.played&&this.fulled&&t.inline?(this.fulled=!1,this.close(),G(this.button,y),t.transition&&(G(i,O),this.viewed&&G(r,O)),t.focus&&this.clearEnforceFocus(),n.removeAttribute("role"),n.removeAttribute("aria-labelledby"),n.removeAttribute("aria-modal"),G(n,p),W(n,{zIndex:t.zIndexInline}),this.viewerData=U({},this.parentData),this.renderViewer(),this.renderList(),this.viewed&&this.initImage(function(){e.renderImage(function(){t.transition&&setTimeout(function(){H(r,O),H(i,O)},0)})}),this):this},tooltip:function(){var e=this,t=this.options,n=this.tooltipBox,r=this.imageData;return this.viewed&&!this.played&&t.tooltip?(n.textContent="".concat(Math.round(100*r.ratio),"%"),this.tooltipping?clearTimeout(this.tooltipping):t.transition?(this.fading&&re(n,"transitionend"),H(n,A),H(n,h),H(n,O),n.removeAttribute("aria-hidden"),n.initialOffsetWidth=n.offsetWidth,H(n,k)):(H(n,A),n.removeAttribute("aria-hidden")),this.tooltipping=setTimeout(function(){t.transition?(ne(n,"transitionend",function(){G(n,A),G(n,h),G(n,O),n.setAttribute("aria-hidden",!0),e.fading=!1},{once:!0}),G(n,k),e.fading=!0):(G(n,A),n.setAttribute("aria-hidden",!0)),e.tooltipping=!1},1e3),this):this},toggle:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return 1===this.imageData.ratio?this.zoomTo(this.imageData.oldRatio,!0,null,e):this.zoomTo(1,!0,null,e),this},reset:function(){return this.viewed&&!this.played&&(this.imageData=U({},this.initialImageData),this.renderImage()),this},update:function(){var e=this,t=this.element,n=this.options,r=this.isImg;if(r&&!t.parentNode)return this.destroy();var i=[];if(z(r?[t]:t.querySelectorAll("img"),function(t){V(n.filter)?n.filter.call(e,t)&&i.push(t):e.getImageURL(t)&&i.push(t)}),!i.length)return this;if(this.images=i,this.length=i.length,this.ready){var o=[];if(z(this.items,function(e,t){var n=e.querySelector("img"),r=i[t];r&&n&&r.src===n.src&&r.alt===n.alt||o.push(t)}),W(this.list,{width:"auto"}),this.initList(),this.isShown)if(this.length){if(this.viewed){var a=o.indexOf(this.index);if(a>=0)this.viewed=!1,this.view(Math.max(Math.min(this.index-a,this.length-1),0));else{var s=this.items[this.index];H(s,d),s.setAttribute("aria-selected",!0)}}}else this.image=null,this.viewed=!1,this.index=0,this.imageData={},this.canvas.innerHTML="",this.title.innerHTML=""}else this.build();return this},destroy:function(){var e=this.element,t=this.options;return e.viewer?(this.destroyed=!0,this.ready?(this.played&&this.stop(),t.inline?(this.fulled&&this.exit(),this.unbind()):this.isShown?(this.viewing&&(this.imageRendering?this.imageRendering.abort():this.imageInitializing&&this.imageInitializing.abort()),this.hiding&&this.transitioning.abort(),this.hidden()):this.showing&&(this.transitioning.abort(),this.hidden()),this.ready=!1,this.viewer.parentNode.removeChild(this.viewer)):t.inline&&(this.delaying?this.delaying.abort():this.initializing&&this.initializing.abort()),t.inline||te(e,"click",this.onStart),e.viewer=void 0,this):this}},he={getImageURL:function(e){var t=this.options.url;return t=M(t)?e.getAttribute(t):V(t)?t.call(this,e):""},enforceFocus:function(){var e=this;this.clearEnforceFocus(),ne(document,"focusin",this.onFocusin=function(t){var n=e.viewer,r=t.target;if(r!==document&&r!==n&&!n.contains(r)){for(;r;){if(null!==r.getAttribute("tabindex")||"true"===r.getAttribute("aria-modal"))return;r=r.parentElement}n.focus()}})},clearEnforceFocus:function(){this.onFocusin&&(te(document,"focusin",this.onFocusin),this.onFocusin=null)},open:function(){var e=this.body;H(e,S),this.scrollbarWidth>0&&(e.style.paddingRight="".concat(this.scrollbarWidth+(parseFloat(this.initialBodyComputedPaddingRight)||0),"px"))},close:function(){var e=this.body;G(e,S),this.scrollbarWidth>0&&(e.style.paddingRight=this.initialBodyPaddingRight)},shown:function(){var e=this.element,t=this.options,n=this.viewer;this.fulled=!0,this.isShown=!0,this.render(),this.bind(),this.showing=!1,t.focus&&(n.focus(),this.enforceFocus()),V(t.shown)&&ne(e,"shown",t.shown,{once:!0}),!1!==re(e,"shown")&&this.ready&&this.isShown&&!this.hiding&&this.view(this.index)},hidden:function(){var e=this.element,t=this.options,n=this.viewer;t.fucus&&this.clearEnforceFocus(),this.fulled=!1,this.viewed=!1,this.isShown=!1,this.close(),this.unbind(),H(n,v),n.removeAttribute("role"),n.removeAttribute("aria-labelledby"),n.removeAttribute("aria-modal"),n.setAttribute("aria-hidden",!0),this.resetList(),this.resetImage(),this.hiding=!1,this.destroyed||(V(t.hidden)&&ne(e,"hidden",t.hidden,{once:!0}),re(e,"hidden",null,{cancelable:!1}))},requestFullscreen:function(e){var t=this.element.ownerDocument;if(this.fulled&&!(t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement)){var n=t.documentElement;n.requestFullscreen?K(e)?n.requestFullscreen(e):n.requestFullscreen():n.webkitRequestFullscreen?n.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):n.mozRequestFullScreen?n.mozRequestFullScreen():n.msRequestFullscreen&&n.msRequestFullscreen()}},exitFullscreen:function(){var e=this.element.ownerDocument;this.fulled&&(e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement)&&(e.exitFullscreen?e.exitFullscreen():e.webkitExitFullscreen?e.webkitExitFullscreen():e.mozCancelFullScreen?e.mozCancelFullScreen():e.msExitFullscreen&&e.msExitFullscreen())},change:function(e){var n=this.options,r=this.pointers,i=r[Object.keys(r)[0]];if(i){var o=i.endX-i.startX,a=i.endY-i.startY;switch(this.action){case"move":this.move(o,a,e);break;case"zoom":this.zoom(function(e){var n=t({},e),r=[];return z(e,function(e,t){delete n[t],z(n,function(t){var n=Math.abs(e.startX-t.startX),i=Math.abs(e.startY-t.startY),o=Math.abs(e.endX-t.endX),a=Math.abs(e.endY-t.endY),s=Math.sqrt(n*n+i*i),l=(Math.sqrt(o*o+a*a)-s)/s;r.push(l)})}),r.sort(function(e,t){return Math.abs(e)<Math.abs(t)}),r[0]}(r),!1,null,e);break;case"switch":this.action="switched";var s=Math.abs(o);s>1&&s>Math.abs(a)&&(this.pointers={},o>1?this.prev(n.loop):o<-1&&this.next(n.loop))}z(r,function(e){e.startX=e.endX,e.startY=e.endY})}},isSwitchable:function(){var e=this.imageData,t=this.viewerData;return this.length>1&&e.x>=0&&e.y>=0&&e.width<=t.width&&e.height<=t.height}},pe=l.Viewer,me=function(e){return function(){return e+=1}}(-1),ye=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t||1!==t.nodeType)throw new Error("The first argument is required and must be an element.");this.element=t,this.options=U({},a,K(n)&&n),this.action=!1,this.fading=!1,this.fulled=!1,this.hiding=!1,this.imageClicked=!1,this.imageData={},this.index=this.options.initialViewIndex,this.isImg=!1,this.isShown=!1,this.length=0,this.moving=!1,this.played=!1,this.playing=!1,this.pointers={},this.ready=!1,this.rotating=!1,this.scaling=!1,this.showing=!1,this.timeout=!1,this.tooltipping=!1,this.viewed=!1,this.viewing=!1,this.wheeling=!1,this.zooming=!1,this.pointerMoved=!1,this.id=me(),this.init()}return function(e,t,n){t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1})}(e,[{key:"init",value:function(){var e=this,t=this.element,n=this.options;if(!t.viewer){t.viewer=this,n.focus&&!n.keyboard&&(n.focus=!1);var r="img"===t.localName,i=[];if(z(r?[t]:t.querySelectorAll("img"),function(t){V(n.filter)?n.filter.call(e,t)&&i.push(t):e.getImageURL(t)&&i.push(t)}),this.isImg=r,this.length=i.length,this.images=i,this.initBody(),B(document.createElement("viewer").style.transition)&&(n.transition=!1),n.inline){var o=0,a=function(){var t;(o+=1)===e.length&&(e.initializing=!1,e.delaying={abort:function(){clearTimeout(t)}},t=setTimeout(function(){e.delaying=!1,e.build()},0))};this.initializing={abort:function(){z(i,function(e){e.complete||(te(e,"load",a),te(e,"error",a))})}},z(i,function(e){var t,n;e.complete?a():(ne(e,"load",t=function(){te(e,"error",n),a()},{once:!0}),ne(e,"error",n=function(){te(e,"load",t),a()},{once:!0}))})}else ne(t,"click",this.onStart=function(t){var r=t.target;"img"!==r.localName||V(n.filter)&&!n.filter.call(e,r)||e.view(e.images.indexOf(r))})}}},{key:"build",value:function(){if(!this.ready){var e=this.element,t=this.options,n=e.parentNode,r=document.createElement("div");r.innerHTML='<div class="viewer-container" tabindex="-1" touch-action="none"><div class="viewer-canvas"></div><div class="viewer-footer"><div class="viewer-title"></div><div class="viewer-toolbar"></div><div class="viewer-navbar"><ul class="viewer-list" role="navigation"></ul></div></div><div class="viewer-tooltip" role="alert" aria-hidden="true"></div><div class="viewer-button" data-viewer-action="mix" role="button"></div><div class="viewer-player"></div></div>';var i=r.querySelector(".".concat("viewer","-container")),o=i.querySelector(".".concat("viewer","-title")),a=i.querySelector(".".concat("viewer","-toolbar")),s=i.querySelector(".".concat("viewer","-navbar")),l=i.querySelector(".".concat("viewer","-button")),c=i.querySelector(".".concat("viewer","-canvas"));if(this.parent=n,this.viewer=i,this.title=o,this.toolbar=a,this.navbar=s,this.button=l,this.canvas=c,this.footer=i.querySelector(".".concat("viewer","-footer")),this.tooltipBox=i.querySelector(".".concat("viewer","-tooltip")),this.player=i.querySelector(".".concat("viewer","-player")),this.list=i.querySelector(".".concat("viewer","-list")),i.id="".concat("viewer").concat(this.id),o.id="".concat("viewer","Title").concat(this.id),H(o,t.title?se(Array.isArray(t.title)?t.title[0]:t.title):v),H(s,t.navbar?se(t.navbar):v),Z(l,v,!t.button),t.keyboard&&l.setAttribute("tabindex",0),t.backdrop&&(H(i,"".concat("viewer","-backdrop")),t.inline||"static"===t.backdrop||Q(c,D,"hide")),M(t.className)&&t.className&&t.className.split(I).forEach(function(e){H(i,e)}),t.toolbar){var u=document.createElement("ul"),d=K(t.toolbar),y=R.slice(0,3),g=R.slice(7,9),b=R.slice(9);d||H(a,se(t.toolbar)),z(d?t.toolbar:R,function(e,n){var r=d&&K(e),i=d?X(n):e,o=r&&!B(e.show)?e.show:e;if(o&&(t.zoomable||-1===y.indexOf(i))&&(t.rotatable||-1===g.indexOf(i))&&(t.scalable||-1===b.indexOf(i))){var a=r&&!B(e.size)?e.size:e,s=r&&!B(e.click)?e.click:e,l=document.createElement("li");t.keyboard&&l.setAttribute("tabindex",0),l.setAttribute("role","button"),H(l,"".concat("viewer","-").concat(i)),V(s)||Q(l,D,i),L(o)&&H(l,se(o)),-1!==["small","large"].indexOf(a)?H(l,"".concat("viewer","-").concat(a)):"play"===i&&H(l,"".concat("viewer","-large")),V(s)&&ne(l,"click",s),u.appendChild(l)}}),a.appendChild(u)}else H(a,v);if(!t.rotatable){var _=a.querySelectorAll('li[class*="rotate"]');H(_,w),z(_,function(e){a.appendChild(e)})}if(t.inline)H(l,m),W(i,{zIndex:t.zIndexInline}),"static"===window.getComputedStyle(n).position&&W(n,{position:"relative"}),n.insertBefore(i,e.nextSibling);else{H(l,f),H(i,p),H(i,h),H(i,v),W(i,{zIndex:t.zIndex});var k=t.container;M(k)&&(k=e.ownerDocument.querySelector(k)),k||(k=this.body),k.appendChild(i)}t.inline&&(this.render(),this.bind(),this.isShown=!0),this.ready=!0,V(t.ready)&&ne(e,"ready",t.ready,{once:!0}),!1!==re(e,"ready")?this.ready&&t.inline&&this.view(this.index):this.ready=!1}}}],[{key:"noConflict",value:function(){return window.Viewer=pe,e}},{key:"setDefaults",value:function(e){U(a,K(e)&&e)}}]),e}();return U(ye.prototype,ce,ue,de,fe,he),ye})},function(e,t,n){"use strict";var r=n(36),i=n.n(r),o=n(143),a=n.n(o),s=n(136),l=n.n(s);t.a={name:"uploadList",props:{canEdit:{type:Boolean,default:!0},files:{type:Array,default:function(){return[]}},showType:{type:String,default:"old"},emptyShowVal:String,propsObj:{type:Object,default:function(){return{}}}},computed:{operationMap:function(){return{remove:{name:"删除",icon:"ios-trash-outline",size:"16",event:"clickDeleteItem",canShow:this.canEdit},download:{name:"下载",icon:"ios-cloud-download-outline",size:"14",event:"handleDownload",canShow:!0},preview:{name:"预览",icon:"ios-eye-outline",size:"22",type:"updateColor",event:"clickPreview",canShow:void 0}}},imageResizeConfig:function(){return{}},noText:function(){return this.files&&this.files.length?"":this.canEdit?"未上传"+("image"===this.propsObj._fileType?"图片":"文件")+" ":this.emptyShowVal}},data:function(){return{}},methods:{getBtns:function(e){var t=this;return this.operationMap.preview.canShow=e,i()(this.operationMap).filter(function(e){return t.operationMap[e].canShow})},clickDeleteItem:function(e,t){this.$emit("deleteItem",t)},clickPreview:function(e,t){"image"===this.propsObj._fileType?this.previewImage(t.url):t.mimetype.indexOf("image")>-1?this.previewImage(t.url):window.open(t.url)},previewImage:function(e){var t=this.$refs.viewerImage,n=this.files.filter(function(e){return e.mimetype.indexOf("image")>-1}).findIndex(function(t){return t.url===e}),r=new a.a(t,{url:"data-original",hidden:function(){r.destroy()},loop:!1,initialViewIndex:n,zIndex:2147483647});r.show()},handleDownload:function(e,t){l.a.get(t.url,{responseType:"blob"}).then(function(e){if(window.navigator.msSaveOrOpenBlob)navigator.msSaveBlob(e,t.name);else{var n=URL.createObjectURL(e.data),r=document.createElement("a");r.style.display="none",r.href=n,r.download=t.name,r.click(),URL.revokeObjectURL(r.href),r.remove()}})},getFileImage:function(e){return e.mimetype?e.mimetype.indexOf("image")>-1?e.url:e.mimetype.indexOf("text/plain")>-1?this.$imageSrcMap.fileType.text:e.mimetype.indexOf("application/pdf")>-1?this.$imageSrcMap.fileType.pdf:e.mimetype.indexOf("wordprocessingml.document")>-1||e.mimetype.indexOf("application/msword")>-1?this.$imageSrcMap.fileType.doc:e.mimetype.indexOf("presentationml.presentation")>-1||e.mimetype.indexOf("application/vnd.ms-powerpoint")>-1?this.$imageSrcMap.fileType.ppt:e.mimetype.indexOf("spreadsheetml.sheet")>-1?this.$imageSrcMap.fileType.excel:e.mimetype.indexOf("application/x-zip-compressed")>-1?this.$imageSrcMap.fileType.zip:e.mimetype.indexOf("application/x-rar-compressed")>-1?this.$imageSrcMap.fileType.rar:this.$imageSrcMap.fileType.other:this.$imageSrcMap.fileType.other}}}},function(e,t,n){"use strict";var r=n(66),i=n.n(r),o=n(2),a=n.n(o),s=n(1),l=n.n(s),c=n(33),u=(n.n(c),n(3)),d=n(73);t.a={name:"DshCascader",mixins:[u.default],components:{InfoCascader:d.default},props:{},data:function(){return{renderDataFlag:!0,clickInputFlag:!0,isVisible:!1,multipleSelectVal:[],selectVal:[],showModal:!1}},computed:{selfPropsObj:function(){var e=this;return l()({_showMode:!1,_changeOnSelect:!1,_filterable:!0,_renderFormat:function(t){return t.join(e.propsObj._joinSymbol||"/")},_transfer:!0},this.propsObj,this.commonDealPropsObj)},multipleMode:function(){return["regions","cascaders"].includes(this.propsObj._type)},showMode:function(){return this.selfPropsObj._showMode},inputIcon:function(){return this.isVisible?"ios-arrow-up":"ios-arrow-down"},cascaderData:{get:function(){return function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments[1],r=arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return t&&i.length&&(t=t.filter(function(e){return i.includes(e._key)})),t?t.reduce(function(t,i){var o=l()({},i,{value:i._key,label:i.name,codeArr:[].concat(a()(r||[]),[i._key])});return!n||n>i.level?(o.children=e(i.children,n,o.codeArr),o.children.length&&(o.loading=!1)):o.children=[],t.push(o),t},[]):[]}(["region","regions"].includes(this.propsObj._type)?c.regionData:this.selfPropsObj._data,this.selfPropsObj._cascaderLevel,void 0,this.selfPropsObj._cascaderFilterVals)},set:function(){}},renderCascaderData:function(){return this.renderDataFlag?this.cascaderData.map(function(e){return l()({},e,{children:[]})}):this.cascaderData},curValName:function(){return this.$getTreeLinealDatas(this.curValList,this.cascaderData,"name").join("/")},showVal:function(){return this.$isEmptyData(this.curValList)?this.emptyShowVal:this.curValName},curValNameList:function(){var e=this;return this.curValList.map(function(t){return e.$getTreeLinealDatas(t,e.cascaderData,"name").join("/")})},showMultipleVal:function(){return this.$isEmptyData(this.curValList)?this.emptyShowVal:this.curValNameList.join("、")}},created:function(){},methods:{loadData:function(e,t){var n=this.$getTreeLinealDatas(e.codeArr,this.cascaderData);e.children=n[n.length-1].children.map(function(e){return l()({},e,{children:[]})}),t()},clickClear:function(){this.curValList=[]},clickInput:function(e){this.finalCanEdit||e.stopPropagation()},multipleVisibleChange:function(e){var t=this;this.isVisible=e,!1===e&&(this.selectVal.length&&(this.curValList.some(function(e){return i()(e)==i()(t.selectVal)})?this.$Message.error({content:'"'+this.$getTreeLinealDatas(this.selectVal,this.cascaderData,"name").join("/")+'"已选择,请勿重复选择!',duration:5}):this.curValList=[].concat(a()(this.curValList),[this.selectVal])),this.selectVal=[],this.multipleSelectVal=[])},createItem:function(e){this.isVisible&&(this.selectVal=e)},clickDeleteItem:function(e,t){this.curValList.splice(t,1),this.curValList=[].concat(a()(this.curValList))},openModal:function(){this.finalCanEdit&&(this.showModal=!0)},toggleModal:function(e){this.showModal=e},clickCascader:function(){var e=this;this.finalCanEdit&&["cascader"].includes(this.selfPropsObj._type)&&!0===this.selfPropsObj._filterable&&!0===this.renderDataFlag&&!0===this.clickInputFlag&&(this.clickInputFlag=!1,setTimeout(function(){e.renderDataFlag=!1},0))},visibleChange:function(e){var t=this;e?this.isVisible=e:setTimeout(function(){t.isVisible=e},0)},changeVal:function(e){!this.isVisible&&e.length||(this.curValList=e)}},watch:{"propsObj._cascaderLevel":function(){this.value[this.controlKey]=[]}}}},function(e,t,n){"use strict";var r=n(74),i=n.n(r),o=n(1),a=n.n(o);t.a={name:"InfoCascader",props:{showModal:Boolean,value:{type:Array,default:function(){return[]}},data:{type:Array,default:function(){return[]}},propsObj:{type:Object,default:function(){return{}}}},data:function(){return{description:"",operationMap:{cancel:{name:"取消",type:"clickCancel",event:"clickCancel",class:"z-default"},confirm:{name:"确定",btnType:"primary",type:"clickConfirm",event:"clickConfirm",class:"z-primary"}},curSelect:{},curName:"",searchData:{search:""},inputPropsObj:{_key:"search",_name:"关键字搜索"},show:!0}},computed:{modalVal:{get:function(){return this.showModal},set:function(e){this.$emit("changeShowModal",e)}},modalPropsObj:function(){return{title:this.propsObj._name}},initData:function(){return this.loop(this.data,null,this.value)},treeData:function(){if(!this.searchData.search)return this.initData;var e=this;return function t(n,r){e.show=!1;var i=[];return r.forEach(function(e){if(e.children&&e.children.length){var r=t(n,e.children),o=a()({},e,{expand:!0,children:r});r&&r.length?i.push(o):e.title.indexOf(n)>-1&&(e.expand=!0,i.push(e))}else e.title.indexOf(n)>-1&&i.push(e)}),e.show=!0,i}(this.searchData.search,this.initData)}},created:function(){var e=this;if(this.curSelect.codeArr=this.value,this.value&&this.value.length){!function t(n){var r=!0,o=!1,a=void 0;try{for(var s,l=i()(n);!(r=(s=l.next()).done);r=!0){var c=s.value;if(c.codeArr.length==e.value.length&&c.codeArr.every(function(t,n){return t===e.value[n]})){e.curName=c.name;break}c.children.length&&t(c.children)}}catch(e){o=!0,a=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw a}}}(this.initData),this.getDescription(this.value)}},methods:{change:function(e){var t=this;0===e.children.length?(this.curName=e.name,this.getDescription(e.codeArr),e.codeArr.length&&this.curSelect.codeArr&&this.curSelect.codeArr.length===e.codeArr.length&&e.codeArr.every(function(e,n){return e===t.curSelect.codeArr[n]})?(this.curSelect={},this.description=""):this.propsObj._cascaderLevel&&e.level!=this.propsObj._cascaderLevel&&e.children.length||(this.curSelect=e)):(this.curName="",this.description="",this.curSelect={})},getDescription:function(e){var t=this;this.$https({url:{module:"sheet",name:"getResourceDescription"},params:{resourceKey:this.propsObj._resourceKey,nodeKeys:e},callback:function(e){t.description=e}})},clickCancel:function(){this.$emit("changeShowModal",!1)},clickConfirm:function(){this.curName?(this.$emit("input",this.curSelect.codeArr),this.$emit("change",this.curSelect.codeArr),this.$emit("changeShowModal",!1)):this.$Message.warning("请选择"+this.propsObj._name+"!")},loop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=this,n=arguments[1];arguments[2];return e?e.reduce(function(e,r){(r.expand=!1,t.value.length)&&t.$getTreeLinealDatas(t.value,t.data).forEach(function(e){e.expand=!0});var i=a()({},r,{value:r._key,title:r.name,disabled:!t.propsObj._cascaderLevel||r.level<t.propsObj._cascaderLevel,render:function(e,n){n.root,n.node;var r=n.data;return e("span",{class:{"ivu-tree-title-selected":t.curSelect.codeArr&&t.curSelect.codeArr.length&&t.curSelect.codeArr.length===r.codeArr.length&&t.curSelect.codeArr.every(function(e,t){return e===r.codeArr[t]})},style:{display:"inline-block",width:"100%"},on:{click:function(){t.change(r)}}},r.title)}});return(!n||n>r.level)&&(i.children=t.loop(r.children,n,t.value)),e.push(i),e},[]):[]}}}},function(e,t,n){"use strict";var r=n(2),i=n.n(r),o=n(1),a=n.n(o),s=n(3),l=n(43),c=n(33);n.n(c);t.a={name:"DshCheckbox",mixins:[s.default,l.default],props:{},data:function(){return{}},computed:{selfPropsObj:function(){return a()({_optionKind:"dropdown",_useColor:!1,colorMap:c.resourceData.colorMap,_filterable:!0,_transfer:!0,_data:[]},this.propsObj,this.commonDealPropsObj)},showType:function(){return this.selfPropsObj._optionKind},useColor:function(){return this.selfPropsObj._useColor},colorMap:function(){return this.selfPropsObj.colorMap},listData:function(){return this.selfPropsObj._data.concat(this.initListData)},curValObjList:function(){var e=this;return this.curValList.map(function(t){var n=e.listData.find(function(e){return e._key===t})||{_key:t,name:"温馨提示:选项"+t+"已找不到"};return a()({},n,{style:e.getItemStyle(n),color:void 0})})},showMultipleVal:function(){return this.$isEmptyData(this.curValList)?this.emptyShowVal:this.curValObjList.map(function(e){return e.name||e._name}).join("、")}},created:function(){},methods:{changeSelect:function(e){if(this.curValList.includes(e.value)){var t=this.curValList.findIndex(function(t){return t===e.value});this.curValList.splice(t,1)}else this.curValList.push(e.value);this.curValList=[].concat(i()(this.curValList))},getItemColorClass:function(e){return this.colorMap[e.color]?e.color:"color-1"},getItemStyle:function(e){var t=this.colorMap[e.color]||this.colorMap["color-1"];return{background:this.useColor?this.$getColor(t,.1):void 0,color:this.useColor?t:void 0}},getItemDisabled:function(e){return!!(!this.finalCanEdit||e._disabled||this.curValList.length>=this.selfPropsObj._max&&!this.getItemSelectStatus(e))},getItemSelectStatus:function(e){return this.curValList.includes(e._key)}}}},function(e,t,n){"use strict";var r=n(66),i=n.n(r),o=n(2),a=n.n(o),s=n(1),l=n.n(s),c=n(3),u={fillColor:"#4575EF",fillOpacity:.4,strokeColor:"#4575EF",strokeWeight:5},d={strokeColor:"#4575EF",strokeWeight:5},f={};t.a={name:"DshCoordinates",mixins:[c.default],data:function(){return{showModal:!1,newVal:{name:"",lnglat:[]},modalStyles:{height:.96*document.body.clientHeight+"px",width:.96*document.body.clientWidth+"px",top:"2%"},formData:{kind:"keyword",searchText:""},map:null,placeSearch:null,mouseTool:null,marker:null,plot:null,searchMessage:""}},computed:{selfPropsObj:function(){return l()({},this.propsObj,this.commonDealPropsObj)},showType:function(){return this.selfPropsObj._showType},inputIcon:function(){return"ios-map-outline"},curVal:{get:function(){return this.value[this.controlKey]||{name:"",lnglat:[]}},set:function(e){this.value[this.controlKey]=e,this.change()}},showVal:function(){return this.$isEmptyData(this.curVal)?this.emptyShowVal:this.curVal.name}},created:function(){},methods:{clickInput:function(){this.canEdit&&(this.showModal=!0,this.newVal=this.$deepCopy(this.curVal),this.getMap())},clickConfirm:function(){this.showModal=!1,this.curVal=this.newVal},clickClear:function(){this.curVal={name:"",lnglat:[]}},clickModalClear:function(){this.newVal={name:"",lnglat:[]},this.handleRmoveMarker("default"),this.handleOpenDraw()},clickSearch:function(){if(this.formData.searchText)if("coordinate"===this.formData.kind){var e=this.formData.searchText.split(","),t=Number(e[0]),n=Number(e[1]);isNaN(t)||isNaN(n)||t<-180||t>180||n<-90||n>90?this.searchMessage="请输入正确的经纬度坐标!":(e=new AMap.LngLat(t,n),this.searchMessage="",this.handleAddMarker([e.lng,e.lat],!0,"default"))}else this.placeSearch.search(this.formData.searchText,this.handlePlaceSearchCallback);else this.searchMessage="请输入搜索内容!"},clickMapFitView:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.plot;this.map.setFitView(e)},getMap:function(){var e=this;this.$nextTick(function(){var t=e.$refs.lnglatRef;e.map=new AMap.Map("DshCoordinatesMap",{rotateEnable:!0,pitchEnable:!0,zoom:e.propsObj._zoom||12,pitch:50,viewMode:e.propsObj._mapType||"2D",center:e.propsObj._center&&e.propsObj._center.split(",").map(function(e){return Number(e)})||void 0}),e.map.on("mouseover",function(e){t.style.display="block"}),e.map.on("mousemove",function(e){t.innerHTML=e.lnglat.toString(),t.style.top=e.pixel.y+120+"px",t.style.left=e.pixel.x+6+"px"}),e.map.on("mouseout",function(e){t.style.display="none"}),AMap.plugin(["AMap.PlaceSearch","AMap.Scale","AMap.ControlBar","AMap.MouseTool"],e.handlePluginCallback)})},handlePluginCallback:function(){this.placeSearch=new AMap.PlaceSearch,this.placeSearch.on("complete",this.handlePlaceSearchCallback),this.placeSearch.on("error",this.handlePlaceSearchCallback),this.map.addControl(new AMap.Scale),this.map.addControl(new AMap.ControlBar),this.mouseTool=new AMap.MouseTool(this.map),this.mouseTool.on("draw",this.handleMouseToolCallback),this.$isEmptyData(this.newVal)?this.finalCanEdit&&this.handleOpenDraw():(this.handleAddMarker(this.newVal.lnglat,!0),"multipleMarker"===this.showType&&this.finalCanEdit&&this.handleOpenDraw())},handleMouseToolCallback:function(e){if("AMap.Marker"===e.obj.CLASS_NAME){"marker"===this.showType?(this.plot=e.obj,this.handleCloseDraw()):"multipleMarker"===this.showType&&(this.plot?this.plot.push(e.obj):this.plot=[e.obj]);var t=e.obj.getPosition();this.newVal.lnglat.push([t.lng,t.lat]),this.getRegeoCode()}else{var n;this.plot=e.obj,(n=this.newVal.lnglat).push.apply(n,a()(e.obj.getPath().map(function(e){return[e.lng,e.lat]}))),this.getRegeoCode(),this.handleCloseDraw()}},handlePlaceSearchCallback:function(e){if("complete"!=e)if(e.poiList&&e.poiList.pois&&e.poiList.pois.length){this.searchMessage="";var t=e.poiList.pois[0];this.handleAddMarker([t.location.lng,t.location.lat],!0,"default"),this.marker.setTitle([t.name,t.address].join(t.name&&t.address?"\n":""))}else this.searchMessage="没有搜索到结果!"},handleOpenDraw:function(){switch(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showType){case"marker":case"multipleMarker":this.mouseTool.marker(f);break;case"polyline":this.mouseTool.polyline(d);break;case"polygon":this.mouseTool.polygon(u);break;case"rectangle":this.mouseTool.rectangle(u);break;case"circle":this.mouseTool.circle(u)}},handleCloseDraw:function(){this.mouseTool.close()},handleAddMarker:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.showType;e=JSON.parse(i()(e)),["polygon","rectangle","circle"].includes(r)?(this.plot=new AMap.Polygon(l()({},u,{path:e})),this.map.add(this.plot),n&&this.map.setFitView(this.plot)):["default"].includes(r)?(!this.marker&&(this.marker=new AMap.Marker),this.marker.setPosition(e),this.marker.setMap(this.map),"marker"===this.showType?(this.handleRmoveMarker(),this.handleCloseDraw(),this.newVal.lnglat=[e],this.getRegeoCode()):"multipleMarker"===this.showType&&(this.newVal.lnglat.push(e),this.getRegeoCode()),n&&this.map.setFitView(this.marker)):["polyline"].includes(r)?(this.plot=new AMap.Polyline(l()({},u,{path:e})),this.map.add(this.plot),n&&this.map.setFitView(this.plot)):["multipleMarker","marker"].includes(r)&&(this.plot=e.map(function(e){return new AMap.Marker({map:t.map,position:e})}),n&&this.map.setFitView(this.plot))},handleRmoveMarker:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showType;["default"].includes(e)?(this.marker&&this.map.remove(this.marker),this.plot&&this.map.remove(this.plot)):this.plot&&this.map.remove(this.plot)},getRegeoCode:function(e,t){var n=this,r={key:window.config.amapKey,location:this.newVal.lnglat[0],radius:1e3,extensions:"base",batch:!1,roadlevel:1},i="";for(var o in r)i+=o+"="+r[o]+"&";fetch("http://restapi.amap.com/v3/geocode/regeo?"+i).then(function(e){return e.json()}).then(function(e){if("1"===e.status&&e.regeocode){var t=e.regeocode.formatted_address;n.newVal.name=t}})}}}},function(e,t,n){"use strict";var r=n(13),i=n.n(r),o=n(1),a=n.n(o),s=n(3);t.a={name:"DshDate",mixins:[s.default],props:{},data:function(){return{show:!0}},computed:{selfPropsObj:function(){return a()({_transfer:!0},this.propsObj,this.commonDealPropsObj)},curValDate:{get:function(){var e=this.value[this.controlKey];return this.$transformDateCompatible(e,this.subType)},set:function(e){this.value[this.controlKey]=this.$transformDate(e,"-",this.subType)}},subType:function(){return this.selfPropsObj._dateType},options:function(){var e=this;return{shortcuts:[],disabledDate:function(t){return!e.$validateComparedRule([e.selfPropsObj],a()({},e.value,i()({},e.controlKey,e.$transformDate(t,"/",e.subType))),e.allFormList).bool}}}},created:function(){},methods:{},watch:{"propsObj._dateType":function(){var e=this;this.show=!1,this.$nextTick(function(){e.value[e.controlKey]=e.selfPropsObj._default,e.show=!0})}}}},function(e,t,n){"use strict";var r=n(1),i=n.n(r),o=n(3);t.a={name:"DshDaterange",mixins:[o.default],props:{},data:function(){return{open0:!1,open1:!1,dynDate:[{_key:"dyn_today_start",name:"今天",numbers:[0],dateTypes:["date","datetime","daterange","datetimerange"]},{_key:"dyn_today_end",name:"今天",numbers:[1],dateTypes:["date","datetime","daterange","datetimerange"]},{_key:"dyn_now",name:"现在",numbers:[0,1],dateTypes:["date","datetime","daterange","datetimerange"]},{_key:"dyn_yesterday",name:"昨天",numbers:[0],dateTypes:["date","datetime","daterange","datetimerange"]},{_key:"dyn_subtract_3_days",name:"三天前",numbers:[0],dateTypes:["date","datetime","daterange","datetimerange"]},{_key:"dyn_subtract_7_days",name:"七天前",numbers:[0],dateTypes:["date","datetime","daterange","datetimerange"]},{_key:"dyn_subtract_30_days",name:"三十天前",numbers:[0],dateTypes:["date","datetime","daterange","datetimerange"]},{_key:"dyn_add_3_days",name:"三天后",numbers:[1],dateTypes:["date","datetime","daterange","datetimerange"]},{_key:"dyn_add_7_days",name:"七天后",numbers:[1],dateTypes:["date","datetime","daterange","datetimerange"]},{_key:"dyn_add_30_days",name:"三十后",numbers:[1],dateTypes:["date","datetime","daterange","datetimerange"]},{_key:"last_month_start",name:"上月初",numbers:[0],dateTypes:["month","date","datetime","daterange","datetimerange"]},{_key:"dyn_month_start",name:"月初",numbers:[0,1],dateTypes:["month","date","datetime","daterange","datetimerange"]},{_key:"dyn_month_end",name:"月末",numbers:[1],dateTypes:["month","date","datetime","daterange","datetimerange"]},{_key:"dyn_quarter_start",name:"本季初",numbers:[0],dateTypes:["month","date","datetime","daterange","datetimerange"]},{_key:"dyn_quarter_end",name:"本季末",numbers:[1],dateTypes:["month","date","datetime","daterange","datetimerange"]},{_key:"dyn_year_start",name:"年初",numbers:[0],dateTypes:["year","date","datetime","daterange","datetimerange"]},{_key:"dyn_year_end",name:"年末",numbers:[1],dateTypes:["year","date","datetime","daterange","datetimerange"]},{_key:"dyn_nextyear_start",name:"次年初",numbers:[0],dateTypes:["year","date","datetime","daterange","datetimerange"]},{_key:"dyn_nextyear_end",name:"次年末",numbers:[1],dateTypes:["year","date","datetime","daterange","datetimerange"]}]}},computed:{val0:{get:function(){return this.getVal(0)},set:function(e){this.setVal(e,0)}},val1:{get:function(){return this.getVal(1)},set:function(e){this.setVal(e,1)}},selfPropsObj:function(){return i()({_useShortcuts:!0},this.propsObj,this.commonDealPropsObj,{_type:"date"})},subType:function(){return this.selfPropsObj._dateType},useShortcuts:function(){return this.selfPropsObj._useShortcuts},options0:function(){return this.getOptions(0)},options1:function(){return this.getOptions(1)},showVal0:function(){return this.getShowVal(0)},showVal1:function(){return this.getShowVal(1)}},created:function(){},methods:{clickDynDate:function(e,t){this["val"+t]=e,this.changeOpen(!1,t)},clickClear:function(e,t){this["val"+t]=e,this.changeOpen(!1,t)},changeVal:function(e,t){this["val"+t]=e,"datetime"!==this.subType&&this.changeOpen(!1,t)},changeOpen:function(e,t){this["open"+t]=e},getVal:function(e){var t=this.value[this.controlKey][e];return this.isDynDateKey(t)?t:this.$transformDateCompatible(t,this.subType)},setVal:function(e,t){var n=this.isDynDateKey(e)?e:this.$transformDate(e,"-",this.subType);this.value[this.controlKey]=0===t?[n,this.value[this.controlKey][1]||""]:[this.value[this.controlKey][0]||"",n],this.change()},getOptions:function(e){var t=this,n=this["val"+(0===e?1:0)],r={_operator:0===e?"ltAet":"gtAet",_fieldKey:this.controlKey};return{shortcuts:this.useShortcuts?this.dynDate.filter(function(n){return n.numbers.includes(e)&&n.dateTypes.includes(t.subType)}).map(function(n){return{text:n.name,onClick:function(){return t.clickDynDate(n._key,e)}}}):[],disabledDate:function(e){return!!n&&(!!t.isDynDateKey(n)||!t.$isComparedAccord(t.selfPropsObj,t.selfPropsObj,e,n,r).bool)}}},getShowVal:function(e){var t=this["val"+e];return this.isDynDateKey(t)?(this.dynDate.find(function(e){return e._key===t})||{name:'"'+t+'"dnDate不存在'}).name:this.$transformDate(t,"-",this.subType)},isDynDateKey:function(e){return this.dynDate.some(function(t){return t._key===e})}}}},function(e,t,n){"use strict";var r=n(3);t.a={name:"DshDivider",mixins:[r.default],props:{},data:function(){return{}},computed:{},created:function(){},methods:{}}},function(e,t,n){"use strict";var r=n(1),i=n.n(r),o=n(3),a=n(30),s=n(304),l=n.n(s);t.a={name:"DshEditor",mixins:[o.default,a.default],props:{},data:function(){return{editor:null,showType:"show",operationMap:{canSave:{name:"完成",type:"canSave",btnType:"primary",size:"default",event:"clickSave"}}}},computed:{selfPropsObj:function(){return i()({},this.propsObj,this.commonDealPropsObj)}},created:function(){},mounted:function(){this.finalCanEdit&&this.initEditor()},methods:{initEditor:function(){var e=this,t=this,n=new l.a(this.$refs.toolbar,this.$refs.editor);n.config.uploadImgShowBase64=!1;var r=this.$getRequests(this.computedUrlModule);n.config.uploadImgServer=""+location.origin+config.apiUrl+r,n.config.uploadImgHeaders=this.propsObj._headers||{authtoken:sessionStorage.getItem("authtoken")},n.config.uploadFileName="file_stream",n.config.uploadImgMaxSize=20971520,n.config.uploadImgMaxLength=1,n.config.uploadImgTimeout=18e4,n.config.menus=["head","bold","fontSize","fontName","italic","underline","strikeThrough","foreColor","backColor","link","list","justify","quote","image","undo","redo"],n.config.zIndex=500,n.config.uploadImgHooks={before:function(e,t,n){t.config.files=n},customInsert:function(e,n,r){var i=n.data&&n.data.ossType||"ali-oss";r.config.files.forEach(function(r){"ali-oss"===i?t.multipartUpload(r,n.data,function(t){e(t.data.url)}):"local"===i?t.localUpload(r,n.data,function(t){e(t.data.url)}):console.log("请开发这种类型‘"+i+"’的上传模式")})}},n.config.onchange=function(t){e.value[e.propsObj._key]!==t&&(e.value[e.propsObj._key]=t,e.change())},n.create(),this.finalCanEdit||n.disable(),this.editor=n},handleEdit:function(){this.finalCanEdit&&(this.editor.txt.html(this.value[this.propsObj._key]),this.showType="edit")},clickSave:function(){this.showType="show"},insertHTML:function(e){this.editor.cmd.do("insertHTML",e)}}}},function(e,t,n){"use strict";var r=n(2),i=n.n(r),o=n(1),a=n.n(o),s=n(3);t.a={name:"DshInput",mixins:[s.default],props:{},data:function(){return{changeStatus:!1}},computed:{selfPropsObj:function(){return a()({_textType:"default",_readonly:["serialNumber"].includes(this.controlType),_disabled:["serialNumber"].includes(this.controlType),_showWordLimit:this.propsObj._showWordLimit||!!this.propsObj._maxlength||0===this.propsObj._maxlength,_autosize:{minRows:2}},this.propsObj,this.commonDealPropsObj)},inputType:function(){return["textarea","password","email","url","number","tel"].includes(this.controlType)?this.controlType:["text"].includes(this.controlType)&&["url"].includes(this.subType)?"url":(["serialNumber"].includes(this.controlType),"text")},subType:function(){return this.selfPropsObj._textType}},created:function(){},methods:{onSearch:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];this.$emit.apply(this,["search"].concat(i()(t)))},onFocus:function(){this.changeStatus=!1},onBlur:function(){this.$emit("blur"),!0===this.changeStatus&&this.change()},onEnter:function(e){this.$emit("inputChange")},onChange:function(e){this.$emit("inputChange"),this.changeStatus=!0},onClear:function(){this.change()},goHttpWindow:function(e){e.stopPropagation(),window.open(this.curVal)}}}},function(e,t,n){"use strict";var r=n(13),i=n.n(r),o=n(82),a=n(83),s=n(84),l="ivu-input-number";function c(e,t){var n,r=void 0,i=void 0;try{r=e.toString().split(".")[1].length}catch(e){r=0}try{i=t.toString().split(".")[1].length}catch(e){i=0}return n=Math.pow(10,Math.max(r,i)),(Math.round(e*n)+Math.round(t*n))/n}t.a={name:"BriInputNumber",mixins:[a.default,s.default],props:{max:{type:Number,default:1/0},min:{type:Number,default:-1/0},step:{type:Number,default:1},activeChange:{type:Boolean,default:!0},value:{type:[Number,String],default:null},size:{default:function(){return this.$IVIEW&&""!==this.$IVIEW.size?this.$IVIEW.size:"default"},validator:function(e){return["small","large","default"].includes(e)}},disabled:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},editable:{type:Boolean,default:!0},name:{type:String},precision:{type:Number},elementId:{type:String},formatter:{type:Function},parser:{type:Function},placeholder:{type:String,default:""},handlerStyle:{type:Object,default:function(){return{}}},isPositive:{type:Boolean,default:!1}},data:function(){return{focused:!1,upDisabled:!1,downDisabled:!1,currentValue:this.value,transferValue:null}},computed:{wrapClasses:function(){var e;return[""+l,(e={},i()(e,l+"-"+this.size,!!this.size),i()(e,l+"-disabled",this.itemDisabled),i()(e,l+"-focused",this.focused),e)]},suffixClasses:function(){return l+"-suffix-wrap"},handlerClasses:function(){return l+"-handler-wrap"},upClasses:function(){return[l+"-handler",l+"-handler-up",i()({},l+"-handler-up-disabled",this.upDisabled)]},innerUpClasses:function(){return l+"-handler-up-inner ivu-icon ivu-icon-ios-arrow-up"},downClasses:function(){return[l+"-handler",l+"-handler-down",i()({},l+"-handler-down-disabled",this.downDisabled)]},innerDownClasses:function(){return l+"-handler-down-inner ivu-icon ivu-icon-ios-arrow-down"},inputWrapClasses:function(){return l+"-input-wrap"},inputClasses:function(){return l+"-input"},precisionValue:function(){return this.currentValue&&this.precision?this.currentValue.toFixed(this.precision):this.currentValue},formatterValue:function(){if(this.formatter&&null!==this.precisionValue){var e=this.formatter(this.precisionValue);return this.isPositive?e.replace("整","正"):e}return this.precisionValue}},methods:{preventDefault:function(e){e.preventDefault()},up:function(e){var t=Number(e.target.value);if(this.upDisabled&&isNaN(t))return!1;this.changeStep("up",e)},down:function(e){var t=Number(e.target.value);if(this.downDisabled&&isNaN(t))return!1;this.changeStep("down",e)},changeStep:function(e,t){if(this.itemDisabled||this.readonly)return!1;var n=Number(t.target.value),r=Number(this.currentValue),i=Number(this.step);if(isNaN(r))return!1;if(!isNaN(n))if("up"===e){if(!(c(n,i)<=this.max))return!1;r=n}else if("down"===e){if(!(c(n,-i)>=this.min))return!1;r=n}"up"===e?r=c(r,i):"down"===e&&(r=c(r,-i)),this.setValue(r,"step")},setValue:function(e,t){var n=this;e&&!isNaN(this.precision)&&(e=Number(Number(e).toFixed(this.precision)));var r=this.min,i=this.max;null!==e&&(e>i?e=i:e<r&&(e=r)),this.$nextTick(function(){n.transferValue=e,t&&"step"===t&&(n.$emit("input",e),n.$emit("on-change",e),n.dispatch("FormItem","on-form-change",e))})},focus:function(e){this.focused=!0,this.$emit("on-focus",e)},blur:function(){this.transferValue!==this.currentValue&&(this.currentValue=this.transferValue,this.$emit("input",this.transferValue),this.$emit("on-change",this.transferValue),this.dispatch("FormItem","on-form-change",this.transferValue),this.focused=!1,this.$emit("on-blur"),Object(o.findComponentUpward)(this,["DatePicker","TimePicker","Cascader","Search"])||this.dispatch("FormItem","on-form-blur",this.transferValue))},keyDown:function(e){38===e.keyCode?(e.preventDefault(),this.up(e)):40===e.keyCode&&(e.preventDefault(),this.down(e))},change:function(e){if(("change"!=e.type||!this.activeChange)&&("input"!=e.type||this.activeChange)){var t=e.target.value.trim();this.parser&&(t=this.parser(t)),0===t.length?this.setValue(null):"input"==e.type&&t.match(/^-?\.?$|\.$/)||(t=Number(t),isNaN(t)?e.target.value=this.currentValue:this.setValue(t))}},changeVal:function(e){if(e=Number(e),isNaN(e))this.upDisabled=!0,this.downDisabled=!0;else{var t=this.step;this.upDisabled=e+t>this.max,this.downDisabled=e-t<this.min}}},mounted:function(){this.transferValue=this.value,this.changeVal(this.currentValue)},watch:{value:function(e){e&&(this.transferValue=this.value),this.currentValue=e},currentValue:function(e){this.changeVal(e)},min:function(){this.changeVal(this.currentValue)},max:function(){this.changeVal(this.currentValue)}}}},function(e,t,n){"use strict";var r=n(1),i=n.n(r),o=n(3),a=n(44);t.a={name:"DshNumber",mixins:[o.default],components:{BriInputNumber:a.default},props:{},data:function(){return{}},computed:{selfPropsObj:function(){return i()({},this.propsObj,this.commonDealPropsObj)},formatterFunc:function(){return this.separator?this.$numToSeparator:function(e){return""+e}},maxNum:function(){return this.selfPropsObj._max||0===this.selfPropsObj._max?this.selfPropsObj._max:1/0},minNum:function(){return this.selfPropsObj._min||0===this.selfPropsObj._min?this.selfPropsObj._min:-1/0},round:function(){return this.selfPropsObj._round},digit:function(){return"round"===this.round?0:"decimal"===this.round?Number(this.selfPropsObj._digit||2):void 0},numberFormat:function(){return this.selfPropsObj._numberFormat},unit:function(){return this.selfPropsObj._unit},unitStr:function(){return"percent"===this.numberFormat?"%":this.unit?""+this.unit:""},separator:function(){return this.selfPropsObj._separator},progressNum:function(){return this.$isEmptyData(this.curVal)||this.curVal<0?0:this.curVal>100?100:Math.round(100*this.curVal)/100},showVal:function(){return this.$isEmptyData(this.curVal)?this.emptyShowVal:this.$numToStrAndUnit(this.curVal,this.selfPropsObj)}},created:function(){},methods:{}}},function(e,t,n){"use strict";var r=n(1),i=n.n(r),o=n(3),a=n(44);t.a={name:"DshNumberange",mixins:[o.default],components:{BriInputNumber:a.default},props:{},data:function(){return{}},computed:{selfPropsObj:function(){return i()({},this.propsObj,this.commonDealPropsObj)},formatterFunc:function(){return this.propsObj._separator?this.$numToSeparator:function(e){return""+e}},maxNum:function(){return this.selfPropsObj._max||0===this.selfPropsObj._max?this.selfPropsObj._max:1/0},minNum:function(){return this.selfPropsObj._min||0===this.selfPropsObj._min?this.selfPropsObj._min:-1/0},round:function(){return this.selfPropsObj._round},digit:function(){return"round"===this.round?0:"decimal"===this.round?Number(this.selfPropsObj._digit||2):void 0},numberFormat:function(){return this.selfPropsObj._numberFormat},unit:function(){return this.selfPropsObj._unit},unitStr:function(){return"percent"===this.numberFormat?"%":this.unit?""+this.unit:""},separator:function(){return this.selfPropsObj._separator},step:function(){return this.selfPropsObj._step}},created:function(){},methods:{}}},function(e,t,n){"use strict";var r=n(2),i=n.n(r),o=n(1),a=n.n(o),s=n(3),l=n(43),c=n(33);n.n(c);t.a={name:"DshSelect",mixins:[s.default,l.default],props:{},data:function(){return{flag:!1}},computed:{selfPropsObj:function(){return a()({_optionKind:"dropdown",_useColor:!1,colorMap:c.resourceData.colorMap,_filterable:!0,_transfer:!0,_data:[],_customData:[]},this.propsObj,this.commonDealPropsObj)},showType:function(){return this.selfPropsObj._optionKind},radioGroupType:function(){return"button"===this.showType?"button":void 0},useColor:function(){return this.selfPropsObj._useColor},colorMap:function(){return this.selfPropsObj.colorMap},listData:function(){var e=this.selfPropsObj._data.concat(this.initListData);return this.$dataType(this.selfPropsObj._filterFunc,"function")?this.selfPropsObj._filterFunc(e,this.selfPropsObj,this.value):e},curValObj:function(){var e=this,t=this.listData.find(function(t){return t._key===e.curVal})||{_key:this.curVal,name:"温馨提示:选项"+this.curVal+"已找不到"};return this.$isEmptyData(this.curVal)?void 0:a()({},t,{style:this.getItemStyle(t),color:void 0})},showVal:function(){return this.$isEmptyData(this.curVal)?this.emptyShowVal:this.curValObj.name||this.curValObj._name}},created:function(){this.init()},methods:{init:function(){this.getListData()},cancelSelect:function(e){!0!==e._disabled&&!1!==this.selfPropsObj._clearable&&e._key===this.curVal&&(this.value[this.controlKey]="",this.change()),this.clickOpenTip(e)},change:function(){void 0==this.value[this.controlKey]&&(this.value[this.controlKey]=""),this.$emit("change",this.curVal)},getItemColorClass:function(e){return this.colorMap[e.color]?e.color:"color-1"},getItemStyle:function(e){var t=this.colorMap[e.color]||this.colorMap["color-1"];return{background:this.useColor?this.$getColor(t,.1):void 0,color:this.useColor?t:void 0}},getItemDisabled:function(e){return!(this.finalCanEdit&&!e._disabled)},getListData:function(){var e=this;this.selfPropsObj._customData.forEach(function(t){e.$https({url:t.url,params:t.params,callback:function(t){e.initListData=[].concat(i()(e.initListData),i()(t.list.map(function(e){return{_key:e[e._key||"_key"],name:e[e._name||"name"]}})))}})})}}}},function(e,t,n){"use strict";var r=n(3);t.a={name:"DshSwitch",mixins:[r.default],data:function(){return{}},computed:{showVal:function(){return this.value[this.controlKey]?this.propsObj._openText:this.propsObj._closeText}},created:function(){},methods:{}}},function(e,t,n){"use strict";var r=n(3);t.a={name:"DshPackage",mixins:[r.default],components:{},props:{},data:function(){return{}},computed:{},created:function(){},methods:{}}},function(e,t,n){"use strict";var r=n(2),i=n.n(r),o=n(1),a=n.n(o),s=n(3),l=n(161),c=n(163);t.a={name:"selectDepartments",mixins:[s.default],components:{BriTreeItem:l.a,BriCard:c.a},props:{},data:function(){return{showModal:!1,newValList:[],loading:!1,searchName:"",departmentList:[],highDepartmentList:[{_key:"dyn_department",name:"当前部门"}],operationMap:{canCancel:{name:"取消",type:"canCancel",btnType:"cancel",event:"clickCancel"},canConfirm:{name:"确定",type:"canConfirm",btnType:"primary",event:"clickConfirm"}}}},computed:{selfPropsObj:function(){return a()({_multiple:!1,_highSearch:!1,_isCascader:!0,_changeOnSelect:!0,_searchString:""},this.propsObj,this.commonDealPropsObj)},multiple:function(){return this.selfPropsObj._multiple},highSearch:function(){return this.selfPropsObj._highSearch},inputIcon:function(){return this.multiple?"ios-people":"ios-person"},isCascader:function(){return this.selfPropsObj._isCascader},changeOnSelect:function(){return this.selfPropsObj._changeOnSelect},searchString:function(){return this.selfPropsObj._searchString},modalPropsObj:function(){return{title:"选择部门",class:"z-modal "+(this.isCascader?"selectDepartments-cascaderModal":"selectDepartments-modal"),showSlotClose:!1,closable:!0}},selectKeys:function(){return this.newValList.map(function(e){return e._key})},allDepartmentList:function(){return this.transformDepartmentList([].concat(i()(this.highSearch?this.highDepartmentList:[]),i()(this.departmentList)),this.selectKeys)},showVal:function(){return this.$isEmptyData(this.curValList)?this.emptyShowVal:this.curValList.map(function(e){return e.full_name||e.name}).join("、")}},created:function(){},methods:{openModal:function(){this.showModal=!0},closeModal:function(){this.showModal=!1},search:function(){this.getListData()},clickInput:function(){this.finalCanEdit&&(this.openModal(),this.newValList=this.$deepCopy(this.curValList),this.searchName="",this.getListData())},clickDeleteItem:function(e){this.curValList=this.curValList.filter(function(t){return t._key!=e._key})},clickClear:function(){this.curValList=[]},changeSelect:function(e){this.newValList=this.multiple?this.selectKeys.includes(e._key)?this.newValList.filter(function(t){return t._key!==e._key}):[].concat(i()(this.newValList),[e]):e.checked?[e]:[]},deleteSelect:function(e,t,n){n.splice(t,1)},clickCancel:function(){this.closeModal()},clickConfirm:function(){this.closeModal(),this.curValList=this.newValList},transformDepartmentList:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.map(function(t){return a()({},t,{title:t.name,checked:n.includes(t._key),expand:!!(t.children&&t.children.length&&t.level<2),children:e.transformDepartmentList(t.children,n)})})},getListData:function(){var e=this;this.loading=!0,this.$https({url:{module:"company",name:this.isCascader?"compDepartCascaderAll":"compDepartIndex"},params:{search:this.searchName?{name:{$regex:".*"+this.$speciaWord(this.searchName)+".*",$options:"i"}}:void 0,searchString:this.searchString,nameSearchFlag:!this.changeOnSelect},callback:function(t){e.loading=!1,e.departmentList=t.list}})}}}},function(e,t,n){"use strict";var r=n(162),i=n(313),o=n(0)(r.a,i.a,!1,null,null,null);t.a=o.exports},function(e,t,n){"use strict";t.a={name:"BriTreeItem",props:{value:{type:Object,default:function(){return{}}},changeOnSelect:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1}},data:function(){return{expand:!1}},computed:{hasChildren:function(){return this.value.children&&this.value.children.length},showChildren:function(){return this.expand&&this.hasChildren}},created:function(){this.init()},methods:{init:function(){this.expand=this.value.expand},toggleExpand:function(){this.expand=!this.expand},onChange:function(e){this.$emit("on-change",e)}}}},function(e,t,n){"use strict";var r=n(164),i=n(314),o=n(0)(r.a,i.a,!1,null,null,null);t.a=o.exports},function(e,t,n){"use strict";t.a={name:"BriCard",mixins:[],components:{},props:{data:{type:Array,default:function(){return[]}}},data:function(){return{}},computed:{},created:function(){},methods:{change:function(){this.$emit("on-change",this.value)}}}},function(e,t,n){"use strict";t.a={name:"DepartmentMenu",props:{canEdit:{type:Boolean,default:!1},parent:Object,list:{type:Array,default:function(){return[]}},propSelect:{type:Object,default:function(){return{_key:"noDepart"}}}},data:function(){return{deleteModal:!0,dropdownList:[{name:"添加下级部门",type:"addSub",event:"addSubDepartment",icon:"ios-add-circle-outline"},{name:"修改部门信息",type:"change",event:"showChange",icon:"ios-create-outline"},{name:"删除部门",type:"delete",event:"tipDelete",icon:"ios-trash-outline"},{name:"移动部门",type:"remove",event:"removeDepartment",icon:"ios-move"}]}},computed:{getIcon:function(){return function(e){return e.isShowChildren?"ios-arrow-down":"ios-arrow-forward"}},departSelected:{get:function(){return this.propSelect},set:function(e){this.propSelect._key=e._key}}},created:function(){},methods:{addSubDepartment:function(e,t,n,r,i){this.$emit("showAddModal",n)},addPeerDepartment:function(){this.$emit("showAddModal",this.parent)},departClick:function(e){this.departSelected=e,this.$emit("departClick",e)},toggleChildren:function(e){e.isShowChildren=!e.isShowChildren,this.$forceUpdate()},showAddModal:function(e){this.$emit("showAddModal",e)},deleteDepart:function(e){this.departSelected={_key:"noDepart"},this.$emit("deleteDepart",e)},tipDelete:function(e,t,n,r,i){var o=this;this.$Modal.confirm({title:"警告",content:"确定要删除该部门吗?",onOk:function(){o.deleteDepart(n)},onCancel:function(){o.$Message.info("已取消!")}})},showChange:function(e,t,n,r,i){this.$emit("showChange",n)},showChilrenChange:function(e){this.$emit("showChange",e)},removeDepartment:function(e,t,n,r,i){this.$emit("removeDepartment",e,t,n,r,i)}}}},function(e,t,n){"use strict";var r=n(2),i=n.n(r),o=n(1),a=n.n(o),s=n(3),l=n(91);t.a={name:"selectUsers",mixins:[s.default],components:{departmentMenu:l.default},props:{},data:function(){return{newValList:[],showModal:!1,modalPropsObj:{title:"选择成员",showSlotClose:!1,closable:!0},searchData:{name:""},inputPropsObj:{_name:"成员名称",_key:"name",_search:!0,_clearable:!1},curDepartment:{},hightUsers:[{_key:"dyn_myself",realname:"当前用户"}],loading:!1,userList:[],departmentList:[],total:0,pagePropsObj:{page:1,pagesize:500,showSizer:!1},isSelect:function(e){return!!this.newValList.find(function(t){return t._key===e})},operationMap:{canCancel:{name:"取消",type:"canCancel",btnType:"cancel",event:"clickCancel"},canConfirm:{name:"完成",type:"canConfirm",btnType:"primary",event:"clickConfirm"}}}},computed:{selfPropsObj:function(){return a()({_multiple:!1,_highSearch:!1},this.propsObj,this.commonDealPropsObj)},multiple:function(){return this.selfPropsObj._multiple},highSearch:function(){return this.selfPropsObj._highSearch},inputIcon:function(){return this.multiple?"ios-people":"ios-person"},curCheckAll:function(){var e=this;return this.userList.length&&this.userList.every(function(t){return e.newValList.some(function(e){return e._key===t._key})})},showVal:function(){return this.$isEmptyData(this.curValList)?this.emptyShowVal:this.curValList.map(function(e){return e.realname||e.mobile}).join("、")}},created:function(){},methods:{openModal:function(){this.showModal=!0},closeModal:function(){this.showModal=!1},clickInput:function(){this.finalCanEdit&&(this.openModal(),this.newValList=this.$deepCopy(this.curValList),this.initModal())},clickDeleteItem:function(e){this.curValList=this.curValList.filter(function(t){return t._key!==e._key})},clickClear:function(){this.curValList=[]},initModal:function(){this.searchData={name:""},this.curDepartment={},this.pagePropsObj.page=1,this.getUserListData(),this.getDepartmentListData()},search:function(){this.pagePropsObj.page=1,this.getUserListData()},changeDepartment:function(e){this.pagePropsObj.page=1,this.curDepartment=e,"_highSearch"===e._key?(this.userList=this.hightUsers,this.total=1):this.getUserListData()},clickCheckAll:function(){var e=this;this.curCheckAll?this.newValList=this.newValList.filter(function(t){return!e.userList.some(function(e){return t._key===e._key})}):this.newValList=[].concat(i()(this.newValList),i()(this.userList.filter(function(t){return!e.newValList.some(function(e){return e._key===t._key})})))},clickSelectUserItem:function(e,t){this.multiple?this.newValList.some(function(t){return t._key===e._key})?this.newValList=this.newValList.filter(function(t){return t._key!==e._key}):this.newValList=[].concat(i()(this.newValList),[e]):this.newValList=!0===t?[e]:[]},clickDeleteUserItem:function(e,t,n){n.splice(t,1)},clickCancel:function(){this.closeModal()},clickConfirm:function(){this.closeModal(),this.curValList=this.newValList,this.curDepartment={}},getUserListData:function(){var e=this;this.loading=!0,this.userList=[];var t=this.searchData.name,n={};t&&""!==t?n.realname={$regex:".*"+this.$speciaWord(t)+".*",$options:"i"}:delete n.realname,this.$https({url:{module:"company",name:"userIndex"},params:{search:n,department:this.curDepartment._key,pagination:{page:this.pagePropsObj.page,pagesize:this.pagePropsObj.pagesize}},callback:function(t){e.total=t.total,e.userList=t.list,e.loading=!1}})},getDepartmentListData:function(){var e=this;this.$https({url:{module:"company",name:"compDepartCascaderAll"},params:{searchString:this.propsObj.searchString},callback:function(t){var n=[{is_leaf:!0,level:1,name:"全部",_key:""}];e.highSearch&&n.unshift({is_leaf:!0,level:1,name:"高级选项",_key:"_highSearch"}),e.departmentList=n.concat(t.list)}})}},filters:{isActive:function(e,t){return t.some(function(t){return t._key===e._key})?"selectUsers-list-item-active":""}}}},function(e,t,n){"use strict";var r=n(3);t.a={name:"DshBack",mixins:[r.default],props:{},data:function(){return{}},computed:{modForm:function(){return this.propsObj.modForm}},created:function(){},methods:{clickBack:function(e,t,n){var r=this;this.$emit("changeField",this.modForm.find(function(e){return e._key===r.value[r.propsObj._key]}),null,null)}}}},function(e,t,n){"use strict";var r=n(3);t.a={name:"DshUndeveloped",mixins:[r.default],props:{},data:function(){return{}},computed:{controlKey:function(){return this.propsObj.__realKey__||this.propsObj._key},tipText:function(){return this.propsObj.__realKey__?'"'+this.controlKey+'"字段已被删除':this.propsObj._type?'"'+this.controlKey+'"字段的'+this.propsObj._type+"类型暂未开发":'"'+this.controlKey+'"字段已被删除(或字段的_type丢失,此概率很小)'}},created:function(){},methods:{}}},function(e,t,n){"use strict";var r=n(1),i=n.n(r);t.a={name:"DshPage",props:{mode:{type:String,default:"small",validator:function(e){return-1!==["simple","default","small"].indexOf(e)}},total:{type:[Number,String],default:0},propsObj:{type:Object,default:function(){return{}}}},data:function(){return{}},computed:{obj:function(){return i()({page:1,pagesize:10,pagesizeOpts:[10,15,20,30,40,50],transfer:!1,placement:"bottom"},{default:{showTotal:!0,showElevator:!1,showSizer:!0},small:{showTotal:!0,showElevator:!1,showSizer:!0},simple:{}}[this.mode]||{},this.propsObj)},size:function(){return"small"==this.mode?"small":void 0},simple:function(){return"simple"==this.mode||!1}},methods:{changePage:function(e){this.$emit("changePage",e)},changePageSize:function(e){this.$emit("changePageSize",e)}}}},function(e,t,n){"use strict";var r=n(1),i=n.n(r),o=n(125),a=n.n(o),s=n(2),l=n.n(s);t.a={name:"DshForm",components:{},props:{canEdit:{type:Boolean,default:!0},formData:{type:Object,default:function(){return{}}},formList:{type:Array,default:function(){return[]}},allFormList:{type:Array,default:function(){return[]}},changedFields:{type:Array,default:function(){return[]}},height:[String,Number],rowStyle:{type:Object,default:function(){return{}}},labelStyle:{type:Object,default:function(){return{}}},formControlClass:String,monitorFormList:Array,showRules:{type:Boolean,default:!0}},data:function(){return{rules:{},forceValidateTypes:["select","cascader","regions","cascaders","file","coordinates","editor","users","departments","labels","flatTable","reference","referenceBy"],ignoreProperties:["_name","_key","_default","_required","_span","_br","_line","_noLabel","_clearable","_disabledBtns","_disabledOldDataRow"]}},computed:{},created:function(){this.init()},methods:{init:function(){this.initMonitor(),this.initRules()},initMonitor:function(){var e=this;(this.monitorFormList||this.formList).forEach(function(t){e.$set(e.formData,t._key,e.formData[t._key])})},initRules:function(){var e=this;(this.monitorFormList||this.formList).reduce(function(t,n){return t[n._key]=e.getRules(n),t},this.rules)},getFormVDom:function(){return this.$refs.form},validate:function(e){var t=!0,n=[];return t=!this.$refs.dshFormItem||!(n=this.$refs.dshFormItem.filter(function(e){return!e.validate()})).length,e&&e(t,n.map(function(e){return e.formItem})),t},clickControl:function(e){this.$emit("clickControl",e)},changeField:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];this.$emit.apply(this,["changeField"].concat(l()(t)))},change:function(e,t){this.forceFormValidate(e,t),this.$emit.apply(this,["change",e].concat(l()(t)))},refChange:function(e,t){this.$emit.apply(this,["refChange",e].concat(l()(t)))},isShow:function(e,t){var n=this;return!0===e._loop&&a()(i()({},t,{_displayType:"show",canEdit:!0})).forEach(function(t){!n.ignoreProperties.includes(t[0])&&n.$set(e,t[0],t[1])}),this.$isAdvRelyShow(e,t)},getRules:function(e){var t=this,n=[],r=this.$getFieldRuleConfig(e);if(r.regs.length&&n.push(i()({message:e._regMessage||r.regMessage||e._name+"格式不正确",trigger:"blur",transform:function(e){return t.$isEmptyData(e)?e:r.regs.every(function(t){return t.test(e)})&&e}},r)),e._required){var o={coordinates:{fields:{lnglat:{required:!0,message:e._name+"为必填项",type:"array"}}},flatTable:{fields:{list:{required:!0,message:e._name+"不能为空行!",type:"array"}}},referenceBy:{fields:{count:{message:e._name+"必须关联数据!",type:"number",transform:function(e){return!!(e&&e>0)&&e}}}}};n.push(i()({required:!0,message:e._name+"为必填项!",trigger:"blur, change",type:"string"},o[e._type]||{},r))}return n},forceFormValidate:function(e){!0===e._required&&this.forceValidateTypes.includes(e._type)&&this.$refs.form.validateField(e._key)}},watch:{formList:function(){this.init()}}}},function(e,t,n){"use strict";var r=n(1),i=n.n(r),o=n(172);t.a={name:"DshAdvSearchForm",mixins:[o.a],components:{},props:{mode:{type:String,default:"default",validator:function(e){return["default","set","dashbord","rely"].includes(e)}},value:{type:Object,default:function(){return{logic:"and",conditions:[]}}},useLoop:{type:Boolean,default:!0},isInner:{type:Boolean,default:!1}},data:function(){return{selfLogicPropsObj:{_name:"筛选逻辑",_key:"logic",_optionKind:"flat",_clearable:!1,_data:[{_key:"and",name:"且"},{_key:"or",name:"或"}]},parameterPropsObj:{_name:"参数类型",_key:"parameterType",_clearable:!1,_size:"small",_data:[{_key:"fixedText",name:"固定文本"},{_key:"dynamicText",name:"动态文本"}]},allOperationMap:{createContion:{name:"添加筛选条件",type:"createContion",icon:"md-add",size:this.isInner?"small":"default",long:!0,event:"createContion"},createLoopContion:{name:"添加筛选层",type:"createLoopContion",icon:"md-add",size:this.isInner?"small":"default",long:!0,event:"createContion"},deleteContion:{name:"删除筛选条件",type:"deleteContion",customIcon:"bico-delete",size:"16",event:"deleteContion"},selectOperator:{name:"选择筛选类型",type:"selectOperator",event:"selectOperator"}}}},computed:{operationMap:function(){return this.$categoryMapToMap(this.allOperationMap,void 0,!1===this.useLoop?["createLoopContion"]:[])}},created:function(){this.init()},methods:{init:function(){var e=this;this.value.conditions=this.value.conditions.map(function(t){var n=e.createContionFunc(t,void 0,t.fieldKey);return e.dealSubSearch(n),n})},createContion:function(e,t,n){var r=this.createContionFunc({logic:t?"and":"field"},n);this.value.conditions.push(r),this.change(r)},deleteContion:function(e,t,n,r){r.splice(n,1),this.change(t)},selectOperator:function(e,t,n,r,i){t.fieldOperator=i._key,t.fieldOperatorName=i.name,t.fieldSearch={logic:"and",conditions:[]},this.dealSubSearch(t),this.change(t)},parameterChange:function(e){"fixedText"===e.parameterType?e.fieldParams=[]:"dynamicText"===e.parameterType&&(e.fieldValue=[]),this.change()},change:function(e){var t=i()({},this.value,{conditions:this.transformConditions(this.value.conditions)});this.$emit("change",t,e)}}}},function(e,t,n){"use strict";var r=n(13),i=n.n(r),o=n(19),a=n.n(o),s=n(1),l=n.n(s);t.a={components:{},props:{formList:{type:Array,default:function(){return[]}},dynamicFieldsMap:{type:Object,default:function(){return{}}}},data:function(){return{fieldMap:this.$modFieldMap,conditionFields:["_id","logic","conditions","textSearch","nativeSearch","fieldKey","fieldType","fieldValue","fieldParams","fieldOperator","fieldSearch","parameterType"]}},computed:{searchFormList:function(){var e=this;return this.formList.filter(function(t){return e.$formHasAbility(t,"canSearch")})}},created:function(){},methods:{createContionFunc:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{logic:"field"},t=arguments[1],n=arguments[2];if(["field",void 0].includes(e.logic)){var r=t||this.searchFormList.find(function(e){return e._key===n});if(r){var i=this.fieldMap[r._type],o=r._subForm||[],a=i["set"===this.mode?"operatorsSet":"rely"===this.mode?"operatorsRely":"operators"]||i.operators||[],s=e.fieldOperator||(a[0]||{})._key,c=(a.find(function(e){return e._key===s})||{}).name,u=e.fieldValue||[],d=this.dynamicFieldsMap[r._type]||[],f=e.parameterType||(!d.length||u.length?"fixedText":"dynamicText");return l()({_id:this.$ObjectID().str,logic:"field",fieldKey:r._key,fieldType:r._type,fieldValue:[],fieldOperator:s,fieldParams:[],fieldSearch:{logic:"and",conditions:[]}},e,{parameterType:f,dynamicList:d,fieldOperatorName:c,operators:a,formItem:this.getFormItem(r),subFormList:o,finished:!1})}return l()({},e,{__isDelete__:!0,formItem:{__realKey__:e.fieldKey}})}return["and","or"].includes(e.logic)?l()({logic:"and",conditions:[]},e):["text"].includes(e.logic)?l()({logic:"text",textSearch:""},e):["native"].includes(e.logic)?l()({logic:"native",nativeSearch:{}},e):e},getFormItem:function(e){return l()({},this.formatFormItem(e),["default","rely"].includes(this.mode)&&["date","daterange"].includes(e._type)?{_useShortcuts:!1}:{},{_line:!1,_span:24,_useColor:!0})},formatFormItem:function(e){var t=this.fieldMap[e._type];return l()({},e,t.searchProps||{},{_key:"fieldValue",__realKey__:e._key,_description:void 0,_required:!1,_br:!1,_wrap:!1,_enterType:void 0,canEdit:!0,_data:["switch"].includes(e._type)?[{_key:"true",name:e._openText,color:"#87e8de"},{_key:"false",name:e._closeText,color:"#87e8de"}]:e._data})},dealSubSearch:function(e){"subSearch"===e.fieldOperator&&!0!==e.finished&&this.getModData(e.formItem,function(t){e.finished=!0,e.subFormList=t.screens[0].form})},getModData:function(e,t){this.$https({url:{module:"sheet",name:"schema"},params:{_key:e._ref,fields:e._refFields},callback:function(e){t(e)}})},transformConditions:function(){var e=this;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(function(t){return e.conditionFields.reduce(function(n,r){return a()(n,i()({},r,t[r]?"fieldSearch"===r?l()({},t[r],{conditions:e.transformConditions(t[r].conditions)}):"conditions"===r?e.transformConditions(t[r]):t[r]:t[r]))},{})})}}}},function(e,t,n){"use strict";var r=n(1),i=n.n(r),o=n(172);t.a={name:"DshDefaultSearch",mixins:[o.a],props:{initValue:{type:Array,default:function(){return[]}},labelWidth:{type:Number,default:100},showRowNum:{type:Number,default:2}},data:function(){return{conditionList:[],isSpreadStatus:!1,rowStyle:{width:"calc(100% - 12px)"},labelStyle:{textAlign:"center",margin:0,color:"#666666",border:"1px solid rgba(229, 229, 229, 1)",background:"rgba(245, 245, 245, 1)",padding:"5px 10px",borderRight:"none",height:"32px",boxSizing:"border-box",width:this.labelWidth+"px"}}},computed:{searchFormList:function(){var e=this;return this.formList.filter(function(t){return e.$formHasAbility(t,"canDefaultSearch")})},allSpan:function(){return this.searchFormList.reduce(function(e,t){var n=t._span||24;if(e%24&&(e+n)%24){var r=Math.floor(e/24);return r!==Math.floor((e+n)/24)?24*(r+1)+n:e+n}return e+n},0)},allRowNum:function(){return Math.ceil(this.allSpan/24)},canUseFold:function(){return null!=this.showRowNum&&this.allRowNum>this.showRowNum}},created:function(){this.init()},methods:{init:function(){var e=this;this.conditionList=this.searchFormList.map(function(t){var n=e.initValue.find(function(e){return e.fieldKey===t._key});return e.createContionFunc(n,t)})},toggleSpreadStatus:function(){this.isSpreadStatus=!this.isSpreadStatus},getFormItem:function(e){return i()({},this.formatFormItem(e),{_line:!0,_br:e._defaultSearchBr,_wrap:e._defaultSearchWrap},["date","daterange"].includes(e._type)?{_useShortcuts:!1}:["switch","select","checkbox"].includes(e._type)?{_optionKind:"dropdown",_useColor:!1}:["labels"].includes(e._type)?{mode:"defaultSearch"}:{})},change:function(e){var t=this.transformConditions(this.conditionList).filter(function(e){return!!e.fieldValue.length});this.$emit("change",t,e)}}}},function(e,t,n){"use strict";var r=n(2),i=n.n(r),o=n(124);t.a={name:"DshFormItem",mixins:[o.a],props:{allFormList:{type:Array,default:function(){return[]}},changedFields:{type:Array,default:function(){return[]}},height:{type:[String,Number],default:"70"},rowStyle:{type:Object,default:function(){return{}}},labelStyle:{type:Object,default:function(){return{}}},formControlClass:String},data:function(){return{}},computed:{},created:function(){},methods:{validate:function(){return!this.$refs.control.validate||this.$refs.control.validate()},changeField:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];this.$emit.apply(this,["changeField"].concat(i()(t)))},tipsRender:function(e,t){return e._tipsRender.call(this,e,t)}}}},function(e,t,n){"use strict";var r=n(333),i=(n.n(r),n(334)),o=(n.n(i),n(335)),a=(n.n(o),n(336)),s=(n.n(a),n(337)),l=(n.n(s),n(338)),c=(n.n(l),n(339)),u=(n.n(c),n(176)),d=(n.n(u),n(340)),f=(n.n(d),n(341)),h=(n.n(f),n(342)),p=(n.n(h),n(343)),m=(n.n(p),n(344)),y=(n.n(m),n(345));n.n(y);t.a={name:"BriCode",components:{codemirror:i.codemirror},props:{value:String,option:{type:Object,default:function(){return{mode:"javascript",theme:"cobalt",dragDrop:!0,lineWrapping:!0,autofocus:!0,lineNumbers:!0,foldGutter:!0,line:!0,matchBrackets:!0,extraKeys:{Ctrl:"autocomplete"},showCursorWhenSelecting:!0,lineWiseCopyCut:!0,autorefresh:!0,lint:!0,hint:!0,styleActiveLine:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter","CodeMirror-lint-markers"]}}}},model:{prop:"value",event:"change"},data:function(){return{}},computed:{computedVal:{get:function(){return this.value},set:function(e){this.handleChange(e)}}},created:function(){window.JSHINT=r.JSHINT},methods:{ready:function(e){e.setSize("100%","100%"),this.$emit("ready",e)},input:function(e){this.$emit("input",e)},changes:function(e,t){this.$emit("changes",e,t)},handleChange:function(e){Object(r.JSHINT)(e);var t=(r.JSHINT.data().errors||[]).map(function(e){return e.code&&e.code.startsWith("W")?1:2});this.$emit("jshint",t.some(function(e){return 2===e}),t),this.$emit("change",e)}}}},function(e,t,n){!function(e){e(n(7))}(function(e){"use strict";function t(t,n,i,o){if(i&&i.call){var a=i;i=null}else a=r(t,i,"rangeFinder");"number"==typeof n&&(n=e.Pos(n,0));var s=r(t,i,"minFoldSize");function l(e){var r=a(t,n);if(!r||r.to.line-r.from.line<s)return null;if("fold"===o)return r;for(var i=t.findMarksAt(r.from),l=0;l<i.length;++l)if(i[l].__isFold){if(!e)return null;r.cleared=!0,i[l].clear()}return r}var c=l(!0);if(r(t,i,"scanUp"))for(;!c&&n.line>t.firstLine();)n=e.Pos(n.line-1,0),c=l(!1);if(c&&!c.cleared&&"unfold"!==o){var u=function(e,t,n){var i=r(e,t,"widget");"function"==typeof i&&(i=i(n.from,n.to));if("string"==typeof i){var o=document.createTextNode(i);(i=document.createElement("span")).appendChild(o),i.className="CodeMirror-foldmarker"}else i&&(i=i.cloneNode(!0));return i}(t,i,c);e.on(u,"mousedown",function(t){d.clear(),e.e_preventDefault(t)});var d=t.markText(c.from,c.to,{replacedWith:u,clearOnEnter:r(t,i,"clearOnEnter"),__isFold:!0});d.on("clear",function(n,r){e.signal(t,"unfold",t,n,r)}),e.signal(t,"fold",t,c.from,c.to)}}e.newFoldFunction=function(e,n){return function(r,i){t(r,i,{rangeFinder:e,widget:n})}},e.defineExtension("foldCode",function(e,n,r){t(this,e,n,r)}),e.defineExtension("isFolded",function(e){for(var t=this.findMarksAt(e),n=0;n<t.length;++n)if(t[n].__isFold)return!0}),e.commands.toggleFold=function(e){e.foldCode(e.getCursor())},e.commands.fold=function(e){e.foldCode(e.getCursor(),null,"fold")},e.commands.unfold=function(e){e.foldCode(e.getCursor(),{scanUp:!1},"unfold")},e.commands.foldAll=function(t){t.operation(function(){for(var n=t.firstLine(),r=t.lastLine();n<=r;n++)t.foldCode(e.Pos(n,0),{scanUp:!1},"fold")})},e.commands.unfoldAll=function(t){t.operation(function(){for(var n=t.firstLine(),r=t.lastLine();n<=r;n++)t.foldCode(e.Pos(n,0),{scanUp:!1},"unfold")})},e.registerHelper("fold","combine",function(){var e=Array.prototype.slice.call(arguments,0);return function(t,n){for(var r=0;r<e.length;++r){var i=e[r](t,n);if(i)return i}}}),e.registerHelper("fold","auto",function(e,t){for(var n=e.getHelpers(t,"fold"),r=0;r<n.length;r++){var i=n[r](e,t);if(i)return i}});var n={rangeFinder:e.fold.auto,widget:"↔",minFoldSize:0,scanUp:!1,clearOnEnter:!0};function r(e,t,r){if(t&&void 0!==t[r])return t[r];var i=e.options.foldOptions;return i&&void 0!==i[r]?i[r]:n[r]}e.defineOption("foldOptions",null),e.defineExtension("foldOption",function(e,t){return r(this,e,t)})})},function(e,t,n){"use strict";var r=n(348);t.a={name:"BriLoading",components:{BriSvg:r.a},props:{value:{type:Number,default:1},fix:{type:Boolean,default:!1},center:{type:Boolean,default:!0},loadImg:{type:String},noImg:{type:String},mode:{type:String,default:"large"},showLoadingText:{type:Boolean,default:!1},loadText:{type:String,default:"加载中..."},noText:{type:String,default:"暂无数据"}},data:function(){return{}},computed:{imgSrc:function(){return this.noImg||"zanwushuju"},getStyle:function(){return{large:{width:"49px",height:"49px"},middle:{width:"35px",height:"35px"},small:{width:"16px",height:"16px"}}[this.mode]}},created:function(){},methods:{}}},function(e,t,n){"use strict";t.a={name:"BriSvg",components:{},props:{src:String},computed:{href:function(){return"#bri-"+this.src}},data:function(){return{}},created:function(){},methods:{}}},function(e,t,n){"use strict";t.a={name:"DshAvatar",props:{rowData:{type:Object},field:{type:String},maxLength:{type:Number,default:2},roundStyle:{type:Object,default:function(){return{}}}},data:function(){return{avatarSrc:this.$imageSrcMap.system.boy,users:[]}},computed:{userList:function(){return this.users.slice(0,4)}},created:function(){this.init()},methods:{init:function(){this.users="object"===this.$dataType(this.rowData[this.field])?[this.rowData[this.field]]:"array"===this.$dataType(this.rowData[this.field])?this.rowData[this.field]:[]}},watch:{rowData:{handler:function(e,t){this.init()},immediate:!0}}}},function(e,t,n){"use strict";var r=n(1),i=n.n(r);t.a={name:"DshBtnModal",props:{modalPropsObj:{type:Object,default:function(){return{}}}},data:function(){return{showModal:!1,operationMap:{set:{name:"设置默认内容",type:"set",btnType:"dashed",size:"default",long:!0,event:"clickSet"}}}},computed:{selfModalPropsObj:function(){return i()({mode:"middle"},this.modalPropsObj)}},created:function(){},methods:{clickSet:function(e){this.showModal=!0}}}},function(e,t,n){"use strict";t.a={name:"DshColorPanel",props:{dropdownObj:{type:Object,default:function(){return{icon:"ios-more",size:18,showDropdownItemIcon:!0}}},list:{type:Array,default:function(){return[]}},placement:{type:String,default:"bottom-start"},trigger:{type:String,default:"click"},transfer:{type:Boolean,default:!0},menuClass:String},data:function(){return{}},computed:{},created:function(){},methods:{dispatchEvent:function(e){this.$emit("click",e)}}}},function(e,t,n){"use strict";var r=n(183),i=n.n(r),o=n(19),a=n.n(o);t.a={name:"DshEditPanel",components:{},props:{value:{type:Object,default:function(){return{}}}},data:function(){return{operationMap:{updateColor:{name:"修改主题色",type:"updateColor",event:"clickUpdateColor"},updateIcon:{name:"修改图标",type:"updateIcon",event:"clickUpdateIcon"},canCancel:{name:"取消",type:"canCancel",event:"clickCancel"},canConfirm:{name:"确定",type:"canConfirm",btnType:"primary",event:"clickConfirm"}}}},computed:{},created:function(){this.init()},methods:{init:function(){a()(this.value,{oldName:this.value.name,color:this.value.color||i()(this.$appData.themeColors)[0].color,icon:this.value.icon||this.$appData.icons[0]})},onBlur:function(e){e.name||(e.name=e.oldName||"未命名")},clickUpdateColor:function(e,t,n,r){r.color=t},clickUpdateIcon:function(e,t,n,r){r.icon=t},clickConfirm:function(){this.$emit("on-ok",this.value)},clickCancel:function(){this.$emit("on-cancel")}}}},function(e,t,n){e.exports={default:n(358),__esModule:!0}},function(e,t,n){"use strict";var r=n(2),i=n.n(r);t.a={name:"DshMenu",props:{menuList:{type:Array,default:function(){return[]}},curSubMenu:Object,loopIndex:{type:Number,default:1},showBadgeList:{type:Array,default:function(){return[]}}},data:function(){return{}},computed:{},created:function(){},methods:{clickSpecialSubMenu:function(e){this.curSubMenu&&e._id===this.curSubMenu._id||this.$emit("changeSpecialSubMenu",e._id,e)},changeSpecialSubMenuCb:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];this.$emit.apply(this,["changeSpecialSubMenu"].concat(i()(t)))},getBadgeCount:function(e){var t=this.showBadgeList.find(function(t){return t.showBadgeKey===e.menuKey});return this.showBadgeList.length&&t?t.count:0}}}},function(e,t,n){"use strict";t.a={name:"DshMenuNav",props:{position:{type:String,default:"left"},width:{type:[String,Number],default:"200"},title:String,routeList:{type:Array,default:function(){return[]}},showMenuList:{type:Boolean,default:!0},layout:String},data:function(){return{}},computed:{},created:function(){},methods:{}}},function(e,t,n){"use strict";var r=n(1),i=n.n(r),o=n(3);t.a={name:"BriButton",mixins:[o.default],props:{type:{type:String,default:"primary"},icon:String,shape:String,size:String,customIcon:String},data:function(){return{}},computed:{selfPropsObj:function(){var e=this.propsObj.btnType||this.type,t=this.propsObj.btnType||this.type;return["cancel"].includes(e)?t="primary":["errorLine","primaryLine"].includes(e)?t="default":["linkText","primaryText","errorText"].includes(e)&&(t="text"),i()({class:["cancel","linkText","primaryText","errorLine","errorText","primaryLine"].includes(e)?"ivu-btn-"+e:""},this.propsObj,{btnType:t,customIcon:this.propsObj.customIcon?"bico-font "+this.propsObj.customIcon:void 0})}},created:function(){},methods:{dispatchEvent:function(){this.$emit("click",this.selfPropsObj)}}}},function(e,t,n){"use strict";var r=n(2),i=n.n(r),o=n(1),a=n.n(o);t.a={name:"BriDrawer",props:{value:Boolean,propsObj:{type:Object,default:function(){return{}}},list:{type:Array,default:function(){return[]}}},model:{prop:"value",event:"input"},data:function(){return{}},computed:{showModal:{get:function(){return this.value},set:function(e){this.input(e)}},selfPropsObj:function(){return a()({width:320,closable:!0,transfer:!0,footer:!0,maskClosable:!1},this.propsObj)}},created:function(){},methods:{input:function(e){this.$emit("input",e)},clickClose:function(){this.showModal=!1},close:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];this.$emit.apply(this,["on-close"].concat(i()(t)))},resizeChange:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];this.$emit.apply(this,["on-resize-change"].concat(i()(t)))},visibleChange:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$emit("on-visible-change",e)}}}},function(e,t,n){"use strict";t.a={name:"BriTooltip",props:{content:String,placement:{type:String,default:"bottom"},maxWidth:{type:String,default:"200"},transfer:{type:Boolean,default:!1},defaultDisabled:{type:Boolean,default:!0}},data:function(){return{toolTipDisabled:!0,tmpToolTipDisabled:!0}},created:function(){this.toolTipDisabled=this.defaultDisabled,this.tmpToolTipDisabled=this.toolTipDisabled},mounted:function(){this.getToolTipDisabled("mouted")},updated:function(){this.getToolTipDisabled("updated")},methods:{getToolTipDisabled:function(e){var t=this,n=this.$slots.default,r=n[0]?!(n[0].elm.scrollWidth>n[0].elm.clientWidth):this.toolTipDisabled;r!==this.toolTipDisabled?r!==this.tmpToolTipDisabled&&(this.tmpToolTipDisabled=r,this.timer=setTimeout(function(){t.toolTipDisabled=r,t.tmpToolTipDisabled=t.toolTipDisabled},2e3)):clearTimeout(this.timer)}}}},function(e,t,n){"use strict";t.a={name:"DshButtons",props:{mode:{type:String,default:"default",validator:function(e){return["default","between"].includes(e)}},list:{type:Array,default:function(){return[]}},leftList:{type:Array,default:function(){return[]}},rightList:{type:Array,default:function(){return[]}},maxFlatNum:{type:[Number,String],default:12},itemClass:String},data:function(){return{moreBtnOperationObj:{name:"更多",type:"more",size:"default",customIcon:"bico-gengduo",btnType:"linkText"}}},computed:{flatList:function(){return this.list.slice(0,this.maxFlatNum)},moreList:function(){return this.list.slice(this.maxFlatNum)},leftFlatList:function(){return this.leftList.slice(0,this.maxFlatNum)},leftMoreList:function(){return this.leftList.slice(this.maxFlatNum)}},created:function(){},methods:{emit:function(e){this.$emit("click",e)}}}},function(e,t,n){"use strict";var r=n(374),i=n.n(r);t.a={name:"DshCrumb",props:{separator:{type:String,default:"/"}},computed:{classes:function(){return"dsh-crumb"},linkUrl:function(){if("string"!==i()(this.to))return null;if(this.to.includes("//"))return this.to;var e=this.$router;if(e){var t=this.$route,n=e.resolve(this.to,t,this.append);return n?n.href:this.to}return this.to}},mounted:function(){this.updateChildren()},updated:function(){var e=this;this.$nextTick(function(){e.updateChildren()})},methods:{updateChildren:function(){var e=this;this.$children.forEach(function(t){t.separator=e.separator})}},watch:{separator:function(){this.updateChildren()}}}},function(e,t,n){var r=n(99),i=n(54).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){"use strict";t.a={name:"DshCrumbItem",props:{to:{type:[Object,String]},replace:{type:Boolean,default:!1},target:{type:String,default:"_self",validator:function(e){return["_blank","_self","_parent","_top"].includes(e)}},append:{type:Boolean,required:!1,default:!1}},data:function(){return{separator:"",showSeparator:!1}},computed:{linkClasses:function(){return"dsh-crumb-item-link"},separatorClasses:function(){return"dsh-crumb-item-separator"}},mounted:function(){this.showSeparator=void 0!==this.$slots.separator},methods:{handleClick:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.$router;if(e){var n=this.to;if(t){var r=this.$route,i=t.resolve(this.to,r,this.append);n=i?i.href:this.to}window.open(n)}else t?this.replace?this.$router.replace(this.to,function(){}):this.$router.push(this.to,function(){}):window.location.href=this.to},handleCheckClick:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.to){if("_blank"===this.target)return!1;e.preventDefault(),this.handleClick(t)}}}}},function(e,t,n){"use strict";t.a={name:"DshDropdown",props:{list:{type:Array,default:function(){return[]}},dropdownObj:{type:Object,default:function(){return{icon:"ios-more",size:18}}},useSearch:{type:Boolean,default:!1},placement:{type:String,default:"bottom-start"},trigger:{type:String,default:"hover"},transfer:{type:Boolean,default:!0},menuClass:String},data:function(){return{searchName:""}},computed:{showList:function(){var e=this;return this.useSearch?this.list.filter(function(t){return(t.name||t._name).includes(e.searchName)}):this.list}},created:function(){},methods:{dispatchEvent:function(e,t){var n=this;!0!==e.disabled&&(this.$emit("click",e),this.$nextTick(function(){n.searchName=""}))}}}},function(e,t,n){"use strict";var r=n(2),i=n.n(r);t.a={name:"DshIcons",props:{list:{type:Array,default:function(){return[]}},itemClass:String},data:function(){return{}},computed:{},created:function(){},methods:{click:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];this.$emit.apply(this,["click"].concat(i()(t)))}}}},function(e,t,n){"use strict";var r=n(2),i=n.n(r),o=n(1),a=n.n(o);t.a={name:"DshModal",props:{value:Boolean,mode:{type:String,default:"default",validator:function(e){return-1!==["small","default","middle","large","custom","auto"].indexOf(e)}},propsObj:{type:Object,default:function(){return{}}}},data:function(){return{showSlot:!1}},computed:{showModal:function(){return this.changeShowSlot(this.value),this.value},selfPropsObj:function(){return a()({title:"标题",closable:!1,maskClosable:!1,okText:"确定",cancelText:"取消",footerHide:!0,transfer:!0},this.propsObj,{class:["DshModal","DshModal-"+this.mode].concat(i()(Array.isArray(this.propsObj.class)?this.propsObj.class:[this.propsObj.class]))})},modalWidth:function(){var e={default:"750",small:"500",middle:"1000px",large:this.propsObj.draggable?"100%":"80%",auto:"auto"};return this.selfPropsObj.width?this.selfPropsObj.width:e[this.mode]}},created:function(){},methods:{changeShowSlot:function(e){var t=this;setTimeout(function(){!0===e&&(t.showSlot=e)},0)},ok:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];this.$emit.apply(this,["ok"].concat(i()(t)))},cancel:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];this.$emit.apply(this,["cancel"].concat(i()(t)))},visibleChange:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$emit("on-visible-change",e),this.$emit("input",e)}}}},function(e,t,n){"use strict";var r=n(1),i=n.n(r);t.a={name:"DshSteps",props:{list:{type:Array,default:function(){return[]}},stepShowFunc:Function,propsObj:{type:Object,default:function(){return{}}}},data:function(){return{current:0}},computed:{selfPropsObj:function(){return i()({_status:"process",_size:void 0,_direction:"vertical"},this.propsObj)}},created:function(){},methods:{clickStepItem:function(e,t){this.stepShowFunc&&!this.stepShowFunc(e,t)||this.current!==t&&(this.current=t,this.$emit("change",e,t))}}}},function(e,t,n){"use strict";t.a={name:"DshTabs",props:{theme:{type:String,default:"分组"},value:{type:Array,default:function(){return[]}},canDeleFunc:Function},data:function(){return{curItem:null}},computed:{list:{get:function(){var e=this;return this.value.map(function(t){return e.$set(t,"isEdit",t.isEdit||!1),t})},set:function(e){this.$emit("input",e)}},operationMap:function(){return{clickTab:{name:"点击",type:"clickTab",event:"clickTab"},create:{name:"添加",type:"create",icon:"md-add",size:16,event:"create"},delete:{name:"删除",type:"delete",icon:"md-trash",size:12,color:"red",event:"delete"},update:{name:"修改",type:"update",event:"update"},drag:{name:"拖动",type:"drag",event:"drag"},clickUpdate:{name:"点击修改",type:"clickUpdate",icon:"md-create",size:12,color:"#1b9aee",event:"clickUpdate"},nameBlur:{name:"输入框失去焦点",type:"nameBlur",event:"nameBlur"}}}},created:function(){this.init()},methods:{init:function(){this.curItem=this.list[0],this.select()},create:function(e,t,n,r){var i={_id:this.$ObjectID().str,_key:this.$randomB36("FieldGroup"),name:""+this.theme+(this.list.length+1),isEdit:!1};r.push(i),this.curItem=i,this.select(),this.change()},delete:function(e,t,n,r){this.canDeleFunc&&!this.canDeleFunc(t,n,r)||(r.splice(n,1),this.curItem&&this.curItem._id===t._id&&(this.curItem=r[1],this.select()),this.change())},update:function(e,t,n,r){this.change()},drag:function(e,t,n,r){this.change()},clickTab:function(e,t,n,r){"all"===t.screenType||this.curItem&&this.curItem._id===t._id||(this.curItem=t,this.select())},clickUpdate:function(e,t,n){var r=this;t.isEdit=!0,t.oldName=t.name,this.$nextTick(function(){r.$refs[t._id]&&r.$refs[t._id][0].focus()})},nameBlur:function(e,t,n){t.isEdit=!1,t.name=t.name||t.oldName},select:function(){this.$emit("select",this.curItem)},change:function(){this.$emit("input",this.list),this.$emit("change",this.list)}}}},function(e,t,n){"use strict";var r=n(2),i=n.n(r);t.a={name:"DshTags",props:{list:{type:Array,default:function(){return[]}},propsObj:{type:Object,default:function(){return{}}},autoEllipsis:{type:Boolean,default:!1}},model:{prop:"list",event:"change"},data:function(){return{maxTagCount:void 0,getItemDisabled:function(e){return!!(this.propsObj.disabled||e._disabled||e.disabled)},getItemClosable:function(e){return!1===this.getItemDisabled(e)&&this.propsObj.closable},getItemIcon:function(e){return("object"===this.$dataType(e)?e.icon||e._icon:void 0)||this.propsObj.icon},getItemName:function(e){return"object"===this.$dataType(e)?e.realname||e.full_name||e.name||e._name||e._id:e}}},computed:{moreOperation:function(){return{customIcon:"bico-gengduo"}},computedList:function(){return this.list.slice(0,this.maxTagCount)},subList:function(){return this.autoEllipsis&&this.maxTagCount?this.list.slice(this.maxTagCount):[]}},created:function(){},mounted:function(){this.callEliipsis(),window.addEventListener("resize",this.callEliipsis,!0)},methods:{deleteTag:function(e,t,n){this.list.splice(n,1),this.callEliipsis(),this.$emit("change",[].concat(i()(this.list))),this.$emit("delete",t,n)},changeChecked:function(e,t){},callEliipsis:function(){var e=this;this.autoEllipsis&&(this.maxTagCount=void 0,this.$nextTick(function(){e.getAutoEllipsis()}))},getAutoEllipsis:function(){if(this.autoEllipsis){var e=this.$refs.DshTags.clientWidth,t=this.$refs.tagItem;for(var n in t){var r=t[n].$el;if(r.clientWidth+r.offsetLeft>e){r.clientWidth+r.offsetLeft+40<e?this.maxTagCount=n:this.maxTagCount=n-1;break}this.maxTagCount=void 0}}}},watch:{list:function(){this.callEliipsis()}},destroyed:function(){window.removeEventListener("resize",this.callEliipsis,!0)}}},function(e,t,n){"use strict";t.a={name:"DshTitle",props:{propsObj:{type:Object,default:function(){return{}}}},data:function(){return{}},computed:{},created:function(){},methods:{}}},function(e,t,n){"use strict";var r=n(97);t.a={name:"Error500",components:{errorBack:r.a},methods:{}}},function(e,t,n){"use strict";t.a={name:"errorBack",props:{backNum:{type:Number,default:-1}},data:function(){return{}},methods:{goHome:function(){this.$router.push({name:"home"})},backPage:function(){this.$router.go(this.backNum)}}}},function(e,t,n){"use strict";var r=n(97);t.a={name:"Error403",components:{errorBack:r.a},methods:{}}},function(e,t,n){"use strict";var r=n(97);t.a={name:"Error404",components:{errorBack:r.a},methods:{}}},function(e,t,n){"use strict";var r=n(2),i=n.n(r),o=n(13),a=n.n(o),s=n(36),l=n.n(s),c=n(183),u=n.n(c),d=n(1),f=n.n(d),h=n(33);n.n(h);t.a={name:"BriTree",props:{data:Array,resType:{type:String,default:"dropdown"},showKey:{type:Boolean,default:!1},useColor:{type:Boolean,default:!1},useCustomKey:{type:Boolean,default:!0}},model:{prop:"data",event:"on-change"},data:function(){return{colorMap:h.resourceData.colorMap,operationMap:{createNode:{name:"添加节点",icon:"ios-add",type:"createNode",btnType:"primary",style:"padding: 0 7px;",event:"clickAddNode"},deleteNode:{name:"删除",icon:"ios-remove",size:"20",type:"deleteNode",event:"clickDeleteNode"},clickNodeName:{name:"点击名字",type:"clickNodeName",event:"clickNodeName"},onBlur:{name:"失去焦点",type:"onBlur",event:"onBlur"},clickColor:{name:"点击颜色",type:"clickColor",event:"clickColor"},clickNodeCancel:{name:"取消",type:"clickNodeCancel",event:"clickNodeCancel",btnType:"default",class:"z-default"},clickNodeConfirm:{name:"确认",type:"clickNodeConfirm",event:"clickNodeConfirm",btnType:"primary",class:"z-primary"}},treeData:[],treeFormShow:!1,treeFormPropsObj:{title:"添加节点",class:"z-modal"},treeFormData:{_key:"",name:"",description:""},treeFormNode:null}},computed:{colorArr:function(){return u()(this.colorMap)},colorArrMap:function(){var e=this;return l()(this.colorMap).reduce(function(t,n){return f()({},t,a()({},e.colorMap[n],n))},{})},treeFormList:function(){var e=[{_key:"name",_name:"名称",_type:"text",_default:"未命名节点",_line:!0,_required:!0},{_key:"_key",_name:"唯一标识",_type:"text",_textType:"key",_line:!0,_required:!0},{_key:"description",_name:"描述",_type:"textarea",_line:!0,_required:!1}];return this.useCustomKey?e:e.slice(0,1)}},created:function(){this.treeData=function e(t){return t.map(function(t){return f()({},t,{isEdit:!1,children:e(t.children||[])})})}(this.data)},methods:{clickAddNode:function(e,t,n){this.treeFormData={_key:"",name:"未命名节点",description:""},this.treeFormNode=t,this.treeFormShow=!0},clickNodeCancel:function(){this.treeFormData={_key:"",name:"未命名节点",description:""},this.treeFormNode=null,this.treeFormShow=!1,this.onChange()},clickNodeConfirm:function(){var e=this;this.$refs.treeForm.$refs.form.validate(function(t){t?(e.createNode(e.treeFormData,e.treeFormNode&&e.treeFormNode.data),e.treeFormShow=!1):e.$formRulesWarning()}),this.onChange()},clickDeleteNode:function(e,t){var n=this,r=t.root,i=t.node,o=t.data;this.$Modal.confirm({title:"警告",content:"确定删除 ‘"+o.name+"’ \n "+(i&&i.children&&i.children.length?"及其所有子":"")+"节点吗?",onOk:function(){n.deleteNode(r,i,o)}})},createNode:function(e,t){var n=f()({},e,{color:this.colorArrMap[this.colorArr[this.treeData.length%this.colorArr.length]],expand:!0,isEdit:!1,children:[]});if(this.useCustomKey||(n._key=this.createKey(t)),t){var r=t.children||[];r.push(n),this.$set(t,"children",r)}else this.treeData.push(n);this.onChange()},deleteNode:function(e,t,n){var r=e.find(function(e){return e===t}),i=r&&r.parent;if(i||0===i){var o=e.find(function(e){return e.nodeKey===i}).node,a=o.children.indexOf(n);o.children.splice(a,1)}else{var s=this.treeData.indexOf(n);this.treeData.splice(s,1)}this.onChange()},createKey:function(e){if(e){if(!e.children||!e.children.length)return this.$encodeB36(1,4);e=e.children}else if(!(e=this.treeData).length)return this.$encodeB36(1,4);var t=Math.max.apply(Math,i()(e.map(function(e){return e._key})));return this.$encodeB36(this.$decodeB36(t)+1,4)},onBlur:function(e,t){var n=t.data;n.name||(n.name=n.oldName),n.isEdit=!1,this.$emit("on-change",this.treeData)},clickNodeName:function(e,t){var n=t.data;n.oldName=n.name,n.isEdit=!0},clickColor:function(e,t){e.data.color=this.colorArrMap[t],this.$emit("on-change",this.treeData)},renderContent:function(e,t){var n=this,r=t.root,i=t.node,o=t.data;return e("div",{style:{display:"inline-flex",width:"100%",height:"36px",lineHeight:"33px",border:"1px solid rgba(211, 215, 228, 0.5)",borderRadius:"4px",justifyContent:"space-between"}},[e("div",{style:{flex:1,overflowX:"auto",display:"flex",alignItems:"center",overflowY:"hidden",padding:"0 5px"}},["dropdown"===this.resType?e("Icon",{props:{type:"md-arrow-round-up",size:"14"},style:{margin:"0 2px",color:"#999"},on:{click:function(){n.handleUp(o)}}}):"","dropdown"===this.resType?e("Icon",{props:{type:"md-arrow-round-down",size:"14"},style:{margin:"0 2px",color:"#999"},on:{click:function(){n.handleDown(o)}}}):"",e("dsh-color-panel",{props:{dropdownObj:{icon:"md-arrow-dropdown-circle",color:this.colorMap[o.color]||this.colorMap["color-1"]},menuClass:"BriTree-dropdown-menu",list:this.colorArr},style:{margin:"0 2px"},on:{click:function(e){return n.clickColor({root:r,node:i,data:o},e)}}}),o.isEdit?e("Input",{props:{value:o.name,placeholder:"请输入节点名称",size:"small"},directives:[{name:"focus"}],style:{width:"200px"},on:{input:function(e){o.name=e},"on-blur":function(){return n.$dispatchEvent(n.operationMap.onBlur,{root:r,node:i,data:o})}}}):[e("span",{style:{verticalAlign:"middle",paddingLeft:"3px",flex:1,overflow:"auto"},on:{click:function(){return n.$dispatchEvent(n.operationMap.clickNodeName,{root:r,node:i,data:o})}}},o.name),this.showKey?e("span",{style:{marginLeft:"20px",fontSize:"12px",color:"#999"}},o._key):void 0]]),e("div",{style:{marginLeft:"10px"}},["createNode","deleteNode"].map(function(e){return n.operationMap[e]}).filter(function(e){return!!e&&("dropdown"!==n.resType||"createNode"!==e.type)}).map(function(t){return e("Icon",{props:{size:t.size||20,type:t.icon},style:{margin:"0 2px",color:"#999"},on:{click:function(){n.$dispatchEvent(t,{root:r,node:i,data:o})}}},t.name)}))])},handleUp:function(e){var t=this.treeData.findIndex(function(t){return t._key===e._key});if(t>0){var n=f()({},this.treeData[t-1]);this.treeData.splice(t-1,1),this.treeData.splice(t,0,n),this.onChange()}},handleDown:function(e){var t=this.treeData.findIndex(function(t){return t._key===e._key});if(t<this.treeData.length-1){var n=f()({},this.treeData[t]);this.treeData.splice(t,1),this.treeData.splice(t+1,0,n),this.onChange()}},onChange:function(){this.$emit("on-change",this.transformResData(this.treeData))},transformResData:function(e){var t=this;return e.map(function(e){return{_key:e._key,name:e.name,color:e.color,children:t.transformResData(e.children||[])}})}}}},function(e,t,n){"use strict";t.a={name:"BriCollapseTree",props:{list:{type:Array,default:function(){return[]}}},data:function(){return{}},computed:{},created:function(){},methods:{click:function(e){e.disabled||this.$emit("click",e)}}}},function(e,t,n){"use strict";var r=n(1),i=n.n(r),o=n(74),a=n.n(o);function s(e){var t=new Date,n=t.getFullYear(),r=t.getMonth(),i=t.getDate(),o=new Date(n,r,i,0,0,0).getTime();return new Date(o+60*e*60*1e3).getTime()}function l(e){var t=new Date,n=t.getFullYear(),r=t.getMonth();return new Date(n,r+e,1).getTime()}var c=[{id:1,label:"Make some noise",user:'<a href="https://www.google.com/search?q=John+Doe" target="_blank" style="color:#0077c0;">John Doe</a>',start:s(-120),end:s(0),select:"紧急",duration:1296e6,percent:85,type:"project",style:{background:"orange",main:"rgba(109,174,242,1)"}},{id:2,label:"With great power comes great responsibility",user:'<a href="https://www.google.com/search?q=Peter+Parker" target="_blank" style="color:#0077c0;">Peter Parker</a>',parentId:1,start:s(-480),duration:1728e6,percent:50,select:"重要",type:"milestone",collapsed:!0,style:{background:"red",main:"rgba(240,143,145,1)"}},{id:3,label:"Courage is being scared to death, but saddling up anyway.",user:'<a href="https://www.google.com/search?q=John+Wayne" target="_blank" style="color:#0077c0;">John Wayne</a>',parentId:2,select:"普通",start:s(-72),duration:1728e5,percent:100,type:"task",style:{background:"rgba(255,248,242,1)",main:"rgba(255,190,114,1)"}},{id:4,label:"Put that toy AWAY!",user:'<a href="https://www.google.com/search?q=Clark+Kent" target="_blank" style="color:#0077c0;">Clark Kent</a>',start:s(-48),duration:1728e5,select:"紧急",percent:50,type:"task",dependentOn:[3],style:{background:"rgba(235,248,240,1)",main:"rgba(137,213,166,1)"}},{id:5,label:"Put that toy AWAY!",select:"紧急",user:'<a href="https://www.google.com/search?q=Clark+Kent" target="_blank" style="color:#0077c0;">Clark Kent</a>',start:s(24),end:s(24),percent:50,type:"task",dependentOn:[3],style:{background:"rgba(235,248,240,1)",main:"rgba(137,213,166,1)"}}];t.a={name:"briGantt",components:{},props:{simpleDataColor:String,tasks:Array,options:{type:Object,default:function(){return{}}},value:{type:Object,default:function(){return{}}},propsObj:{type:Object,default:function(){return{}}},showEs:{type:Boolean,default:!1},title:String,type:{type:String,default:"table"},dimension:{type:String,default:"quarter"},showCloumns:{type:Boolean,default:!0},table:Array,count:{type:Number,default:5},step:{type:Number,default:1}},computed:{defaultTasks:function(){return this.showEs?c:this.tasks||[]},tableWidth:function(){var e=50*this.simpleData.length,t=this.clientWidth;return"month"===this.computedCountStep.stepKind&&(e=3*this.timeData.length),e<t?"100%":e+"px"},minTdWidth:function(){var e=2;return(e=this.tableWidth.includes("px")?parseInt(this.tableWidth)/this.timeData.length:parseInt(this.clientWidth)/this.timeData.length)>20&&(e=2),e+"px"},computedCountStep:function(){return this.refreshStepCount(),this.dimensionObject[this.dimension]||{count:this.count,step:this.step}},taskData:function(){var e=this.defaultTasks,t=!0,n=!1,r=void 0;try{for(var i,o=a()(e);!(t=(i=o.next()).done);t=!0){var s=i.value;void 0===s.x&&(s.x=0),void 0===s.y&&(s.y=0),void 0===s.width&&(s.width=0),void 0===s.height&&(s.height=0),void 0===s.mouseOver&&(s.mouseOver=!1),void 0===s.collapsed&&(s.collapsed=!1),void 0===s.dependentOn&&(s.dependentOn=[]),void 0===s.parentId&&(s.parentId=null),void 0===s.style&&(s.style={}),void 0===s.children&&(s.children=[]),void 0===s.allChildren&&(s.allChildren=[]),void 0===s.parents&&(s.parents=[]),void 0===s.parent&&(s.parent=null),void 0===s.startTime&&(s.startTime=new Date(s.start).valueOf()),void 0===s.endTime&&s.hasOwnProperty("end")?s.endTime=new Date(s.end).valueOf():void 0===s.endTime&&s.hasOwnProperty("duration")&&(s.endTime=s.startTime+s.duration-864e5),void 0===s.duration&&s.hasOwnProperty("endTime")&&(s.duration=s.endTime-s.startTime)}}catch(e){n=!0,r=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}return e},simpleData:function(){for(var e=this.computedCountStep,t=e.count,n=e.step,r=e.stepKind,i=[{key:s(0),endKey:s(24*(n-1)+23.9999),name:"今天",colspan:1,fullName:this.dateFormat(s(0),"yyyy-MM-dd"),style:{color:this.simpleDataColor,fontWeight:500},now:!0}],o=this.preCount*t+t,a=this.nextCount*t+t,c=-n;c>=-o*n;c-=n){var u="month"===r?l(c):s(24*c);i.unshift({colspan:1,key:u,endKey:s(24*(c+n-1)+23.9999),name:this.getDayName(u,r),fullName:this.dateFormat(u,"yyyy-MM-dd"),style:"1"==this.dateFormat(u,"d")&&{fontWeight:500}})}for(var d=n;d<=a*n;d+=n){var f="month"===r?l(d):s(24*d);i.push({colspan:1,key:f,endKey:s(24*(d+n-1)+23.9999),name:this.getDayName(f,r),fullName:this.dateFormat(f,"yyyy-MM-dd"),style:"1"==this.dateFormat(f,"d")&&{fontWeight:500}})}return i},timeData:function(){var e=this.computedCountStep,t=e.count,n=e.step,r=e.stepKind,i=[],o=this.preCount*t+t,a=this.nextCount*t+t,c=-o*n,u=a*n;"month"===r&&(c=(l(-o)-l(0))/24/60/60/1e3,u=(l(a)-l(0))/24/60/60/1e3);for(var d=c;d<=u;d++){var f=s(24*d);i.push({now:this.dateFormat(f,"yyyy-MM-dd")===this.dateFormat(new Date,"yyyy-MM-dd"),key:f,endKey:s(24*d+23.9999),name:this.getDayName(f,r),fullName:this.dateFormat(f,"yyyy-MM-dd")})}return i},computedData:function(){var e=this;return this.taskData.map(function(t){var n=[];return e.timeData.forEach(function(r){if(e.filterTaskDate(t,r)){var o=new Date(r.endKey)>new Date(t.endTime);if(n[n.length-1]&&n[n.length-1].isApply)n[n.length-1].colspan++,o&&(n[n.length-1].isEndStep=o);else{var a=i()({colspan:1},r,{style:t.style||{background:"rgba(232,243,253,1)",border:"1px solid rgba(109,174,242,1)",main:"rgba(109,174,242,1)"},task:t,isApply:!0});o&&(a.isEndStep=o),n.push(a)}}else{var s=i()({colspan:1},r,{task:t,isApply:!1});n.push(s)}}),n})},theme:function(){return this.propsObj.theme||{}},themeName:function(){return this.theme.name}},data:function(){return{clientWidth:0,nextCount:0,preCount:0,dimensionObject:{doubleWeek:{name:"按周",count:3,step:1,stepKind:"day"},week:{name:"双周",count:7,step:1,stepKind:"day"},month:{name:"按月",count:7,step:2,stepKind:"day"},quarter:{name:"季度",count:9,step:5,stepKind:"day"},year:{name:"按年",count:6,step:1,stepKind:"month"}},nowOffsetLeft:0}},created:function(){this.init()},mounted:function(){window.onresize=this.refreshWidth},methods:{init:function(){var e=this;setTimeout(function(){e.refreshWidth()})},filterTaskDate:function(e,t){return new Date(e.startTime)<=new Date(t.endKey)&&(e.endTime?new Date(t.key)<=new Date(e.endTime):e.endInfinite)},getDayName:function(e,t){var n=this.dateFormat(e,"M月d日");return"1日"===n&&(n=this.dateFormat(e,"M月d日")),"month"===t&&"1月"===(n=this.dateFormat(e,"M月"))&&(n=""+this.dateFormat(e,"yyyy年M月")),n},refreshStepCount:function(){this.preCount=0,this.nextCount=0},refreshWidth:function(){this.clientWidth=this.$refs.briGanttArea?this.$refs.briGanttArea.clientWidth:0},refresh:function(){},dateFormat:function(e,t){var n=new Date(e),r={"M+":n.getMonth()+1,"d+":n.getDate(),"h+":n.getHours(),"m+":n.getMinutes(),"s+":n.getSeconds(),"q+":Math.floor((n.getMonth()+3)/3),S:n.getMilliseconds()};for(var i in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(n.getFullYear()+"").substr(4-RegExp.$1.length))),r)new RegExp("("+i+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?r[i]:("00"+r[i]).substr((""+r[i]).length)));return t},handleScroll:function(e,t){var n=this;t.forEach(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:item,r=t.ref,i=t.direction;n.$refs[r]&&(n.$refs[r][i]=e.target[i])})},preTime:function(){var e=this,t=this.$refs.briGanttTimer,n=t.clientWidth,r=t.scrollLeft;0===r?(this.preCount++,this.$nextTick(function(){e.slideTo(t,r-n)})):this.slideTo(t,r-n)},nextTime:function(){var e=this,t=this.$refs.briGanttTimer,n=t.clientWidth,r=parseInt(this.tableWidth),i=t.scrollLeft;i<r-n?this.slideTo(t,i+n):(this.nextCount++,this.$nextTick(function(){e.slideTo(t,i+n)}))},slideTo:function(e,t){var n=e.scrollLeft,r=t-n,i=r/10,o=n+i,a=setInterval(function(){(r>0?o>t:o<t)?clearInterval(a):(e.scrollTo(o,0),o+=i)},10)}},filters:{},destroyed:function(){window.onresize=null}}},function(e,t,n){"use strict";t.a={name:"BriIframe",props:{url:{type:String,required:!0},allow:{type:String,default:"fullscreen"}},data:function(){return{loading:!1,noData:this.$imageSrcMap.app.nodata}},computed:{},mounted:function(){this.init(),window.addEventListener("message",this.onMessage)},beforeDestroy:function(){window.removeEventListener("message",this.onMessage,!0)},methods:{init:function(){var e=this,t=this.$refs.BriIframe;t&&(this.loading=!0,t.attachEvent?t.attachEvent("onreadystatechange",function(){"complete"!==t.readyState&&"loaded"!=t.readyState||e.loadingEnd()}):t.addEventListener("load",function(){e.loadingEnd()},!1))},loadingEnd:function(){this.loading=!1},onMessage:function(e){var t=e.data;"success"===t.status&&this.$emit("on-message",t)}}}},,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n.n(r),o=n(36),a=n.n(o),s=n(220),l=n(222),c=n.n(l),u=n(223),d=n.n(u),f=n(224),h=n.n(f),p=n(225),m=(n.n(p),n(229)),y=n.n(m),v=n(105),g=n(117),b=n(115),_=n(245),k=n(247),w=n(249),x=n(322),C=n(324),S=n(326),A=n(328),O=n(330),j=n(122),T=n(61),E=n(81),D=n(85),I=n(87),R=n(75),M=n(72),P=n(332),L=n(347),B=n(351),N=n(353),F=n(355),K=n(357),V=n(361),z=n(363),U=n(365),q=n(367),W=n(369),$=n(371),H=n(373),G=n(388),Z=n(390),Y=n(392),X=n(394),J=n(396),Q=n(398),ee=n(400),te=n(402),ne=n(404),re=n(405),ie=n(406),oe=n(414),ae=n(418),se=n(163),le=n(422),ce=n(161),ue=n(62),de=n(86),fe=n(77),he=n(78),pe=n(88),me=n(63),ye=n(42),ve=n(76),ge=n(80),be=n(79),_e=n(89),ke=n(92),we=n(90),xe=n(93),Ce=n(94),Se=n(424),Ae=n(426),Oe=n(428);n.d(t,"DshDraggable",function(){return d.a}),n.d(t,"DshCropper",function(){return h.a}),n.d(t,"Error500",function(){return ie.a}),n.d(t,"Error403",function(){return oe.a}),n.d(t,"Error404",function(){return ae.a}),n.d(t,"DshBox",function(){return v.default}),n.d(t,"DshTable",function(){return g.default}),n.d(t,"DshList",function(){return b.default}),n.d(t,"BriCard",function(){return se.a}),n.d(t,"BriFlatTable",function(){return _.a}),n.d(t,"BriTable",function(){return k.a}),n.d(t,"BriTree",function(){return le.a}),n.d(t,"BriTreeItem",function(){return ce.a}),n.d(t,"DshCascaderTable",function(){return w.a}),n.d(t,"DshPage",function(){return x.a}),n.d(t,"DshForm",function(){return C.a}),n.d(t,"DshAdvSearchForm",function(){return S.a}),n.d(t,"DshDefaultSearch",function(){return A.a}),n.d(t,"DshFormItem",function(){return O.a}),n.d(t,"DshUnit",function(){return j.a}),n.d(t,"DshInput",function(){return E.default}),n.d(t,"DshNumber",function(){return D.default}),n.d(t,"DshSelect",function(){return I.default}),n.d(t,"DshCheckbox",function(){return R.default}),n.d(t,"DshCascader",function(){return M.default}),n.d(t,"BriInputs",function(){return ue.default}),n.d(t,"DshNumberange",function(){return de.default}),n.d(t,"DshDate",function(){return fe.default}),n.d(t,"DshDaterange",function(){return he.default}),n.d(t,"DshSwitch",function(){return pe.default}),n.d(t,"BriUpload",function(){return me.default}),n.d(t,"BriUploadImage",function(){return ye.default}),n.d(t,"DshCoordinates",function(){return ve.default}),n.d(t,"DshEditor",function(){return ge.default}),n.d(t,"DshDivider",function(){return be.default}),n.d(t,"DshPackage",function(){return _e.default}),n.d(t,"DshBack",function(){return xe.default}),n.d(t,"DshUndeveloped",function(){return Ce.default}),n.d(t,"selectUsers",function(){return ke.default}),n.d(t,"selectDepartments",function(){return we.default}),n.d(t,"BriCode",function(){return P.a}),n.d(t,"BriLoading",function(){return L.a}),n.d(t,"DshAvatar",function(){return B.a}),n.d(t,"DshBtnModal",function(){return N.a}),n.d(t,"DshColorPanel",function(){return F.a}),n.d(t,"DshEditPanel",function(){return K.a}),n.d(t,"DshMenu",function(){return V.a}),n.d(t,"DshMenuNav",function(){return z.a}),n.d(t,"BriCollapseTree",function(){return Se.a}),n.d(t,"BriGantt",function(){return Ae.a}),n.d(t,"BriIframe",function(){return Oe.a}),n.d(t,"BriButton",function(){return U.a}),n.d(t,"BriDrawer",function(){return q.a}),n.d(t,"DshButtons",function(){return $.a}),n.d(t,"BriTooltip",function(){return W.a}),n.d(t,"DshCrumbs",function(){return H.a}),n.d(t,"DshCrumbsItem",function(){return G.a}),n.d(t,"DshDropdown",function(){return Z.a}),n.d(t,"DshIcons",function(){return Y.a}),n.d(t,"DshModal",function(){return X.a}),n.d(t,"DshSteps",function(){return J.a}),n.d(t,"DshTabs",function(){return Q.a}),n.d(t,"DshTags",function(){return ee.a}),n.d(t,"DshTitle",function(){return te.a}),n.d(t,"DshRender",function(){return ne.a}),n.d(t,"DshTdRender",function(){return re.a});var je={DshDraggable:d.a,DshCropper:h.a,DshBox:v.default,DshTable:g.default,DshList:b.default,BriFlatTable:_.a,BriTable:k.a,DshCascaderTable:w.a,DshPage:x.a,DshForm:C.a,DshAdvSearchForm:S.a,DshDefaultSearch:A.a,DshFormItem:O.a,DshUnit:j.a,BriControlInput:T.default,DshInput:E.default,DshNumber:D.default,DshSelect:I.default,DshCheckbox:R.default,DshCascader:M.default,BriLoading:L.a,DshAvatar:B.a,DshBtnModal:N.a,DshEditPanel:K.a,DshColorPanel:F.a,DshMenu:V.a,DshMenuNav:z.a,BriButton:U.a,BriDrawer:q.a,BriTooltip:W.a,DshButtons:$.a,DshCrumbs:H.a,DshCrumbsItem:G.a,DshDropdown:Z.a,DshIcons:Y.a,DshModal:X.a,DshSteps:J.a,DshTabs:Q.a,DshTags:ee.a,DshTitle:te.a,DshRender:ne.a,DshTdRender:re.a};t.default=i()({install:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c.a.LoadingBar.config({color:"#2d8cf0",failedColor:"red",height:3}),e.use(c.a),p.VeLocale.use(y.a),e.use(p.VeTable),a()(s.a).forEach(function(t){e.prototype["$"+t]=s.a[t]});var n=t.globalMap,r=i()({},je,n||{});a()(r).forEach(function(t){e.component(t,r[t])})}},je)},function(e,t,n){n(213),e.exports=n(4).Object.assign},function(e,t,n){var r=n(8);r(r.S+r.F,"Object",{assign:n(214)})},function(e,t,n){"use strict";var r=n(9),i=n(21),o=n(55),a=n(27),s=n(28),l=n(100),c=Object.assign;e.exports=!c||n(20)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=r})?function(e,t){for(var n=s(e),c=arguments.length,u=1,d=o.f,f=a.f;c>u;)for(var h,p=l(arguments[u++]),m=d?i(p).concat(d(p)):i(p),y=m.length,v=0;y>v;)h=m[v++],r&&!f.call(p,h)||(n[h]=p[h]);return n}:c},function(e,t,n){var r=n(17),i=n(50),o=n(216);e.exports=function(e){return function(t,n,a){var s,l=r(t),c=i(l.length),u=o(a,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},function(e,t,n){var r=n(51),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):o(e,t)}},function(e,t,n){n(218),e.exports=n(4).Object.keys},function(e,t,n){var r=n(28),i=n(21);n(219)("keys",function(){return function(e){return i(r(e))}})},function(e,t,n){var r=n(8),i=n(4),o=n(20);e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o(function(){n(1)}),"Object",a)}},function(e,t,n){"use strict";var r=n(1),i=n.n(r),o=n(221);t.a=i()({},o.a)},function(e,t,n){"use strict";var r=n(1),i=n.n(r);t.a={transformToColumns:function(e){var t=this,n=this.listPropsObj&&this.listPropsObj.headerFilter;return e.filter(function(e){return"tag"!==e._type}).map(function(e){var r=t.$modFieldMap[e._type]||{};return i()({title:e._name,field:e._key,key:e._key,align:e._align||r.align,width:e._width||r.width,sortBy:n?e._sortBy||r.sortBy:void 0,renderHeaderCell:function(e,t){e.row;var n=e.column;return t("div",{class:{"bri-table-ellipsis":void 0!=n.sortBy||n.filter||n.filterCustom},directives:[{name:"ellipsis"}]},n.title)}},e._type?"operation"===e._type?{renderBodyCell:function(n,r){return r("dsh-buttons",{props:{list:e._getBtnList?e._getBtnList.call(t,n.row):t.$getOperationList(e._list),itemClass:"table-operation-btn"},on:{click:function(e){t.$dispatchEvent(e,n)}}})}}:{renderBodyCell:function(t,n){var r=t.row;return t.column,n("dsh-unit",{props:{canEdit:!1,rowIndex:t.rowIndex,formData:r,formItem:e}})}}:{},["select","checkbox"].includes(e._type)?{filter:n?{isMultiple:!0,maxHeight:300,filterList:e._data.map(function(e){return i()({},e,{value:e._key,label:e.name,selected:!1})}),filterConfirm:function(n){var r={logic:"field",fieldKey:e._key,fieldType:e._type,fieldValue:n.filter(function(e){return e.selected}).map(function(e){return e._key}),fieldOperator:"eq"};t.filterConfirm&&t.filterConfirm(r)},filterReset:function(){var n={logic:"field",fieldKey:e._key,fieldType:e._type,fieldValue:[],fieldOperator:"eq"};t.filterReset&&t.filterReset(n)}}:null}:{},e)})}}},function(e,t){e.exports=n},function(e,t){e.exports=r},function(e,t){e.exports=i},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="",n(n.s=141)}([function(e,t,n){var r=n(2),i=n(22).f,o=n(19),a=n(20),s=n(78),l=n(111),c=n(65);e.exports=function(e,t){var n,u,d,f,h,p=e.target,m=e.global,y=e.stat;if(n=m?r:y?r[p]||s(p,{}):(r[p]||{}).prototype)for(u in t){if(f=t[u],d=e.noTargetGet?(h=i(n,u))&&h.value:n[u],!c(m?u:p+(y?".":"#")+u,e.forced)&&void 0!==d){if(typeof f==typeof d)continue;l(f,d)}(e.sham||d&&d.sham)&&o(f,"sham",!0),a(n,u,f,e)}}},function(e,t,n){"use strict";var r=n(11),i=n(2),o=n(65),a=n(20),s=n(15),l=n(31),c=n(107),u=n(50),d=n(3),f=n(54),h=n(68).f,p=n(22).f,m=n(14).f,y=n(146).trim,v=i.Number,g=v.prototype,b="Number"==l(f(g)),_=function(e){var t,n,r,i,o,a,s,l,c=u(e,!1);if("string"==typeof c&&c.length>2)if(43===(t=(c=y(c)).charCodeAt(0))||45===t){if(88===(n=c.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(c.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+c}for(a=(o=c.slice(2)).length,s=0;s<a;s++)if((l=o.charCodeAt(s))<48||l>i)return NaN;return parseInt(o,r)}return+c};if(o("Number",!v(" 0o1")||!v("0b1")||v("+0x1"))){for(var k,w=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof w&&(b?d(function(){g.valueOf.call(n)}):"Number"!=l(n))?c(new v(_(t)),n,w):_(t)},x=r?h(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),C=0;x.length>C;C++)s(v,k=x[C])&&!s(w,k)&&m(w,k,p(v,k));w.prototype=g,g.constructor=w,a(i,"Number",w)}},function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(this,n(102))},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(2),i=n(63),o=n(15),a=n(64),s=n(80),l=n(106),c=i("wks"),u=r.Symbol,d=l?u:u&&u.withoutSetter||a;e.exports=function(e){return o(c,e)&&(s||"string"==typeof c[e])||(s&&o(u,e)?c[e]=u[e]:c[e]=d("Symbol."+e)),c[e]}},function(e,t){e.exports=n(56)},function(e,t){e.exports=n(58)},function(e,t,n){var r=n(11),i=n(14).f,o=Function.prototype,a=o.toString,s=/^\s*function ([^ (]*)/;r&&!("name"in o)&&i(o,"name",{configurable:!0,get:function(){try{return a.call(this).match(s)[1]}catch(e){return""}}})},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(8);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,n){var r=n(2),i=n(103),o=n(142),a=n(19);for(var s in i){var l=r[s],c=l&&l.prototype;if(c&&c.forEach!==o)try{a(c,"forEach",o)}catch(e){c.forEach=o}}},function(e,t,n){var r=n(3);e.exports=!r(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},function(e,t,n){"use strict";var r=n(0),i=n(37).map;r({target:"Array",proto:!0,forced:!n(60)("map")},{map:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(48),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){var r=n(11),i=n(104),o=n(9),a=n(50),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(o(e),t=a(t,!0),o(n),i)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(16),i={}.hasOwnProperty;e.exports=function(e,t){return i.call(r(e),t)}},function(e,t,n){var r=n(17);e.exports=function(e){return Object(r(e))}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(47),i=n(17);e.exports=function(e){return r(i(e))}},function(e,t,n){var r=n(11),i=n(14),o=n(51);e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(2),i=n(19),o=n(15),a=n(78),s=n(83),l=n(39),c=l.get,u=l.enforce,d=String(String).split("String");(e.exports=function(e,t,n,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,h=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||o(n,"name")||i(n,"name",t),(l=u(n)).source||(l.source=d.join("string"==typeof t?t:""))),e!==r?(c?!h&&e[t]&&(f=!0):delete e[t],f?e[t]=n:i(e,t,n)):f?e[t]=n:a(t,n)})(Function.prototype,"toString",function(){return"function"==typeof this&&c(this).source||s(this)})},function(e,t,n){"use strict";var r=n(0),i=n(37).filter;r({target:"Array",proto:!0,forced:!n(60)("filter")},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(11),i=n(69),o=n(51),a=n(18),s=n(50),l=n(15),c=n(104),u=Object.getOwnPropertyDescriptor;t.f=r?u:function(e,t){if(e=a(e),t=s(t,!0),c)try{return u(e,t)}catch(e){}if(l(e,t))return o(!i.f.call(e,t),e[t])}},function(e,t,n){"use strict";var r=n(0),i=n(109).includes,o=n(57);r({target:"Array",proto:!0},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("includes")},function(e,t,n){"use strict";var r=n(0),i=n(89),o=n(17);r({target:"String",proto:!0,forced:!n(90)("includes")},{includes:function(e){return!!~String(o(this)).indexOf(i(e),arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(0),i=n(155);r({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},function(e,t,n){"use strict";var r=n(0),i=n(157);r({target:"String",proto:!0,forced:n(158)("fixed")},{fixed:function(){return i(this,"tt","","")}})},function(e,t,n){var r=n(87),i=n(20),o=n(149);r||i(Object.prototype,"toString",o,{unsafe:!0})},function(e,t,n){"use strict";var r=n(0),i=n(37).findIndex,o=n(57),a=!0;"findIndex"in[]&&Array(1).findIndex(function(){a=!1}),r({target:"Array",proto:!0,forced:a},{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("findIndex")},function(e,t,n){"use strict";var r=n(0),i=n(37).find,o=n(57),a=!0;"find"in[]&&Array(1).find(function(){a=!1}),r({target:"Array",proto:!0,forced:a},{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("find")},function(e,t){e.exports=n(57)},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=!1},function(e,t,n){"use strict";var r=n(0),i=n(2),o=n(38),a=n(32),s=n(11),l=n(80),c=n(106),u=n(3),d=n(15),f=n(49),h=n(8),p=n(9),m=n(16),y=n(18),v=n(50),g=n(51),b=n(54),_=n(55),k=n(68),w=n(148),x=n(86),C=n(22),S=n(14),A=n(69),O=n(19),j=n(20),T=n(63),E=n(66),D=n(53),I=n(64),R=n(4),M=n(113),P=n(114),L=n(56),B=n(39),N=n(37).forEach,F=E("hidden"),K=R("toPrimitive"),V=B.set,z=B.getterFor("Symbol"),U=Object.prototype,q=i.Symbol,W=o("JSON","stringify"),$=C.f,H=S.f,G=w.f,Z=A.f,Y=T("symbols"),X=T("op-symbols"),J=T("string-to-symbol-registry"),Q=T("symbol-to-string-registry"),ee=T("wks"),te=i.QObject,ne=!te||!te.prototype||!te.prototype.findChild,re=s&&u(function(){return 7!=b(H({},"a",{get:function(){return H(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=$(U,t);r&&delete U[t],H(e,t,n),r&&e!==U&&H(U,t,r)}:H,ie=function(e,t){var n=Y[e]=b(q.prototype);return V(n,{type:"Symbol",tag:e,description:t}),s||(n.description=t),n},oe=c?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof q},ae=function(e,t,n){e===U&&ae(X,t,n),p(e);var r=v(t,!0);return p(n),d(Y,r)?(n.enumerable?(d(e,F)&&e[F][r]&&(e[F][r]=!1),n=b(n,{enumerable:g(0,!1)})):(d(e,F)||H(e,F,g(1,{})),e[F][r]=!0),re(e,r,n)):H(e,r,n)},se=function(e,t){p(e);var n=y(t),r=_(n).concat(de(n));return N(r,function(t){s&&!le.call(n,t)||ae(e,t,n[t])}),e},le=function(e){var t=v(e,!0),n=Z.call(this,t);return!(this===U&&d(Y,t)&&!d(X,t))&&(!(n||!d(this,t)||!d(Y,t)||d(this,F)&&this[F][t])||n)},ce=function(e,t){var n=y(e),r=v(t,!0);if(n!==U||!d(Y,r)||d(X,r)){var i=$(n,r);return!i||!d(Y,r)||d(n,F)&&n[F][r]||(i.enumerable=!0),i}},ue=function(e){var t=G(y(e)),n=[];return N(t,function(e){d(Y,e)||d(D,e)||n.push(e)}),n},de=function(e){var t=e===U,n=G(t?X:y(e)),r=[];return N(n,function(e){!d(Y,e)||t&&!d(U,e)||r.push(Y[e])}),r};l||(j((q=function(){if(this instanceof q)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=I(e),n=function(e){this===U&&n.call(X,e),d(this,F)&&d(this[F],t)&&(this[F][t]=!1),re(this,t,g(1,e))};return s&&ne&&re(U,t,{configurable:!0,set:n}),ie(t,e)}).prototype,"toString",function(){return z(this).tag}),j(q,"withoutSetter",function(e){return ie(I(e),e)}),A.f=le,S.f=ae,C.f=ce,k.f=w.f=ue,x.f=de,M.f=function(e){return ie(R(e),e)},s&&(H(q.prototype,"description",{configurable:!0,get:function(){return z(this).description}}),a||j(U,"propertyIsEnumerable",le,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:q}),N(_(ee),function(e){P(e)}),r({target:"Symbol",stat:!0,forced:!l},{for:function(e){var t=String(e);if(d(J,t))return J[t];var n=q(t);return J[t]=n,Q[n]=t,n},keyFor:function(e){if(!oe(e))throw TypeError(e+" is not a symbol");if(d(Q,e))return Q[e]},useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),r({target:"Object",stat:!0,forced:!l,sham:!s},{create:function(e,t){return void 0===t?b(e):se(b(e),t)},defineProperty:ae,defineProperties:se,getOwnPropertyDescriptor:ce}),r({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:ue,getOwnPropertySymbols:de}),r({target:"Object",stat:!0,forced:u(function(){x.f(1)})},{getOwnPropertySymbols:function(e){return x.f(m(e))}}),W&&r({target:"JSON",stat:!0,forced:!l||u(function(){var e=q();return"[null]"!=W([e])||"{}"!=W({a:e})||"{}"!=W(Object(e))})},{stringify:function(e,t,n){for(var r,i=[e],o=1;arguments.length>o;)i.push(arguments[o++]);if(r=t,(h(t)||void 0!==e)&&!oe(e))return f(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!oe(t))return t}),i[1]=t,W.apply(null,i)}}),q.prototype[K]||O(q.prototype,K,q.prototype.valueOf),L(q,"Symbol"),D[F]=!0},function(e,t,n){"use strict";var r=n(18),i=n(57),o=n(58),a=n(39),s=n(88),l=a.set,c=a.getterFor("Array Iterator");e.exports=s(Array,"Array",function(e,t){l(this,{type:"Array Iterator",target:r(e),index:0,kind:t})},function(){var e=c(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},function(e,t,n){"use strict";var r=n(0),i=n(3),o=n(49),a=n(8),s=n(16),l=n(13),c=n(59),u=n(76),d=n(60),f=n(4),h=n(52),p=f("isConcatSpreadable"),m=h>=51||!i(function(){var e=[];return e[p]=!1,e.concat()[0]!==e}),y=d("concat"),v=function(e){if(!a(e))return!1;var t=e[p];return void 0!==t?!!t:o(e)};r({target:"Array",proto:!0,forced:!m||!y},{concat:function(e){var t,n,r,i,o,a=s(this),d=u(a,0),f=0;for(t=-1,r=arguments.length;t<r;t++)if(v(o=-1===t?a:arguments[t])){if(f+(i=l(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<i;n++,f++)n in o&&c(d,f,o[n])}else{if(f>=9007199254740991)throw TypeError("Maximum allowed index exceeded");c(d,f++,o)}return d.length=f,d}})},function(e,t,n){"use strict";var r=n(0),i=n(8),o=n(49),a=n(67),s=n(13),l=n(18),c=n(59),u=n(4),d=n(60)("slice"),f=u("species"),h=[].slice,p=Math.max;r({target:"Array",proto:!0,forced:!d},{slice:function(e,t){var n,r,u,d=l(this),m=s(d.length),y=a(e,m),v=a(void 0===t?m:t,m);if(o(d)&&("function"!=typeof(n=d.constructor)||n!==Array&&!o(n.prototype)?i(n)&&null===(n=n[f])&&(n=void 0):n=void 0,n===Array||void 0===n))return h.call(d,y,v);for(r=new(void 0===n?Array:n)(p(v-y,0)),u=0;y<v;y++,u++)y in d&&c(r,u,d[y]);return r.length=u,r}})},function(e,t,n){var r=n(45),i=n(47),o=n(16),a=n(13),s=n(76),l=[].push,c=function(e){var t=1==e,n=2==e,c=3==e,u=4==e,d=6==e,f=7==e,h=5==e||d;return function(p,m,y,v){for(var g,b,_=o(p),k=i(_),w=r(m,y,3),x=a(k.length),C=0,S=v||s,A=t?S(p,x):n||f?S(p,0):void 0;x>C;C++)if((h||C in k)&&(b=w(g=k[C],C,_),e))if(t)A[C]=b;else if(b)switch(e){case 3:return!0;case 5:return g;case 6:return C;case 2:l.call(A,g)}else switch(e){case 4:return!1;case 7:l.call(A,g)}return d?-1:c||u?u:A}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterOut:c(7)}},function(e,t,n){var r=n(105),i=n(2),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e])||o(i[e]):r[e]&&r[e][t]||i[e]&&i[e][t]}},function(e,t,n){var r,i,o,a=n(143),s=n(2),l=n(8),c=n(19),u=n(15),d=n(77),f=n(66),h=n(53),p=s.WeakMap;if(a||d.state){var m=d.state||(d.state=new p),y=m.get,v=m.has,g=m.set;r=function(e,t){if(v.call(m,e))throw new TypeError("Object already initialized");return t.facade=e,g.call(m,e,t),t},i=function(e){return y.call(m,e)||{}},o=function(e){return v.call(m,e)}}else{var b=f("state");h[b]=!0,r=function(e,t){if(u(e,b))throw new TypeError("Object already initialized");return t.facade=e,c(e,b,t),t},i=function(e){return u(e,b)?e[b]:{}},o=function(e){return u(e,b)}}e.exports={set:r,get:i,has:o,enforce:function(e){return o(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){"use strict";var r=n(118).charAt,i=n(39),o=n(88),a=i.set,s=i.getterFor("String Iterator");o(String,"String",function(e){a(this,{type:"String Iterator",string:String(e),index:0})},function(){var e,t=s(this),n=t.string,i=t.index;return i>=n.length?{value:void 0,done:!0}:(e=r(n,i),t.index+=e.length,{value:e,done:!1})})},function(e,t,n){var r=n(2),i=n(103),o=n(34),a=n(19),s=n(4),l=s("iterator"),c=s("toStringTag"),u=o.values;for(var d in i){var f=r[d],h=f&&f.prototype;if(h){if(h[l]!==u)try{a(h,l,u)}catch(e){h[l]=u}if(h[c]||a(h,c,d),i[d])for(var p in o)if(h[p]!==o[p])try{a(h,p,o[p])}catch(e){h[p]=o[p]}}}},function(e,t,n){var r=n(0),i=n(16),o=n(55);r({target:"Object",stat:!0,forced:n(3)(function(){o(1)})},{keys:function(e){return o(i(e))}})},function(e,t){e.exports=n(102)},function(e,t){e.exports=n(103)},function(e,t,n){var r=n(46);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};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)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){var r=n(3),i=n(31),o="".split;e.exports=r(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==i(e)?o.call(e,""):Object(e)}:Object},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(31);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(8);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")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r,i,o=n(2),a=n(81),s=o.process,l=s&&s.versions,c=l&&l.v8;c?i=(r=c.split("."))[0]<4?1:r[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=r[1]),e.exports=i&&+i},function(e,t){e.exports={}},function(e,t,n){var r,i=n(9),o=n(145),a=n(85),s=n(53),l=n(110),c=n(79),u=n(66)("IE_PROTO"),d=function(){},f=function(e){return"<script>"+e+"<\/script>"},h=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;h=r?function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t}(r):((t=c("iframe")).style.display="none",l.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F);for(var n=a.length;n--;)delete h.prototype[a[n]];return h()};s[u]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(d.prototype=i(e),n=new d,d.prototype=null,n[u]=e):n=h(),void 0===t?n:o(n,t)}},function(e,t,n){var r=n(108),i=n(85);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){var r=n(14).f,i=n(15),o=n(4)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t,n){var r=n(4),i=n(54),o=n(14),a=r("unscopables"),s=Array.prototype;null==s[a]&&o.f(s,a,{configurable:!0,value:i(null)}),e.exports=function(e){s[a][e]=!0}},function(e,t){e.exports={}},function(e,t,n){"use strict";var r=n(50),i=n(14),o=n(51);e.exports=function(e,t,n){var a=r(t);a in e?i.f(e,a,o(0,n)):e[a]=n}},function(e,t,n){var r=n(3),i=n(4),o=n(52),a=i("species");e.exports=function(e){return o>=51||!r(function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo})}},function(e,t,n){"use strict";var r=n(0),i=n(67),o=n(48),a=n(13),s=n(16),l=n(76),c=n(59),u=n(60)("splice"),d=Math.max,f=Math.min;r({target:"Array",proto:!0,forced:!u},{splice:function(e,t){var n,r,u,h,p,m,y=s(this),v=a(y.length),g=i(e,v),b=arguments.length;if(0===b?n=r=0:1===b?(n=0,r=v-g):(n=b-2,r=f(d(o(t),0),v-g)),v+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(u=l(y,r),h=0;h<r;h++)(p=g+h)in y&&c(u,h,y[p]);if(u.length=r,n<r){for(h=g;h<v-r;h++)m=h+n,(p=h+r)in y?y[m]=y[p]:delete y[m];for(h=v;h>v-r+n;h--)delete y[h-1]}else if(n>r)for(h=v-r;h>g;h--)m=h+n-1,(p=h+r-1)in y?y[m]=y[p]:delete y[m];for(h=0;h<n;h++)y[h+g]=arguments[h+2];return y.length=v-r+n,u}})},function(e,t,n){"use strict";var r=n(0),i=n(72);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},function(e,t,n){var r=n(32),i=n(77);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.13.0",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},function(e,t,n){var r=n(3),i=/#|\.prototype\./,o=function(e,t){var n=s[a(e)];return n==c||n!=l&&("function"==typeof t?r(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=o.data={},l=o.NATIVE="N",c=o.POLYFILL="P";e.exports=o},function(e,t,n){var r=n(63),i=n(64),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},function(e,t,n){var r=n(48),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},function(e,t,n){var r=n(108),i=n(85).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},function(e,t,n){"use strict";var r=n(0),i=n(11),o=n(2),a=n(15),s=n(8),l=n(14).f,c=n(111),u=o.Symbol;if(i&&"function"==typeof u&&(!("description"in u.prototype)||void 0!==u().description)){var d={},f=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof f?new u(e):void 0===e?u():u(e);return""===e&&(d[t]=!0),t};c(f,u);var h=f.prototype=u.prototype;h.constructor=f;var p=h.toString,m="Symbol(test)"==String(u("test")),y=/^Symbol\((.*)\)[^)]+$/;l(h,"description",{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=p.call(e);if(a(d,e))return"";var n=m?t.slice(7,-1):t.replace(y,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:f})}},function(e,t,n){n(114)("iterator")},function(e,t,n){"use strict";var r,i,o=n(120),a=n(121),s=n(63),l=RegExp.prototype.exec,c=s("native-string-replace",String.prototype.replace),u=l,d=(r=/a/,i=/b*/g,l.call(r,"a"),l.call(i,"a"),0!==r.lastIndex||0!==i.lastIndex),f=a.UNSUPPORTED_Y||a.BROKEN_CARET,h=void 0!==/()??/.exec("")[1];(d||h||f)&&(u=function(e){var t,n,r,i,a=this,s=f&&a.sticky,u=o.call(a),p=a.source,m=0,y=e;return s&&(-1===(u=u.replace("y","")).indexOf("g")&&(u+="g"),y=String(e).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==e[a.lastIndex-1])&&(p="(?: "+p+")",y=" "+y,m++),n=new RegExp("^(?:"+p+")",u)),h&&(n=new RegExp("^"+p+"$(?!\\s)",u)),d&&(t=a.lastIndex),r=l.call(s?n:a,y),s?r?(r.input=r.input.slice(m),r[0]=r[0].slice(m),r.index=a.lastIndex,a.lastIndex+=r[0].length):a.lastIndex=0:d&&r&&(a.lastIndex=a.global?r.index+r[0].length:t),h&&r&&r.length>1&&c.call(r[0],n,function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)}),r}),e.exports=u},function(e,t,n){"use strict";var r=n(0),i=n(159).left,o=n(82),a=n(52),s=n(74);r({target:"Array",proto:!0,forced:!o("reduce")||!s&&a>79&&a<83},{reduce:function(e){return i(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(31),i=n(2);e.exports="process"==r(i.process)},function(e,t){e.exports=n(104)},function(e,t,n){var r=n(8),i=n(49),o=n(4)("species");e.exports=function(e,t){var n;return i(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!i(n.prototype)?r(n)&&null===(n=n[o])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},function(e,t,n){var r=n(2),i=n(78),o=r["__core-js_shared__"]||i("__core-js_shared__",{});e.exports=o},function(e,t,n){var r=n(2),i=n(19);e.exports=function(e,t){try{i(r,e,t)}catch(n){r[e]=t}return t}},function(e,t,n){var r=n(2),i=n(8),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},function(e,t,n){var r=n(52),i=n(3);e.exports=!!Object.getOwnPropertySymbols&&!i(function(){return!String(Symbol())||!Symbol.sham&&r&&r<41})},function(e,t,n){var r=n(38);e.exports=r("navigator","userAgent")||""},function(e,t,n){"use strict";var r=n(3);e.exports=function(e,t){var n=[][e];return!!n&&r(function(){n.call(null,t||function(){throw 1},1)})}},function(e,t,n){var r=n(77),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource},function(e,t,n){var r=n(9),i=n(144);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,o){return r(n),i(o),t?e.call(n,o):n.__proto__=o,n}}():void 0)},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r={};r[n(4)("toStringTag")]="z",e.exports="[object z]"===String(r)},function(e,t,n){"use strict";var r=n(0),i=n(150),o=n(117),a=n(84),s=n(56),l=n(19),c=n(20),u=n(4),d=n(32),f=n(58),h=n(116),p=h.IteratorPrototype,m=h.BUGGY_SAFARI_ITERATORS,y=u("iterator"),v=function(){return this};e.exports=function(e,t,n,u,h,g,b){i(n,t,u);var _,k,w,x=function(e){if(e===h&&j)return j;if(!m&&e in A)return A[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},C=t+" Iterator",S=!1,A=e.prototype,O=A[y]||A["@@iterator"]||h&&A[h],j=!m&&O||x(h),T="Array"==t&&A.entries||O;if(T&&(_=o(T.call(new e)),p!==Object.prototype&&_.next&&(d||o(_)===p||(a?a(_,p):"function"!=typeof _[y]&&l(_,y,v)),s(_,C,!0,!0),d&&(f[C]=v))),"values"==h&&O&&"values"!==O.name&&(S=!0,j=function(){return O.call(this)}),d&&!b||A[y]===j||l(A,y,j),f[t]=j,h)if(k={values:x("values"),keys:g?j:x("keys"),entries:x("entries")},b)for(w in k)(m||S||!(w in A))&&c(A,w,k[w]);else r({target:t,proto:!0,forced:m||S},k);return k}},function(e,t,n){var r=n(119);e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},function(e,t,n){var r=n(4)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},function(e,t,n){var r=n(0),i=n(3),o=n(18),a=n(22).f,s=n(11),l=i(function(){a(1)});r({target:"Object",stat:!0,forced:!s||l,sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(o(e),t)}})},function(e,t,n){var r=n(0),i=n(11),o=n(112),a=n(18),s=n(22),l=n(59);r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(e){for(var t,n,r=a(e),i=s.f,c=o(r),u={},d=0;c.length>d;)void 0!==(n=i(r,t=c[d++]))&&l(u,t,n);return u}})},function(e,t,n){"use strict";var r=n(94),i=n(9),o=n(13),a=n(48),s=n(17),l=n(95),c=n(153),u=n(96),d=Math.max,f=Math.min;r("replace",2,function(e,t,n,r){var h=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,p=r.REPLACE_KEEPS_$0,m=h?"$":"$0";return[function(n,r){var i=s(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,i,r):t.call(String(i),n,r)},function(e,r){if(!h&&p||"string"==typeof r&&-1===r.indexOf(m)){var s=n(t,e,this,r);if(s.done)return s.value}var y=i(e),v=String(this),g="function"==typeof r;g||(r=String(r));var b=y.global;if(b){var _=y.unicode;y.lastIndex=0}for(var k=[];;){var w=u(y,v);if(null===w)break;if(k.push(w),!b)break;""===String(w[0])&&(y.lastIndex=l(v,o(y.lastIndex),_))}for(var x,C="",S=0,A=0;A<k.length;A++){w=k[A];for(var O=String(w[0]),j=d(f(a(w.index),v.length),0),T=[],E=1;E<w.length;E++)T.push(void 0===(x=w[E])?x:String(x));var D=w.groups;if(g){var I=[O].concat(T,j,v);void 0!==D&&I.push(D);var R=String(r.apply(void 0,I))}else R=c(O,v,j,T,D,r);j>=S&&(C+=v.slice(S,j)+R,S=j+O.length)}return C+v.slice(S)}]})},function(e,t,n){"use strict";n(62);var r=n(20),i=n(72),o=n(3),a=n(4),s=n(19),l=a("species"),c=RegExp.prototype,u=!o(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}),d="$0"==="a".replace(/./,"$0"),f=a("replace"),h=!!/./[f]&&""===/./[f]("a","$0"),p=!o(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,f){var m=a(e),y=!o(function(){var t={};return t[m]=function(){return 7},7!=""[e](t)}),v=y&&!o(function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[l]=function(){return n},n.flags="",n[m]=/./[m]),n.exec=function(){return t=!0,null},n[m](""),!t});if(!y||!v||"replace"===e&&(!u||!d||h)||"split"===e&&!p){var g=/./[m],b=n(m,""[e],function(e,t,n,r,o){var a=t.exec;return a===i||a===c.exec?y&&!o?{done:!0,value:g.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}},{REPLACE_KEEPS_$0:d,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:h}),_=b[0],k=b[1];r(String.prototype,e,_),r(c,m,2==t?function(e,t){return k.call(e,this,t)}:function(e){return k.call(e,this)})}f&&s(c[m],"sham",!0)}},function(e,t,n){"use strict";var r=n(118).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},function(e,t,n){var r=n(31),i=n(72);e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var o=n.call(e,t);if("object"!=typeof o)throw TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},function(e,t,n){"use strict";var r=n(94),i=n(119),o=n(9),a=n(17),s=n(122),l=n(95),c=n(13),u=n(96),d=n(72),f=n(121).UNSUPPORTED_Y,h=[].push,p=Math.min;r("split",2,function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=String(a(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!i(e))return t.call(r,e,o);for(var s,l,c,u=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,m=new RegExp(e.source,f+"g");(s=d.call(m,r))&&!((l=m.lastIndex)>p&&(u.push(r.slice(p,s.index)),s.length>1&&s.index<r.length&&h.apply(u,s.slice(1)),c=s[0].length,p=l,u.length>=o));)m.lastIndex===s.index&&m.lastIndex++;return p===r.length?!c&&m.test("")||u.push(""):u.push(r.slice(p)),u.length>o?u.slice(0,o):u}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var i=a(this),o=null==t?void 0:t[e];return void 0!==o?o.call(t,i,n):r.call(String(i),t,n)},function(e,i){var a=n(r,e,this,i,r!==t);if(a.done)return a.value;var d=o(e),h=String(this),m=s(d,RegExp),y=d.unicode,v=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(f?"g":"y"),g=new m(f?"^(?:"+d.source+")":d,v),b=void 0===i?4294967295:i>>>0;if(0===b)return[];if(0===h.length)return null===u(g,h)?[h]:[];for(var _=0,k=0,w=[];k<h.length;){g.lastIndex=f?0:k;var x,C=u(g,f?h.slice(k):h);if(null===C||(x=p(c(g.lastIndex+(f?k:0)),h.length))===_)k=l(h,k,y);else{if(w.push(h.slice(_,k)),w.length===b)return w;for(var S=1;S<=C.length-1;S++)if(w.push(C[S]),w.length===b)return w;k=_=x}}return w.push(h.slice(_)),w}]},f)},function(e,t,n){"use strict";var r=n(0),i=n(47),o=n(18),a=n(82),s=[].join,l=i!=Object,c=a("join",",");r({target:"Array",proto:!0,forced:l||!c},{join:function(e){return s.call(o(this),void 0===e?",":e)}})},function(e,t,n){var r=n(4)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[r]=function(){return this},Array.from(a,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},e(o)}catch(e){}return n}},function(e,t,n){var r=n(9),i=n(126),o=n(13),a=n(45),s=n(127),l=n(125),c=function(e,t){this.stopped=e,this.result=t};e.exports=function(e,t,n){var u,d,f,h,p,m,y,v=n&&n.that,g=!(!n||!n.AS_ENTRIES),b=!(!n||!n.IS_ITERATOR),_=!(!n||!n.INTERRUPTED),k=a(t,v,1+g+_),w=function(e){return u&&l(u),new c(!0,e)},x=function(e){return g?(r(e),_?k(e[0],e[1],w):k(e[0],e[1])):_?k(e,w):k(e)};if(b)u=e;else{if("function"!=typeof(d=s(e)))throw TypeError("Target is not iterable");if(i(d)){for(f=0,h=o(e.length);h>f;f++)if((p=x(e[f]))&&p instanceof c)return p;return new c(!1)}u=d.call(e)}for(m=u.next;!(y=m.call(u)).done;){try{p=x(y.value)}catch(e){throw l(u),e}if("object"==typeof p&&p&&p instanceof c)return p}return new c(!1)}},function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t,n){var r=n(11),i=n(3),o=n(79);e.exports=!r&&!i(function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(2);e.exports=r},function(e,t,n){var r=n(80);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,n){var r=n(8),i=n(84);e.exports=function(e,t,n){var o,a;return i&&"function"==typeof(o=t.constructor)&&o!==n&&r(a=o.prototype)&&a!==n.prototype&&i(e,a),e}},function(e,t,n){var r=n(15),i=n(18),o=n(109).indexOf,a=n(53);e.exports=function(e,t){var n,s=i(e),l=0,c=[];for(n in s)!r(a,n)&&r(s,n)&&c.push(n);for(;t.length>l;)r(s,n=t[l++])&&(~o(c,n)||c.push(n));return c}},function(e,t,n){var r=n(18),i=n(13),o=n(67),a=function(e){return function(t,n,a){var s,l=r(t),c=i(l.length),u=o(a,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t,n){var r=n(38);e.exports=r("document","documentElement")},function(e,t,n){var r=n(15),i=n(112),o=n(22),a=n(14);e.exports=function(e,t){for(var n=i(t),s=a.f,l=o.f,c=0;c<n.length;c++){var u=n[c];r(e,u)||s(e,u,l(t,u))}}},function(e,t,n){var r=n(38),i=n(68),o=n(86),a=n(9);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),n=o.f;return n?t.concat(n(e)):t}},function(e,t,n){var r=n(4);t.f=r},function(e,t,n){var r=n(105),i=n(15),o=n(113),a=n(14).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||a(t,e,{value:o.f(e)})}},function(e,t,n){var r=n(87),i=n(31),o=n(4)("toStringTag"),a="Arguments"==i(function(){return arguments}());e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:a?i(t):"Object"==(r=i(t))&&"function"==typeof t.callee?"Arguments":r}},function(e,t,n){"use strict";var r,i,o,a=n(3),s=n(117),l=n(19),c=n(15),u=n(4),d=n(32),f=u("iterator"),h=!1;[].keys&&("next"in(o=[].keys())?(i=s(s(o)))!==Object.prototype&&(r=i):h=!0);var p=null==r||a(function(){var e={};return r[f].call(e)!==e});p&&(r={}),d&&!p||c(r,f)||l(r,f,function(){return this}),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:h}},function(e,t,n){var r=n(15),i=n(16),o=n(66),a=n(151),s=o("IE_PROTO"),l=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=i(e),r(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?l:null}},function(e,t,n){var r=n(48),i=n(17),o=function(e){return function(t,n){var o,a,s=String(i(t)),l=r(n),c=s.length;return l<0||l>=c?e?"":void 0:(o=s.charCodeAt(l))<55296||o>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):o:e?s.slice(l,l+2):a-56320+(o-55296<<10)+65536}};e.exports={codeAt:o(!1),charAt:o(!0)}},function(e,t,n){var r=n(8),i=n(31),o=n(4)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},function(e,t,n){"use strict";var r=n(9);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){"use strict";var r=n(3);function i(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=r(function(){var e=i("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),t.BROKEN_CARET=r(function(){var e=i("^r","gy");return e.lastIndex=2,null!=e.exec("str")})},function(e,t,n){var r=n(9),i=n(46),o=n(4)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[o])?t:i(n)}},function(e,t,n){var r=n(0),i=n(156).values;r({target:"Object",stat:!0},{values:function(e){return i(e)}})},function(e,t,n){var r=n(0),i=n(160);r({target:"Array",stat:!0,forced:!n(99)(function(e){Array.from(e)})},{from:i})},function(e,t,n){var r=n(9);e.exports=function(e){var t=e.return;if(void 0!==t)return r(t.call(e)).value}},function(e,t,n){var r=n(4),i=n(58),o=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},function(e,t,n){var r=n(115),i=n(58),o=n(4)("iterator");e.exports=function(e){if(null!=e)return e[o]||e["@@iterator"]||i[r(e)]}},function(e,t,n){"use strict";var r=n(0),i=n(2),o=n(65),a=n(20),s=n(129),l=n(100),c=n(101),u=n(8),d=n(3),f=n(99),h=n(56),p=n(107);e.exports=function(e,t,n){var m=-1!==e.indexOf("Map"),y=-1!==e.indexOf("Weak"),v=m?"set":"add",g=i[e],b=g&&g.prototype,_=g,k={},w=function(e){var t=b[e];a(b,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(y&&!u(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return y&&!u(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(y&&!u(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(o(e,"function"!=typeof g||!(y||b.forEach&&!d(function(){(new g).entries().next()}))))_=n.getConstructor(t,e,m,v),s.REQUIRED=!0;else if(o(e,!0)){var x=new _,C=x[v](y?{}:-0,1)!=x,S=d(function(){x.has(1)}),A=f(function(e){new g(e)}),O=!y&&d(function(){for(var e=new g,t=5;t--;)e[v](t,t);return!e.has(-0)});A||((_=t(function(t,n){c(t,_,e);var r=p(new g,t,_);return null!=n&&l(n,r[v],{that:r,AS_ENTRIES:m}),r})).prototype=b,b.constructor=_),(S||O)&&(w("delete"),w("has"),m&&w("get")),(O||C)&&w(v),y&&b.clear&&delete b.clear}return k[e]=_,r({global:!0,forced:_!=g},k),h(_,e),y||n.setStrong(_,e,m),_}},function(e,t,n){var r=n(53),i=n(8),o=n(15),a=n(14).f,s=n(64),l=n(163),c=s("meta"),u=0,d=Object.isExtensible||function(){return!0},f=function(e){a(e,c,{value:{objectID:"O"+ ++u,weakData:{}}})},h=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,c)){if(!d(e))return"F";if(!t)return"E";f(e)}return e[c].objectID},getWeakData:function(e,t){if(!o(e,c)){if(!d(e))return!0;if(!t)return!1;f(e)}return e[c].weakData},onFreeze:function(e){return l&&h.REQUIRED&&d(e)&&!o(e,c)&&f(e),e}};r[c]=!0},function(e,t,n){"use strict";var r=n(14).f,i=n(54),o=n(131),a=n(45),s=n(101),l=n(100),c=n(88),u=n(132),d=n(11),f=n(129).fastKey,h=n(39),p=h.set,m=h.getterFor;e.exports={getConstructor:function(e,t,n,c){var u=e(function(e,r){s(e,u,t),p(e,{type:t,index:i(null),first:void 0,last:void 0,size:0}),d||(e.size=0),null!=r&&l(r,e[c],{that:e,AS_ENTRIES:n})}),h=m(t),y=function(e,t,n){var r,i,o=h(e),a=v(e,t);return a?a.value=n:(o.last=a={index:i=f(t,!0),key:t,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=a),r&&(r.next=a),d?o.size++:e.size++,"F"!==i&&(o.index[i]=a)),e},v=function(e,t){var n,r=h(e),i=f(t);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==t)return n};return o(u.prototype,{clear:function(){for(var e=h(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,d?e.size=0:this.size=0},delete:function(e){var t=h(this),n=v(this,e);if(n){var r=n.next,i=n.previous;delete t.index[n.index],n.removed=!0,i&&(i.next=r),r&&(r.previous=i),t.first==n&&(t.first=r),t.last==n&&(t.last=i),d?t.size--:this.size--}return!!n},forEach:function(e){for(var t,n=h(this),r=a(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!v(this,e)}}),o(u.prototype,n?{get:function(e){var t=v(this,e);return t&&t.value},set:function(e,t){return y(this,0===e?0:e,t)}}:{add:function(e){return y(this,e=0===e?0:e,e)}}),d&&r(u.prototype,"size",{get:function(){return h(this).size}}),u},setStrong:function(e,t,n){var r=t+" Iterator",i=m(t),o=m(r);c(e,t,function(e,t){p(this,{type:r,target:e,state:i(e),kind:t,last:void 0})},function(){for(var e=o(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})},n?"entries":"values",!n,!0),u(t)}}},function(e,t,n){var r=n(20);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},function(e,t,n){"use strict";var r=n(38),i=n(14),o=n(4),a=n(11),s=o("species");e.exports=function(e){var t=r(e),n=i.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,n){var r,i,o,a=n(2),s=n(3),l=n(45),c=n(110),u=n(79),d=n(134),f=n(74),h=a.location,p=a.setImmediate,m=a.clearImmediate,y=a.process,v=a.MessageChannel,g=a.Dispatch,b=0,_={},k=function(e){if(_.hasOwnProperty(e)){var t=_[e];delete _[e],t()}},w=function(e){return function(){k(e)}},x=function(e){k(e.data)},C=function(e){a.postMessage(e+"",h.protocol+"//"+h.host)};p&&m||(p=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return _[++b]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},r(b),b},m=function(e){delete _[e]},f?r=function(e){y.nextTick(w(e))}:g&&g.now?r=function(e){g.now(w(e))}:v&&!d?(o=(i=new v).port2,i.port1.onmessage=x,r=l(o.postMessage,o,1)):a.addEventListener&&"function"==typeof postMessage&&!a.importScripts&&h&&"file:"!==h.protocol&&!s(C)?(r=C,a.addEventListener("message",x,!1)):r="onreadystatechange"in u("script")?function(e){c.appendChild(u("script")).onreadystatechange=function(){c.removeChild(this),k(e)}}:function(e){setTimeout(w(e),0)}),e.exports={set:p,clear:m}},function(e,t,n){var r=n(81);e.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(r)},function(e,t,n){"use strict";var r=n(46);e.exports.f=function(e){return new function(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r}),this.resolve=r(t),this.reject=r(n)}(e)}},function(e,t){e.exports=n(37)},function(e,t){e.exports=n(101)},function(e,t){e.exports=n(227)},function(e,t,n){"use strict";(function(e){var n=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}()}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i=void 0!==e&&e.Math===Math?e:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),o="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)},a=["top","right","bottom","left","width","height","size","weight"],s="undefined"!=typeof MutationObserver,l=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,i=0;function a(){n&&(n=!1,e()),r&&l()}function s(){o(a)}function l(){var e=Date.now();if(n){if(e-i<2)return;r=!0}else n=!0,r=!1,setTimeout(s,t);i=e}return l}(this.refresh.bind(this),20)}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(){this.updateObservers_()&&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(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),s?(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(){r&&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;a.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),c=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},u=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||i},d=y(0,0,0,0);function f(e){return parseFloat(e)||0}function h(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(t,n){return t+f(e["border-"+n+"-width"])},0)}var p="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof u(e).SVGGraphicsElement}:function(e){return e instanceof u(e).SVGElement&&"function"==typeof e.getBBox};function m(e){return r?p(e)?function(e){var t=e.getBBox();return y(0,0,t.width,t.height)}(e):function(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return d;var r=u(e).getComputedStyle(e),i=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],o=e["padding-"+i];t[i]=f(o)}return t}(r),o=i.left+i.right,a=i.top+i.bottom,s=f(r.width),l=f(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==t&&(s-=h(r,"left","right")+o),Math.round(l+a)!==n&&(l-=h(r,"top","bottom")+a)),!function(e){return e===u(e).document.documentElement}(e)){var c=Math.round(s+o)-t,p=Math.round(l+a)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(p)&&(l-=p)}return y(i.left,i.top,s,l)}(e):d}function y(e,t,n,r){return{x:e,y:t,width:n,height:r}}var v=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=y(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=m(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}(),g=function(){function e(e,t,r){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}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 u(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new v(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 u(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 function(e,t){var n,r,i,o,a,s,l,u=(r=(n=t).x,i=n.y,o=n.width,a=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(s.prototype),c(l,{x:r,y:i,width:o,height:a,top:i,right:r+o,bottom:a+i,left:r}),l);c(this,{target:e,contentRect:u})}(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}(),b="undefined"!=typeof WeakMap?new WeakMap:new n,_=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=l.getInstance(),r=new g(t,n,this);b.set(this,r)};["observe","unobserve","disconnect"].forEach(function(e){_.prototype[e]=function(){var t;return(t=b.get(this))[e].apply(t,arguments)}});var k=void 0!==i.ResizeObserver?i.ResizeObserver:_;t.a=k}).call(this,n(102))},function(e,t){e.exports=n(228)},function(e,t,n){e.exports=n(178)},function(e,t,n){"use strict";var r=n(37).forEach,i=n(82)("forEach");e.exports=i?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},function(e,t,n){var r=n(2),i=n(83),o=r.WeakMap;e.exports="function"==typeof o&&/native code/.test(i(o))},function(e,t,n){var r=n(8);e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t,n){var r=n(11),i=n(14),o=n(9),a=n(55);e.exports=r?Object.defineProperties:function(e,t){o(e);for(var n,r=a(t),s=r.length,l=0;s>l;)i.f(e,n=r[l++],t[n]);return e}},function(e,t,n){var r=n(17),i="["+n(147)+"]",o=RegExp("^"+i+i+"*"),a=RegExp(i+i+"*$"),s=function(e){return function(t){var n=String(r(t));return 1&e&&(n=n.replace(o,"")),2&e&&(n=n.replace(a,"")),n}};e.exports={start:s(1),end:s(2),trim:s(3)}},function(e,t){e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},function(e,t,n){var r=n(18),i=n(68).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?function(e){try{return i(e)}catch(e){return a.slice()}}(e):i(r(e))}},function(e,t,n){"use strict";var r=n(87),i=n(115);e.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},function(e,t,n){"use strict";var r=n(116).IteratorPrototype,i=n(54),o=n(51),a=n(56),s=n(58),l=function(){return this};e.exports=function(e,t,n){var c=t+" Iterator";return e.prototype=i(r,{next:o(1,n)}),a(e,c,!1,!0),s[c]=l,e}},function(e,t,n){var r=n(3);e.exports=!r(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},function(e,t,n){"use strict";var r=n(0),i=n(49),o=[].reverse,a=[1,2];r({target:"Array",proto:!0,forced:String(a)===String(a.reverse())},{reverse:function(){return i(this)&&(this.length=this.length),o.call(this)}})},function(e,t,n){var r=n(16),i=Math.floor,o="".replace,a=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,l,c,u){var d=n+e.length,f=l.length,h=s;return void 0!==c&&(c=r(c),h=a),o.call(u,h,function(r,o){var a;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(d);case"<":a=c[o.slice(1,-1)];break;default:var s=+o;if(0===s)return r;if(s>f){var u=i(s/10);return 0===u?r:u<=f?void 0===l[u-1]?o.charAt(1):l[u-1]+o.charAt(1):r}a=l[s-1]}return void 0===a?"":a})}},function(e,t,n){"use strict";var r=n(20),i=n(9),o=n(3),a=n(120),s=RegExp.prototype,l=s.toString,c=o(function(){return"/a/b"!=l.call({source:"a",flags:"b"})}),u="toString"!=l.name;(c||u)&&r(RegExp.prototype,"toString",function(){var e=i(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in s)?a.call(e):n)},{unsafe:!0})},function(e,t,n){"use strict";var r=n(11),i=n(3),o=n(55),a=n(86),s=n(69),l=n(16),c=n(47),u=Object.assign,d=Object.defineProperty;e.exports=!u||i(function(){if(r&&1!==u({b:1},u(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach(function(e){t[e]=e}),7!=u({},e)[n]||"abcdefghijklmnopqrst"!=o(u({},t)).join("")})?function(e,t){for(var n=l(e),i=arguments.length,u=1,d=a.f,f=s.f;i>u;)for(var h,p=c(arguments[u++]),m=d?o(p).concat(d(p)):o(p),y=m.length,v=0;y>v;)h=m[v++],r&&!f.call(p,h)||(n[h]=p[h]);return n}:u},function(e,t,n){var r=n(11),i=n(55),o=n(18),a=n(69).f,s=function(e){return function(t){for(var n,s=o(t),l=i(s),c=l.length,u=0,d=[];c>u;)n=l[u++],r&&!a.call(s,n)||d.push(e?[n,s[n]]:s[n]);return d}};e.exports={entries:s(!0),values:s(!1)}},function(e,t,n){var r=n(17),i=/"/g;e.exports=function(e,t,n,o){var a=String(r(e)),s="<"+t;return""!==n&&(s+=" "+n+'="'+String(o).replace(i,"&quot;")+'"'),s+">"+a+"</"+t+">"}},function(e,t,n){var r=n(3);e.exports=function(e){return r(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})}},function(e,t,n){var r=n(46),i=n(16),o=n(47),a=n(13),s=function(e){return function(t,n,s,l){r(n);var c=i(t),u=o(c),d=a(c.length),f=e?d-1:0,h=e?-1:1;if(s<2)for(;;){if(f in u){l=u[f],f+=h;break}if(f+=h,e?f<0:d<=f)throw TypeError("Reduce of empty array with no initial value")}for(;e?f>=0:d>f;f+=h)f in u&&(l=n(l,u[f],f,c));return l}};e.exports={left:s(!1),right:s(!0)}},function(e,t,n){"use strict";var r=n(45),i=n(16),o=n(161),a=n(126),s=n(13),l=n(59),c=n(127);e.exports=function(e){var t,n,u,d,f,h,p=i(e),m="function"==typeof this?this:Array,y=arguments.length,v=y>1?arguments[1]:void 0,g=void 0!==v,b=c(p),_=0;if(g&&(v=r(v,y>2?arguments[2]:void 0,2)),null==b||m==Array&&a(b))for(n=new m(t=s(p.length));t>_;_++)h=g?v(p[_],_):p[_],l(n,_,h);else for(f=(d=b.call(p)).next,n=new m;!(u=f.call(d)).done;_++)h=g?o(d,v,[u.value,_],!0):u.value,l(n,_,h);return n.length=_,n}},function(e,t,n){var r=n(9),i=n(125);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){throw i(e),t}}},function(e,t,n){"use strict";var r=n(128),i=n(130);e.exports=r("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},i)},function(e,t,n){var r=n(3);e.exports=!r(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(e,t,n){"use strict";var r,i=n(0),o=n(22).f,a=n(13),s=n(89),l=n(17),c=n(90),u=n(32),d="".endsWith,f=Math.min,h=c("endsWith");i({target:"String",proto:!0,forced:!(!u&&!h&&(r=o(String.prototype,"endsWith"),r&&!r.writable)||h)},{endsWith:function(e){var t=String(l(this));s(e);var n=arguments.length>1?arguments[1]:void 0,r=a(t.length),i=void 0===n?r:f(a(n),r),o=String(e);return d?d.call(t,o,i):t.slice(i-o.length,i)===o}})},function(e,t,n){"use strict";var r=n(94),i=n(9),o=n(13),a=n(17),s=n(95),l=n(96);r("match",1,function(e,t,n){return[function(t){var n=a(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var a=i(e),c=String(this);if(!a.global)return l(a,c);var u=a.unicode;a.lastIndex=0;for(var d,f=[],h=0;null!==(d=l(a,c));){var p=String(d[0]);f[h]=p,""===p&&(a.lastIndex=s(c,o(a.lastIndex),u)),h++}return 0===h?null:f}]})},function(e,t,n){"use strict";var r,i=n(0),o=n(22).f,a=n(13),s=n(89),l=n(17),c=n(90),u=n(32),d="".startsWith,f=Math.min,h=c("startsWith");i({target:"String",proto:!0,forced:!(!u&&!h&&(r=o(String.prototype,"startsWith"),r&&!r.writable)||h)},{startsWith:function(e){var t=String(l(this));s(e);var n=a(f(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return d?d.call(t,r,n):t.slice(n,n+r.length)===r}})},function(e,t,n){var r=n(0),i=n(168),o=n(57);r({target:"Array",proto:!0},{fill:i}),o("fill")},function(e,t,n){"use strict";var r=n(16),i=n(67),o=n(13);e.exports=function(e){for(var t=r(this),n=o(t.length),a=arguments.length,s=i(a>1?arguments[1]:void 0,n),l=a>2?arguments[2]:void 0,c=void 0===l?n:i(l,n);c>s;)t[s++]=e;return t}},function(e,t,n){"use strict";var r,i,o,a,s=n(0),l=n(32),c=n(2),u=n(38),d=n(170),f=n(20),h=n(131),p=n(84),m=n(56),y=n(132),v=n(8),g=n(46),b=n(101),_=n(83),k=n(100),w=n(99),x=n(122),C=n(133).set,S=n(171),A=n(173),O=n(174),j=n(135),T=n(175),E=n(39),D=n(65),I=n(4),R=n(176),M=n(74),P=n(52),L=I("species"),B="Promise",N=E.get,F=E.set,K=E.getterFor(B),V=d&&d.prototype,z=d,U=V,q=c.TypeError,W=c.document,$=c.process,H=j.f,G=H,Z=!!(W&&W.createEvent&&c.dispatchEvent),Y="function"==typeof PromiseRejectionEvent,X=!1,J=D(B,function(){var e=_(z)!==String(z);if(!e&&66===P)return!0;if(l&&!U.finally)return!0;if(P>=51&&/native code/.test(z))return!1;var t=new z(function(e){e(1)}),n=function(e){e(function(){},function(){})};return(t.constructor={})[L]=n,!(X=t.then(function(){})instanceof n)||!e&&R&&!Y}),Q=J||!w(function(e){z.all(e).catch(function(){})}),ee=function(e){var t;return!(!v(e)||"function"!=typeof(t=e.then))&&t},te=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;S(function(){for(var r=e.value,i=1==e.state,o=0;n.length>o;){var a,s,l,c=n[o++],u=i?c.ok:c.fail,d=c.resolve,f=c.reject,h=c.domain;try{u?(i||(2===e.rejection&&oe(e),e.rejection=1),!0===u?a=r:(h&&h.enter(),a=u(r),h&&(h.exit(),l=!0)),a===c.promise?f(q("Promise-chain cycle")):(s=ee(a))?s.call(a,d,f):d(a)):f(r)}catch(e){h&&!l&&h.exit(),f(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&re(e)})}},ne=function(e,t,n){var r,i;Z?((r=W.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),c.dispatchEvent(r)):r={promise:t,reason:n},!Y&&(i=c["on"+e])?i(r):"unhandledrejection"===e&&O("Unhandled promise rejection",n)},re=function(e){C.call(c,function(){var t,n=e.facade,r=e.value;if(ie(e)&&(t=T(function(){M?$.emit("unhandledRejection",r,n):ne("unhandledrejection",n,r)}),e.rejection=M||ie(e)?2:1,t.error))throw t.value})},ie=function(e){return 1!==e.rejection&&!e.parent},oe=function(e){C.call(c,function(){var t=e.facade;M?$.emit("rejectionHandled",t):ne("rejectionhandled",t,e.value)})},ae=function(e,t,n){return function(r){e(t,r,n)}},se=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,te(e,!0))},le=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw q("Promise can't be resolved itself");var r=ee(t);r?S(function(){var n={done:!1};try{r.call(t,ae(le,n,e),ae(se,n,e))}catch(t){se(n,t,e)}}):(e.value=t,e.state=1,te(e,!1))}catch(t){se({done:!1},t,e)}}};if(J&&(U=(z=function(e){b(this,z,B),g(e),r.call(this);var t=N(this);try{e(ae(le,t),ae(se,t))}catch(e){se(t,e)}}).prototype,(r=function(e){F(this,{type:B,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=h(U,{then:function(e,t){var n=K(this),r=H(x(this,z));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=M?$.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&te(n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new r,t=N(e);this.promise=e,this.resolve=ae(le,t),this.reject=ae(se,t)},j.f=H=function(e){return e===z||e===o?new i(e):G(e)},!l&&"function"==typeof d&&V!==Object.prototype)){a=V.then,X||(f(V,"then",function(e,t){var n=this;return new z(function(e,t){a.call(n,e,t)}).then(e,t)},{unsafe:!0}),f(V,"catch",U.catch,{unsafe:!0}));try{delete V.constructor}catch(e){}p&&p(V,U)}s({global:!0,wrap:!0,forced:J},{Promise:z}),m(z,B,!1,!0),y(B),o=u(B),s({target:B,stat:!0,forced:J},{reject:function(e){var t=H(this);return t.reject.call(void 0,e),t.promise}}),s({target:B,stat:!0,forced:l||J},{resolve:function(e){return A(l&&this===o?z:this,e)}}),s({target:B,stat:!0,forced:Q},{all:function(e){var t=this,n=H(t),r=n.resolve,i=n.reject,o=T(function(){var n=g(t.resolve),o=[],a=0,s=1;k(e,function(e){var l=a++,c=!1;o.push(void 0),s++,n.call(t,e).then(function(e){c||(c=!0,o[l]=e,--s||r(o))},i)}),--s||r(o)});return o.error&&i(o.value),n.promise},race:function(e){var t=this,n=H(t),r=n.reject,i=T(function(){var i=g(t.resolve);k(e,function(e){i.call(t,e).then(n.resolve,r)})});return i.error&&r(i.value),n.promise}})},function(e,t,n){var r=n(2);e.exports=r.Promise},function(e,t,n){var r,i,o,a,s,l,c,u,d=n(2),f=n(22).f,h=n(133).set,p=n(134),m=n(172),y=n(74),v=d.MutationObserver||d.WebKitMutationObserver,g=d.document,b=d.process,_=d.Promise,k=f(d,"queueMicrotask"),w=k&&k.value;w||(r=function(){var e,t;for(y&&(e=b.domain)&&e.exit();i;){t=i.fn,i=i.next;try{t()}catch(e){throw i?a():o=void 0,e}}o=void 0,e&&e.enter()},p||y||m||!v||!g?_&&_.resolve?((c=_.resolve(void 0)).constructor=_,u=c.then,a=function(){u.call(c,r)}):a=y?function(){b.nextTick(r)}:function(){h.call(d,r)}:(s=!0,l=g.createTextNode(""),new v(r).observe(l,{characterData:!0}),a=function(){l.data=s=!s})),e.exports=w||function(e){var t={fn:e,next:void 0};o&&(o.next=t),i||(i=t,a()),o=t}},function(e,t,n){var r=n(81);e.exports=/web0s(?!.*chrome)/i.test(r)},function(e,t,n){var r=n(9),i=n(8),o=n(135);e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){var r=n(2);e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},function(e,t){e.exports="object"==typeof window},function(e,t,n){"use strict";var r=n(128),i=n(130);e.exports=r("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},i)},function(e,t,n){"use strict";n.r(t),n.d(t,"install",function(){return Br}),n.d(t,"version",function(){return Pr}),n.d(t,"VeCheckbox",function(){return y}),n.d(t,"VeCheckboxGroup",function(){return b}),n.d(t,"VeContextmenu",function(){return F}),n.d(t,"VeDropdown",function(){return Y}),n.d(t,"VeIcon",function(){return Q}),n.d(t,"VeLoading",function(){return fe}),n.d(t,"VeLocale",function(){return ve}),n.d(t,"VePagination",function(){return Ae}),n.d(t,"VeRadio",function(){return Ee}),n.d(t,"VeSelect",function(){return Le}),n.d(t,"VeTable",function(){return Mr}),n(10),n(7),n(1),n(33),n(70),n(27),n(71),n(34),n(40),n(41),n(35);var r=n(136),i=n.n(r);function o(e){return function(e){return function(t){var n="",r=i.a.getMessage();if(r[e]){for(var o=r[e][t],a=arguments.length,s=new Array(a>1?a-1:0),c=1;c<a;c++)s[c-1]=arguments[c];n=l(o)?o.apply(void 0,s):o}else console.error("can't find ".concat(e," in ").concat(JSON.stringify(r)));return n}}(e)}function a(e){return!(Array.isArray(e)&&e.length>0)}function s(e){return!(""!==e&&null!=e)}function l(e){return"function"==typeof e}function c(e){return"boolean"==typeof e}function u(e){return"number"==typeof e}function d(e){return"number"==typeof e?e+"px":e}function f(e,t){if(l(e.scrollTo))e.scrollTo(t);else{var n=t.top,r=t.left;e.scrollTop=n,e.scrollLeft=r}}function h(e){return"ve-checkbox-"+e}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m={name:"VeCheckbox",props:{value:{type:[String,Number,Boolean],default:null},label:{type:[String],default:null},disabled:Boolean,indeterminate:Boolean,isControlled:{type:Boolean,default:!1},isSelected:{type:Boolean,default:!1}},data:function(){return{model:this.value,checkboxGroup:{}}},computed:{checkboxClass:function(){var e;return[h("content"),(e={},p(e,h("checked"),this.internalIsSelected),p(e,h("disabled"),this.disabled),p(e,h("indeterminate"),this.indeterminate),e)]},checkboxStyle:function(){return{display:this.checkboxGroup&&this.checkboxGroup.isVerticalShow?"block":"inline-block"}},internalIsSelected:function(){return this.isControlled?this.isSelected:this.model}},watch:{value:function(){this.updateModelBySingle()}},methods:{checkboxChange:function(e){if(this.disabled)return!1;var t=e.target.checked;this.isControlled||this.$emit("input",t),this.$emit("on-checked-change",t),this.isCheckBoxGroup()&&this.checkboxGroup.updateModel(this.label,t)},isCheckBoxGroup:function(){return this.checkboxGroup=function(e,t){for(var n=e.$parent;n;){if("VeCheckboxGroup"===n.$options.name)return n;n=n.$parent}return null}(this),!!this.checkboxGroup},getLabelContent:function(){var e=this.label,t=this.$slots;return e||t.default},initModel:function(){if(this.isCheckBoxGroup()){var e=this.checkboxGroup;Array.isArray(e.value)&&e.value.length>0&&e.value.indexOf(this.label)>-1&&(this.model=!0)}else this.model=this.value},updateModelBySingle:function(){this.disabled||(this.model=this.value)},updateModelByGroup:function(e){e.indexOf(this.label)>-1?this.disabled||(this.model=!0):this.disabled||(this.model=!1)}},created:function(){this.initModel()},render:function(){var e=arguments[0],t=this.checkboxStyle,n=this.label,r=this.checkboxClass,i=this.checkboxChange,o=this.getLabelContent;return e("label",{class:"ve-checkbox",style:t},[e("span",{class:r},[e("input",{domProps:{checked:this.internalIsSelected,value:n},class:h("input"),attrs:{type:"checkbox"},on:{change:i}}),e("span",{class:h("inner")})]),e("span",{class:h("label")},[o()])])},install:function(e){e.component(m.name,m)}},y=m,v=(n(61),"on-checked-change"),g={name:"VeCheckboxGroup",props:{value:{type:Array,default:function(){return[]}},isVerticalShow:{type:Boolean,default:!1}},watch:{value:function(e){var t=function(e,t){for(var n=[],r=e.$children;r&&r.length>0;)r.forEach(function(e){r=e.$children?e.$children:null,"VeCheckbox"===e.$options.name&&n.push(e)});return n}(this);t.length>0&&t.forEach(function(t){t.updateModelByGroup(e)})}},methods:{updateModel:function(e,t){var n=this.value.indexOf(e);n>-1?t||this.value.splice(n,1):t&&this.value.push(e),this.$emit("input",this.value),this.$emit(v,this.value)}},render:function(){return(0,arguments[0])("div",{class:"ve-checkbox-group"},[this.$slots.default])},install:function(e){e.component(g.name,g)}},b=g,_=(n(12),n(28),n(152),n(21),n(23),n(24),n(42),n(91),n(92),"on-node-click"),k="SEPARATOR";function w(e){return"ve-contextmenu-"+e}var x=n(5),C=n.n(x),S={FILTER:"filter",DOUBLE_RIGHT_ARROW:"double-right-arrow",DOUBLE_LEFT_ARROW:"double-left-arrow",TOP_ARROW:"top-arrow",RIGHT_ARROW:"right-arrow",BOTTOM_ARROW:"bottom-arrow",LEFT_ARROW:"left-arrow",SORT_TOP_ARROW:"sort-top-arrow",SORT_BOTTOM_ARROW:"sort-bottom-arrow",SEARCH:"search"},A=1,O=2,j=2;function T(e,t){if(e){for(var n=e.className,r=(t||"").split(" "),i=0,o=r.length;i<o;i++){var a=r[i];a&&(e.classList?e.classList.add(a):D(e,a)||(n+=" "+a))}e.classList||(e.className=n)}}function E(e,t){if(e&&t){for(var n=t.split(" "),r=" "+e.className+" ",i=0,o=n.length;i<o;i++){var a=n[i];a&&(e.classList?e.classList.remove(a):D(e,a)&&(r=r.replace(" "+a+" "," ")))}e.classList||(e.className=(r||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,""))}}function D(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 I(e){var t=document.documentElement,n=void 0!==e.getBoundingClientRect?e.getBoundingClientRect():0,r=(window.pageXOffset||t.scrollLeft)-(t.clientLeft||0),i=(window.pageYOffset||t.scrollTop)-(t.clientTop||0),o=n.left+window.pageXOffset,a=n.top+window.pageYOffset,s=o-r,l=a-i;return{offsetTop:a,offsetLeft:o,left:s,top:l,right:window.document.documentElement.clientWidth-n.width-s,bottom:window.document.documentElement.clientHeight-n.height-l,right2:window.document.documentElement.clientWidth-s,bottom2:window.document.documentElement.clientHeight-l}}function R(e){var t=0,n=0,r=document.documentElement,i=document.body;return e||(e=window.event),window.pageYoffset?(t=window.pageXOffset,n=window.pageYOffset):(t=(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),n=(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),{left:t+=e.clientX,top:n+=e.clientY,right:r.clientWidth-e.clientX,bottom:r.clientHeight-e.clientY}}function M(){return Date.now().toString(36)+Math.random().toString(36).substr(2)}n(62),n(93),n(97),n(154);var P=n(6);function L(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 B(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var N={name:"VeContextmenu",directives:{"events-outside":{bind:function(e,t,n){var r=t.value,i=r.events,o=r.callback;if(Array.isArray(i)&&i.length&&"function"==typeof o){var a=function(t){if(e.contains(t.target)||e===t.target)return!1;o(t)};e.__eventsOutside__=a,i.forEach(function(e){document.addEventListener(e,a,!0)})}else{var s=n.context.name;console.error("[events-outside] Please provided 'events' and 'callback' in ".concat(s))}},unbind:function(e,t,n){t.value.events.forEach(function(t){document.removeEventListener(t,e.__eventsOutside__,!0)}),e.__eventsOutside__=null}}},props:{options:{type:Array,required:!0},eventTarget:{type:[String,HTMLElement],required:!0}},data:function(){return{internalOptions:[],panelOptions:[],eventTargetEl:"",rootContextmenuId:"",isChildrenPanelsClicked:!1,isPanelRightDirection:!0,isPanelsEmptyed:!0}},computed:{activeMenuIds:function(){return this.panelOptions.map(function(e){return e.parentId})}},watch:{options:{handler:function(e){Array.isArray(e)&&e.length>0&&(this.removeOrEmptyPanels(!0),this.rootContextmenuId=this.getRandomIdWithPrefix(),this.createInternalOptions(),this.createPanelOptions({options:this.internalOptions}),this.resetContextmenu(),this.addRootContextmenuPanelToBody())},immediate:!0},eventTarget:{handler:function(e){e&&this.registerContextmenuEvent()},immediate:!0}},methods:B({getRandomIdWithPrefix:function(){return w(M())},hasChildren:function(e){return Array.isArray(e.children)&&e.children.length},getPanelOptionByMenuId:function(e,t){for(var n=0;n<e.length;n++){if(e[n].id===t)return e[n].children;if(e[n].children){var r=this.getPanelOptionByMenuId(e[n].children,t);if(r)return r}}},getParentContextmenuPanelEl:function(e){var t,n=this.panelOptions,r=n.findIndex(function(t){return t.parentId===e});if(r>0){var i=n[r-1].parentId;t=document.querySelector("#".concat(i))}return t},createPanelByHover:function(e){var t=this,n=e.event,r=e.menu,i=this.internalOptions,o=this.panelOptions;if(this.isPanelsEmptyed)return!1;if(o.findIndex(function(e){return e.parentId===r.id})>-1)return!1;var a=o.filter(function(e){return e.parentDeep>=r.deep}).map(function(e){return e.parentDeep}).reverse();if(a.length)for(var s=function(e){var n=o.findIndex(function(t){return t.parentDeep===a[e]});n>-1&&t.panelOptions.splice(n,1)},l=a.length-1;l>=0;l--)s(l);var c=this.getPanelOptionByMenuId(i,r.id);c&&(this.createPanelOptions({options:c,currentMenu:r}),this.$nextTick(function(){t.addContextmenuPanelToBody({contextmenuId:r.id}),t.showContextmenuPanel({event:n,contextmenuId:r.id})}))},createPanelOptions:function(e){var t=e.options,n=e.currentMenu,r=this.hasChildren,i=this.rootContextmenuId;if(Array.isArray(t)){var o=t.map(function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?L(Object(n),!0).forEach(function(t){B(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({hasChildren:r(e)},e)});this.panelOptions.push({parentId:n?n.id:i,parentDeep:n?n.deep:-1,menus:o})}},createInternalOptionsRecursion:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e.id=this.getRandomIdWithPrefix(),e.deep=n,n++,Array.isArray(e.children)&&e.children.map(function(e){return t.createInternalOptionsRecursion(e,n)}),e},createInternalOptions:function(){var e=this;this.internalOptions=Object(P.cloneDeep)(this.options).map(function(t){return e.createInternalOptionsRecursion(t)})},showRootContextmenuPanel:function(e){e.preventDefault();var t=this.rootContextmenuId;t&&(this.resetContextmenu(),this.showContextmenuPanel({event:e,contextmenuId:t,isRootContextmenu:!0}),this.isPanelsEmptyed=!1)},showContextmenuPanel:function(e){var t=e.event,n=e.contextmenuId,r=e.isRootContextmenu,i=this.getParentContextmenuPanelEl,o=document.querySelector("#".concat(n));if(o){o.innerHTML="",o.appendChild(this.$refs[n]),o.style.position="absolute",o.classList.add(w("popper"));var a=o.getBoundingClientRect(),s=a.width,l=a.height;if(r){var c,u=R(t),d=u.left,f=u.top,h=u.right,p=u.bottom,m=0;h>=s?(m=d,this.isPanelRightDirection=!0):(m=d-s,this.isPanelRightDirection=!1),c=p>=l?f:f-l,o.style.left=m+"px",o.style.top=c+"px"}else{var y=i(n);if(y){var v,g,b=I(y),_=b.left,k=b.right,x=R(t),C=x.top,S=x.bottom,A=y.getBoundingClientRect().width;v=this.isPanelRightDirection?k>=s?_+A:_-A:_>=s?_-A:_+A,g=S>=l?C:C-l,o.style.left=v+"px",o.style.top=g+"px"}}}},emptyContextmenuPanels:function(){var e=this;setTimeout(function(){e.isChildrenPanelsClicked?e.isChildrenPanelsClicked=!1:(e.removeOrEmptyPanels(),e.isPanelsEmptyed=!0)})},removeOrEmptyPanels:function(e){this.panelOptions.forEach(function(t){var n=document.querySelector("#".concat(t.parentId));n&&(e?n.remove():n.innerHTML="")})},resetContextmenu:function(){this.panelOptions=[],this.createPanelOptions({options:this.internalOptions})},addContextmenuPanelToBody:function(e){var t=e.contextmenuId;if(document.querySelector("#".concat(t)))return!1;var n=document.createElement("div");n.setAttribute("id",t),document.body.appendChild(n)},addRootContextmenuPanelToBody:function(){this.rootContextmenuId&&this.addContextmenuPanelToBody({contextmenuId:this.rootContextmenuId})},registerContextmenuEvent:function(){var e=this.eventTarget;"string"==typeof e&&e.length>0?this.eventTargetEl=document.querySelector(e):this.eventTargetEl=e,this.eventTargetEl&&this.eventTargetEl.addEventListener("contextmenu",this.showRootContextmenuPanel)},removeContextmenuEvent:function(){this.eventTargetEl&&this.eventTargetEl.removeEventListener("contextmenu",this.showRootContextmenuPanel)}},"hideContextmenu",function(){this.emptyContextmenuPanels()}),created:function(){this.debounceCreatePanelByHover=Object(P.debounce)(this.createPanelByHover,300)},mounted:function(){this.addRootContextmenuPanelToBody()},destroyed:function(){this.removeContextmenuEvent(),this.removeOrEmptyPanels(!0)},render:function(){var e=this,t=arguments[0],n=this.panelOptions,r=this.activeMenuIds,i=this.hasChildren,o=this.emptyContextmenuPanels,a=this.debounceCreatePanelByHover;return t("div",{class:["ve-contextmenu"],style:{display:"none"}},[n.map(function(n,s){var l={ref:n.parentId,class:B({},w("panel"),!0),directives:[{name:"events-outside",value:{events:["click"],callback:function(e){0===s&&o()}}}],on:{click:function(){0!==s&&(e.isChildrenPanelsClicked=!0)},contextmenu:function(e){e.preventDefault()}}};return t("div",l,[t("ul",{class:w("list")},[n.menus.map(function(n){var s,l;return s=n.type!==k?{class:(l={},B(l,w("node"),!0),B(l,w("node-active"),r.includes(n.id)),B(l,w("node-disabled"),n.disabled),l),on:{mouseover:function(e){n.disabled||a({event:e,menu:n})},click:function(){n.disabled||i(n)||(e.$emit(_,n.type),setTimeout(function(){o()},50))}}}:{class:B({},w("node-separator"),!0)},n.type!==k?t("li",s,[t("span",{class:w("node-label")},[n.label]),n.hasChildren&&t(C.a,{class:w("node-icon-postfix"),attrs:{name:S.RIGHT_ARROW}})]):t("li",s)})])])})])},install:function(e){e.component(N.name,N)}},F=N,K=(n(25),n(98),{bind:function(e,t,n){if("function"!=typeof t.value){var r="in [clickoutside] directives, provided expression '".concat(t.expression,"' is not a function "),i=n.context.name;i&&(r+="in ".concat(i)),console.error(r)}var o=function(n){if(e.contains(n.target)||e===n.target)return!1;t.value(n)};e.__clickOutSide__=o,document.addEventListener("click",o,!0)},unbind:function(e){document.removeEventListener("click",e.__clickOutSide__,!0),e.__clickOutSide__=null}}),V=n(43),z=n.n(V),U=n(75),q=n.n(U),W="on-dropdown-visible-change",$="on-item-select-change";function H(e){return"ve-dropdown-"+e}function G(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Z={name:"VeDropdown",directives:{"click-outside":K},props:{isSelect:{type:Boolean,default:!1},showOperation:{type:Boolean,default:!1},width:{type:Number,default:90},maxWidth:{type:Number,default:0},maxHeight:{type:Number,default:1e3},isMultiple:{type:Boolean,default:!1},value:{type:[Array],default:null},textAlign:{type:String,default:"left"},isInput:{type:Boolean,default:!1},confirmFilterText:{type:String,default:""},resetFilterText:{type:String,default:""},hideByItemClick:{type:Boolean,default:!1},showRadio:{type:Boolean,default:!1},visible:{type:Boolean,default:!1},isControlled:{type:Boolean,default:!1},isCustomContent:{type:Boolean,default:!1},defaultInstance:{type:Number,default:5},popperAppendTo:{type:[String,HTMLElement],default:function(){return document.body}},beforeVisibleChange:{type:Function,default:null}},data:function(){return{internalVisible:!1,internalOptions:[],inputValue:"",isDropdownShowTriggerClicked:!1,rootId:"",dropdownItemsPanelId:"",popperAppendToEl:null,appendToElTagName:null}},computed:{isDropdownVisible:function(){return this.isControlled?this.visible:this.internalVisible},getMaxWidth:function(){var e=1/0,t=this.maxWidth,n=this.width;return t&&t>0&&t>n&&(e=t),e},selectedLabels:function(){return this.internalOptions.filter(function(e){return e.selected}).map(function(e){if(e.selected)return e.label})},operationFilterClass:function(){return G({},H("filter-disable"),0===this.selectedLabels.length)},dropdownItemsClass:function(){var e;return G(e={},H("dd"),!0),G(e,H("dd-show"),this.isDropdownVisible),e}},watch:{value:function(){this.init()},visible:{handler:function(e){var t=this.isControlled,n=this.showDropDown,r=this.hideDropDown;setTimeout(function(){t&&(e?n():r())})},immediate:!0}},methods:{init:function(){this.internalOptions=Object.assign([],this.value),this.isInput&&this.setInputValue()},confirm:function(){this.$emit("input",this.internalOptions),this.$emit("on-filter-confirm",this.internalOptions),this.hideDropDown()},reset:function(){this.internalOptions.some(function(e){return e.selected})&&(this.internalOptions.map(function(e){return e.selected&&(e.selected=!1),e}),this.$emit("input",this.internalOptions),this.$emit("on-filter-reset",this.internalOptions)),this.hideDropDown()},showDropDown:function(){var e=this.rootId,t=this.dropdownItemsPanelId,n=this.beforeVisibleChangeCallback(!0);if(c(n)&&!n)return!1;var r=document.querySelector("#".concat(e));r&&(r.innerHTML="",r.appendChild(this.$refs[t]),r.style.position="absolute",r.classList.add(H("popper")),this.changDropdownPanelPosition()),this.internalVisible=!0,this.$emit(W,!0)},hideDropDown:function(){var e=this,t=this.beforeVisibleChangeCallback(!1);if(c(t)&&!t)return!1;this.$emit(W,!1),setTimeout(function(){e.internalVisible=!1,e.removeOrEmptyRootPanel()},150)},beforeVisibleChangeCallback:function(e){var t=this.beforeVisibleChange;if(e!==this.isDropdownVisible&&l(t))return t({nextVisible:e})},removeOrEmptyRootPanel:function(){var e=this.rootId,t=document.querySelector("#".concat(e));t&&(t.innerHTML="")},changDropdownPanelPosition:function(){var e=this.defaultInstance,t=this.rootId,n=this.popperAppendToEl,r=this.appendToElTagName,i=document.querySelector("#".concat(t));if(i){var o=i.getBoundingClientRect(),a=o.width,s=o.height,l=this.$el.querySelector(".ve-dropdown-dt"),c=l.getBoundingClientRect().height;if(!n)return!1;var u,d,f="BODY"===r,h=f?I(l):function(e,t){var n=I(e),r=n.offsetTop,i=n.offsetLeft,o=n.left,a=n.top,s=n.right,l=n.bottom,c=n.right2,u=n.bottom2,d=I(t);return{offsetTop:r-d.offsetTop,offsetLeft:i-d.offsetLeft,left:o-d.left,top:a-d.top,right:s-d.right,bottom:l-d.bottom,right2:c-d.right2,bottom2:u-d.bottom2}}(l,n),p=h.offsetLeft,m=h.offsetTop,y=h.right,v=h.bottom,g=0,b=0;f||(g=n.scrollLeft,b=n.scrollTop),u=y>=a?p+g:p-a+g,d=v>=s?m+c+e+b:m-s-e+b,i.style.left=u+"px",i.style.top=d+"px"}},setInputValue:function(){var e,t;t=this.selectedLabels,Array.isArray(t)&&t.length>0&&(e=t.join()),this.inputValue=e},dropdownPanelClick:function(){this.isDropdownShowTriggerClicked=!0,this.dropdownShowToggle()},dropdownShowToggle:function(){this.isDropdownVisible?this.hideDropDown():this.showDropDown()},singleSelectOptionClick:function(e,t){this.internalOptions=this.internalOptions.map(function(e){return t.label===e.label?e.selected=!0:e.selected=!1,e}),this.hideByItemClick&&this.hideDropDown(),this.isInput&&this.setInputValue(),this.$emit("input",this.internalOptions),this.$emit($,this.internalOptions)},getTextAlignClass:function(){return H("items-li-a-".concat(this.textAlign))},dropdownClickOutside:function(){var e=this;setTimeout(function(){e.isDropdownShowTriggerClicked?e.isDropdownShowTriggerClicked=!1:e.hideDropDown()})},checkedChangeControl:function(e,t){this.internalOptions=this.internalOptions.map(function(n){return n.label===e.label&&(n.selected=t),n}),this.$emit($,this.internalOptions)},getRandomIdWithPrefix:function(){return H(M())},addRootElementToElement:function(){var e=this,t=this.popperAppendTo;if(this.rootId=this.getRandomIdWithPrefix(),this.dropdownItemsPanelId=this.getRandomIdWithPrefix(),document.querySelector("#".concat(this.rootId)))return!1;this.$nextTick(function(){var n=document.createElement("div");n.setAttribute("id",e.rootId),"string"==typeof t&&t.length>0?e.popperAppendToEl=document.querySelector(t):e.popperAppendToEl=t,e.appendToElTagName=e.popperAppendToEl.tagName,e.popperAppendToEl.appendChild(n)})}},created:function(){this.init()},mounted:function(){var e=this;this.addRootElementToElement(),this.$nextTick(function(){("BODY"===e.appendToElTagName?document:e.popperAppendToEl).addEventListener("scroll",e.changDropdownPanelPosition)}),window.addEventListener("resize",this.changDropdownPanelPosition)},destroyed:function(){var e=this;this.removeOrEmptyRootPanel(),this.$nextTick(function(){("BODY"===e.appendToElTagName?document:e.popperAppendToEl).removeEventListener("scroll",e.changDropdownPanelPosition)}),window.removeEventListener("resize",this.changDropdownPanelPosition)},render:function(){var e,t=this,n=arguments[0],r=this.isMultiple,i=this.getTextAlignClass,o=this.internalOptions,a=this.isSelect,s=this.width,l=this.maxHeight,c=this.dropdownPanelClick,u=this.getMaxWidth,d=this.reset,f=this.singleSelectOptionClick,h=this.showOperation,p=this.isCustomContent,m=this.dropdownItemsClass,y=this.dropdownItemsPanelId;e=r?o.map(function(e,r){var o={key:e.label,props:{isControlled:!0,label:e.label,showLine:e.showLine,isSelected:e.selected},on:{"on-checked-change":function(n){return t.checkedChangeControl(e,n)}}};return n("li",{key:r,class:[H("items-multiple"),H("items-li"),i()]},[n(z.a,o)])}):o.map(function(e,r){var o={props:{isControlled:!0,isSelected:e.selected},on:{"on-radio-change":function(){}}};return n("li",{key:r,class:[H("items-li"),e.selected?"active":""],on:{click:function(t){return f(t,e)}}},[n("a",{class:[H("items-li-a"),i()],attrs:{href:"javascript:void(0);"}},[t.showRadio?n(q.a,o,[e.label]):e.label])])});var v={ref:y,class:m,directives:[{name:"click-outside",value:this.dropdownClickOutside}]};return n("dl",{class:["ve-dropdown"]},[n("dt",{class:"ve-dropdown-dt",on:{click:c}},[n("a",{class:[a?H("dt-selected"):""],style:{width:s+"px"}},[this.$slots.default])]),n("div",{style:{display:"none"}},[n("dd",v,[n("ul",{class:H("items"),style:{"min-width":s+"px","max-width":u+"px"}},[p&&this.$slots["custom-content"],!p&&n("div",[n("div",{style:{"max-height":l+"px"},class:H("items-warpper")},[e]),h&&n("li",{class:H("operation")},[n("a",{class:[H("operation-item"),this.operationFilterClass],attrs:{href:"javascript:void(0)"},on:{click:d}},[this.resetFilterText]),n("a",{class:H("operation-item"),attrs:{href:"javascript:void(0)"},on:{click:this.confirm}},[this.confirmFilterText])])])])])])])},install:function(e){e.component(Z.name,Z)}},Y=Z,X=(n(123),"VeIcon"),J={name:X,props:{name:{type:String,required:!0},color:{type:String,default:null},size:{type:[Number,String],default:""}},computed:{iconStyle:function(){return{color:this.color,"font-size":d(this.size)}},iconClass:function(){var e=this.name;return Object.values(S).includes(e)||console.error("".concat(e," is not found in ").concat(X,".")),"iconfont-vet icon-vet-".concat(e)}},render:function(){return(0,arguments[0])("i",{style:this.iconStyle,class:["ve-icon",this.iconClass]})},install:function(e){e.component(J.name,J)}},Q=J,ee=n(30),te=n.n(ee),ne="VeLoading",re={PLANE:"plane",GRID:"grid",WAVE:"wave",FLOW:"flow",BOUNCE:"bounce",PULSE:"pulse"};function ie(e){return"ve-loading-"+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}var ae={name:ne,components:{Plane:{name:"VeLoadingPlane",props:{color:{type:String,required:!0},width:{type:[Number,String],required:!0},height:{type:[Number,String],required:!0}},computed:{spinStyle:function(){var e=this.color,t=this.width,n=this.height;return{width:d(t),height:d(n),"background-color":e}}},render:function(){return(0,arguments[0])("div",{style:this.spinStyle,class:ie("plane")})}},Bounce:{name:"VeLoadingBounce",props:{color:{type:String,required:!0},width:{type:[Number,String],required:!0},height:{type:[Number,String],required:!0}},computed:{spinStyle:function(){var e=this.width,t=this.height;return{width:d(e),height:d(t)}},itemStyle:function(){return{"background-color":this.color}}},render:function(){var e=arguments[0],t=this.spinStyle,n=this.itemStyle;return e("div",{style:t,class:ie("bounce")},[e("div",{style:n,class:ie("bounce-dot")}),e("div",{style:n,class:ie("bounce-dot")})])}},Wave:{name:"VeLoadingWave",props:{color:{type:String,required:!0},width:{type:[Number,String],required:!0},height:{type:[Number,String],required:!0}},computed:{spinStyle:function(){var e=this.width,t=this.height;return{width:d(e),height:d(t)}},itemStyle:function(){return{"background-color":this.color}}},render:function(){var e=arguments[0],t=this.spinStyle,n=this.itemStyle;return e("div",{style:t,class:ie("wave")},[e("div",{style:n,class:ie("wave-rect")}),e("div",{style:n,class:ie("wave-rect")}),e("div",{style:n,class:ie("wave-rect")}),e("div",{style:n,class:ie("wave-rect")}),e("div",{style:n,class:ie("wave-rect")})])}},Pulse:{name:"VeLoadingPulse",props:{color:{type:String,required:!0},width:{type:[Number,String],required:!0},height:{type:[Number,String],required:!0}},computed:{spinStyle:function(){var e=this.color,t=this.width,n=this.height;return{width:d(t),height:d(n),"background-color":e}}},render:function(){return(0,arguments[0])("div",{style:this.spinStyle,class:ie("pulse")})}},Flow:{name:"VeLoadingFlow",props:{color:{type:String,required:!0},width:{type:[Number,String],required:!0},height:{type:[Number,String],required:!0}},computed:{spinStyle:function(){var e=this.width,t=this.height;return{width:d(e),height:d(t)}},itemStyle:function(){return{"background-color":this.color}}},render:function(){var e=arguments[0],t=this.spinStyle,n=this.itemStyle;return e("div",{style:t,class:ie("flow")},[e("div",{style:n,class:ie("flow-dot")}),e("div",{style:n,class:ie("flow-dot")}),e("div",{style:n,class:ie("flow-dot")})])}},Grid:{name:"VeLoadingGrid",props:{color:{type:String,required:!0},width:{type:[Number,String],required:!0},height:{type:[Number,String],required:!0}},computed:{spinStyle:function(){var e=this.width,t=this.height;return{width:d(e),height:d(t)}},itemStyle:function(){return{"background-color":this.color}}},render:function(){var e=arguments[0],t=this.spinStyle,n=this.itemStyle;return e("div",{style:t,class:ie("grid")},[e("div",{style:n,class:ie("grid-cube")}),e("div",{style:n,class:ie("grid-cube")}),e("div",{style:n,class:ie("grid-cube")}),e("div",{style:n,class:ie("grid-cube")}),e("div",{style:n,class:ie("grid-cube")}),e("div",{style:n,class:ie("grid-cube")}),e("div",{style:n,class:ie("grid-cube")}),e("div",{style:n,class:ie("grid-cube")}),e("div",{style:n,class:ie("grid-cube")})])}}},computed:{loadingClass:function(){var e,t=this.visible,n=this.fullscreen;return oe(e={},ie("overlay"),!0),oe(e,ie("fixed"),n),oe(e,ie("hide"),!t),e},loadingStyle:function(){return{"background-color":this.overlayBackgroundColor}}},render:function(){var e=arguments[0],t=this.width,n=this.height,r=this.color,i={props:{width:t,height:n,color:r}};return e("div",{style:this.loadingStyle,class:["ve-loading",this.loadingClass]},[e("div",{class:ie("spin-container")},[e("div",{class:ie("spin")},[e(this.name,i)]),e("div",{style:{color:r},class:ie("spin-tip")},[this.tip])])])}},se={name:"plane",visible:!1,color:"#1890ff",overlayBackgroundColor:"rgba(255, 255, 255, 0.5)",width:40,height:40,tip:"",fullscreen:!1,target:"",lock:!1,parent__:null},le=ie("parent-relative"),ce=ie("parent-lock"),ue=te.a.extend(ae);ue.prototype.show=function(){var e=this;te.a.nextTick(function(){e.lock&&T(e.parent__,ce),e.visible=!0})},ue.prototype.close=function(){var e=this;te.a.nextTick(function(){e.lock&&E(e.parent__,ce),e.visible=!1})},ue.prototype.destroy=function(){E(this.parent__,le),E(this.parent__,ce),this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el),this.$destroy(),this.visible=!1};var de=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"string"==typeof(e=Object.assign({},se,e)).target&&e.target.length>0&&(e.target=document.querySelector(e.target)),e.target=e.target||document.body,function(e){Object.values(re).includes(e)||console.error("".concat(e," is not found in ").concat(ne,"."))}(e.name),e.target!==document.body?e.fullscreen=!1:e.fullscreen=!0;var t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new ue({el:document.createElement("div"),data:e})}(e);return e.parent__=e.fullscreen?document.body:e.target,T(e.parent__,le),e.parent__.appendChild(t.$el),t};de.install=function(e){e.prototype.$veLoading=de};var fe=de,he=n(137),pe=n.n(he),me=te.a.util.defineReactive,ye=te.a.prototype;ye.$veTableMessages=ye.$veTableMessages||{},me(ye,"$veTableMessages",Object(P.cloneDeep)({lang:pe.a}));var ve={getMessage:function(){return ye.$veTableMessages.lang},use:function(e){this.update(e)},update:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(P.merge)(ye.$veTableMessages.lang,e)}},ge=(n(29),"on-page-number-change");function be(e){return"ve-pagination-"+e}var _e=o("pagination"),ke={props:{pageCount:{type:Number,required:!0},pageIndex:{type:Number,required:!0},pagingCount:{type:Number,required:!0}},computed:{numOffset:function(){return Math.floor((this.pagingCount+2)/2)-1},showJumpPrev:function(){return this.pageCount>this.pagingCount+2&&this.pageIndex>this.pagingCount},showJumpNext:function(){return this.pageCount>this.pagingCount+2&&this.pageIndex<=this.pageCount-this.pagingCount},pagingCounts:function(){var e=[],t=this.showJumpPrev,n=this.showJumpNext;if(t&&!n)for(var r=this.pageCount-this.pagingCount;r<this.pageCount;r++)e.push(r);else if(!t&&n)for(var i=2;i<this.pagingCount+2;i++)e.push(i);else if(t&&n)for(var o=this.pageIndex-this.numOffset;o<=this.pageIndex+this.numOffset;o++)e.push(o);else for(var a=2;a<this.pageCount;a++)e.push(a);return e}},methods:{jumpPage:function(e){this.$emit("jumpPageHandler",e)}},render:function(){var e=arguments[0],t=this.pageIndex,n=this.jumpPage,r=this.showJumpPrev,i=this.pagingCount,o=this.pagingCounts,a=this.showJumpNext,s=this.pageCount;return e("span",{class:be("pager")},[e("li",{class:[1===t?be("li-active"):"",be("li")],on:{click:function(){return n(1)}}},[e("a",["1"])]),r&&e("li",{class:[1===t?"disabled":"",be("li"),be("jump-prev")],attrs:{title:_e("prev5",i)},on:{click:function(){return n(t-i)}}},[e("a",[e(C.a,{attrs:{name:S.DOUBLE_LEFT_ARROW}})])]),o.map(function(r,i){return e("li",{key:i,class:[r===t?be("li-active"):"",be("li")],on:{click:function(){return n(r)}}},[e("a",[r])])}),a&&e("li",{class:[be("li"),be("jump-next")],attrs:{title:_e("next5",i)},on:{click:function(){return n(t+i)}}},[e("a",[e(C.a,{attrs:{name:S.DOUBLE_RIGHT_ARROW}})])]),s>1&&e("li",{class:[t===s?be("li-active"):"",be("li")],on:{click:function(){return n(s)}}},[e("a",[s])])])}},we=n(138),xe=n.n(we),Ce=o("pagination"),Se={name:"VePagination",components:{Total:{render:function(){return(0,arguments[0])("span",{class:be("total")},[Ce("total",this.$parent.total)])}},Prev:{render:function(){var e=arguments[0];return e("li",{on:{click:this.$parent.prevPage},class:[1===this.$parent.newPageIndex?be("disabled"):"",be("li"),be("prev")]},[e("a",[e(C.a,{attrs:{name:S.LEFT_ARROW}})])])}},Pager:ke,Next:{render:function(){var e=arguments[0];return e("li",{on:{click:this.$parent.nextPage},class:[this.$parent.newPageIndex===this.$parent.pageCount?be("disabled"):"",be("li"),be("next")]},[e("a",[e(C.a,{attrs:{name:S.RIGHT_ARROW}})])])}},Sizer:{render:function(){return(0,arguments[0])(xe.a,{class:be("select"),attrs:{value:this.$parent.newPageSizeOption,popperAppendTo:this.$parent.popperAppendTo},on:{input:this.handleChange}})},methods:{handleChange:function(e){if(Array.isArray(e)&&e.length>0){var t=e.find(function(e){return e.selected});t&&this.$parent.pageSizeChangeHandler(t.value)}}}},Jumper:{methods:{jumperEnter:function(e){if(13===e.keyCode){var t=this.$parent.getValidNum(e.target.value);e.target.value=t,this.$parent.jumpPageHandler(t)}}},render:function(){var e=arguments[0];return e("span",{class:be("goto")},[" ",Ce("goto")," ",e("input",{class:be("goto-input"),domProps:{value:this.$parent.newPageIndex},on:{keyup:this.jumperEnter},attrs:{type:"input"}})," ",Ce("page")," "])}}},props:{layout:{type:Array,default:function(){return["total","prev","pager","next","sizer","jumper"]}},total:{type:Number,required:!0},pageIndex:{type:Number,default:1},pagingCount:{type:Number,default:5},pageSize:{type:Number,default:10},pageSizeOption:{type:Array,default:function(){return[10,20,30]}},popperAppendTo:{type:[String,HTMLElement],default:function(){return document.body}}},data:function(){return{newPageIndex:this.pageIndex&&this.pageIndex>0?parseInt(this.pageIndex):1,newPageSize:this.pageSize}},computed:{pageCount:function(){return Math.ceil(this.total/this.newPageSize)},newPageSizeOption:function(){var e=this;return this.pageSizeOption.map(function(t){var n={};return n.value=t,n.label=t+Ce("itemsPerPage"),e.newPageSize==t&&(n.selected=!0),n})}},watch:{pageIndex:function(e){this.newPageIndex=e},pageSize:function(e){this.newPageSize=e}},methods:{getValidNum:function(e){return e=parseInt(e,10),isNaN(e)||e<1||e<1?1:e>this.pageCount?this.pageCount:e},jumpPageHandler:function(e){this.newPageIndex=e,this.$emit(ge,this.newPageIndex)},prevPage:function(){this.newPageIndex>1&&(this.newPageIndex=this.newPageIndex-1,this.$emit(ge,this.newPageIndex))},nextPage:function(){this.newPageIndex<this.pageCount&&(this.newPageIndex=this.newPageIndex+1,this.$emit(ge,this.newPageIndex))},pageSizeChangeHandler:function(){var e=this.newPageSizeOption.find(function(e){return e.selected});e&&(this.newPageSize=e.value,this.newPageIndex=1,this.$emit("on-page-size-change",this.newPageSize))},goBackPageIndex:function(){this.newPageIndex=this.pageIndex&&this.pageIndex>0?parseInt(this.pageIndex):1},goBackPageSize:function(){this.pageSize>0&&(this.newPageSize=this.pageSize)}},render:function(){var e=arguments[0],t=e("ul",{class:"ve-pagination"}),n={total:e("total"),prev:e("prev"),pager:e("pager",{attrs:{pageCount:this.pageCount,pageIndex:this.newPageIndex,pagingCount:this.pagingCount},on:{jumpPageHandler:this.jumpPageHandler}}),next:e("next"),sizer:e("sizer"),jumper:e("jumper",{on:{jumpPageHandler:this.jumpPageHandler}})};return t.children=t.children||[],this.layout.forEach(function(e){t.children.push(n[e])}),t},install:function(e){e.component(Se.name,Se)}},Ae=Se;function Oe(e){return"ve-radio-"+e}function je(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Te={name:"VeRadio",props:{value:{type:[String,Number,Boolean],default:null},label:{type:String,default:null},disabled:Boolean,isControlled:{type:Boolean,default:!1},isSelected:{type:Boolean,default:!1}},data:function(){return{model:this.value}},computed:{radioClass:function(){var e;return[Oe("container"),(e={},je(e,Oe("checked"),this.internalIsSelected),je(e,Oe("disabled"),this.disabled),e)]},internalIsSelected:function(){return this.isControlled?this.isSelected:this.model}},watch:{value:function(){this.updateModelBySingle()}},methods:{checkedChange:function(e){if(this.disabled)return!1;var t=e.target.checked;this.isControlled||this.$emit("input",t),this.$emit("on-radio-change",t)},getLabelContent:function(){var e=this.label,t=this.$slots;return e||t.default},initModel:function(){this.model=this.value},updateModelBySingle:function(){this.disabled||(this.model=this.value)}},created:function(){this.initModel()},render:function(){var e=arguments[0],t=this.label,n=this.radioClass,r=this.checkedChange,i=this.getLabelContent;return e("label",{class:"ve-radio"},[e("span",{class:n},[e("input",{domProps:{checked:this.internalIsSelected,value:t},class:Oe("input"),attrs:{type:"radio"},on:{change:r}}),e("span",{class:Oe("inner")})]),e("span",{class:Oe("label")},[i()])])},install:function(e){e.component(Te.name,Te)}},Ee=Te,De=n(44),Ie=n.n(De);function Re(e){return"ve-select-"+e}function Me(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Pe={name:"VeSelect",props:{width:{type:Number,default:90},maxWidth:{type:Number,default:0},isMultiple:{type:Boolean,default:!1},value:{type:Array,default:null},placeholder:{type:String,default:"请选择",validator:function(e){return e.length>0}},textAlign:{type:String,default:"left"},isInput:{type:Boolean,default:!1},popperAppendTo:{type:[String,HTMLElement],default:function(){return document.body}}},data:function(){return{visible:!1,internalOptions:[],inputValue:"",dropdownVisible:!1}},computed:{iconClass:function(){var e;return Me(e={},Re("show"),this.dropdownVisible),Me(e,Re("toggle-icon"),!0),e}},watch:{value:function(){this.init()}},methods:{init:function(){this.internalOptions=Object.assign([],this.value)},showSelectInfo:function(){var e;return e=this.selectedLabels(),Array.isArray(e)&&e.length>0?e.join():this.placeholder},selectedLabels:function(){return this.internalOptions.filter(function(e){return e.selected}).map(function(e){if(e.selected)return e.label})},dropdownChange:function(){this.$emit("input",this.internalOptions),this.$emit("on-select-change",this.internalOptions)}},created:function(){this.init()},render:function(){var e,t=this,n=arguments[0],r=this.isInput,i={class:"ve-select",props:{isSelect:!0,width:this.width,maxWidth:this.maxWidth,isMultiple:this.isMultiple,textAlign:this.textAlign,isInput:this.isInput,value:this.internalOptions,hideByItemClick:!0,popperAppendTo:this.popperAppendTo},style:{width:this.width},on:{input:function(e){t.internalOptions=e,t.dropdownChange()},"dropdown-visible-change":function(e){t.dropdownVisible=e}}};return e=r?n("input",{class:Re("input"),attrs:{placeholder:this.placeholder,type:"text"},directives:[{name:"model",value:this.inputValue}]}):n("span",{class:Re("selected-span")},[this.showSelectInfo()]),n(Ie.a,i,[n("span",[e,n(C.a,{attrs:{name:S.BOTTOM_ARROW},class:this.iconClass})])])},install:function(e){e.component(Pe.name,Pe)}},Le=Pe,Be=(n(26),n(73),n(36),n(124),n(162),n(164),"expand"),Ne="checkbox",Fe="left",Ke="right",Ve="right",ze="down",Ue="left",qe="up",We="right",$e="down",He="left",Ge="single",Ze="range",Ye="on-body-cell-width-change",Xe="on-header-row-height-change",Je="on-footer-row-height-change",Qe="on-body-row-height-change",et="on-body-row-click",tt="on-body-cell-click",nt="on-body-cell-mouseover",rt="on-body-cell-mousedown",it="on-body-cell-mousemove",ot="on-body-cell-mouseup",at="on-body-cell-double-click",st="on-body-cell-contextmenu",lt="on-expand-row-change",ct="on-checkbox-selected-row-change",ut="on-checkbox-selected-all-change",dt="on-checkbox-selected-all-info",ft="on-radio-selected-row-change",ht="on-sort-change",pt="on-cell-selection-range-data-change",mt="on-header-cell-click",yt="on-header-cell-contextmenu",vt="on-header-cell-mousedown",gt="on-header-cell-mouseover",bt="on-header-cell-mousemove",_t="on-header-cell-mouseleave",kt="on-highlight-row-change",wt="on-edit-input-click",xt="on-edit-input-value-change",Ct="on-edit-input-copy",St="on-edit-input-paste",At="on-edit-input-cut",Ot="selection-corner-mousedown",jt="selection-corner-mouseup",Tt="autofilling-direction-change",Et="table-container-scroll",Dt="table-size-change",It="table-cell-width-change",Rt="clipboard-cell-value-change",Mt="header-cell-mousemove",Pt="VeTable",Lt="VeTableHeader",Bt="VeTableHeaderCheckboxContent",Nt="VeTableBody",Ft="VeTableBodyTr",Kt="VeTableBodyTd",Vt="row-key",zt="scrollToRowKey",Ut="startEditingCell",qt="stopEditingCell",Wt="setHighlightRow",$t="setCellSelection",Ht="setAllCellSelection",Gt="headerContextmenu",Zt={SEPARATOR:"SEPARATOR",CUT:"CUT",COPY:"COPY",INSERT_ROW_ABOVE:"INSERT_ROW_ABOVE",INSERT_ROW_BELOW:"INSERT_ROW_BELOW",REMOVE_ROW:"REMOVE_ROW",EMPTY_ROW:"EMPTY_ROW",EMPTY_COLUMN:"EMPTY_COLUMN",EMPTY_CELL:"EMPTY_CELL",LEFT_FIXED_COLUMN_TO:"LEFT_FIXED_COLUMN_TO",CANCEL_LEFT_FIXED_COLUMN_TO:"CANCEL_LEFT_FIXED_COLUMN_TO",RIGHT_FIXED_COLUMN_TO:"RIGHT_FIXED_COLUMN_TO",CANCEL_RIGHT_FIXED_COLUMN_TO:"CANCEL_RIGHT_FIXED_COLUMN_TO"};function Yt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xt(e){return"ve-table-"+e}function Jt(e,t){var n=null;return e&&t&&(n=e[t]),n}function Qt(e,t){return e?t.find(function(t){return t.key===e}):null}function en(e,t){if(!s(e)&&!a(t)){var n=t[0];if(n.key===e&&n.operationColumn)return!0}return!1}function tn(e,t){var n=e;return(n||0==n)&&(n=e+"@"+t),n}function nn(e){var t=e.colgroups,n=e.colKey,r=e.fixed,i=t.findIndex(function(e){return e.key===n}),o=0;return r===Fe?o=t.reduce(function(e,t,n){return n<i&&t.fixed==Fe?t._realTimeWidth+e:e},0):r===Ke&&(o=t.reduce(function(e,t,n){return n>i&&t.fixed==Ke?t._realTimeWidth+e:e},0)),o}function rn(e){var t=e.colgroups,n=e.colKey,r=e.fixed,i=t.findIndex(function(e){return e.key===n}),o=0;return r===Fe?o=t.reduce(function(e,t,n){return n<i&&!t.fixed?t._realTimeWidth+e:e},0):r===Ke&&(o=t.reduce(function(e,t,n){return n>i&&!t.fixed?t._realTimeWidth+e:e},0)),o}function on(e){var t=e.colKeys;return e.colgroups.reduce(function(e,n,r){return t.indexOf(n.key)>-1?n._realTimeWidth+e:e},0)}function an(e){var t=e.colgroups,n=Yt({},e.rowKeyFieldName,M());return t.forEach(function(e){e.field&&(n[e.field]="")}),n}function sn(e){var t=null;return(t=e.headerColumnItem._keys.split("|")).length>1&&(t=t.slice(0,t.length-1)),t}function ln(e){var t=e.colKey1,n=e.colKey2,r=e.colgroups,i=null,o=r.findIndex(function(e){return e.key===t}),a=r.findIndex(function(e){return e.key===n});if(-1!==o&&-1!==o){var s=o<a?o:a,l=o<a?a:o;i=r.slice(s,l+1).map(function(e){return e.key})}return i}function cn(e){var t=e.colKeys,n=e.fixedType,r=e.colgroups,i=null;return Array.isArray(t)&&(i=r.filter(function(e){return t.indexOf(e.key)>-1&&e.fixed===n}).map(function(e){return e.key})),i}function un(e){var t=e.fixedType,n=e.colgroups,r=e.isExcludeOperationColumn;return n.filter(function(e){var n=e.fixed===t;return r?n&&!e.operationColumn:n}).map(function(e){return e.key})}function dn(e){var t=e.topRowKey,n=e.bottomRowKey,r=e.allRowKeys,i=null,o=r.findIndex(function(e){return e===t}),a=r.findIndex(function(e){return e===n});return-1!==o&&-1!==a&&(i=r.slice(o,a+1)),i}function fn(e){var t=e.cellData,n=e.cellSelectionRangeData,r=e.colgroups,i=e.allRowKeys,o=n.leftColKey,a=n.rightColKey,s=n.topRowKey,l=n.bottomRowKey,c=ln({colKey1:o,colKey2:a,colgroups:r}),u=dn({topRowKey:s,bottomRowKey:l,allRowKeys:i});return c.indexOf(t.colKey)>-1&&u.indexOf(t.rowKey)>-1}function hn(e){var t=e.cellSelectionRangeData;return{startColKey:t.leftColKey,endColKey:t.rightColKey,startRowKey:t.topRowKey,endRowKey:t.bottomRowKey}}function pn(e){var t=e.cellSelectionRangeData,n=e.colgroups,r=e.allRowKeys,i=t.leftColKey,o=t.rightColKey,a=t.topRowKey,s=t.bottomRowKey;return{startColIndex:n.findIndex(function(e){return e.key===i}),endColIndex:n.findIndex(function(e){return e.key===o}),startRowIndex:r.indexOf(a),endRowIndex:r.indexOf(s)}}function mn(e){var t=e.cellSelectionRangeData,n=e.resultType,r=void 0===n?"normal":n,i=e.tableData,o=e.colgroups,a=e.allRowKeys,s=t.leftColKey,l=t.rightColKey,c=t.topRowKey,u=t.bottomRowKey,d=o.findIndex(function(e){return e.key===s}),f=o.findIndex(function(e){return e.key===l}),h=a.indexOf(c),p=a.indexOf(u),m=o.slice(d,f+1).map(function(e){return e.field});return"normal"===r?i.slice(h,p+1).map(function(e){var t={};return m.forEach(function(n){var r;t[n]=null!==(r=e[n])&&void 0!==r?r:""}),t}):i.slice(h,p+1).map(function(e){var t=[];return m.forEach(function(n){var r;t.push(null!==(r=e[n])&&void 0!==r?r:"")}),t})}function yn(e){var t=e.fixedType,n=e.colKeys,r=e.colgroups,i=!1;return Array.isArray(n)&&(i=r.some(function(e){return n.indexOf(e.key)>-1&&e.fixed===t})),i}function vn(e){var t=e.colKeys,n=e.colgroups,r=!1;return Array.isArray(t)&&(r=n.filter(function(e){return!e.fixed&&t.indexOf(e.key)>-1}).length),r}function gn(e){var t=e.type,n=e.colgroups,r=e.colKeys,i=null;if(Array.isArray(r)&&r.length){var o={colKey:null,colIndex:null};r.forEach(function(e){var r=n.findIndex(function(t){return t.key===e});if(-1===r)return console.warn("getLeftmostOrRightmostColKey error:: can't find colKey:".concat(e)),!1;s(o.colKey)?o={colKey:e,colIndex:r}:"leftmost"===t?r<o.colIndex&&(o={colKey:e,colIndex:r}):"rightmost"===t&&r>o.colIndex&&(o={colKey:e,colIndex:r})}),i=o.colKey}return i}function bn(e){return gn({type:"leftmost",colgroups:e.colgroups,colKeys:e.colKeys})}function _n(e){var t,n=e.isReplaceData,r=e.tableData,i=e.allRowKeys,o=e.colgroups,a=e.direction,s=e.rowKeyFieldName,l=e.cellSelectionRangeData,c=e.nextCurrentCell,u=e.nextNormalEndCell,d=l.leftColKey,f=l.rightColKey,h=l.topRowKey,p=l.bottomRowKey,m={startRowIndex:-1,endRowIndex:-1,startColIndex:-1,endColIndex:-1},y={startRowIndex:-1,endRowIndex:-1,startColIndex:-1,endColIndex:-1};if(m.startRowIndex=i.indexOf(h),m.endRowIndex=i.indexOf(p),m.startColIndex=o.findIndex(function(e){return e.key===d}),m.endColIndex=o.findIndex(function(e){return e.key===f}),t=r.slice(m.startRowIndex,m.endRowIndex+1),a===qe){if(y.startRowIndex=i.indexOf(c.rowKey),y.endRowIndex=m.startRowIndex-1,y.startColIndex=m.startColIndex,y.endColIndex=m.endColIndex,n)for(var v=t.length-1,g=y.endRowIndex;g>=y.startRowIndex;g--){for(var b=y.startColIndex;b<=y.endColIndex;b++){var _=o[b].field;v<0&&(v=t.length-1),r[g][_]=t[v][_]}--v}}else if(a===$e){if(y.startRowIndex=m.endRowIndex+1,y.endRowIndex=i.indexOf(u.rowKey),y.startColIndex=m.startColIndex,y.endColIndex=m.endColIndex,n)for(var k=0,w=y.startRowIndex;w<=y.endRowIndex;w++){for(var x=y.startColIndex;x<=y.endColIndex;x++){var C=o[x].field;k>t.length-1&&(k=0),r[w][C]=t[k][C]}++k}}else if(a===He){if(y.startRowIndex=m.startRowIndex,y.endRowIndex=m.endRowIndex,y.startColIndex=o.findIndex(function(e){return e.key===c.colKey}),y.endColIndex=m.startColIndex-1,n)for(var S=0,A=y.startRowIndex;A<=y.endRowIndex;A++){for(var O=m.endColIndex,j=y.endColIndex;j>=y.startColIndex;j--){var T=o[j].field;O<m.startColIndex&&(O=m.endColIndex),r[A][T]=t[S][o[O].field],--O}++S}}else if(a===We&&(y.startRowIndex=m.startRowIndex,y.endRowIndex=m.endRowIndex,y.startColIndex=m.endColIndex+1,y.endColIndex=o.findIndex(function(e){return e.key===u.colKey}),n))for(var E=0,D=y.startRowIndex;D<=y.endRowIndex;D++){for(var I=m.startColIndex,R=y.startColIndex;R<=y.endColIndex;R++){var M=o[R].field;I>m.startColIndex+(m.endColIndex-m.startColIndex)&&(I=m.startColIndex),r[D][M]=t[E][o[I].field],++I}++E}var P={direction:a,sourceSelectionRangeIndexes:m,targetSelectionRangeIndexes:y,sourceSelectionData:[],targetSelectionData:[]},L=o.slice(m.startColIndex,m.endColIndex+1).map(function(e){return e.field});P.sourceSelectionData=r.slice(m.startRowIndex,m.endRowIndex+1).map(function(e){var t=Yt({},s,e[s]);return L.forEach(function(n){t[n]=e[n]}),t});var B=o.slice(y.startColIndex,y.endColIndex+1).map(function(e){return e.field});return P.targetSelectionData=r.slice(y.startRowIndex,y.endRowIndex+1).map(function(e){var t=Yt({},s,e[s]);return B.forEach(function(n){t[n]=e[n]}),t}),P}function kn(e){var t,n=e.cloneColumns,r=e.cellSelectionRangeData,i=e.fixedType,o=e.colgroups,a=e.enableColumnResize,l=n,c=r.leftColKey,u=r.rightColKey;Fe===i?t=u:Ke===i&&(t=c);var d=n.findIndex(function(e){return 1===e._level&&e.key===t||sn({headerColumnItem:e}).indexOf(t)>-1||void 0});if(d>-1){var f=n[d].fixed;if(!s(f)&&f!==i)return!1;l=n.map(function(e,t){if(e.fixed===i&&(e.fixed=""),a&&(!Array.isArray(e.children)||!e.children.length)){var r=o.find(function(t){return t.key===e.key&&!s(t.key)});r&&(e.width=r._columnResizeWidth)}return Fe===i?t<=d&&t<n.length&&(e.fixed=i):t>=d&&t>0&&(e.fixed=i),e})}return l}function wn(e){var t=e.cloneColumns,n=e.colgroups,r=e.fixedType,i=e.enableColumnResize;return t.map(function(e){if(i&&(!Array.isArray(e.children)||!e.children.length)){var t=n.find(function(t){return t.key===e.key&&!s(t.key)});t&&(e.width=t._columnResizeWidth)}return Fe===r?e.fixed!==r||en(e.key,n)||(e.fixed=""):e.fixed===r&&(e.fixed=""),e})}n(165),n(166),n(167);var xn=/^(\r\n|\n\r|\r|\n)/,Cn=/^[^\t\r\n]+/,Sn=/^\t/;function An(e){var t,n,r,i,o,a="";for(t=0,n=e.length;t<n;t+=1){for(i=e[t].length,r=0;r<i;r+=1)r>0&&(a+="\t"),"string"==typeof(o=e[t][r])?o.indexOf("\n")>-1?a+='"'.concat(o.replace(/"/g,'""'),'"'):a+=o:a+=null==o?"":o;t!==n-1&&(a+="\n")}return a}n(169);var On,jn=(On="undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).requestAnimationFrame||On.webkitRequestAnimationFrame||On.mozRequestAnimationFrame||On.oRequestAnimationFrame||On.msRequestAnimationFrame||function(e){return On.setTimeout(e,1e3/60)},Tn=On.cancelAnimationFrame||On.webkitCancelAnimationFrame||On.mozCancelAnimationFrame||On.oCancelAnimationFrame||On.msCancelAnimationFrame||function(e){On.clearTimeout(e)};function En(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)}}var Dn=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks={}}var t,n;return t=e,(n=[{key:"addHook",value:function(e,t){var n;this.hooks[e]||(this.hooks[e]=[]),n=this.hooks[e];for(var r=!1,i=0;i<n.length;i++)if(n[i]===t){r=!0;break}r?console.warn("Repeat hook name:".concat(e)):n.push(t)}},{key:"triggerHook",value:function(e){var t=this.hooks[e];if(t&&t.length){var n=Array.prototype.slice.call(arguments);t.forEach(function(e){e.apply(null,n.slice(1))})}}}])&&En(t.prototype,n),e}();function In(e){var t=null;if(!e)return t;var n=void 0!==e.which?e.which:e.button;return 1==n?t=A:2==n?t=O:3==n&&(t=j),t}var Rn={methods:{dispatch:function(e,t,n){for(var r=this.$parent||this.$root,i=r.$options.name;r&&(!i||i!==e);)(r=r.$parent)&&(i=r.$options.name);r?r.$emit.apply(r,[t].concat(n)):console.error("".concat(e," was not found."))},broadcast:function(e,t,n){(function e(t,n,r){this.$children.forEach(function(i){i.$options.name===t?i.$emit.apply(i,[n].concat(r)):e.apply(i,[t,n].concat([r]))})}).call(this,e,t,n)}}},Mn={name:"VeTableColgroup",props:{colgroups:{type:Array,required:!0},enableColumnResize:{type:Boolean,required:!0}},methods:{getValByUnit:function(e){return d(this.enableColumnResize&&e._columnResizeWidth?e._columnResizeWidth:e.width)}},render:function(){var e=this,t=arguments[0];return t("colgroup",[this.colgroups.map(function(n){return t("col",{key:n.key,style:{width:e.getValByUnit(n)}})})])}},Pn={name:Bt,mixins:[Rn],props:{checkboxOption:{type:Object,default:function(){return null}}},data:function(){return{isSelected:!1,isIndeterminate:!1}},methods:{selectedChange:function(e){this.isSelected=e,this.dispatch(Pt,ut,{isSelected:e})},setSelectedAllInfo:function(e){var t=e.isSelected,n=e.isIndeterminate;this.isSelected=t,this.isIndeterminate=n}},mounted:function(){var e=this;this.$on(dt,function(t){e.setSelectedAllInfo(t)})},render:function(){var e=arguments[0],t=this.isSelected,n=this.isIndeterminate,r=this.selectedChange,i={class:Xt("checkbox-wrapper"),props:{isControlled:!0,isSelected:t,indeterminate:n},on:{"on-checked-change":function(e){return r(e)}}};return e(z.a,i)}};function Ln(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Bn=o("table"),Nn={name:"VeTableHeaderFilterContent",props:{column:{type:Object,required:!0}},data:function(){return{filterList:[]}},watch:{column:{handler:function(e){e.filter&&Array.isArray(e.filter.filterList)&&(this.filterList=e.filter.filterList)},immediate:!0,deep:!0}},methods:{filterConfirm:function(){var e=this.column.filter.filterConfirm;e&&e(this.filterList)},filterReset:function(){var e=this.column.filter.filterReset;e&&e(this.filterList)},getIcon:function(e){var t=this.column.filter.filterIcon;return l(t)?t(e):e(C.a,{attrs:{name:S.FILTER}})}},render:function(e){var t,n=this,r=this.column.filter,i=r.filterList,o=r.isMultiple,a=r.maxHeight,s=r.beforeVisibleChange,l={props:{value:i,showOperation:!0,isMultiple:o,showRadio:!0,confirmFilterText:Bn("confirmFilter"),resetFilterText:Bn("resetFilter"),beforeVisibleChange:s},on:(t={},Ln(t,"on-filter-confirm",this.filterConfirm),Ln(t,"on-filter-reset",this.filterReset),Ln(t,"input",function(e){n.filterList=e}),t)};return"number"==typeof a&&(l.props.maxHeight=a),e(Ie.a,l,[e("span",{class:Xt("filter")},[e("span",{class:Xt("filter-icon")},[this.getIcon(e)])])])}},Fn={name:"VeTableHeaderFilterCustomContent",props:{column:{type:Object,required:!0}},data:function(){return{internalVisible:!1}},watch:{column:{handler:function(e){e.filterCustom&&c(e.filterCustom.defaultVisible)&&(this.internalVisible=e.filterCustom.defaultVisible)},immediate:!0,deep:!0}},methods:{visibleChange:function(e){this.internalVisible=e},getCustomContent:function(e){var t=null,n=this.column.filterCustom.render;return l(n)&&(t=e("div",{slot:"custom-content"},[n({showFn:this.show,closeFn:this.close},e)])),t},getIcon:function(e){var t=this.column.filterCustom.filterIcon;return l(t)?t(e):e(C.a,{attrs:{name:S.FILTER}})},close:function(){this.internalVisible=!1},show:function(){this.internalVisible=!0}},render:function(e){var t={props:{isCustomContent:!0,isControlled:!0,visible:this.internalVisible,beforeVisibleChange:this.column.filterCustom.beforeVisibleChange},on:{"on-dropdown-visible-change":this.visibleChange}};return e(Ie.a,t,[e("span",{class:Xt("filter")},[e("span",{class:Xt("filter-icon")},[this.getIcon(e)])]),this.getCustomContent(e)])}};function Kn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Vn={name:"VeTableHeaderTh",mixins:[Rn],props:{groupColumn:{type:Array,required:!0},groupColumnItem:{type:Object,required:!0},colgroups:{type:Array,required:!0},headerRows:{type:Array,default:function(){return[]}},fixedHeader:{type:Boolean},isGroupHeader:{type:Boolean,required:!0},rowIndex:{type:Number,required:!0},cellSelectionData:{type:Object,default:function(){return null}},cellSelectionRangeData:{type:Object,default:function(){return null}},headerIndicatorColKeys:{type:Object,default:function(){return null}},checkboxOption:{type:Object,default:function(){return null}},sortOption:{type:Object,default:function(){return null}},sortColumns:{type:Object,default:function(){return null}},cellStyleOption:{type:Object,default:function(){return null}},eventCustomOption:{type:Object,default:function(){return null}}},computed:{isLastLeftFixedColumn:function(){var e=!1,t=this.groupColumn,n=this.groupColumnItem,r=n.fixed,i=n._keys;if("left"===r){var o=t.filter(function(e){return"left"===e.fixed});o.findIndex(function(e){return e._keys===i})===o.length-1&&(e=!0)}return e},isfirstRightFixedColumn:function(){var e=!1,t=this.groupColumn,n=this.groupColumnItem,r=n.fixed,i=n._keys;return"right"===r&&t.filter(function(e){return"right"===e.fixed})[0]._keys===i&&(e=!0),e},isLastCloumn:function(){var e=!1,t=this.colgroups,n=this.groupColumnItem,r=t[t.length-1].key,i=n._keys.split("|");return i.length&&(1===i.length?i[0]===r&&(e=!0):i[i.length-2]===r&&(e=!0)),e},isSortableCloumn:function(){var e=!1,t=this.sortColumns,n=this.groupColumnItem.field;return Object.keys(t).includes(n)&&(e=!0),e}},methods:{getTheadThClass:function(e){var t,n=e.fixed,r=(Kn(t={},Xt("header-th"),!0),Kn(t,Xt("fixed-left"),"left"===n),Kn(t,Xt("fixed-right"),"right"===n),Kn(t,Xt("last-left-fixed-column"),this.isLastLeftFixedColumn),Kn(t,Xt("first-right-fixed-column"),this.isfirstRightFixedColumn),Kn(t,Xt("last-column"),this.isLastCloumn),Kn(t,Xt("sortable-column"),this.isSortableCloumn),t),i=this.cellStyleOption,o=this.rowIndex,a=this.groupColumnItem,l=this.cellSelectionRangeData,c=this.colgroups,u=this.isGroupHeader,d=this.headerIndicatorColKeys;if(l){var f=l.leftColKey,h=l.rightColKey,p=d.startColKeyIndex>-1;if(!s(f)){var m,y=[];y=f===h?[f]:null!==(m=ln({colKey1:f,colKey2:h,colgroups:c}))&&void 0!==m?m:[];var v=!1;u?v=sn({headerColumnItem:a}).every(function(e){return y.indexOf(e)>-1}):y.indexOf(a.key)>-1&&(v=!0),v&&(p?r[Xt("cell-indicator-active")]=!0:r[Xt("cell-indicator")]=!0)}}if(i&&"function"==typeof i.headerCellClass){var g=i.headerCellClass({column:a,rowIndex:o});g&&(r[g]=!0)}return r},getTheadThStyle:function(e,t){var n=e._keys,r=e.align,i=e.fixed,o={},a=this.colgroups,s=this.headerRows;if(o["text-align"]=r||"center",i){var l="",c=0,u=n.split("|");if("left"===i?l=u[0]:"right"===i&&(l=1===u.length?u[0]:u[u.length-2]),l){var f=a.findIndex(function(e){return e.key===l});("left"===i&&f>0||"right"===i&&f<a.length-1)&&(c=d(c=nn({colgroups:a,colKey:l,fixed:i})))}o.left="left"===i?c:"",o.right="right"===i?c:""}if(this.fixedHeader){var h=0;t>0&&(h=s.reduce(function(e,n,r){return r<t?n.rowHeight+e:e},0)),h=d(h),o.top=h}return o},getCheckboxContent:function(){var e=this.$createElement,t=null,n=this.checkboxOption;if(this.groupColumnItem.type===Ne&&!n.hideSelectAll){var r={props:{column:this.groupColumnItem,checkboxOption:this.checkboxOption}};t=e(Pn,r)}return t},sortChange:function(){var e,t=this.sortColumns,n=this.groupColumnItem,r=this.sortOption.sortAlways,i=n.field,o=t[i];e=r?"asc"===o?"desc":"asc":"asc"===o?"desc":"desc"===o?"":"asc",this.dispatch(Lt,ht,{currentField:i,sortResult:e})},getSortContent:function(){var e=this.$createElement,t=null,n=this.sortColumns,r=this.groupColumnItem.field;if(Object.keys(n).includes(r)){var i=n[r];t=e("span",{class:Xt("sort")},[e(C.a,{class:[Xt("sort-icon"),Xt("sort-icon-top"),"asc"===i?"active":""],attrs:{name:S.SORT_TOP_ARROW}}),e(C.a,{class:[Xt("sort-icon"),Xt("sort-icon-bottom"),"desc"===i?"active":""],attrs:{name:S.SORT_BOTTOM_ARROW}})])}return t},getFilterContent:function(){var e=this.$createElement,t=null;if(this.groupColumnItem.filter){var n={props:{column:this.groupColumnItem}};t=e(Nn,n)}return t},getFilterCustomContent:function(){var e=this.$createElement,t=null;if(this.groupColumnItem.filterCustom){var n={props:{column:this.groupColumnItem}};t=e(Fn,n)}return t},cellClick:function(e,t){t&&t(e);var n=this.groupColumnItem;this.dispatch(Pt,mt,{event:e,column:n})},cellDblclick:function(e,t){t&&t(e)},cellContextmenu:function(e,t){t&&t(e);var n=this.groupColumnItem;this.dispatch(Pt,yt,{event:e,column:n})},cellMouseenter:function(e,t){t&&t(e)},cellMouseleave:function(e,t){t&&t(e);var n=this.groupColumnItem;this.dispatch(Pt,_t,{event:e,column:n})},cellMousemove:function(e,t){t&&t(e);var n=this.groupColumnItem;this.dispatch(Pt,bt,{event:e,column:n})},cellMouseover:function(e,t){t&&t(e);var n=this.groupColumnItem;this.dispatch(Pt,gt,{event:e,column:n})},cellMousedown:function(e,t){t&&t(e);var n=this.groupColumnItem;this.dispatch(Pt,vt,{event:e,column:n})},cellMouseup:function(e,t){t&&t(e)}},render:function(e){var t,n=this,r=this.groupColumnItem,i=this.getTheadThClass,o=this.getTheadThStyle,a=this.rowIndex,s=this.eventCustomOption;if("function"==typeof r.renderHeaderCell){var l=Object.assign({},r);t=r.renderHeaderCell({column:l},e)}else t=r.title;var c={};if(s){var u=s.headerCellEvents;c=u?u({column:r,rowIndex:a}):{}}var d=c,f=d.click,h=d.dblclick,p=d.contextmenu,m=d.mouseenter,y=d.mouseleave,v=d.mousemove,g=d.mouseover,b=d.mousedown,_=d.mouseup,k={click:function(e){n.cellClick(e,f),n.isSortableCloumn&&e.target instanceof HTMLTableCellElement&&n.sortChange()},dblclick:function(e){n.cellDblclick(e,h)},contextmenu:function(e){n.cellContextmenu(e,p)},mouseenter:function(e){n.cellMouseenter(e,m)},mouseleave:function(e){n.cellMouseleave(e,y)},mousemove:function(e){n.cellMousemove(e,v)},mouseover:function(e){n.cellMouseover(e,g)},mousedown:function(e){n.cellMousedown(e,b)},mouseup:function(e){n.cellMouseup(e,_)}};return e("th",{style:o(r,a),class:i(r),attrs:{rowspan:r._rowspan,colspan:r._colspan},on:k},[this.getCheckboxContent(),t,this.getSortContent(),this.getFilterContent(),this.getFilterCustomContent()])}},zn=n(139);function Un(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}var qn=function(e){var t,n=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Un(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)?Un(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(e);try{var r=function(){var e=t.value,n=e.target.__resizeListeners__||[];n.length&&n.forEach(function(t){t(e.contentRect)})};for(n.s();!(t=n.n()).done;)r()}catch(e){n.e(e)}finally{n.f()}},Wn={name:"vue-dom-resize-observer",props:{tagName:{type:String,required:!0},id:{type:[String,Number],default:null}},methods:{resizeListener:function(e){var t=e.left,n=e.top,r=e.width,i=e.height;this.$emit("on-dom-resize-change",{key:this.id,left:t,top:n,width:r,height:i})}},mounted:function(){var e,t;e=this.$el,t=this.resizeListener,e.__resizeListeners__||(e.__resizeListeners__=[],e.__ro__=new zn.a(qn),e.__ro__.observe(e)),e.__resizeListeners__.push(t)},destroyed:function(){var e,t;e=this.$el,t=this.resizeListener,e&&e.__resizeListeners__&&(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),e.__resizeListeners__.length||e.__ro__.disconnect())},render:function(){return(0,arguments[0])(this.tagName,[this.$slots.default])}},$n={name:"VeTableHeaderTr",mixins:[Rn],props:{columnsOptionResetTime:{type:Number,default:0},groupColumn:{type:Array,required:!0},headerRows:{type:Array,default:function(){return[]}},colgroups:{type:Array,required:!0},fixedHeader:{type:Boolean,required:!0},isGroupHeader:{type:Boolean,required:!0},rowIndex:{type:Number,required:!0},cellSelectionData:{type:Object,default:function(){return null}},cellSelectionRangeData:{type:Object,default:function(){return null}},headerIndicatorColKeys:{type:Object,default:function(){return null}},checkboxOption:{type:Object,default:function(){return null}},sortOption:{type:Object,default:function(){return null}},sortColumns:{type:Object,default:function(){return null}},cellStyleOption:{type:Object,default:function(){return null}},eventCustomOption:{type:Object,default:function(){return null}}},methods:{trHeightChange:function(e){var t=e.height;this.dispatch(Pt,Xe,{rowIndex:this.rowIndex,height:t})},rowClick:function(e,t){t&&t(e)},rowDblclick:function(e,t){t&&t(e)},rowContextmenu:function(e,t){t&&t(e)},rowMouseenter:function(e,t){t&&t(e)},rowMouseleave:function(e,t){t&&t(e)},rowMousemove:function(e,t){t&&t(e)},rowMouseover:function(e,t){t&&t(e)},rowMousedown:function(e,t){t&&t(e)},rowMouseup:function(e,t){t&&t(e)}},render:function(){var e=this,t=arguments[0],n=this.groupColumn,r=this.colgroups,i=this.headerRows,o=this.fixedHeader,a=this.rowIndex,s=this.trHeightChange,l=this.checkboxOption,c=this.sortOption,u=this.sortColumns,d=this.cellStyleOption,f=this.eventCustomOption,h=this.cellSelectionData,p={};if(f){var m=f.headerRowEvents;p=m?m({rowIndex:a}):{}}var y=p,v=y.click,g=y.dblclick,b=y.contextmenu,_=y.mouseenter,k=y.mouseleave,w=y.mousemove,x=y.mouseover,C=y.mousedown,S=y.mouseup,A={click:function(t){e.rowClick(t,v)},dblclick:function(t){e.rowDblclick(t,g)},contextmenu:function(t){e.rowContextmenu(t,b)},mouseenter:function(t){e.rowMouseenter(t,_)},mouseleave:function(t){e.rowMouseleave(t,k)},mousemove:function(t){e.rowMousemove(t,w)},mouseover:function(t){e.rowMouseover(t,x)},mousedown:function(t){e.rowMousedown(t,C)},mouseup:function(t){e.rowMouseup(t,S)}},O={key:tn(a,this.columnsOptionResetTime),class:Xt("header-tr"),props:{tagName:"tr"},on:{"on-dom-resize-change":s},nativeOn:A};return t(Wn,O,[n.map(function(s){var f={key:s.key,props:{groupColumn:n,groupColumnItem:s,colgroups:r,headerRows:i,fixedHeader:o,isGroupHeader:e.isGroupHeader,rowIndex:a,checkboxOption:l,sortOption:c,sortColumns:u,cellStyleOption:d,eventCustomOption:e.eventCustomOption,cellSelectionData:h,cellSelectionRangeData:e.cellSelectionRangeData,headerIndicatorColKeys:e.headerIndicatorColKeys}};return t(Vn,f)})])}},Hn={name:Lt,mixins:[Rn],props:{columnsOptionResetTime:{type:Number,default:0},groupColumns:{type:Array,required:!0},colgroups:{type:Array,required:!0},fixedHeader:{type:Boolean,required:!0},isGroupHeader:{type:Boolean,required:!0},cellSelectionData:{type:Object,default:function(){return null}},cellSelectionRangeData:{type:Object,default:function(){return null}},headerIndicatorColKeys:{type:Object,default:function(){return null}},headerRows:{type:Array,default:function(){return[]}},checkboxOption:{type:Object,default:function(){return null}},sortOption:{type:Object,default:function(){return null}},cellStyleOption:{type:Object,default:function(){return null}},eventCustomOption:{type:Object,default:function(){return null}}},data:function(){return{sortColumns:{}}},computed:{headerClass:function(){return e={},t=Xt("fixed-header"),n=this.fixedHeader,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},watch:{colgroups:{handler:function(){this.initSortColumns()},immediate:!0}},methods:{sortChange:function(e){var t=e.currentField,n=e.sortResult,r=this.sortColumns,i=this.sortOption,o=i.multipleSort,a=i.sortChange;if(this.sortColumns[t]=n,!o)for(var s in r)s!==t&&(r[s]="");this.dispatch(Pt,ht,r),a(r)},initSortColumns:function(){var e={};this.colgroups.forEach(function(t){"string"==typeof t.sortBy&&(e[t.field]=t.sortBy)}),this.sortColumns=e}},mounted:function(){var e=this;this.$on(ht,function(t){e.sortChange(t)})},render:function(){var e=this,t=arguments[0],n=this.headerClass,r=this.groupColumns,i=this.colgroups,o=this.fixedHeader,a=this.headerRows,s=this.checkboxOption,l=this.sortOption,c=this.sortColumns,u=this.cellStyleOption,d=this.cellSelectionData;return t("thead",{class:n},[r.map(function(n,r){var f={key:r,props:{columnsOptionResetTime:e.columnsOptionResetTime,groupColumn:n,headerRows:a,colgroups:i,fixedHeader:o,isGroupHeader:e.isGroupHeader,rowIndex:r,checkboxOption:s,sortOption:l,sortColumns:c,cellStyleOption:u,eventCustomOption:e.eventCustomOption,cellSelectionData:d,cellSelectionRangeData:e.cellSelectionRangeData,headerIndicatorColKeys:e.headerIndicatorColKeys}};return t($n,f)})])}},Gn=(n(177),{name:"VeTableBodyCheckboxContent",mixins:[Rn],props:{checkboxOption:{type:Object,default:function(){return null}},rowKey:{type:[String,Number],required:!0},internalCheckboxSelectedRowKeys:{type:Array,default:function(){return null}}},data:function(){return{isSelected:!1}},computed:{disabled:function(){var e=!1,t=this.checkboxOption,n=this.rowKey;if(t){var r=t.disableSelectedRowKeys;return Array.isArray(r)&&r.includes(n)&&(e=!0),e}},isControlledProp:function(){var e=this.checkboxOption;return e&&Array.isArray(e.selectedRowKeys)}},watch:{internalCheckboxSelectedRowKeys:{handler:function(){this.initSelected()},immediate:!0}},methods:{initSelected:function(){var e=!1,t=this.rowKey,n=this.internalCheckboxSelectedRowKeys;Array.isArray(n)&&n.includes(t)&&(e=!0),this.isSelected=e},selectedChange:function(e){this.isControlledProp||(this.isSelected=e),this.dispatch(Nt,ct,{rowKey:this.rowKey,isSelected:e})}},render:function(){var e=arguments[0],t=this.isSelected,n=this.selectedChange,r=this.disabled,i={class:Xt("checkbox-wrapper"),props:{isControlled:!0,isSelected:t,disabled:r},on:{"on-checked-change":function(e){return n(e)}}};return e(z.a,i)}}),Zn={name:"VeTableBodyRadioContent",mixins:[Rn],props:{radioOption:{type:Object,default:function(){return null}},rowKey:{type:[String,Number],required:!0},internalRadioSelectedRowKey:{type:[String,Number],default:null}},data:function(){return{isSelected:!1}},computed:{disabled:function(){var e=!1,t=this.radioOption,n=this.rowKey;if(t){var r=t.disableSelectedRowKeys;return Array.isArray(r)&&r.includes(n)&&(e=!0),e}},isControlledProp:function(){var e=this.radioOption;return e&&Object.keys(e).includes("selectedRowKey")}},watch:{internalRadioSelectedRowKey:{handler:function(){this.initSelected()},immediate:!0}},methods:{initSelected:function(){this.isSelected=this.internalRadioSelectedRowKey===this.rowKey},selectedChange:function(){this.isControlledProp||(this.isSelected=!0),this.dispatch(Nt,ft,{rowKey:this.rowKey})}},render:function(){var e=arguments[0],t=this.isSelected,n=this.selectedChange,r=this.disabled,i={class:Xt("radio-wrapper"),props:{isControlled:!0,isSelected:t,disabled:r},on:{"on-radio-change":function(){return n()}}};return e(q.a,i)}};function Yn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Xn={name:"VeTableExpandTrIcon",props:{column:{type:Object,required:!0},expandOption:{type:Object,default:function(){return null}},rowData:{type:Object,required:!0},expandedRowkeys:{type:Array,default:function(){return[]}},rowKeyFieldName:{type:String,default:null},cellClick:{type:Function,default:null}},computed:{isExpanded:function(){var e=!1,t=this.column,n=this.rowData,r=this.expandedRowkeys,i=this.rowKeyFieldName;if(t.type===Be){var o=n[i];e=r.includes(o)}return e},expandRowIconContainerClass:function(){var e;return Yn(e={},Xt("row-expand-icon"),!0),Yn(e,Xt("expand-icon-collapsed"),this.isExpanded),e}},render:function(){var e=arguments[0],t=null,n=this.cellClick,r=this.column,i=this.expandRowIconContainerClass;return r.type===Be&&(t=e("span",{on:{click:function(e){return n(e)}},class:i},[e(C.a,{attrs:{name:S.RIGHT_ARROW}})])),t}};function Jn(e){return(Jn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Qn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var er={name:Kt,mixins:[Rn],props:{rowData:{type:Object,required:!0},column:{type:Object,required:!0},columnCollection:{type:Array,required:!0},rowIndex:{type:Number,required:!0},colgroups:{type:Array,required:!0},rowKeyFieldName:{type:String,default:null},allRowKeys:{type:Array,required:!0},expandOption:{type:Object,default:function(){return null}},isExpandRow:{type:Boolean,required:!0},expandedRowkeys:{type:Array,default:function(){return[]}},checkboxOption:{type:Object,default:function(){return null}},internalCheckboxSelectedRowKeys:{type:Array,default:function(){return null}},radioOption:{type:Object,default:function(){return null}},internalRadioSelectedRowKey:{type:[String,Number],default:null},cellStyleOption:{type:Object,default:function(){return null}},eventCustomOption:{type:Object,default:function(){return null}},cellSelectionData:{type:Object,default:function(){return null}},cellSelectionRangeData:{type:Object,default:function(){return null}},bodyIndicatorRowKeys:{type:Object,default:function(){return null}},cellSpanOption:{type:Object,default:function(){return null}},editOption:{type:Object,default:function(){return null}}},data:function(){return{rawCellValue:""}},computed:{currentColumnCollectionItem:function(){var e=this.columnCollection,t=this.column;return e.find(function(e){return e.colKey===t.key})},currentRowKey:function(){return this.rowData[this.rowKeyFieldName]}},watch:{rowData:{handler:function(e){var t=this.column;t&&(this.rawCellValue=e[t.field])},deep:!0,immediate:!0}},methods:{bodyTdStyle:function(){var e=this.currentColumnCollectionItem,t={};return e&&(t=Object.assign(t,e.style)),t},bodyTdClass:function(){var e=this.currentColumnCollectionItem,t=this.column,n=t.fixed,r=t.operationColumn,i=Qn({},Xt("body-td"),!0),o=this.cellStyleOption,a=this.rowData,l=this.column,c=this.rowIndex,u=this.allRowKeys,d=this.cellSelectionData,f=this.cellSelectionRangeData,h=this.bodyIndicatorRowKeys,p=this.currentRowKey;if(n&&(i[Xt("fixed-left")]="left"===n,i[Xt("fixed-right")]="right"===n),r&&(i[Xt("operation-col")]=!0),o&&"function"==typeof o.bodyCellClass){var m=o.bodyCellClass({row:a,column:l,rowIndex:c});m&&(i[m]=!0)}if(d){var y=d.currentCell,v=y.rowKey,g=y.colKey;if(!s(v)&&!s(g)&&(p===v&&l.key===g&&(i[Xt("cell-selection")]=!0),r)){var b=f.topRowKey,_=f.bottomRowKey,k=h.startRowKeyIndex>-1;(b===_?[b]:dn({topRowKey:b,bottomRowKey:_,allRowKeys:u})).indexOf(p)>-1&&(k?i[Xt("cell-indicator-active")]=!0:i[Xt("cell-indicator")]=!0)}}return e&&(i=Object.assign(i,e.class)),i},getEllipsisContentStyle:function(){var e={},t=this.column.ellipsis;if(t){var n=t.lineClamp,r=u(n)?n:1;e["-webkit-line-clamp"]=r}return e},getRenderContent:function(e){var t=null,n=this.column,r=this.rowData,i=this.rowIndex,o=this.rawCellValue;if(t="function"==typeof n.renderBodyCell?n.renderBodyCell({row:r,column:n,rowIndex:i},e):o,n.ellipsis){var a=n.ellipsis.showTitle;t=e("span",{attrs:{title:!c(a)||a?t:""},style:this.getEllipsisContentStyle(),class:Xt("body-td-span-ellipsis")},[t])}return t},getCheckboxContent:function(){var e=this.$createElement;if(this.column.type===Ne){var t={props:{column:this.column,checkboxOption:this.checkboxOption,rowKey:this.rowData[this.rowKeyFieldName],internalCheckboxSelectedRowKeys:this.internalCheckboxSelectedRowKeys}};return e(Gn,t)}return null},getRadioContent:function(){var e=this.$createElement;if("radio"===this.column.type){var t={props:{column:this.column,radioOption:this.radioOption,rowKey:this.rowData[this.rowKeyFieldName],internalRadioSelectedRowKey:this.internalRadioSelectedRowKey}};return e(Zn,t)}return null},getCellSpan:function(){var e=this.cellSpanOption,t=this.rowData,n=this.column,r=this.rowIndex,i=1,o=1;if(e){var a=e.bodyCellSpan;if("function"==typeof a){var s=a({row:t,column:n,rowIndex:r});"object"===Jn(s)&&(i=s.rowspan,o=s.colspan)}}return{rowspan:i,colspan:o}},cellClick:function(e,t){t&&t(e);var n=this.column,r=this.expandOption,i=this.rowData;if(this.dispatch(Pt,tt,{event:e,rowData:i,column:n}),n.type!==Be)return!1;if(r){var o=e.target.nodeName,a=r.trigger;a&&"icon"!==a?"cell"===a&&(e.stopPropagation(),this.$emit(lt)):"TD"!==o&&(e.stopPropagation(),this.$emit(lt))}},cellDblclick:function(e,t){t&&t(e);var n=this.column,r=this.rowData;this.dispatch(Pt,at,{event:e,rowData:r,column:n})},cellContextmenu:function(e,t){t&&t(e);var n=this.column,r=this.rowData;this.dispatch(Pt,st,{event:e,rowData:r,column:n})},cellMouseenter:function(e,t){t&&t(e)},cellMouseleave:function(e,t){t&&t(e)},cellMousemove:function(e,t){t&&t(e);var n=this.column,r=this.rowData;this.dispatch(Pt,it,{event:e,rowData:r,column:n})},cellMouseover:function(e,t){t&&t(e);var n=this.column,r=this.rowData;this.dispatch(Pt,nt,{event:e,rowData:r,column:n})},cellMousedown:function(e,t){t&&t(e);var n=this.column,r=this.rowData;this.dispatch(Pt,rt,{event:e,rowData:r,column:n})},cellMouseup:function(e,t){t&&t(e);var n=this.column,r=this.rowData;this.dispatch(Pt,ot,{event:e,rowData:r,column:n})}},render:function(e){var t=this,n=this.column,r=this.cellClick,i=this.rowData,o=this.isExpandRow,a=this.expandOption,s=this.expandedRowkeys,l=this.rowKeyFieldName,c=this.eventCustomOption,u=this.rowIndex,d={props:{rowData:i,column:n,expandOption:a,expandedRowkeys:s,rowKeyFieldName:l,cellClick:r}},f=this.getCellSpan(),h=f.rowspan,p=f.colspan;if(!h||!p)return null;var m={};if(c){var y=c.bodyCellEvents;m=y?y({row:i,column:n,rowIndex:u}):{}}var v=m,g=v.click,b=v.dblclick,_=v.contextmenu,k=v.mouseenter,w=v.mouseleave,x=v.mousemove,C=v.mouseover,S=v.mousedown,A=v.mouseup,O={click:function(e){t.cellClick(e,g)},dblclick:function(e){t.cellDblclick(e,b)},contextmenu:function(e){t.cellContextmenu(e,_)},mouseenter:function(e){t.cellMouseenter(e,k)},mouseleave:function(e){t.cellMouseleave(e,w)},mousemove:function(e){t.cellMousemove(e,x)},mouseover:function(e){t.cellMouseover(e,C)},mousedown:function(e){t.cellMousedown(e,S)},mouseup:function(e){t.cellMouseup(e,A)}};return e("td",{class:this.bodyTdClass(),style:this.bodyTdStyle(),attrs:Qn({rowspan:h,colspan:p},"col-key",n.key),on:O},[o&&e(Xn,d),this.getCheckboxContent(),this.getRadioContent(),this.getRenderContent(e)])}};function tr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nr={name:Ft,mixins:[Rn],props:{rowData:{type:Object,required:!0},rowIndex:{type:Number,required:!0},colgroups:{type:Array,required:!0},columnCollection:{type:Array,required:!0},rowKeyFieldName:{type:String,default:null},allRowKeys:{type:Array,required:!0},expandOption:{type:Object,default:function(){return null}},isExpandRow:{type:Boolean,required:!0},expandedRowkeys:{type:Array,default:function(){return[]}},expandRowChange:{type:Function,default:null},checkboxOption:{type:Object,default:function(){return null}},internalCheckboxSelectedRowKeys:{type:Array,default:function(){return null}},radioOption:{type:Object,default:function(){return null}},internalRadioSelectedRowKey:{type:[String,Number],default:null},isVirtualScroll:{type:Boolean,default:!1},cellStyleOption:{type:Object,default:function(){return null}},highlightRowKey:{type:[String,Number],default:null},eventCustomOption:{type:Object,default:function(){return null}},cellSelectionData:{type:Object,default:function(){return null}},cellSelectionRangeData:{type:Object,default:function(){return null}},bodyIndicatorRowKeys:{type:Object,default:function(){return null}},cellSpanOption:{type:Object,default:function(){return null}},editOption:{type:Object,default:function(){return null}}},computed:{currentRowKey:function(){var e=this.rowKeyFieldName;return e?this.rowData[e]:null},trClass:function(){var e,t=this.highlightRowKey,n=this.currentRowKey,r=!1;return s(t)||t===n&&(r=!0),tr(e={},Xt("body-tr"),!0),tr(e,Xt("tr-highlight"),r),e}},methods:{rowClick:function(e,t){t&&t(e);var n=this.rowData,r=this.rowIndex;this.dispatch(Nt,et,{rowData:n,rowIndex:r})},rowDblclick:function(e,t){t&&t(e)},rowContextmenu:function(e,t){t&&t(e)},rowMouseenter:function(e,t){t&&t(e)},rowMouseleave:function(e,t){t&&t(e)},rowMousemove:function(e,t){t&&t(e)},rowMouseover:function(e,t){t&&t(e)},rowMousedown:function(e,t){t&&t(e)},rowMouseup:function(e,t){t&&t(e)}},render:function(){var e=this,t=arguments[0],n=this.colgroups,r=this.expandOption,i=this.expandRowChange,o=this.isExpandRow,a=this.expandedRowkeys,s=this.checkboxOption,l=this.rowKeyFieldName,c=this.rowIndex,u=this.rowData,d=this.internalCheckboxSelectedRowKeys,f=this.internalRadioSelectedRowKey,h=this.radioOption,p=this.cellStyleOption,m=this.eventCustomOption,y=function(){return n.map(function(y){var v={key:y.key,props:{rowIndex:c,rowData:u,column:y,columnCollection:e.columnCollection,colgroups:n,expandOption:r,expandedRowkeys:a,checkboxOption:s,rowKeyFieldName:l,allRowKeys:e.allRowKeys,isExpandRow:o,internalCheckboxSelectedRowKeys:d,internalRadioSelectedRowKey:f,radioOption:h,cellStyleOption:p,cellSpanOption:e.cellSpanOption,eventCustomOption:m,cellSelectionData:e.cellSelectionData,cellSelectionRangeData:e.cellSelectionRangeData,bodyIndicatorRowKeys:e.bodyIndicatorRowKeys,editOption:e.editOption},on:tr({},lt,function(){return i(u,c)})};return t(er,v)})},v=null,g={};if(m){var b=m.bodyRowEvents;g=b?b({row:u,rowIndex:c}):{}}var _=g,k=_.click,w=_.dblclick,x=_.contextmenu,C=_.mouseenter,S=_.mouseleave,A=_.mousemove,O=_.mouseover,j=_.mousedown,T=_.mouseup,E={click:function(t){e.rowClick(t,k)},dblclick:function(t){e.rowDblclick(t,w)},contextmenu:function(t){e.rowContextmenu(t,x)},mouseenter:function(t){e.rowMouseenter(t,C)},mouseleave:function(t){e.rowMouseleave(t,S)},mousemove:function(t){e.rowMousemove(t,A)},mouseover:function(t){e.rowMouseover(t,O)},mousedown:function(t){e.rowMousedown(t,j)},mouseup:function(t){e.rowMouseup(t,T)}};if(this.isVirtualScroll){var D={class:this.trClass,props:{tagName:"tr",id:this.currentRowKey},attrs:tr({},Vt,this.currentRowKey),on:{"on-dom-resize-change":function(t){var n=t.key,r=t.height;e.dispatch(Pt,Qe,{rowKey:n,height:r})}},nativeOn:E};v=t(Wn,D,[y()])}else{var I={class:this.trClass,attrs:tr({},Vt,this.currentRowKey),on:E};v=t("tr",I,[y()])}return v}};function rr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ir={name:"VeTableBodyTrScrolling",props:{colgroups:{type:Array,required:!0}},computed:{trClass:function(){var e;return rr(e={},Xt("body-tr"),!0),rr(e,Xt("body-row-scrolling"),!0),e}},render:function(){var e=arguments[0],t=this.colgroups;return e("tr",{class:this.trClass},[e("td",{attrs:{colSpan:t.length}})])}},or={name:"VeTableExpandTr",mixins:[Rn],props:{tableViewportWidth:{type:Number,default:0},expandColumn:{type:Object,default:function(){return null}},colgroups:{type:Array,required:!0},expandOption:{type:Object,default:function(){return null}},expandedRowkeys:{type:Array,default:function(){return[]}},rowData:{type:Object,required:!0},rowIndex:{type:Number,required:!0},rowKeyFieldName:{type:String,default:null}},computed:{columnCount:function(){return this.colgroups.length},currentRowKey:function(){return this.rowData[this.rowKeyFieldName]},isRowExpanded:function(){var e=!1,t=this.expandOption,n=this.expandedRowkeys,r=this.currentRowKey;return(t.defaultExpandAllRows||n.includes(r))&&(e=!0),e},expanRowClass:function(){var e,t;return e={},!0,(t=Xt("expand-tr"))in e?Object.defineProperty(e,t,{value:!0,enumerable:!0,configurable:!0,writable:!0}):e[t]=!0,e},hasLeftFixedColumn:function(){return this.colgroups.some(function(e){return"left"===e.fixed})},expandTdContentStyle:function(){var e={},t=this.hasLeftFixedColumn,n=this.tableViewportWidth;return t&&n&&(e.width=n+"px"),e}},methods:{getExpandRowContent:function(e){var t=this.expandOption;return t.render&&t.render({row:this.rowData,column:this.expandColumn,rowIndex:this.rowIndex},e)}},render:function(e){var t=this.isRowExpanded,n=this.columnCount,r=this.getExpandRowContent,i=null;if(t){var o=r(e);i=e("tr",{class:this.expanRowClass},[e("td",{class:Xt("expand-td"),attrs:{colSpan:n}},[e("div",{class:Xt("expand-td-content"),style:this.expandTdContentStyle},[o])])])}return i}};function ar(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sr={name:Nt,mixins:[Rn],props:{tableViewportWidth:{type:Number,default:0},columnsOptionResetTime:{type:Number,default:0},colgroups:{type:Array,required:!0},actualRenderTableData:{type:Array,required:!0},hasFixedColumn:{type:Boolean,default:!1},allRowKeys:{type:Array,required:!0},expandOption:{type:Object,default:function(){return null}},checkboxOption:{type:Object,default:function(){return null}},radioOption:{type:Object,default:function(){return null}},virtualScrollOption:{type:Object,default:null},isVirtualScroll:{type:Boolean,default:!1},showVirtualScrollingPlaceholder:{type:Boolean,default:!1},rowKeyFieldName:{type:String,default:null},cellStyleOption:{type:Object,default:function(){return null}},cellSpanOption:{type:Object,default:function(){return null}},highlightRowKey:{type:[String,Number],default:null},eventCustomOption:{type:Object,default:function(){return null}},cellSelectionOption:{type:Object,default:function(){return null}},cellSelectionData:{type:Object,default:function(){return null}},cellSelectionRangeData:{type:Object,default:function(){return null}},bodyIndicatorRowKeys:{type:Object,default:function(){return null}},editOption:{type:Object,default:function(){return null}}},data:function(){return{colsWidths:new Map,internalExpandRowkeys:[],internalCheckboxSelectedRowKeys:[],internalRadioSelectedRowKey:null,virtualScrollPreviewRenderedRowKeys:[],virtualScrollRepeatRenderedRowKeys:[]}},computed:{columnCollection:function(){var e=this,t=[],n=this.colgroups;return n.forEach(function(r){var i,o=r.key,a={colKey:o,class:(i={},ar(i,Xt("last-left-fixed-column"),e.isLastLeftFixedColumn(r)),ar(i,Xt("first-right-fixed-column"),e.isfirstRightFixedColumn(r)),i),style:{}},s=r.fixed,l=r.align;if(a.style["text-align"]=l||"center",s){var c=0,u=n.findIndex(function(e){return e.key===o});("left"===s&&u>0||"right"===s&&u<n.length-1)&&(c=d(c=nn({colgroups:n,colKey:o,fixed:s}))),a.style.left="left"===s?c:"",a.style.right="right"===s?c:""}t.push(a)}),t},expandColumn:function(){return this.colgroups.find(function(e){return e.type===Be})},isControlledExpand:function(){return this.expandOption&&Array.isArray(this.expandOption.expandedRowKeys)},expandedRowkeys:function(){return this.isControlledExpand?this.expandOption.expandedRowKeys:this.internalExpandRowkeys},disableCheckboxSelectedRowKeys:function(){var e=[],t=this.checkboxOption,n=this.internalCheckboxSelectedRowKeys;if(!t)return e;var r=t.disableSelectedRowKeys;return n.length>0&&Array.isArray(r)&&r.length>0&&r.forEach(function(t){n.includes(t)&&e.push(t)}),e},disableCheckboxUnselectedRowKeys:function(){var e=[],t=this.checkboxOption,n=this.internalCheckboxSelectedRowKeys;if(!t)return e;var r=t.disableSelectedRowKeys;return Array.isArray(r)&&r.length>0&&r.forEach(function(t){n.includes(t)||e.push(t)}),e},isCheckboxSelectedAll:function(){return this.allRowKeys.length>0&&this.internalCheckboxSelectedRowKeys.length+this.disableCheckboxUnselectedRowKeys.length===this.allRowKeys.length},isCheckboxIndeterminate:function(){var e=this.internalCheckboxSelectedRowKeys,t=this.allRowKeys;return e.length>0&&e.length<t.length},isControlledRadio:function(){var e=this.radioOption;return e&&Object.keys(e).includes("selectedRowKey")}},watch:{expandOption:{handler:function(){this.initInternalExpandRowKeys()},immediate:!0},"expandOption.expandedRowKeys":{handler:function(){this.initInternalExpandRowKeys()}},checkboxOption:{handler:function(){this.initInternalCheckboxSelectedRowKeys()},immediate:!0},"checkboxOption.selectedRowKeys":{handler:function(){this.resetInternalCheckboxSelectedRowKeys()}},internalCheckboxSelectedRowKeys:{handler:function(){this.sendToCheckboxAll()}},radioOption:{handler:function(){this.initInternalRadioSelectedRowKey()},immediate:!0},"radioOption.selectedRowKey":{handler:function(){this.initInternalRadioSelectedRowKey()}}},methods:{isLastLeftFixedColumn:function(e){var t=!1,n=this.colgroups;if("left"===e.fixed){var r=e.field,i=n.filter(function(e){return"left"===e.fixed});i.findIndex(function(e){return e.field===r})===i.length-1&&(t=!0)}return t},isfirstRightFixedColumn:function(e){var t=!1,n=this.colgroups;if("right"===e.fixed){var r=e.field;n.filter(function(e){return"right"===e.fixed})[0].field===r&&(t=!0)}return t},expandRowChange:function(e,t){var n=this.expandOption,r=this.internalExpandRowkeys,i=this.expandedRowkeys,o=this.rowKeyFieldName;if("function"==typeof n.beforeExpandRowChange&&!1===n.beforeExpandRowChange({beforeExpandedRowKeys:i,row:e,rowIndex:t}))return!1;var a=e[o],s=r.indexOf(a);s>-1?r.splice(s,1):r.push(a),"function"==typeof n.afterExpandRowChange&&n.afterExpandRowChange({afterExpandedRowKeys:r,row:e,rowIndex:t})},rowClick:function(e){var t=e.rowData,n=e.rowIndex,r=this.expandOption,i=this.isExpandRow,o=this.expandRowChange,a=this.rowKeyFieldName;if(a){var s=t[a];this.$emit(kt,{rowKey:s})}if(!i({rowData:t,rowIndex:n}))return!1;"row"===r.trigger&&o(t,n)},isExpandRow:function(e){var t=e.rowData,n=e.rowIndex,r=!1,i=this.expandColumn,o=this.expandOption;if(i&&o){var a=!0;"function"==typeof o.expandable&&(a=o.expandable({row:t,column:i,rowIndex:n})),!1!==a&&(r=!0)}return r},tdSizeChange:function(e){var t=e.key,n=e.width,r=this.colsWidths;r.set(t,n),this.$emit(Ye,r)},initInternalExpandRowKeys:function(){var e=this.expandOption,t=this.isControlledExpand,n=this.allRowKeys;if(!e)return!1;t?this.internalExpandRowkeys=e.expandedRowKeys.slice(0):e.defaultExpandAllRows?this.internalExpandRowkeys=n:e.defaultExpandedRowKeys&&(this.internalExpandRowkeys=e.defaultExpandedRowKeys.slice(0))},getExpandRowComp:function(e){var t=e.rowData,n=e.rowIndex,r=this.$createElement;if(this.isExpandRow({rowData:t,rowIndex:n})){var i={props:{tableViewportWidth:this.tableViewportWidth,colgroups:this.colgroups,expandOption:this.expandOption,expandedRowkeys:this.expandedRowkeys,expandColumn:this.expandColumn,rowKeyFieldName:this.rowKeyFieldName,rowData:t,rowIndex:n}};return r(or,i)}return null},sendToCheckboxAll:function(){var e=this.isCheckboxSelectedAll,t=this.isCheckboxIndeterminate;this.dispatch(Pt,dt,{isIndeterminate:t,isSelected:e})},initInternalRadioSelectedRowKey:function(){var e=this.radioOption,t=this.isControlledRadio;if(!e)return!1;var n=e.selectedRowKey,r=e.defaultSelectedRowKey;this.internalRadioSelectedRowKey=t?n:r},initInternalCheckboxSelectedRowKeys:function(){var e=[],t=this.checkboxOption,n=this.allRowKeys;if(!t)return!1;var r=t.selectedRowKeys,i=t.defaultSelectedAllRows,o=t.defaultSelectedRowKeys;Array.isArray(r)?e=r:i?e=n:Array.isArray(o)&&(e=o),this.internalCheckboxSelectedRowKeys=e},resetInternalCheckboxSelectedRowKeys:function(){this.internalCheckboxSelectedRowKeys=this.checkboxOption.selectedRowKeys.slice(0)},checkboxSelectedRowChange:function(e){var t=e.rowKey,n=e.isSelected,r=this.checkboxOption,i=this.internalCheckboxSelectedRowKeys,o=this.rowKeyFieldName,a=r.selectedRowChange,s=r.selectedRowKeys,l=i.slice(0),c=l.indexOf(t);n?-1===c&&l.push(t):c>-1&&l.splice(c,1),Array.isArray(s)||(this.internalCheckboxSelectedRowKeys=l),a({row:this.actualRenderTableData.find(function(e){return e[o]===t}),isSelected:n,selectedRowKeys:l})},checkboxSelectedAllChange:function(e){var t=e.isSelected,n=this.checkboxOption,r=this.internalCheckboxSelectedRowKeys,i=this.allRowKeys,o=this.disableCheckboxSelectedRowKeys,a=this.disableCheckboxUnselectedRowKeys,s=n.selectedAllChange,l=n.selectedRowKeys,c=r.slice(0);if(t){var u=i.slice(0);a.length>0&&a.forEach(function(e){var t=u.indexOf(e);t>-1&&u.splice(t,1)}),c=u}else c=o;Array.isArray(l)||(this.internalCheckboxSelectedRowKeys=c),s&&s({isSelected:t,selectedRowKeys:c})},radioSelectedRowChange:function(e){var t=e.rowKey,n=this.radioOption,r=this.rowKeyFieldName,i=this.isControlledRadio,o=n.selectedRowChange;i||(this.internalRadioSelectedRowKey=t),o({row:this.actualRenderTableData.find(function(e){return e[r]===t})})},getTrKey:function(e){var t=e.rowData,n=e.rowIndex,r=this.rowKeyFieldName;return r&&(n=t[r]),n},renderingRowKeys:function(e){var t=this.virtualScrollPreviewRenderedRowKeys;this.virtualScrollRepeatRenderedRowKeys=e.filter(function(e){return-1!=t.indexOf(e)}),this.virtualScrollPreviewRenderedRowKeys=e}},mounted:function(){var e=this;this.$on(ct,function(t){e.checkboxSelectedRowChange(t)}),this.$on(ut,function(t){e.checkboxSelectedAllChange(t)}),this.$on(ft,function(t){e.radioSelectedRowChange(t)}),this.$on(et,function(t){e.rowClick(t)}),this.checkboxOption&&this.$nextTick(function(){e.sendToCheckboxAll()}),document.addEventListener("keydown",this.dealKeydownEvent)},destroyed:function(){document.removeEventListener("keydown",this.dealKeydownEvent)},render:function(){var e=this,t=arguments[0],n=this.colgroups,r=this.actualRenderTableData,i=this.expandOption,o=this.expandRowChange,a=this.isExpandRow,s=this.getExpandRowComp,l=this.expandedRowkeys,c=this.checkboxOption,u=this.radioOption,d=this.rowKeyFieldName,f=this.tdSizeChange,h=this.internalCheckboxSelectedRowKeys,p=this.internalRadioSelectedRowKey,m=this.isVirtualScroll,y=this.cellStyleOption,v=this.showVirtualScrollingPlaceholder,g=this.virtualScrollRepeatRenderedRowKeys;return t("tbody",[t("tr",{style:"height:0;"},[n.map(function(n){var r={key:tn(n.key,e.columnsOptionResetTime),props:{tagName:"td",id:n.key},on:{"on-dom-resize-change":f},style:{padding:0,border:0,height:0}};return t(Wn,r)})]),r.map(function(r,f){var b={key:e.getTrKey({rowData:r,rowIndex:f}),props:{rowIndex:f,rowData:r,colgroups:n,expandOption:i,expandedRowkeys:l,checkboxOption:c,radioOption:u,rowKeyFieldName:d,allRowKeys:e.allRowKeys,expandRowChange:o,internalCheckboxSelectedRowKeys:h,internalRadioSelectedRowKey:p,isVirtualScroll:m,isExpandRow:a({rowData:r,rowIndex:f}),cellStyleOption:y,cellSpanOption:e.cellSpanOption,highlightRowKey:e.highlightRowKey,eventCustomOption:e.eventCustomOption,cellSelectionData:e.cellSelectionData,editOption:e.editOption,columnCollection:e.columnCollection,cellSelectionRangeData:e.cellSelectionRangeData,bodyIndicatorRowKeys:e.bodyIndicatorRowKeys}};if(v){var _={key:e.getTrKey({rowData:r,rowIndex:f}),props:{colgroups:n}};return-1!=g.indexOf(r[e.rowKeyFieldName])?[t(nr,b)]:t(ir,_)}return[t(nr,b),s({rowData:r,rowIndex:f})]})])}};function lr(e){return(lr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var cr={name:Kt,mixins:[Rn],props:{rowData:{type:Object,required:!0},column:{type:Object,required:!0},rowIndex:{type:Number,required:!0},colgroups:{type:Array,required:!0},rowKeyFieldName:{type:String,default:null},cellSpanOption:{type:Object,default:function(){return null}},cellStyleOption:{type:Object,default:function(){return null}},eventCustomOption:{type:Object,default:function(){return null}},cellSelectionData:{type:Object,default:function(){return null}},footerRows:{type:Array,default:function(){return[]}},fixedFooter:{type:Boolean,default:!0}},computed:{isLastLeftFixedColumn:function(){var e=!1,t=this.colgroups,n=this.column;if("left"===n.fixed){var r=n.field,i=t.filter(function(e){return"left"===e.fixed});i.findIndex(function(e){return e.field===r})===i.length-1&&(e=!0)}return e},isfirstRightFixedColumn:function(){var e=!1,t=this.colgroups,n=this.column;if("right"===n.fixed){var r=n.field;t.filter(function(e){return"right"===e.fixed})[0].field===r&&(e=!0)}return e}},methods:{getBodyTdClass:function(e){var t,n,r=e.fixed,i=(t={},!0,(n=Xt("footer-td"))in t?Object.defineProperty(t,n,{value:!0,enumerable:!0,configurable:!0,writable:!0}):t[n]=!0,t),o=this.cellStyleOption,a=this.rowData,s=this.column,l=this.rowIndex,c=this.cellSelectionData,u=this.rowKeyFieldName;if(r&&(i[Xt("fixed-left")]="left"===r,i[Xt("fixed-right")]="right"===r,i[Xt("last-left-fixed-column")]=this.isLastLeftFixedColumn,i[Xt("first-right-fixed-column")]=this.isfirstRightFixedColumn),o&&"function"==typeof o.footerCellClass){var d=o.footerCellClass({row:a,column:s,rowIndex:l});d&&(i[d]=!0)}if(c){var f=c.currentCell,h=f.rowKey,p=f.colKey;a[u]===h&&s.key===p&&(i[Xt("cell-selection")]=!0)}return i},getBodyTdStyle:function(e){var t=e.key,n=e.align,r=e.fixed,i={},o=this.colgroups,a=this.rowIndex,s=this.footerRows;if(i["text-align"]=n||"center",r){var l=0,c=o.findIndex(function(e){return e.key===t});("left"===r&&c>0||"right"===r&&c<o.length-1)&&(l=d(l=nn({colgroups:o,colKey:t,fixed:r}))),i.left="left"===r?l:"",i.right="right"===r?l:""}if(this.fixedFooter){var u=0;a!==s.length-1&&(u=s.reduce(function(e,t,n){return n>a?t.rowHeight+e:e},0)),u=d(u),i.bottom=u}return i},getRenderContent:function(e){var t=this.column,n=this.rowData,r=this.rowIndex;return"function"==typeof t.renderFooterCell?t.renderFooterCell({row:n,column:t,rowIndex:r},e):n[t.field]},getCellSpan:function(){var e=this.cellSpanOption,t=this.rowData,n=this.column,r=this.rowIndex,i=1,o=1;if(e){var a=e.footerCellSpan;if("function"==typeof a){var s=a({row:t,column:n,rowIndex:r});"object"===lr(s)&&(i=s.rowspan,o=s.colspan)}}return{rowspan:i,colspan:o}},cellClick:function(e,t){t&&t(e)},cellDblclick:function(e,t){t&&t(e)},cellContextmenu:function(e,t){t&&t(e)},cellMouseenter:function(e,t){t&&t(e)},cellMouseleave:function(e,t){t&&t(e)},cellMousemove:function(e,t){t&&t(e)},cellMouseover:function(e,t){t&&t(e)},cellMousedown:function(e,t){t&&t(e)},cellMouseup:function(e,t){t&&t(e)}},render:function(e){var t=this,n=this.column,r=this.rowData,i=this.rowIndex,o=this.eventCustomOption,a=this.getCellSpan(),s=a.rowspan,l=a.colspan;if(!s||!l)return null;var c={};if(o){var u=o.footerCellEvents;c=u?u({row:r,column:n,rowIndex:i}):{}}var d=c,f=d.click,h=d.dblclick,p=d.contextmenu,m=d.mouseenter,y=d.mouseleave,v=d.mousemove,g=d.mouseover,b=d.mousedown,_=d.mouseup,k={click:function(e){t.cellClick(e,f)},dblclick:function(e){t.cellDblclick(e,h)},contextmenu:function(e){t.cellContextmenu(e,p)},mouseenter:function(e){t.cellMouseenter(e,m)},mouseleave:function(e){t.cellMouseleave(e,y)},mousemove:function(e){t.cellMousemove(e,v)},mouseover:function(e){t.cellMouseover(e,g)},mousedown:function(e){t.cellMousedown(e,b)},mouseup:function(e){t.cellMouseup(e,_)}};return e("td",{class:this.getBodyTdClass(n),style:this.getBodyTdStyle(n),attrs:{rowspan:s,colspan:l},on:k},[this.getRenderContent(e)])}};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}var dr,fr={name:Ft,mixins:[Rn],props:{rowData:{type:Object,required:!0},rowIndex:{type:Number,required:!0},colgroups:{type:Array,required:!0},rowKeyFieldName:{type:String,default:null},cellStyleOption:{type:Object,default:function(){return null}},cellSpanOption:{type:Object,default:function(){return null}},eventCustomOption:{type:Object,default:function(){return null}},cellSelectionData:{type:Object,default:function(){return null}},footerRows:{type:Array,default:function(){return[]}},fixedFooter:{type:Boolean,default:!0}},computed:{currentRowKey:function(){var e=this.rowKeyFieldName;return e?this.rowData[e]:null},trClass:function(){return ur({},Xt("footer-tr"),!0)}},methods:{trHeightChange:function(e){var t=e.height;this.dispatch(Pt,Je,{rowIndex:this.rowIndex,height:t})},rowClick:function(e,t){t&&t(e)},rowDblclick:function(e,t){t&&t(e)},rowContextmenu:function(e,t){t&&t(e)},rowMouseenter:function(e,t){t&&t(e)},rowMouseleave:function(e,t){t&&t(e)},rowMousemove:function(e,t){t&&t(e)},rowMouseover:function(e,t){t&&t(e)},rowMousedown:function(e,t){t&&t(e)},rowMouseup:function(e,t){t&&t(e)}},render:function(){var e=this,t=arguments[0],n=this.colgroups,r=this.rowKeyFieldName,i=this.rowIndex,o=this.rowData,a=this.cellStyleOption,s=this.eventCustomOption,l={};if(s){var c=s.footerRowEvents;l=c?c({row:o,rowIndex:i}):{}}var u=l,d=u.click,f=u.dblclick,h=u.contextmenu,p=u.mouseenter,m=u.mouseleave,y=u.mousemove,v=u.mouseover,g=u.mousedown,b=u.mouseup,_={click:function(t){e.rowClick(t,d)},dblclick:function(t){e.rowDblclick(t,f)},contextmenu:function(t){e.rowContextmenu(t,h)},mouseenter:function(t){e.rowMouseenter(t,p)},mouseleave:function(t){e.rowMouseleave(t,m)},mousemove:function(t){e.rowMousemove(t,y)},mouseover:function(t){e.rowMouseover(t,v)},mousedown:function(t){e.rowMousedown(t,g)},mouseup:function(t){e.rowMouseup(t,b)}},k={class:this.trClass,props:{tagName:"tr"},attrs:ur({},Vt,this.currentRowKey),nativeOn:_,on:{"on-dom-resize-change":this.trHeightChange}};return t(Wn,k,[n.map(function(s){var l={key:s.key,props:{rowIndex:i,rowData:o,column:s,colgroups:n,rowKeyFieldName:r,cellStyleOption:a,cellSelectionData:e.cellSelectionData,footerRows:e.footerRows,fixedFooter:e.fixedFooter,cellSpanOption:e.cellSpanOption,eventCustomOption:e.eventCustomOption}};return t(cr,l)})])}},hr={name:"VeTableFooter",props:{colgroups:{type:Array,required:!0},footerData:{type:Array,required:!0},hasFixedColumn:{type:Boolean,default:!1},allRowKeys:{type:Array,required:!0},rowKeyFieldName:{type:String,default:null},cellStyleOption:{type:Object,default:function(){return null}},eventCustomOption:{type:Object,default:function(){return null}},footerRows:{type:Array,default:function(){return[]}},fixedFooter:{type:Boolean,default:!0},cellSpanOption:{type:Object,default:function(){return null}}},computed:{footerClass:function(){return e={},t=Xt("fixed-footer"),n=this.fixedFooter,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},methods:{getTrKey:function(e){var t=e.rowData,n=e.rowIndex,r=this.rowKeyFieldName;return r&&(n=t[r]),n}},render:function(){var e=this,t=arguments[0],n=this.colgroups,r=this.rowKeyFieldName,i=this.cellStyleOption;return t("tfoot",{class:this.footerClass},[this.footerData.map(function(o,a){var s={key:e.getTrKey({rowData:o,rowIndex:a}),props:{rowIndex:a,rowData:o,colgroups:n,rowKeyFieldName:r,cellStyleOption:i,footerRows:e.footerRows,fixedFooter:e.fixedFooter,cellSpanOption:e.cellSpanOption,eventCustomOption:e.eventCustomOption}};return t(fr,s)})])}},pr="textareaSelect";function mr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yr,vr={name:"VeTableEditInput",directives:{focus:{bind:function(e,t,n){var r=t.value;if(r){var i=r.focus,o=r.select;n.context.$nextTick(function(){i&&e.focus(),o&&e.select()})}},update:function(e,t){var n=t.value;n&&n.focus&&e.focus()}}},mixins:[Rn],props:{parentRendered:{type:Boolean,required:!0},hooks:{type:Object,required:!0},inputStartValue:{type:[String,Number],required:!0},rowKeyFieldName:{type:String,default:null},tableData:{type:Array,required:!0},colgroups:{type:Array,required:!0},cellSelectionData:{type:Object,required:!0},editingCell:{type:Object,required:!0},isCellEditing:{type:Boolean,required:!0},hasXScrollBar:{type:Boolean,required:!0},hasYScrollBar:{type:Boolean,required:!0},hasRightFixedColumn:{type:Boolean,required:!0},scrollBarWidth:{type:Number,required:!0}},data:function(){return{textareaInputRef:"textareaInputRef",rawCellValue:"",displayTextarea:!1,overflowViewport:!1,textareaRect:{left:0,top:0},tableEl:null,cellEl:null,autoResize:null,isEditCellFocus:!1}},computed:{currentColumn:function(){var e=null,t=this.colgroups,n=this.cellSelectionData.currentCell;return s(n.rowKey)||s(n.colKey)||(e=t.find(function(e){return e.key===n.colKey})),e},containerClass:function(){var e,t=this.displayTextarea,n=this.overflowViewport;return mr(e={},Xt("edit-input-container"),!0),mr(e,Xt("edit-input-container-show"),t&&!n),e},containerStyle:function(){var e=this.displayTextarea,t=this.overflowViewport,n=this.textareaRect,r=this.currentColumn,i=n.top,o=n.left;return e&&!t?{top:i+"px",left:o+"px",height:null,"z-index":r.fixed?10:0,opacity:1}:{top:i+"px",left:o+"px",height:"1px","z-index":-1,opacity:0}},textareaClass:function(){return mr({},Xt("edit-input"),!0)}},watch:{parentRendered:{handler:function(e){var t=this;e&&(this.setTableEl(),this.hooks.addHook(Et,function(){t.displayTextarea&&(t.cellEl||t.setCellEl()),t.debounceSetCellEl(),t.setTextareaPosition(),t.debounceSetTextareaPosition()}),this.hooks.addHook(Dt,function(){t.setTextareaPosition()}))},immediate:!0},"cellSelectionData.currentCell":{handler:function(e){var t=this;this.isEditCellFocus=!1;var n=e.rowKey,r=e.colKey;s(n)||s(r)||(this.setCellEl(),this.$nextTick(function(){t.setTextareaPosition(),setTimeout(function(){t.isEditCellFocus=!0})}))},deep:!0,immediate:!0},"cellSelectionData.normalEndCell":{handler:function(e){s(e.colKey)||this[pr]()},deep:!0,immediate:!0},isCellEditing:{handler:function(e){e?this.showTextarea():this.hideTextarea()},deep:!0,immediate:!0},inputStartValue:{handler:function(){this.setRawCellValue()},immediate:!0}},methods:(dr={setTableEl:function(){var e=this;this.$nextTick(function(){var t=e.$el.previousElementSibling;e.tableEl=t})},setCellEl:function(){var e=this.cellSelectionData,t=this.tableEl,n=e.currentCell,r=n.rowKey,i=n.colKey;if(t){var o=t.querySelector('tbody.ve-table-body tr[row-key="'.concat(r,'"] td[col-key="').concat(i,'"]'));o&&(this.cellEl=o,this.overflowViewport=!1)}},setTextareaPosition:function(){var e=this.hasXScrollBar,t=this.hasYScrollBar,n=this.scrollBarWidth,r=this.colgroups,i=this.hasRightFixedColumn,o=this.currentColumn,a=this.cellEl,s=this.tableEl;if(a&&s){var l=s.getBoundingClientRect(),c=l.left,u=l.top,d=l.right,f=l.bottom,h=a.getBoundingClientRect(),p=h.left,m=h.top,y=h.height,v=h.width,g=h.right,b=h.bottom;if(y&&v){var _=y+f-b,k=v+d-g;if(e&&(_-=n),t&&(k-=n),i&&o&&!o.fixed){var w=nn({colgroups:r,colKey:o.key,fixed:"right"});w&&(k-=w)}this.autoResize.init(this.$refs[this.textareaInputRef],{minHeight:Math.min(y,_),maxHeight:_,minWidth:Math.min(v,k),maxWidth:k},!0),this.textareaRect={left:p-c,top:m-u}}else this.textareaRect={left:0,top:0},this.cellEl=null,this.overflowViewport=!0}},showTextarea:function(){this.setRawCellValue(),this.displayTextarea=!0},hideTextarea:function(){this.displayTextarea=!1,this.textareaUnObserve()},textareaUnObserve:function(){this.autoResize&&this.autoResize.unObserve()},setRawCellValue:function(){this.rawCellValue=this.inputStartValue},textareaValueChange:function(e){this.$emit(xt,e)}},mr(dr,pr,function(){var e=this.$refs[this.textareaInputRef];e&&e.select()}),mr(dr,"textareaAddNewLine",function(){var e=this.isCellEditing,t=this.editingCell;if(e){var n=this.$refs[this.textareaInputRef],r=function(e){var t=document;if(e.selectionStart)return e.selectionStart;if(t.selection){e.focus();var n=t.selection.createRange();if(null===n)return 0;var r=e.createTextRange(),i=r.duplicate();return r.moveToBookmark(n.getBookmark()),i.setEndPoint("EndToStart",r),i.text.length}return 0}(n),i=t.row[t.colKey],o="".concat((i+="").slice(0,r),"\n").concat(i.slice(r));n.value=o,this.textareaValueChange(o),function(e,t,n){if(void 0===n&&(n=t),e.setSelectionRange){e.focus();try{e.setSelectionRange(t,n)}catch(o){var r=e.parentNode,i=r.style.display;r.style.display="block",e.setSelectionRange(t,n),r.style.display=i}}}(n,r+1)}}),dr),created:function(){var e=this;this.debounceSetTextareaPosition=Object(P.debounce)(this.setTextareaPosition,210),this.debounceSetCellEl=Object(P.debounce)(function(){e.displayTextarea&&(e.cellEl||e.setCellEl())},200)},mounted:function(){this.autoResize=function(){var e,t={minHeight:200,maxHeight:300,minWidth:100,maxWidth:300,paddingWidth:16},n=document.body,r=document.createTextNode(""),i=document.createElement("SPAN"),o=function(e,t,n){e.addEventListener(t,n,!1)},a=function(e,t,n){e.removeEventListener(t,n,!1)},s=function(o){var a,s;o?/^[a-zA-Z \.,\\\/\|0-9]$/.test(o)||(o="."):o="",void 0!==r.textContent?r.textContent=e.value+o:r.data=e.value+o,i.style.fontSize=u(e).fontSize,i.style.fontFamily=u(e).fontFamily,i.style.whiteSpace="pre",n.appendChild(i),a=i.clientWidth+t.paddingWidth,n.removeChild(i),e.style.height=t.minHeight+"px",t.minWidth>a?e.style.width=t.minWidth+"px":a>t.maxWidth?e.style.width=t.maxWidth+"px":e.style.width=a+"px",s=e.scrollHeight?e.scrollHeight-1:0,t.minHeight>s?e.style.height=t.minHeight+"px":t.maxHeight<s?(e.style.height=t.maxHeight+"px",e.style.overflowY="visible"):e.style.height=s+"px"},l=function(){window.setTimeout(s,0)},c=function(n,a,c){e=n,function(n){if(n&&n.minHeight)if("inherit"==n.minHeight)t.minHeight=e.clientHeight;else{var o=parseInt(n.minHeight);isNaN(o)||(t.minHeight=o)}if(n&&n.maxHeight)if("inherit"==n.maxHeight)t.maxHeight=e.clientHeight;else{var a=parseInt(n.maxHeight);isNaN(a)||(t.maxHeight=a)}if(n&&n.minWidth)if("inherit"==n.minWidth)t.minWidth=e.clientWidth;else{var s=parseInt(n.minWidth);isNaN(s)||(t.minWidth=s)}if(n&&n.maxWidth)if("inherit"==n.maxWidth)t.maxWidth=e.clientWidth;else{var l=parseInt(n.maxWidth);isNaN(l)||(t.maxWidth=l)}i.firstChild||(i.className="autoResize",i.style.display="inline-block",i.appendChild(r))}(a),"TEXTAREA"==e.nodeName&&(e.style.resize="none",e.style.overflowY="",e.style.height=t.minHeight+"px",e.style.minWidth=t.minWidth+"px",e.style.maxWidth=t.maxWidth+"px",e.style.overflowY="hidden"),c&&(o(e,"change",s),o(e,"cut",l),o(e,"paste",l),o(e,"drop",l),o(e,"keydown",l),o(e,"focus",s),o(e,"compositionstart",l),o(e,"compositionupdate",l),o(e,"compositionend",l)),s()};function u(e){return e.currentStyle||document.defaultView.getComputedStyle(e)}return{init:function(e,t,n){c(e,t,n)},unObserve:function(){if(!e)return!1;a(e,"change",s),a(e,"cut",l),a(e,"paste",l),a(e,"drop",l),a(e,"keydown",l),a(e,"focus",s),a(e,"compositionstart",l),a(e,"compositionupdate",l),a(e,"compositionend",l)},resize:s}}()},destroyed:function(){this.textareaUnObserve()},render:function(){var e=this,t=arguments[0],n=this.containerClass,r=this.containerStyle,i=this.textareaClass,o=this.rawCellValue,a=this.isCellEditing,s=this.isEditCellFocus;return t("div",{style:r,class:n},[t("textarea",{ref:this.textareaInputRef,class:i,directives:[{name:"focus",value:{focus:s}}],domProps:{value:o},attrs:{tabindex:-1},on:{input:function(t){a&&(e.textareaValueChange(t.target.value),e.rawCellValue=t.target.value)},click:function(){e.$emit(wt)},copy:function(t){e.$emit(Ct,t)},paste:function(t){e.$emit(St,t)},cut:function(t){e.$emit(At,t)}}})])}},gr="clearCurrentCellRect",br="clearNormalEndCellRect";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 kr(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){wr(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 wr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xr={name:"VeTableSelection",mixins:[Rn],props:{tableEl:{type:HTMLTableElement,default:null},allRowKeys:{type:Array,required:!0},colgroups:{type:Array,required:!0},parentRendered:{type:Boolean,required:!0},hooks:{type:Object,required:!0},cellAutofillOption:{type:[Object,Boolean],default:function(){return null}},cellSelectionData:{type:Object,required:!0},cellSelectionRangeData:{type:Object,required:!0},isAutofillStarting:{type:Boolean,required:!0},currentCellSelectionType:{type:String,default:""},showVirtualScrollingPlaceholder:{type:Boolean,default:!1},isVirtualScroll:{type:Boolean,default:!1},virtualScrollVisibleIndexs:{type:Object,required:!0},isCellEditing:{type:Boolean,default:!1}},data:function(){return{currentCellEl:null,normalEndCellEl:null,autoFillEndCellEl:null,cellSelectionRect:{currentCellRect:{left:0,top:0,width:0,height:0},normalEndCellRect:{left:0,top:0,width:0,height:0},autoFillEndCellRect:{left:0,top:0,width:0,height:0}}}},computed:{selectionBordersVisibility:function(){var e=!0;if(this.isVirtualScroll){var t=this.showVirtualScrollingPlaceholder,n=this.cellSelectionData,r=this.virtualScrollVisibleIndexs,i=this.currentCellSelectionType;if(t)e=!1;else{var o=n.currentCell,a=n.normalEndCell;i===Ge&&(o.rowIndex<r.start||o.rowIndex>r.end)&&(e=!1),i===Ze&&(o.rowIndex<r.start&&a.rowIndex<r.start||o.rowIndex>r.end&&a.rowIndex>r.end)&&(e=!1)}}return e},showCorner:function(){var e=!0;if(this.cellAutofillOption){var t=this.cellAutofillOption,n=t.directionX,r=t.directionY;c(r)&&!r&&c(n)&&!n&&(e=!1)}else e=!1;return e},cornerCellInfo:function(){var e=this.allRowKeys,t=this.colgroups,n=this.cellSelectionRangeData,r=n.rightColKey,i=n.bottomRowKey,o=!1;if(function(e,t){return!s(e)&&!a(t)&&t[t.length-1].key===e}(r,t))o=!0;else{var l=t.findIndex(function(e){return e.key===r});t[l+1].fixed===Ke&&t[l].fixed!==Ke&&(o=!0)}var c=!1;return function(e,t){return!s(e)&&!a(t)&&t[t.length-1]===e}(i,e)&&(c=!0),{isLastColumn:o,isLastRow:c}},isFirstSelectionRow:function(){var e=this.allRowKeys,t=this.cellSelectionRangeData;return e[0]===t.topRowKey},isFirstSelectionCol:function(){var e=this.colgroups,t=this.cellSelectionRangeData;return e[0].key===t.leftColKey},isFirstNotFixedSelectionCol:function(){var e=!1,t=this.colgroups,n=this.cellSelectionRangeData;if(t.find(function(e){return"left"===e.fixed})){var r=t.find(function(e){return!e.fixed});r&&r.field===n.leftColKey&&(e=!0)}return e}},watch:{parentRendered:{handler:function(e){var t=this;e&&(this.hooks.addHook(Et,function(){t.setCellEls(),t.debounceSetCellEls(),t.resetCellPositions(),t.debounceResetCellPositions()}),this.hooks.addHook(Dt,function(){t.debounceResetCellPositions()}),this.hooks.addHook(It,function(){t.$nextTick(function(){t.resetCellPositions()})}),this.hooks.addHook(Rt,function(){t.$nextTick(function(){t.resetCellPositions()})}))},immediate:!0},"cellSelectionData.currentCell":{handler:function(e){var t=e.rowKey,n=e.colKey;s(t)||s(n)?this[gr]():(this.setCurrentCellEl(),this.setSelectionPositions({type:"currentCell"})),this.setCellSelectionRangeData()},deep:!0,immediate:!0},"cellSelectionData.normalEndCell":{handler:function(e){var t=e.rowKey,n=e.colKey;s(t)||s(n)?this[br]():(this.setNormalEndCellEl(),this.setSelectionPositions({type:"normalEndCell"})),this.setCellSelectionRangeData()},deep:!0,immediate:!0},"cellSelectionData.autoFillEndCell":{handler:function(e){var t=e.rowKey,n=e.colKey;s(t)||s(n)?this.clearAutofillEndCellRect():(this.setAutofillEndCellEl(),this.setSelectionPositions({type:"autoFillEndCell"}))},deep:!0,immediate:!0}},methods:(yr={resetCellPositions:function(){var e=this.cellSelectionData,t=e.currentCell,n=e.normalEndCell;s(t.rowKey)||s(t.colKey)||this.setSelectionPositions({type:"currentCell"}),s(n.rowKey)||s(n.colKey)||this.setSelectionPositions({type:"normalEndCell"})},setCellEls:function(){this.isVirtualScroll&&this.selectionBordersVisibility&&(this.setCurrentCellEl(),this.setNormalEndCellEl())},setCellSelectionRangeData:function(){var e=this.currentCellSelectionType,t=this.cellSelectionData,n=t.currentCell,r=t.normalEndCell,i={};e===Ge?i={leftColKey:n.colKey,rightColKey:n.colKey,topRowKey:n.rowKey,bottomRowKey:n.rowKey}:e===Ze?(bn({colgroups:this.colgroups,colKeys:[n.colKey,r.colKey]})===n.colKey?(i.leftColKey=n.colKey,i.rightColKey=r.colKey):(i.leftColKey=r.colKey,i.rightColKey=n.colKey),n.rowIndex<r.rowIndex?(i.topRowKey=n.rowKey,i.bottomRowKey=r.rowKey):(i.topRowKey=r.rowKey,i.bottomRowKey=n.rowKey)):i={leftColKey:"",rightColKey:"",topRowKey:"",bottomRowKey:""},this.$emit(pt,i)},getCellPosition:function(e){var t=e.cellEl,n=e.tableLeft,r=e.tableTop;if(!this.selectionBordersVisibility)return!1;var i=t.getBoundingClientRect(),o=i.left,a=i.top,s=i.height,l=i.width;return s&&l?{left:o-n,top:a-r,width:l,height:s}:void 0},getCellPositionByColKey:function(e){var t,n=e.tableLeft,r=e.tableTop,i=e.colKey,o=e.isFirstRow,a=e.isLastRow;if(!this.selectionBordersVisibility)return!1;if(o?t=this.getTableFirstRowCellByColKey(i):a&&(t=this.getTableLastRowCellByColKey(i)),t){var s=t.getBoundingClientRect(),l=s.left,c=s.top,u=s.width;return u?{left:l-n,top:c-r,width:u}:void 0}},setSelectionPositions:function(e){var t=e.type,n=this.allRowKeys,r=this.tableEl,i=this.currentCellEl,o=this.normalEndCellEl,a=this.autoFillEndCellEl,s=this.cellSelectionData,l=this.virtualScrollVisibleIndexs;if(0===n.length)return!1;if(!r)return!1;var c=r.getBoundingClientRect(),u=c.left,d=c.top,f=!1,h=!1;if("currentCell"===t&&(f=!0,i)){var p=this.getCellPosition({cellEl:i,tableLeft:u,tableTop:d});p&&(f=!1,this.cellSelectionRect.currentCellRect=p)}if("normalEndCell"===t&&(h=!0,o)){var m=this.getCellPosition({cellEl:o,tableLeft:u,tableTop:d});m&&(h=!1,this.cellSelectionRect.normalEndCellRect=m)}if((f||h)&&this.isVirtualScroll){var y,v,g,b=s.currentCell,_=s.normalEndCell;if(f?(y=b.colKey,v=b.rowIndex):(y=_.colKey,v=_.rowIndex),f&&!this.cellSelectionRect.currentCellRect.height||h&&!this.cellSelectionRect.normalEndCellRect.height){var k={tableLeft:u,tableTop:d,colKey:y};v<l.start?g=this.getCellPositionByColKey(kr(kr({},k),{},{isFirstRow:!0})):v>l.end&&(g=this.getCellPositionByColKey(kr(kr({},k),{},{isLastRow:!0})))}else v<l.start?g={top:0}:v>l.end&&(g={top:r.clientHeight});f?Object.assign(this.cellSelectionRect.currentCellRect,g):Object.assign(this.cellSelectionRect.normalEndCellRect,g)}if(a&&"autoFillEndCell"===t){var w=this.getCellPosition({cellEl:a,tableLeft:u,tableTop:d});w&&(this.cellSelectionRect.autoFillEndCellRect=w)}},getSelectionCurrent:function(e){var t=e.fixedType,n={selectionCurrent:null,autoFillArea:null},r=this.cellSelectionRect,i=this.colgroups,o=this.cellSelectionData,a=r.currentCellRect,s=r.normalEndCellRect;if(!a.width)return n;var l={borderWidth:a.width+1,borderHeight:a.height,topBorder:{show:!0,width:0,height:2,top:a.top-1,left:a.left-1},rightBorder:{show:!0,width:2,height:0,top:a.top,left:a.left+a.width-2},bottomBorder:{show:!0,width:0,height:2,top:a.top+a.height-2,left:a.left-1},leftBorder:{show:!0,width:2,height:0,top:a.top,left:a.left-1},corner:{show:!s.width,top:0,left:0}};l.corner.top=l.bottomBorder.top-3,l.corner.left=l.rightBorder.left-3,s.width||(n.autoFillArea=this.getSelectionAutofillArea({areaPostions:l,fixedType:t}));var c=[o.currentCell.colKey],u=cn({colKeys:c,fixedType:t,colgroups:i});return n.selectionCurrent=this.getBorders(kr(kr({},l),{},{showCorner:!s.width,className:"selection-current",fixedType:t,totalColKeys:c,fixedColKeys:u})),n},getSelectionAreas:function(e){var t=e.fixedType,n={normalArea:null,autoFillArea:null},r=this.cellSelectionData,i=r.currentCell,o=r.normalEndCell,a=this.cellSelectionRect,s=this.cellSelectionRangeData,l=this.colgroups,c=a.currentCellRect,u=a.normalEndCellRect;if(!c.width||!u.width)return n;var d={borderWidth:0,borderHeight:0,topBorder:{show:!0,width:0,height:1,top:0,left:0},rightBorder:{show:!0,width:1,height:0,top:0,left:0},bottomBorder:{show:!0,width:0,height:1,top:0,left:0},leftBorder:{show:!0,width:1,height:0,top:0,left:0},corner:{show:!0,top:0,left:0}},f=bn({colgroups:this.colgroups,colKeys:[i.colKey,o.colKey]});f===i.colKey?(d.borderWidth=u.left-c.left+u.width+1,d.topBorder.left=c.left-1,d.bottomBorder.left=c.left-1,d.leftBorder.left=c.left-1,d.rightBorder.left=u.left+u.width-1):f===o.colKey&&(d.borderWidth=c.left-u.left+c.width+1,d.topBorder.left=u.left-1,d.rightBorder.left=c.left+c.width-1,d.bottomBorder.left=u.left-1,d.leftBorder.left=u.left-1),u.top>c.top?(d.borderHeight=u.top-c.top+u.height,d.topBorder.top=c.top-1,d.rightBorder.top=c.top,d.bottomBorder.top=u.top+u.height-1,d.leftBorder.top=c.top):u.top<=c.top&&(d.borderHeight=c.top-u.top+c.height,d.topBorder.top=u.top-1,d.rightBorder.top=u.top,d.bottomBorder.top=c.top+c.height-1,d.leftBorder.top=u.top),d.corner.top=d.bottomBorder.top-4,d.corner.left=d.rightBorder.left-4,u.width&&(n.autoFillArea=this.getSelectionAutofillArea({areaPostions:d,fixedType:t}));var h=ln({colKey1:s.leftColKey,colKey2:s.rightColKey,colgroups:l}),p=cn({colKeys:h,fixedType:t,colgroups:l});return n.normalArea=this.getBorders(kr(kr({},d),{},{className:"selection-normal-area",fixedType:t,totalColKeys:h,fixedColKeys:p})),n.normalAreaLayer=this.getAreaLayer(kr(kr({},d),{},{className:"selection-normal-area-layer",fixedType:t,totalColKeys:h,fixedColKeys:p})),n},getSelectionAutofillArea:function(e){var t=e.areaPostions,n=e.fixedType,r=null,i=this.cellAutofillOption,o=this.cellSelectionRangeData,a=this.cellSelectionRect,l=this.cellSelectionData,u=this.isAutofillStarting,d=this.currentCellSelectionType,f=this.colgroups;if(!u)return r;var h=a.currentCellRect,p=a.autoFillEndCellRect;if(!h.width||!p.width)return r;if(!t)return r;var m,y,v,g,b,_,k={borderWidth:0,borderHeight:0,topBorder:{show:!0,width:0,height:1,top:0,left:0},rightBorder:{show:!0,width:1,height:0,top:0,left:0},bottomBorder:{show:!0,width:0,height:1,top:0,left:0},leftBorder:{show:!0,width:1,height:0,top:0,left:0},corner:{show:!1,top:0,left:0}},w=l.currentCell,x=l.autoFillEndCell,C=o.leftColKey,S=o.rightColKey;if(d===Ge&&(C=w.colKey,S=w.colKey),C!==x.colKey&&(m=bn({colgroups:f,colKeys:[C,x.colKey]})),S!==x.colKey&&(y=gn({type:"rightmost",colgroups:(v={colgroups:f,colKeys:[S,x.colKey]}).colgroups,colKeys:v.colKeys})),p.top>t.bottomBorder.top)g=$e,b=C,_=S,k.topBorder.show=!1,k.borderWidth=t.borderWidth,k.borderHeight=p.top-t.bottomBorder.top+p.height,k.rightBorder.top=t.bottomBorder.top,k.rightBorder.left=t.rightBorder.left,d===Ge&&k.rightBorder.left++,k.leftBorder.top=t.bottomBorder.top,k.leftBorder.left=t.leftBorder.left,k.bottomBorder.top=p.top+p.height-1,k.bottomBorder.left=t.bottomBorder.left;else if(p.top<t.topBorder.top)g=qe,b=C,_=S,k.bottomBorder.show=!1,k.borderWidth=t.borderWidth,k.borderHeight=t.topBorder.top-p.top,k.topBorder.top=p.top-1,k.topBorder.left=t.topBorder.left,k.rightBorder.top=p.top,k.rightBorder.left=t.rightBorder.left,d===Ge&&k.rightBorder.left++,k.leftBorder.top=p.top,k.leftBorder.left=t.leftBorder.left;else if(y!==x.colKey||s(y)){if(m!==x.colKey||s(m))return r;g=He,b=function(e){var t=e.colgroups,n=e.currentColKey,r=null;if(!s(n)){var i=t.findIndex(function(e){return e.key===n});0===i?r=n:i>0&&(r=t[i-1].key)}return r}({colgroups:f,currentColKey:C}),_=x.colKey,k.rightBorder.show=!1,k.borderWidth=t.leftBorder.left-p.left+1,k.borderHeight=t.borderHeight,k.topBorder.top=t.topBorder.top,k.topBorder.left=p.left,k.rightBorder.left=t.topBorder.left,k.bottomBorder.top=t.bottomBorder.top,k.bottomBorder.left=p.left,k.leftBorder.top=t.topBorder.top,k.leftBorder.left=p.left}else g=We,b=function(e){var t=e.colgroups,n=e.currentColKey,r=null;if(!s(n)){var i=t.findIndex(function(e){return e.key===n});i===t.length-1?r=n:i<t.length-1&&(r=t[i+1].key)}return r}({colgroups:f,currentColKey:S}),_=x.colKey,k.leftBorder.show=!1,k.borderWidth=p.left-t.rightBorder.left+p.width+1,k.borderHeight=t.borderHeight,k.topBorder.top=t.topBorder.top,k.topBorder.left=t.rightBorder.left-1,k.rightBorder.top=t.topBorder.top,k.rightBorder.left=p.left+p.width-1,k.bottomBorder.top=t.bottomBorder.top,k.bottomBorder.left=t.rightBorder.left-1;var A=i.directionX,O=i.directionY;if(c(A)&&!A&&(g===He||g===We))return!1;if(c(O)&&!O&&(g===qe||g===$e))return!1;var j=ln({colKey1:b,colKey2:_,colgroups:f}),T=cn({colKeys:j,fixedType:n,colgroups:f});return(r=this.getBorders(kr(kr({className:"selection-autofill-area"},k),{},{fixedType:n,totalColKeys:j,fixedColKeys:T})))&&this.dispatch(Pt,Tt,g),r},getBorders:function(e){var t=this,n=e.borderWidth,r=e.borderHeight,i=e.topBorder,o=e.rightBorder,a=e.bottomBorder,s=e.leftBorder,l=e.corner,c=e.className,u=e.fixedType,d=e.totalColKeys,f=e.fixedColKeys,h=this.$createElement,p=this.cornerCellInfo,m=this.colgroups,y=this.isFirstSelectionRow,v=this.isFirstSelectionCol,g=this.isFirstNotFixedSelectionCol,b=this.showCorner;if(!(u?yn({fixedType:u,colKeys:d,colgroups:m}):vn({colKeys:d,colgroups:m})))return null;var _=0;f.length&&(_=on({colKeys:f,colgroups:m})),u&&(n=_,u===Fe&&(n+=1)),u===Fe&&d.length!==f.length&&(o.show=!1,l.show=!1),u===Ke&&(d.length!==f.length&&(s.show=!1),i.left=o.left-n+1,a.left=o.left-n+1),y&&(i.top+=1),v&&(s.left+=1),g&&(s.left+=1);var k=l.top,w=l.left,x="1px",C="1px";p.isLastRow&&(k-=3,C="0px"),p.isLastColumn&&(w-=3,x="0px"),b||(l.show=!1);var S={class:Xt("selection-corner"),style:{display:l.show?"block":"none",top:k+"px",left:w+"px",borderWidth:"1px ".concat(x," ").concat(C," 1px")},on:{mousedown:function(e){t.dispatch(Pt,Ot,{event:e})},mouseup:function(e){t.dispatch(Pt,jt,{event:e})}}};return h("div",{class:Xt(c)},[h("div",{style:{display:i.show?"block":"none",width:n+"px",height:i.height+"px",top:i.top+"px",left:i.left+"px"},class:Xt("selection-border")}),h("div",{style:{display:o.show?"block":"none",width:o.width+"px",height:r+"px",top:o.top+"px",left:o.left+"px"},class:Xt("selection-border")}),h("div",{style:{display:a.show?"block":"none",width:n+"px",height:a.height+"px",top:a.top+"px",left:a.left+"px"},class:Xt("selection-border")}),h("div",{style:{display:s.show?"block":"none",width:s.width+"px",height:r+"px",top:s.top+"px",left:s.left+"px"},class:Xt("selection-border")}),h("div",S)])},getAreaLayer:function(e){var t=e.borderWidth,n=e.borderHeight,r=e.topBorder,i=e.className,o=e.fixedType,a=e.totalColKeys,s=e.fixedColKeys,l=this.$createElement,c=this.colgroups;if(!(o?yn({fixedType:o,colKeys:a,colgroups:c}):vn({colKeys:a,colgroups:c})))return null;var u=0;return s.length&&(u=on({colKeys:s,colgroups:c})),o&&(t=u,o===Fe&&(t+=1)),l("div",{class:Xt(i),style:{top:r.top+"px",left:r.left+"px",width:t+"px",height:n+"px"}})},getTableFirstRowCellByColKey:function(e){var t=null,n=this.tableEl;return n&&(t=n.querySelector('tbody.ve-table-body tr td[col-key="'.concat(e,'"]'))),t},getTableLastRowCellByColKey:function(e){var t=null,n=this.tableEl;return n&&(t=n.querySelector('tbody.ve-table-body tr:last-child td[col-key="'.concat(e,'"]'))),t},getTableCellEl:function(e){var t=e.rowKey,n=e.colKey,r=null,i=this.tableEl;return i&&(r=i.querySelector('tbody.ve-table-body tr[row-key="'.concat(t,'"] td[col-key="').concat(n,'"]'))),r},setCurrentCellEl:function(){var e=this.cellSelectionData.currentCell,t=e.rowKey,n=e.colKey;if(!s(t)&&!s(n)){var r=this.getTableCellEl({rowKey:t,colKey:n});r&&(this.currentCellEl=r)}},setNormalEndCellEl:function(){var e=this.cellSelectionData.normalEndCell,t=e.rowKey,n=e.colKey;if(!s(t)&&!s(n)){var r=this.getTableCellEl({rowKey:t,colKey:n});r&&(this.normalEndCellEl=r)}},setAutofillEndCellEl:function(){var e=this.cellSelectionData,t=this.tableEl,n=e.autoFillEndCell,r=n.rowKey,i=n.colKey;if(t){var o=t.querySelector('tbody.ve-table-body tr[row-key="'.concat(r,'"] td[col-key="').concat(i,'"]'));o&&(this.autoFillEndCellEl=o)}},clearAutofillEndCellRect:function(){this.autoFillEndCellEl=null,this.cellSelectionRect.autoFillEndCellRect={left:0,top:0,width:0,height:0}}},wr(yr,gr,function(){this.currentCellEl=null,this.cellSelectionRect.currentCellRect={left:0,top:0,width:0,height:0}}),wr(yr,br,function(){this.normalEndCellEl=null,this.cellSelectionRect.normalEndCellRect={left:0,top:0,width:0,height:0}}),yr),created:function(){this.debounceResetCellPositions=Object(P.debounce)(this.resetCellPositions,210),this.debounceSetCellEls=Object(P.debounce)(this.setCellEls,200)},render:function(){var e=arguments[0];if(!this.selectionBordersVisibility)return null;var t=this.getSelectionCurrent({fixedType:Fe}),n=this.getSelectionAreas({fixedType:Fe}),r=t.autoFillArea||n.autoFillArea,i=this.getSelectionCurrent({fixedType:""}),o=this.getSelectionAreas({fixedType:""}),a=i.autoFillArea||o.autoFillArea,s=this.getSelectionCurrent({fixedType:Ke}),l=this.getSelectionAreas({fixedType:Ke}),c=s.autoFillArea||l.autoFillArea;return e("div",{class:Xt("selection-wrapper"),style:{visibility:this.isCellEditing?"hidden":""}},[e("div",{class:Xt("selection-fixed-left")},[t.selectionCurrent,n.normalArea,r,n.normalAreaLayer]),e("div",{class:Xt("selection-middle")},[i.selectionCurrent,o.normalArea,a,o.normalAreaLayer]),e("div",{class:Xt("selection-fixed-right")},[s.selectionCurrent,l.normalArea,c,l.normalAreaLayer])])}},Cr=n(140),Sr=n.n(Cr);function Ar(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Or,jr={name:"VeTableColumnResizer",props:{parentRendered:{type:Boolean,required:!0},tableContainerEl:{type:HTMLDivElement,default:null},hooks:{type:Object,required:!0},colgroups:{type:Array,required:!0},isColumnResizerHover:{type:Boolean,required:!0},isColumnResizing:{type:Boolean,required:!0},setIsColumnResizerHover:{type:Function,required:!0},setIsColumnResizing:{type:Function,required:!0},setColumnWidth:{type:Function,required:!0},columnWidthResizeOption:{type:Object,default:function(){return null}}},data:function(){return{columnResizerStartX:0,currentResizingColumn:null,columnResizerHandlerWidth:5,columnResizerRect:{top:0,left:0,height:0}}},computed:{columnMinWidth:function(){var e=30,t=this.columnWidthResizeOption;if(t){var n=t.minWidth;u(n)&&n>0&&(e=n)}return e}},watch:{parentRendered:{handler:function(e){var t=this;e&&this.hooks.addHook(Mt,function(e){var n=e.event,r=e.column;r.disableResizing||t.initColumnResizerPosition({event:n,column:r})})},immediate:!0}},methods:{initColumnResizerPosition:function(e){var t=e.event,n=e.column,r=this.tableContainerEl,i=this.isColumnResizing;if(r&&!i){var o=r.getBoundingClientRect(),a=o.left,s=o.top,l=this.colgroups.find(function(e){return e.key===n.key});if(!l)return!1;if(l._realTimeWidth){var c=t.target.getBoundingClientRect(),u=c.height,d=c.left,f=c.top;this.columnResizerRect.left=d+l._realTimeWidth-a,this.columnResizerRect.top=f-s,this.columnResizerRect.height=u,this.currentResizingColumn=l,this.columnResizerStartX=d+l._realTimeWidth}else console.warn("Resizer column needs set column width")}},setColumnResizerPositionByDrag:function(e){var t=this.tableContainerEl,n=this.isColumnResizing,r=this.currentResizingColumn;if(t&&n){var i=t.getBoundingClientRect().left;if(n&&r){var o=this.columnResizerStartX,a=this.columnMinWidth;r._realTimeWidth+(e.clientX-o)>a&&(this.columnResizerRect.left=e.clientX-i)}}},columnResizerHandlerMousedown:function(e){e.event,this.isColumnResizerHover&&(this.setIsColumnResizing(!0),document.addEventListener("mousemove",this.setColumnResizerPositionByDrag),document.addEventListener("mouseup",this.columnResizerMouseup),document.onselectstart=function(){return!1},document.ondragstart=function(){return!1})},columnResizerMouseup:function(e){var t,n=this.isColumnResizing,r=this.currentResizingColumn,i=this.columnResizerStartX,o=this.setColumnWidth,a=this.columnWidthResizeOption,s=this.columnMinWidth;if(!n||!r)return!1;if(t=r._realTimeWidth+(e.clientX-i)<s?s-r._realTimeWidth:e.clientX-i,t=Math.floor(t),Math.abs(t)>1){var l=r._realTimeWidth;if(l+=t,o({colKey:r.key,width:l}),a){var c=a.sizeChange;c&&c({column:r,differWidth:t,columnWidth:l})}}this.clearColumnResizerStatus(),document.removeEventListener("mousemove",this.setColumnResizerPositionByDrag),document.removeEventListener("mouseup",this.columnResizerMouseup)},clearColumnResizerStatus:function(){this.currentResizingColumn=null,this.columnResizerStartX=0,this.setIsColumnResizerHover(!1),this.setIsColumnResizing(!1),document.onselectstart=function(){return!0},document.ondragstart=function(){return!0}}},render:function(){var e,t=this,n=arguments[0],r=this.isColumnResizerHover,i=this.isColumnResizing,o=this.columnResizerRect,a=this.columnResizerHandlerWidth,s=o.left,l=o.top,c=o.height,u={class:(e={},Ar(e,Xt("column-resizer-handler"),!0),Ar(e,"active",r||i),e),style:{left:s-a+"px",top:l+"px",height:c+"px"},on:{click:function(){},mousedown:function(e){t.columnResizerHandlerMousedown({event:e})},mouseenter:function(){t.setIsColumnResizerHover(!0)},mouseleave:function(){t.setIsColumnResizerHover(!1)},mouseup:function(e){t.columnResizerMouseup(e)}}},d={class:[Xt("column-resizer-line")],style:{display:i?"block":"none",left:s+"px"}};return n("div",{class:Xt("column-resizer")},[n("div",u),n("div",d)])}};function Tr(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 Er(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tr(Object(n),!0).forEach(function(t){Dr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Dr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ir=o("table"),Rr={name:Pt,directives:{"click-outside":K},mixins:[Rn],props:{tableData:{required:!0,type:Array},footerData:{type:Array,default:function(){return[]}},showHeader:{type:Boolean,default:!0},columns:{type:Array,required:!0},rowKeyFieldName:{type:String,default:null},scrollWidth:{type:[Number,String],default:null},maxHeight:{type:[Number,String],default:null},fixedHeader:{type:Boolean,default:!0},fixedFooter:{type:Boolean,default:!0},borderAround:{type:Boolean,default:!0},borderX:{type:Boolean,default:!0},borderY:{type:Boolean,default:!1},eventCustomOption:{type:Object,default:function(){return null}},cellStyleOption:{type:Object,default:function(){return null}},cellSpanOption:{type:Object,default:function(){return null}},rowStyleOption:{type:Object,default:function(){return null}},virtualScrollOption:{type:Object,default:null},sortOption:{type:Object,default:function(){return null}},expandOption:{type:Object,default:function(){return null}},checkboxOption:{type:Object,default:function(){return null}},radioOption:{type:Object,default:function(){return null}},cellSelectionOption:{type:Object,default:function(){return null}},cellAutofillOption:{type:[Object,Boolean],default:function(){return null}},editOption:{type:Object,default:function(){return null}},columnHiddenOption:{type:Object,default:function(){return null}},contextmenuHeaderOption:{type:Object,default:function(){return null}},contextmenuBodyOption:{type:Object,default:function(){return null}},clipboardOption:{type:Object,default:function(){return null}},columnWidthResizeOption:{type:Object,default:function(){return null}}},data:function(){return{hooks:{},parentRendered:!1,tableViewportWidth:0,columnsOptionResetTime:0,tableRootRef:"tableRootRef",tableContainerWrapperRef:"tableContainerWrapperRef",tableContainerRef:"tableContainerRef",tableRef:"tableRef",tableBodyRef:"tableBodyRef",tableContentWrapperRef:"tableContentWrapperRef",virtualPhantomRef:"virtualPhantomRef",editInputRef:"editInputRef",cellSelectionRef:"cellSelectionRef",contextmenuRef:"contextmenuRef",cloneColumns:[],isGroupHeader:!1,headerRows:[],footerRows:[],colgroups:[],groupColumns:[],hiddenColumns:[],virtualScrollVisibleData:[],virtualScrollVisibleIndexs:{start:-1,end:-1},defaultVirtualScrollBufferScale:1,defaultVirtualScrollMinRowHeight:40,defaultPlaceholderPerScrollingRowCount:8,virtualScrollStartIndex:0,previewVirtualScrollStartIndex:0,virtualScrollEndIndex:0,showVirtualScrollingPlaceholder:!1,disablePointerEventsTimeoutId:null,isLeftScrolling:!1,isRightScrolling:!1,isVerticalScrolling:!1,hasXScrollBar:!1,hasYScrollBar:!1,scrollBarWidth:0,previewTableContainerScrollLeft:null,headerIndicatorColKeys:{startColKey:"",startColKeyIndex:-1,endColKey:"",endColKeyIndex:-1},bodyIndicatorRowKeys:{startRowKey:"",startRowKeyIndex:-1,endRowKey:"",endRowKeyIndex:-1},cellSelectionData:{currentCell:{rowKey:"",colKey:"",rowIndex:-1},normalEndCell:{rowKey:"",colKey:"",rowIndex:-1},autoFillEndCell:{rowKey:"",colKey:""}},cellSelectionRangeData:{leftColKey:"",rightColKey:"",topRowKey:"",bottomRowKey:""},isHeaderCellMousedown:!1,isBodyCellMousedown:!1,isBodyOperationColumnMousedown:!1,isAutofillStarting:!1,autofillingDirection:null,currentCellSelectionType:"",tableOffestHeight:0,tableHeight:0,highlightRowKey:"",editingCell:{rowKey:"",colKey:"",row:null,column:null},editorInputStartValue:"",enableStopEditing:!0,contextmenuEventTarget:"",contextmenuOptions:[],isColumnResizerHover:!1,isColumnResizing:!1}},computed:{actualRenderTableData:function(){return this.isVirtualScroll?this.virtualScrollVisibleData:this.tableData},allRowKeys:function(){var e=[],t=this.tableData,n=this.rowKeyFieldName;return n&&(e=t.map(function(e){return e[n]})),e},virtualScrollBufferCount:function(){var e=0,t=this.virtualScrollOption,n=this.defaultVirtualScrollBufferScale,r=this.virtualScrollVisibleCount;if(t){var i=t.bufferScale;e=(u(i)&&i>0?i:n)*r}return e},virtualScrollVisibleCount:function(){var e=0,t=this.isVirtualScroll,n=this.virtualScrollOption,r=this.defaultVirtualScrollMinRowHeight,i=this.maxHeight,o=this.tableOffestHeight;if(t&&i){var a=u(n.minRowHeight)?n.minRowHeight:r;u(i)?e=Math.ceil(i/a):o&&(e=Math.ceil(o/a))}return e},tableContainerWrapperStyle:function(){return{width:"100%"}},tableContainerStyle:function(){var e=d(this.maxHeight),t=null;return this.isVirtualScroll?e?t=e:console.error("maxHeight prop is required when 'virtualScrollOption.enable = true'"):(t=this.tableHeight,this.hasXScrollBar&&(t+=this.getScrollBarWidth()),t=d(t)),{"max-height":e,height:t}},tableStyle:function(){return{width:d(this.scrollWidth)}},tableClass:function(){var e;return Dr(e={},Xt("border-x"),this.borderX),Dr(e,Xt("border-y"),this.borderY),e},tableContainerClass:function(){var e,t=this.isVirtualScroll,n=this.isLeftScrolling,r=this.isRightScrolling,i=this.isVerticalScrolling,o=this.isCellEditing,a=this.isAutofillStarting,s=this.enableCellSelection;return Dr(e={},Xt("container"),!0),Dr(e,Xt("virtual-scroll"),t),Dr(e,Xt("container-left-scrolling"),n),Dr(e,Xt("container-right-scrolling"),r),Dr(e,Xt("container-vertical-scrolling"),i),Dr(e,Xt("is-cell-editing"),o),Dr(e,Xt("autofilling"),a),Dr(e,Xt("enable-cell-selection"),s),e},tableBodyClass:function(){var e,t=this.rowStyleOption,n=!0,r=!0,i=!1;return t&&(n=t.hoverHighlight,r=t.clickHighlight,i=t.stripe),Dr(e={},Xt("stripe"),!0===i),Dr(e,Xt("row-hover"),!1!==n),Dr(e,Xt("row-highlight"),!1!==r),e},isVirtualScroll:function(){var e=this.virtualScrollOption;return e&&e.enable},hasFixedColumn:function(){return this.colgroups.some(function(e){return e.fixed===Fe||e.fixed===Ke})},hasLeftFixedColumn:function(){return this.colgroups.some(function(e){return e.fixed===Fe})},hasRightFixedColumn:function(){return this.colgroups.some(function(e){return e.fixed===Ke})},isCellEditing:function(){var e=this.editingCell;return!s(e.rowKey)&&!s(e.colKey)},hasEditColumn:function(){return this.colgroups.some(function(e){return e.edit})},enableHeaderContextmenu:function(){var e=!1,t=this.contextmenuHeaderOption;if(t){var n=t.contextmenus;Array.isArray(n)&&n.length&&(e=!0)}return e},enableBodyContextmenu:function(){var e=!1,t=this.contextmenuBodyOption;if(t){var n=t.contextmenus;Array.isArray(n)&&n.length&&(e=!0)}return e},contextMenuType:function(){return this.headerIndicatorColKeys.startColKeyIndex>-1?Gt:"bodyContextmenu"},enableCellSelection:function(){var e=!0,t=this.cellSelectionOption;return(s(this.rowKeyFieldName)||t&&c(t.enable)&&!1===t.enable)&&(e=!1),e},enableClipboard:function(){return this.rowKeyFieldName},enableColumnResize:function(){var e=!1,t=this.columnWidthResizeOption;if(t){var n=t.enable;c(n)&&(e=n)}return e},headerTotalHeight:function(){var e=0;return this.showHeader&&(e=this.headerRows.reduce(function(e,t){return t.rowHeight+e},0)),e},footerTotalHeight:function(){return this.footerRows.reduce(function(e,t){return t.rowHeight+e},0)}},watch:{tableData:{handler:function(e,t){this.initVirtualScrollPositions(),t&&this.initVirtualScroll()},immediate:!0},allRowKeys:{handler:function(e){if(Array.isArray(e)){var t=this.cellSelectionData.currentCell;t.rowIndex>-1&&-1===e.indexOf(t.rowKey)&&this.clearCellSelectionCurrentCell()}},immediate:!1},columns:{handler:function(e,t){this.initColumns(),this.initGroupColumns(),this.initColumnWidthByColumnResize(),e!=t&&t&&(this.columnsOptionResetTime++,this.initScrolling())},immediate:!0},cloneColumns:{handler:function(){this.initGroupColumns(),this.initColumnWidthByColumnResize(),this.columnsOptionResetTime++,this.initScrolling()},immediate:!1},groupColumns:{handler:function(e){a(e)||this.initHeaderRows()},immediate:!0},footerData:{handler:function(e){a(e)||this.initFooterRows()},immediate:!0},"virtualScrollOption.enable":{handler:function(e){e?(this.initVirtualScrollPositions(),this.initVirtualScroll()):this.setTableContentTopValue({top:0})},immediate:!1},isAutofillStarting:{handler:function(e){e||(this.setCellSelectionByAutofill(),this.clearCellSelectionAutofillEndCell())}},"cellSelectionData.currentCell":{handler:function(){this.setCurrentCellSelectionType()},deep:!0,immediate:!0},"cellSelectionData.normalEndCell":{handler:function(){this.setCurrentCellSelectionType()},deep:!0,immediate:!0},headerIndicatorColKeys:{handler:function(){this.setRangeCellSelectionByHeaderIndicator()},deep:!0},bodyIndicatorRowKeys:{handler:function(){this.setRangeCellSelectionByBodyIndicator()},deep:!0}},methods:(Or={initHeaderRows:function(){var e=this.groupColumns;Array.isArray(e)&&(this.headerRows=e.map(function(){return{rowHeight:0}}))},initFooterRows:function(){var e=this.footerData;Array.isArray(e)&&(this.footerRows=e.map(function(){return{rowHeight:0}}))},headerRowHeightChange:function(e){var t=e.rowIndex,n=e.height;this.headerRows.splice(t,1,{rowHeight:n})},footRowHeightChange:function(e){var t=e.rowIndex,n=e.height;this.footerRows.splice(t,1,{rowHeight:n})},bodyCellWidthChange:function(e){this.colgroups=this.colgroups.map(function(t){return t._realTimeWidth=e.get(t.key),t}),this.hooks.triggerHook(It)},setColumnWidth:function(e){var t=this,n=e.colKey,r=e.width;this.colgroups=this.colgroups.map(function(e){return e.key===n&&(e._columnResizeWidth=r),e}),this.$nextTick(function(){t.setScrollBarStatus()}),this.hooks.triggerHook(It)},updateColgroupsBySortChange:function(e){this.colgroups=this.colgroups.map(function(t){return Object.keys(e).indexOf(t.field)>-1&&(t.sortBy=e[t.field]),t})},initColumnWidthByColumnResize:function(){this.enableColumnResize&&(this.colgroups=this.colgroups.map(function(e){var t=50;return u(e.width)&&(t=e.width),e._columnResizeWidth=t,e}))},initColumns:function(){var e=this.columnHiddenOption;if(e){var t=e.defaultHiddenColumnKeys;a(t)||(this.hiddenColumns=t)}this.showOrHideColumns()},showOrHideColumns:function(){var e=Object(P.cloneDeep)(this.columns);e=e.map(function(e){return e.operationColumn&&(e.fixed=Fe),e});var t=this.hiddenColumns;a(t)||t.forEach(function(t){e=function e(t,n){return t.filter(function(t){return"children"in t&&(t.children=e(t.children,n)),t.key!==n})}(e,t)}),this.cloneColumns=e},initGroupColumns:function(){var e=function(e){var t=[],n=[],r=1;e.forEach(function(e){e._level=1,function e(t,n){n&&(t._level=n._level+1,r<t._level&&(r=t._level)),t.children&&t.children.forEach(function(n){n.fixed=t.fixed,e(n,t)})}(e)}),e.forEach(function(e){!function e(t){if(t.children){var n="",i=0;t.children.forEach(function(t){e(t),i+=t._colspan,n+=t._keys.endsWith("|")?t._keys:t._keys+"|"}),t._keys=n,t._colspan=i,t._rowspan=1}else t._keys=t.key,t._colspan=1,t._rowspan=r-t._level+1}(e)});for(var i=0;i<r;i++)n.push([]);return e.forEach(function(e){!function e(r){if(!a(r.children)||!s(r.key)){var i=Object.assign({},r);if(n[r._level-1].push(i),r.children)r.children.forEach(function(t){e(t)});else{var o=Object.assign({},r);o._realTimeWidth=o.width,t.push(o)}}}(e)}),{isGroupHeader:r>1,colgroups:t,groupColumns:n}}(this.cloneColumns);this.isGroupHeader=e.isGroupHeader,this.colgroups=e.colgroups,this.groupColumns=e.groupColumns},getScrollBarWidth:function(){var e=0,t=this.scrollBarWidth;return t?e=t:(e=function(){var e=document.createElement("div");e.className="ve-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),t-r}(),this.scrollBarWidth=e),e},selectedAllChange:function(e){var t=e.isSelected;this.broadcast(Nt,ut,{isSelected:t})},setSelectedAllInfo:function(e){var t=e.isSelected,n=e.isIndeterminate;this.broadcast(Bt,dt,{isSelected:t,isIndeterminate:n})},cellSelectionCurrentCellChange:function(e){var t=e.rowKey,n=e.colKey;this.cellSelectionData.currentCell.colKey=n,this.cellSelectionData.currentCell.rowKey=t,this.cellSelectionData.currentCell.rowIndex=this.allRowKeys.indexOf(t)},cellSelectionNormalEndCellChange:function(e){var t=e.rowKey,n=e.colKey;this.cellSelectionData.normalEndCell.colKey=n,this.cellSelectionData.normalEndCell.rowKey=t,this.cellSelectionData.normalEndCell.rowIndex=this.allRowKeys.indexOf(t)},cellSelectionAutofillCellChange:function(e){var t=e.rowKey,n=e.colKey;this.cellSelectionData.autoFillEndCell.colKey=n,this.cellSelectionData.autoFillEndCell.rowKey=t},clearCellSelectionCurrentCell:function(){this.cellSelectionCurrentCellChange({rowKey:"",colKey:"",rowIndex:-1})},clearCellSelectionNormalEndCell:function(){this.cellSelectionNormalEndCellChange({rowKey:"",colKey:"",rowIndex:-1})},clearCellSelectionAutofillEndCell:function(){this.cellSelectionAutofillCellChange({rowKey:"",colKey:""})},headerIndicatorColKeysChange:function(e){var t=e.startColKey,n=e.endColKey,r=this.colgroups;this.headerIndicatorColKeys.startColKey=t,this.headerIndicatorColKeys.startColKeyIndex=r.findIndex(function(e){return e.key===t}),this.headerIndicatorColKeys.endColKey=n,this.headerIndicatorColKeys.endColKeyIndex=r.findIndex(function(e){return e.key===n})},clearHeaderIndicatorColKeys:function(){this.headerIndicatorColKeys.startColKey="",this.headerIndicatorColKeys.startColKeyIndex=-1,this.headerIndicatorColKeys.endColKey="",this.headerIndicatorColKeys.endColKeyIndex=-1},bodyIndicatorRowKeysChange:function(e){var t=e.startRowKey,n=e.endRowKey,r=this.allRowKeys;this.bodyIndicatorRowKeys.startRowKey=t,this.bodyIndicatorRowKeys.startRowKeyIndex=r.indexOf(t),this.bodyIndicatorRowKeys.endRowKey=n,this.bodyIndicatorRowKeys.endRowKeyIndex=r.indexOf(n)},clearBodyIndicatorRowKeys:function(){this.bodyIndicatorRowKeys.startRowKey="",this.bodyIndicatorRowKeys.startRowKeyIndex=-1,this.bodyIndicatorRowKeys.endRowKey="",this.bodyIndicatorRowKeys.endRowKeyIndex=-1},setCellSelectionByAutofill:function(){var e=this.cellAutofillOption,t=this.cellSelectionRangeData,n=this.colgroups,r=this.allRowKeys,i=this.autofillingDirection,o=this.currentCellSelectionType,a=this.cellSelectionData,u=a.autoFillEndCell,d=a.currentCell,f=u.rowKey,h=u.colKey;if(s(f)||s(h))return!1;var p={},m={},y=t.leftColKey,v=t.rightColKey,g=t.topRowKey,b=t.bottomRowKey;if(o===Ze){if(fn({cellData:u,cellSelectionRangeData:t,colgroups:n,allRowKeys:r}))return!1;i===We?(p={rowKey:g,colKey:y},m={rowKey:b,colKey:h}):i===$e?(p={rowKey:g,colKey:y},m={rowKey:f,colKey:v}):i===qe?(p={rowKey:f,colKey:y},m={rowKey:b,colKey:v}):i===He&&(p={rowKey:g,colKey:h},m={rowKey:b,colKey:v})}else if(o===Ge){if(d.rowKey===f&&d.colKey===h)return!1;i===We?(p={rowKey:f,colKey:y},m={rowKey:f,colKey:h}):i===$e?(p={rowKey:g,colKey:y},m={rowKey:f,colKey:y}):i===qe?(p={rowKey:f,colKey:y},m={rowKey:b,colKey:y}):i===He&&(p={rowKey:f,colKey:h},m={rowKey:f,colKey:v})}var _={tableData:this.tableData,allRowKeys:this.allRowKeys,colgroups:this.colgroups,rowKeyFieldName:this.rowKeyFieldName,direction:i,currentCellSelectionType:o,cellSelectionRangeData:t,nextCurrentCell:p,nextNormalEndCell:m};if(e){var k=e.beforeAutofill,w=e.afterAutofill;if(l(k)){var x=k(_n(Er({isReplaceData:!1},_)));if(c(x)&&!x)return!1}var C=_n(Er({isReplaceData:!0},_));l(w)&&w(C)}s(p.rowKey)||this.cellSelectionCurrentCellChange({rowKey:p.rowKey,colKey:p.colKey}),s(m.rowKey)||this.cellSelectionNormalEndCellChange({rowKey:m.rowKey,colKey:m.colKey})},cellSelectionRangeDataChange:function(e){this.cellSelectionRangeData=Object.assign(this.cellSelectionRangeData,e)},autofillingDirectionChange:function(e){this.autofillingDirection=e},setCurrentCellSelectionType:function(){var e,t=this.cellSelectionData,n=t.currentCell,r=t.normalEndCell;e=s(n.rowKey)||s(n.colKey)?"":s(r.rowKey)||s(r.colKey)?Ge:Ze,this.currentCellSelectionType=e},dealKeydownEvent:function(e){var t=this.colgroups,n=this.cellSelectionData,r=this.enableStopEditing,i=this.isCellEditing,o=e.keyCode,a=e.ctrlKey,l=e.shiftKey,c=e.altKey,u=n.currentCell,d=u.rowKey,f=u.colKey,h=t.find(function(e){return e.key===f});if(!s(d)&&!s(f))switch(o){case 9:var p;p=l?Ue:Ve,this.selectCellByDirection({direction:p}),this.clearCellSelectionNormalEndCell(),this[qt](),e.preventDefault();break;case 37:r&&(this.selectCellByDirection({direction:"left"}),this.clearCellSelectionNormalEndCell(),this[qt](),e.preventDefault());break;case 39:r&&(this.selectCellByDirection({direction:"right"}),this.clearCellSelectionNormalEndCell(),this[qt](),e.preventDefault());break;case 38:r&&(this.selectCellByDirection({direction:"up"}),this.clearCellSelectionNormalEndCell(),this[qt](),e.preventDefault());break;case 40:r&&(this.selectCellByDirection({direction:"down"}),this.clearCellSelectionNormalEndCell(),this[qt](),e.preventDefault());break;case 13:var m;c?this.$refs[this.editInputRef].textareaAddNewLine():l?(m="up",this[qt]()):(a||(m=ze),this[qt]()),m&&(this.clearCellSelectionNormalEndCell(),this.selectCellByDirection({direction:m})),e.preventDefault();break;case 32:i||(this[Ut]({rowKey:d,colKey:f,defaultValue:" "}),e.preventDefault());break;case 8:i||(this[Ut]({rowKey:d,colKey:f,defaultValue:""}),e.preventDefault());break;case 46:i||(this.deleteCellSelectionRangeValue(),e.preventDefault());break;case 113:i||(h.edit&&(this.enableStopEditing=!1,this[Ut]({rowKey:d,colKey:f})),e.preventDefault());break;default:(function(e){var t=!1,n=e.keyCode,r=e.altKey,i=e.ctrlKey,o=e.shiftKey;return r||i||o||(n>=48&&n<=57||n>=96&&n<=105||n>=65&&n<=90||[186,187,188,189,190,191,192,219,220,221,222].indexOf(n)>-1||229==n)&&(t=!0),t})(e)&&this[Ut]({rowKey:d,colKey:f,defaultValue:""})}},selectCellByDirection:function(e){var t=e.direction,n=this.colgroups,r=this.allRowKeys,i=this.cellSelectionData.currentCell,o=i.rowKey,a=i.colKey,s=n.findIndex(function(e){return e.key===a}),l=r.indexOf(o);if(t===Ue){if(s>0){var c=n[s-1];this.cellSelectionData.currentCell.colKey=c.key,this.columnToVisible(c)}}else if(t===Ve){if(s<n.length-1){var u=n[s+1];this.cellSelectionData.currentCell.colKey=u.key,this.columnToVisible(u)}}else if("up"===t){if(l>0){var d=r[l-1];this.rowToVisible(38,d)}}else if(t===ze&&l<r.length-1){var f=r[l+1];this.rowToVisible(40,f)}},columnToVisible:function(e){var t=this.hasXScrollBar,n=this.colgroups;if(!t)return!1;var r=this.$refs[this.tableContainerRef],i=r.scrollWidth,o=r.clientWidth,a=r.scrollLeft;if(!e.fixed){var s=rn({colgroups:n,colKey:e.key,fixed:Fe}),l=rn({colgroups:n,colKey:e.key,fixed:Ke});if(a){var c=a-s;c>0&&(r.scrollLeft=a-c)}var u=i-o-a;if(u){var d=u-l;d>0&&(r.scrollLeft=a+d)}}},rowToVisible:function(e,t){var n=this.$refs[this.tableContainerRef],r=this.$refs[this.tableContentWrapperRef].$el,i=this.isVirtualScroll,o=this.headerTotalHeight,a=this.footerTotalHeight,s=n.clientHeight,l=n.scrollTop,c=this.$el.querySelector("tbody tr[".concat(Vt,'="').concat(t,'"]'));if(c){var u=c.offsetTop,d=c.clientHeight,f=r.offsetTop;if(38===e){var h;(h=i?o-(u-(l-f)):l+o-u)>0&&(n.scrollTop=l-h)}else if(40===e){var p;(p=i?u-(l-f)+d+a-s:u+d+a-(s+l))>=0&&(n.scrollTop=l+p)}var m=this.cellSelectionData.currentCell;this.cellSelectionCurrentCellChange({rowKey:t,colKey:m.colKey})}},setVirtualScrollVisibleData:function(){var e=this.tableData,t=this.virtualScrollStartIndex,n=this.virtualScrollEndIndex,r=t-this.getVirtualScrollAboveCount(),i=n+this.getVirtualScrollBelowCount();this.virtualScrollVisibleIndexs.start=r,this.virtualScrollVisibleIndexs.end=i-1,this.virtualScrollVisibleData=e.slice(r,i)},getVirtualScrollAboveCount:function(){var e=0,t=this.isVirtualScroll,n=this.virtualScrollBufferCount,r=this.virtualScrollStartIndex;return t&&(e=Math.min(r,n)),e},getVirtualScrollBelowCount:function(){var e=0,t=this.isVirtualScroll,n=this.tableData,r=this.virtualScrollBufferCount,i=this.virtualScrollEndIndex;return t&&(e=Math.min(n.length-i,r)),e},getVirtualViewPhantom:function(){var e=this,t=this.$createElement,n=null,r=this.isVirtualScroll,i=this.hasLeftFixedColumn,o=this.expandOption;if(r||i&&o){var a={props:{tagName:"div"},style:{width:"100%"},on:{"on-dom-resize-change":function(t){var n=t.width;e.tableViewportWidth=n}}};n=t("div",{ref:this.virtualPhantomRef,class:[Xt("virtual-phantom"),r?Xt("virtual-scroll"):""]},[t(Wn,a)])}return n},initVirtualScrollPositions:function(){if(this.isVirtualScroll){var e=this.virtualScrollOption,t=this.rowKeyFieldName,n=this.tableData,r=this.defaultVirtualScrollMinRowHeight,i=u(e.minRowHeight)?e.minRowHeight:r;this.virtualScrollPositions=n.map(function(e,n){return{rowKey:e[t],height:i,top:n*i,bottom:(n+1)*i}})}},bodyRowHeightChange:function(e){var t=e.rowKey,n=e.height,r=this.virtualScrollPositions.findIndex(function(e){return e.rowKey===t}),i=this.virtualScrollPositions[r].height-n;if(i){this.virtualScrollPositions[r].bottom=this.virtualScrollPositions[r].bottom-i,this.virtualScrollPositions[r].height=n;for(var o=r+1;o<this.virtualScrollPositions.length;o++)this.virtualScrollPositions[o].top=this.virtualScrollPositions[o-1].bottom,this.virtualScrollPositions[o].bottom=this.virtualScrollPositions[o].bottom-i;this.setVirtualPhantomHeight(),this.setVirtualScrollStartOffset()}},setVirtualPhantomHeight:function(){var e=0;this.virtualScrollPositions.length&&(e=this.virtualScrollPositions[this.virtualScrollPositions.length-1].bottom),this.$refs[this.virtualPhantomRef].style.height=e+"px"},setVirtualScrollStartOffset:function(){var e=this.virtualScrollStartIndex,t=this.getVirtualScrollAboveCount(),n=0;if(e>=1){var r=this.virtualScrollPositions[e].top-(this.virtualScrollPositions[e-t]?this.virtualScrollPositions[e-t].top:0);n=this.virtualScrollPositions[e-1].bottom-r}this.setTableContentTopValue({top:n})},setTableContentTopValue:function(e){var t=this,n=e.top;window.requestAnimationFrame(function(){var e=t.$refs[t.tableContentWrapperRef];e&&(e.$el.style.top="".concat(n,"px"))})},getVirtualScrollStartIndex:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.virtualScrollBinarySearch(this.virtualScrollPositions,e)},virtualScrollBinarySearch:function(e,t){for(var n=0,r=e.length-1,i=null;n<=r;){var o=parseInt((n+r)/2),a=e[o].bottom;if(a===t)return o+1;a<t?n=o+1:a>t&&((null===i||i>o)&&(i=o),r-=1)}return i},tableContainerVirtualScrollHandler:function(e){var t=this.virtualScrollVisibleCount,n=this.virtualScrollOption,r=e.scrollTop,i=this.getVirtualScrollStartIndex(r);this.virtualScrollStartIndex=i;var o=i+t;this.virtualScrollEndIndex=o;var a=this.getVirtualScrollAboveCount(),s=this.getVirtualScrollBelowCount();if(this.setVirtualScrollStartOffset(),!this.showVirtualScrollingPlaceholder){var c=this.$refs[this.tableBodyRef];c&&c.renderingRowKeys(this.allRowKeys.slice(i-a,o+s))}var u=n.scrolling;if(l(u)){var d=this.getVirtualScrollAboveCount(),f=i-d;u({startRowIndex:f>0?f:0,visibleStartIndex:i,visibleEndIndex:o,visibleAboveCount:d,visibleBelowCount:this.getVirtualScrollBelowCount()})}this.setVirtualScrollVisibleData()},debounceScrollEnded:function(){var e=this.disablePointerEventsTimeoutId;e&&Tn(e.id),this.disablePointerEventsTimeoutId=function(e,t){var n;Promise.resolve().then(function(){n=Date.now()});var r={id:jn(function t(){Date.now()-n>=150?e.call():r.id=jn(t)})};return r}(this.debounceScrollEndedCallback)},debounceScrollEndedCallback:function(){this.disablePointerEventsTimeoutId=null,this.showVirtualScrollingPlaceholder=!1},initVirtualScroll:function(){var e=this;this.isVirtualScroll&&(this.virtualScrollStartIndex=0,this.virtualScrollEndIndex=0+this.virtualScrollVisibleCount,this.$nextTick(function(){var t=e.$refs[e.tableContainerRef];e.tableContainerVirtualScrollHandler(t),e.setVirtualPhantomHeight()}))},setScrolling:function(e){if(this.hasFixedColumn){var t=e.scrollWidth,n=e.clientWidth,r=e.scrollLeft,i=this.previewTableContainerScrollLeft;0!==i&&i===r||(this.previewTableContainerScrollLeft=r,this.isLeftScrolling=r>0,this.isRightScrolling=t-n>r),this.isLeftScrolling=r>0,this.isRightScrolling=t-n>r}if(this.fixedHeader){var o=e.scrollTop;this.isVerticalScrolling=o>0}},setScrollBarStatus:function(){var e=this.$refs[this.tableContainerRef];if(e){var t=e.scrollWidth,n=e.clientWidth,r=e.scrollHeight,i=e.clientHeight;t&&n&&(this.hasXScrollBar=!!(t-n)),r&&i&&(this.hasYScrollBar=!!(r-i))}},initScrolling:function(){this.setScrolling(this.$refs[this.tableContainerRef])},tableClickOutside:function(e){if(t=e,n=!1,r=document.querySelectorAll(".ve-contextmenu-popper"),[].forEach.call(r,function(e){e.contains(t.target)&&(n=!0)}),n)return!1;var t,n,r;this.isHeaderCellMousedown=!1,this.isBodyCellMousedown=!1,this.isBodyOperationColumnMousedown=!1,this.isAutofillStarting=!1,this.setIsColumnResizing(!1),this.clearCellSelectionCurrentCell(),this.clearCellSelectionNormalEndCell(),this.clearHeaderIndicatorColKeys(),this.clearBodyIndicatorRowKeys(),this[qt]()},saveCellWhenStopEditing:function(){var e=this.colgroups,t=this.rowKeyFieldName,n=this.editOption,r=this.editingCell,i=this.isCellEditing,o=n.cellValueChange,a=n.beforeCellValueChange,s=n.afterCellValueChange;if(i){var u=r.rowKey,d=r.colKey,f=this.tableData.find(function(e){return e[t]===u});if(f){var h=e.find(function(e){return e.key===d}),p=r.row[h.field];if(l(a)){var m=a({row:Object(P.cloneDeep)(f),column:h,changeValue:p});if(c(m)&&!m)return this.clearEditingCell(),!1}f[h.field]=p,o&&o({row:f,column:h,changeValue:p}),s&&s({row:f,column:h,changeValue:p}),this.clearEditingCell()}this.enableStopEditing=!0}},cellSelectionByClick:function(e){var t=e.rowData,n=e.column,r=Jt(t,this.rowKeyFieldName);this[$t]({rowKey:r,colKey:n.key,isScrollToRow:!1}),this.rowToVisible(38,r),this.rowToVisible(40,r)},bodyCellContextmenu:function(e){e.event;var t=e.rowData,n=e.column,r=this.editOption,i=this.rowKeyFieldName;if(r){var o=Jt(t,i);this.editCellByClick({isDblclick:!1,rowKey:o,colKey:n.key})}this.setContextmenuOptions(n)},bodyCellDoubleClick:function(e){e.event;var t=e.rowData,n=e.column,r=this.editOption,i=this.rowKeyFieldName,o=this.colgroups;if(en(n.key,o))return this.clearCellSelectionCurrentCell(),this.clearCellSelectionNormalEndCell(),this[qt](),!1;if(r){var a=Jt(t,i);this.editCellByClick({isDblclick:!0,rowKey:a,colKey:n.key})}},bodyCellClick:function(e){e.event,e.rowData,e.column},bodyCellMousedown:function(e){var t=e.event,n=e.rowData,r=e.column;if(!this.enableCellSelection)return!1;var i=t.shiftKey,o=this.editOption,a=this.rowKeyFieldName,l=this.colgroups,c=this.cellSelectionData,u=this.cellSelectionRangeData,d=this.allRowKeys,f=Jt(n,a),h=r.key,p=c.currentCell,m=In(t);if(en(h,l)){this.clearHeaderIndicatorColKeys();var y=this.bodyIndicatorRowKeys;this.isBodyOperationColumnMousedown=!0;var v=y.startRowKey,g=y.endRowKey,b=y.startRowKeyIndex,_=y.endRowKeyIndex,k=v,w=g;if(i&&(b>-1||p.rowIndex>-1))k=s(p.rowKey)?v:p.rowKey,w=f;else{var x=d.indexOf(f);(m===A||x<b||x>_)&&(k=f,w=f)}this.bodyIndicatorRowKeysChange({startRowKey:k,endRowKey:w})}else this.isBodyCellMousedown=!0,function(e){var t=e.cellData,n=e.cellSelectionRangeData,r=e.colgroups,i=e.allRowKeys,o=!0;return e.mouseEventClickType===j&&e.cellSelectionData.normalEndCell.rowIndex>-1&&(o=!fn({cellData:t,cellSelectionRangeData:n,colgroups:r,allRowKeys:i})),o}({mouseEventClickType:m,cellData:{rowKey:f,colKey:h},cellSelectionData:c,cellSelectionRangeData:u,colgroups:l,allRowKeys:d})&&(this.clearHeaderIndicatorColKeys(),this.clearBodyIndicatorRowKeys(),i&&p.rowIndex>-1?this.cellSelectionNormalEndCellChange({rowKey:f,colKey:h}):(this.cellSelectionByClick({rowData:n,column:r}),this.clearCellSelectionNormalEndCell()));o&&this.editCellByClick({isDblclick:!1,rowKey:f,colKey:h})},bodyCellMouseover:function(e){e.event;var t=e.rowData,n=e.column,r=this.rowKeyFieldName,i=this.isBodyCellMousedown,o=this.isAutofillStarting,a=this.isHeaderCellMousedown,s=this.isBodyOperationColumnMousedown,l=Jt(t,r),c=n.key;if(i){if(en(c,this.colgroups))return!1;this.cellSelectionNormalEndCellChange({rowKey:l,colKey:c})}if(s&&this.bodyIndicatorRowKeysChange({startRowKey:this.bodyIndicatorRowKeys.startRowKey,endRowKey:l}),a&&this.headerIndicatorColKeysChange({startColKey:this.headerIndicatorColKeys.startColKey,endColKey:c}),o){if(en(c,this.colgroups))return!1;this.cellSelectionAutofillCellChange({rowKey:l,colKey:c})}},bodyCellMousemove:function(e){var t=e.event,n=(e.rowData,e.column);this.hooks.triggerHook("body-cell-mousemove",{event:t,column:n})},bodyCellMouseup:function(e){e.event,e.rowData,e.column},headerCellClick:function(e){e.event,e.column},headerCellContextmenu:function(e){e.event;var t=e.column;this.setContextmenuOptions(t)},setContextmenuOptions:function(e){var t=this.contextMenuType;this.contextmenuOptions=t===Gt?function(e){var t=e.column,n=e.contextmenuHeaderOption,r=e.cellSelectionRangeData,i=e.colgroups,o=e.allRowKeys,a=e.headerIndicatorColKeys,c=e.enableHeaderContextmenu,u=e.t,d=[];if(c){var f=hn({cellSelectionRangeData:r}),h=pn({cellSelectionRangeData:r,colgroups:i,allRowKeys:o}),p=en(t.key,i),m=h.endColIndex-h.startColIndex+1,y=n.contextmenus,v=n.beforeShow,g=!s(a.startColKey),b=un({fixedType:Fe,colgroups:i,isExcludeOperationColumn:!0}),_=un({fixedType:Ke,colgroups:i,isExcludeOperationColumn:!0});l(v)&&v({isWholeColSelection:g,selectionRangeKeys:f,selectionRangeIndexes:h});var k=function(e){return[{type:Zt.SEPARATOR},{label:e("cut"),type:Zt.CUT},{label:e("copy"),type:Zt.COPY},{label:e("removeColumn"),type:Zt.REMOVE_COLUMN},{label:e("emptyColumn"),type:Zt.EMPTY_COLUMN},{label:e("hideColumn"),type:Zt.HIDE_COLUMN},{label:e("leftFixedColumnTo"),type:Zt.LEFT_FIXED_COLUMN_TO},{label:e("cancelLeftFixedColumnTo"),type:Zt.CANCEL_LEFT_FIXED_COLUMN_TO},{label:e("rightFixedColumnTo"),type:Zt.RIGHT_FIXED_COLUMN_TO},{label:e("cancelRightFixedColumnTo"),type:Zt.CANCEL_RIGHT_FIXED_COLUMN_TO}]}(u);y.forEach(function(e){var t=k.find(function(t){return t.type===e.type});if(t){var n=!0;t.type===Zt.EMPTY_COLUMN?g?t.label=t.label.replace("$1",m):n=!1:t.type===Zt.LEFT_FIXED_COLUMN_TO?p&&(t.disabled=!0):t.type===Zt.CANCEL_LEFT_FIXED_COLUMN_TO?b.length<1&&(t.disabled=!0):t.type===Zt.RIGHT_FIXED_COLUMN_TO?p&&(t.disabled=!0):t.type===Zt.CANCEL_RIGHT_FIXED_COLUMN_TO&&_.length<1&&(t.disabled=!0),n&&d.push(t)}else d.push(e)})}return d}({column:e,contextmenuHeaderOption:this.contextmenuHeaderOption,cellSelectionRangeData:this.cellSelectionRangeData,colgroups:this.colgroups,allRowKeys:this.allRowKeys,headerIndicatorColKeys:this.headerIndicatorColKeys,enableHeaderContextmenu:this.enableHeaderContextmenu,t:Ir}):function(e){var t=e.enableBodyContextmenu,n=e.contextmenuBodyOption,r=e.cellSelectionRangeData,i=e.colgroups,o=e.allRowKeys,a=e.bodyIndicatorRowKeys,c=e.t,u=[];if(t){var d=hn({cellSelectionRangeData:r}),f=pn({cellSelectionRangeData:r,colgroups:i,allRowKeys:o}),h=f.endRowIndex-f.startRowIndex+1,p=f.endColIndex-f.startColIndex+1,m=n.contextmenus,y=n.beforeShow,v=!s(a.startRowKey);l(y)&&y({isWholeRowSelection:v,selectionRangeKeys:d,selectionRangeIndexes:f});var g=function(e){return[{type:Zt.SEPARATOR},{label:e("cut"),type:Zt.CUT},{label:e("copy"),type:Zt.COPY},{label:e("insertRowAbove"),type:Zt.INSERT_ROW_ABOVE},{label:e("insertRowBelow"),type:Zt.INSERT_ROW_BELOW},{label:e("removeRow"),type:Zt.REMOVE_ROW},{label:e("emptyRow"),type:Zt.EMPTY_ROW},{label:e("removeColumn"),type:Zt.REMOVE_COLUMN},{label:e("emptyCell"),type:Zt.EMPTY_CELL}]}(c);m.forEach(function(e){var t=g.find(function(t){return t.type===e.type});if(t){var n=!0;t.type===Zt.REMOVE_ROW?t.label=t.label.replace("$1",h):t.type===Zt.EMPTY_ROW?v?t.label=t.label.replace("$1",h):n=!1:t.type===Zt.EMPTY_CELL?n=!v:t.type===Zt.REMOVE_COLUMN&&(v?n=!1:t.label=t.label.replace("$1",p)),n&&u.push(t)}else u.push(e)})}return u}({enableBodyContextmenu:this.enableBodyContextmenu,contextmenuBodyOption:this.contextmenuBodyOption,cellSelectionRangeData:this.cellSelectionRangeData,colgroups:this.colgroups,allRowKeys:this.allRowKeys,bodyIndicatorRowKeys:this.bodyIndicatorRowKeys,t:Ir})},headerCellMousedown:function(e){var t=this,n=e.event,r=e.column;if(!this.enableCellSelection)return!1;this.isHeaderCellMousedown=!0;var i,o=n.shiftKey,a=this.isGroupHeader,l=this.colgroups,c=this.headerIndicatorColKeys,u=this.cellSelectionData;this.clearBodyIndicatorRowKeys();var d=(i=a?sn({headerColumnItem:r}):[r.key])[0],f=i[i.length-1],h=u.currentCell;if(en(r.key,l))return this.clearCellSelectionCurrentCell(),this.clearCellSelectionNormalEndCell(),this.$nextTick(function(){t[Ht]()}),!1;s(c.startColKey)&&(JSON.stringify(i)!=JSON.stringify([h.colKey])&&this.$refs[this.cellSelectionRef].clearCurrentCellRect(),this.$refs[this.cellSelectionRef].clearNormalEndCellRect());var p=c.startColKey,m=c.endColKey,y=c.startColKeyIndex,v=c.endColKeyIndex,g=p,b=m;if(o)if(s(p))if(s(h.colKey))g=d,b=f;else{var _=bn({colgroups:l,colKeys:i.concat([h.colKey])});g=h.colKey,b=_===h.colKey?f:d}else g=p,b=bn({colgroups:l,colKeys:i.concat([p])})===p?f:d;else{var k=In(n),w=l.findIndex(function(e){return e.key===f}),x=l.findIndex(function(e){return e.key===d});(k===A||w<y||x<y||w>v||x>v)&&(g=d,b=f)}this.headerIndicatorColKeysChange({startColKey:g,endColKey:b})},headerCellMouseover:function(e){e.event;var t,n,r=e.column,i=this.colgroups,o=this.isGroupHeader,a=this.isHeaderCellMousedown,s=this.headerIndicatorColKeys;a&&!en(r.key,i)&&(n=bn({colgroups:i,colKeys:(t=o?sn({headerColumnItem:r}):[r.key]).concat([s.startColKey])})===s.startColKey?t[t.length-1]:t[0],this.headerIndicatorColKeysChange({startColKey:this.headerIndicatorColKeys.startColKey,endColKey:n}))},headerCellMousemove:function(e){var t=e.event,n=e.column;this.hooks.triggerHook(Mt,{event:t,column:n})},headerCellMouseleave:function(e){e.event,e.column},headerMouseleave:function(e){this.setIsColumnResizerHover(!1)},tableContainerMouseup:function(){this.isHeaderCellMousedown=!1,this.isBodyCellMousedown=!1,this.isBodyOperationColumnMousedown=!1,this.isAutofillStarting=!1},cellSelectionCornerMousedown:function(e){e.event,this.isAutofillStarting=!0},cellSelectionCornerMouseup:function(e){e.event,this.isAutofillStarting=!1},isEditColumn:function(e){return this.colgroups.some(function(t){return t.key===e&&t.edit})},editCellByClick:function(e){var t=e.isDblclick,n=e.rowKey,r=e.colKey,i=this.editOption,o=this.isCellEditing,a=this.hasEditColumn,l=this.editingCell,c=this.isEditColumn;return!!i&&!!a&&!s(n)&&!s(r)&&(!l||l.rowKey!=n||l.colKey!=r)&&(o&&this[qt](),void(t&&c(r)?(this.enableStopEditing=!1,this[Ut]({rowKey:n,colKey:r})):this.enableStopEditing=!0))},setEditingCell:function(e){var t=e.rowKey,n=e.colKey,r=e.column,i=e.row;this.editingCell={rowKey:t,row:Object(P.cloneDeep)(i),colKey:n,column:r}},updateEditingCellValue:function(e){var t=this.editingCell,n=t.row;n[t.column.field]=e,this.editingCell.row=n},clearEditingCell:function(){this.editingCell={rowKey:"",colKey:"",row:null,column:null}},contextmenuItemClick:function(e){this.contextMenuType===Gt?this.headerContextmenuItemClick(e):this.bodyContextmenuItemClick(e)},headerContextmenuItemClick:function(e){var t=this.contextmenuHeaderOption,n=this.cellSelectionData,r=this.cellSelectionRangeData,i=this.allRowKeys,o=this.colgroups,a=this.enableColumnResize,u=n.currentCell,d=u.rowKey,f=u.colKey,h=t.afterMenuClick;if(!s(d)&&!s(f)){var p=hn({cellSelectionRangeData:r}),m=pn({cellSelectionRangeData:r,colgroups:o,allRowKeys:i});if(l(h)){var y=h({type:e,selectionRangeKeys:p,selectionRangeIndexes:m});if(c(y)&&!y)return!1}var v=this.$refs[this.editInputRef];Zt.CUT===e?(v.textareaSelect(),document.execCommand("cut")):Zt.COPY===e?(v.textareaSelect(),document.execCommand("copy")):Zt.EMPTY_COLUMN===e?this.deleteCellSelectionRangeValue():Zt.LEFT_FIXED_COLUMN_TO===e?this.cloneColumns=kn({cloneColumns:this.cloneColumns,cellSelectionRangeData:r,fixedType:Fe,colgroups:o,enableColumnResize:a}):Zt.CANCEL_LEFT_FIXED_COLUMN_TO===e?this.cloneColumns=wn({cloneColumns:this.cloneColumns,colgroups:o,fixedType:Fe,enableColumnResize:a}):Zt.RIGHT_FIXED_COLUMN_TO===e?this.cloneColumns=kn({cloneColumns:this.cloneColumns,cellSelectionRangeData:r,fixedType:Ke,colgroups:o,enableColumnResize:a}):Zt.CANCEL_RIGHT_FIXED_COLUMN_TO===e&&(this.cloneColumns=wn({cloneColumns:this.cloneColumns,colgroups:o,fixedType:Ke,enableColumnResize:a}))}},bodyContextmenuItemClick:function(e){var t=this.contextmenuBodyOption,n=this.cellSelectionData,r=this.cellSelectionRangeData,i=this.tableData,o=this.allRowKeys,a=this.colgroups,u=this.rowKeyFieldName,d=n.currentCell,f=d.rowKey,h=d.colKey,p=t.afterMenuClick;if(!s(f)&&!s(h)){var m=hn({cellSelectionRangeData:r}),y=pn({cellSelectionRangeData:r,colgroups:a,allRowKeys:o});if(l(p)){var v=p({type:e,selectionRangeKeys:m,selectionRangeIndexes:y});if(c(v)&&!v)return!1}var g=y.startRowIndex,b=y.endRowIndex,_=o.findIndex(function(e){return e===f}),k=this.$refs[this.editInputRef];Zt.CUT===e?(k.textareaSelect(),document.execCommand("cut")):Zt.COPY===e?(k.textareaSelect(),document.execCommand("copy")):Zt.REMOVE_ROW===e?i.splice(g,b-g+1):Zt.EMPTY_ROW===e||Zt.EMPTY_CELL===e?this.deleteCellSelectionRangeValue():Zt.INSERT_ROW_ABOVE===e?i.splice(_,0,an({colgroups:a,rowKeyFieldName:u})):Zt.INSERT_ROW_BELOW===e&&i.splice(_+1,0,an({colgroups:a,rowKeyFieldName:u}))}},editorCopy:function(e){var t=this.isCellEditing,n=this.enableClipboard,r=this.clipboardOption,i=this.cellSelectionRangeData,o=this.tableData,a=this.colgroups,s=this.allRowKeys;if(!n)return!1;if(t)return!1;var u=r||{},d=u.copy,f=u.beforeCopy,h=u.afterCopy;if(c(d)&&!d)return!1;e.preventDefault();var p=mn({cellSelectionRangeData:i,resultType:"flat",tableData:o,colgroups:a,allRowKeys:s}),m=function(e){var t=e.cellSelectionRangeData,n=e.selectionRangeData,r=e.colgroups,i=e.allRowKeys,o=t.leftColKey,a=t.rightColKey,s=t.topRowKey,l=t.bottomRowKey;return{selectionRangeIndexes:{startColIndex:r.findIndex(function(e){return e.key===o}),endColIndex:r.findIndex(function(e){return e.key===a}),startRowIndex:i.indexOf(s),endRowIndex:i.indexOf(l)},selectionRangeKeys:{startColKey:o,endColKey:a,startRowKey:s,endRowKey:l},data:n}}({cellSelectionRangeData:i,selectionRangeData:p,colgroups:a,allRowKeys:s});if(l(f)){var y=f(m);if(c(y)&&!y)return!1}!function(e){var t=e.event,n=An(e.selectionRangeData);t.clipboardData?t.clipboardData.setData("text/plain",n):window.clipboardData&&window.clipboardData.setData("Text",n)}({event:e,selectionRangeData:p}),l(h)&&h(m)},editorPaste:function(e){var t=this.isCellEditing,n=this.enableClipboard,r=this.clipboardOption;if(!n)return!1;if(t)return!1;var i=r||{},o=i.paste,a=i.beforePaste,s=i.afterPaste;if(c(o)&&!o)return!1;e.preventDefault();var u,d,f,h,p,m=function(e){var t,n=e.event,r=e.cellSelectionRangeData,i=e.colgroups,o=e.allRowKeys;if(n.clipboardData?t=n.clipboardData.getData("text/plain"):window.clipboardData&&(t=window.clipboardData.getData("Text")),"string"!=typeof t)return null;var a=function(e){var t=[[""]];if(0===e.length)return t;for(var n,r=0,i=0;e.length>0&&n!==e.length;)if(n=e.length,e.match(Sn))e=e.replace(Sn,""),r+=1,t[i][r]="";else if(e.match(xn))e=e.replace(xn,""),r=0,t[i+=1]=[""];else{var o="";if(e.startsWith('"')){for(var a=0,s=!0;s;){var l=e.slice(0,1);'"'===l&&(a+=1),o+=l,(0===(e=e.slice(1)).length||e.match(/^[\t\r\n]/)&&a%2==0)&&(s=!1)}o=o.replace(/^"/,"").replace(/"$/,"").replace(/["]*/g,function(e){return new Array(Math.floor(e.length/2)).fill('"').join("")})}else{var c=e.match(Cn);o=c?c[0]:"",e=e.slice(o.length)}t[i][r]=o}return Array.isArray(t)&&t.length>1&&1===t[t.length-1].length&&""===t[t.length-1][0]&&(t=t.slice(0,t.length-1)),t}(t),s=i.findIndex(function(e){return e.key===r.leftColKey}),l=Math.min(s+a[0].length-1,i.length-1),c=o.indexOf(r.topRowKey),u=Math.min(c+a.length-1,o.length-1),d={selectionRangeIndexes:{startColIndex:s,endColIndex:l,startRowIndex:c,endRowIndex:u},selectionRangeKeys:{startColKey:i[s].key,endColKey:i[l].key,startRowKey:o[c],endRowKey:o[u]},data:[]},f=i.slice(s,l+1).map(function(e){return e.field});return d.data=a.slice(0,u-c+1).map(function(e){var t={};return e.forEach(function(e,n){n<=l-s&&(t[f[n]]=e)}),t}),d}({event:e,cellSelectionRangeData:this.cellSelectionRangeData,colgroups:this.colgroups,allRowKeys:this.allRowKeys,rowKeyFieldName:this.rowKeyFieldName});if(m&&Array.isArray(m.data)&&m.data.length){if(l(a)){var y=a(m);if(c(y)&&!y)return!1}u={tableData:this.tableData,beforePasteResponse:m},d=u.tableData,h=(f=u.beforePasteResponse).data,p=f.selectionRangeIndexes,h.forEach(function(e,t){Object.assign(d[p.startRowIndex+t],e)}),l(s)&&s(m);var v=m.selectionRangeKeys,g=v.startColKey,b=v.endColKey,_=v.startRowKey,k=v.endRowKey;this.cellSelectionCurrentCellChange({rowKey:_,colKey:g}),this.cellSelectionNormalEndCellChange({rowKey:k,colKey:b}),this.hooks.triggerHook(Rt)}},editorCut:function(e){var t=this.isCellEditing,n=this.enableClipboard,r=this.clipboardOption,i=this.cellSelectionRangeData,o=this.tableData,a=this.colgroups,s=this.allRowKeys;if(!n)return!1;if(t)return!1;var u=r||{},d=u.cut,f=u.beforeCut,h=u.afterCut;if(c(d)&&!d)return!1;e.preventDefault();var p=mn({cellSelectionRangeData:i,resultType:"flat",tableData:o,colgroups:a,allRowKeys:s}),m=function(e){var t=e.cellSelectionRangeData,n=e.selectionRangeData,r=e.colgroups,i=e.allRowKeys,o=t.leftColKey,a=t.rightColKey,s=t.topRowKey,l=t.bottomRowKey;return{selectionRangeIndexes:{startColIndex:r.findIndex(function(e){return e.key===o}),endColIndex:r.findIndex(function(e){return e.key===a}),startRowIndex:i.indexOf(s),endRowIndex:i.indexOf(l)},selectionRangeKeys:{startColKey:o,endColKey:a,startRowKey:s,endRowKey:l},data:n}}({cellSelectionRangeData:i,selectionRangeData:p,colgroups:a,allRowKeys:s});if(l(f)){var y=f(m);if(c(y)&&!y)return!1}!function(e){var t=e.event,n=e.tableData,r=e.colgroups,i=e.selectionRangeIndexes,o=An(e.selectionRangeData),a=i.endColIndex,s=i.endRowIndex,l=i.startColIndex,c=i.startRowIndex,u=r.slice(l,a+1).map(function(e){return e.field});n.forEach(function(e,t){t>=c&&t<=s&&u.forEach(function(t){e[t]=""})}),t.clipboardData?t.clipboardData.setData("text/plain",o):window.clipboardData&&window.clipboardData.setData("Text",o)}({event:e,tableData:o,colgroups:a,selectionRangeData:p,selectionRangeIndexes:m.selectionRangeIndexes}),l(h)&&h(m)},deleteCellSelectionRangeValue:function(){var e=this.isCellEditing,t=this.enableClipboard,n=this.clipboardOption,r=this.cellSelectionRangeData,i=this.tableData,o=this.colgroups,a=this.allRowKeys;if(!t)return!1;if(e)return!1;var s=n||{},u=s.delete,d=s.beforeDelete,f=s.afterDelete;if(c(u)&&!u)return!1;var h=function(e){var t=e.cellSelectionRangeData,n=e.selectionRangeData,r=e.colgroups,i=e.allRowKeys,o=t.leftColKey,a=t.rightColKey,s=t.topRowKey,l=t.bottomRowKey;return{selectionRangeIndexes:{startColIndex:r.findIndex(function(e){return e.key===o}),endColIndex:r.findIndex(function(e){return e.key===a}),startRowIndex:i.indexOf(s),endRowIndex:i.indexOf(l)},selectionRangeKeys:{startColKey:o,endColKey:a,startRowKey:s,endRowKey:l},data:n}}({cellSelectionRangeData:r,selectionRangeData:mn({cellSelectionRangeData:r,resultType:"flat",tableData:i,colgroups:o,allRowKeys:a}),colgroups:o,allRowKeys:a});if(l(d)){var p=d(h);if(c(p)&&!p)return!1}!function(e){var t=e.tableData,n=e.colgroups,r=e.selectionRangeIndexes,i=r.endColIndex,o=r.endRowIndex,a=r.startColIndex,s=r.startRowIndex,l=n.slice(a,i+1).map(function(e){return e.field});t.forEach(function(e,t){t>=s&&t<=o&&l.forEach(function(t){e[t]=""})})}({tableData:i,colgroups:o,selectionRangeIndexes:h.selectionRangeIndexes}),l(f)&&f(h)},setRangeCellSelectionByHeaderIndicator:function(){var e=this.headerIndicatorColKeys,t=this.allRowKeys,n=e.startColKey,r=e.endColKey;if(s(n)||s(r))return!1;this.cellSelectionCurrentCellChange({rowKey:t[0],colKey:n}),this.cellSelectionNormalEndCellChange({rowKey:t[t.length-1],colKey:r})},setRangeCellSelectionByBodyIndicator:function(){var e=this.bodyIndicatorRowKeys,t=this.colgroups,n=e.startRowKey,r=e.endRowKey;if(s(n)||s(r))return!1;t.length>1&&(this.cellSelectionCurrentCellChange({rowKey:n,colKey:t[1].key}),this.cellSelectionNormalEndCellChange({rowKey:r,colKey:t[t.length-1].key}))},setIsColumnResizerHover:function(e){this.isColumnResizerHover=e},setIsColumnResizing:function(e){this.isColumnResizing=e}},Dr(Or,$t,function(e){var t=e.rowKey,n=e.colKey,r=e.isScrollToRow,i=void 0===r||r;if(!this.enableCellSelection)return!1;if(!s(t)&&!s(n)){this.cellSelectionCurrentCellChange({rowKey:t,colKey:n});var o=Qt(n,this.colgroups);this.columnToVisible(o),i&&this[zt]({rowKey:t})}}),Dr(Or,"setRangeCellSelection",function(e){var t=e.startRowKey,n=e.startColKey,r=e.endRowKey,i=e.endColKey,o=e.isScrollToStartCell,a=void 0!==o&&o;if(!this.enableCellSelection)return!1;if(s(t)||s(n)||s(r)||s(i))return!1;if(this.cellSelectionCurrentCellChange({rowKey:t,colKey:n}),this.cellSelectionNormalEndCellChange({rowKey:r,colKey:i}),a){var l=Qt(n,this.colgroups);this.columnToVisible(l),this[zt]({rowKey:t})}}),Dr(Or,"getRangeCellSelection",function(){var e=this.cellSelectionData,t=this.cellSelectionRangeData,n=this.allRowKeys,r=this.colgroups,i=e.currentCell,o=i.rowKey,a=i.colKey;if(!s(o)&&!s(a))return{selectionRangeKeys:hn({cellSelectionRangeData:t}),selectionRangeIndexes:pn({cellSelectionRangeData:t,colgroups:r,allRowKeys:n})}}),Dr(Or,Ht,function(){if(!this.enableCellSelection)return!1;var e=this.colgroups,t=this.allRowKeys;if(e.length){var n=e.filter(function(e){return!e.operationColumn}).map(function(e){return e.key});n.length&&this.headerIndicatorColKeysChange({startColKey:n[0],endColKey:n[n.length-1]})}t.length&&this.bodyIndicatorRowKeysChange({startRowKey:t[0],endRowKey:t[t.length-1]})}),Dr(Or,"hideColumnsByKeys",function(e){a(e)||(this.hiddenColumns=Array.from(new Set(this.hiddenColumns.concat(e))),this.showOrHideColumns())}),Dr(Or,"showColumnsByKeys",function(e){if(!a(e)){for(var t=e.length-1;t>=0;t--){var n=this.hiddenColumns.indexOf(e[t]);n>-1&&this.hiddenColumns.splice(n,1)}this.showOrHideColumns()}}),Dr(Or,"scrollTo",function(e){f(this.$refs[this.tableContainerRef],e)}),Dr(Or,zt,function(e){var t=e.rowKey;if(s(t))return console.warn("Row key can't be empty!"),!1;var n=0,r=this.isVirtualScroll,i=this.headerTotalHeight,o=this.$refs[this.tableContainerRef];if(r){var a=this.virtualScrollPositions.find(function(e){return e.rowKey===t});a&&(n=a.top),setTimeout(function(){f(o,{top:n,behavior:"auto"})},200)}else{var l=this.$el.querySelector("tbody tr[".concat(Vt,'="').concat(t,'"]'));n=l.offsetTop-i}f(o,{top:n,behavior:r?"auto":"smooth"})}),Dr(Or,"scrollToColKey",function(e){var t=Qt(e.colKey,this.colgroups);t&&this.columnToVisible(t)}),Dr(Or,Ut,function(e){var t=e.rowKey,n=e.colKey,r=e.defaultValue,i=this.editOption,o=this.colgroups,a=this.rowKeyFieldName,s=this.editingCell,l=this.cellSelectionData;if(!i)return!1;var c=this.tableData.find(function(e){return e[a]===t});if(c=Object(P.cloneDeep)(c),s.rowKey===t&&s.colKey===n)return!1;var u=o.find(function(e){return e.key===n});if(!u.edit)return!1;null!=r?(this.editorInputStartValue=r,c[u.field]=r):this.editorInputStartValue=c[u.field],l.currentCell.colKey===n&&l.currentCell.rowKey===t||this.cellSelectionCurrentCellChange({rowKey:t,colKey:n}),this.setEditingCell({rowKey:t,colKey:n,column:u,row:Object(P.cloneDeep)(c)})}),Dr(Or,qt,function(){var e=this.editOption,t=this.isCellEditing;if(!e)return!1;this.editorInputStartValue="",t&&this.saveCellWhenStopEditing()}),Dr(Or,Wt,function(e){var t=e.rowKey;this.highlightRowKey=t}),Or),created:function(){this.debouncedBodyCellWidthChange=Object(P.debounce)(this.bodyCellWidthChange,0)},mounted:function(){var e=this;this.parentRendered=!0,this.contextmenuEventTarget=this.$el.querySelector(".".concat(Xt("content"))),this.hooks=new Dn,this.$on(ht,function(t){e.updateColgroupsBySortChange(t)}),this.$on(ut,function(t){e.selectedAllChange(t)}),this.$on(dt,function(t){e.setSelectedAllInfo(t)}),this.$on(Xe,function(t){var n=t.rowIndex,r=t.height;e.headerRowHeightChange({rowIndex:n,height:r})}),this.$on(Qe,function(t){var n=t.rowKey,r=t.height;e.bodyRowHeightChange({rowKey:n,height:r})}),this.$on(Je,function(t){var n=t.rowIndex,r=t.height;e.footRowHeightChange({rowIndex:n,height:r})}),this.$on(tt,function(t){e.bodyCellClick(t)}),this.$on(nt,function(t){e.bodyCellMouseover(t)}),this.$on(rt,function(t){e.bodyCellMousedown(t)}),this.$on(it,function(t){e.bodyCellMousemove(t)}),this.$on(ot,function(t){e.bodyCellMouseup(t)}),this.$on(Ot,function(t){e.cellSelectionCornerMousedown(t)}),this.$on(jt,function(t){e.cellSelectionCornerMouseup(t)}),this.$on(Tt,function(t){e.autofillingDirectionChange(t)}),this.$on(st,function(t){e.bodyCellContextmenu(t)}),this.$on(at,function(t){e.bodyCellDoubleClick(t)}),this.$on(mt,function(t){e.headerCellClick(t)}),this.$on(yt,function(t){e.headerCellContextmenu(t)}),this.$on(vt,function(t){e.headerCellMousedown(t)}),this.$on(gt,function(t){e.headerCellMouseover(t)}),this.$on(bt,function(t){e.headerCellMousemove(t)}),this.$on(_t,function(t){e.headerCellMouseleave(t)}),document.addEventListener("keydown",this.dealKeydownEvent),this.initScrolling()},destroyed:function(){document.removeEventListener("keydown",this.dealKeydownEvent)},render:function(){var e,t,n=this,r=arguments[0],i=this.showHeader,o=this.tableViewportWidth,a=this.tableContainerStyle,s=this.tableStyle,l=this.tableClass,c=this.colgroups,u=this.groupColumns,d=this.fixedHeader,f=this.fixedFooter,h=this.actualRenderTableData,p=this.debouncedBodyCellWidthChange,m=this.expandOption,y=this.checkboxOption,v=this.radioOption,g=this.rowKeyFieldName,b=this.virtualScrollOption,_=this.isVirtualScroll,k=this.sortOption,w=this.cellStyleOption,x=this.showVirtualScrollingPlaceholder,C=this.cellSelectionData,S=this.editOption,A=this.contextmenuOptions,O=this.allRowKeys,j=this.enableCellSelection,T=this.enableColumnResize,E=this.cellSelectionRangeData,D=this.headerIndicatorColKeys,I=this.bodyIndicatorRowKeys,R={class:Xt("header"),style:{cursor:this.isColumnResizerHover||this.isColumnResizing?"col-resize":""},props:{columnsOptionResetTime:this.columnsOptionResetTime,tableViewportWidth:o,groupColumns:u,colgroups:c,isGroupHeader:this.isGroupHeader,fixedHeader:d,checkboxOption:y,sortOption:k,cellStyleOption:w,eventCustomOption:this.eventCustomOption,headerRows:this.headerRows,cellSelectionData:C,cellSelectionRangeData:E,headerIndicatorColKeys:D},nativeOn:{click:function(){n[qt]()},mouseleave:function(e){n.headerMouseleave(e)}}},M={ref:this.tableBodyRef,class:[Xt("body"),this.tableBodyClass],props:{tableViewportWidth:o,columnsOptionResetTime:this.columnsOptionResetTime,colgroups:c,expandOption:m,checkboxOption:y,actualRenderTableData:h,rowKeyFieldName:g,radioOption:v,virtualScrollOption:b,isVirtualScroll:_,cellStyleOption:w,cellSpanOption:this.cellSpanOption,eventCustomOption:this.eventCustomOption,cellSelectionOption:this.cellSelectionOption,hasFixedColumn:this.hasFixedColumn,cellSelectionData:C,cellSelectionRangeData:E,allRowKeys:O,editOption:S,highlightRowKey:this.highlightRowKey,showVirtualScrollingPlaceholder:x,bodyIndicatorRowKeys:I},on:(e={},Dr(e,Ye,p),Dr(e,kt,this[Wt]),e)},P={class:[Xt("footer")],props:{colgroups:c,footerData:this.footerData,rowKeyFieldName:g,cellStyleOption:w,fixedFooter:f,cellSpanOption:this.cellSpanOption,eventCustomOption:this.eventCustomOption,hasFixedColumn:this.hasFixedColumn,allRowKeys:O,footerRows:this.footerRows},nativeOn:{click:function(){n[qt]()}}},L={ref:this.tableRootRef,class:{"vue-table-root":!0}},B={ref:this.tableContainerWrapperRef,style:this.tableContainerWrapperStyle,class:Dr({"ve-table":!0},Xt("border-around"),this.borderAround),props:{tagName:"div"},on:{"on-dom-resize-change":function(e){var t=e.height;n.tableOffestHeight=t,n.initVirtualScroll(),n.initScrolling(),n.setScrollBarStatus(),n.hooks.triggerHook(Dt)}},directives:[{name:"click-outside",value:function(e){n.tableClickOutside(e)}}]},N={ref:this.tableContainerRef,class:this.tableContainerClass,style:a,on:{scroll:function(){var e=n.$refs[n.tableContainerRef];if(n.hooks.triggerHook(Et,e),n.setScrolling(e),_){n.tableContainerVirtualScrollHandler(e);var t=n.virtualScrollStartIndex,r=n.previewVirtualScrollStartIndex,i=Math.abs(t-r);n.previewVirtualScrollStartIndex=t,i>n.defaultPlaceholderPerScrollingRowCount?n.showVirtualScrollingPlaceholder=!0:n.showVirtualScrollingPlaceholder=!1,n.debounceScrollEnded()}},mouseup:function(){n.tableContainerMouseup()},mousemove:function(e){}}},F={ref:this.tableContentWrapperRef,class:[Xt("content-wrapper")],props:{tagName:"div"},on:{"on-dom-resize-change":function(e){var t=e.height;n.tableHeight=t}}},K={ref:this.tableRef,class:[Xt("content"),l],style:s},V={ref:this.cellSelectionRef,props:{tableEl:this.$refs[this.tableRef],allRowKeys:O,colgroups:c,parentRendered:this.parentRendered,hooks:this.hooks,cellSelectionData:C,isAutofillStarting:this.isAutofillStarting,cellSelectionRangeData:E,currentCellSelectionType:this.currentCellSelectionType,showVirtualScrollingPlaceholder:x,isVirtualScroll:_,virtualScrollVisibleIndexs:this.virtualScrollVisibleIndexs,isCellEditing:this.isCellEditing,cellAutofillOption:this.cellAutofillOption},on:Dr({},pt,function(e){n.cellSelectionRangeDataChange(e)})},z={ref:this.editInputRef,props:{hooks:this.hooks,parentRendered:this.parentRendered,inputStartValue:this.editorInputStartValue,rowKeyFieldName:g,tableData:this.tableData,cellSelectionData:C,colgroups:c,editingCell:this.editingCell,isCellEditing:this.isCellEditing,allRowKeys:O,hasXScrollBar:this.hasXScrollBar,hasYScrollBar:this.hasYScrollBar,hasRightFixedColumn:this.hasRightFixedColumn,scrollBarWidth:this.getScrollBarWidth()},on:(t={},Dr(t,wt,function(){n.enableStopEditing=!1}),Dr(t,xt,function(e){n.updateEditingCellValue(e)}),Dr(t,Ct,function(e){n.editorCopy(e)}),Dr(t,St,function(e){n.editorPaste(e)}),Dr(t,At,function(e){n.editorCut(e)}),t)},U={ref:this.contextmenuRef,props:{eventTarget:this.contextmenuEventTarget,options:A},on:{"on-node-click":function(e){n.contextmenuItemClick(e)}}},q={props:{parentRendered:this.parentRendered,tableContainerEl:this.$refs[this.tableContainerRef],hooks:this.hooks,colgroups:c,isColumnResizerHover:this.isColumnResizerHover,isColumnResizing:this.isColumnResizing,setIsColumnResizerHover:this.setIsColumnResizerHover,setIsColumnResizing:this.setIsColumnResizing,setColumnWidth:this.setColumnWidth,columnWidthResizeOption:this.columnWidthResizeOption}};return r("div",L,[r(Wn,B,[r("div",N,[this.getVirtualViewPhantom(),r(Wn,F,[r("table",K,[r(Mn,{attrs:{colgroups:c,enableColumnResize:T}}),i&&r(Hn,R),r(sr,M),r(hr,P)]),j&&r(xr,V)])]),j&&r(vr,z),(this.enableHeaderContextmenu||this.enableBodyContextmenu)&&r(Sr.a,U),T&&r(jr,q)])])},install:function(e){e.component(Rr.name,Rr)}},Mr=Rr,Pr="2.24.0",Lr=[y,b,F,Y,Q,fe,ve,Ae,Ee,Le,Mr],Br=function(e){Lr.forEach(function(t){e.use(t)}),e.prototype.$veLoading=fe,e.prototype.$veLocale=ve};"undefined"!=typeof window&&window.Vue&&Br(window.Vue),t.default={install:Br,version:Pr,VeCheckbox:y,VeCheckboxGroup:b,VeContextmenu:F,VeDropdown:Y,VeIcon:Q,VeLoading:fe,VeLocale:ve,VePagination:Ae,VeRadio:Ee,VeSelect:Le,VeTable:Mr}}]).default},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},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="",n(n.s=190)}([,function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(this,n(73))},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(1),i=n(29),o=n(4),a=n(33),s=n(40),l=n(56),c=i("wks"),u=r.Symbol,d=l?u:u&&u.withoutSetter||a;e.exports=function(e){return o(c,e)&&(s||"string"==typeof c[e])||(s&&o(u,e)?c[e]=u[e]:c[e]=d("Symbol."+e)),c[e]}},function(e,t,n){var r=n(12),i={}.hasOwnProperty;e.exports=function(e,t){return i.call(r(e),t)}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(7),i=n(47),o=n(9),a=n(17),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(o(e),t=a(t,!0),o(n),i)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(2);e.exports=!r(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},function(e,t,n){var r=n(1),i=n(19).f,o=n(10),a=n(14),s=n(32),l=n(61),c=n(51);e.exports=function(e,t){var n,u,d,f,h,p=e.target,m=e.global,y=e.stat;if(n=m?r:y?r[p]||s(p,{}):(r[p]||{}).prototype)for(u in t){if(f=t[u],d=e.noTargetGet?(h=i(n,u))&&h.value:n[u],!c(m?u:p+(y?".":"#")+u,e.forced)&&void 0!==d){if(typeof f==typeof d)continue;l(f,d)}(e.sham||d&&d.sham)&&o(f,"sham",!0),a(n,u,f,e)}}},function(e,t,n){var r=n(5);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,n){var r=n(7),i=n(6),o=n(18);e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(35),i=n(13);e.exports=function(e){return r(i(e))}},function(e,t,n){var r=n(13);e.exports=function(e){return Object(r(e))}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(1),i=n(10),o=n(4),a=n(32),s=n(46),l=n(26),c=l.get,u=l.enforce,d=String(String).split("String");(e.exports=function(e,t,n,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,h=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||o(n,"name")||i(n,"name",t),(l=u(n)).source||(l.source=d.join("string"==typeof t?t:""))),e!==r?(c?!h&&e[t]&&(f=!0):delete e[t],f?e[t]=n:i(e,t,n)):f?e[t]=n:a(t,n)})(Function.prototype,"toString",function(){return"function"==typeof this&&c(this).source||s(this)})},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(25),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){var r=n(5);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")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(7),i=n(42),o=n(18),a=n(11),s=n(17),l=n(4),c=n(47),u=Object.getOwnPropertyDescriptor;t.f=r?u:function(e,t){if(e=a(e),t=s(t,!0),c)try{return u(e,t)}catch(e){}if(l(e,t))return o(!i.f.call(e,t),e[t])}},function(e,t,n){"use strict";n.d(t,"b",function(){return r}),n.d(t,"a",function(){return i}),n.d(t,"c",function(){return o});var r={BACK_SPACE:8,TAB:9,ENTER:13,SHIFT:16,SPACE:32,ARROW_LEFT:37,ARROW_UP:38,ARROW_RIGHT:39,ARROW_DOWN:40,DELETE:46,F2:113},i={FILTER:"filter",DOUBLE_RIGHT_ARROW:"double-right-arrow",DOUBLE_LEFT_ARROW:"double-left-arrow",TOP_ARROW:"top-arrow",RIGHT_ARROW:"right-arrow",BOTTOM_ARROW:"bottom-arrow",LEFT_ARROW:"left-arrow",SORT_TOP_ARROW:"sort-top-arrow",SORT_BOTTOM_ARROW:"sort-bottom-arrow",SEARCH:"search"},o={LEFT_MOUSE:1,MIDDLE_MOUSE:2,RIGHT_MOUSE:2}},function(e,t){e.exports={}},function(e,t,n){var r=n(53),i=n(1),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e])||o(i[e]):r[e]&&r[e][t]||i[e]&&i[e][t]}},function(e,t,n){var r=n(29),i=n(33),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},function(e,t){e.exports=!1},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r,i,o,a=n(80),s=n(1),l=n(5),c=n(10),u=n(4),d=n(30),f=n(23),h=n(21),p=s.WeakMap;if(a||d.state){var m=d.state||(d.state=new p),y=m.get,v=m.has,g=m.set;r=function(e,t){if(v.call(m,e))throw new TypeError("Object already initialized");return t.facade=e,g.call(m,e,t),t},i=function(e){return y.call(m,e)||{}},o=function(e){return v.call(m,e)}}else{var b=f("state");h[b]=!0,r=function(e,t){if(u(e,b))throw new TypeError("Object already initialized");return t.facade=e,c(e,b,t),t},i=function(e){return u(e,b)?e[b]:{}},o=function(e){return u(e,b)}}e.exports={set:r,get:i,has:o,enforce:function(e){return o(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){var r=n(48),i=n(31).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){var r,i=n(9),o=n(81),a=n(31),s=n(21),l=n(74),c=n(45),u=n(23)("IE_PROTO"),d=function(){},f=function(e){return"<script>"+e+"<\/script>"},h=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;h=r?function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t}(r):((t=c("iframe")).style.display="none",l.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F);for(var n=a.length;n--;)delete h.prototype[a[n]];return h()};s[u]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(d.prototype=i(e),n=new d,d.prototype=null,n[u]=e):n=h(),void 0===t?n:o(n,t)}},function(e,t,n){var r=n(24),i=n(30);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.13.0",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){var r=n(1),i=n(32),o=r["__core-js_shared__"]||i("__core-js_shared__",{});e.exports=o},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,n){var r=n(1),i=n(10);e.exports=function(e,t){try{i(r,e,t)}catch(n){r[e]=t}return t}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},function(e,t,n){var r=n(69),i=n(35),o=n(12),a=n(16),s=n(55),l=[].push,c=function(e){var t=1==e,n=2==e,c=3==e,u=4==e,d=6==e,f=7==e,h=5==e||d;return function(p,m,y,v){for(var g,b,_=o(p),k=i(_),w=r(m,y,3),x=a(k.length),C=0,S=v||s,A=t?S(p,x):n||f?S(p,0):void 0;x>C;C++)if((h||C in k)&&(b=w(g=k[C],C,_),e))if(t)A[C]=b;else if(b)switch(e){case 3:return!0;case 5:return g;case 6:return C;case 2:l.call(A,g)}else switch(e){case 4:return!1;case 7:l.call(A,g)}return d?-1:c||u?u:A}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterOut:c(7)}},function(e,t,n){var r=n(2),i=n(15),o="".split;e.exports=r(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==i(e)?o.call(e,""):Object(e)}:Object},function(e,t,n){var r=n(48),i=n(31);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){var r,i,o=n(1),a=n(82),s=o.process,l=s&&s.versions,c=l&&l.v8;c?i=(r=c.split("."))[0]<4?1:r[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=r[1]),e.exports=i&&+i},function(e,t,n){"use strict";var r=n(7),i=n(1),o=n(51),a=n(14),s=n(4),l=n(15),c=n(92),u=n(17),d=n(2),f=n(28),h=n(27).f,p=n(19).f,m=n(6).f,y=n(96).trim,v=i.Number,g=v.prototype,b="Number"==l(f(g)),_=function(e){var t,n,r,i,o,a,s,l,c=u(e,!1);if("string"==typeof c&&c.length>2)if(43===(t=(c=y(c)).charCodeAt(0))||45===t){if(88===(n=c.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(c.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+c}for(a=(o=c.slice(2)).length,s=0;s<a;s++)if((l=o.charCodeAt(s))<48||l>i)return NaN;return parseInt(o,r)}return+c};if(o("Number",!v(" 0o1")||!v("0b1")||v("+0x1"))){for(var k,w=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof w&&(b?d(function(){g.valueOf.call(n)}):"Number"!=l(n))?c(new v(_(t)),n,w):_(t)},x=r?h(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),C=0;x.length>C;C++)s(v,k=x[C])&&!s(w,k)&&m(w,k,p(v,k));w.prototype=g,g.constructor=w,a(i,"Number",w)}},function(e,t,n){var r=n(15);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(37),i=n(2);e.exports=!!Object.getOwnPropertySymbols&&!i(function(){return!String(Symbol())||!Symbol.sham&&r&&r<41})},function(e,t,n){var r=n(7),i=n(6).f,o=Function.prototype,a=o.toString,s=/^\s*function ([^ (]*)/;r&&!("name"in o)&&i(o,"name",{configurable:!0,get:function(){try{return a.call(this).match(s)[1]}catch(e){return""}}})},function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},,,function(e,t,n){var r=n(1),i=n(5),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},function(e,t,n){var r=n(30),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource},function(e,t,n){var r=n(7),i=n(2),o=n(45);e.exports=!r&&!i(function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(4),i=n(11),o=n(62).indexOf,a=n(21);e.exports=function(e,t){var n,s=i(e),l=0,c=[];for(n in s)!r(a,n)&&r(s,n)&&c.push(n);for(;t.length>l;)r(s,n=t[l++])&&(~o(c,n)||c.push(n));return c}},function(e,t){t.f=Object.getOwnPropertySymbols},,function(e,t,n){var r=n(2),i=/#|\.prototype\./,o=function(e,t){var n=s[a(e)];return n==c||n!=l&&("function"==typeof t?r(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=o.data={},l=o.NATIVE="N",c=o.POLYFILL="P";e.exports=o},function(e,t,n){var r=n(2),i=n(3),o=n(37),a=i("species");e.exports=function(e){return o>=51||!r(function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo})}},function(e,t,n){var r=n(1);e.exports=r},,function(e,t,n){var r=n(5),i=n(39),o=n(3)("species");e.exports=function(e,t){var n;return i(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!i(n.prototype)?r(n)&&null===(n=n[o])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},function(e,t,n){var r=n(40);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},,function(e,t,n){var r=n(9),i=n(91);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,o){return r(n),i(o),t?e.call(n,o):n.__proto__=o,n}}():void 0)},function(e,t,n){var r=n(25),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){var r=n(4),i=n(83),o=n(19),a=n(6);e.exports=function(e,t){for(var n=i(t),s=a.f,l=o.f,c=0;c<n.length;c++){var u=n[c];r(e,u)||s(e,u,l(t,u))}}},function(e,t,n){var r=n(11),i=n(16),o=n(59),a=function(e){return function(t,n,a){var s,l=r(t),c=i(l.length),u=o(a,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},,,,,,function(e,t){e.exports=n(56)},function(e,t,n){var r=n(60);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};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)}}},,,,function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(22);e.exports=r("document","documentElement")},function(e,t,n){"use strict";var r=n(2);e.exports=function(e,t){var n=[][e];return!!n&&r(function(){n.call(null,t||function(){throw 1},1)})}},,,,,function(e,t,n){var r=n(1),i=n(46),o=r.WeakMap;e.exports="function"==typeof o&&/native code/.test(i(o))},function(e,t,n){var r=n(7),i=n(6),o=n(9),a=n(36);e.exports=r?Object.defineProperties:function(e,t){o(e);for(var n,r=a(t),s=r.length,l=0;s>l;)i.f(e,n=r[l++],t[n]);return e}},function(e,t,n){var r=n(22);e.exports=r("navigator","userAgent")||""},function(e,t,n){var r=n(22),i=n(27),o=n(49),a=n(9);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),n=o.f;return n?t.concat(n(e)):t}},,function(e,t,n){"use strict";var r=n(8),i=n(34).map;r({target:"Array",proto:!0,forced:!n(52)("map")},{map:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},,,,,,function(e,t,n){var r=n(5);e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t,n){var r=n(5),i=n(58);e.exports=function(e,t,n){var o,a;return i&&"function"==typeof(o=t.constructor)&&o!==n&&r(a=o.prototype)&&a!==n.prototype&&i(e,a),e}},,,,function(e,t,n){var r=n(13),i="["+n(97)+"]",o=RegExp("^"+i+i+"*"),a=RegExp(i+i+"*$"),s=function(e){return function(t){var n=String(r(t));return 1&e&&(n=n.replace(o,"")),2&e&&(n=n.replace(a,"")),n}};e.exports={start:s(1),end:s(2),trim:s(3)}},function(e,t){e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},,,,,,,function(e,t,n){"use strict";var r=n(8),i=n(34).filter;r({target:"Array",proto:!0,forced:!n(52)("filter")},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},,,,,,,function(e,t,n){var r=n(8),i=n(127);r({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(7),i=n(2),o=n(36),a=n(49),s=n(42),l=n(12),c=n(35),u=Object.assign,d=Object.defineProperty;e.exports=!u||i(function(){if(r&&1!==u({b:1},u(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach(function(e){t[e]=e}),7!=u({},e)[n]||"abcdefghijklmnopqrst"!=o(u({},t)).join("")})?function(e,t){for(var n=l(e),i=arguments.length,u=1,d=a.f,f=s.f;i>u;)for(var h,p=c(arguments[u++]),m=d?o(p).concat(d(p)):o(p),y=m.length,v=0;y>v;)h=m[v++],r&&!f.call(p,h)||(n[h]=p[h]);return n}:u},,,function(e,t){e.exports=n(103)},,function(e,t,n){"use strict";var r=n(8),i=n(35),o=n(11),a=n(75),s=[].join,l=i!=Object,c=a("join",",");r({target:"Array",proto:!0,forced:l||!c},{join:function(e){return s.call(o(this),void 0===e?",":e)}})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t),n(41),n(38),n(111),n(132),n(85),n(104);var r=n(130),i=n.n(r);function o(e){return"ve-select-"+e}var a=n(68),s=n.n(a),l=n(20);function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u={name:"VeSelect",props:{width:{type:Number,default:90},maxWidth:{type:Number,default:0},isMultiple:{type:Boolean,default:!1},value:{type:Array,default:null},placeholder:{type:String,default:"请选择",validator:function(e){return e.length>0}},textAlign:{type:String,default:"left"},isInput:{type:Boolean,default:!1},popperAppendTo:{type:[String,HTMLElement],default:function(){return document.body}}},data:function(){return{visible:!1,internalOptions:[],inputValue:"",dropdownVisible:!1}},computed:{iconClass:function(){var e;return c(e={},o("show"),this.dropdownVisible),c(e,o("toggle-icon"),!0),e}},watch:{value:function(){this.init()}},methods:{init:function(){this.internalOptions=Object.assign([],this.value)},showSelectInfo:function(){var e;return e=this.selectedLabels(),Array.isArray(e)&&e.length>0?e.join():this.placeholder},selectedLabels:function(){return this.internalOptions.filter(function(e){return e.selected}).map(function(e){if(e.selected)return e.label})},dropdownChange:function(){this.$emit("input",this.internalOptions),this.$emit("on-select-change",this.internalOptions)}},created:function(){this.init()},render:function(){var e,t=this,n=arguments[0],r=this.isInput,a={class:"ve-select",props:{isSelect:!0,width:this.width,maxWidth:this.maxWidth,isMultiple:this.isMultiple,textAlign:this.textAlign,isInput:this.isInput,value:this.internalOptions,hideByItemClick:!0,popperAppendTo:this.popperAppendTo},style:{width:this.width},on:{input:function(e){t.internalOptions=e,t.dropdownChange()},"dropdown-visible-change":function(e){t.dropdownVisible=e}}};return e=r?n("input",{class:o("input"),attrs:{placeholder:this.placeholder,type:"text"},directives:[{name:"model",value:this.inputValue}]}):n("span",{class:o("selected-span")},[this.showSelectInfo()]),n(i.a,a,[n("span",[e,n(s.a,{attrs:{name:l.a.BOTTOM_ARROW},class:this.iconClass})])])},install:function(e){e.component(u.name,u)}};t.default=u}])},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="",n(n.s=185)}([,function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(this,n(73))},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(1),i=n(29),o=n(4),a=n(33),s=n(40),l=n(56),c=i("wks"),u=r.Symbol,d=l?u:u&&u.withoutSetter||a;e.exports=function(e){return o(c,e)&&(s||"string"==typeof c[e])||(s&&o(u,e)?c[e]=u[e]:c[e]=d("Symbol."+e)),c[e]}},function(e,t,n){var r=n(12),i={}.hasOwnProperty;e.exports=function(e,t){return i.call(r(e),t)}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(7),i=n(47),o=n(9),a=n(17),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(o(e),t=a(t,!0),o(n),i)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(2);e.exports=!r(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},function(e,t,n){var r=n(1),i=n(19).f,o=n(10),a=n(14),s=n(32),l=n(61),c=n(51);e.exports=function(e,t){var n,u,d,f,h,p=e.target,m=e.global,y=e.stat;if(n=m?r:y?r[p]||s(p,{}):(r[p]||{}).prototype)for(u in t){if(f=t[u],d=e.noTargetGet?(h=i(n,u))&&h.value:n[u],!c(m?u:p+(y?".":"#")+u,e.forced)&&void 0!==d){if(typeof f==typeof d)continue;l(f,d)}(e.sham||d&&d.sham)&&o(f,"sham",!0),a(n,u,f,e)}}},function(e,t,n){var r=n(5);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,n){var r=n(7),i=n(6),o=n(18);e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(35),i=n(13);e.exports=function(e){return r(i(e))}},function(e,t,n){var r=n(13);e.exports=function(e){return Object(r(e))}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(1),i=n(10),o=n(4),a=n(32),s=n(46),l=n(26),c=l.get,u=l.enforce,d=String(String).split("String");(e.exports=function(e,t,n,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,h=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||o(n,"name")||i(n,"name",t),(l=u(n)).source||(l.source=d.join("string"==typeof t?t:""))),e!==r?(c?!h&&e[t]&&(f=!0):delete e[t],f?e[t]=n:i(e,t,n)):f?e[t]=n:a(t,n)})(Function.prototype,"toString",function(){return"function"==typeof this&&c(this).source||s(this)})},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(25),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){var r=n(5);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")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(7),i=n(42),o=n(18),a=n(11),s=n(17),l=n(4),c=n(47),u=Object.getOwnPropertyDescriptor;t.f=r?u:function(e,t){if(e=a(e),t=s(t,!0),c)try{return u(e,t)}catch(e){}if(l(e,t))return o(!i.f.call(e,t),e[t])}},function(e,t,n){"use strict";n.d(t,"b",function(){return r}),n.d(t,"a",function(){return i}),n.d(t,"c",function(){return o});var r={BACK_SPACE:8,TAB:9,ENTER:13,SHIFT:16,SPACE:32,ARROW_LEFT:37,ARROW_UP:38,ARROW_RIGHT:39,ARROW_DOWN:40,DELETE:46,F2:113},i={FILTER:"filter",DOUBLE_RIGHT_ARROW:"double-right-arrow",DOUBLE_LEFT_ARROW:"double-left-arrow",TOP_ARROW:"top-arrow",RIGHT_ARROW:"right-arrow",BOTTOM_ARROW:"bottom-arrow",LEFT_ARROW:"left-arrow",SORT_TOP_ARROW:"sort-top-arrow",SORT_BOTTOM_ARROW:"sort-bottom-arrow",SEARCH:"search"},o={LEFT_MOUSE:1,MIDDLE_MOUSE:2,RIGHT_MOUSE:2}},function(e,t){e.exports={}},function(e,t,n){var r=n(53),i=n(1),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e])||o(i[e]):r[e]&&r[e][t]||i[e]&&i[e][t]}},function(e,t,n){var r=n(29),i=n(33),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},function(e,t){e.exports=!1},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r,i,o,a=n(80),s=n(1),l=n(5),c=n(10),u=n(4),d=n(30),f=n(23),h=n(21),p=s.WeakMap;if(a||d.state){var m=d.state||(d.state=new p),y=m.get,v=m.has,g=m.set;r=function(e,t){if(v.call(m,e))throw new TypeError("Object already initialized");return t.facade=e,g.call(m,e,t),t},i=function(e){return y.call(m,e)||{}},o=function(e){return v.call(m,e)}}else{var b=f("state");h[b]=!0,r=function(e,t){if(u(e,b))throw new TypeError("Object already initialized");return t.facade=e,c(e,b,t),t},i=function(e){return u(e,b)?e[b]:{}},o=function(e){return u(e,b)}}e.exports={set:r,get:i,has:o,enforce:function(e){return o(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){var r=n(48),i=n(31).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){var r,i=n(9),o=n(81),a=n(31),s=n(21),l=n(74),c=n(45),u=n(23)("IE_PROTO"),d=function(){},f=function(e){return"<script>"+e+"<\/script>"},h=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;h=r?function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t}(r):((t=c("iframe")).style.display="none",l.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F);for(var n=a.length;n--;)delete h.prototype[a[n]];return h()};s[u]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(d.prototype=i(e),n=new d,d.prototype=null,n[u]=e):n=h(),void 0===t?n:o(n,t)}},function(e,t,n){var r=n(24),i=n(30);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.13.0",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){var r=n(1),i=n(32),o=r["__core-js_shared__"]||i("__core-js_shared__",{});e.exports=o},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,n){var r=n(1),i=n(10);e.exports=function(e,t){try{i(r,e,t)}catch(n){r[e]=t}return t}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},function(e,t,n){var r=n(69),i=n(35),o=n(12),a=n(16),s=n(55),l=[].push,c=function(e){var t=1==e,n=2==e,c=3==e,u=4==e,d=6==e,f=7==e,h=5==e||d;return function(p,m,y,v){for(var g,b,_=o(p),k=i(_),w=r(m,y,3),x=a(k.length),C=0,S=v||s,A=t?S(p,x):n||f?S(p,0):void 0;x>C;C++)if((h||C in k)&&(b=w(g=k[C],C,_),e))if(t)A[C]=b;else if(b)switch(e){case 3:return!0;case 5:return g;case 6:return C;case 2:l.call(A,g)}else switch(e){case 4:return!1;case 7:l.call(A,g)}return d?-1:c||u?u:A}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterOut:c(7)}},function(e,t,n){var r=n(2),i=n(15),o="".split;e.exports=r(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==i(e)?o.call(e,""):Object(e)}:Object},function(e,t,n){var r=n(48),i=n(31);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){var r,i,o=n(1),a=n(82),s=o.process,l=s&&s.versions,c=l&&l.v8;c?i=(r=c.split("."))[0]<4?1:r[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=r[1]),e.exports=i&&+i},,function(e,t,n){var r=n(15);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(37),i=n(2);e.exports=!!Object.getOwnPropertySymbols&&!i(function(){return!String(Symbol())||!Symbol.sham&&r&&r<41})},function(e,t,n){var r=n(7),i=n(6).f,o=Function.prototype,a=o.toString,s=/^\s*function ([^ (]*)/;r&&!("name"in o)&&i(o,"name",{configurable:!0,get:function(){try{return a.call(this).match(s)[1]}catch(e){return""}}})},function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},function(e,t,n){var r=n(6).f,i=n(4),o=n(3)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t,n){var r={};r[n(3)("toStringTag")]="z",e.exports="[object z]"===String(r)},function(e,t,n){var r=n(1),i=n(5),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},function(e,t,n){var r=n(30),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource},function(e,t,n){var r=n(7),i=n(2),o=n(45);e.exports=!r&&!i(function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(4),i=n(11),o=n(62).indexOf,a=n(21);e.exports=function(e,t){var n,s=i(e),l=0,c=[];for(n in s)!r(a,n)&&r(s,n)&&c.push(n);for(;t.length>l;)r(s,n=t[l++])&&(~o(c,n)||c.push(n));return c}},function(e,t){t.f=Object.getOwnPropertySymbols},,function(e,t,n){var r=n(2),i=/#|\.prototype\./,o=function(e,t){var n=s[a(e)];return n==c||n!=l&&("function"==typeof t?r(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=o.data={},l=o.NATIVE="N",c=o.POLYFILL="P";e.exports=o},function(e,t,n){var r=n(2),i=n(3),o=n(37),a=i("species");e.exports=function(e){return o>=51||!r(function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo})}},function(e,t,n){var r=n(1);e.exports=r},function(e,t,n){var r=n(1),i=n(66),o=n(98),a=n(10);for(var s in i){var l=r[s],c=l&&l.prototype;if(c&&c.forEach!==o)try{a(c,"forEach",o)}catch(e){c.forEach=o}}},function(e,t,n){var r=n(5),i=n(39),o=n(3)("species");e.exports=function(e,t){var n;return i(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!i(n.prototype)?r(n)&&null===(n=n[o])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},function(e,t,n){var r=n(40);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},,,function(e,t,n){var r=n(25),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){var r=n(4),i=n(83),o=n(19),a=n(6);e.exports=function(e,t){for(var n=i(t),s=a.f,l=o.f,c=0;c<n.length;c++){var u=n[c];r(e,u)||s(e,u,l(t,u))}}},function(e,t,n){var r=n(11),i=n(16),o=n(59),a=function(e){return function(t,n,a){var s,l=r(t),c=i(l.length),u=o(a,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t,n){var r=n(3);t.f=r},function(e,t,n){var r=n(44),i=n(14),o=n(100);r||i(Object.prototype,"toString",o,{unsafe:!0})},function(e,t,n){var r=n(3),i=n(28),o=n(6),a=r("unscopables"),s=Array.prototype;null==s[a]&&o.f(s,a,{configurable:!0,value:i(null)}),e.exports=function(e){s[a][e]=!0}},function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t,n){var r=n(53),i=n(4),o=n(63),a=n(6).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||a(t,e,{value:o.f(e)})}},function(e,t){e.exports=n(56)},function(e,t,n){var r=n(60);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};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)}}},,function(e,t,n){"use strict";var r=n(17),i=n(6),o=n(18);e.exports=function(e,t,n){var a=r(t);a in e?i.f(e,a,o(0,n)):e[a]=n}},function(e,t){e.exports=n(58)},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(22);e.exports=r("document","documentElement")},function(e,t,n){"use strict";var r=n(2);e.exports=function(e,t){var n=[][e];return!!n&&r(function(){n.call(null,t||function(){throw 1},1)})}},function(e,t,n){"use strict";var r=n(8),i=n(1),o=n(22),a=n(24),s=n(7),l=n(40),c=n(56),u=n(2),d=n(4),f=n(39),h=n(5),p=n(9),m=n(12),y=n(11),v=n(17),g=n(18),b=n(28),_=n(36),k=n(27),w=n(99),x=n(49),C=n(19),S=n(6),A=n(42),O=n(10),j=n(14),T=n(29),E=n(23),D=n(21),I=n(33),R=n(3),M=n(63),P=n(67),L=n(43),B=n(26),N=n(34).forEach,F=E("hidden"),K=R("toPrimitive"),V=B.set,z=B.getterFor("Symbol"),U=Object.prototype,q=i.Symbol,W=o("JSON","stringify"),$=C.f,H=S.f,G=w.f,Z=A.f,Y=T("symbols"),X=T("op-symbols"),J=T("string-to-symbol-registry"),Q=T("symbol-to-string-registry"),ee=T("wks"),te=i.QObject,ne=!te||!te.prototype||!te.prototype.findChild,re=s&&u(function(){return 7!=b(H({},"a",{get:function(){return H(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=$(U,t);r&&delete U[t],H(e,t,n),r&&e!==U&&H(U,t,r)}:H,ie=function(e,t){var n=Y[e]=b(q.prototype);return V(n,{type:"Symbol",tag:e,description:t}),s||(n.description=t),n},oe=c?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof q},ae=function(e,t,n){e===U&&ae(X,t,n),p(e);var r=v(t,!0);return p(n),d(Y,r)?(n.enumerable?(d(e,F)&&e[F][r]&&(e[F][r]=!1),n=b(n,{enumerable:g(0,!1)})):(d(e,F)||H(e,F,g(1,{})),e[F][r]=!0),re(e,r,n)):H(e,r,n)},se=function(e,t){p(e);var n=y(t),r=_(n).concat(de(n));return N(r,function(t){s&&!le.call(n,t)||ae(e,t,n[t])}),e},le=function(e){var t=v(e,!0),n=Z.call(this,t);return!(this===U&&d(Y,t)&&!d(X,t))&&(!(n||!d(this,t)||!d(Y,t)||d(this,F)&&this[F][t])||n)},ce=function(e,t){var n=y(e),r=v(t,!0);if(n!==U||!d(Y,r)||d(X,r)){var i=$(n,r);return!i||!d(Y,r)||d(n,F)&&n[F][r]||(i.enumerable=!0),i}},ue=function(e){var t=G(y(e)),n=[];return N(t,function(e){d(Y,e)||d(D,e)||n.push(e)}),n},de=function(e){var t=e===U,n=G(t?X:y(e)),r=[];return N(n,function(e){!d(Y,e)||t&&!d(U,e)||r.push(Y[e])}),r};l||(j((q=function(){if(this instanceof q)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=I(e),n=function(e){this===U&&n.call(X,e),d(this,F)&&d(this[F],t)&&(this[F][t]=!1),re(this,t,g(1,e))};return s&&ne&&re(U,t,{configurable:!0,set:n}),ie(t,e)}).prototype,"toString",function(){return z(this).tag}),j(q,"withoutSetter",function(e){return ie(I(e),e)}),A.f=le,S.f=ae,C.f=ce,k.f=w.f=ue,x.f=de,M.f=function(e){return ie(R(e),e)},s&&(H(q.prototype,"description",{configurable:!0,get:function(){return z(this).description}}),a||j(U,"propertyIsEnumerable",le,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:q}),N(_(ee),function(e){P(e)}),r({target:"Symbol",stat:!0,forced:!l},{for:function(e){var t=String(e);if(d(J,t))return J[t];var n=q(t);return J[t]=n,Q[n]=t,n},keyFor:function(e){if(!oe(e))throw TypeError(e+" is not a symbol");if(d(Q,e))return Q[e]},useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),r({target:"Object",stat:!0,forced:!l,sham:!s},{create:function(e,t){return void 0===t?b(e):se(b(e),t)},defineProperty:ae,defineProperties:se,getOwnPropertyDescriptor:ce}),r({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:ue,getOwnPropertySymbols:de}),r({target:"Object",stat:!0,forced:u(function(){x.f(1)})},{getOwnPropertySymbols:function(e){return x.f(m(e))}}),W&&r({target:"JSON",stat:!0,forced:!l||u(function(){var e=q();return"[null]"!=W([e])||"{}"!=W({a:e})||"{}"!=W(Object(e))})},{stringify:function(e,t,n){for(var r,i=[e],o=1;arguments.length>o;)i.push(arguments[o++]);if(r=t,(h(t)||void 0!==e)&&!oe(e))return f(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!oe(t))return t}),i[1]=t,W.apply(null,i)}}),q.prototype[K]||O(q.prototype,K,q.prototype.valueOf),L(q,"Symbol"),D[F]=!0},,,,function(e,t,n){var r=n(1),i=n(46),o=r.WeakMap;e.exports="function"==typeof o&&/native code/.test(i(o))},function(e,t,n){var r=n(7),i=n(6),o=n(9),a=n(36);e.exports=r?Object.defineProperties:function(e,t){o(e);for(var n,r=a(t),s=r.length,l=0;s>l;)i.f(e,n=r[l++],t[n]);return e}},function(e,t,n){var r=n(22);e.exports=r("navigator","userAgent")||""},function(e,t,n){var r=n(22),i=n(27),o=n(49),a=n(9);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),n=o.f;return n?t.concat(n(e)):t}},,function(e,t,n){"use strict";var r=n(8),i=n(34).map;r({target:"Array",proto:!0,forced:!n(52)("map")},{map:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r,i,o=n(113),a=n(112),s=n(29),l=RegExp.prototype.exec,c=s("native-string-replace",String.prototype.replace),u=l,d=(r=/a/,i=/b*/g,l.call(r,"a"),l.call(i,"a"),0!==r.lastIndex||0!==i.lastIndex),f=a.UNSUPPORTED_Y||a.BROKEN_CARET,h=void 0!==/()??/.exec("")[1];(d||h||f)&&(u=function(e){var t,n,r,i,a=this,s=f&&a.sticky,u=o.call(a),p=a.source,m=0,y=e;return s&&(-1===(u=u.replace("y","")).indexOf("g")&&(u+="g"),y=String(e).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==e[a.lastIndex-1])&&(p="(?: "+p+")",y=" "+y,m++),n=new RegExp("^(?:"+p+")",u)),h&&(n=new RegExp("^"+p+"$(?!\\s)",u)),d&&(t=a.lastIndex),r=l.call(s?n:a,y),s?r?(r.input=r.input.slice(m),r[0]=r[0].slice(m),r.index=a.lastIndex,a.lastIndex+=r[0].length):a.lastIndex=0:d&&r&&(a.lastIndex=a.global?r.index+r[0].length:t),h&&r&&r.length>1&&c.call(r[0],n,function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)}),r}),e.exports=u},function(e,t,n){"use strict";function r(e,t){if(e){for(var n=e.className,r=(t||"").split(" "),i=0,a=r.length;i<a;i++){var s=r[i];s&&(e.classList?e.classList.add(s):o(e,s)||(n+=" "+s))}e.classList||(e.className=n)}}function i(e,t){if(e&&t){for(var n=t.split(" "),r=" "+e.className+" ",i=0,a=n.length;i<a;i++){var s=n[i];s&&(e.classList?e.classList.remove(s):o(e,s)&&(r=r.replace(" "+s+" "," ")))}e.classList||(e.className=(r||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,""))}}function o(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 a(e){var t=document.documentElement,n=void 0!==e.getBoundingClientRect?e.getBoundingClientRect():0,r=(window.pageXOffset||t.scrollLeft)-(t.clientLeft||0),i=(window.pageYOffset||t.scrollTop)-(t.clientTop||0),o=n.left+window.pageXOffset,a=n.top+window.pageYOffset,s=o-r,l=a-i;return{offsetTop:a,offsetLeft:o,left:s,top:l,right:window.document.documentElement.clientWidth-n.width-s,bottom:window.document.documentElement.clientHeight-n.height-l,right2:window.document.documentElement.clientWidth-s,bottom2:window.document.documentElement.clientHeight-l}}function s(e,t){var n=a(e),r=n.offsetTop,i=n.offsetLeft,o=n.left,s=n.top,l=n.right,c=n.bottom,u=n.right2,d=n.bottom2,f=a(t);return{offsetTop:r-f.offsetTop,offsetLeft:i-f.offsetLeft,left:o-f.left,top:s-f.top,right:l-f.right,bottom:c-f.bottom,right2:u-f.right2,bottom2:d-f.bottom2}}function l(e){var t=0,n=0,r=document.documentElement,i=document.body;return e||(e=window.event),window.pageYoffset?(t=window.pageXOffset,n=window.pageYOffset):(t=(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),n=(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),{left:t+=e.clientX,top:n+=e.clientY,right:r.clientWidth-e.clientX,bottom:r.clientHeight-e.clientY}}function c(e){var t=document;if(e.selectionStart)return e.selectionStart;if(t.selection){e.focus();var n=t.selection.createRange();if(null===n)return 0;var r=e.createTextRange(),i=r.duplicate();return r.moveToBookmark(n.getBookmark()),i.setEndPoint("EndToStart",r),i.text.length}return 0}function u(e,t,n){if(void 0===n&&(n=t),e.setSelectionRange){e.focus();try{e.setSelectionRange(t,n)}catch(o){var r=e.parentNode,i=r.style.display;r.style.display="block",e.setSelectionRange(t,n),r.style.display=i}}}n.d(t,"a",function(){return r}),n.d(t,"f",function(){return i}),n.d(t,"d",function(){return a}),n.d(t,"e",function(){return s}),n.d(t,"c",function(){return l}),n.d(t,"b",function(){return c}),n.d(t,"g",function(){return u}),n(101),n(117),n(118)},,function(e,t,n){var r=n(25),i=n(13),o=function(e){return function(t,n){var o,a,s=String(i(t)),l=r(n),c=s.length;return l<0||l>=c?e?"":void 0:(o=s.charCodeAt(l))<55296||o>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):o:e?s.slice(l,l+2):a-56320+(o-55296<<10)+65536}};e.exports={codeAt:o(!1),charAt:o(!0)}},,,,,function(e,t,n){var r=n(44),i=n(15),o=n(3)("toStringTag"),a="Arguments"==i(function(){return arguments}());e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:a?i(t):"Object"==(r=i(t))&&"function"==typeof t.callee?"Arguments":r}},,,,function(e,t,n){"use strict";var r=n(34).forEach,i=n(75)("forEach");e.exports=i?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},function(e,t,n){var r=n(11),i=n(27).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?function(e){try{return i(e)}catch(e){return a.slice()}}(e):i(r(e))}},function(e,t,n){"use strict";var r=n(44),i=n(94);e.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},function(e,t,n){"use strict";var r=n(8),i=n(86);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},,,function(e,t,n){"use strict";var r=n(8),i=n(34).filter;r({target:"Array",proto:!0,forced:!n(52)("filter")},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(8),i=n(62).includes,o=n(65);r({target:"Array",proto:!0},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("includes")},function(e,t,n){"use strict";var r=n(8),i=n(115),o=n(13);r({target:"String",proto:!0,forced:!n(116)("includes")},{includes:function(e){return!!~String(o(this)).indexOf(i(e),arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(5),i=n(15),o=n(3)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},function(e,t,n){"use strict";n(101);var r=n(14),i=n(86),o=n(2),a=n(3),s=n(10),l=a("species"),c=RegExp.prototype,u=!o(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}),d="$0"==="a".replace(/./,"$0"),f=a("replace"),h=!!/./[f]&&""===/./[f]("a","$0"),p=!o(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,f){var m=a(e),y=!o(function(){var t={};return t[m]=function(){return 7},7!=""[e](t)}),v=y&&!o(function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[l]=function(){return n},n.flags="",n[m]=/./[m]),n.exec=function(){return t=!0,null},n[m](""),!t});if(!y||!v||"replace"===e&&(!u||!d||h)||"split"===e&&!p){var g=/./[m],b=n(m,""[e],function(e,t,n,r,o){var a=t.exec;return a===i||a===c.exec?y&&!o?{done:!0,value:g.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}},{REPLACE_KEEPS_$0:d,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:h}),_=b[0],k=b[1];r(String.prototype,e,_),r(c,m,2==t?function(e,t){return k.call(e,this,t)}:function(e){return k.call(e,this)})}f&&s(c[m],"sham",!0)}},function(e,t,n){"use strict";var r=n(89).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},function(e,t,n){var r=n(15),i=n(86);e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var o=n.call(e,t);if("object"!=typeof o)throw TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},,function(e,t,n){"use strict";var r=n(2);function i(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=r(function(){var e=i("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),t.BROKEN_CARET=r(function(){var e=i("^r","gy");return e.lastIndex=2,null!=e.exec("str")})},function(e,t,n){"use strict";var r=n(9);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){"use strict";var r=n(8),i=n(34).findIndex,o=n(65),a=!0;"findIndex"in[]&&Array(1).findIndex(function(){a=!1}),r({target:"Array",proto:!0,forced:a},{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("findIndex")},function(e,t,n){var r=n(107);e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},function(e,t,n){var r=n(3)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},function(e,t,n){"use strict";var r=n(108),i=n(9),o=n(16),a=n(25),s=n(13),l=n(109),c=n(126),u=n(110),d=Math.max,f=Math.min;r("replace",2,function(e,t,n,r){var h=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,p=r.REPLACE_KEEPS_$0,m=h?"$":"$0";return[function(n,r){var i=s(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,i,r):t.call(String(i),n,r)},function(e,r){if(!h&&p||"string"==typeof r&&-1===r.indexOf(m)){var s=n(t,e,this,r);if(s.done)return s.value}var y=i(e),v=String(this),g="function"==typeof r;g||(r=String(r));var b=y.global;if(b){var _=y.unicode;y.lastIndex=0}for(var k=[];;){var w=u(y,v);if(null===w)break;if(k.push(w),!b)break;""===String(w[0])&&(y.lastIndex=l(v,o(y.lastIndex),_))}for(var x,C="",S=0,A=0;A<k.length;A++){w=k[A];for(var O=String(w[0]),j=d(f(a(w.index),v.length),0),T=[],E=1;E<w.length;E++)T.push(void 0===(x=w[E])?x:String(x));var D=w.groups;if(g){var I=[O].concat(T,j,v);void 0!==D&&I.push(D);var R=String(r.apply(void 0,I))}else R=c(O,v,j,T,D,r);j>=S&&(C+=v.slice(S,j)+R,S=j+O.length)}return C+v.slice(S)}]})},function(e,t,n){"use strict";var r=n(108),i=n(107),o=n(9),a=n(13),s=n(122),l=n(109),c=n(16),u=n(110),d=n(86),f=n(112).UNSUPPORTED_Y,h=[].push,p=Math.min;r("split",2,function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=String(a(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!i(e))return t.call(r,e,o);for(var s,l,c,u=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,m=new RegExp(e.source,f+"g");(s=d.call(m,r))&&!((l=m.lastIndex)>p&&(u.push(r.slice(p,s.index)),s.length>1&&s.index<r.length&&h.apply(u,s.slice(1)),c=s[0].length,p=l,u.length>=o));)m.lastIndex===s.index&&m.lastIndex++;return p===r.length?!c&&m.test("")||u.push(""):u.push(r.slice(p)),u.length>o?u.slice(0,o):u}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var i=a(this),o=null==t?void 0:t[e];return void 0!==o?o.call(t,i,n):r.call(String(i),t,n)},function(e,i){var a=n(r,e,this,i,r!==t);if(a.done)return a.value;var d=o(e),h=String(this),m=s(d,RegExp),y=d.unicode,v=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(f?"g":"y"),g=new m(f?"^(?:"+d.source+")":d,v),b=void 0===i?4294967295:i>>>0;if(0===b)return[];if(0===h.length)return null===u(g,h)?[h]:[];for(var _=0,k=0,w=[];k<h.length;){g.lastIndex=f?0:k;var x,C=u(g,f?h.slice(k):h);if(null===C||(x=p(c(g.lastIndex+(f?k:0)),h.length))===_)k=l(h,k,y);else{if(w.push(h.slice(_,k)),w.length===b)return w;for(var S=1;S<=C.length-1;S++)if(w.push(C[S]),w.length===b)return w;k=_=x}}return w.push(h.slice(_)),w}]},f)},,,,function(e,t,n){var r=n(9),i=n(60),o=n(3)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[o])?t:i(n)}},function(e,t,n){"use strict";function r(){return Date.now().toString(36)+Math.random().toString(36).substr(2)}n.d(t,"a",function(){return r}),n(64),n(131)},function(e,t,n){"use strict";var r=n(8),i=n(59),o=n(25),a=n(16),s=n(12),l=n(55),c=n(71),u=n(52)("splice"),d=Math.max,f=Math.min;r({target:"Array",proto:!0,forced:!u},{splice:function(e,t){var n,r,u,h,p,m,y=s(this),v=a(y.length),g=i(e,v),b=arguments.length;if(0===b?n=r=0:1===b?(n=0,r=v-g):(n=b-2,r=f(d(o(t),0),v-g)),v+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(u=l(y,r),h=0;h<r;h++)(p=g+h)in y&&c(u,h,y[p]);if(u.length=r,n<r){for(h=g;h<v-r;h++)m=h+n,(p=h+r)in y?y[m]=y[p]:delete y[m];for(h=v;h>v-r+n;h--)delete y[h-1]}else if(n>r)for(h=v-r;h>g;h--)m=h+n-1,(p=h+r-1)in y?y[m]=y[p]:delete y[m];for(h=0;h<n;h++)y[h+g]=arguments[h+2];return y.length=v-r+n,u}})},function(e,t,n){var r=n(8),i=n(12),o=n(36);r({target:"Object",stat:!0,forced:n(2)(function(){o(1)})},{keys:function(e){return o(i(e))}})},function(e,t,n){var r=n(12),i=Math.floor,o="".replace,a=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,l,c,u){var d=n+e.length,f=l.length,h=s;return void 0!==c&&(c=r(c),h=a),o.call(u,h,function(r,o){var a;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(d);case"<":a=c[o.slice(1,-1)];break;default:var s=+o;if(0===s)return r;if(s>f){var u=i(s/10);return 0===u?r:u<=f?void 0===l[u-1]?o.charAt(1):l[u-1]+o.charAt(1):r}a=l[s-1]}return void 0===a?"":a})}},,,,,function(e,t,n){"use strict";var r=n(14),i=n(9),o=n(2),a=n(113),s=RegExp.prototype,l=s.toString,c=o(function(){return"/a/b"!=l.call({source:"a",flags:"b"})}),u="toString"!=l.name;(c||u)&&r(RegExp.prototype,"toString",function(){var e=i(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in s)?a.call(e):n)},{unsafe:!0})},,,,function(e,t,n){var r=n(8),i=n(2),o=n(11),a=n(19).f,s=n(7),l=i(function(){a(1)});r({target:"Object",stat:!0,forced:!s||l,sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(o(e),t)}})},function(e,t,n){var r=n(8),i=n(7),o=n(83),a=n(11),s=n(19),l=n(71);r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(e){for(var t,n,r=a(e),i=s.f,c=o(r),u={},d=0;c.length>d;)void 0!==(n=i(r,t=c[d++]))&&l(u,t,n);return u}})},,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(8),i=n(39),o=[].reverse,a=[1,2];r({target:"Array",proto:!0,forced:String(a)===String(a.reverse())},{reverse:function(){return i(this)&&(this.length=this.length),o.call(this)}})},,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t),n(41),n(85),n(114),n(160),n(104),n(124),n(54),n(105),n(106),n(125),n(76),n(135),n(136);var r="SEPARATOR";function i(e){return"ve-contextmenu-"+e}var o=n(68),a=n.n(o),s=n(20),l=n(87),c=n(123),u=n(72);function d(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 f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h={name:"VeContextmenu",directives:{"events-outside":{bind:function(e,t,n){var r=t.value,i=r.events,o=r.callback;if(Array.isArray(i)&&i.length&&"function"==typeof o){var a=function(t){if(e.contains(t.target)||e===t.target)return!1;o(t)};e.__eventsOutside__=a,i.forEach(function(e){document.addEventListener(e,a,!0)})}else{var s=n.context.name;console.error("[events-outside] Please provided 'events' and 'callback' in ".concat(s))}},unbind:function(e,t,n){t.value.events.forEach(function(t){document.removeEventListener(t,e.__eventsOutside__,!0)}),e.__eventsOutside__=null}}},props:{options:{type:Array,required:!0},eventTarget:{type:[String,HTMLElement],required:!0}},data:function(){return{internalOptions:[],panelOptions:[],eventTargetEl:"",rootContextmenuId:"",isChildrenPanelsClicked:!1,isPanelRightDirection:!0,isPanelsEmptyed:!0}},computed:{activeMenuIds:function(){return this.panelOptions.map(function(e){return e.parentId})}},watch:{options:{handler:function(e){Array.isArray(e)&&e.length>0&&(this.removeOrEmptyPanels(!0),this.rootContextmenuId=this.getRandomIdWithPrefix(),this.createInternalOptions(),this.createPanelOptions({options:this.internalOptions}),this.resetContextmenu(),this.addRootContextmenuPanelToBody())},immediate:!0},eventTarget:{handler:function(e){e&&this.registerContextmenuEvent()},immediate:!0}},methods:f({getRandomIdWithPrefix:function(){return i(Object(c.a)())},hasChildren:function(e){return Array.isArray(e.children)&&e.children.length},getPanelOptionByMenuId:function(e,t){for(var n=0;n<e.length;n++){if(e[n].id===t)return e[n].children;if(e[n].children){var r=this.getPanelOptionByMenuId(e[n].children,t);if(r)return r}}},getParentContextmenuPanelEl:function(e){var t,n=this.panelOptions,r=n.findIndex(function(t){return t.parentId===e});if(r>0){var i=n[r-1].parentId;t=document.querySelector("#".concat(i))}return t},createPanelByHover:function(e){var t=this,n=e.event,r=e.menu,i=this.internalOptions,o=this.panelOptions;if(this.isPanelsEmptyed)return!1;if(o.findIndex(function(e){return e.parentId===r.id})>-1)return!1;var a=o.filter(function(e){return e.parentDeep>=r.deep}).map(function(e){return e.parentDeep}).reverse();if(a.length)for(var s=function(e){var n=o.findIndex(function(t){return t.parentDeep===a[e]});n>-1&&t.panelOptions.splice(n,1)},l=a.length-1;l>=0;l--)s(l);var c=this.getPanelOptionByMenuId(i,r.id);c&&(this.createPanelOptions({options:c,currentMenu:r}),this.$nextTick(function(){t.addContextmenuPanelToBody({contextmenuId:r.id}),t.showContextmenuPanel({event:n,contextmenuId:r.id})}))},createPanelOptions:function(e){var t=e.options,n=e.currentMenu,r=this.hasChildren,i=this.rootContextmenuId;if(Array.isArray(t)){var o=t.map(function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach(function(t){f(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({hasChildren:r(e)},e)});this.panelOptions.push({parentId:n?n.id:i,parentDeep:n?n.deep:-1,menus:o})}},createInternalOptionsRecursion:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e.id=this.getRandomIdWithPrefix(),e.deep=n,n++,Array.isArray(e.children)&&e.children.map(function(e){return t.createInternalOptionsRecursion(e,n)}),e},createInternalOptions:function(){var e=this;this.internalOptions=Object(u.cloneDeep)(this.options).map(function(t){return e.createInternalOptionsRecursion(t)})},showRootContextmenuPanel:function(e){e.preventDefault();var t=this.rootContextmenuId;t&&(this.resetContextmenu(),this.showContextmenuPanel({event:e,contextmenuId:t,isRootContextmenu:!0}),this.isPanelsEmptyed=!1)},showContextmenuPanel:function(e){var t=e.event,n=e.contextmenuId,r=e.isRootContextmenu,o=this.getParentContextmenuPanelEl,a=document.querySelector("#".concat(n));if(a){a.innerHTML="",a.appendChild(this.$refs[n]),a.style.position="absolute",a.classList.add(i("popper"));var s=a.getBoundingClientRect(),c=s.width,u=s.height;if(r){var d,f=Object(l.c)(t),h=f.left,p=f.top,m=f.right,y=f.bottom,v=0;m>=c?(v=h,this.isPanelRightDirection=!0):(v=h-c,this.isPanelRightDirection=!1),d=y>=u?p:p-u,a.style.left=v+"px",a.style.top=d+"px"}else{var g=o(n);if(g){var b,_,k=Object(l.d)(g),w=k.left,x=k.right,C=Object(l.c)(t),S=C.top,A=C.bottom,O=g.getBoundingClientRect().width;b=this.isPanelRightDirection?x>=c?w+O:w-O:w>=c?w-O:w+O,_=A>=u?S:S-u,a.style.left=b+"px",a.style.top=_+"px"}}}},emptyContextmenuPanels:function(){var e=this;setTimeout(function(){e.isChildrenPanelsClicked?e.isChildrenPanelsClicked=!1:(e.removeOrEmptyPanels(),e.isPanelsEmptyed=!0)})},removeOrEmptyPanels:function(e){this.panelOptions.forEach(function(t){var n=document.querySelector("#".concat(t.parentId));n&&(e?n.remove():n.innerHTML="")})},resetContextmenu:function(){this.panelOptions=[],this.createPanelOptions({options:this.internalOptions})},addContextmenuPanelToBody:function(e){var t=e.contextmenuId;if(document.querySelector("#".concat(t)))return!1;var n=document.createElement("div");n.setAttribute("id",t),document.body.appendChild(n)},addRootContextmenuPanelToBody:function(){this.rootContextmenuId&&this.addContextmenuPanelToBody({contextmenuId:this.rootContextmenuId})},registerContextmenuEvent:function(){var e=this.eventTarget;"string"==typeof e&&e.length>0?this.eventTargetEl=document.querySelector(e):this.eventTargetEl=e,this.eventTargetEl&&this.eventTargetEl.addEventListener("contextmenu",this.showRootContextmenuPanel)},removeContextmenuEvent:function(){this.eventTargetEl&&this.eventTargetEl.removeEventListener("contextmenu",this.showRootContextmenuPanel)}},"hideContextmenu",function(){this.emptyContextmenuPanels()}),created:function(){this.debounceCreatePanelByHover=Object(u.debounce)(this.createPanelByHover,300)},mounted:function(){this.addRootContextmenuPanelToBody()},destroyed:function(){this.removeContextmenuEvent(),this.removeOrEmptyPanels(!0)},render:function(){var e=this,t=arguments[0],n=this.panelOptions,o=this.activeMenuIds,l=this.hasChildren,c=this.emptyContextmenuPanels,u=this.debounceCreatePanelByHover;return t("div",{class:["ve-contextmenu"],style:{display:"none"}},[n.map(function(n,d){var h={ref:n.parentId,class:f({},i("panel"),!0),directives:[{name:"events-outside",value:{events:["click"],callback:function(e){0===d&&c()}}}],on:{click:function(){0!==d&&(e.isChildrenPanelsClicked=!0)},contextmenu:function(e){e.preventDefault()}}};return t("div",h,[t("ul",{class:i("list")},[n.menus.map(function(n){var d,h;return d=n.type!==r?{class:(h={},f(h,i("node"),!0),f(h,i("node-active"),o.includes(n.id)),f(h,i("node-disabled"),n.disabled),h),on:{mouseover:function(e){n.disabled||u({event:e,menu:n})},click:function(){n.disabled||l(n)||(e.$emit("on-node-click",n.type),setTimeout(function(){c()},50))}}}:{class:f({},i("node-separator"),!0)},n.type!==r?t("li",d,[t("span",{class:i("node-label")},[n.label]),n.hasChildren&&t(a.a,{class:i("node-icon-postfix"),attrs:{name:s.a.RIGHT_ARROW}})]):t("li",d)})])])})])},install:function(e){e.component(h.name,h)}};t.default=h}])},function(e,t,n){var r,i,o;!function(n,a){i=[t],void 0===(o="function"==typeof(r=a)?r.apply(t,i):r)||(e.exports=o)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={pagination:{goto:"前往",page:"页",itemsPerPage:" 条/页",total:function(e){return"共 "+e+" 条"},prev5:"向前 5 页",next5:"向后 5 页"},table:{confirmFilter:"筛选",resetFilter:"重置",cut:"剪切",copy:"复制",insertRowAbove:"上方插入行",insertRowBelow:"下方插入行",removeRow:"删除 $1 行",emptyRow:"清空 $1 行",emptyColumn:"清空 $1 列",emptyCell:"清空单元格",leftFixedColumnTo:"左列冻结",cancelLeftFixedColumnTo:"取消左列冻结",rightFixedColumnTo:"右列冻结",cancelRightFixedColumnTo:"取消右列冻结"}}})},function(e,t,n){e.exports={default:n(231),__esModule:!0}},function(e,t,n){n(38),n(236),e.exports=n(4).Array.from},function(e,t,n){var r=n(51),i=n(49);e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),l=r(n),c=s.length;return l<0||l>=c?e?"":void 0:(o=s.charCodeAt(l))<55296||o>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):o:e?s.slice(l,l+2):a-56320+(o-55296<<10)+65536}}},function(e,t,n){"use strict";var r=n(109),i=n(24),o=n(39),a={};n(14)(a,n(6)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},function(e,t,n){var r=n(10),i=n(11),o=n(21);e.exports=n(9)?Object.defineProperties:function(e,t){i(e);for(var n,a=o(t),s=a.length,l=0;s>l;)r.f(e,n=a[l++],t[n]);return e}},function(e,t,n){var r=n(16),i=n(28),o=n(52)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){"use strict";var r=n(23),i=n(8),o=n(28),a=n(111),s=n(112),l=n(50),c=n(237),u=n(59);i(i.S+i.F*!n(114)(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,i,d,f=o(e),h="function"==typeof this?this:Array,p=arguments.length,m=p>1?arguments[1]:void 0,y=void 0!==m,v=0,g=u(f);if(y&&(m=r(m,p>2?arguments[2]:void 0,2)),void 0==g||h==Array&&s(g))for(n=new h(t=l(f.length));t>v;v++)c(n,v,y?m(f[v],v):f[v]);else for(d=g.call(f),n=new h;!(i=d.next()).done;v++)c(n,v,y?a(d,m,[i.value,v],!0):i.value);return n.length=v,n}})},function(e,t,n){"use strict";var r=n(10),i=n(24);e.exports=function(e,t,n){t in e?r.f(e,t,i(0,n)):e[t]=n}},function(e,t,n){e.exports={default:n(239),__esModule:!0}},function(e,t,n){n(240);var r=n(4).Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},function(e,t,n){var r=n(8);r(r.S+r.F*!n(9),"Object",{defineProperty:n(10).f})},function(e,t,n){var r={"./DshBox.vue":[105],"./DshCard.vue":[430,6],"./DshCrossTable.vue":[431,3],"./DshList.vue":[115],"./DshPanel.vue":[432,5],"./DshSingleData.vue":[433,4],"./DshTable.vue":[117]};function i(e){var t=r[e];return t?Promise.all(t.slice(1).map(n.e)).then(function(){return n(t[0])}):Promise.reject(new Error("Cannot find module '"+e+"'."))}i.keys=function(){return Object.keys(r)},i.id=241,e.exports=i},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"show",rawName:"v-show",value:e.showData,expression:"showData"}],staticClass:"DshList"},[n("div",{staticClass:"list-cols"},[e.multiple?n("div",{staticClass:"list-cols-left"},[n("Checkbox",{on:{"on-change":e.selectAll},model:{value:e.isSelectAll,callback:function(t){e.isSelectAll=t},expression:"isSelectAll"}})],1):e._e(),e._v(" "),n("div",{staticClass:"list-cols-right row",style:{paddingLeft:e.multiple?"48px":"0px",background:e.useColBg?"#f0f0f0":"none"}},[e.sequence?n("div",{staticClass:"row-item",staticStyle:{minWidth:"60px",textAlign:"center"}},[e._v("\n 序号\n ")]):e._e(),e._v(" "),e._l(e.selfColumns,function(t){return n("div",{key:t._key,staticClass:"row-item",style:{flexBasis:(t.width||t.minWidth)+"px",textAlign:t._align,flexGrow:1,display:"flex",justifyContent:e.getFlexLayout(t._align)}},[n("bri-tooltip",{attrs:{transfer:"",content:t._name}},[n("span",{staticClass:"dsh-ellipsis"},[e._v("\n "+e._s(t._name)+"\n ")])])],1)})],2)]),e._v(" "),n("div",{staticClass:"list-rows"},[e.isLoading?n("div",{staticClass:"list-loading"},[n("div",{staticClass:"list-loading-wrap"}),e._v(" "),e._m(0)]):[e.data.length?[e.multiple?n("div",{staticClass:"list-rows-left"},[n("CheckboxGroup",{on:{"on-change":e.select},model:{value:e.selectIds,callback:function(t){e.selectIds=t},expression:"selectIds"}},e._l(e.data,function(t){return n("Checkbox",{key:t._id,attrs:{label:t._id},nativeOn:{click:function(n){return e.clickRowCheckbox(t)}}},[e._v("\n "+e._s("")+"\n ")])}),1)],1):e._e(),e._v(" "),n("div",{staticClass:"list-rows-right"},e._l(e.data,function(t,r){return n("div",{key:t._id,staticClass:"row",style:{paddingLeft:e.multiple?"48px":"0px"},on:{click:function(n){return e.clickRow(t)}}},[e.sequence?n("div",{staticClass:"row-item",staticStyle:{minWidth:"60px",textAlign:"center"}},[n("div",{staticClass:"row-item-inner"},[e._v("\n "+e._s(r+1)+"\n ")])]):e._e(),e._v(" "),e._l(e.selfColumns,function(i){return n("div",{key:i._key,staticClass:"row-item",style:{flexBasis:(i.width||i.minWidth)+"px",textAlign:i._align,flexGrow:1,display:"flex",justifyContent:e.getFlexLayout(i._align)}},[n("div",{staticClass:"row-item-inner dsh-ellipsis"},[i.renderBodyCell?n("dsh-td-render",{staticClass:"ms-ellipsis",attrs:{row:t,column:i,index:r,render:i.renderBodyCell}}):i.formatter?[n("div",{domProps:{innerHTML:e._s(i.formatter(t,r))}})]:t[i._key]?n("Tooltip",{staticClass:"list-tooltip",attrs:{transfer:!0,"max-width":"200",placement:0===r?"bottom-start":"top-start",content:t[i._key]}},[n("div",{staticClass:"list-tooltip-box"},[e._v(e._s(t[i._key]))])]):e._e()],2)])})],2)}),0)]:n("div",{staticClass:"list-noData"},[e._v("\n "+e._s(e.noDataText)+"\n ")])]],2)])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"list-loading-content"},[t("span",[t("i",{staticClass:"list-loading-content-icon"})])])}]};t.a=r},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"DshTable"},[n("bri-table",{attrs:{data:e.data,columns:e.selfColumns,propsObj:e.propsObj,isLoading:e.isLoading,noDataText:e.noDataText},on:{selectChange:e.changeSelect,selectAll:e.changeSelect,"click-row":e.clickRow,"sort-change":e.changeSort}})],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"DshBox"},[n("div",{staticClass:"DshBox-list"},[n("Dsh"+e.$firstUpperCase(e.mode),{ref:"list",tag:"component",attrs:{data:e.data,columns:e.columns,fixTitle:e.fixTitle,ownColumns:e.ownColumns,operationList:e.operationList,extraOperationList:e.extraOperationList,propsObj:e.listPropsObj,changedFields:e.changedFields,isLoading:e.listPropsObj&&e.listPropsObj.isLoading,noDataText:e.listPropsObj&&e.listPropsObj.noDataText||"暂无内容..."},on:{clickRow:e.clickRow,sortChange:e.changeSort,selectChange:e.changeSelect,selectAll:e.selectAll,select:e.select,groupScroll:e.groupScroll,groupLoad:e.groupLoad,dsh:e.dshEmit},scopedSlots:e._u([{key:"col",fn:function(t){var n=t.col;return e._t("col",null,{col:n})}}],null,!0)})],1),e._v(" "),e._t("default"),e._v(" "),!["panel","singleData"].includes(e.mode)&&e.pagePropsObj?n("div",{staticClass:"DshBox-page"},[n("dsh-page",{attrs:{mode:e.pageMode,total:e.total,propsObj:e.pagePropsObj},on:{changePage:e.changePage,changePageSize:e.changePageSize}},[e._t("page")],2)],1):e._e()],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r=n(119),i=n(246),o=n(0)(r.a,i.a,!1,null,null,null);t.a=o.exports},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"BriFlatTable"},[n("bri-table",{staticClass:"BriFlatTable-main",attrs:{propsObj:e.tablePropsObj,columns:e.showColumns,data:e.listData,"footer-data":e.footerData},on:{selectChange:e.changeSelect,selectAll:e.changeSelect}}),e._v(" "),n("dsh-buttons",{staticClass:"BriFlatTable-create",attrs:{list:e.$getOperationList(["create"])},on:{click:function(t){return e.$dispatchEvent(t,null,null,e.listData)}}})],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r=n(120),i=n(248),o=n(0)(r.a,i.a,!1,null,null,null);t.a=o.exports},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"bri-table"},[n("ve-table",{staticClass:"bri-table-content",class:[e.selfClassName,e.selfPropsObj.className],attrs:{"table-data":e.data,"footer-data":e.footerData,columns:e.columnsList,"show-header":e.selfPropsObj.showHeader,"fixed-header":e.selfPropsObj.fixedHeader,"fixed-footer":e.selfPropsObj.fixedFooter,"scroll-width":e.selfPropsObj.scrollWidth,"max-height":e.selfPropsObj.maxHeight,"row-key-field-name":e.selfPropsObj.rowKeyFieldName,"border-around":e.selfPropsObj.borderAround,"border-x":e.selfPropsObj.borderX,"border-y":e.selfPropsObj.borderY,cellSpanOption:e.selfPropsObj.cellSpanOption,columnHiddenOption:e.selfPropsObj.columnHiddenOption,cellStyleOption:e.cellStyleOption,rowStyleOption:e.rowStyleOption,expandOption:e.selfPropsObj.expandOption,"checkbox-option":e.checkboxOption,radioOption:e.selfPropsObj.radioOption,sortOption:e.sortOption,cellSelectionOption:e.selfPropsObj.cellSelectionOption,editOption:e.selfPropsObj.editOption,contextmenuHeaderOption:e.selfPropsObj.contextmenuHeaderOption,contextmenuBodyOption:e.selfPropsObj.contextmenuBodyOption,"event-custom-option":e.eventCustomOption,cellAutofillOption:e.selfPropsObj.cellAutofillOption,clipboardOption:e.selfPropsObj.clipboardOption,columnWidthResizeOption:e.columnWidthResizeOption}}),e._v(" "),e.isLoading?n("bri-loading"):e.data.length?e._e():n("div",{staticClass:"bri-table-empty"},[e._t("empty",function(){return[e._v(e._s(e.noDataText))]})],2)],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r=n(121),i=n(321),o=n(0)(r.a,i.a,!1,null,null,null);t.a=o.exports},function(e,t,n){n(251),e.exports=n(4).Object.entries},function(e,t,n){var r=n(8),i=n(126)(!0);r(r.S,"Object",{entries:function(e){return i(e)}})},function(e,t,n){var r={"./BriControlInput":[61],"./BriControlInput.vue":[61],"./base/BriInputs":[62],"./base/BriInputs.vue":[62],"./base/BriUpload/BriUpload":[63],"./base/BriUpload/BriUpload.vue":[63],"./base/BriUpload/BriUploadImage":[42],"./base/BriUpload/BriUploadImage.vue":[42],"./base/BriUpload/uploadList":[71],"./base/BriUpload/uploadList.vue":[71],"./base/BriUpload/uploadMixin":[30],"./base/BriUpload/uploadMixin.js":[30],"./base/DshCascader/DshCascader":[72],"./base/DshCascader/DshCascader.vue":[72],"./base/DshCascader/InfoCascader":[73],"./base/DshCascader/InfoCascader.vue":[73],"./base/DshCheckbox":[75],"./base/DshCheckbox.vue":[75],"./base/DshCoordinates":[76],"./base/DshCoordinates.vue":[76],"./base/DshDate":[77],"./base/DshDate.vue":[77],"./base/DshDaterange":[78],"./base/DshDaterange.vue":[78],"./base/DshDivider":[79],"./base/DshDivider.vue":[79],"./base/DshEditor":[80],"./base/DshEditor.vue":[80],"./base/DshInput":[81],"./base/DshInput.vue":[81],"./base/DshNumber/BriInputNumber/BriInputNumber":[44],"./base/DshNumber/BriInputNumber/BriInputNumber.vue":[44],"./base/DshNumber/BriInputNumber/mixins/emitter":[83],"./base/DshNumber/BriInputNumber/mixins/emitter.js":[83],"./base/DshNumber/BriInputNumber/mixins/form":[84],"./base/DshNumber/BriInputNumber/mixins/form.js":[84],"./base/DshNumber/BriInputNumber/utils/assist":[82],"./base/DshNumber/BriInputNumber/utils/assist.js":[82],"./base/DshNumber/DshNumber":[85],"./base/DshNumber/DshNumber.vue":[85],"./base/DshNumberange":[86],"./base/DshNumberange.vue":[86],"./base/DshSelect":[87],"./base/DshSelect.vue":[87],"./base/DshSwitch":[88],"./base/DshSwitch.vue":[88],"./base/selectMixin":[43],"./base/selectMixin.js":[43],"./controlMap":[60],"./controlMap.js":[60],"./controlMixin":[3],"./controlMixin.js":[3],"./senior/BriLabels":[208,2],"./senior/BriLabels.vue":[208,2],"./senior/DshPackage":[89],"./senior/DshPackage.vue":[89],"./senior/cascaderTable":[209,1],"./senior/cascaderTable.vue":[209,1],"./senior/flatTable":[210,0],"./senior/flatTable.vue":[210,0],"./senior/selectDepartments":[90],"./senior/selectDepartments.vue":[90],"./senior/selectUsers/DepartmentMenu":[91],"./senior/selectUsers/DepartmentMenu.vue":[91],"./senior/selectUsers/selectUsers":[92],"./senior/selectUsers/selectUsers.vue":[92],"./special/DshBack":[93],"./special/DshBack.vue":[93],"./special/DshUndeveloped":[94],"./special/DshUndeveloped.vue":[94]};function i(e){var t=r[e];return t?Promise.all(t.slice(1).map(n.e)).then(function(){return n(t[0])}):Promise.reject(new Error("Cannot find module '"+e+"'."))}i.keys=function(){return Object.keys(r)},i.id=252,e.exports=i},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"BriControlInput",on:{mouseenter:function(t){e.isHover=!0},mouseleave:function(t){e.isHover=!1}}},[e.$isEmptyData(e.value)?[n("div",{staticClass:"placeholder"},[e._v("\n "+e._s(e.propsObj._placeholder)+"\n ")])]:[Array.isArray(e.value)?n("dsh-tags",{staticClass:"overflow",attrs:{list:e.value,propsObj:{disabled:!e.canEdit,closable:!0}},on:{delete:e.clickDeleteItem}}):e.$dataType(e.value,"object")?n("div",{staticClass:"text"},[e._v("\n "+e._s(e.value._name||e.value.name||e.value.lnglat)+"\n ")]):n("div",{staticClass:"text"},[e._v("\n "+e._s(e.value)+"\n ")])],e._v(" "),[!e.$isEmptyData(e.value)&&e.propsObj._clearable&&e.isHover?n("Icon",{staticClass:"icon-close",attrs:{type:"ios-close-circle"},on:{click:function(t){return t.stopPropagation(),e.clickClear.apply(null,arguments)}}}):n("Icon",{staticClass:"icon-default",attrs:{type:e.inputIcon}})]],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"BriInputs"},[n("Input",{directives:[{name:"show",rawName:"v-show",value:"edit"===e.status,expression:"status === 'edit'"}],attrs:{icon:"ios-search",placeholder:e.selfPropsObj._placeholder},on:{"on-enter":e.clickConfirm,"on-click":e.clickConfirm},model:{value:e.curInputVal,callback:function(t){e.curInputVal=t},expression:"curInputVal"}}),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:"show"===e.status,expression:"status === 'show'"}],staticClass:"BriInputs-show"},[n("span",{staticClass:"BriInputs-show-content",on:{click:e.clickAdd}},e._l(e.value[e.controlKey],function(t,r){return n("span",{key:r,staticClass:"BriInputs-show-content-item"},[n("span",{staticClass:"BriInputs-show-content-item-content",on:{click:function(n){return n.stopPropagation(),e.clickEdit(t,r)}}},[e._v("\n "+e._s(t)+"\n ")]),e._v(" "),n("Icon",{staticClass:"BriInputs-show-content-item-del",attrs:{type:"ios-close",size:"20"},on:{click:function(n){return n.stopPropagation(),e.clickDelete(t)}}})],1)}),0),e._v(" "),n("Icon",{staticClass:"BriInputs-show-add",attrs:{type:"md-create"},on:{click:e.clickAdd}})],1)],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=c(e),a=r[0],s=r[1],l=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),u=0,d=s>0?a-4:a;for(n=0;n<d;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],l[u++]=t>>16&255,l[u++]=t>>8&255,l[u++]=255&t;2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,l[u++]=255&t);1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t);return l},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;a<s;a+=16383)o.push(d(e,a,a+16383>s?s:a+16383));1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s<l;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function d(e,t,n){for(var r,i=[],o=t;o<n;o+=3)r=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),i.push(u(r));return i.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){
26
+ !function(t,n){e.exports=n()}(0,function(){"use strict";function e(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 t(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?e(Object(r),!0).forEach(function(e){i(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):e(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function n(e){"@babel/helpers - typeof";return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(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,o(r.key),r)}}function i(e,t,n){return(t=o(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var a={backdrop:!0,button:!0,navbar:!0,title:!0,toolbar:!0,className:"",container:"body",filter:null,fullscreen:!0,inheritedAttributes:["crossOrigin","decoding","isMap","loading","referrerPolicy","sizes","srcset","useMap"],initialCoverage:.9,initialViewIndex:0,inline:!1,interval:5e3,keyboard:!0,focus:!0,loading:!0,loop:!0,minWidth:200,minHeight:100,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,slideOnTouch:!0,toggleOnDblclick:!0,tooltip:!0,transition:!0,zIndex:2015,zIndexInline:0,zoomRatio:.1,minZoomRatio:.01,maxZoomRatio:100,url:"src",ready:null,show:null,shown:null,hide:null,hidden:null,view:null,viewed:null,move:null,moved:null,rotate:null,rotated:null,scale:null,scaled:null,zoom:null,zoomed:null,play:null,stop:null},s="undefined"!=typeof window&&void 0!==window.document,l=s?window:{},c=!(!s||!l.document.documentElement)&&"ontouchstart"in l.document.documentElement,u=!!s&&"PointerEvent"in l,d="".concat("viewer","-active"),f="".concat("viewer","-close"),h="".concat("viewer","-fade"),p="".concat("viewer","-fixed"),m="".concat("viewer","-fullscreen"),y="".concat("viewer","-fullscreen-exit"),v="".concat("viewer","-hide"),g="".concat("viewer","-hide-md-down"),b="".concat("viewer","-hide-sm-down"),_="".concat("viewer","-hide-xs-down"),k="".concat("viewer","-in"),w="".concat("viewer","-invisible"),x="".concat("viewer","-loading"),C="".concat("viewer","-move"),S="".concat("viewer","-open"),A="".concat("viewer","-show"),O="".concat("viewer","-transition"),j=u?"pointerdown":c?"touchstart":"mousedown",T=u?"pointermove":c?"touchmove":"mousemove",E=u?"pointerup pointercancel":c?"touchend touchcancel":"mouseup",D="".concat("viewer","Action"),I=/\s\s*/,R=["zoom-in","zoom-out","one-to-one","reset","prev","play","next","rotate-left","rotate-right","flip-horizontal","flip-vertical"];function M(e){return"string"==typeof e}var P=Number.isNaN||l.isNaN;function L(e){return"number"==typeof e&&!P(e)}function B(e){return void 0===e}function N(e){return"object"===n(e)&&null!==e}var F=Object.prototype.hasOwnProperty;function K(e){if(!N(e))return!1;try{var t=e.constructor,n=t.prototype;return t&&n&&F.call(n,"isPrototypeOf")}catch(e){return!1}}function V(e){return"function"==typeof e}function z(e,t){if(e&&V(t))if(Array.isArray(e)||L(e.length)){var n,r=e.length;for(n=0;n<r&&!1!==t.call(e,e[n],n,e);n+=1);}else N(e)&&Object.keys(e).forEach(function(n){t.call(e,e[n],n,e)});return e}var U=Object.assign||function(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 N(e)&&n.length>0&&n.forEach(function(t){N(t)&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e},q=/^(?:width|height|left|top|marginLeft|marginTop)$/;function W(e,t){var n=e.style;z(t,function(e,t){q.test(t)&&L(e)&&(e+="px"),n[t]=e})}function $(e,t){return!(!e||!t)&&(e.classList?e.classList.contains(t):e.className.indexOf(t)>-1)}function H(e,t){if(e&&t)if(L(e.length))z(e,function(e){H(e,t)});else if(e.classList)e.classList.add(t);else{var n=e.className.trim();n?n.indexOf(t)<0&&(e.className="".concat(n," ").concat(t)):e.className=t}}function G(e,t){e&&t&&(L(e.length)?z(e,function(e){G(e,t)}):e.classList?e.classList.remove(t):e.className.indexOf(t)>=0&&(e.className=e.className.replace(t,"")))}function Z(e,t,n){t&&(L(e.length)?z(e,function(e){Z(e,t,n)}):n?H(e,t):G(e,t))}var Y=/([a-z\d])([A-Z])/g;function X(e){return e.replace(Y,"$1-$2").toLowerCase()}function J(e,t){return N(e[t])?e[t]:e.dataset?e.dataset[t]:e.getAttribute("data-".concat(X(t)))}function Q(e,t,n){N(n)?e[t]=n:e.dataset?e.dataset[t]=n:e.setAttribute("data-".concat(X(t)),n)}var ee=function(){var e=!1;if(s){var t=!1,n=function(){},r=Object.defineProperty({},"once",{get:function(){return e=!0,t},set:function(e){t=e}});l.addEventListener("test",n,r),l.removeEventListener("test",n,r)}return e}();function te(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=n;t.trim().split(I).forEach(function(t){if(!ee){var o=e.listeners;o&&o[t]&&o[t][n]&&(i=o[t][n],delete o[t][n],0===Object.keys(o[t]).length&&delete o[t],0===Object.keys(o).length&&delete e.listeners)}e.removeEventListener(t,i,r)})}function ne(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=n;t.trim().split(I).forEach(function(t){if(r.once&&!ee){var o=e.listeners,a=void 0===o?{}:o;i=function(){delete a[t][n],e.removeEventListener(t,i,r);for(var o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];n.apply(e,s)},a[t]||(a[t]={}),a[t][n]&&e.removeEventListener(t,a[t][n],r),a[t][n]=i,e.listeners=a}e.addEventListener(t,i,r)})}function re(e,n,r,i){var o;return V(Event)&&V(CustomEvent)?o=new CustomEvent(n,t({bubbles:!0,cancelable:!0,detail:r},i)):(o=document.createEvent("CustomEvent")).initCustomEvent(n,!0,!0,r),e.dispatchEvent(o)}function ie(e){var t=e.rotate,n=e.scaleX,r=e.scaleY,i=e.translateX,o=e.translateY,a=[];L(i)&&0!==i&&a.push("translateX(".concat(i,"px)")),L(o)&&0!==o&&a.push("translateY(".concat(o,"px)")),L(t)&&0!==t&&a.push("rotate(".concat(t,"deg)")),L(n)&&1!==n&&a.push("scaleX(".concat(n,")")),L(r)&&1!==r&&a.push("scaleY(".concat(r,")"));var s=a.length?a.join(" "):"none";return{WebkitTransform:s,msTransform:s,transform:s}}var oe=l.navigator&&/(Macintosh|iPhone|iPod|iPad).*AppleWebKit/i.test(l.navigator.userAgent);function ae(e,t,n){var r=document.createElement("img");if(e.naturalWidth&&!oe)return n(e.naturalWidth,e.naturalHeight),r;var i=document.body||document.documentElement;return r.onload=function(){n(r.width,r.height),oe||i.removeChild(r)},z(t.inheritedAttributes,function(t){var n=e.getAttribute(t);null!==n&&r.setAttribute(t,n)}),r.src=e.src,oe||(r.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",i.appendChild(r)),r}function se(e){switch(e){case 2:return _;case 3:return b;case 4:return g;default:return""}}function le(e,n){var r=e.pageX,i=e.pageY,o={endX:r,endY:i};return n?o:t({timeStamp:Date.now(),startX:r,startY:i},o)}var ce={render:function(){this.initContainer(),this.initViewer(),this.initList(),this.renderViewer()},initBody:function(){var e=this.element.ownerDocument,t=e.body||e.documentElement;this.body=t,this.scrollbarWidth=window.innerWidth-e.documentElement.clientWidth,this.initialBodyPaddingRight=t.style.paddingRight,this.initialBodyComputedPaddingRight=window.getComputedStyle(t).paddingRight},initContainer:function(){this.containerData={width:window.innerWidth,height:window.innerHeight}},initViewer:function(){var e,t=this.options,n=this.parent;t.inline&&(e={width:Math.max(n.offsetWidth,t.minWidth),height:Math.max(n.offsetHeight,t.minHeight)},this.parentData=e),!this.fulled&&e||(e=this.containerData),this.viewerData=U({},e)},renderViewer:function(){this.options.inline&&!this.fulled&&W(this.viewer,this.viewerData)},initList:function(){var e=this,t=this.element,n=this.options,r=this.list,i=[];r.innerHTML="",z(this.images,function(t,o){var a=t.src,s=t.alt||function(e){return M(e)?decodeURIComponent(e.replace(/^.*\//,"").replace(/[?&#].*$/,"")):""}(a),l=e.getImageURL(t);if(a||l){var c=document.createElement("li"),u=document.createElement("img");z(n.inheritedAttributes,function(e){var n=t.getAttribute(e);null!==n&&u.setAttribute(e,n)}),n.navbar&&(u.src=a||l),u.alt=s,u.setAttribute("data-original-url",l||a),c.setAttribute("data-index",o),c.setAttribute("data-viewer-action","view"),c.setAttribute("role","button"),n.keyboard&&c.setAttribute("tabindex",0),c.appendChild(u),r.appendChild(c),i.push(c)}}),this.items=i,z(i,function(t){var r,i,o=t.firstElementChild;Q(o,"filled",!0),n.loading&&H(t,x),ne(o,"load",r=function(r){te(o,"error",i),n.loading&&G(t,x),e.loadImage(r)},{once:!0}),ne(o,"error",i=function(){te(o,"load",r),n.loading&&G(t,x)},{once:!0})}),n.transition&&ne(t,"viewed",function(){H(r,O)},{once:!0})},renderList:function(){var e=this.index,t=this.items[e];if(t){var n=t.nextElementSibling,r=parseInt(window.getComputedStyle(n||t).marginLeft,10),i=t.offsetWidth,o=i+r;W(this.list,U({width:o*this.length-r},ie({translateX:(this.viewerData.width-i)/2-o*e})))}},resetList:function(){var e=this.list;e.innerHTML="",G(e,O),W(e,ie({translateX:0}))},initImage:function(e){var t,n=this,r=this.options,i=this.image,o=this.viewerData,a=this.footer.offsetHeight,s=o.width,l=Math.max(o.height-a,a),c=this.imageData||{};this.imageInitializing={abort:function(){t.onload=null}},t=ae(i,r,function(t,i){var o=t/i,a=Math.max(0,Math.min(1,r.initialCoverage)),u=s,d=l;n.imageInitializing=!1,l*o>s?d=s/o:u=l*o,a=L(a)?a:.9,u=Math.min(u*a,t),d=Math.min(d*a,i);var f=(s-u)/2,h=(l-d)/2,p={left:f,top:h,x:f,y:h,width:u,height:d,oldRatio:1,ratio:u/t,aspectRatio:o,naturalWidth:t,naturalHeight:i},m=U({},p);r.rotatable&&(p.rotate=c.rotate||0,m.rotate=0),r.scalable&&(p.scaleX=c.scaleX||1,p.scaleY=c.scaleY||1,m.scaleX=1,m.scaleY=1),n.imageData=p,n.initialImageData=m,e&&e()})},renderImage:function(e){var t=this,n=this.image,r=this.imageData;if(W(n,U({width:r.width,height:r.height,marginLeft:r.x,marginTop:r.y},ie(r))),e)if((this.viewing||this.moving||this.rotating||this.scaling||this.zooming)&&this.options.transition&&$(n,O)){var i=function(){t.imageRendering=!1,e()};this.imageRendering={abort:function(){te(n,"transitionend",i)}},ne(n,"transitionend",i,{once:!0})}else e()},resetImage:function(){if(this.viewing||this.viewed){var e=this.image;this.viewing&&this.viewing.abort(),e.parentNode.removeChild(e),this.image=null}}},ue={bind:function(){var e=this.options,t=this.viewer,n=this.canvas,r=this.element.ownerDocument;ne(t,"click",this.onClick=this.click.bind(this)),ne(t,"dragstart",this.onDragStart=this.dragstart.bind(this)),ne(n,j,this.onPointerDown=this.pointerdown.bind(this)),ne(r,T,this.onPointerMove=this.pointermove.bind(this)),ne(r,E,this.onPointerUp=this.pointerup.bind(this)),ne(r,"keydown",this.onKeyDown=this.keydown.bind(this)),ne(window,"resize",this.onResize=this.resize.bind(this)),e.zoomable&&e.zoomOnWheel&&ne(t,"wheel",this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),e.toggleOnDblclick&&ne(n,"dblclick",this.onDblclick=this.dblclick.bind(this))},unbind:function(){var e=this.options,t=this.viewer,n=this.canvas,r=this.element.ownerDocument;te(t,"click",this.onClick),te(t,"dragstart",this.onDragStart),te(n,j,this.onPointerDown),te(r,T,this.onPointerMove),te(r,E,this.onPointerUp),te(r,"keydown",this.onKeyDown),te(window,"resize",this.onResize),e.zoomable&&e.zoomOnWheel&&te(t,"wheel",this.onWheel,{passive:!1,capture:!0}),e.toggleOnDblclick&&te(n,"dblclick",this.onDblclick)}},de={click:function(e){var t=this.options,n=this.imageData,r=e.target,i=J(r,D);switch(i||"img"!==r.localName||"li"!==r.parentElement.localName||(i=J(r=r.parentElement,D)),c&&e.isTrusted&&r===this.canvas&&clearTimeout(this.clickCanvasTimeout),i){case"mix":this.played?this.stop():t.inline?this.fulled?this.exit():this.full():this.hide();break;case"hide":this.pointerMoved||this.hide();break;case"view":this.view(J(r,"index"));break;case"zoom-in":this.zoom(.1,!0);break;case"zoom-out":this.zoom(-.1,!0);break;case"one-to-one":this.toggle();break;case"reset":this.reset();break;case"prev":this.prev(t.loop);break;case"play":this.play(t.fullscreen);break;case"next":this.next(t.loop);break;case"rotate-left":this.rotate(-90);break;case"rotate-right":this.rotate(90);break;case"flip-horizontal":this.scaleX(-n.scaleX||-1);break;case"flip-vertical":this.scaleY(-n.scaleY||-1);break;default:this.played&&this.stop()}},dblclick:function(e){e.preventDefault(),this.viewed&&e.target===this.image&&(c&&e.isTrusted&&clearTimeout(this.doubleClickImageTimeout),this.toggle(e.isTrusted?e:e.detail&&e.detail.originalEvent))},load:function(){var e=this;this.timeout&&(clearTimeout(this.timeout),this.timeout=!1);var t=this.element,n=this.options,r=this.image,i=this.index,o=this.viewerData;G(r,w),n.loading&&G(this.canvas,x),r.style.cssText="height:0;"+"margin-left:".concat(o.width/2,"px;")+"margin-top:".concat(o.height/2,"px;")+"max-width:none!important;position:relative;width:0;",this.initImage(function(){Z(r,C,n.movable),Z(r,O,n.transition),e.renderImage(function(){e.viewed=!0,e.viewing=!1,V(n.viewed)&&ne(t,"viewed",n.viewed,{once:!0}),re(t,"viewed",{originalImage:e.images[i],index:i,image:r},{cancelable:!1})})})},loadImage:function(e){var t=e.target,n=t.parentNode,r=n.offsetWidth||30,i=n.offsetHeight||50,o=!!J(t,"filled");ae(t,this.options,function(e,n){var a=e/n,s=r,l=i;i*a>r?o?s=i*a:l=r/a:o?l=r/a:s=i*a,W(t,U({width:s,height:l},ie({translateX:(r-s)/2,translateY:(i-l)/2})))})},keydown:function(e){var t=this.options;if(t.keyboard){var n=e.keyCode||e.which||e.charCode;switch(n){case 13:this.viewer.contains(e.target)&&this.click(e)}if(this.fulled)switch(n){case 27:this.played?this.stop():t.inline?this.fulled&&this.exit():this.hide();break;case 32:this.played&&this.stop();break;case 37:this.played&&this.playing?this.playing.prev():this.prev(t.loop);break;case 38:e.preventDefault(),this.zoom(t.zoomRatio,!0);break;case 39:this.played&&this.playing?this.playing.next():this.next(t.loop);break;case 40:e.preventDefault(),this.zoom(-t.zoomRatio,!0);break;case 48:case 49:e.ctrlKey&&(e.preventDefault(),this.toggle())}}},dragstart:function(e){"img"===e.target.localName&&e.preventDefault()},pointerdown:function(e){var t=this.options,n=this.pointers,r=e.buttons,i=e.button;if(this.pointerMoved=!1,!(!this.viewed||this.showing||this.viewing||this.hiding||("mousedown"===e.type||"pointerdown"===e.type&&"mouse"===e.pointerType)&&(L(r)&&1!==r||L(i)&&0!==i||e.ctrlKey))){e.preventDefault(),e.changedTouches?z(e.changedTouches,function(e){n[e.identifier]=le(e)}):n[e.pointerId||0]=le(e);var o=!!t.movable&&"move";t.zoomOnTouch&&t.zoomable&&Object.keys(n).length>1?o="zoom":t.slideOnTouch&&("touch"===e.pointerType||"touchstart"===e.type)&&this.isSwitchable()&&(o="switch"),!t.transition||"move"!==o&&"zoom"!==o||G(this.image,O),this.action=o}},pointermove:function(e){var t=this.pointers,n=this.action;this.viewed&&n&&(e.preventDefault(),this.pointerMoved=!0,e.changedTouches?z(e.changedTouches,function(e){U(t[e.identifier]||{},le(e,!0))}):U(t[e.pointerId||0]||{},le(e,!0)),this.change(e))},pointerup:function(e){var t,n=this,r=this.options,i=this.action,o=this.pointers;e.changedTouches?z(e.changedTouches,function(e){t=o[e.identifier],delete o[e.identifier]}):(t=o[e.pointerId||0],delete o[e.pointerId||0]),i&&(e.preventDefault(),!r.transition||"move"!==i&&"zoom"!==i||H(this.image,O),this.action=!1,c&&"zoom"!==i&&t&&Date.now()-t.timeStamp<500&&(clearTimeout(this.clickCanvasTimeout),clearTimeout(this.doubleClickImageTimeout),r.toggleOnDblclick&&this.viewed&&e.target===this.image?this.imageClicked?(this.imageClicked=!1,this.doubleClickImageTimeout=setTimeout(function(){re(n.image,"dblclick",{originalEvent:e})},50)):(this.imageClicked=!0,this.doubleClickImageTimeout=setTimeout(function(){n.imageClicked=!1},500)):(this.imageClicked=!1,r.backdrop&&"static"!==r.backdrop&&e.target===this.canvas&&(this.clickCanvasTimeout=setTimeout(function(){re(n.canvas,"click",{originalEvent:e})},50)))))},resize:function(){var e=this;if(this.isShown&&!this.hiding&&(this.fulled&&(this.close(),this.initBody(),this.open()),this.initContainer(),this.initViewer(),this.renderViewer(),this.renderList(),this.viewed&&this.initImage(function(){e.renderImage()}),this.played)){if(this.options.fullscreen&&this.fulled&&!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement))return void this.stop();z(this.player.getElementsByTagName("img"),function(t){ne(t,"load",e.loadImage.bind(e),{once:!0}),re(t,"load")})}},wheel:function(e){var t=this;if(this.viewed&&(e.preventDefault(),!this.wheeling)){this.wheeling=!0,setTimeout(function(){t.wheeling=!1},50);var n=Number(this.options.zoomRatio)||.1,r=1;e.deltaY?r=e.deltaY>0?1:-1:e.wheelDelta?r=-e.wheelDelta/120:e.detail&&(r=e.detail>0?1:-1),this.zoom(-r*n,!0,null,e)}}},fe={show:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.element,n=this.options;if(n.inline||this.showing||this.isShown||this.showing)return this;if(!this.ready)return this.build(),this.ready&&this.show(e),this;if(V(n.show)&&ne(t,"show",n.show,{once:!0}),!1===re(t,"show")||!this.ready)return this;this.hiding&&this.transitioning.abort(),this.showing=!0,this.open();var r=this.viewer;if(G(r,v),r.setAttribute("role","dialog"),r.setAttribute("aria-labelledby",this.title.id),r.setAttribute("aria-modal",!0),r.removeAttribute("aria-hidden"),n.transition&&!e){var i=this.shown.bind(this);this.transitioning={abort:function(){te(r,"transitionend",i),G(r,k)}},H(r,O),r.initialOffsetWidth=r.offsetWidth,ne(r,"transitionend",i,{once:!0}),H(r,k)}else H(r,k),this.shown();return this},hide:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.element,r=this.options;if(r.inline||this.hiding||!this.isShown&&!this.showing)return this;if(V(r.hide)&&ne(n,"hide",r.hide,{once:!0}),!1===re(n,"hide"))return this;this.showing&&this.transitioning.abort(),this.hiding=!0,this.played?this.stop():this.viewing&&this.viewing.abort();var i=this.viewer,o=this.image,a=function(){G(i,k),e.hidden()};if(r.transition&&!t){var s=function t(n){n&&n.target===i&&(te(i,"transitionend",t),e.hidden())},l=function(){$(i,O)?(ne(i,"transitionend",s),G(i,k)):a()};this.transitioning={abort:function(){e.viewed&&$(o,O)?te(o,"transitionend",l):$(i,O)&&te(i,"transitionend",s)}},this.viewed&&$(o,O)?(ne(o,"transitionend",l,{once:!0}),this.zoomTo(0,!1,null,null,!0)):l()}else a();return this},view:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.initialViewIndex;if(t=Number(t)||0,this.hiding||this.played||t<0||t>=this.length||this.viewed&&t===this.index)return this;if(!this.isShown)return this.index=t,this.show();this.viewing&&this.viewing.abort();var n=this.element,r=this.options,i=this.title,o=this.canvas,a=this.items[t],s=a.querySelector("img"),l=J(s,"originalUrl"),c=s.getAttribute("alt"),u=document.createElement("img");if(z(r.inheritedAttributes,function(e){var t=s.getAttribute(e);null!==t&&u.setAttribute(e,t)}),u.src=l,u.alt=c,V(r.view)&&ne(n,"view",r.view,{once:!0}),!1===re(n,"view",{originalImage:this.images[t],index:t,image:u})||!this.isShown||this.hiding||this.played)return this;var f=this.items[this.index];f&&(G(f,d),f.removeAttribute("aria-selected")),H(a,d),a.setAttribute("aria-selected",!0),r.focus&&a.focus(),this.image=u,this.viewed=!1,this.index=t,this.imageData={},H(u,w),r.loading&&H(o,x),o.innerHTML="",o.appendChild(u),this.renderList(),i.innerHTML="";var h,p,m=function(){var t=e.imageData,n=Array.isArray(r.title)?r.title[1]:r.title;i.innerHTML=function(e){return M(e)?e.replace(/&(?!amp;|quot;|#39;|lt;|gt;)/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;"):e}(V(n)?n.call(e,u,t):"".concat(c," (").concat(t.naturalWidth," × ").concat(t.naturalHeight,")"))};return ne(n,"viewed",m,{once:!0}),this.viewing={abort:function(){te(n,"viewed",m),u.complete?e.imageRendering?e.imageRendering.abort():e.imageInitializing&&e.imageInitializing.abort():(u.src="",te(u,"load",h),e.timeout&&clearTimeout(e.timeout))}},u.complete?this.load():(ne(u,"load",h=function(){te(u,"error",p),e.load()},{once:!0}),ne(u,"error",p=function(){te(u,"load",h),e.timeout&&(clearTimeout(e.timeout),e.timeout=!1),G(u,w),r.loading&&G(e.canvas,x)},{once:!0}),this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(function(){G(u,w),e.timeout=!1},1e3)),this},prev:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.index-1;return t<0&&(t=e?this.length-1:0),this.view(t),this},next:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.length-1,n=this.index+1;return n>t&&(n=e?0:t),this.view(n),this},move:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=this.imageData;return this.moveTo(B(e)?e:n.x+Number(e),B(t)?t:n.y+Number(t)),this},moveTo:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=this.element,o=this.options,a=this.imageData;if(e=Number(e),n=Number(n),this.viewed&&!this.played&&o.movable){var s=a.x,l=a.y,c=!1;if(L(e)?c=!0:e=s,L(n)?c=!0:n=l,c){if(V(o.move)&&ne(i,"move",o.move,{once:!0}),!1===re(i,"move",{x:e,y:n,oldX:s,oldY:l,originalEvent:r}))return this;a.x=e,a.y=n,a.left=e,a.top=n,this.moving=!0,this.renderImage(function(){t.moving=!1,V(o.moved)&&ne(i,"moved",o.moved,{once:!0}),re(i,"moved",{x:e,y:n,oldX:s,oldY:l,originalEvent:r},{cancelable:!1})})}}return this},rotate:function(e){return this.rotateTo((this.imageData.rotate||0)+Number(e)),this},rotateTo:function(e){var t=this,n=this.element,r=this.options,i=this.imageData;if(L(e=Number(e))&&this.viewed&&!this.played&&r.rotatable){var o=i.rotate;if(V(r.rotate)&&ne(n,"rotate",r.rotate,{once:!0}),!1===re(n,"rotate",{degree:e,oldDegree:o}))return this;i.rotate=e,this.rotating=!0,this.renderImage(function(){t.rotating=!1,V(r.rotated)&&ne(n,"rotated",r.rotated,{once:!0}),re(n,"rotated",{degree:e,oldDegree:o},{cancelable:!1})})}return this},scaleX:function(e){return this.scale(e,this.imageData.scaleY),this},scaleY:function(e){return this.scale(this.imageData.scaleX,e),this},scale:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=this.element,i=this.options,o=this.imageData;if(e=Number(e),n=Number(n),this.viewed&&!this.played&&i.scalable){var a=o.scaleX,s=o.scaleY,l=!1;if(L(e)?l=!0:e=a,L(n)?l=!0:n=s,l){if(V(i.scale)&&ne(r,"scale",i.scale,{once:!0}),!1===re(r,"scale",{scaleX:e,scaleY:n,oldScaleX:a,oldScaleY:s}))return this;o.scaleX=e,o.scaleY=n,this.scaling=!0,this.renderImage(function(){t.scaling=!1,V(i.scaled)&&ne(r,"scaled",i.scaled,{once:!0}),re(r,"scaled",{scaleX:e,scaleY:n,oldScaleX:a,oldScaleY:s},{cancelable:!1})})}}return this},zoom:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=this.imageData;return e=(e=Number(e))<0?1/(1-e):1+e,this.zoomTo(i.width*e/i.naturalWidth,t,n,r),this},zoomTo:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=this.element,s=this.options,l=this.pointers,c=this.imageData,u=c.x,d=c.y,f=c.width,h=c.height,p=c.naturalWidth,m=c.naturalHeight;if(L(e=Math.max(0,e))&&this.viewed&&!this.played&&(o||s.zoomable)){if(!o){var y=Math.max(.01,s.minZoomRatio),v=Math.min(100,s.maxZoomRatio);e=Math.min(Math.max(e,y),v)}if(i)switch(i.type){case"wheel":s.zoomRatio>=.055&&e>.95&&e<1.05&&(e=1);break;case"pointermove":case"touchmove":case"mousemove":e>.99&&e<1.01&&(e=1)}var g=p*e,b=m*e,_=g-f,k=b-h,w=c.ratio;if(V(s.zoom)&&ne(a,"zoom",s.zoom,{once:!0}),!1===re(a,"zoom",{ratio:e,oldRatio:w,originalEvent:i}))return this;if(this.zooming=!0,i){var x=function(e){var t=e.getBoundingClientRect();return{left:t.left+(window.pageXOffset-document.documentElement.clientLeft),top:t.top+(window.pageYOffset-document.documentElement.clientTop)}}(this.viewer),C=l&&Object.keys(l).length>0?function(e){var t=0,n=0,r=0;return z(e,function(e){var i=e.startX,o=e.startY;t+=i,n+=o,r+=1}),{pageX:t/=r,pageY:n/=r}}(l):{pageX:i.pageX,pageY:i.pageY};c.x-=_*((C.pageX-x.left-u)/f),c.y-=k*((C.pageY-x.top-d)/h)}else K(r)&&L(r.x)&&L(r.y)?(c.x-=_*((r.x-u)/f),c.y-=k*((r.y-d)/h)):(c.x-=_/2,c.y-=k/2);c.left=c.x,c.top=c.y,c.width=g,c.height=b,c.oldRatio=w,c.ratio=e,this.renderImage(function(){t.zooming=!1,V(s.zoomed)&&ne(a,"zoomed",s.zoomed,{once:!0}),re(a,"zoomed",{ratio:e,oldRatio:w,originalEvent:i},{cancelable:!1})}),n&&this.tooltip()}return this},play:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.isShown||this.played)return this;var n=this.element,r=this.options;if(V(r.play)&&ne(n,"play",r.play,{once:!0}),!1===re(n,"play"))return this;var i=this.player,o=this.loadImage.bind(this),a=[],s=0,l=0;if(this.played=!0,this.onLoadWhenPlay=o,t&&this.requestFullscreen(t),H(i,A),z(this.items,function(e,t){var n=e.querySelector("img"),c=document.createElement("img");c.src=J(n,"originalUrl"),c.alt=n.getAttribute("alt"),c.referrerPolicy=n.referrerPolicy,s+=1,H(c,h),Z(c,O,r.transition),$(e,d)&&(H(c,k),l=t),a.push(c),ne(c,"load",o,{once:!0}),i.appendChild(c)}),L(r.interval)&&r.interval>0){var c=function t(){clearTimeout(e.playing.timeout),G(a[l],k),H(a[l=(l+=1)<s?l:0],k),e.playing.timeout=setTimeout(t,r.interval)};s>1&&(this.playing={prev:function t(){clearTimeout(e.playing.timeout),G(a[l],k),H(a[l=(l-=1)>=0?l:s-1],k),e.playing.timeout=setTimeout(t,r.interval)},next:c,timeout:setTimeout(c,r.interval)})}return this},stop:function(){var e=this;if(!this.played)return this;var t=this.element,n=this.options;if(V(n.stop)&&ne(t,"stop",n.stop,{once:!0}),!1===re(t,"stop"))return this;var r=this.player;return clearTimeout(this.playing.timeout),this.playing=!1,this.played=!1,z(r.getElementsByTagName("img"),function(t){te(t,"load",e.onLoadWhenPlay)}),G(r,A),r.innerHTML="",this.exitFullscreen(),this},full:function(){var e=this,t=this.options,n=this.viewer,r=this.image,i=this.list;return!this.isShown||this.played||this.fulled||!t.inline?this:(this.fulled=!0,this.open(),H(this.button,y),t.transition&&(G(i,O),this.viewed&&G(r,O)),H(n,p),n.setAttribute("role","dialog"),n.setAttribute("aria-labelledby",this.title.id),n.setAttribute("aria-modal",!0),n.removeAttribute("style"),W(n,{zIndex:t.zIndex}),t.focus&&this.enforceFocus(),this.initContainer(),this.viewerData=U({},this.containerData),this.renderList(),this.viewed&&this.initImage(function(){e.renderImage(function(){t.transition&&setTimeout(function(){H(r,O),H(i,O)},0)})}),this)},exit:function(){var e=this,t=this.options,n=this.viewer,r=this.image,i=this.list;return this.isShown&&!this.played&&this.fulled&&t.inline?(this.fulled=!1,this.close(),G(this.button,y),t.transition&&(G(i,O),this.viewed&&G(r,O)),t.focus&&this.clearEnforceFocus(),n.removeAttribute("role"),n.removeAttribute("aria-labelledby"),n.removeAttribute("aria-modal"),G(n,p),W(n,{zIndex:t.zIndexInline}),this.viewerData=U({},this.parentData),this.renderViewer(),this.renderList(),this.viewed&&this.initImage(function(){e.renderImage(function(){t.transition&&setTimeout(function(){H(r,O),H(i,O)},0)})}),this):this},tooltip:function(){var e=this,t=this.options,n=this.tooltipBox,r=this.imageData;return this.viewed&&!this.played&&t.tooltip?(n.textContent="".concat(Math.round(100*r.ratio),"%"),this.tooltipping?clearTimeout(this.tooltipping):t.transition?(this.fading&&re(n,"transitionend"),H(n,A),H(n,h),H(n,O),n.removeAttribute("aria-hidden"),n.initialOffsetWidth=n.offsetWidth,H(n,k)):(H(n,A),n.removeAttribute("aria-hidden")),this.tooltipping=setTimeout(function(){t.transition?(ne(n,"transitionend",function(){G(n,A),G(n,h),G(n,O),n.setAttribute("aria-hidden",!0),e.fading=!1},{once:!0}),G(n,k),e.fading=!0):(G(n,A),n.setAttribute("aria-hidden",!0)),e.tooltipping=!1},1e3),this):this},toggle:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return 1===this.imageData.ratio?this.zoomTo(this.imageData.oldRatio,!0,null,e):this.zoomTo(1,!0,null,e),this},reset:function(){return this.viewed&&!this.played&&(this.imageData=U({},this.initialImageData),this.renderImage()),this},update:function(){var e=this,t=this.element,n=this.options,r=this.isImg;if(r&&!t.parentNode)return this.destroy();var i=[];if(z(r?[t]:t.querySelectorAll("img"),function(t){V(n.filter)?n.filter.call(e,t)&&i.push(t):e.getImageURL(t)&&i.push(t)}),!i.length)return this;if(this.images=i,this.length=i.length,this.ready){var o=[];if(z(this.items,function(e,t){var n=e.querySelector("img"),r=i[t];r&&n&&r.src===n.src&&r.alt===n.alt||o.push(t)}),W(this.list,{width:"auto"}),this.initList(),this.isShown)if(this.length){if(this.viewed){var a=o.indexOf(this.index);if(a>=0)this.viewed=!1,this.view(Math.max(Math.min(this.index-a,this.length-1),0));else{var s=this.items[this.index];H(s,d),s.setAttribute("aria-selected",!0)}}}else this.image=null,this.viewed=!1,this.index=0,this.imageData={},this.canvas.innerHTML="",this.title.innerHTML=""}else this.build();return this},destroy:function(){var e=this.element,t=this.options;return e.viewer?(this.destroyed=!0,this.ready?(this.played&&this.stop(),t.inline?(this.fulled&&this.exit(),this.unbind()):this.isShown?(this.viewing&&(this.imageRendering?this.imageRendering.abort():this.imageInitializing&&this.imageInitializing.abort()),this.hiding&&this.transitioning.abort(),this.hidden()):this.showing&&(this.transitioning.abort(),this.hidden()),this.ready=!1,this.viewer.parentNode.removeChild(this.viewer)):t.inline&&(this.delaying?this.delaying.abort():this.initializing&&this.initializing.abort()),t.inline||te(e,"click",this.onStart),e.viewer=void 0,this):this}},he={getImageURL:function(e){var t=this.options.url;return t=M(t)?e.getAttribute(t):V(t)?t.call(this,e):""},enforceFocus:function(){var e=this;this.clearEnforceFocus(),ne(document,"focusin",this.onFocusin=function(t){var n=e.viewer,r=t.target;if(r!==document&&r!==n&&!n.contains(r)){for(;r;){if(null!==r.getAttribute("tabindex")||"true"===r.getAttribute("aria-modal"))return;r=r.parentElement}n.focus()}})},clearEnforceFocus:function(){this.onFocusin&&(te(document,"focusin",this.onFocusin),this.onFocusin=null)},open:function(){var e=this.body;H(e,S),this.scrollbarWidth>0&&(e.style.paddingRight="".concat(this.scrollbarWidth+(parseFloat(this.initialBodyComputedPaddingRight)||0),"px"))},close:function(){var e=this.body;G(e,S),this.scrollbarWidth>0&&(e.style.paddingRight=this.initialBodyPaddingRight)},shown:function(){var e=this.element,t=this.options,n=this.viewer;this.fulled=!0,this.isShown=!0,this.render(),this.bind(),this.showing=!1,t.focus&&(n.focus(),this.enforceFocus()),V(t.shown)&&ne(e,"shown",t.shown,{once:!0}),!1!==re(e,"shown")&&this.ready&&this.isShown&&!this.hiding&&this.view(this.index)},hidden:function(){var e=this.element,t=this.options,n=this.viewer;t.fucus&&this.clearEnforceFocus(),this.fulled=!1,this.viewed=!1,this.isShown=!1,this.close(),this.unbind(),H(n,v),n.removeAttribute("role"),n.removeAttribute("aria-labelledby"),n.removeAttribute("aria-modal"),n.setAttribute("aria-hidden",!0),this.resetList(),this.resetImage(),this.hiding=!1,this.destroyed||(V(t.hidden)&&ne(e,"hidden",t.hidden,{once:!0}),re(e,"hidden",null,{cancelable:!1}))},requestFullscreen:function(e){var t=this.element.ownerDocument;if(this.fulled&&!(t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement)){var n=t.documentElement;n.requestFullscreen?K(e)?n.requestFullscreen(e):n.requestFullscreen():n.webkitRequestFullscreen?n.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):n.mozRequestFullScreen?n.mozRequestFullScreen():n.msRequestFullscreen&&n.msRequestFullscreen()}},exitFullscreen:function(){var e=this.element.ownerDocument;this.fulled&&(e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement)&&(e.exitFullscreen?e.exitFullscreen():e.webkitExitFullscreen?e.webkitExitFullscreen():e.mozCancelFullScreen?e.mozCancelFullScreen():e.msExitFullscreen&&e.msExitFullscreen())},change:function(e){var n=this.options,r=this.pointers,i=r[Object.keys(r)[0]];if(i){var o=i.endX-i.startX,a=i.endY-i.startY;switch(this.action){case"move":this.move(o,a,e);break;case"zoom":this.zoom(function(e){var n=t({},e),r=[];return z(e,function(e,t){delete n[t],z(n,function(t){var n=Math.abs(e.startX-t.startX),i=Math.abs(e.startY-t.startY),o=Math.abs(e.endX-t.endX),a=Math.abs(e.endY-t.endY),s=Math.sqrt(n*n+i*i),l=(Math.sqrt(o*o+a*a)-s)/s;r.push(l)})}),r.sort(function(e,t){return Math.abs(e)<Math.abs(t)}),r[0]}(r),!1,null,e);break;case"switch":this.action="switched";var s=Math.abs(o);s>1&&s>Math.abs(a)&&(this.pointers={},o>1?this.prev(n.loop):o<-1&&this.next(n.loop))}z(r,function(e){e.startX=e.endX,e.startY=e.endY})}},isSwitchable:function(){var e=this.imageData,t=this.viewerData;return this.length>1&&e.x>=0&&e.y>=0&&e.width<=t.width&&e.height<=t.height}},pe=l.Viewer,me=function(e){return function(){return e+=1}}(-1),ye=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t||1!==t.nodeType)throw new Error("The first argument is required and must be an element.");this.element=t,this.options=U({},a,K(n)&&n),this.action=!1,this.fading=!1,this.fulled=!1,this.hiding=!1,this.imageClicked=!1,this.imageData={},this.index=this.options.initialViewIndex,this.isImg=!1,this.isShown=!1,this.length=0,this.moving=!1,this.played=!1,this.playing=!1,this.pointers={},this.ready=!1,this.rotating=!1,this.scaling=!1,this.showing=!1,this.timeout=!1,this.tooltipping=!1,this.viewed=!1,this.viewing=!1,this.wheeling=!1,this.zooming=!1,this.pointerMoved=!1,this.id=me(),this.init()}return function(e,t,n){t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1})}(e,[{key:"init",value:function(){var e=this,t=this.element,n=this.options;if(!t.viewer){t.viewer=this,n.focus&&!n.keyboard&&(n.focus=!1);var r="img"===t.localName,i=[];if(z(r?[t]:t.querySelectorAll("img"),function(t){V(n.filter)?n.filter.call(e,t)&&i.push(t):e.getImageURL(t)&&i.push(t)}),this.isImg=r,this.length=i.length,this.images=i,this.initBody(),B(document.createElement("viewer").style.transition)&&(n.transition=!1),n.inline){var o=0,a=function(){var t;(o+=1)===e.length&&(e.initializing=!1,e.delaying={abort:function(){clearTimeout(t)}},t=setTimeout(function(){e.delaying=!1,e.build()},0))};this.initializing={abort:function(){z(i,function(e){e.complete||(te(e,"load",a),te(e,"error",a))})}},z(i,function(e){var t,n;e.complete?a():(ne(e,"load",t=function(){te(e,"error",n),a()},{once:!0}),ne(e,"error",n=function(){te(e,"load",t),a()},{once:!0}))})}else ne(t,"click",this.onStart=function(t){var r=t.target;"img"!==r.localName||V(n.filter)&&!n.filter.call(e,r)||e.view(e.images.indexOf(r))})}}},{key:"build",value:function(){if(!this.ready){var e=this.element,t=this.options,n=e.parentNode,r=document.createElement("div");r.innerHTML='<div class="viewer-container" tabindex="-1" touch-action="none"><div class="viewer-canvas"></div><div class="viewer-footer"><div class="viewer-title"></div><div class="viewer-toolbar"></div><div class="viewer-navbar"><ul class="viewer-list" role="navigation"></ul></div></div><div class="viewer-tooltip" role="alert" aria-hidden="true"></div><div class="viewer-button" data-viewer-action="mix" role="button"></div><div class="viewer-player"></div></div>';var i=r.querySelector(".".concat("viewer","-container")),o=i.querySelector(".".concat("viewer","-title")),a=i.querySelector(".".concat("viewer","-toolbar")),s=i.querySelector(".".concat("viewer","-navbar")),l=i.querySelector(".".concat("viewer","-button")),c=i.querySelector(".".concat("viewer","-canvas"));if(this.parent=n,this.viewer=i,this.title=o,this.toolbar=a,this.navbar=s,this.button=l,this.canvas=c,this.footer=i.querySelector(".".concat("viewer","-footer")),this.tooltipBox=i.querySelector(".".concat("viewer","-tooltip")),this.player=i.querySelector(".".concat("viewer","-player")),this.list=i.querySelector(".".concat("viewer","-list")),i.id="".concat("viewer").concat(this.id),o.id="".concat("viewer","Title").concat(this.id),H(o,t.title?se(Array.isArray(t.title)?t.title[0]:t.title):v),H(s,t.navbar?se(t.navbar):v),Z(l,v,!t.button),t.keyboard&&l.setAttribute("tabindex",0),t.backdrop&&(H(i,"".concat("viewer","-backdrop")),t.inline||"static"===t.backdrop||Q(c,D,"hide")),M(t.className)&&t.className&&t.className.split(I).forEach(function(e){H(i,e)}),t.toolbar){var u=document.createElement("ul"),d=K(t.toolbar),y=R.slice(0,3),g=R.slice(7,9),b=R.slice(9);d||H(a,se(t.toolbar)),z(d?t.toolbar:R,function(e,n){var r=d&&K(e),i=d?X(n):e,o=r&&!B(e.show)?e.show:e;if(o&&(t.zoomable||-1===y.indexOf(i))&&(t.rotatable||-1===g.indexOf(i))&&(t.scalable||-1===b.indexOf(i))){var a=r&&!B(e.size)?e.size:e,s=r&&!B(e.click)?e.click:e,l=document.createElement("li");t.keyboard&&l.setAttribute("tabindex",0),l.setAttribute("role","button"),H(l,"".concat("viewer","-").concat(i)),V(s)||Q(l,D,i),L(o)&&H(l,se(o)),-1!==["small","large"].indexOf(a)?H(l,"".concat("viewer","-").concat(a)):"play"===i&&H(l,"".concat("viewer","-large")),V(s)&&ne(l,"click",s),u.appendChild(l)}}),a.appendChild(u)}else H(a,v);if(!t.rotatable){var _=a.querySelectorAll('li[class*="rotate"]');H(_,w),z(_,function(e){a.appendChild(e)})}if(t.inline)H(l,m),W(i,{zIndex:t.zIndexInline}),"static"===window.getComputedStyle(n).position&&W(n,{position:"relative"}),n.insertBefore(i,e.nextSibling);else{H(l,f),H(i,p),H(i,h),H(i,v),W(i,{zIndex:t.zIndex});var k=t.container;M(k)&&(k=e.ownerDocument.querySelector(k)),k||(k=this.body),k.appendChild(i)}t.inline&&(this.render(),this.bind(),this.isShown=!0),this.ready=!0,V(t.ready)&&ne(e,"ready",t.ready,{once:!0}),!1!==re(e,"ready")?this.ready&&t.inline&&this.view(this.index):this.ready=!1}}}],[{key:"noConflict",value:function(){return window.Viewer=pe,e}},{key:"setDefaults",value:function(e){U(a,K(e)&&e)}}]),e}();return U(ye.prototype,ce,ue,de,fe,he),ye})},function(e,t,n){"use strict";var r=n(36),i=n.n(r),o=n(143),a=n.n(o),s=n(136),l=n.n(s);t.a={name:"uploadList",props:{canEdit:{type:Boolean,default:!0},files:{type:Array,default:function(){return[]}},showType:{type:String,default:"old"},emptyShowVal:String,propsObj:{type:Object,default:function(){return{}}}},computed:{operationMap:function(){return{remove:{name:"删除",icon:"ios-trash-outline",size:"16",event:"clickDeleteItem",canShow:this.canEdit},download:{name:"下载",icon:"ios-cloud-download-outline",size:"14",event:"handleDownload",canShow:!0},preview:{name:"预览",icon:"ios-eye-outline",size:"22",type:"updateColor",event:"clickPreview",canShow:void 0}}},imageResizeConfig:function(){return{}},noText:function(){return this.files&&this.files.length?"":this.canEdit?"未上传"+("image"===this.propsObj._fileType?"图片":"文件")+" ":this.emptyShowVal}},data:function(){return{}},methods:{getBtns:function(e){var t=this;return this.operationMap.preview.canShow=e,i()(this.operationMap).filter(function(e){return t.operationMap[e].canShow})},clickDeleteItem:function(e,t){this.$emit("deleteItem",t)},clickPreview:function(e,t){"image"===this.propsObj._fileType?this.previewImage(t.url):t.mimetype.indexOf("image")>-1?this.previewImage(t.url):window.open(t.url)},previewImage:function(e){var t=this.$refs.viewerImage,n=this.files.filter(function(e){return e.mimetype.indexOf("image")>-1}).findIndex(function(t){return t.url===e}),r=new a.a(t,{url:"data-original",hidden:function(){r.destroy()},loop:!1,initialViewIndex:n,zIndex:2147483647});r.show()},handleDownload:function(e,t){l.a.get(t.url,{responseType:"blob"}).then(function(e){if(window.navigator.msSaveOrOpenBlob)navigator.msSaveBlob(e,t.name);else{var n=URL.createObjectURL(e.data),r=document.createElement("a");r.style.display="none",r.href=n,r.download=t.name,r.click(),URL.revokeObjectURL(r.href),r.remove()}})},getFileImage:function(e){return e.mimetype?e.mimetype.indexOf("image")>-1?e.url:e.mimetype.indexOf("text/plain")>-1?this.$imageSrcMap.fileType.text:e.mimetype.indexOf("application/pdf")>-1?this.$imageSrcMap.fileType.pdf:e.mimetype.indexOf("wordprocessingml.document")>-1||e.mimetype.indexOf("application/msword")>-1?this.$imageSrcMap.fileType.doc:e.mimetype.indexOf("presentationml.presentation")>-1||e.mimetype.indexOf("application/vnd.ms-powerpoint")>-1?this.$imageSrcMap.fileType.ppt:e.mimetype.indexOf("spreadsheetml.sheet")>-1?this.$imageSrcMap.fileType.excel:e.mimetype.indexOf("application/x-zip-compressed")>-1?this.$imageSrcMap.fileType.zip:e.mimetype.indexOf("application/x-rar-compressed")>-1?this.$imageSrcMap.fileType.rar:this.$imageSrcMap.fileType.other:this.$imageSrcMap.fileType.other}}}},function(e,t,n){"use strict";var r=n(66),i=n.n(r),o=n(2),a=n.n(o),s=n(1),l=n.n(s),c=n(33),u=(n.n(c),n(3)),d=n(73);t.a={name:"DshCascader",mixins:[u.default],components:{InfoCascader:d.default},props:{},data:function(){return{renderDataFlag:!0,clickInputFlag:!0,isVisible:!1,multipleSelectVal:[],selectVal:[],showModal:!1}},computed:{selfPropsObj:function(){var e=this;return l()({_showMode:!1,_changeOnSelect:!1,_filterable:!0,_renderFormat:function(t){return t.join(e.propsObj._joinSymbol||"/")},_transfer:!0},this.propsObj,this.commonDealPropsObj)},multipleMode:function(){return["regions","cascaders"].includes(this.propsObj._type)},showMode:function(){return this.selfPropsObj._showMode},inputIcon:function(){return this.isVisible?"ios-arrow-up":"ios-arrow-down"},cascaderData:{get:function(){return function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments[1],r=arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return t&&i.length&&(t=t.filter(function(e){return i.includes(e._key)})),t?t.reduce(function(t,i){var o=l()({},i,{value:i._key,label:i.name,codeArr:[].concat(a()(r||[]),[i._key])});return!n||n>i.level?(o.children=e(i.children,n,o.codeArr),o.children.length&&(o.loading=!1)):o.children=[],t.push(o),t},[]):[]}(["region","regions"].includes(this.propsObj._type)?c.regionData:this.selfPropsObj._data,this.selfPropsObj._cascaderLevel,void 0,this.selfPropsObj._cascaderFilterVals)},set:function(){}},renderCascaderData:function(){return this.renderDataFlag?this.cascaderData.map(function(e){return l()({},e,{children:[]})}):this.cascaderData},curValName:function(){return this.$getTreeLinealDatas(this.curValList,this.cascaderData,"name").join("/")},showVal:function(){return this.$isEmptyData(this.curValList)?this.emptyShowVal:this.curValName},curValNameList:function(){var e=this;return this.curValList.map(function(t){return e.$getTreeLinealDatas(t,e.cascaderData,"name").join("/")})},showMultipleVal:function(){return this.$isEmptyData(this.curValList)?this.emptyShowVal:this.curValNameList.join("、")}},created:function(){},methods:{loadData:function(e,t){var n=this.$getTreeLinealDatas(e.codeArr,this.cascaderData);e.children=n[n.length-1].children.map(function(e){return l()({},e,{children:[]})}),t()},clickClear:function(){this.curValList=[]},clickInput:function(e){this.finalCanEdit||e.stopPropagation()},multipleVisibleChange:function(e){var t=this;this.isVisible=e,!1===e&&(this.selectVal.length&&(this.curValList.some(function(e){return i()(e)==i()(t.selectVal)})?this.$Message.error({content:'"'+this.$getTreeLinealDatas(this.selectVal,this.cascaderData,"name").join("/")+'"已选择,请勿重复选择!',duration:5}):this.curValList=[].concat(a()(this.curValList),[this.selectVal])),this.selectVal=[],this.multipleSelectVal=[])},createItem:function(e){this.isVisible&&(this.selectVal=e)},clickDeleteItem:function(e,t){this.curValList.splice(t,1),this.curValList=[].concat(a()(this.curValList))},openModal:function(){this.finalCanEdit&&(this.showModal=!0)},toggleModal:function(e){this.showModal=e},clickCascader:function(){var e=this;this.finalCanEdit&&["cascader"].includes(this.selfPropsObj._type)&&!0===this.selfPropsObj._filterable&&!0===this.renderDataFlag&&!0===this.clickInputFlag&&(this.clickInputFlag=!1,setTimeout(function(){e.renderDataFlag=!1},0))},visibleChange:function(e){var t=this;e?this.isVisible=e:setTimeout(function(){t.isVisible=e},0)},changeVal:function(e){!this.isVisible&&e.length||(this.curValList=e)}},watch:{"propsObj._cascaderLevel":function(){this.value[this.controlKey]=[]}}}},function(e,t,n){"use strict";var r=n(74),i=n.n(r),o=n(1),a=n.n(o);t.a={name:"InfoCascader",props:{showModal:Boolean,value:{type:Array,default:function(){return[]}},data:{type:Array,default:function(){return[]}},propsObj:{type:Object,default:function(){return{}}}},data:function(){return{description:"",operationMap:{cancel:{name:"取消",type:"clickCancel",event:"clickCancel",class:"z-default"},confirm:{name:"确定",btnType:"primary",type:"clickConfirm",event:"clickConfirm",class:"z-primary"}},curSelect:{},curName:"",searchData:{search:""},inputPropsObj:{_key:"search",_name:"关键字搜索"},show:!0}},computed:{modalVal:{get:function(){return this.showModal},set:function(e){this.$emit("changeShowModal",e)}},modalPropsObj:function(){return{title:this.propsObj._name}},initData:function(){return this.loop(this.data,null,this.value)},treeData:function(){if(!this.searchData.search)return this.initData;var e=this;return function t(n,r){e.show=!1;var i=[];return r.forEach(function(e){if(e.children&&e.children.length){var r=t(n,e.children),o=a()({},e,{expand:!0,children:r});r&&r.length?i.push(o):e.title.indexOf(n)>-1&&(e.expand=!0,i.push(e))}else e.title.indexOf(n)>-1&&i.push(e)}),e.show=!0,i}(this.searchData.search,this.initData)}},created:function(){var e=this;if(this.curSelect.codeArr=this.value,this.value&&this.value.length){!function t(n){var r=!0,o=!1,a=void 0;try{for(var s,l=i()(n);!(r=(s=l.next()).done);r=!0){var c=s.value;if(c.codeArr.length==e.value.length&&c.codeArr.every(function(t,n){return t===e.value[n]})){e.curName=c.name;break}c.children.length&&t(c.children)}}catch(e){o=!0,a=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw a}}}(this.initData),this.getDescription(this.value)}},methods:{change:function(e){var t=this;0===e.children.length?(this.curName=e.name,this.getDescription(e.codeArr),e.codeArr.length&&this.curSelect.codeArr&&this.curSelect.codeArr.length===e.codeArr.length&&e.codeArr.every(function(e,n){return e===t.curSelect.codeArr[n]})?(this.curSelect={},this.description=""):this.propsObj._cascaderLevel&&e.level!=this.propsObj._cascaderLevel&&e.children.length||(this.curSelect=e)):(this.curName="",this.description="",this.curSelect={})},getDescription:function(e){var t=this;this.$https({url:{module:"sheet",name:"getResourceDescription"},params:{resourceKey:this.propsObj._resourceKey,nodeKeys:e},callback:function(e){t.description=e}})},clickCancel:function(){this.$emit("changeShowModal",!1)},clickConfirm:function(){this.curName?(this.$emit("input",this.curSelect.codeArr),this.$emit("change",this.curSelect.codeArr),this.$emit("changeShowModal",!1)):this.$Message.warning("请选择"+this.propsObj._name+"!")},loop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=this,n=arguments[1];arguments[2];return e?e.reduce(function(e,r){(r.expand=!1,t.value.length)&&t.$getTreeLinealDatas(t.value,t.data).forEach(function(e){e.expand=!0});var i=a()({},r,{value:r._key,title:r.name,disabled:!t.propsObj._cascaderLevel||r.level<t.propsObj._cascaderLevel,render:function(e,n){n.root,n.node;var r=n.data;return e("span",{class:{"ivu-tree-title-selected":t.curSelect.codeArr&&t.curSelect.codeArr.length&&t.curSelect.codeArr.length===r.codeArr.length&&t.curSelect.codeArr.every(function(e,t){return e===r.codeArr[t]})},style:{display:"inline-block",width:"100%"},on:{click:function(){t.change(r)}}},r.title)}});return(!n||n>r.level)&&(i.children=t.loop(r.children,n,t.value)),e.push(i),e},[]):[]}}}},function(e,t,n){"use strict";var r=n(2),i=n.n(r),o=n(1),a=n.n(o),s=n(3),l=n(43),c=n(33);n.n(c);t.a={name:"DshCheckbox",mixins:[s.default,l.default],props:{},data:function(){return{}},computed:{selfPropsObj:function(){return a()({_optionKind:"dropdown",_useColor:!1,colorMap:c.resourceData.colorMap,_filterable:!0,_transfer:!0,_data:[]},this.propsObj,this.commonDealPropsObj)},showType:function(){return this.selfPropsObj._optionKind},useColor:function(){return this.selfPropsObj._useColor},colorMap:function(){return this.selfPropsObj.colorMap},listData:function(){return this.selfPropsObj._data.concat(this.initListData)},curValObjList:function(){var e=this;return this.curValList.map(function(t){var n=e.listData.find(function(e){return e._key===t})||{_key:t,name:"温馨提示:选项"+t+"已找不到"};return a()({},n,{style:e.getItemStyle(n),color:void 0})})},showMultipleVal:function(){return this.$isEmptyData(this.curValList)?this.emptyShowVal:this.curValObjList.map(function(e){return e.name||e._name}).join("、")}},created:function(){},methods:{changeSelect:function(e){if(this.curValList.includes(e.value)){var t=this.curValList.findIndex(function(t){return t===e.value});this.curValList.splice(t,1)}else this.curValList.push(e.value);this.curValList=[].concat(i()(this.curValList))},getItemColorClass:function(e){return this.colorMap[e.color]?e.color:"color-1"},getItemStyle:function(e){var t=this.colorMap[e.color]||this.colorMap["color-1"];return{background:this.useColor?this.$getColor(t,.1):void 0,color:this.useColor?t:void 0}},getItemDisabled:function(e){return!!(!this.finalCanEdit||e._disabled||this.curValList.length>=this.selfPropsObj._max&&!this.getItemSelectStatus(e))},getItemSelectStatus:function(e){return this.curValList.includes(e._key)}}}},function(e,t,n){"use strict";var r=n(66),i=n.n(r),o=n(2),a=n.n(o),s=n(1),l=n.n(s),c=n(3),u={fillColor:"#4575EF",fillOpacity:.4,strokeColor:"#4575EF",strokeWeight:5},d={strokeColor:"#4575EF",strokeWeight:5},f={};t.a={name:"DshCoordinates",mixins:[c.default],data:function(){return{showModal:!1,newVal:{name:"",lnglat:[]},modalStyles:{height:.96*document.body.clientHeight+"px",width:.96*document.body.clientWidth+"px",top:"2%"},formData:{kind:"keyword",searchText:""},map:null,placeSearch:null,mouseTool:null,marker:null,plot:null,searchMessage:""}},computed:{selfPropsObj:function(){return l()({},this.propsObj,this.commonDealPropsObj)},showType:function(){return this.selfPropsObj._showType},inputIcon:function(){return"ios-map-outline"},curVal:{get:function(){return this.value[this.controlKey]||{name:"",lnglat:[]}},set:function(e){this.value[this.controlKey]=e,this.change()}},showVal:function(){return this.$isEmptyData(this.curVal)?this.emptyShowVal:this.curVal.name}},created:function(){},methods:{clickInput:function(){this.canEdit&&(this.showModal=!0,this.newVal=this.$deepCopy(this.curVal),this.getMap())},clickConfirm:function(){this.showModal=!1,this.curVal=this.newVal},clickClear:function(){this.curVal={name:"",lnglat:[]}},clickModalClear:function(){this.newVal={name:"",lnglat:[]},this.handleRmoveMarker("default"),this.handleOpenDraw()},clickSearch:function(){if(this.formData.searchText)if("coordinate"===this.formData.kind){var e=this.formData.searchText.split(","),t=Number(e[0]),n=Number(e[1]);isNaN(t)||isNaN(n)||t<-180||t>180||n<-90||n>90?this.searchMessage="请输入正确的经纬度坐标!":(e=new AMap.LngLat(t,n),this.searchMessage="",this.handleAddMarker([e.lng,e.lat],!0,"default"))}else this.placeSearch.search(this.formData.searchText,this.handlePlaceSearchCallback);else this.searchMessage="请输入搜索内容!"},clickMapFitView:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.plot;this.map.setFitView(e)},getMap:function(){var e=this;this.$nextTick(function(){var t=e.$refs.lnglatRef;e.map=new AMap.Map("DshCoordinatesMap",{rotateEnable:!0,pitchEnable:!0,zoom:e.propsObj._zoom||12,pitch:50,viewMode:e.propsObj._mapType||"2D",center:e.propsObj._center&&e.propsObj._center.split(",").map(function(e){return Number(e)})||void 0}),e.map.on("mouseover",function(e){t.style.display="block"}),e.map.on("mousemove",function(e){t.innerHTML=e.lnglat.toString(),t.style.top=e.pixel.y+120+"px",t.style.left=e.pixel.x+6+"px"}),e.map.on("mouseout",function(e){t.style.display="none"}),AMap.plugin(["AMap.PlaceSearch","AMap.Scale","AMap.ControlBar","AMap.MouseTool"],e.handlePluginCallback)})},handlePluginCallback:function(){this.placeSearch=new AMap.PlaceSearch,this.placeSearch.on("complete",this.handlePlaceSearchCallback),this.placeSearch.on("error",this.handlePlaceSearchCallback),this.map.addControl(new AMap.Scale),this.map.addControl(new AMap.ControlBar),this.mouseTool=new AMap.MouseTool(this.map),this.mouseTool.on("draw",this.handleMouseToolCallback),this.$isEmptyData(this.newVal)?this.finalCanEdit&&this.handleOpenDraw():(this.handleAddMarker(this.newVal.lnglat,!0),"multipleMarker"===this.showType&&this.finalCanEdit&&this.handleOpenDraw())},handleMouseToolCallback:function(e){if("AMap.Marker"===e.obj.CLASS_NAME){"marker"===this.showType?(this.plot=e.obj,this.handleCloseDraw()):"multipleMarker"===this.showType&&(this.plot?this.plot.push(e.obj):this.plot=[e.obj]);var t=e.obj.getPosition();this.newVal.lnglat.push([t.lng,t.lat]),this.getRegeoCode()}else{var n;this.plot=e.obj,(n=this.newVal.lnglat).push.apply(n,a()(e.obj.getPath().map(function(e){return[e.lng,e.lat]}))),this.getRegeoCode(),this.handleCloseDraw()}},handlePlaceSearchCallback:function(e){if("complete"!=e)if(e.poiList&&e.poiList.pois&&e.poiList.pois.length){this.searchMessage="";var t=e.poiList.pois[0];this.handleAddMarker([t.location.lng,t.location.lat],!0,"default"),this.marker.setTitle([t.name,t.address].join(t.name&&t.address?"\n":""))}else this.searchMessage="没有搜索到结果!"},handleOpenDraw:function(){switch(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showType){case"marker":case"multipleMarker":this.mouseTool.marker(f);break;case"polyline":this.mouseTool.polyline(d);break;case"polygon":this.mouseTool.polygon(u);break;case"rectangle":this.mouseTool.rectangle(u);break;case"circle":this.mouseTool.circle(u)}},handleCloseDraw:function(){this.mouseTool.close()},handleAddMarker:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.showType;e=JSON.parse(i()(e)),["polygon","rectangle","circle"].includes(r)?(this.plot=new AMap.Polygon(l()({},u,{path:e})),this.map.add(this.plot),n&&this.map.setFitView(this.plot)):["default"].includes(r)?(!this.marker&&(this.marker=new AMap.Marker),this.marker.setPosition(e),this.marker.setMap(this.map),"marker"===this.showType?(this.handleRmoveMarker(),this.handleCloseDraw(),this.newVal.lnglat=[e],this.getRegeoCode()):"multipleMarker"===this.showType&&(this.newVal.lnglat.push(e),this.getRegeoCode()),n&&this.map.setFitView(this.marker)):["polyline"].includes(r)?(this.plot=new AMap.Polyline(l()({},u,{path:e})),this.map.add(this.plot),n&&this.map.setFitView(this.plot)):["multipleMarker","marker"].includes(r)&&(this.plot=e.map(function(e){return new AMap.Marker({map:t.map,position:e})}),n&&this.map.setFitView(this.plot))},handleRmoveMarker:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showType;["default"].includes(e)?(this.marker&&this.map.remove(this.marker),this.plot&&this.map.remove(this.plot)):this.plot&&this.map.remove(this.plot)},getRegeoCode:function(e,t){var n=this,r={key:window.config.amapKey,location:this.newVal.lnglat[0],radius:1e3,extensions:"base",batch:!1,roadlevel:1},i="";for(var o in r)i+=o+"="+r[o]+"&";fetch("http://restapi.amap.com/v3/geocode/regeo?"+i).then(function(e){return e.json()}).then(function(e){if("1"===e.status&&e.regeocode){var t=e.regeocode.formatted_address;n.newVal.name=t}})}}}},function(e,t,n){"use strict";var r=n(13),i=n.n(r),o=n(1),a=n.n(o),s=n(3);t.a={name:"DshDate",mixins:[s.default],props:{},data:function(){return{show:!0}},computed:{selfPropsObj:function(){return a()({_transfer:!0},this.propsObj,this.commonDealPropsObj)},curValDate:{get:function(){var e=this.value[this.controlKey];return this.$transformDateCompatible(e,this.subType)},set:function(e){this.value[this.controlKey]=this.$transformDate(e,"-",this.subType)}},subType:function(){return this.selfPropsObj._dateType},options:function(){var e=this;return{shortcuts:[],disabledDate:function(t){return!e.$validateComparedRule([e.selfPropsObj],a()({},e.value,i()({},e.controlKey,e.$transformDate(t,"/",e.subType))),e.allFormList).bool}}}},created:function(){},methods:{},watch:{"propsObj._dateType":function(){var e=this;this.show=!1,this.$nextTick(function(){e.value[e.controlKey]=e.selfPropsObj._default,e.show=!0})}}}},function(e,t,n){"use strict";var r=n(1),i=n.n(r),o=n(3);t.a={name:"DshDaterange",mixins:[o.default],props:{},data:function(){return{open0:!1,open1:!1,dynDate:[{_key:"dyn_today_start",name:"今天",numbers:[0],dateTypes:["date","datetime","daterange","datetimerange"]},{_key:"dyn_today_end",name:"今天",numbers:[1],dateTypes:["date","datetime","daterange","datetimerange"]},{_key:"dyn_now",name:"现在",numbers:[0,1],dateTypes:["date","datetime","daterange","datetimerange"]},{_key:"dyn_yesterday",name:"昨天",numbers:[0],dateTypes:["date","datetime","daterange","datetimerange"]},{_key:"dyn_subtract_3_days",name:"三天前",numbers:[0],dateTypes:["date","datetime","daterange","datetimerange"]},{_key:"dyn_subtract_7_days",name:"七天前",numbers:[0],dateTypes:["date","datetime","daterange","datetimerange"]},{_key:"dyn_subtract_30_days",name:"三十天前",numbers:[0],dateTypes:["date","datetime","daterange","datetimerange"]},{_key:"dyn_add_3_days",name:"三天后",numbers:[1],dateTypes:["date","datetime","daterange","datetimerange"]},{_key:"dyn_add_7_days",name:"七天后",numbers:[1],dateTypes:["date","datetime","daterange","datetimerange"]},{_key:"dyn_add_30_days",name:"三十后",numbers:[1],dateTypes:["date","datetime","daterange","datetimerange"]},{_key:"last_month_start",name:"上月初",numbers:[0],dateTypes:["month","date","datetime","daterange","datetimerange"]},{_key:"dyn_month_start",name:"月初",numbers:[0,1],dateTypes:["month","date","datetime","daterange","datetimerange"]},{_key:"dyn_month_end",name:"月末",numbers:[1],dateTypes:["month","date","datetime","daterange","datetimerange"]},{_key:"dyn_quarter_start",name:"本季初",numbers:[0],dateTypes:["month","date","datetime","daterange","datetimerange"]},{_key:"dyn_quarter_end",name:"本季末",numbers:[1],dateTypes:["month","date","datetime","daterange","datetimerange"]},{_key:"dyn_year_start",name:"年初",numbers:[0],dateTypes:["year","date","datetime","daterange","datetimerange"]},{_key:"dyn_year_end",name:"年末",numbers:[1],dateTypes:["year","date","datetime","daterange","datetimerange"]},{_key:"dyn_nextyear_start",name:"次年初",numbers:[0],dateTypes:["year","date","datetime","daterange","datetimerange"]},{_key:"dyn_nextyear_end",name:"次年末",numbers:[1],dateTypes:["year","date","datetime","daterange","datetimerange"]}]}},computed:{val0:{get:function(){return this.getVal(0)},set:function(e){this.setVal(e,0)}},val1:{get:function(){return this.getVal(1)},set:function(e){this.setVal(e,1)}},selfPropsObj:function(){return i()({_useShortcuts:!0},this.propsObj,this.commonDealPropsObj,{_type:"date"})},subType:function(){return this.selfPropsObj._dateType},useShortcuts:function(){return this.selfPropsObj._useShortcuts},options0:function(){return this.getOptions(0)},options1:function(){return this.getOptions(1)},showVal0:function(){return this.getShowVal(0)},showVal1:function(){return this.getShowVal(1)}},created:function(){},methods:{clickDynDate:function(e,t){this["val"+t]=e,this.changeOpen(!1,t)},clickClear:function(e,t){this["val"+t]=e,this.changeOpen(!1,t)},changeVal:function(e,t){this["val"+t]=e,"datetime"!==this.subType&&this.changeOpen(!1,t)},changeOpen:function(e,t){this["open"+t]=e},getVal:function(e){var t=this.value[this.controlKey][e];return this.isDynDateKey(t)?t:this.$transformDateCompatible(t,this.subType)},setVal:function(e,t){var n=this.isDynDateKey(e)?e:this.$transformDate(e,"-",this.subType);this.value[this.controlKey]=0===t?[n,this.value[this.controlKey][1]||""]:[this.value[this.controlKey][0]||"",n],this.change()},getOptions:function(e){var t=this,n=this["val"+(0===e?1:0)],r={_operator:0===e?"ltAet":"gtAet",_fieldKey:this.controlKey};return{shortcuts:this.useShortcuts?this.dynDate.filter(function(n){return n.numbers.includes(e)&&n.dateTypes.includes(t.subType)}).map(function(n){return{text:n.name,onClick:function(){return t.clickDynDate(n._key,e)}}}):[],disabledDate:function(e){return!!n&&(!!t.isDynDateKey(n)||!t.$isComparedAccord(t.selfPropsObj,t.selfPropsObj,e,n,r).bool)}}},getShowVal:function(e){var t=this["val"+e];return this.isDynDateKey(t)?(this.dynDate.find(function(e){return e._key===t})||{name:'"'+t+'"dnDate不存在'}).name:this.$transformDate(t,"-",this.subType)},isDynDateKey:function(e){return this.dynDate.some(function(t){return t._key===e})}}}},function(e,t,n){"use strict";var r=n(3);t.a={name:"DshDivider",mixins:[r.default],props:{},data:function(){return{}},computed:{},created:function(){},methods:{}}},function(e,t,n){"use strict";var r=n(1),i=n.n(r),o=n(3),a=n(30),s=n(304),l=n.n(s);t.a={name:"DshEditor",mixins:[o.default,a.default],props:{},data:function(){return{editor:null,showType:"show",operationMap:{canSave:{name:"完成",type:"canSave",btnType:"primary",size:"default",event:"clickSave"}}}},computed:{selfPropsObj:function(){return i()({},this.propsObj,this.commonDealPropsObj)}},created:function(){},mounted:function(){this.finalCanEdit&&this.initEditor()},methods:{initEditor:function(){var e=this,t=this,n=new l.a(this.$refs.toolbar,this.$refs.editor);n.config.uploadImgShowBase64=!1;var r=this.$getRequests(this.computedUrlModule);n.config.uploadImgServer=""+location.origin+config.apiUrl+r,n.config.uploadImgHeaders=this.propsObj._headers||{authtoken:sessionStorage.getItem("authtoken")},n.config.uploadFileName="file_stream",n.config.uploadImgMaxSize=20971520,n.config.uploadImgMaxLength=1,n.config.uploadImgTimeout=18e4,n.config.menus=["head","bold","fontSize","fontName","italic","underline","strikeThrough","foreColor","backColor","link","list","justify","quote","image","undo","redo"],n.config.zIndex=500,n.config.uploadImgHooks={before:function(e,t,n){t.config.files=n},customInsert:function(e,n,r){var i=n.data&&n.data.ossType||"ali-oss";r.config.files.forEach(function(r){"ali-oss"===i?t.multipartUpload(r,n.data,function(t){e(t.data.url)}):"local"===i?t.localUpload(r,n.data,function(t){e(t.data.url)}):console.log("请开发这种类型‘"+i+"’的上传模式")})}},n.config.onchange=function(t){e.value[e.propsObj._key]!==t&&(e.value[e.propsObj._key]=t,e.change())},n.create(),this.finalCanEdit||n.disable(),this.editor=n},handleEdit:function(){this.finalCanEdit&&(this.editor.txt.html(this.value[this.propsObj._key]),this.showType="edit")},clickSave:function(){this.showType="show"},insertHTML:function(e){this.editor.cmd.do("insertHTML",e)}}}},function(e,t,n){"use strict";var r=n(2),i=n.n(r),o=n(1),a=n.n(o),s=n(3);t.a={name:"DshInput",mixins:[s.default],props:{},data:function(){return{changeStatus:!1}},computed:{selfPropsObj:function(){return a()({_textType:"default",_readonly:["serialNumber"].includes(this.controlType),_disabled:["serialNumber"].includes(this.controlType),_showWordLimit:this.propsObj._showWordLimit||!!this.propsObj._maxlength||0===this.propsObj._maxlength,_autosize:{minRows:2}},this.propsObj,this.commonDealPropsObj)},inputType:function(){return["textarea","password","email","url","number","tel"].includes(this.controlType)?this.controlType:["text"].includes(this.controlType)&&["url"].includes(this.subType)?"url":(["serialNumber"].includes(this.controlType),"text")},subType:function(){return this.selfPropsObj._textType}},created:function(){},methods:{onSearch:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];this.$emit.apply(this,["search"].concat(i()(t)))},onFocus:function(){this.changeStatus=!1},onBlur:function(){this.$emit("blur"),!0===this.changeStatus&&this.change()},onEnter:function(e){this.$emit("inputChange")},onChange:function(e){this.$emit("inputChange"),this.changeStatus=!0},onClear:function(){this.change()},goHttpWindow:function(e){e.stopPropagation(),window.open(this.curVal)}}}},function(e,t,n){"use strict";var r=n(13),i=n.n(r),o=n(82),a=n(83),s=n(84),l="ivu-input-number";function c(e,t){var n,r=void 0,i=void 0;try{r=e.toString().split(".")[1].length}catch(e){r=0}try{i=t.toString().split(".")[1].length}catch(e){i=0}return n=Math.pow(10,Math.max(r,i)),(Math.round(e*n)+Math.round(t*n))/n}t.a={name:"BriInputNumber",mixins:[a.default,s.default],props:{max:{type:Number,default:1/0},min:{type:Number,default:-1/0},step:{type:Number,default:1},activeChange:{type:Boolean,default:!0},value:{type:[Number,String],default:null},size:{default:function(){return this.$IVIEW&&""!==this.$IVIEW.size?this.$IVIEW.size:"default"},validator:function(e){return["small","large","default"].includes(e)}},disabled:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},editable:{type:Boolean,default:!0},name:{type:String},precision:{type:Number},elementId:{type:String},formatter:{type:Function},parser:{type:Function},placeholder:{type:String,default:""},handlerStyle:{type:Object,default:function(){return{}}},isPositive:{type:Boolean,default:!1}},data:function(){return{focused:!1,upDisabled:!1,downDisabled:!1,currentValue:this.value,transferValue:null}},computed:{wrapClasses:function(){var e;return[""+l,(e={},i()(e,l+"-"+this.size,!!this.size),i()(e,l+"-disabled",this.itemDisabled),i()(e,l+"-focused",this.focused),e)]},suffixClasses:function(){return l+"-suffix-wrap"},handlerClasses:function(){return l+"-handler-wrap"},upClasses:function(){return[l+"-handler",l+"-handler-up",i()({},l+"-handler-up-disabled",this.upDisabled)]},innerUpClasses:function(){return l+"-handler-up-inner ivu-icon ivu-icon-ios-arrow-up"},downClasses:function(){return[l+"-handler",l+"-handler-down",i()({},l+"-handler-down-disabled",this.downDisabled)]},innerDownClasses:function(){return l+"-handler-down-inner ivu-icon ivu-icon-ios-arrow-down"},inputWrapClasses:function(){return l+"-input-wrap"},inputClasses:function(){return l+"-input"},precisionValue:function(){return this.currentValue&&this.precision?this.currentValue.toFixed(this.precision):this.currentValue},formatterValue:function(){if(this.formatter&&null!==this.precisionValue){var e=this.formatter(this.precisionValue);return this.isPositive?e.replace("整","正"):e}return this.precisionValue}},methods:{preventDefault:function(e){e.preventDefault()},up:function(e){var t=Number(e.target.value);if(this.upDisabled&&isNaN(t))return!1;this.changeStep("up",e)},down:function(e){var t=Number(e.target.value);if(this.downDisabled&&isNaN(t))return!1;this.changeStep("down",e)},changeStep:function(e,t){if(this.itemDisabled||this.readonly)return!1;var n=Number(t.target.value),r=Number(this.currentValue),i=Number(this.step);if(isNaN(r))return!1;if(!isNaN(n))if("up"===e){if(!(c(n,i)<=this.max))return!1;r=n}else if("down"===e){if(!(c(n,-i)>=this.min))return!1;r=n}"up"===e?r=c(r,i):"down"===e&&(r=c(r,-i)),this.setValue(r,"step")},setValue:function(e,t){var n=this;e&&!isNaN(this.precision)&&(e=Number(Number(e).toFixed(this.precision)));var r=this.min,i=this.max;null!==e&&(e>i?e=i:e<r&&(e=r)),this.$nextTick(function(){n.transferValue=e,t&&"step"===t&&(n.$emit("input",e),n.$emit("on-change",e),n.dispatch("FormItem","on-form-change",e))})},focus:function(e){this.focused=!0,this.$emit("on-focus",e)},blur:function(){this.transferValue!==this.currentValue&&(this.currentValue=this.transferValue,this.$emit("input",this.transferValue),this.$emit("on-change",this.transferValue),this.dispatch("FormItem","on-form-change",this.transferValue),this.focused=!1,this.$emit("on-blur"),Object(o.findComponentUpward)(this,["DatePicker","TimePicker","Cascader","Search"])||this.dispatch("FormItem","on-form-blur",this.transferValue))},keyDown:function(e){38===e.keyCode?(e.preventDefault(),this.up(e)):40===e.keyCode&&(e.preventDefault(),this.down(e))},change:function(e){if(("change"!=e.type||!this.activeChange)&&("input"!=e.type||this.activeChange)){var t=e.target.value.trim();this.parser&&(t=this.parser(t)),0===t.length?this.setValue(null):"input"==e.type&&t.match(/^-?\.?$|\.$/)||(t=Number(t),isNaN(t)?e.target.value=this.currentValue:this.setValue(t))}},changeVal:function(e){if(e=Number(e),isNaN(e))this.upDisabled=!0,this.downDisabled=!0;else{var t=this.step;this.upDisabled=e+t>this.max,this.downDisabled=e-t<this.min}}},mounted:function(){this.transferValue=this.value,this.changeVal(this.currentValue)},watch:{value:function(e){e&&(this.transferValue=this.value),this.currentValue=e},currentValue:function(e){this.changeVal(e)},min:function(){this.changeVal(this.currentValue)},max:function(){this.changeVal(this.currentValue)}}}},function(e,t,n){"use strict";var r=n(1),i=n.n(r),o=n(3),a=n(44);t.a={name:"DshNumber",mixins:[o.default],components:{BriInputNumber:a.default},props:{},data:function(){return{}},computed:{selfPropsObj:function(){return i()({},this.propsObj,this.commonDealPropsObj)},formatterFunc:function(){return this.separator?this.$numToSeparator:function(e){return""+e}},maxNum:function(){return this.selfPropsObj._max||0===this.selfPropsObj._max?this.selfPropsObj._max:1/0},minNum:function(){return this.selfPropsObj._min||0===this.selfPropsObj._min?this.selfPropsObj._min:-1/0},round:function(){return this.selfPropsObj._round},digit:function(){return"round"===this.round?0:"decimal"===this.round?Number(this.selfPropsObj._digit||2):void 0},numberFormat:function(){return this.selfPropsObj._numberFormat},unit:function(){return this.selfPropsObj._unit},unitStr:function(){return"percent"===this.numberFormat?"%":this.unit?""+this.unit:""},separator:function(){return this.selfPropsObj._separator},progressNum:function(){return this.$isEmptyData(this.curVal)||this.curVal<0?0:this.curVal>100?100:Math.round(100*this.curVal)/100},showVal:function(){return this.$isEmptyData(this.curVal)?this.emptyShowVal:this.$numToStrAndUnit(this.curVal,this.selfPropsObj)}},created:function(){},methods:{}}},function(e,t,n){"use strict";var r=n(1),i=n.n(r),o=n(3),a=n(44);t.a={name:"DshNumberange",mixins:[o.default],components:{BriInputNumber:a.default},props:{},data:function(){return{}},computed:{selfPropsObj:function(){return i()({},this.propsObj,this.commonDealPropsObj)},formatterFunc:function(){return this.propsObj._separator?this.$numToSeparator:function(e){return""+e}},maxNum:function(){return this.selfPropsObj._max||0===this.selfPropsObj._max?this.selfPropsObj._max:1/0},minNum:function(){return this.selfPropsObj._min||0===this.selfPropsObj._min?this.selfPropsObj._min:-1/0},round:function(){return this.selfPropsObj._round},digit:function(){return"round"===this.round?0:"decimal"===this.round?Number(this.selfPropsObj._digit||2):void 0},numberFormat:function(){return this.selfPropsObj._numberFormat},unit:function(){return this.selfPropsObj._unit},unitStr:function(){return"percent"===this.numberFormat?"%":this.unit?""+this.unit:""},separator:function(){return this.selfPropsObj._separator},step:function(){return this.selfPropsObj._step}},created:function(){},methods:{}}},function(e,t,n){"use strict";var r=n(2),i=n.n(r),o=n(1),a=n.n(o),s=n(3),l=n(43),c=n(33);n.n(c);t.a={name:"DshSelect",mixins:[s.default,l.default],props:{},data:function(){return{flag:!1}},computed:{selfPropsObj:function(){return a()({_optionKind:"dropdown",_useColor:!1,colorMap:c.resourceData.colorMap,_filterable:!0,_transfer:!0,_data:[],_customData:[]},this.propsObj,this.commonDealPropsObj)},showType:function(){return this.selfPropsObj._optionKind},radioGroupType:function(){return"button"===this.showType?"button":void 0},useColor:function(){return this.selfPropsObj._useColor},colorMap:function(){return this.selfPropsObj.colorMap},listData:function(){var e=this.selfPropsObj._data.concat(this.initListData);return this.$dataType(this.selfPropsObj._filterFunc,"function")?this.selfPropsObj._filterFunc(e,this.selfPropsObj,this.value):e},curValObj:function(){var e=this,t=this.listData.find(function(t){return t._key===e.curVal})||{_key:this.curVal,name:"温馨提示:选项"+this.curVal+"已找不到"};return this.$isEmptyData(this.curVal)?void 0:a()({},t,{style:this.getItemStyle(t),color:void 0})},showVal:function(){return this.$isEmptyData(this.curVal)?this.emptyShowVal:this.curValObj.name||this.curValObj._name}},created:function(){this.init()},methods:{init:function(){this.getListData()},cancelSelect:function(e){!0!==e._disabled&&!1!==this.selfPropsObj._clearable&&e._key===this.curVal&&(this.value[this.controlKey]="",this.change()),this.clickOpenTip(e)},change:function(){void 0==this.value[this.controlKey]&&(this.value[this.controlKey]=""),this.$emit("change",this.curVal)},getItemColorClass:function(e){return this.colorMap[e.color]?e.color:"color-1"},getItemStyle:function(e){var t=this.colorMap[e.color]||this.colorMap["color-1"];return{background:this.useColor?this.$getColor(t,.1):void 0,color:this.useColor?t:void 0}},getItemDisabled:function(e){return!(this.finalCanEdit&&!e._disabled)},getListData:function(){var e=this;this.selfPropsObj._customData.forEach(function(t){e.$https({url:t.url,params:t.params,callback:function(t){e.initListData=[].concat(i()(e.initListData),i()(t.list.map(function(e){return{_key:e[e._key||"_key"],name:e[e._name||"name"]}})))}})})}}}},function(e,t,n){"use strict";var r=n(3);t.a={name:"DshSwitch",mixins:[r.default],data:function(){return{}},computed:{showVal:function(){return this.value[this.controlKey]?this.propsObj._openText:this.propsObj._closeText}},created:function(){},methods:{}}},function(e,t,n){"use strict";var r=n(3);t.a={name:"DshPackage",mixins:[r.default],components:{},props:{},data:function(){return{}},computed:{},created:function(){},methods:{}}},function(e,t,n){"use strict";var r=n(2),i=n.n(r),o=n(1),a=n.n(o),s=n(3),l=n(161),c=n(163);t.a={name:"selectDepartments",mixins:[s.default],components:{BriTreeItem:l.a,BriCard:c.a},props:{},data:function(){return{showModal:!1,newValList:[],loading:!1,searchName:"",departmentList:[],highDepartmentList:[{_key:"dyn_department",name:"当前部门"}],operationMap:{canCancel:{name:"取消",type:"canCancel",btnType:"cancel",event:"clickCancel"},canConfirm:{name:"确定",type:"canConfirm",btnType:"primary",event:"clickConfirm"}}}},computed:{selfPropsObj:function(){return a()({_multiple:!1,_highSearch:!1,_isCascader:!0,_changeOnSelect:!0,_searchString:""},this.propsObj,this.commonDealPropsObj)},multiple:function(){return this.selfPropsObj._multiple},highSearch:function(){return this.selfPropsObj._highSearch},inputIcon:function(){return this.multiple?"ios-people":"ios-person"},isCascader:function(){return this.selfPropsObj._isCascader},changeOnSelect:function(){return this.selfPropsObj._changeOnSelect},searchString:function(){return this.selfPropsObj._searchString},modalPropsObj:function(){return{title:"选择部门",class:"z-modal "+(this.isCascader?"selectDepartments-cascaderModal":"selectDepartments-modal"),showSlotClose:!1,closable:!0}},selectKeys:function(){return this.newValList.map(function(e){return e._key})},allDepartmentList:function(){return this.transformDepartmentList([].concat(i()(this.highSearch?this.highDepartmentList:[]),i()(this.departmentList)),this.selectKeys)},showVal:function(){return this.$isEmptyData(this.curValList)?this.emptyShowVal:this.curValList.map(function(e){return e.full_name||e.name}).join("、")}},created:function(){},methods:{openModal:function(){this.showModal=!0},closeModal:function(){this.showModal=!1},search:function(){this.getListData()},clickInput:function(){this.finalCanEdit&&(this.openModal(),this.newValList=this.$deepCopy(this.curValList),this.searchName="",this.getListData())},clickDeleteItem:function(e){this.curValList=this.curValList.filter(function(t){return t._key!=e._key})},clickClear:function(){this.curValList=[]},changeSelect:function(e){this.newValList=this.multiple?this.selectKeys.includes(e._key)?this.newValList.filter(function(t){return t._key!==e._key}):[].concat(i()(this.newValList),[e]):e.checked?[e]:[]},deleteSelect:function(e,t,n){n.splice(t,1)},clickCancel:function(){this.closeModal()},clickConfirm:function(){this.closeModal(),this.curValList=this.newValList},transformDepartmentList:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.map(function(t){return a()({},t,{title:t.name,checked:n.includes(t._key),expand:!!(t.children&&t.children.length&&t.level<2),children:e.transformDepartmentList(t.children,n)})})},getListData:function(){var e=this;this.loading=!0,this.$https({url:{module:"company",name:this.isCascader?"compDepartCascaderAll":"compDepartIndex"},params:{search:this.searchName?{name:{$regex:".*"+this.$speciaWord(this.searchName)+".*",$options:"i"}}:void 0,searchString:this.searchString,nameSearchFlag:!this.changeOnSelect},callback:function(t){e.loading=!1,e.departmentList=t.list}})}}}},function(e,t,n){"use strict";var r=n(162),i=n(313),o=n(0)(r.a,i.a,!1,null,null,null);t.a=o.exports},function(e,t,n){"use strict";t.a={name:"BriTreeItem",props:{value:{type:Object,default:function(){return{}}},changeOnSelect:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1}},data:function(){return{expand:!1}},computed:{hasChildren:function(){return this.value.children&&this.value.children.length},showChildren:function(){return this.expand&&this.hasChildren}},created:function(){this.init()},methods:{init:function(){this.expand=this.value.expand},toggleExpand:function(){this.expand=!this.expand},onChange:function(e){this.$emit("on-change",e)}}}},function(e,t,n){"use strict";var r=n(164),i=n(314),o=n(0)(r.a,i.a,!1,null,null,null);t.a=o.exports},function(e,t,n){"use strict";t.a={name:"BriCard",mixins:[],components:{},props:{data:{type:Array,default:function(){return[]}}},data:function(){return{}},computed:{},created:function(){},methods:{change:function(){this.$emit("on-change",this.value)}}}},function(e,t,n){"use strict";t.a={name:"DepartmentMenu",props:{canEdit:{type:Boolean,default:!1},parent:Object,list:{type:Array,default:function(){return[]}},propSelect:{type:Object,default:function(){return{_key:"noDepart"}}}},data:function(){return{deleteModal:!0,dropdownList:[{name:"添加下级部门",type:"addSub",event:"addSubDepartment",icon:"ios-add-circle-outline"},{name:"修改部门信息",type:"change",event:"showChange",icon:"ios-create-outline"},{name:"删除部门",type:"delete",event:"tipDelete",icon:"ios-trash-outline"},{name:"移动部门",type:"remove",event:"removeDepartment",icon:"ios-move"}]}},computed:{getIcon:function(){return function(e){return e.isShowChildren?"ios-arrow-down":"ios-arrow-forward"}},departSelected:{get:function(){return this.propSelect},set:function(e){this.propSelect._key=e._key}}},created:function(){},methods:{addSubDepartment:function(e,t,n,r,i){this.$emit("showAddModal",n)},addPeerDepartment:function(){this.$emit("showAddModal",this.parent)},departClick:function(e){this.departSelected=e,this.$emit("departClick",e)},toggleChildren:function(e){e.isShowChildren=!e.isShowChildren,this.$forceUpdate()},showAddModal:function(e){this.$emit("showAddModal",e)},deleteDepart:function(e){this.departSelected={_key:"noDepart"},this.$emit("deleteDepart",e)},tipDelete:function(e,t,n,r,i){var o=this;this.$Modal.confirm({title:"警告",content:"确定要删除该部门吗?",onOk:function(){o.deleteDepart(n)},onCancel:function(){o.$Message.info("已取消!")}})},showChange:function(e,t,n,r,i){this.$emit("showChange",n)},showChilrenChange:function(e){this.$emit("showChange",e)},removeDepartment:function(e,t,n,r,i){this.$emit("removeDepartment",e,t,n,r,i)}}}},function(e,t,n){"use strict";var r=n(2),i=n.n(r),o=n(1),a=n.n(o),s=n(3),l=n(91);t.a={name:"selectUsers",mixins:[s.default],components:{departmentMenu:l.default},props:{},data:function(){return{newValList:[],showModal:!1,modalPropsObj:{title:"选择成员",showSlotClose:!1,closable:!0},searchData:{name:""},inputPropsObj:{_name:"成员名称",_key:"name",_search:!0,_clearable:!1},curDepartment:{},hightUsers:[{_key:"dyn_myself",realname:"当前用户"}],loading:!1,userList:[],departmentList:[],total:0,pagePropsObj:{page:1,pagesize:500,showSizer:!1},isSelect:function(e){return!!this.newValList.find(function(t){return t._key===e})},operationMap:{canCancel:{name:"取消",type:"canCancel",btnType:"cancel",event:"clickCancel"},canConfirm:{name:"完成",type:"canConfirm",btnType:"primary",event:"clickConfirm"}}}},computed:{selfPropsObj:function(){return a()({_multiple:!1,_highSearch:!1},this.propsObj,this.commonDealPropsObj)},multiple:function(){return this.selfPropsObj._multiple},highSearch:function(){return this.selfPropsObj._highSearch},inputIcon:function(){return this.multiple?"ios-people":"ios-person"},curCheckAll:function(){var e=this;return this.userList.length&&this.userList.every(function(t){return e.newValList.some(function(e){return e._key===t._key})})},showVal:function(){return this.$isEmptyData(this.curValList)?this.emptyShowVal:this.curValList.map(function(e){return e.realname||e.mobile}).join("、")}},created:function(){},methods:{openModal:function(){this.showModal=!0},closeModal:function(){this.showModal=!1},clickInput:function(){this.finalCanEdit&&(this.openModal(),this.newValList=this.$deepCopy(this.curValList),this.initModal())},clickDeleteItem:function(e){this.curValList=this.curValList.filter(function(t){return t._key!==e._key})},clickClear:function(){this.curValList=[]},initModal:function(){this.searchData={name:""},this.curDepartment={},this.pagePropsObj.page=1,this.getUserListData(),this.getDepartmentListData()},search:function(){this.pagePropsObj.page=1,this.getUserListData()},changeDepartment:function(e){this.pagePropsObj.page=1,this.curDepartment=e,"_highSearch"===e._key?(this.userList=this.hightUsers,this.total=1):this.getUserListData()},clickCheckAll:function(){var e=this;this.curCheckAll?this.newValList=this.newValList.filter(function(t){return!e.userList.some(function(e){return t._key===e._key})}):this.newValList=[].concat(i()(this.newValList),i()(this.userList.filter(function(t){return!e.newValList.some(function(e){return e._key===t._key})})))},clickSelectUserItem:function(e,t){this.multiple?this.newValList.some(function(t){return t._key===e._key})?this.newValList=this.newValList.filter(function(t){return t._key!==e._key}):this.newValList=[].concat(i()(this.newValList),[e]):this.newValList=!0===t?[e]:[]},clickDeleteUserItem:function(e,t,n){n.splice(t,1)},clickCancel:function(){this.closeModal()},clickConfirm:function(){this.closeModal(),this.curValList=this.newValList,this.curDepartment={}},getUserListData:function(){var e=this;this.loading=!0,this.userList=[];var t=this.searchData.name,n={};t&&""!==t?n.realname={$regex:".*"+this.$speciaWord(t)+".*",$options:"i"}:delete n.realname,this.$https({url:{module:"company",name:"userIndex"},params:{search:n,department:this.curDepartment._key,pagination:{page:this.pagePropsObj.page,pagesize:this.pagePropsObj.pagesize}},callback:function(t){e.total=t.total,e.userList=t.list,e.loading=!1}})},getDepartmentListData:function(){var e=this;this.$https({url:{module:"company",name:"compDepartCascaderAll"},params:{searchString:this.propsObj.searchString},callback:function(t){var n=[{is_leaf:!0,level:1,name:"全部",_key:""}];e.highSearch&&n.unshift({is_leaf:!0,level:1,name:"高级选项",_key:"_highSearch"}),e.departmentList=n.concat(t.list)}})}},filters:{isActive:function(e,t){return t.some(function(t){return t._key===e._key})?"selectUsers-list-item-active":""}}}},function(e,t,n){"use strict";var r=n(3);t.a={name:"DshBack",mixins:[r.default],props:{},data:function(){return{}},computed:{modForm:function(){return this.propsObj.modForm}},created:function(){},methods:{clickBack:function(e,t,n){var r=this;this.$emit("changeField",this.modForm.find(function(e){return e._key===r.value[r.propsObj._key]}),null,null)}}}},function(e,t,n){"use strict";var r=n(3);t.a={name:"DshUndeveloped",mixins:[r.default],props:{},data:function(){return{}},computed:{controlKey:function(){return this.propsObj.__realKey__||this.propsObj._key},tipText:function(){return this.propsObj.__realKey__?'"'+this.controlKey+'"字段已被删除':this.propsObj._type?'"'+this.controlKey+'"字段的'+this.propsObj._type+"类型暂未开发":'"'+this.controlKey+'"字段已被删除(或字段的_type丢失,此概率很小)'}},created:function(){},methods:{}}},function(e,t,n){"use strict";var r=n(1),i=n.n(r);t.a={name:"DshPage",props:{mode:{type:String,default:"small",validator:function(e){return-1!==["simple","default","small"].indexOf(e)}},total:{type:[Number,String],default:0},propsObj:{type:Object,default:function(){return{}}}},data:function(){return{}},computed:{obj:function(){return i()({page:1,pagesize:10,pagesizeOpts:[10,15,20,30,40,50],transfer:!1,placement:"bottom"},{default:{showTotal:!0,showElevator:!1,showSizer:!0},small:{showTotal:!0,showElevator:!1,showSizer:!0},simple:{}}[this.mode]||{},this.propsObj)},size:function(){return"small"==this.mode?"small":void 0},simple:function(){return"simple"==this.mode||!1}},methods:{changePage:function(e){this.$emit("changePage",e)},changePageSize:function(e){this.$emit("changePageSize",e)}}}},function(e,t,n){"use strict";var r=n(1),i=n.n(r),o=n(125),a=n.n(o),s=n(2),l=n.n(s);t.a={name:"DshForm",components:{},props:{canEdit:{type:Boolean,default:!0},formData:{type:Object,default:function(){return{}}},formList:{type:Array,default:function(){return[]}},allFormList:{type:Array,default:function(){return[]}},changedFields:{type:Array,default:function(){return[]}},height:[String,Number],rowStyle:{type:Object,default:function(){return{}}},labelStyle:{type:Object,default:function(){return{}}},formControlClass:String,monitorFormList:Array,showRules:{type:Boolean,default:!0}},data:function(){return{rules:{},forceValidateTypes:["select","cascader","regions","cascaders","file","coordinates","editor","users","departments","labels","flatTable","reference","referenceBy"],ignoreProperties:["_name","_key","_default","_required","_span","_br","_line","_noLabel","_clearable","_disabledBtns","_disabledOldDataRow"]}},computed:{},created:function(){this.init()},methods:{init:function(){this.initMonitor(),this.initRules()},initMonitor:function(){var e=this;(this.monitorFormList||this.formList).forEach(function(t){e.$set(e.formData,t._key,e.formData[t._key])})},initRules:function(){var e=this;(this.monitorFormList||this.formList).reduce(function(t,n){return t[n._key]=e.getRules(n),t},this.rules)},getFormVDom:function(){return this.$refs.form},validate:function(e){var t=!0,n=[];return t=!this.$refs.dshFormItem||!(n=this.$refs.dshFormItem.filter(function(e){return!e.validate()})).length,e&&e(t,n.map(function(e){return e.formItem})),t},clickControl:function(e){this.$emit("clickControl",e)},changeField:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];this.$emit.apply(this,["changeField"].concat(l()(t)))},change:function(e,t){this.forceFormValidate(e,t),this.$emit.apply(this,["change",e].concat(l()(t)))},refChange:function(e,t){this.$emit.apply(this,["refChange",e].concat(l()(t)))},isShow:function(e,t){var n=this;return!0===e._loop&&a()(i()({},t,{_displayType:"show",canEdit:!0})).forEach(function(t){!n.ignoreProperties.includes(t[0])&&n.$set(e,t[0],t[1])}),this.$isAdvRelyShow(e,t)},getRules:function(e){var t=this,n=[],r=this.$getFieldRuleConfig(e);if(r.regs.length&&n.push(i()({message:e._regMessage||r.regMessage||e._name+"格式不正确",trigger:"blur",transform:function(e){return t.$isEmptyData(e)?e:r.regs.every(function(t){return t.test(e)})&&e}},r)),e._required){var o={coordinates:{fields:{lnglat:{required:!0,message:e._name+"为必填项",type:"array"}}},flatTable:{fields:{list:{required:!0,message:e._name+"不能为空行!",type:"array"}}},referenceBy:{fields:{count:{message:e._name+"必须关联数据!",type:"number",transform:function(e){return!!(e&&e>0)&&e}}}}};n.push(i()({required:!0,message:e._name+"为必填项!",trigger:"blur, change",type:"string"},o[e._type]||{},r))}return n},forceFormValidate:function(e){!0===e._required&&this.forceValidateTypes.includes(e._type)&&this.$refs.form.validateField(e._key)}},watch:{formList:function(){this.init()}}}},function(e,t,n){"use strict";var r=n(1),i=n.n(r),o=n(172);t.a={name:"DshAdvSearchForm",mixins:[o.a],components:{},props:{mode:{type:String,default:"default",validator:function(e){return["default","set","dashbord","rely"].includes(e)}},value:{type:Object,default:function(){return{logic:"and",conditions:[]}}},useLoop:{type:Boolean,default:!0},isInner:{type:Boolean,default:!1}},data:function(){return{selfLogicPropsObj:{_name:"筛选逻辑",_key:"logic",_optionKind:"flat",_clearable:!1,_data:[{_key:"and",name:"且"},{_key:"or",name:"或"}]},parameterPropsObj:{_name:"参数类型",_key:"parameterType",_clearable:!1,_size:"small",_data:[{_key:"fixedText",name:"固定文本"},{_key:"dynamicText",name:"动态文本"}]},allOperationMap:{createContion:{name:"添加筛选条件",type:"createContion",icon:"md-add",size:this.isInner?"small":"default",long:!0,event:"createContion"},createLoopContion:{name:"添加筛选层",type:"createLoopContion",icon:"md-add",size:this.isInner?"small":"default",long:!0,event:"createContion"},deleteContion:{name:"删除筛选条件",type:"deleteContion",customIcon:"bico-delete",size:"16",event:"deleteContion"},selectOperator:{name:"选择筛选类型",type:"selectOperator",event:"selectOperator"}}}},computed:{operationMap:function(){return this.$categoryMapToMap(this.allOperationMap,void 0,!1===this.useLoop?["createLoopContion"]:[])}},created:function(){this.init()},methods:{init:function(){var e=this;this.value.conditions=this.value.conditions.map(function(t){var n=e.createContionFunc(t,void 0,t.fieldKey);return e.dealSubSearch(n),n})},createContion:function(e,t,n){var r=this.createContionFunc({logic:t?"and":"field"},n);this.value.conditions.push(r),this.change(r)},deleteContion:function(e,t,n,r){r.splice(n,1),this.change(t)},selectOperator:function(e,t,n,r,i){t.fieldOperator=i._key,t.fieldOperatorName=i.name,t.fieldSearch={logic:"and",conditions:[]},this.dealSubSearch(t),this.change(t)},parameterChange:function(e){"fixedText"===e.parameterType?e.fieldParams=[]:"dynamicText"===e.parameterType&&(e.fieldValue=[]),this.change()},change:function(e){var t=i()({},this.value,{conditions:this.transformConditions(this.value.conditions)});this.$emit("change",t,e)}}}},function(e,t,n){"use strict";var r=n(13),i=n.n(r),o=n(19),a=n.n(o),s=n(1),l=n.n(s);t.a={components:{},props:{formList:{type:Array,default:function(){return[]}},dynamicFieldsMap:{type:Object,default:function(){return{}}}},data:function(){return{fieldMap:this.$modFieldMap,conditionFields:["_id","logic","conditions","textSearch","nativeSearch","fieldKey","fieldType","fieldValue","fieldParams","fieldOperator","fieldSearch","parameterType"]}},computed:{searchFormList:function(){var e=this;return this.formList.filter(function(t){return e.$formHasAbility(t,"canSearch")})}},created:function(){},methods:{createContionFunc:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{logic:"field"},t=arguments[1],n=arguments[2];if(["field",void 0].includes(e.logic)){var r=t||this.searchFormList.find(function(e){return e._key===n});if(r){var i=this.fieldMap[r._type],o=r._subForm||[],a=i["set"===this.mode?"operatorsSet":"rely"===this.mode?"operatorsRely":"operators"]||i.operators||[],s=e.fieldOperator||(a[0]||{})._key,c=(a.find(function(e){return e._key===s})||{}).name,u=e.fieldValue||[],d=this.dynamicFieldsMap[r._type]||[],f=e.parameterType||(!d.length||u.length?"fixedText":"dynamicText");return l()({_id:this.$ObjectID().str,logic:"field",fieldKey:r._key,fieldType:r._type,fieldValue:[],fieldOperator:s,fieldParams:[],fieldSearch:{logic:"and",conditions:[]}},e,{parameterType:f,dynamicList:d,fieldOperatorName:c,operators:a,formItem:this.getFormItem(r),subFormList:o,finished:!1})}return l()({},e,{__isDelete__:!0,formItem:{__realKey__:e.fieldKey}})}return["and","or"].includes(e.logic)?l()({logic:"and",conditions:[]},e):["text"].includes(e.logic)?l()({logic:"text",textSearch:""},e):["native"].includes(e.logic)?l()({logic:"native",nativeSearch:{}},e):e},getFormItem:function(e){return l()({},this.formatFormItem(e),["default","rely"].includes(this.mode)&&["date","daterange"].includes(e._type)?{_useShortcuts:!1}:{},{_line:!1,_span:24,_useColor:!0})},formatFormItem:function(e){var t=this.fieldMap[e._type];return l()({},e,t.searchProps||{},{_key:"fieldValue",__realKey__:e._key,_description:void 0,_required:!1,_br:!1,_wrap:!1,_enterType:void 0,canEdit:!0,_data:["switch"].includes(e._type)?[{_key:"true",name:e._openText,color:"#87e8de"},{_key:"false",name:e._closeText,color:"#87e8de"}]:e._data})},dealSubSearch:function(e){"subSearch"===e.fieldOperator&&!0!==e.finished&&this.getModData(e.formItem,function(t){e.finished=!0,e.subFormList=t.screens[0].form})},getModData:function(e,t){this.$https({url:{module:"sheet",name:"schema"},params:{_key:e._ref,fields:e._refFields},callback:function(e){t(e)}})},transformConditions:function(){var e=this;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(function(t){return e.conditionFields.reduce(function(n,r){return a()(n,i()({},r,t[r]?"fieldSearch"===r?l()({},t[r],{conditions:e.transformConditions(t[r].conditions)}):"conditions"===r?e.transformConditions(t[r]):t[r]:t[r]))},{})})}}}},function(e,t,n){"use strict";var r=n(1),i=n.n(r),o=n(172);t.a={name:"DshDefaultSearch",mixins:[o.a],props:{initValue:{type:Array,default:function(){return[]}},labelWidth:{type:Number,default:100},showRowNum:{type:Number,default:2}},data:function(){return{conditionList:[],isSpreadStatus:!1,rowStyle:{width:"calc(100% - 12px)"},labelStyle:{textAlign:"center",margin:0,color:"#666666",border:"1px solid rgba(229, 229, 229, 1)",background:"rgba(245, 245, 245, 1)",padding:"5px 10px",borderRight:"none",height:"32px",boxSizing:"border-box",width:this.labelWidth+"px"}}},computed:{searchFormList:function(){var e=this;return this.formList.filter(function(t){return e.$formHasAbility(t,"canDefaultSearch")})},allSpan:function(){return this.searchFormList.reduce(function(e,t){var n=t._span||24;if(e%24&&(e+n)%24){var r=Math.floor(e/24);return r!==Math.floor((e+n)/24)?24*(r+1)+n:e+n}return e+n},0)},allRowNum:function(){return Math.ceil(this.allSpan/24)},canUseFold:function(){return null!=this.showRowNum&&this.allRowNum>this.showRowNum}},created:function(){this.init()},methods:{init:function(){var e=this;this.conditionList=this.searchFormList.map(function(t){var n=e.initValue.find(function(e){return e.fieldKey===t._key});return e.createContionFunc(n,t)})},toggleSpreadStatus:function(){this.isSpreadStatus=!this.isSpreadStatus},getFormItem:function(e){return i()({},this.formatFormItem(e),{_line:!0,_br:e._defaultSearchBr,_wrap:e._defaultSearchWrap},["date","daterange"].includes(e._type)?{_useShortcuts:!1}:["switch","select","checkbox"].includes(e._type)?{_optionKind:"dropdown",_useColor:!1}:["labels"].includes(e._type)?{mode:"defaultSearch"}:{})},change:function(e){var t=this.transformConditions(this.conditionList).filter(function(e){return!!e.fieldValue.length});this.$emit("change",t,e)}}}},function(e,t,n){"use strict";var r=n(2),i=n.n(r),o=n(124);t.a={name:"DshFormItem",mixins:[o.a],props:{allFormList:{type:Array,default:function(){return[]}},changedFields:{type:Array,default:function(){return[]}},height:{type:[String,Number],default:"70"},rowStyle:{type:Object,default:function(){return{}}},labelStyle:{type:Object,default:function(){return{}}},formControlClass:String},data:function(){return{showTipModal:!1}},computed:{},created:function(){},methods:{validate:function(){return!this.$refs.control.validate||this.$refs.control.validate()},changeField:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];this.$emit.apply(this,["changeField"].concat(i()(t)))},tipsRender:function(e,t){return e._tipsRender.call(this,e,t)}}}},function(e,t,n){"use strict";var r=n(333),i=(n.n(r),n(334)),o=(n.n(i),n(335)),a=(n.n(o),n(336)),s=(n.n(a),n(337)),l=(n.n(s),n(338)),c=(n.n(l),n(339)),u=(n.n(c),n(176)),d=(n.n(u),n(340)),f=(n.n(d),n(341)),h=(n.n(f),n(342)),p=(n.n(h),n(343)),m=(n.n(p),n(344)),y=(n.n(m),n(345));n.n(y);t.a={name:"BriCode",components:{codemirror:i.codemirror},props:{value:String,option:{type:Object,default:function(){return{mode:"javascript",theme:"cobalt",dragDrop:!0,lineWrapping:!0,autofocus:!0,lineNumbers:!0,foldGutter:!0,line:!0,matchBrackets:!0,extraKeys:{Ctrl:"autocomplete"},showCursorWhenSelecting:!0,lineWiseCopyCut:!0,autorefresh:!0,lint:!0,hint:!0,styleActiveLine:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter","CodeMirror-lint-markers"]}}}},model:{prop:"value",event:"change"},data:function(){return{}},computed:{computedVal:{get:function(){return this.value},set:function(e){this.handleChange(e)}}},created:function(){window.JSHINT=r.JSHINT},methods:{ready:function(e){e.setSize("100%","100%"),this.$emit("ready",e)},input:function(e){this.$emit("input",e)},changes:function(e,t){this.$emit("changes",e,t)},handleChange:function(e){Object(r.JSHINT)(e);var t=(r.JSHINT.data().errors||[]).map(function(e){return e.code&&e.code.startsWith("W")?1:2});this.$emit("jshint",t.some(function(e){return 2===e}),t),this.$emit("change",e)}}}},function(e,t,n){!function(e){e(n(7))}(function(e){"use strict";function t(t,n,i,o){if(i&&i.call){var a=i;i=null}else a=r(t,i,"rangeFinder");"number"==typeof n&&(n=e.Pos(n,0));var s=r(t,i,"minFoldSize");function l(e){var r=a(t,n);if(!r||r.to.line-r.from.line<s)return null;if("fold"===o)return r;for(var i=t.findMarksAt(r.from),l=0;l<i.length;++l)if(i[l].__isFold){if(!e)return null;r.cleared=!0,i[l].clear()}return r}var c=l(!0);if(r(t,i,"scanUp"))for(;!c&&n.line>t.firstLine();)n=e.Pos(n.line-1,0),c=l(!1);if(c&&!c.cleared&&"unfold"!==o){var u=function(e,t,n){var i=r(e,t,"widget");"function"==typeof i&&(i=i(n.from,n.to));if("string"==typeof i){var o=document.createTextNode(i);(i=document.createElement("span")).appendChild(o),i.className="CodeMirror-foldmarker"}else i&&(i=i.cloneNode(!0));return i}(t,i,c);e.on(u,"mousedown",function(t){d.clear(),e.e_preventDefault(t)});var d=t.markText(c.from,c.to,{replacedWith:u,clearOnEnter:r(t,i,"clearOnEnter"),__isFold:!0});d.on("clear",function(n,r){e.signal(t,"unfold",t,n,r)}),e.signal(t,"fold",t,c.from,c.to)}}e.newFoldFunction=function(e,n){return function(r,i){t(r,i,{rangeFinder:e,widget:n})}},e.defineExtension("foldCode",function(e,n,r){t(this,e,n,r)}),e.defineExtension("isFolded",function(e){for(var t=this.findMarksAt(e),n=0;n<t.length;++n)if(t[n].__isFold)return!0}),e.commands.toggleFold=function(e){e.foldCode(e.getCursor())},e.commands.fold=function(e){e.foldCode(e.getCursor(),null,"fold")},e.commands.unfold=function(e){e.foldCode(e.getCursor(),{scanUp:!1},"unfold")},e.commands.foldAll=function(t){t.operation(function(){for(var n=t.firstLine(),r=t.lastLine();n<=r;n++)t.foldCode(e.Pos(n,0),{scanUp:!1},"fold")})},e.commands.unfoldAll=function(t){t.operation(function(){for(var n=t.firstLine(),r=t.lastLine();n<=r;n++)t.foldCode(e.Pos(n,0),{scanUp:!1},"unfold")})},e.registerHelper("fold","combine",function(){var e=Array.prototype.slice.call(arguments,0);return function(t,n){for(var r=0;r<e.length;++r){var i=e[r](t,n);if(i)return i}}}),e.registerHelper("fold","auto",function(e,t){for(var n=e.getHelpers(t,"fold"),r=0;r<n.length;r++){var i=n[r](e,t);if(i)return i}});var n={rangeFinder:e.fold.auto,widget:"↔",minFoldSize:0,scanUp:!1,clearOnEnter:!0};function r(e,t,r){if(t&&void 0!==t[r])return t[r];var i=e.options.foldOptions;return i&&void 0!==i[r]?i[r]:n[r]}e.defineOption("foldOptions",null),e.defineExtension("foldOption",function(e,t){return r(this,e,t)})})},function(e,t,n){"use strict";var r=n(348);t.a={name:"BriLoading",components:{BriSvg:r.a},props:{value:{type:Number,default:1},fix:{type:Boolean,default:!1},center:{type:Boolean,default:!0},loadImg:{type:String},noImg:{type:String},mode:{type:String,default:"large"},showLoadingText:{type:Boolean,default:!1},loadText:{type:String,default:"加载中..."},noText:{type:String,default:"暂无数据"}},data:function(){return{}},computed:{imgSrc:function(){return this.noImg||"zanwushuju"},getStyle:function(){return{large:{width:"49px",height:"49px"},middle:{width:"35px",height:"35px"},small:{width:"16px",height:"16px"}}[this.mode]}},created:function(){},methods:{}}},function(e,t,n){"use strict";t.a={name:"BriSvg",components:{},props:{src:String},computed:{href:function(){return"#bri-"+this.src}},data:function(){return{}},created:function(){},methods:{}}},function(e,t,n){"use strict";t.a={name:"DshAvatar",props:{rowData:{type:Object},field:{type:String},maxLength:{type:Number,default:2},roundStyle:{type:Object,default:function(){return{}}}},data:function(){return{avatarSrc:this.$imageSrcMap.system.boy,users:[]}},computed:{userList:function(){return this.users.slice(0,4)}},created:function(){this.init()},methods:{init:function(){this.users="object"===this.$dataType(this.rowData[this.field])?[this.rowData[this.field]]:"array"===this.$dataType(this.rowData[this.field])?this.rowData[this.field]:[]}},watch:{rowData:{handler:function(e,t){this.init()},immediate:!0}}}},function(e,t,n){"use strict";var r=n(1),i=n.n(r);t.a={name:"DshBtnModal",props:{modalPropsObj:{type:Object,default:function(){return{}}}},data:function(){return{showModal:!1,operationMap:{set:{name:"设置默认内容",type:"set",btnType:"dashed",size:"default",long:!0,event:"clickSet"}}}},computed:{selfModalPropsObj:function(){return i()({mode:"middle"},this.modalPropsObj)}},created:function(){},methods:{clickSet:function(e){this.showModal=!0}}}},function(e,t,n){"use strict";t.a={name:"DshColorPanel",props:{dropdownObj:{type:Object,default:function(){return{icon:"ios-more",size:18,showDropdownItemIcon:!0}}},list:{type:Array,default:function(){return[]}},placement:{type:String,default:"bottom-start"},trigger:{type:String,default:"click"},transfer:{type:Boolean,default:!0},menuClass:String},data:function(){return{}},computed:{},created:function(){},methods:{dispatchEvent:function(e){this.$emit("click",e)}}}},function(e,t,n){"use strict";var r=n(183),i=n.n(r),o=n(19),a=n.n(o);t.a={name:"DshEditPanel",components:{},props:{value:{type:Object,default:function(){return{}}}},data:function(){return{operationMap:{updateColor:{name:"修改主题色",type:"updateColor",event:"clickUpdateColor"},updateIcon:{name:"修改图标",type:"updateIcon",event:"clickUpdateIcon"},canCancel:{name:"取消",type:"canCancel",event:"clickCancel"},canConfirm:{name:"确定",type:"canConfirm",btnType:"primary",event:"clickConfirm"}}}},computed:{},created:function(){this.init()},methods:{init:function(){a()(this.value,{oldName:this.value.name,color:this.value.color||i()(this.$appData.themeColors)[0].color,icon:this.value.icon||this.$appData.icons[0]})},onBlur:function(e){e.name||(e.name=e.oldName||"未命名")},clickUpdateColor:function(e,t,n,r){r.color=t},clickUpdateIcon:function(e,t,n,r){r.icon=t},clickConfirm:function(){this.$emit("on-ok",this.value)},clickCancel:function(){this.$emit("on-cancel")}}}},function(e,t,n){e.exports={default:n(358),__esModule:!0}},function(e,t,n){"use strict";var r=n(2),i=n.n(r);t.a={name:"DshMenu",props:{menuList:{type:Array,default:function(){return[]}},curSubMenu:Object,loopIndex:{type:Number,default:1},showBadgeList:{type:Array,default:function(){return[]}}},data:function(){return{}},computed:{},created:function(){},methods:{clickSpecialSubMenu:function(e){this.curSubMenu&&e._id===this.curSubMenu._id||this.$emit("changeSpecialSubMenu",e._id,e)},changeSpecialSubMenuCb:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];this.$emit.apply(this,["changeSpecialSubMenu"].concat(i()(t)))},getBadgeCount:function(e){var t=this.showBadgeList.find(function(t){return t.showBadgeKey===e.menuKey});return this.showBadgeList.length&&t?t.count:0}}}},function(e,t,n){"use strict";t.a={name:"DshMenuNav",props:{position:{type:String,default:"left"},width:{type:[String,Number],default:"200"},title:String,routeList:{type:Array,default:function(){return[]}},showMenuList:{type:Boolean,default:!0},layout:String},data:function(){return{}},computed:{},created:function(){},methods:{}}},function(e,t,n){"use strict";var r=n(1),i=n.n(r),o=n(3);t.a={name:"BriButton",mixins:[o.default],props:{type:{type:String,default:"primary"},icon:String,shape:String,size:String,customIcon:String},data:function(){return{}},computed:{selfPropsObj:function(){var e=this.propsObj.btnType||this.type,t=this.propsObj.btnType||this.type;return["cancel"].includes(e)?t="primary":["errorLine","primaryLine"].includes(e)?t="default":["linkText","primaryText","errorText"].includes(e)&&(t="text"),i()({class:["cancel","linkText","primaryText","errorLine","errorText","primaryLine"].includes(e)?"ivu-btn-"+e:""},this.propsObj,{btnType:t,customIcon:this.propsObj.customIcon?"bico-font "+this.propsObj.customIcon:void 0})}},created:function(){},methods:{dispatchEvent:function(){this.$emit("click",this.selfPropsObj)}}}},function(e,t,n){"use strict";var r=n(2),i=n.n(r),o=n(1),a=n.n(o);t.a={name:"BriDrawer",props:{value:Boolean,propsObj:{type:Object,default:function(){return{}}},list:{type:Array,default:function(){return[]}}},model:{prop:"value",event:"input"},data:function(){return{}},computed:{showModal:{get:function(){return this.value},set:function(e){this.input(e)}},selfPropsObj:function(){return a()({width:320,closable:!0,transfer:!0,footer:!0,maskClosable:!1},this.propsObj)}},created:function(){},methods:{input:function(e){this.$emit("input",e)},clickClose:function(){this.showModal=!1},close:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];this.$emit.apply(this,["on-close"].concat(i()(t)))},resizeChange:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];this.$emit.apply(this,["on-resize-change"].concat(i()(t)))},visibleChange:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$emit("on-visible-change",e)}}}},function(e,t,n){"use strict";t.a={name:"BriTooltip",props:{content:String,placement:{type:String,default:"bottom"},maxWidth:{type:String,default:"200"},transfer:{type:Boolean,default:!1},defaultDisabled:{type:Boolean,default:!0}},data:function(){return{toolTipDisabled:!0,tmpToolTipDisabled:!0}},created:function(){this.toolTipDisabled=this.defaultDisabled,this.tmpToolTipDisabled=this.toolTipDisabled},mounted:function(){this.getToolTipDisabled("mouted")},updated:function(){this.getToolTipDisabled("updated")},methods:{getToolTipDisabled:function(e){var t=this,n=this.$slots.default,r=n[0]?!(n[0].elm.scrollWidth>n[0].elm.clientWidth):this.toolTipDisabled;r!==this.toolTipDisabled?r!==this.tmpToolTipDisabled&&(this.tmpToolTipDisabled=r,this.timer=setTimeout(function(){t.toolTipDisabled=r,t.tmpToolTipDisabled=t.toolTipDisabled},2e3)):clearTimeout(this.timer)}}}},function(e,t,n){"use strict";t.a={name:"DshButtons",props:{mode:{type:String,default:"default",validator:function(e){return["default","between"].includes(e)}},list:{type:Array,default:function(){return[]}},leftList:{type:Array,default:function(){return[]}},rightList:{type:Array,default:function(){return[]}},maxFlatNum:{type:[Number,String],default:12},itemClass:String},data:function(){return{moreBtnOperationObj:{name:"更多",type:"more",size:"default",customIcon:"bico-gengduo",btnType:"linkText"}}},computed:{flatList:function(){return this.list.slice(0,this.maxFlatNum)},moreList:function(){return this.list.slice(this.maxFlatNum)},leftFlatList:function(){return this.leftList.slice(0,this.maxFlatNum)},leftMoreList:function(){return this.leftList.slice(this.maxFlatNum)}},created:function(){},methods:{emit:function(e){this.$emit("click",e)}}}},function(e,t,n){"use strict";var r=n(374),i=n.n(r);t.a={name:"DshCrumb",props:{separator:{type:String,default:"/"}},computed:{classes:function(){return"dsh-crumb"},linkUrl:function(){if("string"!==i()(this.to))return null;if(this.to.includes("//"))return this.to;var e=this.$router;if(e){var t=this.$route,n=e.resolve(this.to,t,this.append);return n?n.href:this.to}return this.to}},mounted:function(){this.updateChildren()},updated:function(){var e=this;this.$nextTick(function(){e.updateChildren()})},methods:{updateChildren:function(){var e=this;this.$children.forEach(function(t){t.separator=e.separator})}},watch:{separator:function(){this.updateChildren()}}}},function(e,t,n){var r=n(99),i=n(54).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){"use strict";t.a={name:"DshCrumbItem",props:{to:{type:[Object,String]},replace:{type:Boolean,default:!1},target:{type:String,default:"_self",validator:function(e){return["_blank","_self","_parent","_top"].includes(e)}},append:{type:Boolean,required:!1,default:!1}},data:function(){return{separator:"",showSeparator:!1}},computed:{linkClasses:function(){return"dsh-crumb-item-link"},separatorClasses:function(){return"dsh-crumb-item-separator"}},mounted:function(){this.showSeparator=void 0!==this.$slots.separator},methods:{handleClick:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.$router;if(e){var n=this.to;if(t){var r=this.$route,i=t.resolve(this.to,r,this.append);n=i?i.href:this.to}window.open(n)}else t?this.replace?this.$router.replace(this.to,function(){}):this.$router.push(this.to,function(){}):window.location.href=this.to},handleCheckClick:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.to){if("_blank"===this.target)return!1;e.preventDefault(),this.handleClick(t)}}}}},function(e,t,n){"use strict";t.a={name:"DshDropdown",props:{list:{type:Array,default:function(){return[]}},dropdownObj:{type:Object,default:function(){return{icon:"ios-more",size:18}}},useSearch:{type:Boolean,default:!1},placement:{type:String,default:"bottom-start"},trigger:{type:String,default:"hover"},transfer:{type:Boolean,default:!0},menuClass:String},data:function(){return{searchName:""}},computed:{showList:function(){var e=this;return this.useSearch?this.list.filter(function(t){return(t.name||t._name).includes(e.searchName)}):this.list}},created:function(){},methods:{dispatchEvent:function(e,t){var n=this;!0!==e.disabled&&(this.$emit("click",e),this.$nextTick(function(){n.searchName=""}))}}}},function(e,t,n){"use strict";var r=n(2),i=n.n(r);t.a={name:"DshIcons",props:{list:{type:Array,default:function(){return[]}},itemClass:String},data:function(){return{}},computed:{},created:function(){},methods:{click:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];this.$emit.apply(this,["click"].concat(i()(t)))}}}},function(e,t,n){"use strict";var r=n(2),i=n.n(r),o=n(1),a=n.n(o);t.a={name:"DshModal",props:{value:Boolean,mode:{type:String,default:"default",validator:function(e){return-1!==["small","default","middle","large","custom","auto"].indexOf(e)}},propsObj:{type:Object,default:function(){return{}}}},data:function(){return{showSlot:!1}},computed:{showModal:function(){return this.changeShowSlot(this.value),this.value},selfPropsObj:function(){return a()({title:"标题",closable:!1,maskClosable:!1,okText:"确定",cancelText:"取消",footerHide:!0,transfer:!0},this.propsObj,{class:["DshModal","DshModal-"+this.mode].concat(i()(Array.isArray(this.propsObj.class)?this.propsObj.class:[this.propsObj.class]))})},modalWidth:function(){var e={default:"750",small:"500",middle:"1000px",large:this.propsObj.draggable?"100%":"80%",auto:"auto"};return this.selfPropsObj.width?this.selfPropsObj.width:e[this.mode]}},created:function(){},methods:{changeShowSlot:function(e){var t=this;setTimeout(function(){!0===e&&(t.showSlot=e)},0)},ok:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];this.$emit.apply(this,["ok"].concat(i()(t)))},cancel:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];this.$emit.apply(this,["cancel"].concat(i()(t)))},visibleChange:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$emit("on-visible-change",e),this.$emit("input",e)}}}},function(e,t,n){"use strict";var r=n(1),i=n.n(r);t.a={name:"DshSteps",props:{list:{type:Array,default:function(){return[]}},stepShowFunc:Function,propsObj:{type:Object,default:function(){return{}}}},data:function(){return{current:0}},computed:{selfPropsObj:function(){return i()({_status:"process",_size:void 0,_direction:"vertical"},this.propsObj)}},created:function(){},methods:{clickStepItem:function(e,t){this.stepShowFunc&&!this.stepShowFunc(e,t)||this.current!==t&&(this.current=t,this.$emit("change",e,t))}}}},function(e,t,n){"use strict";t.a={name:"DshTabs",props:{theme:{type:String,default:"分组"},value:{type:Array,default:function(){return[]}},canDeleFunc:Function},data:function(){return{curItem:null}},computed:{list:{get:function(){var e=this;return this.value.map(function(t){return e.$set(t,"isEdit",t.isEdit||!1),t})},set:function(e){this.$emit("input",e)}},operationMap:function(){return{clickTab:{name:"点击",type:"clickTab",event:"clickTab"},create:{name:"添加",type:"create",icon:"md-add",size:16,event:"create"},delete:{name:"删除",type:"delete",icon:"md-trash",size:12,color:"red",event:"delete"},update:{name:"修改",type:"update",event:"update"},drag:{name:"拖动",type:"drag",event:"drag"},clickUpdate:{name:"点击修改",type:"clickUpdate",icon:"md-create",size:12,color:"#1b9aee",event:"clickUpdate"},nameBlur:{name:"输入框失去焦点",type:"nameBlur",event:"nameBlur"}}}},created:function(){this.init()},methods:{init:function(){this.curItem=this.list[0],this.select()},create:function(e,t,n,r){var i={_id:this.$ObjectID().str,_key:this.$randomB36("FieldGroup"),name:""+this.theme+(this.list.length+1),isEdit:!1};r.push(i),this.curItem=i,this.select(),this.change()},delete:function(e,t,n,r){this.canDeleFunc&&!this.canDeleFunc(t,n,r)||(r.splice(n,1),this.curItem&&this.curItem._id===t._id&&(this.curItem=r[1],this.select()),this.change())},update:function(e,t,n,r){this.change()},drag:function(e,t,n,r){this.change()},clickTab:function(e,t,n,r){"all"===t.screenType||this.curItem&&this.curItem._id===t._id||(this.curItem=t,this.select())},clickUpdate:function(e,t,n){var r=this;t.isEdit=!0,t.oldName=t.name,this.$nextTick(function(){r.$refs[t._id]&&r.$refs[t._id][0].focus()})},nameBlur:function(e,t,n){t.isEdit=!1,t.name=t.name||t.oldName},select:function(){this.$emit("select",this.curItem)},change:function(){this.$emit("input",this.list),this.$emit("change",this.list)}}}},function(e,t,n){"use strict";var r=n(2),i=n.n(r);t.a={name:"DshTags",props:{list:{type:Array,default:function(){return[]}},propsObj:{type:Object,default:function(){return{}}},autoEllipsis:{type:Boolean,default:!1}},model:{prop:"list",event:"change"},data:function(){return{maxTagCount:void 0,getItemDisabled:function(e){return!!(this.propsObj.disabled||e._disabled||e.disabled)},getItemClosable:function(e){return!1===this.getItemDisabled(e)&&this.propsObj.closable},getItemIcon:function(e){return("object"===this.$dataType(e)?e.icon||e._icon:void 0)||this.propsObj.icon},getItemName:function(e){return"object"===this.$dataType(e)?e.realname||e.full_name||e.name||e._name||e._id:e}}},computed:{moreOperation:function(){return{customIcon:"bico-gengduo"}},computedList:function(){return this.list.slice(0,this.maxTagCount)},subList:function(){return this.autoEllipsis&&this.maxTagCount?this.list.slice(this.maxTagCount):[]}},created:function(){},mounted:function(){this.callEliipsis(),window.addEventListener("resize",this.callEliipsis,!0)},methods:{deleteTag:function(e,t,n){this.list.splice(n,1),this.callEliipsis(),this.$emit("change",[].concat(i()(this.list))),this.$emit("delete",t,n)},changeChecked:function(e,t){},callEliipsis:function(){var e=this;this.autoEllipsis&&(this.maxTagCount=void 0,this.$nextTick(function(){e.getAutoEllipsis()}))},getAutoEllipsis:function(){if(this.autoEllipsis){var e=this.$refs.DshTags.clientWidth,t=this.$refs.tagItem;for(var n in t){var r=t[n].$el;if(r.clientWidth+r.offsetLeft>e){r.clientWidth+r.offsetLeft+40<e?this.maxTagCount=n:this.maxTagCount=n-1;break}this.maxTagCount=void 0}}}},watch:{list:function(){this.callEliipsis()}},destroyed:function(){window.removeEventListener("resize",this.callEliipsis,!0)}}},function(e,t,n){"use strict";t.a={name:"DshTitle",props:{propsObj:{type:Object,default:function(){return{}}}},data:function(){return{}},computed:{},created:function(){},methods:{}}},function(e,t,n){"use strict";var r=n(97);t.a={name:"Error500",components:{errorBack:r.a},methods:{}}},function(e,t,n){"use strict";t.a={name:"errorBack",props:{backNum:{type:Number,default:-1}},data:function(){return{}},methods:{goHome:function(){this.$router.push({name:"home"})},backPage:function(){this.$router.go(this.backNum)}}}},function(e,t,n){"use strict";var r=n(97);t.a={name:"Error403",components:{errorBack:r.a},methods:{}}},function(e,t,n){"use strict";var r=n(97);t.a={name:"Error404",components:{errorBack:r.a},methods:{}}},function(e,t,n){"use strict";var r=n(2),i=n.n(r),o=n(13),a=n.n(o),s=n(36),l=n.n(s),c=n(183),u=n.n(c),d=n(1),f=n.n(d),h=n(33);n.n(h);t.a={name:"BriTree",props:{data:Array,resType:{type:String,default:"dropdown"},showKey:{type:Boolean,default:!1},useColor:{type:Boolean,default:!1},useCustomKey:{type:Boolean,default:!0}},model:{prop:"data",event:"on-change"},data:function(){return{colorMap:h.resourceData.colorMap,operationMap:{createNode:{name:"添加节点",icon:"ios-add",type:"createNode",btnType:"primary",style:"padding: 0 7px;",event:"clickAddNode"},deleteNode:{name:"删除",icon:"ios-remove",size:"20",type:"deleteNode",event:"clickDeleteNode"},clickNodeName:{name:"点击名字",type:"clickNodeName",event:"clickNodeName"},onBlur:{name:"失去焦点",type:"onBlur",event:"onBlur"},clickColor:{name:"点击颜色",type:"clickColor",event:"clickColor"},clickNodeCancel:{name:"取消",type:"clickNodeCancel",event:"clickNodeCancel",btnType:"default",class:"z-default"},clickNodeConfirm:{name:"确认",type:"clickNodeConfirm",event:"clickNodeConfirm",btnType:"primary",class:"z-primary"}},treeData:[],treeFormShow:!1,treeFormPropsObj:{title:"添加节点",class:"z-modal"},treeFormData:{_key:"",name:"",description:""},treeFormNode:null}},computed:{colorArr:function(){return u()(this.colorMap)},colorArrMap:function(){var e=this;return l()(this.colorMap).reduce(function(t,n){return f()({},t,a()({},e.colorMap[n],n))},{})},treeFormList:function(){var e=[{_key:"name",_name:"名称",_type:"text",_default:"未命名节点",_line:!0,_required:!0},{_key:"_key",_name:"唯一标识",_type:"text",_textType:"key",_line:!0,_required:!0},{_key:"description",_name:"描述",_type:"textarea",_line:!0,_required:!1}];return this.useCustomKey?e:e.slice(0,1)}},created:function(){this.treeData=function e(t){return t.map(function(t){return f()({},t,{isEdit:!1,children:e(t.children||[])})})}(this.data)},methods:{clickAddNode:function(e,t,n){this.treeFormData={_key:"",name:"未命名节点",description:""},this.treeFormNode=t,this.treeFormShow=!0},clickNodeCancel:function(){this.treeFormData={_key:"",name:"未命名节点",description:""},this.treeFormNode=null,this.treeFormShow=!1,this.onChange()},clickNodeConfirm:function(){var e=this;this.$refs.treeForm.$refs.form.validate(function(t){t?(e.createNode(e.treeFormData,e.treeFormNode&&e.treeFormNode.data),e.treeFormShow=!1):e.$formRulesWarning()}),this.onChange()},clickDeleteNode:function(e,t){var n=this,r=t.root,i=t.node,o=t.data;this.$Modal.confirm({title:"警告",content:"确定删除 ‘"+o.name+"’ \n "+(i&&i.children&&i.children.length?"及其所有子":"")+"节点吗?",onOk:function(){n.deleteNode(r,i,o)}})},createNode:function(e,t){var n=f()({},e,{color:this.colorArrMap[this.colorArr[this.treeData.length%this.colorArr.length]],expand:!0,isEdit:!1,children:[]});if(this.useCustomKey||(n._key=this.createKey(t)),t){var r=t.children||[];r.push(n),this.$set(t,"children",r)}else this.treeData.push(n);this.onChange()},deleteNode:function(e,t,n){var r=e.find(function(e){return e===t}),i=r&&r.parent;if(i||0===i){var o=e.find(function(e){return e.nodeKey===i}).node,a=o.children.indexOf(n);o.children.splice(a,1)}else{var s=this.treeData.indexOf(n);this.treeData.splice(s,1)}this.onChange()},createKey:function(e){if(e){if(!e.children||!e.children.length)return this.$encodeB36(1,4);e=e.children}else if(!(e=this.treeData).length)return this.$encodeB36(1,4);var t=Math.max.apply(Math,i()(e.map(function(e){return e._key})));return this.$encodeB36(this.$decodeB36(t)+1,4)},onBlur:function(e,t){var n=t.data;n.name||(n.name=n.oldName),n.isEdit=!1,this.$emit("on-change",this.treeData)},clickNodeName:function(e,t){var n=t.data;n.oldName=n.name,n.isEdit=!0},clickColor:function(e,t){e.data.color=this.colorArrMap[t],this.$emit("on-change",this.treeData)},renderContent:function(e,t){var n=this,r=t.root,i=t.node,o=t.data;return e("div",{style:{display:"inline-flex",width:"100%",height:"36px",lineHeight:"33px",border:"1px solid rgba(211, 215, 228, 0.5)",borderRadius:"4px",justifyContent:"space-between"}},[e("div",{style:{flex:1,overflowX:"auto",display:"flex",alignItems:"center",overflowY:"hidden",padding:"0 5px"}},["dropdown"===this.resType?e("Icon",{props:{type:"md-arrow-round-up",size:"14"},style:{margin:"0 2px",color:"#999"},on:{click:function(){n.handleUp(o)}}}):"","dropdown"===this.resType?e("Icon",{props:{type:"md-arrow-round-down",size:"14"},style:{margin:"0 2px",color:"#999"},on:{click:function(){n.handleDown(o)}}}):"",e("dsh-color-panel",{props:{dropdownObj:{icon:"md-arrow-dropdown-circle",color:this.colorMap[o.color]||this.colorMap["color-1"]},menuClass:"BriTree-dropdown-menu",list:this.colorArr},style:{margin:"0 2px"},on:{click:function(e){return n.clickColor({root:r,node:i,data:o},e)}}}),o.isEdit?e("Input",{props:{value:o.name,placeholder:"请输入节点名称",size:"small"},directives:[{name:"focus"}],style:{width:"200px"},on:{input:function(e){o.name=e},"on-blur":function(){return n.$dispatchEvent(n.operationMap.onBlur,{root:r,node:i,data:o})}}}):[e("span",{style:{verticalAlign:"middle",paddingLeft:"3px",flex:1,overflow:"auto"},on:{click:function(){return n.$dispatchEvent(n.operationMap.clickNodeName,{root:r,node:i,data:o})}}},o.name),this.showKey?e("span",{style:{marginLeft:"20px",fontSize:"12px",color:"#999"}},o._key):void 0]]),e("div",{style:{marginLeft:"10px"}},["createNode","deleteNode"].map(function(e){return n.operationMap[e]}).filter(function(e){return!!e&&("dropdown"!==n.resType||"createNode"!==e.type)}).map(function(t){return e("Icon",{props:{size:t.size||20,type:t.icon},style:{margin:"0 2px",color:"#999"},on:{click:function(){n.$dispatchEvent(t,{root:r,node:i,data:o})}}},t.name)}))])},handleUp:function(e){var t=this.treeData.findIndex(function(t){return t._key===e._key});if(t>0){var n=f()({},this.treeData[t-1]);this.treeData.splice(t-1,1),this.treeData.splice(t,0,n),this.onChange()}},handleDown:function(e){var t=this.treeData.findIndex(function(t){return t._key===e._key});if(t<this.treeData.length-1){var n=f()({},this.treeData[t]);this.treeData.splice(t,1),this.treeData.splice(t+1,0,n),this.onChange()}},onChange:function(){this.$emit("on-change",this.transformResData(this.treeData))},transformResData:function(e){var t=this;return e.map(function(e){return{_key:e._key,name:e.name,color:e.color,children:t.transformResData(e.children||[])}})}}}},function(e,t,n){"use strict";t.a={name:"BriCollapseTree",props:{list:{type:Array,default:function(){return[]}}},data:function(){return{}},computed:{},created:function(){},methods:{click:function(e){e.disabled||this.$emit("click",e)}}}},function(e,t,n){"use strict";var r=n(1),i=n.n(r),o=n(74),a=n.n(o);function s(e){var t=new Date,n=t.getFullYear(),r=t.getMonth(),i=t.getDate(),o=new Date(n,r,i,0,0,0).getTime();return new Date(o+60*e*60*1e3).getTime()}function l(e){var t=new Date,n=t.getFullYear(),r=t.getMonth();return new Date(n,r+e,1).getTime()}var c=[{id:1,label:"Make some noise",user:'<a href="https://www.google.com/search?q=John+Doe" target="_blank" style="color:#0077c0;">John Doe</a>',start:s(-120),end:s(0),select:"紧急",duration:1296e6,percent:85,type:"project",style:{background:"orange",main:"rgba(109,174,242,1)"}},{id:2,label:"With great power comes great responsibility",user:'<a href="https://www.google.com/search?q=Peter+Parker" target="_blank" style="color:#0077c0;">Peter Parker</a>',parentId:1,start:s(-480),duration:1728e6,percent:50,select:"重要",type:"milestone",collapsed:!0,style:{background:"red",main:"rgba(240,143,145,1)"}},{id:3,label:"Courage is being scared to death, but saddling up anyway.",user:'<a href="https://www.google.com/search?q=John+Wayne" target="_blank" style="color:#0077c0;">John Wayne</a>',parentId:2,select:"普通",start:s(-72),duration:1728e5,percent:100,type:"task",style:{background:"rgba(255,248,242,1)",main:"rgba(255,190,114,1)"}},{id:4,label:"Put that toy AWAY!",user:'<a href="https://www.google.com/search?q=Clark+Kent" target="_blank" style="color:#0077c0;">Clark Kent</a>',start:s(-48),duration:1728e5,select:"紧急",percent:50,type:"task",dependentOn:[3],style:{background:"rgba(235,248,240,1)",main:"rgba(137,213,166,1)"}},{id:5,label:"Put that toy AWAY!",select:"紧急",user:'<a href="https://www.google.com/search?q=Clark+Kent" target="_blank" style="color:#0077c0;">Clark Kent</a>',start:s(24),end:s(24),percent:50,type:"task",dependentOn:[3],style:{background:"rgba(235,248,240,1)",main:"rgba(137,213,166,1)"}}];t.a={name:"briGantt",components:{},props:{simpleDataColor:String,tasks:Array,options:{type:Object,default:function(){return{}}},value:{type:Object,default:function(){return{}}},propsObj:{type:Object,default:function(){return{}}},showEs:{type:Boolean,default:!1},title:String,type:{type:String,default:"table"},dimension:{type:String,default:"quarter"},showCloumns:{type:Boolean,default:!0},table:Array,count:{type:Number,default:5},step:{type:Number,default:1}},computed:{defaultTasks:function(){return this.showEs?c:this.tasks||[]},tableWidth:function(){var e=50*this.simpleData.length,t=this.clientWidth;return"month"===this.computedCountStep.stepKind&&(e=3*this.timeData.length),e<t?"100%":e+"px"},minTdWidth:function(){var e=2;return(e=this.tableWidth.includes("px")?parseInt(this.tableWidth)/this.timeData.length:parseInt(this.clientWidth)/this.timeData.length)>20&&(e=2),e+"px"},computedCountStep:function(){return this.refreshStepCount(),this.dimensionObject[this.dimension]||{count:this.count,step:this.step}},taskData:function(){var e=this.defaultTasks,t=!0,n=!1,r=void 0;try{for(var i,o=a()(e);!(t=(i=o.next()).done);t=!0){var s=i.value;void 0===s.x&&(s.x=0),void 0===s.y&&(s.y=0),void 0===s.width&&(s.width=0),void 0===s.height&&(s.height=0),void 0===s.mouseOver&&(s.mouseOver=!1),void 0===s.collapsed&&(s.collapsed=!1),void 0===s.dependentOn&&(s.dependentOn=[]),void 0===s.parentId&&(s.parentId=null),void 0===s.style&&(s.style={}),void 0===s.children&&(s.children=[]),void 0===s.allChildren&&(s.allChildren=[]),void 0===s.parents&&(s.parents=[]),void 0===s.parent&&(s.parent=null),void 0===s.startTime&&(s.startTime=new Date(s.start).valueOf()),void 0===s.endTime&&s.hasOwnProperty("end")?s.endTime=new Date(s.end).valueOf():void 0===s.endTime&&s.hasOwnProperty("duration")&&(s.endTime=s.startTime+s.duration-864e5),void 0===s.duration&&s.hasOwnProperty("endTime")&&(s.duration=s.endTime-s.startTime)}}catch(e){n=!0,r=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}return e},simpleData:function(){for(var e=this.computedCountStep,t=e.count,n=e.step,r=e.stepKind,i=[{key:s(0),endKey:s(24*(n-1)+23.9999),name:"今天",colspan:1,fullName:this.dateFormat(s(0),"yyyy-MM-dd"),style:{color:this.simpleDataColor,fontWeight:500},now:!0}],o=this.preCount*t+t,a=this.nextCount*t+t,c=-n;c>=-o*n;c-=n){var u="month"===r?l(c):s(24*c);i.unshift({colspan:1,key:u,endKey:s(24*(c+n-1)+23.9999),name:this.getDayName(u,r),fullName:this.dateFormat(u,"yyyy-MM-dd"),style:"1"==this.dateFormat(u,"d")&&{fontWeight:500}})}for(var d=n;d<=a*n;d+=n){var f="month"===r?l(d):s(24*d);i.push({colspan:1,key:f,endKey:s(24*(d+n-1)+23.9999),name:this.getDayName(f,r),fullName:this.dateFormat(f,"yyyy-MM-dd"),style:"1"==this.dateFormat(f,"d")&&{fontWeight:500}})}return i},timeData:function(){var e=this.computedCountStep,t=e.count,n=e.step,r=e.stepKind,i=[],o=this.preCount*t+t,a=this.nextCount*t+t,c=-o*n,u=a*n;"month"===r&&(c=(l(-o)-l(0))/24/60/60/1e3,u=(l(a)-l(0))/24/60/60/1e3);for(var d=c;d<=u;d++){var f=s(24*d);i.push({now:this.dateFormat(f,"yyyy-MM-dd")===this.dateFormat(new Date,"yyyy-MM-dd"),key:f,endKey:s(24*d+23.9999),name:this.getDayName(f,r),fullName:this.dateFormat(f,"yyyy-MM-dd")})}return i},computedData:function(){var e=this;return this.taskData.map(function(t){var n=[];return e.timeData.forEach(function(r){if(e.filterTaskDate(t,r)){var o=new Date(r.endKey)>new Date(t.endTime);if(n[n.length-1]&&n[n.length-1].isApply)n[n.length-1].colspan++,o&&(n[n.length-1].isEndStep=o);else{var a=i()({colspan:1},r,{style:t.style||{background:"rgba(232,243,253,1)",border:"1px solid rgba(109,174,242,1)",main:"rgba(109,174,242,1)"},task:t,isApply:!0});o&&(a.isEndStep=o),n.push(a)}}else{var s=i()({colspan:1},r,{task:t,isApply:!1});n.push(s)}}),n})},theme:function(){return this.propsObj.theme||{}},themeName:function(){return this.theme.name}},data:function(){return{clientWidth:0,nextCount:0,preCount:0,dimensionObject:{doubleWeek:{name:"按周",count:3,step:1,stepKind:"day"},week:{name:"双周",count:7,step:1,stepKind:"day"},month:{name:"按月",count:7,step:2,stepKind:"day"},quarter:{name:"季度",count:9,step:5,stepKind:"day"},year:{name:"按年",count:6,step:1,stepKind:"month"}},nowOffsetLeft:0}},created:function(){this.init()},mounted:function(){window.onresize=this.refreshWidth},methods:{init:function(){var e=this;setTimeout(function(){e.refreshWidth()})},filterTaskDate:function(e,t){return new Date(e.startTime)<=new Date(t.endKey)&&(e.endTime?new Date(t.key)<=new Date(e.endTime):e.endInfinite)},getDayName:function(e,t){var n=this.dateFormat(e,"M月d日");return"1日"===n&&(n=this.dateFormat(e,"M月d日")),"month"===t&&"1月"===(n=this.dateFormat(e,"M月"))&&(n=""+this.dateFormat(e,"yyyy年M月")),n},refreshStepCount:function(){this.preCount=0,this.nextCount=0},refreshWidth:function(){this.clientWidth=this.$refs.briGanttArea?this.$refs.briGanttArea.clientWidth:0},refresh:function(){},dateFormat:function(e,t){var n=new Date(e),r={"M+":n.getMonth()+1,"d+":n.getDate(),"h+":n.getHours(),"m+":n.getMinutes(),"s+":n.getSeconds(),"q+":Math.floor((n.getMonth()+3)/3),S:n.getMilliseconds()};for(var i in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(n.getFullYear()+"").substr(4-RegExp.$1.length))),r)new RegExp("("+i+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?r[i]:("00"+r[i]).substr((""+r[i]).length)));return t},handleScroll:function(e,t){var n=this;t.forEach(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:item,r=t.ref,i=t.direction;n.$refs[r]&&(n.$refs[r][i]=e.target[i])})},preTime:function(){var e=this,t=this.$refs.briGanttTimer,n=t.clientWidth,r=t.scrollLeft;0===r?(this.preCount++,this.$nextTick(function(){e.slideTo(t,r-n)})):this.slideTo(t,r-n)},nextTime:function(){var e=this,t=this.$refs.briGanttTimer,n=t.clientWidth,r=parseInt(this.tableWidth),i=t.scrollLeft;i<r-n?this.slideTo(t,i+n):(this.nextCount++,this.$nextTick(function(){e.slideTo(t,i+n)}))},slideTo:function(e,t){var n=e.scrollLeft,r=t-n,i=r/10,o=n+i,a=setInterval(function(){(r>0?o>t:o<t)?clearInterval(a):(e.scrollTo(o,0),o+=i)},10)}},filters:{},destroyed:function(){window.onresize=null}}},function(e,t,n){"use strict";t.a={name:"BriIframe",props:{url:{type:String,required:!0},allow:{type:String,default:"fullscreen"}},data:function(){return{loading:!1,noData:this.$imageSrcMap.app.nodata}},computed:{},mounted:function(){this.init(),window.addEventListener("message",this.onMessage)},beforeDestroy:function(){window.removeEventListener("message",this.onMessage,!0)},methods:{init:function(){var e=this,t=this.$refs.BriIframe;t&&(this.loading=!0,t.attachEvent?t.attachEvent("onreadystatechange",function(){"complete"!==t.readyState&&"loaded"!=t.readyState||e.loadingEnd()}):t.addEventListener("load",function(){e.loadingEnd()},!1))},loadingEnd:function(){this.loading=!1},onMessage:function(e){var t=e.data;"success"===t.status&&this.$emit("on-message",t)}}}},,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n.n(r),o=n(36),a=n.n(o),s=n(220),l=n(222),c=n.n(l),u=n(223),d=n.n(u),f=n(224),h=n.n(f),p=n(225),m=(n.n(p),n(229)),y=n.n(m),v=n(105),g=n(117),b=n(115),_=n(245),k=n(247),w=n(249),x=n(322),C=n(324),S=n(326),A=n(328),O=n(330),j=n(122),T=n(61),E=n(81),D=n(85),I=n(87),R=n(75),M=n(72),P=n(332),L=n(347),B=n(351),N=n(353),F=n(355),K=n(357),V=n(361),z=n(363),U=n(365),q=n(367),W=n(369),$=n(371),H=n(373),G=n(388),Z=n(390),Y=n(392),X=n(394),J=n(396),Q=n(398),ee=n(400),te=n(402),ne=n(404),re=n(405),ie=n(406),oe=n(414),ae=n(418),se=n(163),le=n(422),ce=n(161),ue=n(62),de=n(86),fe=n(77),he=n(78),pe=n(88),me=n(63),ye=n(42),ve=n(76),ge=n(80),be=n(79),_e=n(89),ke=n(92),we=n(90),xe=n(93),Ce=n(94),Se=n(424),Ae=n(426),Oe=n(428);n.d(t,"DshDraggable",function(){return d.a}),n.d(t,"DshCropper",function(){return h.a}),n.d(t,"Error500",function(){return ie.a}),n.d(t,"Error403",function(){return oe.a}),n.d(t,"Error404",function(){return ae.a}),n.d(t,"DshBox",function(){return v.default}),n.d(t,"DshTable",function(){return g.default}),n.d(t,"DshList",function(){return b.default}),n.d(t,"BriCard",function(){return se.a}),n.d(t,"BriFlatTable",function(){return _.a}),n.d(t,"BriTable",function(){return k.a}),n.d(t,"BriTree",function(){return le.a}),n.d(t,"BriTreeItem",function(){return ce.a}),n.d(t,"DshCascaderTable",function(){return w.a}),n.d(t,"DshPage",function(){return x.a}),n.d(t,"DshForm",function(){return C.a}),n.d(t,"DshAdvSearchForm",function(){return S.a}),n.d(t,"DshDefaultSearch",function(){return A.a}),n.d(t,"DshFormItem",function(){return O.a}),n.d(t,"DshUnit",function(){return j.a}),n.d(t,"DshInput",function(){return E.default}),n.d(t,"DshNumber",function(){return D.default}),n.d(t,"DshSelect",function(){return I.default}),n.d(t,"DshCheckbox",function(){return R.default}),n.d(t,"DshCascader",function(){return M.default}),n.d(t,"BriInputs",function(){return ue.default}),n.d(t,"DshNumberange",function(){return de.default}),n.d(t,"DshDate",function(){return fe.default}),n.d(t,"DshDaterange",function(){return he.default}),n.d(t,"DshSwitch",function(){return pe.default}),n.d(t,"BriUpload",function(){return me.default}),n.d(t,"BriUploadImage",function(){return ye.default}),n.d(t,"DshCoordinates",function(){return ve.default}),n.d(t,"DshEditor",function(){return ge.default}),n.d(t,"DshDivider",function(){return be.default}),n.d(t,"DshPackage",function(){return _e.default}),n.d(t,"DshBack",function(){return xe.default}),n.d(t,"DshUndeveloped",function(){return Ce.default}),n.d(t,"selectUsers",function(){return ke.default}),n.d(t,"selectDepartments",function(){return we.default}),n.d(t,"BriCode",function(){return P.a}),n.d(t,"BriLoading",function(){return L.a}),n.d(t,"DshAvatar",function(){return B.a}),n.d(t,"DshBtnModal",function(){return N.a}),n.d(t,"DshColorPanel",function(){return F.a}),n.d(t,"DshEditPanel",function(){return K.a}),n.d(t,"DshMenu",function(){return V.a}),n.d(t,"DshMenuNav",function(){return z.a}),n.d(t,"BriCollapseTree",function(){return Se.a}),n.d(t,"BriGantt",function(){return Ae.a}),n.d(t,"BriIframe",function(){return Oe.a}),n.d(t,"BriButton",function(){return U.a}),n.d(t,"BriDrawer",function(){return q.a}),n.d(t,"DshButtons",function(){return $.a}),n.d(t,"BriTooltip",function(){return W.a}),n.d(t,"DshCrumbs",function(){return H.a}),n.d(t,"DshCrumbsItem",function(){return G.a}),n.d(t,"DshDropdown",function(){return Z.a}),n.d(t,"DshIcons",function(){return Y.a}),n.d(t,"DshModal",function(){return X.a}),n.d(t,"DshSteps",function(){return J.a}),n.d(t,"DshTabs",function(){return Q.a}),n.d(t,"DshTags",function(){return ee.a}),n.d(t,"DshTitle",function(){return te.a}),n.d(t,"DshRender",function(){return ne.a}),n.d(t,"DshTdRender",function(){return re.a});var je={DshDraggable:d.a,DshCropper:h.a,DshBox:v.default,DshTable:g.default,DshList:b.default,BriFlatTable:_.a,BriTable:k.a,DshCascaderTable:w.a,DshPage:x.a,DshForm:C.a,DshAdvSearchForm:S.a,DshDefaultSearch:A.a,DshFormItem:O.a,DshUnit:j.a,BriControlInput:T.default,DshInput:E.default,DshNumber:D.default,DshSelect:I.default,DshCheckbox:R.default,DshCascader:M.default,BriLoading:L.a,DshAvatar:B.a,DshBtnModal:N.a,DshEditPanel:K.a,DshColorPanel:F.a,DshMenu:V.a,DshMenuNav:z.a,BriButton:U.a,BriDrawer:q.a,BriTooltip:W.a,DshButtons:$.a,DshCrumbs:H.a,DshCrumbsItem:G.a,DshDropdown:Z.a,DshIcons:Y.a,DshModal:X.a,DshSteps:J.a,DshTabs:Q.a,DshTags:ee.a,DshTitle:te.a,DshRender:ne.a,DshTdRender:re.a};t.default=i()({install:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c.a.LoadingBar.config({color:"#2d8cf0",failedColor:"red",height:3}),e.use(c.a),p.VeLocale.use(y.a),e.use(p.VeTable),a()(s.a).forEach(function(t){e.prototype["$"+t]=s.a[t]});var n=t.globalMap,r=i()({},je,n||{});a()(r).forEach(function(t){e.component(t,r[t])})}},je)},function(e,t,n){n(213),e.exports=n(4).Object.assign},function(e,t,n){var r=n(8);r(r.S+r.F,"Object",{assign:n(214)})},function(e,t,n){"use strict";var r=n(9),i=n(21),o=n(55),a=n(27),s=n(28),l=n(100),c=Object.assign;e.exports=!c||n(20)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=r})?function(e,t){for(var n=s(e),c=arguments.length,u=1,d=o.f,f=a.f;c>u;)for(var h,p=l(arguments[u++]),m=d?i(p).concat(d(p)):i(p),y=m.length,v=0;y>v;)h=m[v++],r&&!f.call(p,h)||(n[h]=p[h]);return n}:c},function(e,t,n){var r=n(17),i=n(50),o=n(216);e.exports=function(e){return function(t,n,a){var s,l=r(t),c=i(l.length),u=o(a,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},function(e,t,n){var r=n(51),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):o(e,t)}},function(e,t,n){n(218),e.exports=n(4).Object.keys},function(e,t,n){var r=n(28),i=n(21);n(219)("keys",function(){return function(e){return i(r(e))}})},function(e,t,n){var r=n(8),i=n(4),o=n(20);e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o(function(){n(1)}),"Object",a)}},function(e,t,n){"use strict";var r=n(1),i=n.n(r),o=n(221);t.a=i()({},o.a)},function(e,t,n){"use strict";var r=n(1),i=n.n(r);t.a={transformToColumns:function(e){var t=this,n=this.listPropsObj&&this.listPropsObj.headerFilter;return e.filter(function(e){return"tag"!==e._type}).map(function(e){var r=t.$modFieldMap[e._type]||{};return i()({title:e._name,field:e._key,key:e._key,align:e._align||r.align,width:e._width||r.width,sortBy:n?e._sortBy||r.sortBy:void 0,renderHeaderCell:function(e,t){e.row;var n=e.column;return t("div",{class:{"bri-table-ellipsis":void 0!=n.sortBy||n.filter||n.filterCustom},directives:[{name:"ellipsis"}]},n.title)}},e._type?"operation"===e._type?{renderBodyCell:function(n,r){return r("dsh-buttons",{props:{list:e._getBtnList?e._getBtnList.call(t,n.row):t.$getOperationList(e._list),itemClass:"table-operation-btn"},on:{click:function(e){t.$dispatchEvent(e,n)}}})}}:{renderBodyCell:function(t,n){var r=t.row;return t.column,n("dsh-unit",{props:{canEdit:!1,rowIndex:t.rowIndex,formData:r,formItem:e}})}}:{},["select","checkbox"].includes(e._type)?{filter:n?{isMultiple:!0,maxHeight:300,filterList:e._data.map(function(e){return i()({},e,{value:e._key,label:e.name,selected:!1})}),filterConfirm:function(n){var r={logic:"field",fieldKey:e._key,fieldType:e._type,fieldValue:n.filter(function(e){return e.selected}).map(function(e){return e._key}),fieldOperator:"eq"};t.filterConfirm&&t.filterConfirm(r)},filterReset:function(){var n={logic:"field",fieldKey:e._key,fieldType:e._type,fieldValue:[],fieldOperator:"eq"};t.filterReset&&t.filterReset(n)}}:null}:{},e)})}}},function(e,t){e.exports=n},function(e,t){e.exports=r},function(e,t){e.exports=i},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="",n(n.s=141)}([function(e,t,n){var r=n(2),i=n(22).f,o=n(19),a=n(20),s=n(78),l=n(111),c=n(65);e.exports=function(e,t){var n,u,d,f,h,p=e.target,m=e.global,y=e.stat;if(n=m?r:y?r[p]||s(p,{}):(r[p]||{}).prototype)for(u in t){if(f=t[u],d=e.noTargetGet?(h=i(n,u))&&h.value:n[u],!c(m?u:p+(y?".":"#")+u,e.forced)&&void 0!==d){if(typeof f==typeof d)continue;l(f,d)}(e.sham||d&&d.sham)&&o(f,"sham",!0),a(n,u,f,e)}}},function(e,t,n){"use strict";var r=n(11),i=n(2),o=n(65),a=n(20),s=n(15),l=n(31),c=n(107),u=n(50),d=n(3),f=n(54),h=n(68).f,p=n(22).f,m=n(14).f,y=n(146).trim,v=i.Number,g=v.prototype,b="Number"==l(f(g)),_=function(e){var t,n,r,i,o,a,s,l,c=u(e,!1);if("string"==typeof c&&c.length>2)if(43===(t=(c=y(c)).charCodeAt(0))||45===t){if(88===(n=c.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(c.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+c}for(a=(o=c.slice(2)).length,s=0;s<a;s++)if((l=o.charCodeAt(s))<48||l>i)return NaN;return parseInt(o,r)}return+c};if(o("Number",!v(" 0o1")||!v("0b1")||v("+0x1"))){for(var k,w=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof w&&(b?d(function(){g.valueOf.call(n)}):"Number"!=l(n))?c(new v(_(t)),n,w):_(t)},x=r?h(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),C=0;x.length>C;C++)s(v,k=x[C])&&!s(w,k)&&m(w,k,p(v,k));w.prototype=g,g.constructor=w,a(i,"Number",w)}},function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(this,n(102))},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(2),i=n(63),o=n(15),a=n(64),s=n(80),l=n(106),c=i("wks"),u=r.Symbol,d=l?u:u&&u.withoutSetter||a;e.exports=function(e){return o(c,e)&&(s||"string"==typeof c[e])||(s&&o(u,e)?c[e]=u[e]:c[e]=d("Symbol."+e)),c[e]}},function(e,t){e.exports=n(56)},function(e,t){e.exports=n(58)},function(e,t,n){var r=n(11),i=n(14).f,o=Function.prototype,a=o.toString,s=/^\s*function ([^ (]*)/;r&&!("name"in o)&&i(o,"name",{configurable:!0,get:function(){try{return a.call(this).match(s)[1]}catch(e){return""}}})},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(8);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,n){var r=n(2),i=n(103),o=n(142),a=n(19);for(var s in i){var l=r[s],c=l&&l.prototype;if(c&&c.forEach!==o)try{a(c,"forEach",o)}catch(e){c.forEach=o}}},function(e,t,n){var r=n(3);e.exports=!r(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},function(e,t,n){"use strict";var r=n(0),i=n(37).map;r({target:"Array",proto:!0,forced:!n(60)("map")},{map:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(48),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){var r=n(11),i=n(104),o=n(9),a=n(50),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(o(e),t=a(t,!0),o(n),i)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(16),i={}.hasOwnProperty;e.exports=function(e,t){return i.call(r(e),t)}},function(e,t,n){var r=n(17);e.exports=function(e){return Object(r(e))}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(47),i=n(17);e.exports=function(e){return r(i(e))}},function(e,t,n){var r=n(11),i=n(14),o=n(51);e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(2),i=n(19),o=n(15),a=n(78),s=n(83),l=n(39),c=l.get,u=l.enforce,d=String(String).split("String");(e.exports=function(e,t,n,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,h=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||o(n,"name")||i(n,"name",t),(l=u(n)).source||(l.source=d.join("string"==typeof t?t:""))),e!==r?(c?!h&&e[t]&&(f=!0):delete e[t],f?e[t]=n:i(e,t,n)):f?e[t]=n:a(t,n)})(Function.prototype,"toString",function(){return"function"==typeof this&&c(this).source||s(this)})},function(e,t,n){"use strict";var r=n(0),i=n(37).filter;r({target:"Array",proto:!0,forced:!n(60)("filter")},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(11),i=n(69),o=n(51),a=n(18),s=n(50),l=n(15),c=n(104),u=Object.getOwnPropertyDescriptor;t.f=r?u:function(e,t){if(e=a(e),t=s(t,!0),c)try{return u(e,t)}catch(e){}if(l(e,t))return o(!i.f.call(e,t),e[t])}},function(e,t,n){"use strict";var r=n(0),i=n(109).includes,o=n(57);r({target:"Array",proto:!0},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("includes")},function(e,t,n){"use strict";var r=n(0),i=n(89),o=n(17);r({target:"String",proto:!0,forced:!n(90)("includes")},{includes:function(e){return!!~String(o(this)).indexOf(i(e),arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(0),i=n(155);r({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},function(e,t,n){"use strict";var r=n(0),i=n(157);r({target:"String",proto:!0,forced:n(158)("fixed")},{fixed:function(){return i(this,"tt","","")}})},function(e,t,n){var r=n(87),i=n(20),o=n(149);r||i(Object.prototype,"toString",o,{unsafe:!0})},function(e,t,n){"use strict";var r=n(0),i=n(37).findIndex,o=n(57),a=!0;"findIndex"in[]&&Array(1).findIndex(function(){a=!1}),r({target:"Array",proto:!0,forced:a},{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("findIndex")},function(e,t,n){"use strict";var r=n(0),i=n(37).find,o=n(57),a=!0;"find"in[]&&Array(1).find(function(){a=!1}),r({target:"Array",proto:!0,forced:a},{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("find")},function(e,t){e.exports=n(57)},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=!1},function(e,t,n){"use strict";var r=n(0),i=n(2),o=n(38),a=n(32),s=n(11),l=n(80),c=n(106),u=n(3),d=n(15),f=n(49),h=n(8),p=n(9),m=n(16),y=n(18),v=n(50),g=n(51),b=n(54),_=n(55),k=n(68),w=n(148),x=n(86),C=n(22),S=n(14),A=n(69),O=n(19),j=n(20),T=n(63),E=n(66),D=n(53),I=n(64),R=n(4),M=n(113),P=n(114),L=n(56),B=n(39),N=n(37).forEach,F=E("hidden"),K=R("toPrimitive"),V=B.set,z=B.getterFor("Symbol"),U=Object.prototype,q=i.Symbol,W=o("JSON","stringify"),$=C.f,H=S.f,G=w.f,Z=A.f,Y=T("symbols"),X=T("op-symbols"),J=T("string-to-symbol-registry"),Q=T("symbol-to-string-registry"),ee=T("wks"),te=i.QObject,ne=!te||!te.prototype||!te.prototype.findChild,re=s&&u(function(){return 7!=b(H({},"a",{get:function(){return H(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=$(U,t);r&&delete U[t],H(e,t,n),r&&e!==U&&H(U,t,r)}:H,ie=function(e,t){var n=Y[e]=b(q.prototype);return V(n,{type:"Symbol",tag:e,description:t}),s||(n.description=t),n},oe=c?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof q},ae=function(e,t,n){e===U&&ae(X,t,n),p(e);var r=v(t,!0);return p(n),d(Y,r)?(n.enumerable?(d(e,F)&&e[F][r]&&(e[F][r]=!1),n=b(n,{enumerable:g(0,!1)})):(d(e,F)||H(e,F,g(1,{})),e[F][r]=!0),re(e,r,n)):H(e,r,n)},se=function(e,t){p(e);var n=y(t),r=_(n).concat(de(n));return N(r,function(t){s&&!le.call(n,t)||ae(e,t,n[t])}),e},le=function(e){var t=v(e,!0),n=Z.call(this,t);return!(this===U&&d(Y,t)&&!d(X,t))&&(!(n||!d(this,t)||!d(Y,t)||d(this,F)&&this[F][t])||n)},ce=function(e,t){var n=y(e),r=v(t,!0);if(n!==U||!d(Y,r)||d(X,r)){var i=$(n,r);return!i||!d(Y,r)||d(n,F)&&n[F][r]||(i.enumerable=!0),i}},ue=function(e){var t=G(y(e)),n=[];return N(t,function(e){d(Y,e)||d(D,e)||n.push(e)}),n},de=function(e){var t=e===U,n=G(t?X:y(e)),r=[];return N(n,function(e){!d(Y,e)||t&&!d(U,e)||r.push(Y[e])}),r};l||(j((q=function(){if(this instanceof q)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=I(e),n=function(e){this===U&&n.call(X,e),d(this,F)&&d(this[F],t)&&(this[F][t]=!1),re(this,t,g(1,e))};return s&&ne&&re(U,t,{configurable:!0,set:n}),ie(t,e)}).prototype,"toString",function(){return z(this).tag}),j(q,"withoutSetter",function(e){return ie(I(e),e)}),A.f=le,S.f=ae,C.f=ce,k.f=w.f=ue,x.f=de,M.f=function(e){return ie(R(e),e)},s&&(H(q.prototype,"description",{configurable:!0,get:function(){return z(this).description}}),a||j(U,"propertyIsEnumerable",le,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:q}),N(_(ee),function(e){P(e)}),r({target:"Symbol",stat:!0,forced:!l},{for:function(e){var t=String(e);if(d(J,t))return J[t];var n=q(t);return J[t]=n,Q[n]=t,n},keyFor:function(e){if(!oe(e))throw TypeError(e+" is not a symbol");if(d(Q,e))return Q[e]},useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),r({target:"Object",stat:!0,forced:!l,sham:!s},{create:function(e,t){return void 0===t?b(e):se(b(e),t)},defineProperty:ae,defineProperties:se,getOwnPropertyDescriptor:ce}),r({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:ue,getOwnPropertySymbols:de}),r({target:"Object",stat:!0,forced:u(function(){x.f(1)})},{getOwnPropertySymbols:function(e){return x.f(m(e))}}),W&&r({target:"JSON",stat:!0,forced:!l||u(function(){var e=q();return"[null]"!=W([e])||"{}"!=W({a:e})||"{}"!=W(Object(e))})},{stringify:function(e,t,n){for(var r,i=[e],o=1;arguments.length>o;)i.push(arguments[o++]);if(r=t,(h(t)||void 0!==e)&&!oe(e))return f(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!oe(t))return t}),i[1]=t,W.apply(null,i)}}),q.prototype[K]||O(q.prototype,K,q.prototype.valueOf),L(q,"Symbol"),D[F]=!0},function(e,t,n){"use strict";var r=n(18),i=n(57),o=n(58),a=n(39),s=n(88),l=a.set,c=a.getterFor("Array Iterator");e.exports=s(Array,"Array",function(e,t){l(this,{type:"Array Iterator",target:r(e),index:0,kind:t})},function(){var e=c(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},function(e,t,n){"use strict";var r=n(0),i=n(3),o=n(49),a=n(8),s=n(16),l=n(13),c=n(59),u=n(76),d=n(60),f=n(4),h=n(52),p=f("isConcatSpreadable"),m=h>=51||!i(function(){var e=[];return e[p]=!1,e.concat()[0]!==e}),y=d("concat"),v=function(e){if(!a(e))return!1;var t=e[p];return void 0!==t?!!t:o(e)};r({target:"Array",proto:!0,forced:!m||!y},{concat:function(e){var t,n,r,i,o,a=s(this),d=u(a,0),f=0;for(t=-1,r=arguments.length;t<r;t++)if(v(o=-1===t?a:arguments[t])){if(f+(i=l(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<i;n++,f++)n in o&&c(d,f,o[n])}else{if(f>=9007199254740991)throw TypeError("Maximum allowed index exceeded");c(d,f++,o)}return d.length=f,d}})},function(e,t,n){"use strict";var r=n(0),i=n(8),o=n(49),a=n(67),s=n(13),l=n(18),c=n(59),u=n(4),d=n(60)("slice"),f=u("species"),h=[].slice,p=Math.max;r({target:"Array",proto:!0,forced:!d},{slice:function(e,t){var n,r,u,d=l(this),m=s(d.length),y=a(e,m),v=a(void 0===t?m:t,m);if(o(d)&&("function"!=typeof(n=d.constructor)||n!==Array&&!o(n.prototype)?i(n)&&null===(n=n[f])&&(n=void 0):n=void 0,n===Array||void 0===n))return h.call(d,y,v);for(r=new(void 0===n?Array:n)(p(v-y,0)),u=0;y<v;y++,u++)y in d&&c(r,u,d[y]);return r.length=u,r}})},function(e,t,n){var r=n(45),i=n(47),o=n(16),a=n(13),s=n(76),l=[].push,c=function(e){var t=1==e,n=2==e,c=3==e,u=4==e,d=6==e,f=7==e,h=5==e||d;return function(p,m,y,v){for(var g,b,_=o(p),k=i(_),w=r(m,y,3),x=a(k.length),C=0,S=v||s,A=t?S(p,x):n||f?S(p,0):void 0;x>C;C++)if((h||C in k)&&(b=w(g=k[C],C,_),e))if(t)A[C]=b;else if(b)switch(e){case 3:return!0;case 5:return g;case 6:return C;case 2:l.call(A,g)}else switch(e){case 4:return!1;case 7:l.call(A,g)}return d?-1:c||u?u:A}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterOut:c(7)}},function(e,t,n){var r=n(105),i=n(2),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e])||o(i[e]):r[e]&&r[e][t]||i[e]&&i[e][t]}},function(e,t,n){var r,i,o,a=n(143),s=n(2),l=n(8),c=n(19),u=n(15),d=n(77),f=n(66),h=n(53),p=s.WeakMap;if(a||d.state){var m=d.state||(d.state=new p),y=m.get,v=m.has,g=m.set;r=function(e,t){if(v.call(m,e))throw new TypeError("Object already initialized");return t.facade=e,g.call(m,e,t),t},i=function(e){return y.call(m,e)||{}},o=function(e){return v.call(m,e)}}else{var b=f("state");h[b]=!0,r=function(e,t){if(u(e,b))throw new TypeError("Object already initialized");return t.facade=e,c(e,b,t),t},i=function(e){return u(e,b)?e[b]:{}},o=function(e){return u(e,b)}}e.exports={set:r,get:i,has:o,enforce:function(e){return o(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){"use strict";var r=n(118).charAt,i=n(39),o=n(88),a=i.set,s=i.getterFor("String Iterator");o(String,"String",function(e){a(this,{type:"String Iterator",string:String(e),index:0})},function(){var e,t=s(this),n=t.string,i=t.index;return i>=n.length?{value:void 0,done:!0}:(e=r(n,i),t.index+=e.length,{value:e,done:!1})})},function(e,t,n){var r=n(2),i=n(103),o=n(34),a=n(19),s=n(4),l=s("iterator"),c=s("toStringTag"),u=o.values;for(var d in i){var f=r[d],h=f&&f.prototype;if(h){if(h[l]!==u)try{a(h,l,u)}catch(e){h[l]=u}if(h[c]||a(h,c,d),i[d])for(var p in o)if(h[p]!==o[p])try{a(h,p,o[p])}catch(e){h[p]=o[p]}}}},function(e,t,n){var r=n(0),i=n(16),o=n(55);r({target:"Object",stat:!0,forced:n(3)(function(){o(1)})},{keys:function(e){return o(i(e))}})},function(e,t){e.exports=n(102)},function(e,t){e.exports=n(103)},function(e,t,n){var r=n(46);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};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)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){var r=n(3),i=n(31),o="".split;e.exports=r(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==i(e)?o.call(e,""):Object(e)}:Object},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(31);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(8);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")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r,i,o=n(2),a=n(81),s=o.process,l=s&&s.versions,c=l&&l.v8;c?i=(r=c.split("."))[0]<4?1:r[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=r[1]),e.exports=i&&+i},function(e,t){e.exports={}},function(e,t,n){var r,i=n(9),o=n(145),a=n(85),s=n(53),l=n(110),c=n(79),u=n(66)("IE_PROTO"),d=function(){},f=function(e){return"<script>"+e+"<\/script>"},h=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;h=r?function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t}(r):((t=c("iframe")).style.display="none",l.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F);for(var n=a.length;n--;)delete h.prototype[a[n]];return h()};s[u]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(d.prototype=i(e),n=new d,d.prototype=null,n[u]=e):n=h(),void 0===t?n:o(n,t)}},function(e,t,n){var r=n(108),i=n(85);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){var r=n(14).f,i=n(15),o=n(4)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t,n){var r=n(4),i=n(54),o=n(14),a=r("unscopables"),s=Array.prototype;null==s[a]&&o.f(s,a,{configurable:!0,value:i(null)}),e.exports=function(e){s[a][e]=!0}},function(e,t){e.exports={}},function(e,t,n){"use strict";var r=n(50),i=n(14),o=n(51);e.exports=function(e,t,n){var a=r(t);a in e?i.f(e,a,o(0,n)):e[a]=n}},function(e,t,n){var r=n(3),i=n(4),o=n(52),a=i("species");e.exports=function(e){return o>=51||!r(function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo})}},function(e,t,n){"use strict";var r=n(0),i=n(67),o=n(48),a=n(13),s=n(16),l=n(76),c=n(59),u=n(60)("splice"),d=Math.max,f=Math.min;r({target:"Array",proto:!0,forced:!u},{splice:function(e,t){var n,r,u,h,p,m,y=s(this),v=a(y.length),g=i(e,v),b=arguments.length;if(0===b?n=r=0:1===b?(n=0,r=v-g):(n=b-2,r=f(d(o(t),0),v-g)),v+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(u=l(y,r),h=0;h<r;h++)(p=g+h)in y&&c(u,h,y[p]);if(u.length=r,n<r){for(h=g;h<v-r;h++)m=h+n,(p=h+r)in y?y[m]=y[p]:delete y[m];for(h=v;h>v-r+n;h--)delete y[h-1]}else if(n>r)for(h=v-r;h>g;h--)m=h+n-1,(p=h+r-1)in y?y[m]=y[p]:delete y[m];for(h=0;h<n;h++)y[h+g]=arguments[h+2];return y.length=v-r+n,u}})},function(e,t,n){"use strict";var r=n(0),i=n(72);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},function(e,t,n){var r=n(32),i=n(77);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.13.0",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},function(e,t,n){var r=n(3),i=/#|\.prototype\./,o=function(e,t){var n=s[a(e)];return n==c||n!=l&&("function"==typeof t?r(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=o.data={},l=o.NATIVE="N",c=o.POLYFILL="P";e.exports=o},function(e,t,n){var r=n(63),i=n(64),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},function(e,t,n){var r=n(48),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},function(e,t,n){var r=n(108),i=n(85).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},function(e,t,n){"use strict";var r=n(0),i=n(11),o=n(2),a=n(15),s=n(8),l=n(14).f,c=n(111),u=o.Symbol;if(i&&"function"==typeof u&&(!("description"in u.prototype)||void 0!==u().description)){var d={},f=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof f?new u(e):void 0===e?u():u(e);return""===e&&(d[t]=!0),t};c(f,u);var h=f.prototype=u.prototype;h.constructor=f;var p=h.toString,m="Symbol(test)"==String(u("test")),y=/^Symbol\((.*)\)[^)]+$/;l(h,"description",{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=p.call(e);if(a(d,e))return"";var n=m?t.slice(7,-1):t.replace(y,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:f})}},function(e,t,n){n(114)("iterator")},function(e,t,n){"use strict";var r,i,o=n(120),a=n(121),s=n(63),l=RegExp.prototype.exec,c=s("native-string-replace",String.prototype.replace),u=l,d=(r=/a/,i=/b*/g,l.call(r,"a"),l.call(i,"a"),0!==r.lastIndex||0!==i.lastIndex),f=a.UNSUPPORTED_Y||a.BROKEN_CARET,h=void 0!==/()??/.exec("")[1];(d||h||f)&&(u=function(e){var t,n,r,i,a=this,s=f&&a.sticky,u=o.call(a),p=a.source,m=0,y=e;return s&&(-1===(u=u.replace("y","")).indexOf("g")&&(u+="g"),y=String(e).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==e[a.lastIndex-1])&&(p="(?: "+p+")",y=" "+y,m++),n=new RegExp("^(?:"+p+")",u)),h&&(n=new RegExp("^"+p+"$(?!\\s)",u)),d&&(t=a.lastIndex),r=l.call(s?n:a,y),s?r?(r.input=r.input.slice(m),r[0]=r[0].slice(m),r.index=a.lastIndex,a.lastIndex+=r[0].length):a.lastIndex=0:d&&r&&(a.lastIndex=a.global?r.index+r[0].length:t),h&&r&&r.length>1&&c.call(r[0],n,function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)}),r}),e.exports=u},function(e,t,n){"use strict";var r=n(0),i=n(159).left,o=n(82),a=n(52),s=n(74);r({target:"Array",proto:!0,forced:!o("reduce")||!s&&a>79&&a<83},{reduce:function(e){return i(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(31),i=n(2);e.exports="process"==r(i.process)},function(e,t){e.exports=n(104)},function(e,t,n){var r=n(8),i=n(49),o=n(4)("species");e.exports=function(e,t){var n;return i(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!i(n.prototype)?r(n)&&null===(n=n[o])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},function(e,t,n){var r=n(2),i=n(78),o=r["__core-js_shared__"]||i("__core-js_shared__",{});e.exports=o},function(e,t,n){var r=n(2),i=n(19);e.exports=function(e,t){try{i(r,e,t)}catch(n){r[e]=t}return t}},function(e,t,n){var r=n(2),i=n(8),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},function(e,t,n){var r=n(52),i=n(3);e.exports=!!Object.getOwnPropertySymbols&&!i(function(){return!String(Symbol())||!Symbol.sham&&r&&r<41})},function(e,t,n){var r=n(38);e.exports=r("navigator","userAgent")||""},function(e,t,n){"use strict";var r=n(3);e.exports=function(e,t){var n=[][e];return!!n&&r(function(){n.call(null,t||function(){throw 1},1)})}},function(e,t,n){var r=n(77),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource},function(e,t,n){var r=n(9),i=n(144);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,o){return r(n),i(o),t?e.call(n,o):n.__proto__=o,n}}():void 0)},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r={};r[n(4)("toStringTag")]="z",e.exports="[object z]"===String(r)},function(e,t,n){"use strict";var r=n(0),i=n(150),o=n(117),a=n(84),s=n(56),l=n(19),c=n(20),u=n(4),d=n(32),f=n(58),h=n(116),p=h.IteratorPrototype,m=h.BUGGY_SAFARI_ITERATORS,y=u("iterator"),v=function(){return this};e.exports=function(e,t,n,u,h,g,b){i(n,t,u);var _,k,w,x=function(e){if(e===h&&j)return j;if(!m&&e in A)return A[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},C=t+" Iterator",S=!1,A=e.prototype,O=A[y]||A["@@iterator"]||h&&A[h],j=!m&&O||x(h),T="Array"==t&&A.entries||O;if(T&&(_=o(T.call(new e)),p!==Object.prototype&&_.next&&(d||o(_)===p||(a?a(_,p):"function"!=typeof _[y]&&l(_,y,v)),s(_,C,!0,!0),d&&(f[C]=v))),"values"==h&&O&&"values"!==O.name&&(S=!0,j=function(){return O.call(this)}),d&&!b||A[y]===j||l(A,y,j),f[t]=j,h)if(k={values:x("values"),keys:g?j:x("keys"),entries:x("entries")},b)for(w in k)(m||S||!(w in A))&&c(A,w,k[w]);else r({target:t,proto:!0,forced:m||S},k);return k}},function(e,t,n){var r=n(119);e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},function(e,t,n){var r=n(4)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},function(e,t,n){var r=n(0),i=n(3),o=n(18),a=n(22).f,s=n(11),l=i(function(){a(1)});r({target:"Object",stat:!0,forced:!s||l,sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(o(e),t)}})},function(e,t,n){var r=n(0),i=n(11),o=n(112),a=n(18),s=n(22),l=n(59);r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(e){for(var t,n,r=a(e),i=s.f,c=o(r),u={},d=0;c.length>d;)void 0!==(n=i(r,t=c[d++]))&&l(u,t,n);return u}})},function(e,t,n){"use strict";var r=n(94),i=n(9),o=n(13),a=n(48),s=n(17),l=n(95),c=n(153),u=n(96),d=Math.max,f=Math.min;r("replace",2,function(e,t,n,r){var h=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,p=r.REPLACE_KEEPS_$0,m=h?"$":"$0";return[function(n,r){var i=s(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,i,r):t.call(String(i),n,r)},function(e,r){if(!h&&p||"string"==typeof r&&-1===r.indexOf(m)){var s=n(t,e,this,r);if(s.done)return s.value}var y=i(e),v=String(this),g="function"==typeof r;g||(r=String(r));var b=y.global;if(b){var _=y.unicode;y.lastIndex=0}for(var k=[];;){var w=u(y,v);if(null===w)break;if(k.push(w),!b)break;""===String(w[0])&&(y.lastIndex=l(v,o(y.lastIndex),_))}for(var x,C="",S=0,A=0;A<k.length;A++){w=k[A];for(var O=String(w[0]),j=d(f(a(w.index),v.length),0),T=[],E=1;E<w.length;E++)T.push(void 0===(x=w[E])?x:String(x));var D=w.groups;if(g){var I=[O].concat(T,j,v);void 0!==D&&I.push(D);var R=String(r.apply(void 0,I))}else R=c(O,v,j,T,D,r);j>=S&&(C+=v.slice(S,j)+R,S=j+O.length)}return C+v.slice(S)}]})},function(e,t,n){"use strict";n(62);var r=n(20),i=n(72),o=n(3),a=n(4),s=n(19),l=a("species"),c=RegExp.prototype,u=!o(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}),d="$0"==="a".replace(/./,"$0"),f=a("replace"),h=!!/./[f]&&""===/./[f]("a","$0"),p=!o(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,f){var m=a(e),y=!o(function(){var t={};return t[m]=function(){return 7},7!=""[e](t)}),v=y&&!o(function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[l]=function(){return n},n.flags="",n[m]=/./[m]),n.exec=function(){return t=!0,null},n[m](""),!t});if(!y||!v||"replace"===e&&(!u||!d||h)||"split"===e&&!p){var g=/./[m],b=n(m,""[e],function(e,t,n,r,o){var a=t.exec;return a===i||a===c.exec?y&&!o?{done:!0,value:g.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}},{REPLACE_KEEPS_$0:d,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:h}),_=b[0],k=b[1];r(String.prototype,e,_),r(c,m,2==t?function(e,t){return k.call(e,this,t)}:function(e){return k.call(e,this)})}f&&s(c[m],"sham",!0)}},function(e,t,n){"use strict";var r=n(118).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},function(e,t,n){var r=n(31),i=n(72);e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var o=n.call(e,t);if("object"!=typeof o)throw TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},function(e,t,n){"use strict";var r=n(94),i=n(119),o=n(9),a=n(17),s=n(122),l=n(95),c=n(13),u=n(96),d=n(72),f=n(121).UNSUPPORTED_Y,h=[].push,p=Math.min;r("split",2,function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=String(a(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!i(e))return t.call(r,e,o);for(var s,l,c,u=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,m=new RegExp(e.source,f+"g");(s=d.call(m,r))&&!((l=m.lastIndex)>p&&(u.push(r.slice(p,s.index)),s.length>1&&s.index<r.length&&h.apply(u,s.slice(1)),c=s[0].length,p=l,u.length>=o));)m.lastIndex===s.index&&m.lastIndex++;return p===r.length?!c&&m.test("")||u.push(""):u.push(r.slice(p)),u.length>o?u.slice(0,o):u}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var i=a(this),o=null==t?void 0:t[e];return void 0!==o?o.call(t,i,n):r.call(String(i),t,n)},function(e,i){var a=n(r,e,this,i,r!==t);if(a.done)return a.value;var d=o(e),h=String(this),m=s(d,RegExp),y=d.unicode,v=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(f?"g":"y"),g=new m(f?"^(?:"+d.source+")":d,v),b=void 0===i?4294967295:i>>>0;if(0===b)return[];if(0===h.length)return null===u(g,h)?[h]:[];for(var _=0,k=0,w=[];k<h.length;){g.lastIndex=f?0:k;var x,C=u(g,f?h.slice(k):h);if(null===C||(x=p(c(g.lastIndex+(f?k:0)),h.length))===_)k=l(h,k,y);else{if(w.push(h.slice(_,k)),w.length===b)return w;for(var S=1;S<=C.length-1;S++)if(w.push(C[S]),w.length===b)return w;k=_=x}}return w.push(h.slice(_)),w}]},f)},function(e,t,n){"use strict";var r=n(0),i=n(47),o=n(18),a=n(82),s=[].join,l=i!=Object,c=a("join",",");r({target:"Array",proto:!0,forced:l||!c},{join:function(e){return s.call(o(this),void 0===e?",":e)}})},function(e,t,n){var r=n(4)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[r]=function(){return this},Array.from(a,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},e(o)}catch(e){}return n}},function(e,t,n){var r=n(9),i=n(126),o=n(13),a=n(45),s=n(127),l=n(125),c=function(e,t){this.stopped=e,this.result=t};e.exports=function(e,t,n){var u,d,f,h,p,m,y,v=n&&n.that,g=!(!n||!n.AS_ENTRIES),b=!(!n||!n.IS_ITERATOR),_=!(!n||!n.INTERRUPTED),k=a(t,v,1+g+_),w=function(e){return u&&l(u),new c(!0,e)},x=function(e){return g?(r(e),_?k(e[0],e[1],w):k(e[0],e[1])):_?k(e,w):k(e)};if(b)u=e;else{if("function"!=typeof(d=s(e)))throw TypeError("Target is not iterable");if(i(d)){for(f=0,h=o(e.length);h>f;f++)if((p=x(e[f]))&&p instanceof c)return p;return new c(!1)}u=d.call(e)}for(m=u.next;!(y=m.call(u)).done;){try{p=x(y.value)}catch(e){throw l(u),e}if("object"==typeof p&&p&&p instanceof c)return p}return new c(!1)}},function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t,n){var r=n(11),i=n(3),o=n(79);e.exports=!r&&!i(function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(2);e.exports=r},function(e,t,n){var r=n(80);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,n){var r=n(8),i=n(84);e.exports=function(e,t,n){var o,a;return i&&"function"==typeof(o=t.constructor)&&o!==n&&r(a=o.prototype)&&a!==n.prototype&&i(e,a),e}},function(e,t,n){var r=n(15),i=n(18),o=n(109).indexOf,a=n(53);e.exports=function(e,t){var n,s=i(e),l=0,c=[];for(n in s)!r(a,n)&&r(s,n)&&c.push(n);for(;t.length>l;)r(s,n=t[l++])&&(~o(c,n)||c.push(n));return c}},function(e,t,n){var r=n(18),i=n(13),o=n(67),a=function(e){return function(t,n,a){var s,l=r(t),c=i(l.length),u=o(a,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t,n){var r=n(38);e.exports=r("document","documentElement")},function(e,t,n){var r=n(15),i=n(112),o=n(22),a=n(14);e.exports=function(e,t){for(var n=i(t),s=a.f,l=o.f,c=0;c<n.length;c++){var u=n[c];r(e,u)||s(e,u,l(t,u))}}},function(e,t,n){var r=n(38),i=n(68),o=n(86),a=n(9);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),n=o.f;return n?t.concat(n(e)):t}},function(e,t,n){var r=n(4);t.f=r},function(e,t,n){var r=n(105),i=n(15),o=n(113),a=n(14).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||a(t,e,{value:o.f(e)})}},function(e,t,n){var r=n(87),i=n(31),o=n(4)("toStringTag"),a="Arguments"==i(function(){return arguments}());e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:a?i(t):"Object"==(r=i(t))&&"function"==typeof t.callee?"Arguments":r}},function(e,t,n){"use strict";var r,i,o,a=n(3),s=n(117),l=n(19),c=n(15),u=n(4),d=n(32),f=u("iterator"),h=!1;[].keys&&("next"in(o=[].keys())?(i=s(s(o)))!==Object.prototype&&(r=i):h=!0);var p=null==r||a(function(){var e={};return r[f].call(e)!==e});p&&(r={}),d&&!p||c(r,f)||l(r,f,function(){return this}),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:h}},function(e,t,n){var r=n(15),i=n(16),o=n(66),a=n(151),s=o("IE_PROTO"),l=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=i(e),r(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?l:null}},function(e,t,n){var r=n(48),i=n(17),o=function(e){return function(t,n){var o,a,s=String(i(t)),l=r(n),c=s.length;return l<0||l>=c?e?"":void 0:(o=s.charCodeAt(l))<55296||o>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):o:e?s.slice(l,l+2):a-56320+(o-55296<<10)+65536}};e.exports={codeAt:o(!1),charAt:o(!0)}},function(e,t,n){var r=n(8),i=n(31),o=n(4)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},function(e,t,n){"use strict";var r=n(9);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){"use strict";var r=n(3);function i(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=r(function(){var e=i("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),t.BROKEN_CARET=r(function(){var e=i("^r","gy");return e.lastIndex=2,null!=e.exec("str")})},function(e,t,n){var r=n(9),i=n(46),o=n(4)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[o])?t:i(n)}},function(e,t,n){var r=n(0),i=n(156).values;r({target:"Object",stat:!0},{values:function(e){return i(e)}})},function(e,t,n){var r=n(0),i=n(160);r({target:"Array",stat:!0,forced:!n(99)(function(e){Array.from(e)})},{from:i})},function(e,t,n){var r=n(9);e.exports=function(e){var t=e.return;if(void 0!==t)return r(t.call(e)).value}},function(e,t,n){var r=n(4),i=n(58),o=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},function(e,t,n){var r=n(115),i=n(58),o=n(4)("iterator");e.exports=function(e){if(null!=e)return e[o]||e["@@iterator"]||i[r(e)]}},function(e,t,n){"use strict";var r=n(0),i=n(2),o=n(65),a=n(20),s=n(129),l=n(100),c=n(101),u=n(8),d=n(3),f=n(99),h=n(56),p=n(107);e.exports=function(e,t,n){var m=-1!==e.indexOf("Map"),y=-1!==e.indexOf("Weak"),v=m?"set":"add",g=i[e],b=g&&g.prototype,_=g,k={},w=function(e){var t=b[e];a(b,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(y&&!u(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return y&&!u(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(y&&!u(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(o(e,"function"!=typeof g||!(y||b.forEach&&!d(function(){(new g).entries().next()}))))_=n.getConstructor(t,e,m,v),s.REQUIRED=!0;else if(o(e,!0)){var x=new _,C=x[v](y?{}:-0,1)!=x,S=d(function(){x.has(1)}),A=f(function(e){new g(e)}),O=!y&&d(function(){for(var e=new g,t=5;t--;)e[v](t,t);return!e.has(-0)});A||((_=t(function(t,n){c(t,_,e);var r=p(new g,t,_);return null!=n&&l(n,r[v],{that:r,AS_ENTRIES:m}),r})).prototype=b,b.constructor=_),(S||O)&&(w("delete"),w("has"),m&&w("get")),(O||C)&&w(v),y&&b.clear&&delete b.clear}return k[e]=_,r({global:!0,forced:_!=g},k),h(_,e),y||n.setStrong(_,e,m),_}},function(e,t,n){var r=n(53),i=n(8),o=n(15),a=n(14).f,s=n(64),l=n(163),c=s("meta"),u=0,d=Object.isExtensible||function(){return!0},f=function(e){a(e,c,{value:{objectID:"O"+ ++u,weakData:{}}})},h=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,c)){if(!d(e))return"F";if(!t)return"E";f(e)}return e[c].objectID},getWeakData:function(e,t){if(!o(e,c)){if(!d(e))return!0;if(!t)return!1;f(e)}return e[c].weakData},onFreeze:function(e){return l&&h.REQUIRED&&d(e)&&!o(e,c)&&f(e),e}};r[c]=!0},function(e,t,n){"use strict";var r=n(14).f,i=n(54),o=n(131),a=n(45),s=n(101),l=n(100),c=n(88),u=n(132),d=n(11),f=n(129).fastKey,h=n(39),p=h.set,m=h.getterFor;e.exports={getConstructor:function(e,t,n,c){var u=e(function(e,r){s(e,u,t),p(e,{type:t,index:i(null),first:void 0,last:void 0,size:0}),d||(e.size=0),null!=r&&l(r,e[c],{that:e,AS_ENTRIES:n})}),h=m(t),y=function(e,t,n){var r,i,o=h(e),a=v(e,t);return a?a.value=n:(o.last=a={index:i=f(t,!0),key:t,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=a),r&&(r.next=a),d?o.size++:e.size++,"F"!==i&&(o.index[i]=a)),e},v=function(e,t){var n,r=h(e),i=f(t);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==t)return n};return o(u.prototype,{clear:function(){for(var e=h(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,d?e.size=0:this.size=0},delete:function(e){var t=h(this),n=v(this,e);if(n){var r=n.next,i=n.previous;delete t.index[n.index],n.removed=!0,i&&(i.next=r),r&&(r.previous=i),t.first==n&&(t.first=r),t.last==n&&(t.last=i),d?t.size--:this.size--}return!!n},forEach:function(e){for(var t,n=h(this),r=a(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!v(this,e)}}),o(u.prototype,n?{get:function(e){var t=v(this,e);return t&&t.value},set:function(e,t){return y(this,0===e?0:e,t)}}:{add:function(e){return y(this,e=0===e?0:e,e)}}),d&&r(u.prototype,"size",{get:function(){return h(this).size}}),u},setStrong:function(e,t,n){var r=t+" Iterator",i=m(t),o=m(r);c(e,t,function(e,t){p(this,{type:r,target:e,state:i(e),kind:t,last:void 0})},function(){for(var e=o(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})},n?"entries":"values",!n,!0),u(t)}}},function(e,t,n){var r=n(20);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},function(e,t,n){"use strict";var r=n(38),i=n(14),o=n(4),a=n(11),s=o("species");e.exports=function(e){var t=r(e),n=i.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,n){var r,i,o,a=n(2),s=n(3),l=n(45),c=n(110),u=n(79),d=n(134),f=n(74),h=a.location,p=a.setImmediate,m=a.clearImmediate,y=a.process,v=a.MessageChannel,g=a.Dispatch,b=0,_={},k=function(e){if(_.hasOwnProperty(e)){var t=_[e];delete _[e],t()}},w=function(e){return function(){k(e)}},x=function(e){k(e.data)},C=function(e){a.postMessage(e+"",h.protocol+"//"+h.host)};p&&m||(p=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return _[++b]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},r(b),b},m=function(e){delete _[e]},f?r=function(e){y.nextTick(w(e))}:g&&g.now?r=function(e){g.now(w(e))}:v&&!d?(o=(i=new v).port2,i.port1.onmessage=x,r=l(o.postMessage,o,1)):a.addEventListener&&"function"==typeof postMessage&&!a.importScripts&&h&&"file:"!==h.protocol&&!s(C)?(r=C,a.addEventListener("message",x,!1)):r="onreadystatechange"in u("script")?function(e){c.appendChild(u("script")).onreadystatechange=function(){c.removeChild(this),k(e)}}:function(e){setTimeout(w(e),0)}),e.exports={set:p,clear:m}},function(e,t,n){var r=n(81);e.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(r)},function(e,t,n){"use strict";var r=n(46);e.exports.f=function(e){return new function(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r}),this.resolve=r(t),this.reject=r(n)}(e)}},function(e,t){e.exports=n(37)},function(e,t){e.exports=n(101)},function(e,t){e.exports=n(227)},function(e,t,n){"use strict";(function(e){var n=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}()}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i=void 0!==e&&e.Math===Math?e:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),o="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)},a=["top","right","bottom","left","width","height","size","weight"],s="undefined"!=typeof MutationObserver,l=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,i=0;function a(){n&&(n=!1,e()),r&&l()}function s(){o(a)}function l(){var e=Date.now();if(n){if(e-i<2)return;r=!0}else n=!0,r=!1,setTimeout(s,t);i=e}return l}(this.refresh.bind(this),20)}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(){this.updateObservers_()&&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(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),s?(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(){r&&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;a.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),c=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},u=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||i},d=y(0,0,0,0);function f(e){return parseFloat(e)||0}function h(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(t,n){return t+f(e["border-"+n+"-width"])},0)}var p="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof u(e).SVGGraphicsElement}:function(e){return e instanceof u(e).SVGElement&&"function"==typeof e.getBBox};function m(e){return r?p(e)?function(e){var t=e.getBBox();return y(0,0,t.width,t.height)}(e):function(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return d;var r=u(e).getComputedStyle(e),i=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],o=e["padding-"+i];t[i]=f(o)}return t}(r),o=i.left+i.right,a=i.top+i.bottom,s=f(r.width),l=f(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==t&&(s-=h(r,"left","right")+o),Math.round(l+a)!==n&&(l-=h(r,"top","bottom")+a)),!function(e){return e===u(e).document.documentElement}(e)){var c=Math.round(s+o)-t,p=Math.round(l+a)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(p)&&(l-=p)}return y(i.left,i.top,s,l)}(e):d}function y(e,t,n,r){return{x:e,y:t,width:n,height:r}}var v=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=y(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=m(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}(),g=function(){function e(e,t,r){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}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 u(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new v(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 u(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 function(e,t){var n,r,i,o,a,s,l,u=(r=(n=t).x,i=n.y,o=n.width,a=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(s.prototype),c(l,{x:r,y:i,width:o,height:a,top:i,right:r+o,bottom:a+i,left:r}),l);c(this,{target:e,contentRect:u})}(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}(),b="undefined"!=typeof WeakMap?new WeakMap:new n,_=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=l.getInstance(),r=new g(t,n,this);b.set(this,r)};["observe","unobserve","disconnect"].forEach(function(e){_.prototype[e]=function(){var t;return(t=b.get(this))[e].apply(t,arguments)}});var k=void 0!==i.ResizeObserver?i.ResizeObserver:_;t.a=k}).call(this,n(102))},function(e,t){e.exports=n(228)},function(e,t,n){e.exports=n(178)},function(e,t,n){"use strict";var r=n(37).forEach,i=n(82)("forEach");e.exports=i?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},function(e,t,n){var r=n(2),i=n(83),o=r.WeakMap;e.exports="function"==typeof o&&/native code/.test(i(o))},function(e,t,n){var r=n(8);e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t,n){var r=n(11),i=n(14),o=n(9),a=n(55);e.exports=r?Object.defineProperties:function(e,t){o(e);for(var n,r=a(t),s=r.length,l=0;s>l;)i.f(e,n=r[l++],t[n]);return e}},function(e,t,n){var r=n(17),i="["+n(147)+"]",o=RegExp("^"+i+i+"*"),a=RegExp(i+i+"*$"),s=function(e){return function(t){var n=String(r(t));return 1&e&&(n=n.replace(o,"")),2&e&&(n=n.replace(a,"")),n}};e.exports={start:s(1),end:s(2),trim:s(3)}},function(e,t){e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},function(e,t,n){var r=n(18),i=n(68).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?function(e){try{return i(e)}catch(e){return a.slice()}}(e):i(r(e))}},function(e,t,n){"use strict";var r=n(87),i=n(115);e.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},function(e,t,n){"use strict";var r=n(116).IteratorPrototype,i=n(54),o=n(51),a=n(56),s=n(58),l=function(){return this};e.exports=function(e,t,n){var c=t+" Iterator";return e.prototype=i(r,{next:o(1,n)}),a(e,c,!1,!0),s[c]=l,e}},function(e,t,n){var r=n(3);e.exports=!r(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},function(e,t,n){"use strict";var r=n(0),i=n(49),o=[].reverse,a=[1,2];r({target:"Array",proto:!0,forced:String(a)===String(a.reverse())},{reverse:function(){return i(this)&&(this.length=this.length),o.call(this)}})},function(e,t,n){var r=n(16),i=Math.floor,o="".replace,a=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,l,c,u){var d=n+e.length,f=l.length,h=s;return void 0!==c&&(c=r(c),h=a),o.call(u,h,function(r,o){var a;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(d);case"<":a=c[o.slice(1,-1)];break;default:var s=+o;if(0===s)return r;if(s>f){var u=i(s/10);return 0===u?r:u<=f?void 0===l[u-1]?o.charAt(1):l[u-1]+o.charAt(1):r}a=l[s-1]}return void 0===a?"":a})}},function(e,t,n){"use strict";var r=n(20),i=n(9),o=n(3),a=n(120),s=RegExp.prototype,l=s.toString,c=o(function(){return"/a/b"!=l.call({source:"a",flags:"b"})}),u="toString"!=l.name;(c||u)&&r(RegExp.prototype,"toString",function(){var e=i(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in s)?a.call(e):n)},{unsafe:!0})},function(e,t,n){"use strict";var r=n(11),i=n(3),o=n(55),a=n(86),s=n(69),l=n(16),c=n(47),u=Object.assign,d=Object.defineProperty;e.exports=!u||i(function(){if(r&&1!==u({b:1},u(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach(function(e){t[e]=e}),7!=u({},e)[n]||"abcdefghijklmnopqrst"!=o(u({},t)).join("")})?function(e,t){for(var n=l(e),i=arguments.length,u=1,d=a.f,f=s.f;i>u;)for(var h,p=c(arguments[u++]),m=d?o(p).concat(d(p)):o(p),y=m.length,v=0;y>v;)h=m[v++],r&&!f.call(p,h)||(n[h]=p[h]);return n}:u},function(e,t,n){var r=n(11),i=n(55),o=n(18),a=n(69).f,s=function(e){return function(t){for(var n,s=o(t),l=i(s),c=l.length,u=0,d=[];c>u;)n=l[u++],r&&!a.call(s,n)||d.push(e?[n,s[n]]:s[n]);return d}};e.exports={entries:s(!0),values:s(!1)}},function(e,t,n){var r=n(17),i=/"/g;e.exports=function(e,t,n,o){var a=String(r(e)),s="<"+t;return""!==n&&(s+=" "+n+'="'+String(o).replace(i,"&quot;")+'"'),s+">"+a+"</"+t+">"}},function(e,t,n){var r=n(3);e.exports=function(e){return r(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})}},function(e,t,n){var r=n(46),i=n(16),o=n(47),a=n(13),s=function(e){return function(t,n,s,l){r(n);var c=i(t),u=o(c),d=a(c.length),f=e?d-1:0,h=e?-1:1;if(s<2)for(;;){if(f in u){l=u[f],f+=h;break}if(f+=h,e?f<0:d<=f)throw TypeError("Reduce of empty array with no initial value")}for(;e?f>=0:d>f;f+=h)f in u&&(l=n(l,u[f],f,c));return l}};e.exports={left:s(!1),right:s(!0)}},function(e,t,n){"use strict";var r=n(45),i=n(16),o=n(161),a=n(126),s=n(13),l=n(59),c=n(127);e.exports=function(e){var t,n,u,d,f,h,p=i(e),m="function"==typeof this?this:Array,y=arguments.length,v=y>1?arguments[1]:void 0,g=void 0!==v,b=c(p),_=0;if(g&&(v=r(v,y>2?arguments[2]:void 0,2)),null==b||m==Array&&a(b))for(n=new m(t=s(p.length));t>_;_++)h=g?v(p[_],_):p[_],l(n,_,h);else for(f=(d=b.call(p)).next,n=new m;!(u=f.call(d)).done;_++)h=g?o(d,v,[u.value,_],!0):u.value,l(n,_,h);return n.length=_,n}},function(e,t,n){var r=n(9),i=n(125);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){throw i(e),t}}},function(e,t,n){"use strict";var r=n(128),i=n(130);e.exports=r("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},i)},function(e,t,n){var r=n(3);e.exports=!r(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(e,t,n){"use strict";var r,i=n(0),o=n(22).f,a=n(13),s=n(89),l=n(17),c=n(90),u=n(32),d="".endsWith,f=Math.min,h=c("endsWith");i({target:"String",proto:!0,forced:!(!u&&!h&&(r=o(String.prototype,"endsWith"),r&&!r.writable)||h)},{endsWith:function(e){var t=String(l(this));s(e);var n=arguments.length>1?arguments[1]:void 0,r=a(t.length),i=void 0===n?r:f(a(n),r),o=String(e);return d?d.call(t,o,i):t.slice(i-o.length,i)===o}})},function(e,t,n){"use strict";var r=n(94),i=n(9),o=n(13),a=n(17),s=n(95),l=n(96);r("match",1,function(e,t,n){return[function(t){var n=a(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var a=i(e),c=String(this);if(!a.global)return l(a,c);var u=a.unicode;a.lastIndex=0;for(var d,f=[],h=0;null!==(d=l(a,c));){var p=String(d[0]);f[h]=p,""===p&&(a.lastIndex=s(c,o(a.lastIndex),u)),h++}return 0===h?null:f}]})},function(e,t,n){"use strict";var r,i=n(0),o=n(22).f,a=n(13),s=n(89),l=n(17),c=n(90),u=n(32),d="".startsWith,f=Math.min,h=c("startsWith");i({target:"String",proto:!0,forced:!(!u&&!h&&(r=o(String.prototype,"startsWith"),r&&!r.writable)||h)},{startsWith:function(e){var t=String(l(this));s(e);var n=a(f(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return d?d.call(t,r,n):t.slice(n,n+r.length)===r}})},function(e,t,n){var r=n(0),i=n(168),o=n(57);r({target:"Array",proto:!0},{fill:i}),o("fill")},function(e,t,n){"use strict";var r=n(16),i=n(67),o=n(13);e.exports=function(e){for(var t=r(this),n=o(t.length),a=arguments.length,s=i(a>1?arguments[1]:void 0,n),l=a>2?arguments[2]:void 0,c=void 0===l?n:i(l,n);c>s;)t[s++]=e;return t}},function(e,t,n){"use strict";var r,i,o,a,s=n(0),l=n(32),c=n(2),u=n(38),d=n(170),f=n(20),h=n(131),p=n(84),m=n(56),y=n(132),v=n(8),g=n(46),b=n(101),_=n(83),k=n(100),w=n(99),x=n(122),C=n(133).set,S=n(171),A=n(173),O=n(174),j=n(135),T=n(175),E=n(39),D=n(65),I=n(4),R=n(176),M=n(74),P=n(52),L=I("species"),B="Promise",N=E.get,F=E.set,K=E.getterFor(B),V=d&&d.prototype,z=d,U=V,q=c.TypeError,W=c.document,$=c.process,H=j.f,G=H,Z=!!(W&&W.createEvent&&c.dispatchEvent),Y="function"==typeof PromiseRejectionEvent,X=!1,J=D(B,function(){var e=_(z)!==String(z);if(!e&&66===P)return!0;if(l&&!U.finally)return!0;if(P>=51&&/native code/.test(z))return!1;var t=new z(function(e){e(1)}),n=function(e){e(function(){},function(){})};return(t.constructor={})[L]=n,!(X=t.then(function(){})instanceof n)||!e&&R&&!Y}),Q=J||!w(function(e){z.all(e).catch(function(){})}),ee=function(e){var t;return!(!v(e)||"function"!=typeof(t=e.then))&&t},te=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;S(function(){for(var r=e.value,i=1==e.state,o=0;n.length>o;){var a,s,l,c=n[o++],u=i?c.ok:c.fail,d=c.resolve,f=c.reject,h=c.domain;try{u?(i||(2===e.rejection&&oe(e),e.rejection=1),!0===u?a=r:(h&&h.enter(),a=u(r),h&&(h.exit(),l=!0)),a===c.promise?f(q("Promise-chain cycle")):(s=ee(a))?s.call(a,d,f):d(a)):f(r)}catch(e){h&&!l&&h.exit(),f(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&re(e)})}},ne=function(e,t,n){var r,i;Z?((r=W.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),c.dispatchEvent(r)):r={promise:t,reason:n},!Y&&(i=c["on"+e])?i(r):"unhandledrejection"===e&&O("Unhandled promise rejection",n)},re=function(e){C.call(c,function(){var t,n=e.facade,r=e.value;if(ie(e)&&(t=T(function(){M?$.emit("unhandledRejection",r,n):ne("unhandledrejection",n,r)}),e.rejection=M||ie(e)?2:1,t.error))throw t.value})},ie=function(e){return 1!==e.rejection&&!e.parent},oe=function(e){C.call(c,function(){var t=e.facade;M?$.emit("rejectionHandled",t):ne("rejectionhandled",t,e.value)})},ae=function(e,t,n){return function(r){e(t,r,n)}},se=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,te(e,!0))},le=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw q("Promise can't be resolved itself");var r=ee(t);r?S(function(){var n={done:!1};try{r.call(t,ae(le,n,e),ae(se,n,e))}catch(t){se(n,t,e)}}):(e.value=t,e.state=1,te(e,!1))}catch(t){se({done:!1},t,e)}}};if(J&&(U=(z=function(e){b(this,z,B),g(e),r.call(this);var t=N(this);try{e(ae(le,t),ae(se,t))}catch(e){se(t,e)}}).prototype,(r=function(e){F(this,{type:B,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=h(U,{then:function(e,t){var n=K(this),r=H(x(this,z));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=M?$.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&te(n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new r,t=N(e);this.promise=e,this.resolve=ae(le,t),this.reject=ae(se,t)},j.f=H=function(e){return e===z||e===o?new i(e):G(e)},!l&&"function"==typeof d&&V!==Object.prototype)){a=V.then,X||(f(V,"then",function(e,t){var n=this;return new z(function(e,t){a.call(n,e,t)}).then(e,t)},{unsafe:!0}),f(V,"catch",U.catch,{unsafe:!0}));try{delete V.constructor}catch(e){}p&&p(V,U)}s({global:!0,wrap:!0,forced:J},{Promise:z}),m(z,B,!1,!0),y(B),o=u(B),s({target:B,stat:!0,forced:J},{reject:function(e){var t=H(this);return t.reject.call(void 0,e),t.promise}}),s({target:B,stat:!0,forced:l||J},{resolve:function(e){return A(l&&this===o?z:this,e)}}),s({target:B,stat:!0,forced:Q},{all:function(e){var t=this,n=H(t),r=n.resolve,i=n.reject,o=T(function(){var n=g(t.resolve),o=[],a=0,s=1;k(e,function(e){var l=a++,c=!1;o.push(void 0),s++,n.call(t,e).then(function(e){c||(c=!0,o[l]=e,--s||r(o))},i)}),--s||r(o)});return o.error&&i(o.value),n.promise},race:function(e){var t=this,n=H(t),r=n.reject,i=T(function(){var i=g(t.resolve);k(e,function(e){i.call(t,e).then(n.resolve,r)})});return i.error&&r(i.value),n.promise}})},function(e,t,n){var r=n(2);e.exports=r.Promise},function(e,t,n){var r,i,o,a,s,l,c,u,d=n(2),f=n(22).f,h=n(133).set,p=n(134),m=n(172),y=n(74),v=d.MutationObserver||d.WebKitMutationObserver,g=d.document,b=d.process,_=d.Promise,k=f(d,"queueMicrotask"),w=k&&k.value;w||(r=function(){var e,t;for(y&&(e=b.domain)&&e.exit();i;){t=i.fn,i=i.next;try{t()}catch(e){throw i?a():o=void 0,e}}o=void 0,e&&e.enter()},p||y||m||!v||!g?_&&_.resolve?((c=_.resolve(void 0)).constructor=_,u=c.then,a=function(){u.call(c,r)}):a=y?function(){b.nextTick(r)}:function(){h.call(d,r)}:(s=!0,l=g.createTextNode(""),new v(r).observe(l,{characterData:!0}),a=function(){l.data=s=!s})),e.exports=w||function(e){var t={fn:e,next:void 0};o&&(o.next=t),i||(i=t,a()),o=t}},function(e,t,n){var r=n(81);e.exports=/web0s(?!.*chrome)/i.test(r)},function(e,t,n){var r=n(9),i=n(8),o=n(135);e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){var r=n(2);e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},function(e,t){e.exports="object"==typeof window},function(e,t,n){"use strict";var r=n(128),i=n(130);e.exports=r("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},i)},function(e,t,n){"use strict";n.r(t),n.d(t,"install",function(){return Br}),n.d(t,"version",function(){return Pr}),n.d(t,"VeCheckbox",function(){return y}),n.d(t,"VeCheckboxGroup",function(){return b}),n.d(t,"VeContextmenu",function(){return F}),n.d(t,"VeDropdown",function(){return Y}),n.d(t,"VeIcon",function(){return Q}),n.d(t,"VeLoading",function(){return fe}),n.d(t,"VeLocale",function(){return ve}),n.d(t,"VePagination",function(){return Ae}),n.d(t,"VeRadio",function(){return Ee}),n.d(t,"VeSelect",function(){return Le}),n.d(t,"VeTable",function(){return Mr}),n(10),n(7),n(1),n(33),n(70),n(27),n(71),n(34),n(40),n(41),n(35);var r=n(136),i=n.n(r);function o(e){return function(e){return function(t){var n="",r=i.a.getMessage();if(r[e]){for(var o=r[e][t],a=arguments.length,s=new Array(a>1?a-1:0),c=1;c<a;c++)s[c-1]=arguments[c];n=l(o)?o.apply(void 0,s):o}else console.error("can't find ".concat(e," in ").concat(JSON.stringify(r)));return n}}(e)}function a(e){return!(Array.isArray(e)&&e.length>0)}function s(e){return!(""!==e&&null!=e)}function l(e){return"function"==typeof e}function c(e){return"boolean"==typeof e}function u(e){return"number"==typeof e}function d(e){return"number"==typeof e?e+"px":e}function f(e,t){if(l(e.scrollTo))e.scrollTo(t);else{var n=t.top,r=t.left;e.scrollTop=n,e.scrollLeft=r}}function h(e){return"ve-checkbox-"+e}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m={name:"VeCheckbox",props:{value:{type:[String,Number,Boolean],default:null},label:{type:[String],default:null},disabled:Boolean,indeterminate:Boolean,isControlled:{type:Boolean,default:!1},isSelected:{type:Boolean,default:!1}},data:function(){return{model:this.value,checkboxGroup:{}}},computed:{checkboxClass:function(){var e;return[h("content"),(e={},p(e,h("checked"),this.internalIsSelected),p(e,h("disabled"),this.disabled),p(e,h("indeterminate"),this.indeterminate),e)]},checkboxStyle:function(){return{display:this.checkboxGroup&&this.checkboxGroup.isVerticalShow?"block":"inline-block"}},internalIsSelected:function(){return this.isControlled?this.isSelected:this.model}},watch:{value:function(){this.updateModelBySingle()}},methods:{checkboxChange:function(e){if(this.disabled)return!1;var t=e.target.checked;this.isControlled||this.$emit("input",t),this.$emit("on-checked-change",t),this.isCheckBoxGroup()&&this.checkboxGroup.updateModel(this.label,t)},isCheckBoxGroup:function(){return this.checkboxGroup=function(e,t){for(var n=e.$parent;n;){if("VeCheckboxGroup"===n.$options.name)return n;n=n.$parent}return null}(this),!!this.checkboxGroup},getLabelContent:function(){var e=this.label,t=this.$slots;return e||t.default},initModel:function(){if(this.isCheckBoxGroup()){var e=this.checkboxGroup;Array.isArray(e.value)&&e.value.length>0&&e.value.indexOf(this.label)>-1&&(this.model=!0)}else this.model=this.value},updateModelBySingle:function(){this.disabled||(this.model=this.value)},updateModelByGroup:function(e){e.indexOf(this.label)>-1?this.disabled||(this.model=!0):this.disabled||(this.model=!1)}},created:function(){this.initModel()},render:function(){var e=arguments[0],t=this.checkboxStyle,n=this.label,r=this.checkboxClass,i=this.checkboxChange,o=this.getLabelContent;return e("label",{class:"ve-checkbox",style:t},[e("span",{class:r},[e("input",{domProps:{checked:this.internalIsSelected,value:n},class:h("input"),attrs:{type:"checkbox"},on:{change:i}}),e("span",{class:h("inner")})]),e("span",{class:h("label")},[o()])])},install:function(e){e.component(m.name,m)}},y=m,v=(n(61),"on-checked-change"),g={name:"VeCheckboxGroup",props:{value:{type:Array,default:function(){return[]}},isVerticalShow:{type:Boolean,default:!1}},watch:{value:function(e){var t=function(e,t){for(var n=[],r=e.$children;r&&r.length>0;)r.forEach(function(e){r=e.$children?e.$children:null,"VeCheckbox"===e.$options.name&&n.push(e)});return n}(this);t.length>0&&t.forEach(function(t){t.updateModelByGroup(e)})}},methods:{updateModel:function(e,t){var n=this.value.indexOf(e);n>-1?t||this.value.splice(n,1):t&&this.value.push(e),this.$emit("input",this.value),this.$emit(v,this.value)}},render:function(){return(0,arguments[0])("div",{class:"ve-checkbox-group"},[this.$slots.default])},install:function(e){e.component(g.name,g)}},b=g,_=(n(12),n(28),n(152),n(21),n(23),n(24),n(42),n(91),n(92),"on-node-click"),k="SEPARATOR";function w(e){return"ve-contextmenu-"+e}var x=n(5),C=n.n(x),S={FILTER:"filter",DOUBLE_RIGHT_ARROW:"double-right-arrow",DOUBLE_LEFT_ARROW:"double-left-arrow",TOP_ARROW:"top-arrow",RIGHT_ARROW:"right-arrow",BOTTOM_ARROW:"bottom-arrow",LEFT_ARROW:"left-arrow",SORT_TOP_ARROW:"sort-top-arrow",SORT_BOTTOM_ARROW:"sort-bottom-arrow",SEARCH:"search"},A=1,O=2,j=2;function T(e,t){if(e){for(var n=e.className,r=(t||"").split(" "),i=0,o=r.length;i<o;i++){var a=r[i];a&&(e.classList?e.classList.add(a):D(e,a)||(n+=" "+a))}e.classList||(e.className=n)}}function E(e,t){if(e&&t){for(var n=t.split(" "),r=" "+e.className+" ",i=0,o=n.length;i<o;i++){var a=n[i];a&&(e.classList?e.classList.remove(a):D(e,a)&&(r=r.replace(" "+a+" "," ")))}e.classList||(e.className=(r||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,""))}}function D(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 I(e){var t=document.documentElement,n=void 0!==e.getBoundingClientRect?e.getBoundingClientRect():0,r=(window.pageXOffset||t.scrollLeft)-(t.clientLeft||0),i=(window.pageYOffset||t.scrollTop)-(t.clientTop||0),o=n.left+window.pageXOffset,a=n.top+window.pageYOffset,s=o-r,l=a-i;return{offsetTop:a,offsetLeft:o,left:s,top:l,right:window.document.documentElement.clientWidth-n.width-s,bottom:window.document.documentElement.clientHeight-n.height-l,right2:window.document.documentElement.clientWidth-s,bottom2:window.document.documentElement.clientHeight-l}}function R(e){var t=0,n=0,r=document.documentElement,i=document.body;return e||(e=window.event),window.pageYoffset?(t=window.pageXOffset,n=window.pageYOffset):(t=(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),n=(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),{left:t+=e.clientX,top:n+=e.clientY,right:r.clientWidth-e.clientX,bottom:r.clientHeight-e.clientY}}function M(){return Date.now().toString(36)+Math.random().toString(36).substr(2)}n(62),n(93),n(97),n(154);var P=n(6);function L(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 B(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var N={name:"VeContextmenu",directives:{"events-outside":{bind:function(e,t,n){var r=t.value,i=r.events,o=r.callback;if(Array.isArray(i)&&i.length&&"function"==typeof o){var a=function(t){if(e.contains(t.target)||e===t.target)return!1;o(t)};e.__eventsOutside__=a,i.forEach(function(e){document.addEventListener(e,a,!0)})}else{var s=n.context.name;console.error("[events-outside] Please provided 'events' and 'callback' in ".concat(s))}},unbind:function(e,t,n){t.value.events.forEach(function(t){document.removeEventListener(t,e.__eventsOutside__,!0)}),e.__eventsOutside__=null}}},props:{options:{type:Array,required:!0},eventTarget:{type:[String,HTMLElement],required:!0}},data:function(){return{internalOptions:[],panelOptions:[],eventTargetEl:"",rootContextmenuId:"",isChildrenPanelsClicked:!1,isPanelRightDirection:!0,isPanelsEmptyed:!0}},computed:{activeMenuIds:function(){return this.panelOptions.map(function(e){return e.parentId})}},watch:{options:{handler:function(e){Array.isArray(e)&&e.length>0&&(this.removeOrEmptyPanels(!0),this.rootContextmenuId=this.getRandomIdWithPrefix(),this.createInternalOptions(),this.createPanelOptions({options:this.internalOptions}),this.resetContextmenu(),this.addRootContextmenuPanelToBody())},immediate:!0},eventTarget:{handler:function(e){e&&this.registerContextmenuEvent()},immediate:!0}},methods:B({getRandomIdWithPrefix:function(){return w(M())},hasChildren:function(e){return Array.isArray(e.children)&&e.children.length},getPanelOptionByMenuId:function(e,t){for(var n=0;n<e.length;n++){if(e[n].id===t)return e[n].children;if(e[n].children){var r=this.getPanelOptionByMenuId(e[n].children,t);if(r)return r}}},getParentContextmenuPanelEl:function(e){var t,n=this.panelOptions,r=n.findIndex(function(t){return t.parentId===e});if(r>0){var i=n[r-1].parentId;t=document.querySelector("#".concat(i))}return t},createPanelByHover:function(e){var t=this,n=e.event,r=e.menu,i=this.internalOptions,o=this.panelOptions;if(this.isPanelsEmptyed)return!1;if(o.findIndex(function(e){return e.parentId===r.id})>-1)return!1;var a=o.filter(function(e){return e.parentDeep>=r.deep}).map(function(e){return e.parentDeep}).reverse();if(a.length)for(var s=function(e){var n=o.findIndex(function(t){return t.parentDeep===a[e]});n>-1&&t.panelOptions.splice(n,1)},l=a.length-1;l>=0;l--)s(l);var c=this.getPanelOptionByMenuId(i,r.id);c&&(this.createPanelOptions({options:c,currentMenu:r}),this.$nextTick(function(){t.addContextmenuPanelToBody({contextmenuId:r.id}),t.showContextmenuPanel({event:n,contextmenuId:r.id})}))},createPanelOptions:function(e){var t=e.options,n=e.currentMenu,r=this.hasChildren,i=this.rootContextmenuId;if(Array.isArray(t)){var o=t.map(function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?L(Object(n),!0).forEach(function(t){B(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({hasChildren:r(e)},e)});this.panelOptions.push({parentId:n?n.id:i,parentDeep:n?n.deep:-1,menus:o})}},createInternalOptionsRecursion:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e.id=this.getRandomIdWithPrefix(),e.deep=n,n++,Array.isArray(e.children)&&e.children.map(function(e){return t.createInternalOptionsRecursion(e,n)}),e},createInternalOptions:function(){var e=this;this.internalOptions=Object(P.cloneDeep)(this.options).map(function(t){return e.createInternalOptionsRecursion(t)})},showRootContextmenuPanel:function(e){e.preventDefault();var t=this.rootContextmenuId;t&&(this.resetContextmenu(),this.showContextmenuPanel({event:e,contextmenuId:t,isRootContextmenu:!0}),this.isPanelsEmptyed=!1)},showContextmenuPanel:function(e){var t=e.event,n=e.contextmenuId,r=e.isRootContextmenu,i=this.getParentContextmenuPanelEl,o=document.querySelector("#".concat(n));if(o){o.innerHTML="",o.appendChild(this.$refs[n]),o.style.position="absolute",o.classList.add(w("popper"));var a=o.getBoundingClientRect(),s=a.width,l=a.height;if(r){var c,u=R(t),d=u.left,f=u.top,h=u.right,p=u.bottom,m=0;h>=s?(m=d,this.isPanelRightDirection=!0):(m=d-s,this.isPanelRightDirection=!1),c=p>=l?f:f-l,o.style.left=m+"px",o.style.top=c+"px"}else{var y=i(n);if(y){var v,g,b=I(y),_=b.left,k=b.right,x=R(t),C=x.top,S=x.bottom,A=y.getBoundingClientRect().width;v=this.isPanelRightDirection?k>=s?_+A:_-A:_>=s?_-A:_+A,g=S>=l?C:C-l,o.style.left=v+"px",o.style.top=g+"px"}}}},emptyContextmenuPanels:function(){var e=this;setTimeout(function(){e.isChildrenPanelsClicked?e.isChildrenPanelsClicked=!1:(e.removeOrEmptyPanels(),e.isPanelsEmptyed=!0)})},removeOrEmptyPanels:function(e){this.panelOptions.forEach(function(t){var n=document.querySelector("#".concat(t.parentId));n&&(e?n.remove():n.innerHTML="")})},resetContextmenu:function(){this.panelOptions=[],this.createPanelOptions({options:this.internalOptions})},addContextmenuPanelToBody:function(e){var t=e.contextmenuId;if(document.querySelector("#".concat(t)))return!1;var n=document.createElement("div");n.setAttribute("id",t),document.body.appendChild(n)},addRootContextmenuPanelToBody:function(){this.rootContextmenuId&&this.addContextmenuPanelToBody({contextmenuId:this.rootContextmenuId})},registerContextmenuEvent:function(){var e=this.eventTarget;"string"==typeof e&&e.length>0?this.eventTargetEl=document.querySelector(e):this.eventTargetEl=e,this.eventTargetEl&&this.eventTargetEl.addEventListener("contextmenu",this.showRootContextmenuPanel)},removeContextmenuEvent:function(){this.eventTargetEl&&this.eventTargetEl.removeEventListener("contextmenu",this.showRootContextmenuPanel)}},"hideContextmenu",function(){this.emptyContextmenuPanels()}),created:function(){this.debounceCreatePanelByHover=Object(P.debounce)(this.createPanelByHover,300)},mounted:function(){this.addRootContextmenuPanelToBody()},destroyed:function(){this.removeContextmenuEvent(),this.removeOrEmptyPanels(!0)},render:function(){var e=this,t=arguments[0],n=this.panelOptions,r=this.activeMenuIds,i=this.hasChildren,o=this.emptyContextmenuPanels,a=this.debounceCreatePanelByHover;return t("div",{class:["ve-contextmenu"],style:{display:"none"}},[n.map(function(n,s){var l={ref:n.parentId,class:B({},w("panel"),!0),directives:[{name:"events-outside",value:{events:["click"],callback:function(e){0===s&&o()}}}],on:{click:function(){0!==s&&(e.isChildrenPanelsClicked=!0)},contextmenu:function(e){e.preventDefault()}}};return t("div",l,[t("ul",{class:w("list")},[n.menus.map(function(n){var s,l;return s=n.type!==k?{class:(l={},B(l,w("node"),!0),B(l,w("node-active"),r.includes(n.id)),B(l,w("node-disabled"),n.disabled),l),on:{mouseover:function(e){n.disabled||a({event:e,menu:n})},click:function(){n.disabled||i(n)||(e.$emit(_,n.type),setTimeout(function(){o()},50))}}}:{class:B({},w("node-separator"),!0)},n.type!==k?t("li",s,[t("span",{class:w("node-label")},[n.label]),n.hasChildren&&t(C.a,{class:w("node-icon-postfix"),attrs:{name:S.RIGHT_ARROW}})]):t("li",s)})])])})])},install:function(e){e.component(N.name,N)}},F=N,K=(n(25),n(98),{bind:function(e,t,n){if("function"!=typeof t.value){var r="in [clickoutside] directives, provided expression '".concat(t.expression,"' is not a function "),i=n.context.name;i&&(r+="in ".concat(i)),console.error(r)}var o=function(n){if(e.contains(n.target)||e===n.target)return!1;t.value(n)};e.__clickOutSide__=o,document.addEventListener("click",o,!0)},unbind:function(e){document.removeEventListener("click",e.__clickOutSide__,!0),e.__clickOutSide__=null}}),V=n(43),z=n.n(V),U=n(75),q=n.n(U),W="on-dropdown-visible-change",$="on-item-select-change";function H(e){return"ve-dropdown-"+e}function G(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Z={name:"VeDropdown",directives:{"click-outside":K},props:{isSelect:{type:Boolean,default:!1},showOperation:{type:Boolean,default:!1},width:{type:Number,default:90},maxWidth:{type:Number,default:0},maxHeight:{type:Number,default:1e3},isMultiple:{type:Boolean,default:!1},value:{type:[Array],default:null},textAlign:{type:String,default:"left"},isInput:{type:Boolean,default:!1},confirmFilterText:{type:String,default:""},resetFilterText:{type:String,default:""},hideByItemClick:{type:Boolean,default:!1},showRadio:{type:Boolean,default:!1},visible:{type:Boolean,default:!1},isControlled:{type:Boolean,default:!1},isCustomContent:{type:Boolean,default:!1},defaultInstance:{type:Number,default:5},popperAppendTo:{type:[String,HTMLElement],default:function(){return document.body}},beforeVisibleChange:{type:Function,default:null}},data:function(){return{internalVisible:!1,internalOptions:[],inputValue:"",isDropdownShowTriggerClicked:!1,rootId:"",dropdownItemsPanelId:"",popperAppendToEl:null,appendToElTagName:null}},computed:{isDropdownVisible:function(){return this.isControlled?this.visible:this.internalVisible},getMaxWidth:function(){var e=1/0,t=this.maxWidth,n=this.width;return t&&t>0&&t>n&&(e=t),e},selectedLabels:function(){return this.internalOptions.filter(function(e){return e.selected}).map(function(e){if(e.selected)return e.label})},operationFilterClass:function(){return G({},H("filter-disable"),0===this.selectedLabels.length)},dropdownItemsClass:function(){var e;return G(e={},H("dd"),!0),G(e,H("dd-show"),this.isDropdownVisible),e}},watch:{value:function(){this.init()},visible:{handler:function(e){var t=this.isControlled,n=this.showDropDown,r=this.hideDropDown;setTimeout(function(){t&&(e?n():r())})},immediate:!0}},methods:{init:function(){this.internalOptions=Object.assign([],this.value),this.isInput&&this.setInputValue()},confirm:function(){this.$emit("input",this.internalOptions),this.$emit("on-filter-confirm",this.internalOptions),this.hideDropDown()},reset:function(){this.internalOptions.some(function(e){return e.selected})&&(this.internalOptions.map(function(e){return e.selected&&(e.selected=!1),e}),this.$emit("input",this.internalOptions),this.$emit("on-filter-reset",this.internalOptions)),this.hideDropDown()},showDropDown:function(){var e=this.rootId,t=this.dropdownItemsPanelId,n=this.beforeVisibleChangeCallback(!0);if(c(n)&&!n)return!1;var r=document.querySelector("#".concat(e));r&&(r.innerHTML="",r.appendChild(this.$refs[t]),r.style.position="absolute",r.classList.add(H("popper")),this.changDropdownPanelPosition()),this.internalVisible=!0,this.$emit(W,!0)},hideDropDown:function(){var e=this,t=this.beforeVisibleChangeCallback(!1);if(c(t)&&!t)return!1;this.$emit(W,!1),setTimeout(function(){e.internalVisible=!1,e.removeOrEmptyRootPanel()},150)},beforeVisibleChangeCallback:function(e){var t=this.beforeVisibleChange;if(e!==this.isDropdownVisible&&l(t))return t({nextVisible:e})},removeOrEmptyRootPanel:function(){var e=this.rootId,t=document.querySelector("#".concat(e));t&&(t.innerHTML="")},changDropdownPanelPosition:function(){var e=this.defaultInstance,t=this.rootId,n=this.popperAppendToEl,r=this.appendToElTagName,i=document.querySelector("#".concat(t));if(i){var o=i.getBoundingClientRect(),a=o.width,s=o.height,l=this.$el.querySelector(".ve-dropdown-dt"),c=l.getBoundingClientRect().height;if(!n)return!1;var u,d,f="BODY"===r,h=f?I(l):function(e,t){var n=I(e),r=n.offsetTop,i=n.offsetLeft,o=n.left,a=n.top,s=n.right,l=n.bottom,c=n.right2,u=n.bottom2,d=I(t);return{offsetTop:r-d.offsetTop,offsetLeft:i-d.offsetLeft,left:o-d.left,top:a-d.top,right:s-d.right,bottom:l-d.bottom,right2:c-d.right2,bottom2:u-d.bottom2}}(l,n),p=h.offsetLeft,m=h.offsetTop,y=h.right,v=h.bottom,g=0,b=0;f||(g=n.scrollLeft,b=n.scrollTop),u=y>=a?p+g:p-a+g,d=v>=s?m+c+e+b:m-s-e+b,i.style.left=u+"px",i.style.top=d+"px"}},setInputValue:function(){var e,t;t=this.selectedLabels,Array.isArray(t)&&t.length>0&&(e=t.join()),this.inputValue=e},dropdownPanelClick:function(){this.isDropdownShowTriggerClicked=!0,this.dropdownShowToggle()},dropdownShowToggle:function(){this.isDropdownVisible?this.hideDropDown():this.showDropDown()},singleSelectOptionClick:function(e,t){this.internalOptions=this.internalOptions.map(function(e){return t.label===e.label?e.selected=!0:e.selected=!1,e}),this.hideByItemClick&&this.hideDropDown(),this.isInput&&this.setInputValue(),this.$emit("input",this.internalOptions),this.$emit($,this.internalOptions)},getTextAlignClass:function(){return H("items-li-a-".concat(this.textAlign))},dropdownClickOutside:function(){var e=this;setTimeout(function(){e.isDropdownShowTriggerClicked?e.isDropdownShowTriggerClicked=!1:e.hideDropDown()})},checkedChangeControl:function(e,t){this.internalOptions=this.internalOptions.map(function(n){return n.label===e.label&&(n.selected=t),n}),this.$emit($,this.internalOptions)},getRandomIdWithPrefix:function(){return H(M())},addRootElementToElement:function(){var e=this,t=this.popperAppendTo;if(this.rootId=this.getRandomIdWithPrefix(),this.dropdownItemsPanelId=this.getRandomIdWithPrefix(),document.querySelector("#".concat(this.rootId)))return!1;this.$nextTick(function(){var n=document.createElement("div");n.setAttribute("id",e.rootId),"string"==typeof t&&t.length>0?e.popperAppendToEl=document.querySelector(t):e.popperAppendToEl=t,e.appendToElTagName=e.popperAppendToEl.tagName,e.popperAppendToEl.appendChild(n)})}},created:function(){this.init()},mounted:function(){var e=this;this.addRootElementToElement(),this.$nextTick(function(){("BODY"===e.appendToElTagName?document:e.popperAppendToEl).addEventListener("scroll",e.changDropdownPanelPosition)}),window.addEventListener("resize",this.changDropdownPanelPosition)},destroyed:function(){var e=this;this.removeOrEmptyRootPanel(),this.$nextTick(function(){("BODY"===e.appendToElTagName?document:e.popperAppendToEl).removeEventListener("scroll",e.changDropdownPanelPosition)}),window.removeEventListener("resize",this.changDropdownPanelPosition)},render:function(){var e,t=this,n=arguments[0],r=this.isMultiple,i=this.getTextAlignClass,o=this.internalOptions,a=this.isSelect,s=this.width,l=this.maxHeight,c=this.dropdownPanelClick,u=this.getMaxWidth,d=this.reset,f=this.singleSelectOptionClick,h=this.showOperation,p=this.isCustomContent,m=this.dropdownItemsClass,y=this.dropdownItemsPanelId;e=r?o.map(function(e,r){var o={key:e.label,props:{isControlled:!0,label:e.label,showLine:e.showLine,isSelected:e.selected},on:{"on-checked-change":function(n){return t.checkedChangeControl(e,n)}}};return n("li",{key:r,class:[H("items-multiple"),H("items-li"),i()]},[n(z.a,o)])}):o.map(function(e,r){var o={props:{isControlled:!0,isSelected:e.selected},on:{"on-radio-change":function(){}}};return n("li",{key:r,class:[H("items-li"),e.selected?"active":""],on:{click:function(t){return f(t,e)}}},[n("a",{class:[H("items-li-a"),i()],attrs:{href:"javascript:void(0);"}},[t.showRadio?n(q.a,o,[e.label]):e.label])])});var v={ref:y,class:m,directives:[{name:"click-outside",value:this.dropdownClickOutside}]};return n("dl",{class:["ve-dropdown"]},[n("dt",{class:"ve-dropdown-dt",on:{click:c}},[n("a",{class:[a?H("dt-selected"):""],style:{width:s+"px"}},[this.$slots.default])]),n("div",{style:{display:"none"}},[n("dd",v,[n("ul",{class:H("items"),style:{"min-width":s+"px","max-width":u+"px"}},[p&&this.$slots["custom-content"],!p&&n("div",[n("div",{style:{"max-height":l+"px"},class:H("items-warpper")},[e]),h&&n("li",{class:H("operation")},[n("a",{class:[H("operation-item"),this.operationFilterClass],attrs:{href:"javascript:void(0)"},on:{click:d}},[this.resetFilterText]),n("a",{class:H("operation-item"),attrs:{href:"javascript:void(0)"},on:{click:this.confirm}},[this.confirmFilterText])])])])])])])},install:function(e){e.component(Z.name,Z)}},Y=Z,X=(n(123),"VeIcon"),J={name:X,props:{name:{type:String,required:!0},color:{type:String,default:null},size:{type:[Number,String],default:""}},computed:{iconStyle:function(){return{color:this.color,"font-size":d(this.size)}},iconClass:function(){var e=this.name;return Object.values(S).includes(e)||console.error("".concat(e," is not found in ").concat(X,".")),"iconfont-vet icon-vet-".concat(e)}},render:function(){return(0,arguments[0])("i",{style:this.iconStyle,class:["ve-icon",this.iconClass]})},install:function(e){e.component(J.name,J)}},Q=J,ee=n(30),te=n.n(ee),ne="VeLoading",re={PLANE:"plane",GRID:"grid",WAVE:"wave",FLOW:"flow",BOUNCE:"bounce",PULSE:"pulse"};function ie(e){return"ve-loading-"+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}var ae={name:ne,components:{Plane:{name:"VeLoadingPlane",props:{color:{type:String,required:!0},width:{type:[Number,String],required:!0},height:{type:[Number,String],required:!0}},computed:{spinStyle:function(){var e=this.color,t=this.width,n=this.height;return{width:d(t),height:d(n),"background-color":e}}},render:function(){return(0,arguments[0])("div",{style:this.spinStyle,class:ie("plane")})}},Bounce:{name:"VeLoadingBounce",props:{color:{type:String,required:!0},width:{type:[Number,String],required:!0},height:{type:[Number,String],required:!0}},computed:{spinStyle:function(){var e=this.width,t=this.height;return{width:d(e),height:d(t)}},itemStyle:function(){return{"background-color":this.color}}},render:function(){var e=arguments[0],t=this.spinStyle,n=this.itemStyle;return e("div",{style:t,class:ie("bounce")},[e("div",{style:n,class:ie("bounce-dot")}),e("div",{style:n,class:ie("bounce-dot")})])}},Wave:{name:"VeLoadingWave",props:{color:{type:String,required:!0},width:{type:[Number,String],required:!0},height:{type:[Number,String],required:!0}},computed:{spinStyle:function(){var e=this.width,t=this.height;return{width:d(e),height:d(t)}},itemStyle:function(){return{"background-color":this.color}}},render:function(){var e=arguments[0],t=this.spinStyle,n=this.itemStyle;return e("div",{style:t,class:ie("wave")},[e("div",{style:n,class:ie("wave-rect")}),e("div",{style:n,class:ie("wave-rect")}),e("div",{style:n,class:ie("wave-rect")}),e("div",{style:n,class:ie("wave-rect")}),e("div",{style:n,class:ie("wave-rect")})])}},Pulse:{name:"VeLoadingPulse",props:{color:{type:String,required:!0},width:{type:[Number,String],required:!0},height:{type:[Number,String],required:!0}},computed:{spinStyle:function(){var e=this.color,t=this.width,n=this.height;return{width:d(t),height:d(n),"background-color":e}}},render:function(){return(0,arguments[0])("div",{style:this.spinStyle,class:ie("pulse")})}},Flow:{name:"VeLoadingFlow",props:{color:{type:String,required:!0},width:{type:[Number,String],required:!0},height:{type:[Number,String],required:!0}},computed:{spinStyle:function(){var e=this.width,t=this.height;return{width:d(e),height:d(t)}},itemStyle:function(){return{"background-color":this.color}}},render:function(){var e=arguments[0],t=this.spinStyle,n=this.itemStyle;return e("div",{style:t,class:ie("flow")},[e("div",{style:n,class:ie("flow-dot")}),e("div",{style:n,class:ie("flow-dot")}),e("div",{style:n,class:ie("flow-dot")})])}},Grid:{name:"VeLoadingGrid",props:{color:{type:String,required:!0},width:{type:[Number,String],required:!0},height:{type:[Number,String],required:!0}},computed:{spinStyle:function(){var e=this.width,t=this.height;return{width:d(e),height:d(t)}},itemStyle:function(){return{"background-color":this.color}}},render:function(){var e=arguments[0],t=this.spinStyle,n=this.itemStyle;return e("div",{style:t,class:ie("grid")},[e("div",{style:n,class:ie("grid-cube")}),e("div",{style:n,class:ie("grid-cube")}),e("div",{style:n,class:ie("grid-cube")}),e("div",{style:n,class:ie("grid-cube")}),e("div",{style:n,class:ie("grid-cube")}),e("div",{style:n,class:ie("grid-cube")}),e("div",{style:n,class:ie("grid-cube")}),e("div",{style:n,class:ie("grid-cube")}),e("div",{style:n,class:ie("grid-cube")})])}}},computed:{loadingClass:function(){var e,t=this.visible,n=this.fullscreen;return oe(e={},ie("overlay"),!0),oe(e,ie("fixed"),n),oe(e,ie("hide"),!t),e},loadingStyle:function(){return{"background-color":this.overlayBackgroundColor}}},render:function(){var e=arguments[0],t=this.width,n=this.height,r=this.color,i={props:{width:t,height:n,color:r}};return e("div",{style:this.loadingStyle,class:["ve-loading",this.loadingClass]},[e("div",{class:ie("spin-container")},[e("div",{class:ie("spin")},[e(this.name,i)]),e("div",{style:{color:r},class:ie("spin-tip")},[this.tip])])])}},se={name:"plane",visible:!1,color:"#1890ff",overlayBackgroundColor:"rgba(255, 255, 255, 0.5)",width:40,height:40,tip:"",fullscreen:!1,target:"",lock:!1,parent__:null},le=ie("parent-relative"),ce=ie("parent-lock"),ue=te.a.extend(ae);ue.prototype.show=function(){var e=this;te.a.nextTick(function(){e.lock&&T(e.parent__,ce),e.visible=!0})},ue.prototype.close=function(){var e=this;te.a.nextTick(function(){e.lock&&E(e.parent__,ce),e.visible=!1})},ue.prototype.destroy=function(){E(this.parent__,le),E(this.parent__,ce),this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el),this.$destroy(),this.visible=!1};var de=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"string"==typeof(e=Object.assign({},se,e)).target&&e.target.length>0&&(e.target=document.querySelector(e.target)),e.target=e.target||document.body,function(e){Object.values(re).includes(e)||console.error("".concat(e," is not found in ").concat(ne,"."))}(e.name),e.target!==document.body?e.fullscreen=!1:e.fullscreen=!0;var t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new ue({el:document.createElement("div"),data:e})}(e);return e.parent__=e.fullscreen?document.body:e.target,T(e.parent__,le),e.parent__.appendChild(t.$el),t};de.install=function(e){e.prototype.$veLoading=de};var fe=de,he=n(137),pe=n.n(he),me=te.a.util.defineReactive,ye=te.a.prototype;ye.$veTableMessages=ye.$veTableMessages||{},me(ye,"$veTableMessages",Object(P.cloneDeep)({lang:pe.a}));var ve={getMessage:function(){return ye.$veTableMessages.lang},use:function(e){this.update(e)},update:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(P.merge)(ye.$veTableMessages.lang,e)}},ge=(n(29),"on-page-number-change");function be(e){return"ve-pagination-"+e}var _e=o("pagination"),ke={props:{pageCount:{type:Number,required:!0},pageIndex:{type:Number,required:!0},pagingCount:{type:Number,required:!0}},computed:{numOffset:function(){return Math.floor((this.pagingCount+2)/2)-1},showJumpPrev:function(){return this.pageCount>this.pagingCount+2&&this.pageIndex>this.pagingCount},showJumpNext:function(){return this.pageCount>this.pagingCount+2&&this.pageIndex<=this.pageCount-this.pagingCount},pagingCounts:function(){var e=[],t=this.showJumpPrev,n=this.showJumpNext;if(t&&!n)for(var r=this.pageCount-this.pagingCount;r<this.pageCount;r++)e.push(r);else if(!t&&n)for(var i=2;i<this.pagingCount+2;i++)e.push(i);else if(t&&n)for(var o=this.pageIndex-this.numOffset;o<=this.pageIndex+this.numOffset;o++)e.push(o);else for(var a=2;a<this.pageCount;a++)e.push(a);return e}},methods:{jumpPage:function(e){this.$emit("jumpPageHandler",e)}},render:function(){var e=arguments[0],t=this.pageIndex,n=this.jumpPage,r=this.showJumpPrev,i=this.pagingCount,o=this.pagingCounts,a=this.showJumpNext,s=this.pageCount;return e("span",{class:be("pager")},[e("li",{class:[1===t?be("li-active"):"",be("li")],on:{click:function(){return n(1)}}},[e("a",["1"])]),r&&e("li",{class:[1===t?"disabled":"",be("li"),be("jump-prev")],attrs:{title:_e("prev5",i)},on:{click:function(){return n(t-i)}}},[e("a",[e(C.a,{attrs:{name:S.DOUBLE_LEFT_ARROW}})])]),o.map(function(r,i){return e("li",{key:i,class:[r===t?be("li-active"):"",be("li")],on:{click:function(){return n(r)}}},[e("a",[r])])}),a&&e("li",{class:[be("li"),be("jump-next")],attrs:{title:_e("next5",i)},on:{click:function(){return n(t+i)}}},[e("a",[e(C.a,{attrs:{name:S.DOUBLE_RIGHT_ARROW}})])]),s>1&&e("li",{class:[t===s?be("li-active"):"",be("li")],on:{click:function(){return n(s)}}},[e("a",[s])])])}},we=n(138),xe=n.n(we),Ce=o("pagination"),Se={name:"VePagination",components:{Total:{render:function(){return(0,arguments[0])("span",{class:be("total")},[Ce("total",this.$parent.total)])}},Prev:{render:function(){var e=arguments[0];return e("li",{on:{click:this.$parent.prevPage},class:[1===this.$parent.newPageIndex?be("disabled"):"",be("li"),be("prev")]},[e("a",[e(C.a,{attrs:{name:S.LEFT_ARROW}})])])}},Pager:ke,Next:{render:function(){var e=arguments[0];return e("li",{on:{click:this.$parent.nextPage},class:[this.$parent.newPageIndex===this.$parent.pageCount?be("disabled"):"",be("li"),be("next")]},[e("a",[e(C.a,{attrs:{name:S.RIGHT_ARROW}})])])}},Sizer:{render:function(){return(0,arguments[0])(xe.a,{class:be("select"),attrs:{value:this.$parent.newPageSizeOption,popperAppendTo:this.$parent.popperAppendTo},on:{input:this.handleChange}})},methods:{handleChange:function(e){if(Array.isArray(e)&&e.length>0){var t=e.find(function(e){return e.selected});t&&this.$parent.pageSizeChangeHandler(t.value)}}}},Jumper:{methods:{jumperEnter:function(e){if(13===e.keyCode){var t=this.$parent.getValidNum(e.target.value);e.target.value=t,this.$parent.jumpPageHandler(t)}}},render:function(){var e=arguments[0];return e("span",{class:be("goto")},[" ",Ce("goto")," ",e("input",{class:be("goto-input"),domProps:{value:this.$parent.newPageIndex},on:{keyup:this.jumperEnter},attrs:{type:"input"}})," ",Ce("page")," "])}}},props:{layout:{type:Array,default:function(){return["total","prev","pager","next","sizer","jumper"]}},total:{type:Number,required:!0},pageIndex:{type:Number,default:1},pagingCount:{type:Number,default:5},pageSize:{type:Number,default:10},pageSizeOption:{type:Array,default:function(){return[10,20,30]}},popperAppendTo:{type:[String,HTMLElement],default:function(){return document.body}}},data:function(){return{newPageIndex:this.pageIndex&&this.pageIndex>0?parseInt(this.pageIndex):1,newPageSize:this.pageSize}},computed:{pageCount:function(){return Math.ceil(this.total/this.newPageSize)},newPageSizeOption:function(){var e=this;return this.pageSizeOption.map(function(t){var n={};return n.value=t,n.label=t+Ce("itemsPerPage"),e.newPageSize==t&&(n.selected=!0),n})}},watch:{pageIndex:function(e){this.newPageIndex=e},pageSize:function(e){this.newPageSize=e}},methods:{getValidNum:function(e){return e=parseInt(e,10),isNaN(e)||e<1||e<1?1:e>this.pageCount?this.pageCount:e},jumpPageHandler:function(e){this.newPageIndex=e,this.$emit(ge,this.newPageIndex)},prevPage:function(){this.newPageIndex>1&&(this.newPageIndex=this.newPageIndex-1,this.$emit(ge,this.newPageIndex))},nextPage:function(){this.newPageIndex<this.pageCount&&(this.newPageIndex=this.newPageIndex+1,this.$emit(ge,this.newPageIndex))},pageSizeChangeHandler:function(){var e=this.newPageSizeOption.find(function(e){return e.selected});e&&(this.newPageSize=e.value,this.newPageIndex=1,this.$emit("on-page-size-change",this.newPageSize))},goBackPageIndex:function(){this.newPageIndex=this.pageIndex&&this.pageIndex>0?parseInt(this.pageIndex):1},goBackPageSize:function(){this.pageSize>0&&(this.newPageSize=this.pageSize)}},render:function(){var e=arguments[0],t=e("ul",{class:"ve-pagination"}),n={total:e("total"),prev:e("prev"),pager:e("pager",{attrs:{pageCount:this.pageCount,pageIndex:this.newPageIndex,pagingCount:this.pagingCount},on:{jumpPageHandler:this.jumpPageHandler}}),next:e("next"),sizer:e("sizer"),jumper:e("jumper",{on:{jumpPageHandler:this.jumpPageHandler}})};return t.children=t.children||[],this.layout.forEach(function(e){t.children.push(n[e])}),t},install:function(e){e.component(Se.name,Se)}},Ae=Se;function Oe(e){return"ve-radio-"+e}function je(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Te={name:"VeRadio",props:{value:{type:[String,Number,Boolean],default:null},label:{type:String,default:null},disabled:Boolean,isControlled:{type:Boolean,default:!1},isSelected:{type:Boolean,default:!1}},data:function(){return{model:this.value}},computed:{radioClass:function(){var e;return[Oe("container"),(e={},je(e,Oe("checked"),this.internalIsSelected),je(e,Oe("disabled"),this.disabled),e)]},internalIsSelected:function(){return this.isControlled?this.isSelected:this.model}},watch:{value:function(){this.updateModelBySingle()}},methods:{checkedChange:function(e){if(this.disabled)return!1;var t=e.target.checked;this.isControlled||this.$emit("input",t),this.$emit("on-radio-change",t)},getLabelContent:function(){var e=this.label,t=this.$slots;return e||t.default},initModel:function(){this.model=this.value},updateModelBySingle:function(){this.disabled||(this.model=this.value)}},created:function(){this.initModel()},render:function(){var e=arguments[0],t=this.label,n=this.radioClass,r=this.checkedChange,i=this.getLabelContent;return e("label",{class:"ve-radio"},[e("span",{class:n},[e("input",{domProps:{checked:this.internalIsSelected,value:t},class:Oe("input"),attrs:{type:"radio"},on:{change:r}}),e("span",{class:Oe("inner")})]),e("span",{class:Oe("label")},[i()])])},install:function(e){e.component(Te.name,Te)}},Ee=Te,De=n(44),Ie=n.n(De);function Re(e){return"ve-select-"+e}function Me(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Pe={name:"VeSelect",props:{width:{type:Number,default:90},maxWidth:{type:Number,default:0},isMultiple:{type:Boolean,default:!1},value:{type:Array,default:null},placeholder:{type:String,default:"请选择",validator:function(e){return e.length>0}},textAlign:{type:String,default:"left"},isInput:{type:Boolean,default:!1},popperAppendTo:{type:[String,HTMLElement],default:function(){return document.body}}},data:function(){return{visible:!1,internalOptions:[],inputValue:"",dropdownVisible:!1}},computed:{iconClass:function(){var e;return Me(e={},Re("show"),this.dropdownVisible),Me(e,Re("toggle-icon"),!0),e}},watch:{value:function(){this.init()}},methods:{init:function(){this.internalOptions=Object.assign([],this.value)},showSelectInfo:function(){var e;return e=this.selectedLabels(),Array.isArray(e)&&e.length>0?e.join():this.placeholder},selectedLabels:function(){return this.internalOptions.filter(function(e){return e.selected}).map(function(e){if(e.selected)return e.label})},dropdownChange:function(){this.$emit("input",this.internalOptions),this.$emit("on-select-change",this.internalOptions)}},created:function(){this.init()},render:function(){var e,t=this,n=arguments[0],r=this.isInput,i={class:"ve-select",props:{isSelect:!0,width:this.width,maxWidth:this.maxWidth,isMultiple:this.isMultiple,textAlign:this.textAlign,isInput:this.isInput,value:this.internalOptions,hideByItemClick:!0,popperAppendTo:this.popperAppendTo},style:{width:this.width},on:{input:function(e){t.internalOptions=e,t.dropdownChange()},"dropdown-visible-change":function(e){t.dropdownVisible=e}}};return e=r?n("input",{class:Re("input"),attrs:{placeholder:this.placeholder,type:"text"},directives:[{name:"model",value:this.inputValue}]}):n("span",{class:Re("selected-span")},[this.showSelectInfo()]),n(Ie.a,i,[n("span",[e,n(C.a,{attrs:{name:S.BOTTOM_ARROW},class:this.iconClass})])])},install:function(e){e.component(Pe.name,Pe)}},Le=Pe,Be=(n(26),n(73),n(36),n(124),n(162),n(164),"expand"),Ne="checkbox",Fe="left",Ke="right",Ve="right",ze="down",Ue="left",qe="up",We="right",$e="down",He="left",Ge="single",Ze="range",Ye="on-body-cell-width-change",Xe="on-header-row-height-change",Je="on-footer-row-height-change",Qe="on-body-row-height-change",et="on-body-row-click",tt="on-body-cell-click",nt="on-body-cell-mouseover",rt="on-body-cell-mousedown",it="on-body-cell-mousemove",ot="on-body-cell-mouseup",at="on-body-cell-double-click",st="on-body-cell-contextmenu",lt="on-expand-row-change",ct="on-checkbox-selected-row-change",ut="on-checkbox-selected-all-change",dt="on-checkbox-selected-all-info",ft="on-radio-selected-row-change",ht="on-sort-change",pt="on-cell-selection-range-data-change",mt="on-header-cell-click",yt="on-header-cell-contextmenu",vt="on-header-cell-mousedown",gt="on-header-cell-mouseover",bt="on-header-cell-mousemove",_t="on-header-cell-mouseleave",kt="on-highlight-row-change",wt="on-edit-input-click",xt="on-edit-input-value-change",Ct="on-edit-input-copy",St="on-edit-input-paste",At="on-edit-input-cut",Ot="selection-corner-mousedown",jt="selection-corner-mouseup",Tt="autofilling-direction-change",Et="table-container-scroll",Dt="table-size-change",It="table-cell-width-change",Rt="clipboard-cell-value-change",Mt="header-cell-mousemove",Pt="VeTable",Lt="VeTableHeader",Bt="VeTableHeaderCheckboxContent",Nt="VeTableBody",Ft="VeTableBodyTr",Kt="VeTableBodyTd",Vt="row-key",zt="scrollToRowKey",Ut="startEditingCell",qt="stopEditingCell",Wt="setHighlightRow",$t="setCellSelection",Ht="setAllCellSelection",Gt="headerContextmenu",Zt={SEPARATOR:"SEPARATOR",CUT:"CUT",COPY:"COPY",INSERT_ROW_ABOVE:"INSERT_ROW_ABOVE",INSERT_ROW_BELOW:"INSERT_ROW_BELOW",REMOVE_ROW:"REMOVE_ROW",EMPTY_ROW:"EMPTY_ROW",EMPTY_COLUMN:"EMPTY_COLUMN",EMPTY_CELL:"EMPTY_CELL",LEFT_FIXED_COLUMN_TO:"LEFT_FIXED_COLUMN_TO",CANCEL_LEFT_FIXED_COLUMN_TO:"CANCEL_LEFT_FIXED_COLUMN_TO",RIGHT_FIXED_COLUMN_TO:"RIGHT_FIXED_COLUMN_TO",CANCEL_RIGHT_FIXED_COLUMN_TO:"CANCEL_RIGHT_FIXED_COLUMN_TO"};function Yt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xt(e){return"ve-table-"+e}function Jt(e,t){var n=null;return e&&t&&(n=e[t]),n}function Qt(e,t){return e?t.find(function(t){return t.key===e}):null}function en(e,t){if(!s(e)&&!a(t)){var n=t[0];if(n.key===e&&n.operationColumn)return!0}return!1}function tn(e,t){var n=e;return(n||0==n)&&(n=e+"@"+t),n}function nn(e){var t=e.colgroups,n=e.colKey,r=e.fixed,i=t.findIndex(function(e){return e.key===n}),o=0;return r===Fe?o=t.reduce(function(e,t,n){return n<i&&t.fixed==Fe?t._realTimeWidth+e:e},0):r===Ke&&(o=t.reduce(function(e,t,n){return n>i&&t.fixed==Ke?t._realTimeWidth+e:e},0)),o}function rn(e){var t=e.colgroups,n=e.colKey,r=e.fixed,i=t.findIndex(function(e){return e.key===n}),o=0;return r===Fe?o=t.reduce(function(e,t,n){return n<i&&!t.fixed?t._realTimeWidth+e:e},0):r===Ke&&(o=t.reduce(function(e,t,n){return n>i&&!t.fixed?t._realTimeWidth+e:e},0)),o}function on(e){var t=e.colKeys;return e.colgroups.reduce(function(e,n,r){return t.indexOf(n.key)>-1?n._realTimeWidth+e:e},0)}function an(e){var t=e.colgroups,n=Yt({},e.rowKeyFieldName,M());return t.forEach(function(e){e.field&&(n[e.field]="")}),n}function sn(e){var t=null;return(t=e.headerColumnItem._keys.split("|")).length>1&&(t=t.slice(0,t.length-1)),t}function ln(e){var t=e.colKey1,n=e.colKey2,r=e.colgroups,i=null,o=r.findIndex(function(e){return e.key===t}),a=r.findIndex(function(e){return e.key===n});if(-1!==o&&-1!==o){var s=o<a?o:a,l=o<a?a:o;i=r.slice(s,l+1).map(function(e){return e.key})}return i}function cn(e){var t=e.colKeys,n=e.fixedType,r=e.colgroups,i=null;return Array.isArray(t)&&(i=r.filter(function(e){return t.indexOf(e.key)>-1&&e.fixed===n}).map(function(e){return e.key})),i}function un(e){var t=e.fixedType,n=e.colgroups,r=e.isExcludeOperationColumn;return n.filter(function(e){var n=e.fixed===t;return r?n&&!e.operationColumn:n}).map(function(e){return e.key})}function dn(e){var t=e.topRowKey,n=e.bottomRowKey,r=e.allRowKeys,i=null,o=r.findIndex(function(e){return e===t}),a=r.findIndex(function(e){return e===n});return-1!==o&&-1!==a&&(i=r.slice(o,a+1)),i}function fn(e){var t=e.cellData,n=e.cellSelectionRangeData,r=e.colgroups,i=e.allRowKeys,o=n.leftColKey,a=n.rightColKey,s=n.topRowKey,l=n.bottomRowKey,c=ln({colKey1:o,colKey2:a,colgroups:r}),u=dn({topRowKey:s,bottomRowKey:l,allRowKeys:i});return c.indexOf(t.colKey)>-1&&u.indexOf(t.rowKey)>-1}function hn(e){var t=e.cellSelectionRangeData;return{startColKey:t.leftColKey,endColKey:t.rightColKey,startRowKey:t.topRowKey,endRowKey:t.bottomRowKey}}function pn(e){var t=e.cellSelectionRangeData,n=e.colgroups,r=e.allRowKeys,i=t.leftColKey,o=t.rightColKey,a=t.topRowKey,s=t.bottomRowKey;return{startColIndex:n.findIndex(function(e){return e.key===i}),endColIndex:n.findIndex(function(e){return e.key===o}),startRowIndex:r.indexOf(a),endRowIndex:r.indexOf(s)}}function mn(e){var t=e.cellSelectionRangeData,n=e.resultType,r=void 0===n?"normal":n,i=e.tableData,o=e.colgroups,a=e.allRowKeys,s=t.leftColKey,l=t.rightColKey,c=t.topRowKey,u=t.bottomRowKey,d=o.findIndex(function(e){return e.key===s}),f=o.findIndex(function(e){return e.key===l}),h=a.indexOf(c),p=a.indexOf(u),m=o.slice(d,f+1).map(function(e){return e.field});return"normal"===r?i.slice(h,p+1).map(function(e){var t={};return m.forEach(function(n){var r;t[n]=null!==(r=e[n])&&void 0!==r?r:""}),t}):i.slice(h,p+1).map(function(e){var t=[];return m.forEach(function(n){var r;t.push(null!==(r=e[n])&&void 0!==r?r:"")}),t})}function yn(e){var t=e.fixedType,n=e.colKeys,r=e.colgroups,i=!1;return Array.isArray(n)&&(i=r.some(function(e){return n.indexOf(e.key)>-1&&e.fixed===t})),i}function vn(e){var t=e.colKeys,n=e.colgroups,r=!1;return Array.isArray(t)&&(r=n.filter(function(e){return!e.fixed&&t.indexOf(e.key)>-1}).length),r}function gn(e){var t=e.type,n=e.colgroups,r=e.colKeys,i=null;if(Array.isArray(r)&&r.length){var o={colKey:null,colIndex:null};r.forEach(function(e){var r=n.findIndex(function(t){return t.key===e});if(-1===r)return console.warn("getLeftmostOrRightmostColKey error:: can't find colKey:".concat(e)),!1;s(o.colKey)?o={colKey:e,colIndex:r}:"leftmost"===t?r<o.colIndex&&(o={colKey:e,colIndex:r}):"rightmost"===t&&r>o.colIndex&&(o={colKey:e,colIndex:r})}),i=o.colKey}return i}function bn(e){return gn({type:"leftmost",colgroups:e.colgroups,colKeys:e.colKeys})}function _n(e){var t,n=e.isReplaceData,r=e.tableData,i=e.allRowKeys,o=e.colgroups,a=e.direction,s=e.rowKeyFieldName,l=e.cellSelectionRangeData,c=e.nextCurrentCell,u=e.nextNormalEndCell,d=l.leftColKey,f=l.rightColKey,h=l.topRowKey,p=l.bottomRowKey,m={startRowIndex:-1,endRowIndex:-1,startColIndex:-1,endColIndex:-1},y={startRowIndex:-1,endRowIndex:-1,startColIndex:-1,endColIndex:-1};if(m.startRowIndex=i.indexOf(h),m.endRowIndex=i.indexOf(p),m.startColIndex=o.findIndex(function(e){return e.key===d}),m.endColIndex=o.findIndex(function(e){return e.key===f}),t=r.slice(m.startRowIndex,m.endRowIndex+1),a===qe){if(y.startRowIndex=i.indexOf(c.rowKey),y.endRowIndex=m.startRowIndex-1,y.startColIndex=m.startColIndex,y.endColIndex=m.endColIndex,n)for(var v=t.length-1,g=y.endRowIndex;g>=y.startRowIndex;g--){for(var b=y.startColIndex;b<=y.endColIndex;b++){var _=o[b].field;v<0&&(v=t.length-1),r[g][_]=t[v][_]}--v}}else if(a===$e){if(y.startRowIndex=m.endRowIndex+1,y.endRowIndex=i.indexOf(u.rowKey),y.startColIndex=m.startColIndex,y.endColIndex=m.endColIndex,n)for(var k=0,w=y.startRowIndex;w<=y.endRowIndex;w++){for(var x=y.startColIndex;x<=y.endColIndex;x++){var C=o[x].field;k>t.length-1&&(k=0),r[w][C]=t[k][C]}++k}}else if(a===He){if(y.startRowIndex=m.startRowIndex,y.endRowIndex=m.endRowIndex,y.startColIndex=o.findIndex(function(e){return e.key===c.colKey}),y.endColIndex=m.startColIndex-1,n)for(var S=0,A=y.startRowIndex;A<=y.endRowIndex;A++){for(var O=m.endColIndex,j=y.endColIndex;j>=y.startColIndex;j--){var T=o[j].field;O<m.startColIndex&&(O=m.endColIndex),r[A][T]=t[S][o[O].field],--O}++S}}else if(a===We&&(y.startRowIndex=m.startRowIndex,y.endRowIndex=m.endRowIndex,y.startColIndex=m.endColIndex+1,y.endColIndex=o.findIndex(function(e){return e.key===u.colKey}),n))for(var E=0,D=y.startRowIndex;D<=y.endRowIndex;D++){for(var I=m.startColIndex,R=y.startColIndex;R<=y.endColIndex;R++){var M=o[R].field;I>m.startColIndex+(m.endColIndex-m.startColIndex)&&(I=m.startColIndex),r[D][M]=t[E][o[I].field],++I}++E}var P={direction:a,sourceSelectionRangeIndexes:m,targetSelectionRangeIndexes:y,sourceSelectionData:[],targetSelectionData:[]},L=o.slice(m.startColIndex,m.endColIndex+1).map(function(e){return e.field});P.sourceSelectionData=r.slice(m.startRowIndex,m.endRowIndex+1).map(function(e){var t=Yt({},s,e[s]);return L.forEach(function(n){t[n]=e[n]}),t});var B=o.slice(y.startColIndex,y.endColIndex+1).map(function(e){return e.field});return P.targetSelectionData=r.slice(y.startRowIndex,y.endRowIndex+1).map(function(e){var t=Yt({},s,e[s]);return B.forEach(function(n){t[n]=e[n]}),t}),P}function kn(e){var t,n=e.cloneColumns,r=e.cellSelectionRangeData,i=e.fixedType,o=e.colgroups,a=e.enableColumnResize,l=n,c=r.leftColKey,u=r.rightColKey;Fe===i?t=u:Ke===i&&(t=c);var d=n.findIndex(function(e){return 1===e._level&&e.key===t||sn({headerColumnItem:e}).indexOf(t)>-1||void 0});if(d>-1){var f=n[d].fixed;if(!s(f)&&f!==i)return!1;l=n.map(function(e,t){if(e.fixed===i&&(e.fixed=""),a&&(!Array.isArray(e.children)||!e.children.length)){var r=o.find(function(t){return t.key===e.key&&!s(t.key)});r&&(e.width=r._columnResizeWidth)}return Fe===i?t<=d&&t<n.length&&(e.fixed=i):t>=d&&t>0&&(e.fixed=i),e})}return l}function wn(e){var t=e.cloneColumns,n=e.colgroups,r=e.fixedType,i=e.enableColumnResize;return t.map(function(e){if(i&&(!Array.isArray(e.children)||!e.children.length)){var t=n.find(function(t){return t.key===e.key&&!s(t.key)});t&&(e.width=t._columnResizeWidth)}return Fe===r?e.fixed!==r||en(e.key,n)||(e.fixed=""):e.fixed===r&&(e.fixed=""),e})}n(165),n(166),n(167);var xn=/^(\r\n|\n\r|\r|\n)/,Cn=/^[^\t\r\n]+/,Sn=/^\t/;function An(e){var t,n,r,i,o,a="";for(t=0,n=e.length;t<n;t+=1){for(i=e[t].length,r=0;r<i;r+=1)r>0&&(a+="\t"),"string"==typeof(o=e[t][r])?o.indexOf("\n")>-1?a+='"'.concat(o.replace(/"/g,'""'),'"'):a+=o:a+=null==o?"":o;t!==n-1&&(a+="\n")}return a}n(169);var On,jn=(On="undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).requestAnimationFrame||On.webkitRequestAnimationFrame||On.mozRequestAnimationFrame||On.oRequestAnimationFrame||On.msRequestAnimationFrame||function(e){return On.setTimeout(e,1e3/60)},Tn=On.cancelAnimationFrame||On.webkitCancelAnimationFrame||On.mozCancelAnimationFrame||On.oCancelAnimationFrame||On.msCancelAnimationFrame||function(e){On.clearTimeout(e)};function En(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)}}var Dn=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks={}}var t,n;return t=e,(n=[{key:"addHook",value:function(e,t){var n;this.hooks[e]||(this.hooks[e]=[]),n=this.hooks[e];for(var r=!1,i=0;i<n.length;i++)if(n[i]===t){r=!0;break}r?console.warn("Repeat hook name:".concat(e)):n.push(t)}},{key:"triggerHook",value:function(e){var t=this.hooks[e];if(t&&t.length){var n=Array.prototype.slice.call(arguments);t.forEach(function(e){e.apply(null,n.slice(1))})}}}])&&En(t.prototype,n),e}();function In(e){var t=null;if(!e)return t;var n=void 0!==e.which?e.which:e.button;return 1==n?t=A:2==n?t=O:3==n&&(t=j),t}var Rn={methods:{dispatch:function(e,t,n){for(var r=this.$parent||this.$root,i=r.$options.name;r&&(!i||i!==e);)(r=r.$parent)&&(i=r.$options.name);r?r.$emit.apply(r,[t].concat(n)):console.error("".concat(e," was not found."))},broadcast:function(e,t,n){(function e(t,n,r){this.$children.forEach(function(i){i.$options.name===t?i.$emit.apply(i,[n].concat(r)):e.apply(i,[t,n].concat([r]))})}).call(this,e,t,n)}}},Mn={name:"VeTableColgroup",props:{colgroups:{type:Array,required:!0},enableColumnResize:{type:Boolean,required:!0}},methods:{getValByUnit:function(e){return d(this.enableColumnResize&&e._columnResizeWidth?e._columnResizeWidth:e.width)}},render:function(){var e=this,t=arguments[0];return t("colgroup",[this.colgroups.map(function(n){return t("col",{key:n.key,style:{width:e.getValByUnit(n)}})})])}},Pn={name:Bt,mixins:[Rn],props:{checkboxOption:{type:Object,default:function(){return null}}},data:function(){return{isSelected:!1,isIndeterminate:!1}},methods:{selectedChange:function(e){this.isSelected=e,this.dispatch(Pt,ut,{isSelected:e})},setSelectedAllInfo:function(e){var t=e.isSelected,n=e.isIndeterminate;this.isSelected=t,this.isIndeterminate=n}},mounted:function(){var e=this;this.$on(dt,function(t){e.setSelectedAllInfo(t)})},render:function(){var e=arguments[0],t=this.isSelected,n=this.isIndeterminate,r=this.selectedChange,i={class:Xt("checkbox-wrapper"),props:{isControlled:!0,isSelected:t,indeterminate:n},on:{"on-checked-change":function(e){return r(e)}}};return e(z.a,i)}};function Ln(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Bn=o("table"),Nn={name:"VeTableHeaderFilterContent",props:{column:{type:Object,required:!0}},data:function(){return{filterList:[]}},watch:{column:{handler:function(e){e.filter&&Array.isArray(e.filter.filterList)&&(this.filterList=e.filter.filterList)},immediate:!0,deep:!0}},methods:{filterConfirm:function(){var e=this.column.filter.filterConfirm;e&&e(this.filterList)},filterReset:function(){var e=this.column.filter.filterReset;e&&e(this.filterList)},getIcon:function(e){var t=this.column.filter.filterIcon;return l(t)?t(e):e(C.a,{attrs:{name:S.FILTER}})}},render:function(e){var t,n=this,r=this.column.filter,i=r.filterList,o=r.isMultiple,a=r.maxHeight,s=r.beforeVisibleChange,l={props:{value:i,showOperation:!0,isMultiple:o,showRadio:!0,confirmFilterText:Bn("confirmFilter"),resetFilterText:Bn("resetFilter"),beforeVisibleChange:s},on:(t={},Ln(t,"on-filter-confirm",this.filterConfirm),Ln(t,"on-filter-reset",this.filterReset),Ln(t,"input",function(e){n.filterList=e}),t)};return"number"==typeof a&&(l.props.maxHeight=a),e(Ie.a,l,[e("span",{class:Xt("filter")},[e("span",{class:Xt("filter-icon")},[this.getIcon(e)])])])}},Fn={name:"VeTableHeaderFilterCustomContent",props:{column:{type:Object,required:!0}},data:function(){return{internalVisible:!1}},watch:{column:{handler:function(e){e.filterCustom&&c(e.filterCustom.defaultVisible)&&(this.internalVisible=e.filterCustom.defaultVisible)},immediate:!0,deep:!0}},methods:{visibleChange:function(e){this.internalVisible=e},getCustomContent:function(e){var t=null,n=this.column.filterCustom.render;return l(n)&&(t=e("div",{slot:"custom-content"},[n({showFn:this.show,closeFn:this.close},e)])),t},getIcon:function(e){var t=this.column.filterCustom.filterIcon;return l(t)?t(e):e(C.a,{attrs:{name:S.FILTER}})},close:function(){this.internalVisible=!1},show:function(){this.internalVisible=!0}},render:function(e){var t={props:{isCustomContent:!0,isControlled:!0,visible:this.internalVisible,beforeVisibleChange:this.column.filterCustom.beforeVisibleChange},on:{"on-dropdown-visible-change":this.visibleChange}};return e(Ie.a,t,[e("span",{class:Xt("filter")},[e("span",{class:Xt("filter-icon")},[this.getIcon(e)])]),this.getCustomContent(e)])}};function Kn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Vn={name:"VeTableHeaderTh",mixins:[Rn],props:{groupColumn:{type:Array,required:!0},groupColumnItem:{type:Object,required:!0},colgroups:{type:Array,required:!0},headerRows:{type:Array,default:function(){return[]}},fixedHeader:{type:Boolean},isGroupHeader:{type:Boolean,required:!0},rowIndex:{type:Number,required:!0},cellSelectionData:{type:Object,default:function(){return null}},cellSelectionRangeData:{type:Object,default:function(){return null}},headerIndicatorColKeys:{type:Object,default:function(){return null}},checkboxOption:{type:Object,default:function(){return null}},sortOption:{type:Object,default:function(){return null}},sortColumns:{type:Object,default:function(){return null}},cellStyleOption:{type:Object,default:function(){return null}},eventCustomOption:{type:Object,default:function(){return null}}},computed:{isLastLeftFixedColumn:function(){var e=!1,t=this.groupColumn,n=this.groupColumnItem,r=n.fixed,i=n._keys;if("left"===r){var o=t.filter(function(e){return"left"===e.fixed});o.findIndex(function(e){return e._keys===i})===o.length-1&&(e=!0)}return e},isfirstRightFixedColumn:function(){var e=!1,t=this.groupColumn,n=this.groupColumnItem,r=n.fixed,i=n._keys;return"right"===r&&t.filter(function(e){return"right"===e.fixed})[0]._keys===i&&(e=!0),e},isLastCloumn:function(){var e=!1,t=this.colgroups,n=this.groupColumnItem,r=t[t.length-1].key,i=n._keys.split("|");return i.length&&(1===i.length?i[0]===r&&(e=!0):i[i.length-2]===r&&(e=!0)),e},isSortableCloumn:function(){var e=!1,t=this.sortColumns,n=this.groupColumnItem.field;return Object.keys(t).includes(n)&&(e=!0),e}},methods:{getTheadThClass:function(e){var t,n=e.fixed,r=(Kn(t={},Xt("header-th"),!0),Kn(t,Xt("fixed-left"),"left"===n),Kn(t,Xt("fixed-right"),"right"===n),Kn(t,Xt("last-left-fixed-column"),this.isLastLeftFixedColumn),Kn(t,Xt("first-right-fixed-column"),this.isfirstRightFixedColumn),Kn(t,Xt("last-column"),this.isLastCloumn),Kn(t,Xt("sortable-column"),this.isSortableCloumn),t),i=this.cellStyleOption,o=this.rowIndex,a=this.groupColumnItem,l=this.cellSelectionRangeData,c=this.colgroups,u=this.isGroupHeader,d=this.headerIndicatorColKeys;if(l){var f=l.leftColKey,h=l.rightColKey,p=d.startColKeyIndex>-1;if(!s(f)){var m,y=[];y=f===h?[f]:null!==(m=ln({colKey1:f,colKey2:h,colgroups:c}))&&void 0!==m?m:[];var v=!1;u?v=sn({headerColumnItem:a}).every(function(e){return y.indexOf(e)>-1}):y.indexOf(a.key)>-1&&(v=!0),v&&(p?r[Xt("cell-indicator-active")]=!0:r[Xt("cell-indicator")]=!0)}}if(i&&"function"==typeof i.headerCellClass){var g=i.headerCellClass({column:a,rowIndex:o});g&&(r[g]=!0)}return r},getTheadThStyle:function(e,t){var n=e._keys,r=e.align,i=e.fixed,o={},a=this.colgroups,s=this.headerRows;if(o["text-align"]=r||"center",i){var l="",c=0,u=n.split("|");if("left"===i?l=u[0]:"right"===i&&(l=1===u.length?u[0]:u[u.length-2]),l){var f=a.findIndex(function(e){return e.key===l});("left"===i&&f>0||"right"===i&&f<a.length-1)&&(c=d(c=nn({colgroups:a,colKey:l,fixed:i})))}o.left="left"===i?c:"",o.right="right"===i?c:""}if(this.fixedHeader){var h=0;t>0&&(h=s.reduce(function(e,n,r){return r<t?n.rowHeight+e:e},0)),h=d(h),o.top=h}return o},getCheckboxContent:function(){var e=this.$createElement,t=null,n=this.checkboxOption;if(this.groupColumnItem.type===Ne&&!n.hideSelectAll){var r={props:{column:this.groupColumnItem,checkboxOption:this.checkboxOption}};t=e(Pn,r)}return t},sortChange:function(){var e,t=this.sortColumns,n=this.groupColumnItem,r=this.sortOption.sortAlways,i=n.field,o=t[i];e=r?"asc"===o?"desc":"asc":"asc"===o?"desc":"desc"===o?"":"asc",this.dispatch(Lt,ht,{currentField:i,sortResult:e})},getSortContent:function(){var e=this.$createElement,t=null,n=this.sortColumns,r=this.groupColumnItem.field;if(Object.keys(n).includes(r)){var i=n[r];t=e("span",{class:Xt("sort")},[e(C.a,{class:[Xt("sort-icon"),Xt("sort-icon-top"),"asc"===i?"active":""],attrs:{name:S.SORT_TOP_ARROW}}),e(C.a,{class:[Xt("sort-icon"),Xt("sort-icon-bottom"),"desc"===i?"active":""],attrs:{name:S.SORT_BOTTOM_ARROW}})])}return t},getFilterContent:function(){var e=this.$createElement,t=null;if(this.groupColumnItem.filter){var n={props:{column:this.groupColumnItem}};t=e(Nn,n)}return t},getFilterCustomContent:function(){var e=this.$createElement,t=null;if(this.groupColumnItem.filterCustom){var n={props:{column:this.groupColumnItem}};t=e(Fn,n)}return t},cellClick:function(e,t){t&&t(e);var n=this.groupColumnItem;this.dispatch(Pt,mt,{event:e,column:n})},cellDblclick:function(e,t){t&&t(e)},cellContextmenu:function(e,t){t&&t(e);var n=this.groupColumnItem;this.dispatch(Pt,yt,{event:e,column:n})},cellMouseenter:function(e,t){t&&t(e)},cellMouseleave:function(e,t){t&&t(e);var n=this.groupColumnItem;this.dispatch(Pt,_t,{event:e,column:n})},cellMousemove:function(e,t){t&&t(e);var n=this.groupColumnItem;this.dispatch(Pt,bt,{event:e,column:n})},cellMouseover:function(e,t){t&&t(e);var n=this.groupColumnItem;this.dispatch(Pt,gt,{event:e,column:n})},cellMousedown:function(e,t){t&&t(e);var n=this.groupColumnItem;this.dispatch(Pt,vt,{event:e,column:n})},cellMouseup:function(e,t){t&&t(e)}},render:function(e){var t,n=this,r=this.groupColumnItem,i=this.getTheadThClass,o=this.getTheadThStyle,a=this.rowIndex,s=this.eventCustomOption;if("function"==typeof r.renderHeaderCell){var l=Object.assign({},r);t=r.renderHeaderCell({column:l},e)}else t=r.title;var c={};if(s){var u=s.headerCellEvents;c=u?u({column:r,rowIndex:a}):{}}var d=c,f=d.click,h=d.dblclick,p=d.contextmenu,m=d.mouseenter,y=d.mouseleave,v=d.mousemove,g=d.mouseover,b=d.mousedown,_=d.mouseup,k={click:function(e){n.cellClick(e,f),n.isSortableCloumn&&e.target instanceof HTMLTableCellElement&&n.sortChange()},dblclick:function(e){n.cellDblclick(e,h)},contextmenu:function(e){n.cellContextmenu(e,p)},mouseenter:function(e){n.cellMouseenter(e,m)},mouseleave:function(e){n.cellMouseleave(e,y)},mousemove:function(e){n.cellMousemove(e,v)},mouseover:function(e){n.cellMouseover(e,g)},mousedown:function(e){n.cellMousedown(e,b)},mouseup:function(e){n.cellMouseup(e,_)}};return e("th",{style:o(r,a),class:i(r),attrs:{rowspan:r._rowspan,colspan:r._colspan},on:k},[this.getCheckboxContent(),t,this.getSortContent(),this.getFilterContent(),this.getFilterCustomContent()])}},zn=n(139);function Un(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}var qn=function(e){var t,n=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Un(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)?Un(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(e);try{var r=function(){var e=t.value,n=e.target.__resizeListeners__||[];n.length&&n.forEach(function(t){t(e.contentRect)})};for(n.s();!(t=n.n()).done;)r()}catch(e){n.e(e)}finally{n.f()}},Wn={name:"vue-dom-resize-observer",props:{tagName:{type:String,required:!0},id:{type:[String,Number],default:null}},methods:{resizeListener:function(e){var t=e.left,n=e.top,r=e.width,i=e.height;this.$emit("on-dom-resize-change",{key:this.id,left:t,top:n,width:r,height:i})}},mounted:function(){var e,t;e=this.$el,t=this.resizeListener,e.__resizeListeners__||(e.__resizeListeners__=[],e.__ro__=new zn.a(qn),e.__ro__.observe(e)),e.__resizeListeners__.push(t)},destroyed:function(){var e,t;e=this.$el,t=this.resizeListener,e&&e.__resizeListeners__&&(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),e.__resizeListeners__.length||e.__ro__.disconnect())},render:function(){return(0,arguments[0])(this.tagName,[this.$slots.default])}},$n={name:"VeTableHeaderTr",mixins:[Rn],props:{columnsOptionResetTime:{type:Number,default:0},groupColumn:{type:Array,required:!0},headerRows:{type:Array,default:function(){return[]}},colgroups:{type:Array,required:!0},fixedHeader:{type:Boolean,required:!0},isGroupHeader:{type:Boolean,required:!0},rowIndex:{type:Number,required:!0},cellSelectionData:{type:Object,default:function(){return null}},cellSelectionRangeData:{type:Object,default:function(){return null}},headerIndicatorColKeys:{type:Object,default:function(){return null}},checkboxOption:{type:Object,default:function(){return null}},sortOption:{type:Object,default:function(){return null}},sortColumns:{type:Object,default:function(){return null}},cellStyleOption:{type:Object,default:function(){return null}},eventCustomOption:{type:Object,default:function(){return null}}},methods:{trHeightChange:function(e){var t=e.height;this.dispatch(Pt,Xe,{rowIndex:this.rowIndex,height:t})},rowClick:function(e,t){t&&t(e)},rowDblclick:function(e,t){t&&t(e)},rowContextmenu:function(e,t){t&&t(e)},rowMouseenter:function(e,t){t&&t(e)},rowMouseleave:function(e,t){t&&t(e)},rowMousemove:function(e,t){t&&t(e)},rowMouseover:function(e,t){t&&t(e)},rowMousedown:function(e,t){t&&t(e)},rowMouseup:function(e,t){t&&t(e)}},render:function(){var e=this,t=arguments[0],n=this.groupColumn,r=this.colgroups,i=this.headerRows,o=this.fixedHeader,a=this.rowIndex,s=this.trHeightChange,l=this.checkboxOption,c=this.sortOption,u=this.sortColumns,d=this.cellStyleOption,f=this.eventCustomOption,h=this.cellSelectionData,p={};if(f){var m=f.headerRowEvents;p=m?m({rowIndex:a}):{}}var y=p,v=y.click,g=y.dblclick,b=y.contextmenu,_=y.mouseenter,k=y.mouseleave,w=y.mousemove,x=y.mouseover,C=y.mousedown,S=y.mouseup,A={click:function(t){e.rowClick(t,v)},dblclick:function(t){e.rowDblclick(t,g)},contextmenu:function(t){e.rowContextmenu(t,b)},mouseenter:function(t){e.rowMouseenter(t,_)},mouseleave:function(t){e.rowMouseleave(t,k)},mousemove:function(t){e.rowMousemove(t,w)},mouseover:function(t){e.rowMouseover(t,x)},mousedown:function(t){e.rowMousedown(t,C)},mouseup:function(t){e.rowMouseup(t,S)}},O={key:tn(a,this.columnsOptionResetTime),class:Xt("header-tr"),props:{tagName:"tr"},on:{"on-dom-resize-change":s},nativeOn:A};return t(Wn,O,[n.map(function(s){var f={key:s.key,props:{groupColumn:n,groupColumnItem:s,colgroups:r,headerRows:i,fixedHeader:o,isGroupHeader:e.isGroupHeader,rowIndex:a,checkboxOption:l,sortOption:c,sortColumns:u,cellStyleOption:d,eventCustomOption:e.eventCustomOption,cellSelectionData:h,cellSelectionRangeData:e.cellSelectionRangeData,headerIndicatorColKeys:e.headerIndicatorColKeys}};return t(Vn,f)})])}},Hn={name:Lt,mixins:[Rn],props:{columnsOptionResetTime:{type:Number,default:0},groupColumns:{type:Array,required:!0},colgroups:{type:Array,required:!0},fixedHeader:{type:Boolean,required:!0},isGroupHeader:{type:Boolean,required:!0},cellSelectionData:{type:Object,default:function(){return null}},cellSelectionRangeData:{type:Object,default:function(){return null}},headerIndicatorColKeys:{type:Object,default:function(){return null}},headerRows:{type:Array,default:function(){return[]}},checkboxOption:{type:Object,default:function(){return null}},sortOption:{type:Object,default:function(){return null}},cellStyleOption:{type:Object,default:function(){return null}},eventCustomOption:{type:Object,default:function(){return null}}},data:function(){return{sortColumns:{}}},computed:{headerClass:function(){return e={},t=Xt("fixed-header"),n=this.fixedHeader,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},watch:{colgroups:{handler:function(){this.initSortColumns()},immediate:!0}},methods:{sortChange:function(e){var t=e.currentField,n=e.sortResult,r=this.sortColumns,i=this.sortOption,o=i.multipleSort,a=i.sortChange;if(this.sortColumns[t]=n,!o)for(var s in r)s!==t&&(r[s]="");this.dispatch(Pt,ht,r),a(r)},initSortColumns:function(){var e={};this.colgroups.forEach(function(t){"string"==typeof t.sortBy&&(e[t.field]=t.sortBy)}),this.sortColumns=e}},mounted:function(){var e=this;this.$on(ht,function(t){e.sortChange(t)})},render:function(){var e=this,t=arguments[0],n=this.headerClass,r=this.groupColumns,i=this.colgroups,o=this.fixedHeader,a=this.headerRows,s=this.checkboxOption,l=this.sortOption,c=this.sortColumns,u=this.cellStyleOption,d=this.cellSelectionData;return t("thead",{class:n},[r.map(function(n,r){var f={key:r,props:{columnsOptionResetTime:e.columnsOptionResetTime,groupColumn:n,headerRows:a,colgroups:i,fixedHeader:o,isGroupHeader:e.isGroupHeader,rowIndex:r,checkboxOption:s,sortOption:l,sortColumns:c,cellStyleOption:u,eventCustomOption:e.eventCustomOption,cellSelectionData:d,cellSelectionRangeData:e.cellSelectionRangeData,headerIndicatorColKeys:e.headerIndicatorColKeys}};return t($n,f)})])}},Gn=(n(177),{name:"VeTableBodyCheckboxContent",mixins:[Rn],props:{checkboxOption:{type:Object,default:function(){return null}},rowKey:{type:[String,Number],required:!0},internalCheckboxSelectedRowKeys:{type:Array,default:function(){return null}}},data:function(){return{isSelected:!1}},computed:{disabled:function(){var e=!1,t=this.checkboxOption,n=this.rowKey;if(t){var r=t.disableSelectedRowKeys;return Array.isArray(r)&&r.includes(n)&&(e=!0),e}},isControlledProp:function(){var e=this.checkboxOption;return e&&Array.isArray(e.selectedRowKeys)}},watch:{internalCheckboxSelectedRowKeys:{handler:function(){this.initSelected()},immediate:!0}},methods:{initSelected:function(){var e=!1,t=this.rowKey,n=this.internalCheckboxSelectedRowKeys;Array.isArray(n)&&n.includes(t)&&(e=!0),this.isSelected=e},selectedChange:function(e){this.isControlledProp||(this.isSelected=e),this.dispatch(Nt,ct,{rowKey:this.rowKey,isSelected:e})}},render:function(){var e=arguments[0],t=this.isSelected,n=this.selectedChange,r=this.disabled,i={class:Xt("checkbox-wrapper"),props:{isControlled:!0,isSelected:t,disabled:r},on:{"on-checked-change":function(e){return n(e)}}};return e(z.a,i)}}),Zn={name:"VeTableBodyRadioContent",mixins:[Rn],props:{radioOption:{type:Object,default:function(){return null}},rowKey:{type:[String,Number],required:!0},internalRadioSelectedRowKey:{type:[String,Number],default:null}},data:function(){return{isSelected:!1}},computed:{disabled:function(){var e=!1,t=this.radioOption,n=this.rowKey;if(t){var r=t.disableSelectedRowKeys;return Array.isArray(r)&&r.includes(n)&&(e=!0),e}},isControlledProp:function(){var e=this.radioOption;return e&&Object.keys(e).includes("selectedRowKey")}},watch:{internalRadioSelectedRowKey:{handler:function(){this.initSelected()},immediate:!0}},methods:{initSelected:function(){this.isSelected=this.internalRadioSelectedRowKey===this.rowKey},selectedChange:function(){this.isControlledProp||(this.isSelected=!0),this.dispatch(Nt,ft,{rowKey:this.rowKey})}},render:function(){var e=arguments[0],t=this.isSelected,n=this.selectedChange,r=this.disabled,i={class:Xt("radio-wrapper"),props:{isControlled:!0,isSelected:t,disabled:r},on:{"on-radio-change":function(){return n()}}};return e(q.a,i)}};function Yn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Xn={name:"VeTableExpandTrIcon",props:{column:{type:Object,required:!0},expandOption:{type:Object,default:function(){return null}},rowData:{type:Object,required:!0},expandedRowkeys:{type:Array,default:function(){return[]}},rowKeyFieldName:{type:String,default:null},cellClick:{type:Function,default:null}},computed:{isExpanded:function(){var e=!1,t=this.column,n=this.rowData,r=this.expandedRowkeys,i=this.rowKeyFieldName;if(t.type===Be){var o=n[i];e=r.includes(o)}return e},expandRowIconContainerClass:function(){var e;return Yn(e={},Xt("row-expand-icon"),!0),Yn(e,Xt("expand-icon-collapsed"),this.isExpanded),e}},render:function(){var e=arguments[0],t=null,n=this.cellClick,r=this.column,i=this.expandRowIconContainerClass;return r.type===Be&&(t=e("span",{on:{click:function(e){return n(e)}},class:i},[e(C.a,{attrs:{name:S.RIGHT_ARROW}})])),t}};function Jn(e){return(Jn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Qn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var er={name:Kt,mixins:[Rn],props:{rowData:{type:Object,required:!0},column:{type:Object,required:!0},columnCollection:{type:Array,required:!0},rowIndex:{type:Number,required:!0},colgroups:{type:Array,required:!0},rowKeyFieldName:{type:String,default:null},allRowKeys:{type:Array,required:!0},expandOption:{type:Object,default:function(){return null}},isExpandRow:{type:Boolean,required:!0},expandedRowkeys:{type:Array,default:function(){return[]}},checkboxOption:{type:Object,default:function(){return null}},internalCheckboxSelectedRowKeys:{type:Array,default:function(){return null}},radioOption:{type:Object,default:function(){return null}},internalRadioSelectedRowKey:{type:[String,Number],default:null},cellStyleOption:{type:Object,default:function(){return null}},eventCustomOption:{type:Object,default:function(){return null}},cellSelectionData:{type:Object,default:function(){return null}},cellSelectionRangeData:{type:Object,default:function(){return null}},bodyIndicatorRowKeys:{type:Object,default:function(){return null}},cellSpanOption:{type:Object,default:function(){return null}},editOption:{type:Object,default:function(){return null}}},data:function(){return{rawCellValue:""}},computed:{currentColumnCollectionItem:function(){var e=this.columnCollection,t=this.column;return e.find(function(e){return e.colKey===t.key})},currentRowKey:function(){return this.rowData[this.rowKeyFieldName]}},watch:{rowData:{handler:function(e){var t=this.column;t&&(this.rawCellValue=e[t.field])},deep:!0,immediate:!0}},methods:{bodyTdStyle:function(){var e=this.currentColumnCollectionItem,t={};return e&&(t=Object.assign(t,e.style)),t},bodyTdClass:function(){var e=this.currentColumnCollectionItem,t=this.column,n=t.fixed,r=t.operationColumn,i=Qn({},Xt("body-td"),!0),o=this.cellStyleOption,a=this.rowData,l=this.column,c=this.rowIndex,u=this.allRowKeys,d=this.cellSelectionData,f=this.cellSelectionRangeData,h=this.bodyIndicatorRowKeys,p=this.currentRowKey;if(n&&(i[Xt("fixed-left")]="left"===n,i[Xt("fixed-right")]="right"===n),r&&(i[Xt("operation-col")]=!0),o&&"function"==typeof o.bodyCellClass){var m=o.bodyCellClass({row:a,column:l,rowIndex:c});m&&(i[m]=!0)}if(d){var y=d.currentCell,v=y.rowKey,g=y.colKey;if(!s(v)&&!s(g)&&(p===v&&l.key===g&&(i[Xt("cell-selection")]=!0),r)){var b=f.topRowKey,_=f.bottomRowKey,k=h.startRowKeyIndex>-1;(b===_?[b]:dn({topRowKey:b,bottomRowKey:_,allRowKeys:u})).indexOf(p)>-1&&(k?i[Xt("cell-indicator-active")]=!0:i[Xt("cell-indicator")]=!0)}}return e&&(i=Object.assign(i,e.class)),i},getEllipsisContentStyle:function(){var e={},t=this.column.ellipsis;if(t){var n=t.lineClamp,r=u(n)?n:1;e["-webkit-line-clamp"]=r}return e},getRenderContent:function(e){var t=null,n=this.column,r=this.rowData,i=this.rowIndex,o=this.rawCellValue;if(t="function"==typeof n.renderBodyCell?n.renderBodyCell({row:r,column:n,rowIndex:i},e):o,n.ellipsis){var a=n.ellipsis.showTitle;t=e("span",{attrs:{title:!c(a)||a?t:""},style:this.getEllipsisContentStyle(),class:Xt("body-td-span-ellipsis")},[t])}return t},getCheckboxContent:function(){var e=this.$createElement;if(this.column.type===Ne){var t={props:{column:this.column,checkboxOption:this.checkboxOption,rowKey:this.rowData[this.rowKeyFieldName],internalCheckboxSelectedRowKeys:this.internalCheckboxSelectedRowKeys}};return e(Gn,t)}return null},getRadioContent:function(){var e=this.$createElement;if("radio"===this.column.type){var t={props:{column:this.column,radioOption:this.radioOption,rowKey:this.rowData[this.rowKeyFieldName],internalRadioSelectedRowKey:this.internalRadioSelectedRowKey}};return e(Zn,t)}return null},getCellSpan:function(){var e=this.cellSpanOption,t=this.rowData,n=this.column,r=this.rowIndex,i=1,o=1;if(e){var a=e.bodyCellSpan;if("function"==typeof a){var s=a({row:t,column:n,rowIndex:r});"object"===Jn(s)&&(i=s.rowspan,o=s.colspan)}}return{rowspan:i,colspan:o}},cellClick:function(e,t){t&&t(e);var n=this.column,r=this.expandOption,i=this.rowData;if(this.dispatch(Pt,tt,{event:e,rowData:i,column:n}),n.type!==Be)return!1;if(r){var o=e.target.nodeName,a=r.trigger;a&&"icon"!==a?"cell"===a&&(e.stopPropagation(),this.$emit(lt)):"TD"!==o&&(e.stopPropagation(),this.$emit(lt))}},cellDblclick:function(e,t){t&&t(e);var n=this.column,r=this.rowData;this.dispatch(Pt,at,{event:e,rowData:r,column:n})},cellContextmenu:function(e,t){t&&t(e);var n=this.column,r=this.rowData;this.dispatch(Pt,st,{event:e,rowData:r,column:n})},cellMouseenter:function(e,t){t&&t(e)},cellMouseleave:function(e,t){t&&t(e)},cellMousemove:function(e,t){t&&t(e);var n=this.column,r=this.rowData;this.dispatch(Pt,it,{event:e,rowData:r,column:n})},cellMouseover:function(e,t){t&&t(e);var n=this.column,r=this.rowData;this.dispatch(Pt,nt,{event:e,rowData:r,column:n})},cellMousedown:function(e,t){t&&t(e);var n=this.column,r=this.rowData;this.dispatch(Pt,rt,{event:e,rowData:r,column:n})},cellMouseup:function(e,t){t&&t(e);var n=this.column,r=this.rowData;this.dispatch(Pt,ot,{event:e,rowData:r,column:n})}},render:function(e){var t=this,n=this.column,r=this.cellClick,i=this.rowData,o=this.isExpandRow,a=this.expandOption,s=this.expandedRowkeys,l=this.rowKeyFieldName,c=this.eventCustomOption,u=this.rowIndex,d={props:{rowData:i,column:n,expandOption:a,expandedRowkeys:s,rowKeyFieldName:l,cellClick:r}},f=this.getCellSpan(),h=f.rowspan,p=f.colspan;if(!h||!p)return null;var m={};if(c){var y=c.bodyCellEvents;m=y?y({row:i,column:n,rowIndex:u}):{}}var v=m,g=v.click,b=v.dblclick,_=v.contextmenu,k=v.mouseenter,w=v.mouseleave,x=v.mousemove,C=v.mouseover,S=v.mousedown,A=v.mouseup,O={click:function(e){t.cellClick(e,g)},dblclick:function(e){t.cellDblclick(e,b)},contextmenu:function(e){t.cellContextmenu(e,_)},mouseenter:function(e){t.cellMouseenter(e,k)},mouseleave:function(e){t.cellMouseleave(e,w)},mousemove:function(e){t.cellMousemove(e,x)},mouseover:function(e){t.cellMouseover(e,C)},mousedown:function(e){t.cellMousedown(e,S)},mouseup:function(e){t.cellMouseup(e,A)}};return e("td",{class:this.bodyTdClass(),style:this.bodyTdStyle(),attrs:Qn({rowspan:h,colspan:p},"col-key",n.key),on:O},[o&&e(Xn,d),this.getCheckboxContent(),this.getRadioContent(),this.getRenderContent(e)])}};function tr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nr={name:Ft,mixins:[Rn],props:{rowData:{type:Object,required:!0},rowIndex:{type:Number,required:!0},colgroups:{type:Array,required:!0},columnCollection:{type:Array,required:!0},rowKeyFieldName:{type:String,default:null},allRowKeys:{type:Array,required:!0},expandOption:{type:Object,default:function(){return null}},isExpandRow:{type:Boolean,required:!0},expandedRowkeys:{type:Array,default:function(){return[]}},expandRowChange:{type:Function,default:null},checkboxOption:{type:Object,default:function(){return null}},internalCheckboxSelectedRowKeys:{type:Array,default:function(){return null}},radioOption:{type:Object,default:function(){return null}},internalRadioSelectedRowKey:{type:[String,Number],default:null},isVirtualScroll:{type:Boolean,default:!1},cellStyleOption:{type:Object,default:function(){return null}},highlightRowKey:{type:[String,Number],default:null},eventCustomOption:{type:Object,default:function(){return null}},cellSelectionData:{type:Object,default:function(){return null}},cellSelectionRangeData:{type:Object,default:function(){return null}},bodyIndicatorRowKeys:{type:Object,default:function(){return null}},cellSpanOption:{type:Object,default:function(){return null}},editOption:{type:Object,default:function(){return null}}},computed:{currentRowKey:function(){var e=this.rowKeyFieldName;return e?this.rowData[e]:null},trClass:function(){var e,t=this.highlightRowKey,n=this.currentRowKey,r=!1;return s(t)||t===n&&(r=!0),tr(e={},Xt("body-tr"),!0),tr(e,Xt("tr-highlight"),r),e}},methods:{rowClick:function(e,t){t&&t(e);var n=this.rowData,r=this.rowIndex;this.dispatch(Nt,et,{rowData:n,rowIndex:r})},rowDblclick:function(e,t){t&&t(e)},rowContextmenu:function(e,t){t&&t(e)},rowMouseenter:function(e,t){t&&t(e)},rowMouseleave:function(e,t){t&&t(e)},rowMousemove:function(e,t){t&&t(e)},rowMouseover:function(e,t){t&&t(e)},rowMousedown:function(e,t){t&&t(e)},rowMouseup:function(e,t){t&&t(e)}},render:function(){var e=this,t=arguments[0],n=this.colgroups,r=this.expandOption,i=this.expandRowChange,o=this.isExpandRow,a=this.expandedRowkeys,s=this.checkboxOption,l=this.rowKeyFieldName,c=this.rowIndex,u=this.rowData,d=this.internalCheckboxSelectedRowKeys,f=this.internalRadioSelectedRowKey,h=this.radioOption,p=this.cellStyleOption,m=this.eventCustomOption,y=function(){return n.map(function(y){var v={key:y.key,props:{rowIndex:c,rowData:u,column:y,columnCollection:e.columnCollection,colgroups:n,expandOption:r,expandedRowkeys:a,checkboxOption:s,rowKeyFieldName:l,allRowKeys:e.allRowKeys,isExpandRow:o,internalCheckboxSelectedRowKeys:d,internalRadioSelectedRowKey:f,radioOption:h,cellStyleOption:p,cellSpanOption:e.cellSpanOption,eventCustomOption:m,cellSelectionData:e.cellSelectionData,cellSelectionRangeData:e.cellSelectionRangeData,bodyIndicatorRowKeys:e.bodyIndicatorRowKeys,editOption:e.editOption},on:tr({},lt,function(){return i(u,c)})};return t(er,v)})},v=null,g={};if(m){var b=m.bodyRowEvents;g=b?b({row:u,rowIndex:c}):{}}var _=g,k=_.click,w=_.dblclick,x=_.contextmenu,C=_.mouseenter,S=_.mouseleave,A=_.mousemove,O=_.mouseover,j=_.mousedown,T=_.mouseup,E={click:function(t){e.rowClick(t,k)},dblclick:function(t){e.rowDblclick(t,w)},contextmenu:function(t){e.rowContextmenu(t,x)},mouseenter:function(t){e.rowMouseenter(t,C)},mouseleave:function(t){e.rowMouseleave(t,S)},mousemove:function(t){e.rowMousemove(t,A)},mouseover:function(t){e.rowMouseover(t,O)},mousedown:function(t){e.rowMousedown(t,j)},mouseup:function(t){e.rowMouseup(t,T)}};if(this.isVirtualScroll){var D={class:this.trClass,props:{tagName:"tr",id:this.currentRowKey},attrs:tr({},Vt,this.currentRowKey),on:{"on-dom-resize-change":function(t){var n=t.key,r=t.height;e.dispatch(Pt,Qe,{rowKey:n,height:r})}},nativeOn:E};v=t(Wn,D,[y()])}else{var I={class:this.trClass,attrs:tr({},Vt,this.currentRowKey),on:E};v=t("tr",I,[y()])}return v}};function rr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ir={name:"VeTableBodyTrScrolling",props:{colgroups:{type:Array,required:!0}},computed:{trClass:function(){var e;return rr(e={},Xt("body-tr"),!0),rr(e,Xt("body-row-scrolling"),!0),e}},render:function(){var e=arguments[0],t=this.colgroups;return e("tr",{class:this.trClass},[e("td",{attrs:{colSpan:t.length}})])}},or={name:"VeTableExpandTr",mixins:[Rn],props:{tableViewportWidth:{type:Number,default:0},expandColumn:{type:Object,default:function(){return null}},colgroups:{type:Array,required:!0},expandOption:{type:Object,default:function(){return null}},expandedRowkeys:{type:Array,default:function(){return[]}},rowData:{type:Object,required:!0},rowIndex:{type:Number,required:!0},rowKeyFieldName:{type:String,default:null}},computed:{columnCount:function(){return this.colgroups.length},currentRowKey:function(){return this.rowData[this.rowKeyFieldName]},isRowExpanded:function(){var e=!1,t=this.expandOption,n=this.expandedRowkeys,r=this.currentRowKey;return(t.defaultExpandAllRows||n.includes(r))&&(e=!0),e},expanRowClass:function(){var e,t;return e={},!0,(t=Xt("expand-tr"))in e?Object.defineProperty(e,t,{value:!0,enumerable:!0,configurable:!0,writable:!0}):e[t]=!0,e},hasLeftFixedColumn:function(){return this.colgroups.some(function(e){return"left"===e.fixed})},expandTdContentStyle:function(){var e={},t=this.hasLeftFixedColumn,n=this.tableViewportWidth;return t&&n&&(e.width=n+"px"),e}},methods:{getExpandRowContent:function(e){var t=this.expandOption;return t.render&&t.render({row:this.rowData,column:this.expandColumn,rowIndex:this.rowIndex},e)}},render:function(e){var t=this.isRowExpanded,n=this.columnCount,r=this.getExpandRowContent,i=null;if(t){var o=r(e);i=e("tr",{class:this.expanRowClass},[e("td",{class:Xt("expand-td"),attrs:{colSpan:n}},[e("div",{class:Xt("expand-td-content"),style:this.expandTdContentStyle},[o])])])}return i}};function ar(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sr={name:Nt,mixins:[Rn],props:{tableViewportWidth:{type:Number,default:0},columnsOptionResetTime:{type:Number,default:0},colgroups:{type:Array,required:!0},actualRenderTableData:{type:Array,required:!0},hasFixedColumn:{type:Boolean,default:!1},allRowKeys:{type:Array,required:!0},expandOption:{type:Object,default:function(){return null}},checkboxOption:{type:Object,default:function(){return null}},radioOption:{type:Object,default:function(){return null}},virtualScrollOption:{type:Object,default:null},isVirtualScroll:{type:Boolean,default:!1},showVirtualScrollingPlaceholder:{type:Boolean,default:!1},rowKeyFieldName:{type:String,default:null},cellStyleOption:{type:Object,default:function(){return null}},cellSpanOption:{type:Object,default:function(){return null}},highlightRowKey:{type:[String,Number],default:null},eventCustomOption:{type:Object,default:function(){return null}},cellSelectionOption:{type:Object,default:function(){return null}},cellSelectionData:{type:Object,default:function(){return null}},cellSelectionRangeData:{type:Object,default:function(){return null}},bodyIndicatorRowKeys:{type:Object,default:function(){return null}},editOption:{type:Object,default:function(){return null}}},data:function(){return{colsWidths:new Map,internalExpandRowkeys:[],internalCheckboxSelectedRowKeys:[],internalRadioSelectedRowKey:null,virtualScrollPreviewRenderedRowKeys:[],virtualScrollRepeatRenderedRowKeys:[]}},computed:{columnCollection:function(){var e=this,t=[],n=this.colgroups;return n.forEach(function(r){var i,o=r.key,a={colKey:o,class:(i={},ar(i,Xt("last-left-fixed-column"),e.isLastLeftFixedColumn(r)),ar(i,Xt("first-right-fixed-column"),e.isfirstRightFixedColumn(r)),i),style:{}},s=r.fixed,l=r.align;if(a.style["text-align"]=l||"center",s){var c=0,u=n.findIndex(function(e){return e.key===o});("left"===s&&u>0||"right"===s&&u<n.length-1)&&(c=d(c=nn({colgroups:n,colKey:o,fixed:s}))),a.style.left="left"===s?c:"",a.style.right="right"===s?c:""}t.push(a)}),t},expandColumn:function(){return this.colgroups.find(function(e){return e.type===Be})},isControlledExpand:function(){return this.expandOption&&Array.isArray(this.expandOption.expandedRowKeys)},expandedRowkeys:function(){return this.isControlledExpand?this.expandOption.expandedRowKeys:this.internalExpandRowkeys},disableCheckboxSelectedRowKeys:function(){var e=[],t=this.checkboxOption,n=this.internalCheckboxSelectedRowKeys;if(!t)return e;var r=t.disableSelectedRowKeys;return n.length>0&&Array.isArray(r)&&r.length>0&&r.forEach(function(t){n.includes(t)&&e.push(t)}),e},disableCheckboxUnselectedRowKeys:function(){var e=[],t=this.checkboxOption,n=this.internalCheckboxSelectedRowKeys;if(!t)return e;var r=t.disableSelectedRowKeys;return Array.isArray(r)&&r.length>0&&r.forEach(function(t){n.includes(t)||e.push(t)}),e},isCheckboxSelectedAll:function(){return this.allRowKeys.length>0&&this.internalCheckboxSelectedRowKeys.length+this.disableCheckboxUnselectedRowKeys.length===this.allRowKeys.length},isCheckboxIndeterminate:function(){var e=this.internalCheckboxSelectedRowKeys,t=this.allRowKeys;return e.length>0&&e.length<t.length},isControlledRadio:function(){var e=this.radioOption;return e&&Object.keys(e).includes("selectedRowKey")}},watch:{expandOption:{handler:function(){this.initInternalExpandRowKeys()},immediate:!0},"expandOption.expandedRowKeys":{handler:function(){this.initInternalExpandRowKeys()}},checkboxOption:{handler:function(){this.initInternalCheckboxSelectedRowKeys()},immediate:!0},"checkboxOption.selectedRowKeys":{handler:function(){this.resetInternalCheckboxSelectedRowKeys()}},internalCheckboxSelectedRowKeys:{handler:function(){this.sendToCheckboxAll()}},radioOption:{handler:function(){this.initInternalRadioSelectedRowKey()},immediate:!0},"radioOption.selectedRowKey":{handler:function(){this.initInternalRadioSelectedRowKey()}}},methods:{isLastLeftFixedColumn:function(e){var t=!1,n=this.colgroups;if("left"===e.fixed){var r=e.field,i=n.filter(function(e){return"left"===e.fixed});i.findIndex(function(e){return e.field===r})===i.length-1&&(t=!0)}return t},isfirstRightFixedColumn:function(e){var t=!1,n=this.colgroups;if("right"===e.fixed){var r=e.field;n.filter(function(e){return"right"===e.fixed})[0].field===r&&(t=!0)}return t},expandRowChange:function(e,t){var n=this.expandOption,r=this.internalExpandRowkeys,i=this.expandedRowkeys,o=this.rowKeyFieldName;if("function"==typeof n.beforeExpandRowChange&&!1===n.beforeExpandRowChange({beforeExpandedRowKeys:i,row:e,rowIndex:t}))return!1;var a=e[o],s=r.indexOf(a);s>-1?r.splice(s,1):r.push(a),"function"==typeof n.afterExpandRowChange&&n.afterExpandRowChange({afterExpandedRowKeys:r,row:e,rowIndex:t})},rowClick:function(e){var t=e.rowData,n=e.rowIndex,r=this.expandOption,i=this.isExpandRow,o=this.expandRowChange,a=this.rowKeyFieldName;if(a){var s=t[a];this.$emit(kt,{rowKey:s})}if(!i({rowData:t,rowIndex:n}))return!1;"row"===r.trigger&&o(t,n)},isExpandRow:function(e){var t=e.rowData,n=e.rowIndex,r=!1,i=this.expandColumn,o=this.expandOption;if(i&&o){var a=!0;"function"==typeof o.expandable&&(a=o.expandable({row:t,column:i,rowIndex:n})),!1!==a&&(r=!0)}return r},tdSizeChange:function(e){var t=e.key,n=e.width,r=this.colsWidths;r.set(t,n),this.$emit(Ye,r)},initInternalExpandRowKeys:function(){var e=this.expandOption,t=this.isControlledExpand,n=this.allRowKeys;if(!e)return!1;t?this.internalExpandRowkeys=e.expandedRowKeys.slice(0):e.defaultExpandAllRows?this.internalExpandRowkeys=n:e.defaultExpandedRowKeys&&(this.internalExpandRowkeys=e.defaultExpandedRowKeys.slice(0))},getExpandRowComp:function(e){var t=e.rowData,n=e.rowIndex,r=this.$createElement;if(this.isExpandRow({rowData:t,rowIndex:n})){var i={props:{tableViewportWidth:this.tableViewportWidth,colgroups:this.colgroups,expandOption:this.expandOption,expandedRowkeys:this.expandedRowkeys,expandColumn:this.expandColumn,rowKeyFieldName:this.rowKeyFieldName,rowData:t,rowIndex:n}};return r(or,i)}return null},sendToCheckboxAll:function(){var e=this.isCheckboxSelectedAll,t=this.isCheckboxIndeterminate;this.dispatch(Pt,dt,{isIndeterminate:t,isSelected:e})},initInternalRadioSelectedRowKey:function(){var e=this.radioOption,t=this.isControlledRadio;if(!e)return!1;var n=e.selectedRowKey,r=e.defaultSelectedRowKey;this.internalRadioSelectedRowKey=t?n:r},initInternalCheckboxSelectedRowKeys:function(){var e=[],t=this.checkboxOption,n=this.allRowKeys;if(!t)return!1;var r=t.selectedRowKeys,i=t.defaultSelectedAllRows,o=t.defaultSelectedRowKeys;Array.isArray(r)?e=r:i?e=n:Array.isArray(o)&&(e=o),this.internalCheckboxSelectedRowKeys=e},resetInternalCheckboxSelectedRowKeys:function(){this.internalCheckboxSelectedRowKeys=this.checkboxOption.selectedRowKeys.slice(0)},checkboxSelectedRowChange:function(e){var t=e.rowKey,n=e.isSelected,r=this.checkboxOption,i=this.internalCheckboxSelectedRowKeys,o=this.rowKeyFieldName,a=r.selectedRowChange,s=r.selectedRowKeys,l=i.slice(0),c=l.indexOf(t);n?-1===c&&l.push(t):c>-1&&l.splice(c,1),Array.isArray(s)||(this.internalCheckboxSelectedRowKeys=l),a({row:this.actualRenderTableData.find(function(e){return e[o]===t}),isSelected:n,selectedRowKeys:l})},checkboxSelectedAllChange:function(e){var t=e.isSelected,n=this.checkboxOption,r=this.internalCheckboxSelectedRowKeys,i=this.allRowKeys,o=this.disableCheckboxSelectedRowKeys,a=this.disableCheckboxUnselectedRowKeys,s=n.selectedAllChange,l=n.selectedRowKeys,c=r.slice(0);if(t){var u=i.slice(0);a.length>0&&a.forEach(function(e){var t=u.indexOf(e);t>-1&&u.splice(t,1)}),c=u}else c=o;Array.isArray(l)||(this.internalCheckboxSelectedRowKeys=c),s&&s({isSelected:t,selectedRowKeys:c})},radioSelectedRowChange:function(e){var t=e.rowKey,n=this.radioOption,r=this.rowKeyFieldName,i=this.isControlledRadio,o=n.selectedRowChange;i||(this.internalRadioSelectedRowKey=t),o({row:this.actualRenderTableData.find(function(e){return e[r]===t})})},getTrKey:function(e){var t=e.rowData,n=e.rowIndex,r=this.rowKeyFieldName;return r&&(n=t[r]),n},renderingRowKeys:function(e){var t=this.virtualScrollPreviewRenderedRowKeys;this.virtualScrollRepeatRenderedRowKeys=e.filter(function(e){return-1!=t.indexOf(e)}),this.virtualScrollPreviewRenderedRowKeys=e}},mounted:function(){var e=this;this.$on(ct,function(t){e.checkboxSelectedRowChange(t)}),this.$on(ut,function(t){e.checkboxSelectedAllChange(t)}),this.$on(ft,function(t){e.radioSelectedRowChange(t)}),this.$on(et,function(t){e.rowClick(t)}),this.checkboxOption&&this.$nextTick(function(){e.sendToCheckboxAll()}),document.addEventListener("keydown",this.dealKeydownEvent)},destroyed:function(){document.removeEventListener("keydown",this.dealKeydownEvent)},render:function(){var e=this,t=arguments[0],n=this.colgroups,r=this.actualRenderTableData,i=this.expandOption,o=this.expandRowChange,a=this.isExpandRow,s=this.getExpandRowComp,l=this.expandedRowkeys,c=this.checkboxOption,u=this.radioOption,d=this.rowKeyFieldName,f=this.tdSizeChange,h=this.internalCheckboxSelectedRowKeys,p=this.internalRadioSelectedRowKey,m=this.isVirtualScroll,y=this.cellStyleOption,v=this.showVirtualScrollingPlaceholder,g=this.virtualScrollRepeatRenderedRowKeys;return t("tbody",[t("tr",{style:"height:0;"},[n.map(function(n){var r={key:tn(n.key,e.columnsOptionResetTime),props:{tagName:"td",id:n.key},on:{"on-dom-resize-change":f},style:{padding:0,border:0,height:0}};return t(Wn,r)})]),r.map(function(r,f){var b={key:e.getTrKey({rowData:r,rowIndex:f}),props:{rowIndex:f,rowData:r,colgroups:n,expandOption:i,expandedRowkeys:l,checkboxOption:c,radioOption:u,rowKeyFieldName:d,allRowKeys:e.allRowKeys,expandRowChange:o,internalCheckboxSelectedRowKeys:h,internalRadioSelectedRowKey:p,isVirtualScroll:m,isExpandRow:a({rowData:r,rowIndex:f}),cellStyleOption:y,cellSpanOption:e.cellSpanOption,highlightRowKey:e.highlightRowKey,eventCustomOption:e.eventCustomOption,cellSelectionData:e.cellSelectionData,editOption:e.editOption,columnCollection:e.columnCollection,cellSelectionRangeData:e.cellSelectionRangeData,bodyIndicatorRowKeys:e.bodyIndicatorRowKeys}};if(v){var _={key:e.getTrKey({rowData:r,rowIndex:f}),props:{colgroups:n}};return-1!=g.indexOf(r[e.rowKeyFieldName])?[t(nr,b)]:t(ir,_)}return[t(nr,b),s({rowData:r,rowIndex:f})]})])}};function lr(e){return(lr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var cr={name:Kt,mixins:[Rn],props:{rowData:{type:Object,required:!0},column:{type:Object,required:!0},rowIndex:{type:Number,required:!0},colgroups:{type:Array,required:!0},rowKeyFieldName:{type:String,default:null},cellSpanOption:{type:Object,default:function(){return null}},cellStyleOption:{type:Object,default:function(){return null}},eventCustomOption:{type:Object,default:function(){return null}},cellSelectionData:{type:Object,default:function(){return null}},footerRows:{type:Array,default:function(){return[]}},fixedFooter:{type:Boolean,default:!0}},computed:{isLastLeftFixedColumn:function(){var e=!1,t=this.colgroups,n=this.column;if("left"===n.fixed){var r=n.field,i=t.filter(function(e){return"left"===e.fixed});i.findIndex(function(e){return e.field===r})===i.length-1&&(e=!0)}return e},isfirstRightFixedColumn:function(){var e=!1,t=this.colgroups,n=this.column;if("right"===n.fixed){var r=n.field;t.filter(function(e){return"right"===e.fixed})[0].field===r&&(e=!0)}return e}},methods:{getBodyTdClass:function(e){var t,n,r=e.fixed,i=(t={},!0,(n=Xt("footer-td"))in t?Object.defineProperty(t,n,{value:!0,enumerable:!0,configurable:!0,writable:!0}):t[n]=!0,t),o=this.cellStyleOption,a=this.rowData,s=this.column,l=this.rowIndex,c=this.cellSelectionData,u=this.rowKeyFieldName;if(r&&(i[Xt("fixed-left")]="left"===r,i[Xt("fixed-right")]="right"===r,i[Xt("last-left-fixed-column")]=this.isLastLeftFixedColumn,i[Xt("first-right-fixed-column")]=this.isfirstRightFixedColumn),o&&"function"==typeof o.footerCellClass){var d=o.footerCellClass({row:a,column:s,rowIndex:l});d&&(i[d]=!0)}if(c){var f=c.currentCell,h=f.rowKey,p=f.colKey;a[u]===h&&s.key===p&&(i[Xt("cell-selection")]=!0)}return i},getBodyTdStyle:function(e){var t=e.key,n=e.align,r=e.fixed,i={},o=this.colgroups,a=this.rowIndex,s=this.footerRows;if(i["text-align"]=n||"center",r){var l=0,c=o.findIndex(function(e){return e.key===t});("left"===r&&c>0||"right"===r&&c<o.length-1)&&(l=d(l=nn({colgroups:o,colKey:t,fixed:r}))),i.left="left"===r?l:"",i.right="right"===r?l:""}if(this.fixedFooter){var u=0;a!==s.length-1&&(u=s.reduce(function(e,t,n){return n>a?t.rowHeight+e:e},0)),u=d(u),i.bottom=u}return i},getRenderContent:function(e){var t=this.column,n=this.rowData,r=this.rowIndex;return"function"==typeof t.renderFooterCell?t.renderFooterCell({row:n,column:t,rowIndex:r},e):n[t.field]},getCellSpan:function(){var e=this.cellSpanOption,t=this.rowData,n=this.column,r=this.rowIndex,i=1,o=1;if(e){var a=e.footerCellSpan;if("function"==typeof a){var s=a({row:t,column:n,rowIndex:r});"object"===lr(s)&&(i=s.rowspan,o=s.colspan)}}return{rowspan:i,colspan:o}},cellClick:function(e,t){t&&t(e)},cellDblclick:function(e,t){t&&t(e)},cellContextmenu:function(e,t){t&&t(e)},cellMouseenter:function(e,t){t&&t(e)},cellMouseleave:function(e,t){t&&t(e)},cellMousemove:function(e,t){t&&t(e)},cellMouseover:function(e,t){t&&t(e)},cellMousedown:function(e,t){t&&t(e)},cellMouseup:function(e,t){t&&t(e)}},render:function(e){var t=this,n=this.column,r=this.rowData,i=this.rowIndex,o=this.eventCustomOption,a=this.getCellSpan(),s=a.rowspan,l=a.colspan;if(!s||!l)return null;var c={};if(o){var u=o.footerCellEvents;c=u?u({row:r,column:n,rowIndex:i}):{}}var d=c,f=d.click,h=d.dblclick,p=d.contextmenu,m=d.mouseenter,y=d.mouseleave,v=d.mousemove,g=d.mouseover,b=d.mousedown,_=d.mouseup,k={click:function(e){t.cellClick(e,f)},dblclick:function(e){t.cellDblclick(e,h)},contextmenu:function(e){t.cellContextmenu(e,p)},mouseenter:function(e){t.cellMouseenter(e,m)},mouseleave:function(e){t.cellMouseleave(e,y)},mousemove:function(e){t.cellMousemove(e,v)},mouseover:function(e){t.cellMouseover(e,g)},mousedown:function(e){t.cellMousedown(e,b)},mouseup:function(e){t.cellMouseup(e,_)}};return e("td",{class:this.getBodyTdClass(n),style:this.getBodyTdStyle(n),attrs:{rowspan:s,colspan:l},on:k},[this.getRenderContent(e)])}};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}var dr,fr={name:Ft,mixins:[Rn],props:{rowData:{type:Object,required:!0},rowIndex:{type:Number,required:!0},colgroups:{type:Array,required:!0},rowKeyFieldName:{type:String,default:null},cellStyleOption:{type:Object,default:function(){return null}},cellSpanOption:{type:Object,default:function(){return null}},eventCustomOption:{type:Object,default:function(){return null}},cellSelectionData:{type:Object,default:function(){return null}},footerRows:{type:Array,default:function(){return[]}},fixedFooter:{type:Boolean,default:!0}},computed:{currentRowKey:function(){var e=this.rowKeyFieldName;return e?this.rowData[e]:null},trClass:function(){return ur({},Xt("footer-tr"),!0)}},methods:{trHeightChange:function(e){var t=e.height;this.dispatch(Pt,Je,{rowIndex:this.rowIndex,height:t})},rowClick:function(e,t){t&&t(e)},rowDblclick:function(e,t){t&&t(e)},rowContextmenu:function(e,t){t&&t(e)},rowMouseenter:function(e,t){t&&t(e)},rowMouseleave:function(e,t){t&&t(e)},rowMousemove:function(e,t){t&&t(e)},rowMouseover:function(e,t){t&&t(e)},rowMousedown:function(e,t){t&&t(e)},rowMouseup:function(e,t){t&&t(e)}},render:function(){var e=this,t=arguments[0],n=this.colgroups,r=this.rowKeyFieldName,i=this.rowIndex,o=this.rowData,a=this.cellStyleOption,s=this.eventCustomOption,l={};if(s){var c=s.footerRowEvents;l=c?c({row:o,rowIndex:i}):{}}var u=l,d=u.click,f=u.dblclick,h=u.contextmenu,p=u.mouseenter,m=u.mouseleave,y=u.mousemove,v=u.mouseover,g=u.mousedown,b=u.mouseup,_={click:function(t){e.rowClick(t,d)},dblclick:function(t){e.rowDblclick(t,f)},contextmenu:function(t){e.rowContextmenu(t,h)},mouseenter:function(t){e.rowMouseenter(t,p)},mouseleave:function(t){e.rowMouseleave(t,m)},mousemove:function(t){e.rowMousemove(t,y)},mouseover:function(t){e.rowMouseover(t,v)},mousedown:function(t){e.rowMousedown(t,g)},mouseup:function(t){e.rowMouseup(t,b)}},k={class:this.trClass,props:{tagName:"tr"},attrs:ur({},Vt,this.currentRowKey),nativeOn:_,on:{"on-dom-resize-change":this.trHeightChange}};return t(Wn,k,[n.map(function(s){var l={key:s.key,props:{rowIndex:i,rowData:o,column:s,colgroups:n,rowKeyFieldName:r,cellStyleOption:a,cellSelectionData:e.cellSelectionData,footerRows:e.footerRows,fixedFooter:e.fixedFooter,cellSpanOption:e.cellSpanOption,eventCustomOption:e.eventCustomOption}};return t(cr,l)})])}},hr={name:"VeTableFooter",props:{colgroups:{type:Array,required:!0},footerData:{type:Array,required:!0},hasFixedColumn:{type:Boolean,default:!1},allRowKeys:{type:Array,required:!0},rowKeyFieldName:{type:String,default:null},cellStyleOption:{type:Object,default:function(){return null}},eventCustomOption:{type:Object,default:function(){return null}},footerRows:{type:Array,default:function(){return[]}},fixedFooter:{type:Boolean,default:!0},cellSpanOption:{type:Object,default:function(){return null}}},computed:{footerClass:function(){return e={},t=Xt("fixed-footer"),n=this.fixedFooter,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},methods:{getTrKey:function(e){var t=e.rowData,n=e.rowIndex,r=this.rowKeyFieldName;return r&&(n=t[r]),n}},render:function(){var e=this,t=arguments[0],n=this.colgroups,r=this.rowKeyFieldName,i=this.cellStyleOption;return t("tfoot",{class:this.footerClass},[this.footerData.map(function(o,a){var s={key:e.getTrKey({rowData:o,rowIndex:a}),props:{rowIndex:a,rowData:o,colgroups:n,rowKeyFieldName:r,cellStyleOption:i,footerRows:e.footerRows,fixedFooter:e.fixedFooter,cellSpanOption:e.cellSpanOption,eventCustomOption:e.eventCustomOption}};return t(fr,s)})])}},pr="textareaSelect";function mr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yr,vr={name:"VeTableEditInput",directives:{focus:{bind:function(e,t,n){var r=t.value;if(r){var i=r.focus,o=r.select;n.context.$nextTick(function(){i&&e.focus(),o&&e.select()})}},update:function(e,t){var n=t.value;n&&n.focus&&e.focus()}}},mixins:[Rn],props:{parentRendered:{type:Boolean,required:!0},hooks:{type:Object,required:!0},inputStartValue:{type:[String,Number],required:!0},rowKeyFieldName:{type:String,default:null},tableData:{type:Array,required:!0},colgroups:{type:Array,required:!0},cellSelectionData:{type:Object,required:!0},editingCell:{type:Object,required:!0},isCellEditing:{type:Boolean,required:!0},hasXScrollBar:{type:Boolean,required:!0},hasYScrollBar:{type:Boolean,required:!0},hasRightFixedColumn:{type:Boolean,required:!0},scrollBarWidth:{type:Number,required:!0}},data:function(){return{textareaInputRef:"textareaInputRef",rawCellValue:"",displayTextarea:!1,overflowViewport:!1,textareaRect:{left:0,top:0},tableEl:null,cellEl:null,autoResize:null,isEditCellFocus:!1}},computed:{currentColumn:function(){var e=null,t=this.colgroups,n=this.cellSelectionData.currentCell;return s(n.rowKey)||s(n.colKey)||(e=t.find(function(e){return e.key===n.colKey})),e},containerClass:function(){var e,t=this.displayTextarea,n=this.overflowViewport;return mr(e={},Xt("edit-input-container"),!0),mr(e,Xt("edit-input-container-show"),t&&!n),e},containerStyle:function(){var e=this.displayTextarea,t=this.overflowViewport,n=this.textareaRect,r=this.currentColumn,i=n.top,o=n.left;return e&&!t?{top:i+"px",left:o+"px",height:null,"z-index":r.fixed?10:0,opacity:1}:{top:i+"px",left:o+"px",height:"1px","z-index":-1,opacity:0}},textareaClass:function(){return mr({},Xt("edit-input"),!0)}},watch:{parentRendered:{handler:function(e){var t=this;e&&(this.setTableEl(),this.hooks.addHook(Et,function(){t.displayTextarea&&(t.cellEl||t.setCellEl()),t.debounceSetCellEl(),t.setTextareaPosition(),t.debounceSetTextareaPosition()}),this.hooks.addHook(Dt,function(){t.setTextareaPosition()}))},immediate:!0},"cellSelectionData.currentCell":{handler:function(e){var t=this;this.isEditCellFocus=!1;var n=e.rowKey,r=e.colKey;s(n)||s(r)||(this.setCellEl(),this.$nextTick(function(){t.setTextareaPosition(),setTimeout(function(){t.isEditCellFocus=!0})}))},deep:!0,immediate:!0},"cellSelectionData.normalEndCell":{handler:function(e){s(e.colKey)||this[pr]()},deep:!0,immediate:!0},isCellEditing:{handler:function(e){e?this.showTextarea():this.hideTextarea()},deep:!0,immediate:!0},inputStartValue:{handler:function(){this.setRawCellValue()},immediate:!0}},methods:(dr={setTableEl:function(){var e=this;this.$nextTick(function(){var t=e.$el.previousElementSibling;e.tableEl=t})},setCellEl:function(){var e=this.cellSelectionData,t=this.tableEl,n=e.currentCell,r=n.rowKey,i=n.colKey;if(t){var o=t.querySelector('tbody.ve-table-body tr[row-key="'.concat(r,'"] td[col-key="').concat(i,'"]'));o&&(this.cellEl=o,this.overflowViewport=!1)}},setTextareaPosition:function(){var e=this.hasXScrollBar,t=this.hasYScrollBar,n=this.scrollBarWidth,r=this.colgroups,i=this.hasRightFixedColumn,o=this.currentColumn,a=this.cellEl,s=this.tableEl;if(a&&s){var l=s.getBoundingClientRect(),c=l.left,u=l.top,d=l.right,f=l.bottom,h=a.getBoundingClientRect(),p=h.left,m=h.top,y=h.height,v=h.width,g=h.right,b=h.bottom;if(y&&v){var _=y+f-b,k=v+d-g;if(e&&(_-=n),t&&(k-=n),i&&o&&!o.fixed){var w=nn({colgroups:r,colKey:o.key,fixed:"right"});w&&(k-=w)}this.autoResize.init(this.$refs[this.textareaInputRef],{minHeight:Math.min(y,_),maxHeight:_,minWidth:Math.min(v,k),maxWidth:k},!0),this.textareaRect={left:p-c,top:m-u}}else this.textareaRect={left:0,top:0},this.cellEl=null,this.overflowViewport=!0}},showTextarea:function(){this.setRawCellValue(),this.displayTextarea=!0},hideTextarea:function(){this.displayTextarea=!1,this.textareaUnObserve()},textareaUnObserve:function(){this.autoResize&&this.autoResize.unObserve()},setRawCellValue:function(){this.rawCellValue=this.inputStartValue},textareaValueChange:function(e){this.$emit(xt,e)}},mr(dr,pr,function(){var e=this.$refs[this.textareaInputRef];e&&e.select()}),mr(dr,"textareaAddNewLine",function(){var e=this.isCellEditing,t=this.editingCell;if(e){var n=this.$refs[this.textareaInputRef],r=function(e){var t=document;if(e.selectionStart)return e.selectionStart;if(t.selection){e.focus();var n=t.selection.createRange();if(null===n)return 0;var r=e.createTextRange(),i=r.duplicate();return r.moveToBookmark(n.getBookmark()),i.setEndPoint("EndToStart",r),i.text.length}return 0}(n),i=t.row[t.colKey],o="".concat((i+="").slice(0,r),"\n").concat(i.slice(r));n.value=o,this.textareaValueChange(o),function(e,t,n){if(void 0===n&&(n=t),e.setSelectionRange){e.focus();try{e.setSelectionRange(t,n)}catch(o){var r=e.parentNode,i=r.style.display;r.style.display="block",e.setSelectionRange(t,n),r.style.display=i}}}(n,r+1)}}),dr),created:function(){var e=this;this.debounceSetTextareaPosition=Object(P.debounce)(this.setTextareaPosition,210),this.debounceSetCellEl=Object(P.debounce)(function(){e.displayTextarea&&(e.cellEl||e.setCellEl())},200)},mounted:function(){this.autoResize=function(){var e,t={minHeight:200,maxHeight:300,minWidth:100,maxWidth:300,paddingWidth:16},n=document.body,r=document.createTextNode(""),i=document.createElement("SPAN"),o=function(e,t,n){e.addEventListener(t,n,!1)},a=function(e,t,n){e.removeEventListener(t,n,!1)},s=function(o){var a,s;o?/^[a-zA-Z \.,\\\/\|0-9]$/.test(o)||(o="."):o="",void 0!==r.textContent?r.textContent=e.value+o:r.data=e.value+o,i.style.fontSize=u(e).fontSize,i.style.fontFamily=u(e).fontFamily,i.style.whiteSpace="pre",n.appendChild(i),a=i.clientWidth+t.paddingWidth,n.removeChild(i),e.style.height=t.minHeight+"px",t.minWidth>a?e.style.width=t.minWidth+"px":a>t.maxWidth?e.style.width=t.maxWidth+"px":e.style.width=a+"px",s=e.scrollHeight?e.scrollHeight-1:0,t.minHeight>s?e.style.height=t.minHeight+"px":t.maxHeight<s?(e.style.height=t.maxHeight+"px",e.style.overflowY="visible"):e.style.height=s+"px"},l=function(){window.setTimeout(s,0)},c=function(n,a,c){e=n,function(n){if(n&&n.minHeight)if("inherit"==n.minHeight)t.minHeight=e.clientHeight;else{var o=parseInt(n.minHeight);isNaN(o)||(t.minHeight=o)}if(n&&n.maxHeight)if("inherit"==n.maxHeight)t.maxHeight=e.clientHeight;else{var a=parseInt(n.maxHeight);isNaN(a)||(t.maxHeight=a)}if(n&&n.minWidth)if("inherit"==n.minWidth)t.minWidth=e.clientWidth;else{var s=parseInt(n.minWidth);isNaN(s)||(t.minWidth=s)}if(n&&n.maxWidth)if("inherit"==n.maxWidth)t.maxWidth=e.clientWidth;else{var l=parseInt(n.maxWidth);isNaN(l)||(t.maxWidth=l)}i.firstChild||(i.className="autoResize",i.style.display="inline-block",i.appendChild(r))}(a),"TEXTAREA"==e.nodeName&&(e.style.resize="none",e.style.overflowY="",e.style.height=t.minHeight+"px",e.style.minWidth=t.minWidth+"px",e.style.maxWidth=t.maxWidth+"px",e.style.overflowY="hidden"),c&&(o(e,"change",s),o(e,"cut",l),o(e,"paste",l),o(e,"drop",l),o(e,"keydown",l),o(e,"focus",s),o(e,"compositionstart",l),o(e,"compositionupdate",l),o(e,"compositionend",l)),s()};function u(e){return e.currentStyle||document.defaultView.getComputedStyle(e)}return{init:function(e,t,n){c(e,t,n)},unObserve:function(){if(!e)return!1;a(e,"change",s),a(e,"cut",l),a(e,"paste",l),a(e,"drop",l),a(e,"keydown",l),a(e,"focus",s),a(e,"compositionstart",l),a(e,"compositionupdate",l),a(e,"compositionend",l)},resize:s}}()},destroyed:function(){this.textareaUnObserve()},render:function(){var e=this,t=arguments[0],n=this.containerClass,r=this.containerStyle,i=this.textareaClass,o=this.rawCellValue,a=this.isCellEditing,s=this.isEditCellFocus;return t("div",{style:r,class:n},[t("textarea",{ref:this.textareaInputRef,class:i,directives:[{name:"focus",value:{focus:s}}],domProps:{value:o},attrs:{tabindex:-1},on:{input:function(t){a&&(e.textareaValueChange(t.target.value),e.rawCellValue=t.target.value)},click:function(){e.$emit(wt)},copy:function(t){e.$emit(Ct,t)},paste:function(t){e.$emit(St,t)},cut:function(t){e.$emit(At,t)}}})])}},gr="clearCurrentCellRect",br="clearNormalEndCellRect";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 kr(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){wr(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 wr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xr={name:"VeTableSelection",mixins:[Rn],props:{tableEl:{type:HTMLTableElement,default:null},allRowKeys:{type:Array,required:!0},colgroups:{type:Array,required:!0},parentRendered:{type:Boolean,required:!0},hooks:{type:Object,required:!0},cellAutofillOption:{type:[Object,Boolean],default:function(){return null}},cellSelectionData:{type:Object,required:!0},cellSelectionRangeData:{type:Object,required:!0},isAutofillStarting:{type:Boolean,required:!0},currentCellSelectionType:{type:String,default:""},showVirtualScrollingPlaceholder:{type:Boolean,default:!1},isVirtualScroll:{type:Boolean,default:!1},virtualScrollVisibleIndexs:{type:Object,required:!0},isCellEditing:{type:Boolean,default:!1}},data:function(){return{currentCellEl:null,normalEndCellEl:null,autoFillEndCellEl:null,cellSelectionRect:{currentCellRect:{left:0,top:0,width:0,height:0},normalEndCellRect:{left:0,top:0,width:0,height:0},autoFillEndCellRect:{left:0,top:0,width:0,height:0}}}},computed:{selectionBordersVisibility:function(){var e=!0;if(this.isVirtualScroll){var t=this.showVirtualScrollingPlaceholder,n=this.cellSelectionData,r=this.virtualScrollVisibleIndexs,i=this.currentCellSelectionType;if(t)e=!1;else{var o=n.currentCell,a=n.normalEndCell;i===Ge&&(o.rowIndex<r.start||o.rowIndex>r.end)&&(e=!1),i===Ze&&(o.rowIndex<r.start&&a.rowIndex<r.start||o.rowIndex>r.end&&a.rowIndex>r.end)&&(e=!1)}}return e},showCorner:function(){var e=!0;if(this.cellAutofillOption){var t=this.cellAutofillOption,n=t.directionX,r=t.directionY;c(r)&&!r&&c(n)&&!n&&(e=!1)}else e=!1;return e},cornerCellInfo:function(){var e=this.allRowKeys,t=this.colgroups,n=this.cellSelectionRangeData,r=n.rightColKey,i=n.bottomRowKey,o=!1;if(function(e,t){return!s(e)&&!a(t)&&t[t.length-1].key===e}(r,t))o=!0;else{var l=t.findIndex(function(e){return e.key===r});t[l+1].fixed===Ke&&t[l].fixed!==Ke&&(o=!0)}var c=!1;return function(e,t){return!s(e)&&!a(t)&&t[t.length-1]===e}(i,e)&&(c=!0),{isLastColumn:o,isLastRow:c}},isFirstSelectionRow:function(){var e=this.allRowKeys,t=this.cellSelectionRangeData;return e[0]===t.topRowKey},isFirstSelectionCol:function(){var e=this.colgroups,t=this.cellSelectionRangeData;return e[0].key===t.leftColKey},isFirstNotFixedSelectionCol:function(){var e=!1,t=this.colgroups,n=this.cellSelectionRangeData;if(t.find(function(e){return"left"===e.fixed})){var r=t.find(function(e){return!e.fixed});r&&r.field===n.leftColKey&&(e=!0)}return e}},watch:{parentRendered:{handler:function(e){var t=this;e&&(this.hooks.addHook(Et,function(){t.setCellEls(),t.debounceSetCellEls(),t.resetCellPositions(),t.debounceResetCellPositions()}),this.hooks.addHook(Dt,function(){t.debounceResetCellPositions()}),this.hooks.addHook(It,function(){t.$nextTick(function(){t.resetCellPositions()})}),this.hooks.addHook(Rt,function(){t.$nextTick(function(){t.resetCellPositions()})}))},immediate:!0},"cellSelectionData.currentCell":{handler:function(e){var t=e.rowKey,n=e.colKey;s(t)||s(n)?this[gr]():(this.setCurrentCellEl(),this.setSelectionPositions({type:"currentCell"})),this.setCellSelectionRangeData()},deep:!0,immediate:!0},"cellSelectionData.normalEndCell":{handler:function(e){var t=e.rowKey,n=e.colKey;s(t)||s(n)?this[br]():(this.setNormalEndCellEl(),this.setSelectionPositions({type:"normalEndCell"})),this.setCellSelectionRangeData()},deep:!0,immediate:!0},"cellSelectionData.autoFillEndCell":{handler:function(e){var t=e.rowKey,n=e.colKey;s(t)||s(n)?this.clearAutofillEndCellRect():(this.setAutofillEndCellEl(),this.setSelectionPositions({type:"autoFillEndCell"}))},deep:!0,immediate:!0}},methods:(yr={resetCellPositions:function(){var e=this.cellSelectionData,t=e.currentCell,n=e.normalEndCell;s(t.rowKey)||s(t.colKey)||this.setSelectionPositions({type:"currentCell"}),s(n.rowKey)||s(n.colKey)||this.setSelectionPositions({type:"normalEndCell"})},setCellEls:function(){this.isVirtualScroll&&this.selectionBordersVisibility&&(this.setCurrentCellEl(),this.setNormalEndCellEl())},setCellSelectionRangeData:function(){var e=this.currentCellSelectionType,t=this.cellSelectionData,n=t.currentCell,r=t.normalEndCell,i={};e===Ge?i={leftColKey:n.colKey,rightColKey:n.colKey,topRowKey:n.rowKey,bottomRowKey:n.rowKey}:e===Ze?(bn({colgroups:this.colgroups,colKeys:[n.colKey,r.colKey]})===n.colKey?(i.leftColKey=n.colKey,i.rightColKey=r.colKey):(i.leftColKey=r.colKey,i.rightColKey=n.colKey),n.rowIndex<r.rowIndex?(i.topRowKey=n.rowKey,i.bottomRowKey=r.rowKey):(i.topRowKey=r.rowKey,i.bottomRowKey=n.rowKey)):i={leftColKey:"",rightColKey:"",topRowKey:"",bottomRowKey:""},this.$emit(pt,i)},getCellPosition:function(e){var t=e.cellEl,n=e.tableLeft,r=e.tableTop;if(!this.selectionBordersVisibility)return!1;var i=t.getBoundingClientRect(),o=i.left,a=i.top,s=i.height,l=i.width;return s&&l?{left:o-n,top:a-r,width:l,height:s}:void 0},getCellPositionByColKey:function(e){var t,n=e.tableLeft,r=e.tableTop,i=e.colKey,o=e.isFirstRow,a=e.isLastRow;if(!this.selectionBordersVisibility)return!1;if(o?t=this.getTableFirstRowCellByColKey(i):a&&(t=this.getTableLastRowCellByColKey(i)),t){var s=t.getBoundingClientRect(),l=s.left,c=s.top,u=s.width;return u?{left:l-n,top:c-r,width:u}:void 0}},setSelectionPositions:function(e){var t=e.type,n=this.allRowKeys,r=this.tableEl,i=this.currentCellEl,o=this.normalEndCellEl,a=this.autoFillEndCellEl,s=this.cellSelectionData,l=this.virtualScrollVisibleIndexs;if(0===n.length)return!1;if(!r)return!1;var c=r.getBoundingClientRect(),u=c.left,d=c.top,f=!1,h=!1;if("currentCell"===t&&(f=!0,i)){var p=this.getCellPosition({cellEl:i,tableLeft:u,tableTop:d});p&&(f=!1,this.cellSelectionRect.currentCellRect=p)}if("normalEndCell"===t&&(h=!0,o)){var m=this.getCellPosition({cellEl:o,tableLeft:u,tableTop:d});m&&(h=!1,this.cellSelectionRect.normalEndCellRect=m)}if((f||h)&&this.isVirtualScroll){var y,v,g,b=s.currentCell,_=s.normalEndCell;if(f?(y=b.colKey,v=b.rowIndex):(y=_.colKey,v=_.rowIndex),f&&!this.cellSelectionRect.currentCellRect.height||h&&!this.cellSelectionRect.normalEndCellRect.height){var k={tableLeft:u,tableTop:d,colKey:y};v<l.start?g=this.getCellPositionByColKey(kr(kr({},k),{},{isFirstRow:!0})):v>l.end&&(g=this.getCellPositionByColKey(kr(kr({},k),{},{isLastRow:!0})))}else v<l.start?g={top:0}:v>l.end&&(g={top:r.clientHeight});f?Object.assign(this.cellSelectionRect.currentCellRect,g):Object.assign(this.cellSelectionRect.normalEndCellRect,g)}if(a&&"autoFillEndCell"===t){var w=this.getCellPosition({cellEl:a,tableLeft:u,tableTop:d});w&&(this.cellSelectionRect.autoFillEndCellRect=w)}},getSelectionCurrent:function(e){var t=e.fixedType,n={selectionCurrent:null,autoFillArea:null},r=this.cellSelectionRect,i=this.colgroups,o=this.cellSelectionData,a=r.currentCellRect,s=r.normalEndCellRect;if(!a.width)return n;var l={borderWidth:a.width+1,borderHeight:a.height,topBorder:{show:!0,width:0,height:2,top:a.top-1,left:a.left-1},rightBorder:{show:!0,width:2,height:0,top:a.top,left:a.left+a.width-2},bottomBorder:{show:!0,width:0,height:2,top:a.top+a.height-2,left:a.left-1},leftBorder:{show:!0,width:2,height:0,top:a.top,left:a.left-1},corner:{show:!s.width,top:0,left:0}};l.corner.top=l.bottomBorder.top-3,l.corner.left=l.rightBorder.left-3,s.width||(n.autoFillArea=this.getSelectionAutofillArea({areaPostions:l,fixedType:t}));var c=[o.currentCell.colKey],u=cn({colKeys:c,fixedType:t,colgroups:i});return n.selectionCurrent=this.getBorders(kr(kr({},l),{},{showCorner:!s.width,className:"selection-current",fixedType:t,totalColKeys:c,fixedColKeys:u})),n},getSelectionAreas:function(e){var t=e.fixedType,n={normalArea:null,autoFillArea:null},r=this.cellSelectionData,i=r.currentCell,o=r.normalEndCell,a=this.cellSelectionRect,s=this.cellSelectionRangeData,l=this.colgroups,c=a.currentCellRect,u=a.normalEndCellRect;if(!c.width||!u.width)return n;var d={borderWidth:0,borderHeight:0,topBorder:{show:!0,width:0,height:1,top:0,left:0},rightBorder:{show:!0,width:1,height:0,top:0,left:0},bottomBorder:{show:!0,width:0,height:1,top:0,left:0},leftBorder:{show:!0,width:1,height:0,top:0,left:0},corner:{show:!0,top:0,left:0}},f=bn({colgroups:this.colgroups,colKeys:[i.colKey,o.colKey]});f===i.colKey?(d.borderWidth=u.left-c.left+u.width+1,d.topBorder.left=c.left-1,d.bottomBorder.left=c.left-1,d.leftBorder.left=c.left-1,d.rightBorder.left=u.left+u.width-1):f===o.colKey&&(d.borderWidth=c.left-u.left+c.width+1,d.topBorder.left=u.left-1,d.rightBorder.left=c.left+c.width-1,d.bottomBorder.left=u.left-1,d.leftBorder.left=u.left-1),u.top>c.top?(d.borderHeight=u.top-c.top+u.height,d.topBorder.top=c.top-1,d.rightBorder.top=c.top,d.bottomBorder.top=u.top+u.height-1,d.leftBorder.top=c.top):u.top<=c.top&&(d.borderHeight=c.top-u.top+c.height,d.topBorder.top=u.top-1,d.rightBorder.top=u.top,d.bottomBorder.top=c.top+c.height-1,d.leftBorder.top=u.top),d.corner.top=d.bottomBorder.top-4,d.corner.left=d.rightBorder.left-4,u.width&&(n.autoFillArea=this.getSelectionAutofillArea({areaPostions:d,fixedType:t}));var h=ln({colKey1:s.leftColKey,colKey2:s.rightColKey,colgroups:l}),p=cn({colKeys:h,fixedType:t,colgroups:l});return n.normalArea=this.getBorders(kr(kr({},d),{},{className:"selection-normal-area",fixedType:t,totalColKeys:h,fixedColKeys:p})),n.normalAreaLayer=this.getAreaLayer(kr(kr({},d),{},{className:"selection-normal-area-layer",fixedType:t,totalColKeys:h,fixedColKeys:p})),n},getSelectionAutofillArea:function(e){var t=e.areaPostions,n=e.fixedType,r=null,i=this.cellAutofillOption,o=this.cellSelectionRangeData,a=this.cellSelectionRect,l=this.cellSelectionData,u=this.isAutofillStarting,d=this.currentCellSelectionType,f=this.colgroups;if(!u)return r;var h=a.currentCellRect,p=a.autoFillEndCellRect;if(!h.width||!p.width)return r;if(!t)return r;var m,y,v,g,b,_,k={borderWidth:0,borderHeight:0,topBorder:{show:!0,width:0,height:1,top:0,left:0},rightBorder:{show:!0,width:1,height:0,top:0,left:0},bottomBorder:{show:!0,width:0,height:1,top:0,left:0},leftBorder:{show:!0,width:1,height:0,top:0,left:0},corner:{show:!1,top:0,left:0}},w=l.currentCell,x=l.autoFillEndCell,C=o.leftColKey,S=o.rightColKey;if(d===Ge&&(C=w.colKey,S=w.colKey),C!==x.colKey&&(m=bn({colgroups:f,colKeys:[C,x.colKey]})),S!==x.colKey&&(y=gn({type:"rightmost",colgroups:(v={colgroups:f,colKeys:[S,x.colKey]}).colgroups,colKeys:v.colKeys})),p.top>t.bottomBorder.top)g=$e,b=C,_=S,k.topBorder.show=!1,k.borderWidth=t.borderWidth,k.borderHeight=p.top-t.bottomBorder.top+p.height,k.rightBorder.top=t.bottomBorder.top,k.rightBorder.left=t.rightBorder.left,d===Ge&&k.rightBorder.left++,k.leftBorder.top=t.bottomBorder.top,k.leftBorder.left=t.leftBorder.left,k.bottomBorder.top=p.top+p.height-1,k.bottomBorder.left=t.bottomBorder.left;else if(p.top<t.topBorder.top)g=qe,b=C,_=S,k.bottomBorder.show=!1,k.borderWidth=t.borderWidth,k.borderHeight=t.topBorder.top-p.top,k.topBorder.top=p.top-1,k.topBorder.left=t.topBorder.left,k.rightBorder.top=p.top,k.rightBorder.left=t.rightBorder.left,d===Ge&&k.rightBorder.left++,k.leftBorder.top=p.top,k.leftBorder.left=t.leftBorder.left;else if(y!==x.colKey||s(y)){if(m!==x.colKey||s(m))return r;g=He,b=function(e){var t=e.colgroups,n=e.currentColKey,r=null;if(!s(n)){var i=t.findIndex(function(e){return e.key===n});0===i?r=n:i>0&&(r=t[i-1].key)}return r}({colgroups:f,currentColKey:C}),_=x.colKey,k.rightBorder.show=!1,k.borderWidth=t.leftBorder.left-p.left+1,k.borderHeight=t.borderHeight,k.topBorder.top=t.topBorder.top,k.topBorder.left=p.left,k.rightBorder.left=t.topBorder.left,k.bottomBorder.top=t.bottomBorder.top,k.bottomBorder.left=p.left,k.leftBorder.top=t.topBorder.top,k.leftBorder.left=p.left}else g=We,b=function(e){var t=e.colgroups,n=e.currentColKey,r=null;if(!s(n)){var i=t.findIndex(function(e){return e.key===n});i===t.length-1?r=n:i<t.length-1&&(r=t[i+1].key)}return r}({colgroups:f,currentColKey:S}),_=x.colKey,k.leftBorder.show=!1,k.borderWidth=p.left-t.rightBorder.left+p.width+1,k.borderHeight=t.borderHeight,k.topBorder.top=t.topBorder.top,k.topBorder.left=t.rightBorder.left-1,k.rightBorder.top=t.topBorder.top,k.rightBorder.left=p.left+p.width-1,k.bottomBorder.top=t.bottomBorder.top,k.bottomBorder.left=t.rightBorder.left-1;var A=i.directionX,O=i.directionY;if(c(A)&&!A&&(g===He||g===We))return!1;if(c(O)&&!O&&(g===qe||g===$e))return!1;var j=ln({colKey1:b,colKey2:_,colgroups:f}),T=cn({colKeys:j,fixedType:n,colgroups:f});return(r=this.getBorders(kr(kr({className:"selection-autofill-area"},k),{},{fixedType:n,totalColKeys:j,fixedColKeys:T})))&&this.dispatch(Pt,Tt,g),r},getBorders:function(e){var t=this,n=e.borderWidth,r=e.borderHeight,i=e.topBorder,o=e.rightBorder,a=e.bottomBorder,s=e.leftBorder,l=e.corner,c=e.className,u=e.fixedType,d=e.totalColKeys,f=e.fixedColKeys,h=this.$createElement,p=this.cornerCellInfo,m=this.colgroups,y=this.isFirstSelectionRow,v=this.isFirstSelectionCol,g=this.isFirstNotFixedSelectionCol,b=this.showCorner;if(!(u?yn({fixedType:u,colKeys:d,colgroups:m}):vn({colKeys:d,colgroups:m})))return null;var _=0;f.length&&(_=on({colKeys:f,colgroups:m})),u&&(n=_,u===Fe&&(n+=1)),u===Fe&&d.length!==f.length&&(o.show=!1,l.show=!1),u===Ke&&(d.length!==f.length&&(s.show=!1),i.left=o.left-n+1,a.left=o.left-n+1),y&&(i.top+=1),v&&(s.left+=1),g&&(s.left+=1);var k=l.top,w=l.left,x="1px",C="1px";p.isLastRow&&(k-=3,C="0px"),p.isLastColumn&&(w-=3,x="0px"),b||(l.show=!1);var S={class:Xt("selection-corner"),style:{display:l.show?"block":"none",top:k+"px",left:w+"px",borderWidth:"1px ".concat(x," ").concat(C," 1px")},on:{mousedown:function(e){t.dispatch(Pt,Ot,{event:e})},mouseup:function(e){t.dispatch(Pt,jt,{event:e})}}};return h("div",{class:Xt(c)},[h("div",{style:{display:i.show?"block":"none",width:n+"px",height:i.height+"px",top:i.top+"px",left:i.left+"px"},class:Xt("selection-border")}),h("div",{style:{display:o.show?"block":"none",width:o.width+"px",height:r+"px",top:o.top+"px",left:o.left+"px"},class:Xt("selection-border")}),h("div",{style:{display:a.show?"block":"none",width:n+"px",height:a.height+"px",top:a.top+"px",left:a.left+"px"},class:Xt("selection-border")}),h("div",{style:{display:s.show?"block":"none",width:s.width+"px",height:r+"px",top:s.top+"px",left:s.left+"px"},class:Xt("selection-border")}),h("div",S)])},getAreaLayer:function(e){var t=e.borderWidth,n=e.borderHeight,r=e.topBorder,i=e.className,o=e.fixedType,a=e.totalColKeys,s=e.fixedColKeys,l=this.$createElement,c=this.colgroups;if(!(o?yn({fixedType:o,colKeys:a,colgroups:c}):vn({colKeys:a,colgroups:c})))return null;var u=0;return s.length&&(u=on({colKeys:s,colgroups:c})),o&&(t=u,o===Fe&&(t+=1)),l("div",{class:Xt(i),style:{top:r.top+"px",left:r.left+"px",width:t+"px",height:n+"px"}})},getTableFirstRowCellByColKey:function(e){var t=null,n=this.tableEl;return n&&(t=n.querySelector('tbody.ve-table-body tr td[col-key="'.concat(e,'"]'))),t},getTableLastRowCellByColKey:function(e){var t=null,n=this.tableEl;return n&&(t=n.querySelector('tbody.ve-table-body tr:last-child td[col-key="'.concat(e,'"]'))),t},getTableCellEl:function(e){var t=e.rowKey,n=e.colKey,r=null,i=this.tableEl;return i&&(r=i.querySelector('tbody.ve-table-body tr[row-key="'.concat(t,'"] td[col-key="').concat(n,'"]'))),r},setCurrentCellEl:function(){var e=this.cellSelectionData.currentCell,t=e.rowKey,n=e.colKey;if(!s(t)&&!s(n)){var r=this.getTableCellEl({rowKey:t,colKey:n});r&&(this.currentCellEl=r)}},setNormalEndCellEl:function(){var e=this.cellSelectionData.normalEndCell,t=e.rowKey,n=e.colKey;if(!s(t)&&!s(n)){var r=this.getTableCellEl({rowKey:t,colKey:n});r&&(this.normalEndCellEl=r)}},setAutofillEndCellEl:function(){var e=this.cellSelectionData,t=this.tableEl,n=e.autoFillEndCell,r=n.rowKey,i=n.colKey;if(t){var o=t.querySelector('tbody.ve-table-body tr[row-key="'.concat(r,'"] td[col-key="').concat(i,'"]'));o&&(this.autoFillEndCellEl=o)}},clearAutofillEndCellRect:function(){this.autoFillEndCellEl=null,this.cellSelectionRect.autoFillEndCellRect={left:0,top:0,width:0,height:0}}},wr(yr,gr,function(){this.currentCellEl=null,this.cellSelectionRect.currentCellRect={left:0,top:0,width:0,height:0}}),wr(yr,br,function(){this.normalEndCellEl=null,this.cellSelectionRect.normalEndCellRect={left:0,top:0,width:0,height:0}}),yr),created:function(){this.debounceResetCellPositions=Object(P.debounce)(this.resetCellPositions,210),this.debounceSetCellEls=Object(P.debounce)(this.setCellEls,200)},render:function(){var e=arguments[0];if(!this.selectionBordersVisibility)return null;var t=this.getSelectionCurrent({fixedType:Fe}),n=this.getSelectionAreas({fixedType:Fe}),r=t.autoFillArea||n.autoFillArea,i=this.getSelectionCurrent({fixedType:""}),o=this.getSelectionAreas({fixedType:""}),a=i.autoFillArea||o.autoFillArea,s=this.getSelectionCurrent({fixedType:Ke}),l=this.getSelectionAreas({fixedType:Ke}),c=s.autoFillArea||l.autoFillArea;return e("div",{class:Xt("selection-wrapper"),style:{visibility:this.isCellEditing?"hidden":""}},[e("div",{class:Xt("selection-fixed-left")},[t.selectionCurrent,n.normalArea,r,n.normalAreaLayer]),e("div",{class:Xt("selection-middle")},[i.selectionCurrent,o.normalArea,a,o.normalAreaLayer]),e("div",{class:Xt("selection-fixed-right")},[s.selectionCurrent,l.normalArea,c,l.normalAreaLayer])])}},Cr=n(140),Sr=n.n(Cr);function Ar(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Or,jr={name:"VeTableColumnResizer",props:{parentRendered:{type:Boolean,required:!0},tableContainerEl:{type:HTMLDivElement,default:null},hooks:{type:Object,required:!0},colgroups:{type:Array,required:!0},isColumnResizerHover:{type:Boolean,required:!0},isColumnResizing:{type:Boolean,required:!0},setIsColumnResizerHover:{type:Function,required:!0},setIsColumnResizing:{type:Function,required:!0},setColumnWidth:{type:Function,required:!0},columnWidthResizeOption:{type:Object,default:function(){return null}}},data:function(){return{columnResizerStartX:0,currentResizingColumn:null,columnResizerHandlerWidth:5,columnResizerRect:{top:0,left:0,height:0}}},computed:{columnMinWidth:function(){var e=30,t=this.columnWidthResizeOption;if(t){var n=t.minWidth;u(n)&&n>0&&(e=n)}return e}},watch:{parentRendered:{handler:function(e){var t=this;e&&this.hooks.addHook(Mt,function(e){var n=e.event,r=e.column;r.disableResizing||t.initColumnResizerPosition({event:n,column:r})})},immediate:!0}},methods:{initColumnResizerPosition:function(e){var t=e.event,n=e.column,r=this.tableContainerEl,i=this.isColumnResizing;if(r&&!i){var o=r.getBoundingClientRect(),a=o.left,s=o.top,l=this.colgroups.find(function(e){return e.key===n.key});if(!l)return!1;if(l._realTimeWidth){var c=t.target.getBoundingClientRect(),u=c.height,d=c.left,f=c.top;this.columnResizerRect.left=d+l._realTimeWidth-a,this.columnResizerRect.top=f-s,this.columnResizerRect.height=u,this.currentResizingColumn=l,this.columnResizerStartX=d+l._realTimeWidth}else console.warn("Resizer column needs set column width")}},setColumnResizerPositionByDrag:function(e){var t=this.tableContainerEl,n=this.isColumnResizing,r=this.currentResizingColumn;if(t&&n){var i=t.getBoundingClientRect().left;if(n&&r){var o=this.columnResizerStartX,a=this.columnMinWidth;r._realTimeWidth+(e.clientX-o)>a&&(this.columnResizerRect.left=e.clientX-i)}}},columnResizerHandlerMousedown:function(e){e.event,this.isColumnResizerHover&&(this.setIsColumnResizing(!0),document.addEventListener("mousemove",this.setColumnResizerPositionByDrag),document.addEventListener("mouseup",this.columnResizerMouseup),document.onselectstart=function(){return!1},document.ondragstart=function(){return!1})},columnResizerMouseup:function(e){var t,n=this.isColumnResizing,r=this.currentResizingColumn,i=this.columnResizerStartX,o=this.setColumnWidth,a=this.columnWidthResizeOption,s=this.columnMinWidth;if(!n||!r)return!1;if(t=r._realTimeWidth+(e.clientX-i)<s?s-r._realTimeWidth:e.clientX-i,t=Math.floor(t),Math.abs(t)>1){var l=r._realTimeWidth;if(l+=t,o({colKey:r.key,width:l}),a){var c=a.sizeChange;c&&c({column:r,differWidth:t,columnWidth:l})}}this.clearColumnResizerStatus(),document.removeEventListener("mousemove",this.setColumnResizerPositionByDrag),document.removeEventListener("mouseup",this.columnResizerMouseup)},clearColumnResizerStatus:function(){this.currentResizingColumn=null,this.columnResizerStartX=0,this.setIsColumnResizerHover(!1),this.setIsColumnResizing(!1),document.onselectstart=function(){return!0},document.ondragstart=function(){return!0}}},render:function(){var e,t=this,n=arguments[0],r=this.isColumnResizerHover,i=this.isColumnResizing,o=this.columnResizerRect,a=this.columnResizerHandlerWidth,s=o.left,l=o.top,c=o.height,u={class:(e={},Ar(e,Xt("column-resizer-handler"),!0),Ar(e,"active",r||i),e),style:{left:s-a+"px",top:l+"px",height:c+"px"},on:{click:function(){},mousedown:function(e){t.columnResizerHandlerMousedown({event:e})},mouseenter:function(){t.setIsColumnResizerHover(!0)},mouseleave:function(){t.setIsColumnResizerHover(!1)},mouseup:function(e){t.columnResizerMouseup(e)}}},d={class:[Xt("column-resizer-line")],style:{display:i?"block":"none",left:s+"px"}};return n("div",{class:Xt("column-resizer")},[n("div",u),n("div",d)])}};function Tr(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 Er(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tr(Object(n),!0).forEach(function(t){Dr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Dr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ir=o("table"),Rr={name:Pt,directives:{"click-outside":K},mixins:[Rn],props:{tableData:{required:!0,type:Array},footerData:{type:Array,default:function(){return[]}},showHeader:{type:Boolean,default:!0},columns:{type:Array,required:!0},rowKeyFieldName:{type:String,default:null},scrollWidth:{type:[Number,String],default:null},maxHeight:{type:[Number,String],default:null},fixedHeader:{type:Boolean,default:!0},fixedFooter:{type:Boolean,default:!0},borderAround:{type:Boolean,default:!0},borderX:{type:Boolean,default:!0},borderY:{type:Boolean,default:!1},eventCustomOption:{type:Object,default:function(){return null}},cellStyleOption:{type:Object,default:function(){return null}},cellSpanOption:{type:Object,default:function(){return null}},rowStyleOption:{type:Object,default:function(){return null}},virtualScrollOption:{type:Object,default:null},sortOption:{type:Object,default:function(){return null}},expandOption:{type:Object,default:function(){return null}},checkboxOption:{type:Object,default:function(){return null}},radioOption:{type:Object,default:function(){return null}},cellSelectionOption:{type:Object,default:function(){return null}},cellAutofillOption:{type:[Object,Boolean],default:function(){return null}},editOption:{type:Object,default:function(){return null}},columnHiddenOption:{type:Object,default:function(){return null}},contextmenuHeaderOption:{type:Object,default:function(){return null}},contextmenuBodyOption:{type:Object,default:function(){return null}},clipboardOption:{type:Object,default:function(){return null}},columnWidthResizeOption:{type:Object,default:function(){return null}}},data:function(){return{hooks:{},parentRendered:!1,tableViewportWidth:0,columnsOptionResetTime:0,tableRootRef:"tableRootRef",tableContainerWrapperRef:"tableContainerWrapperRef",tableContainerRef:"tableContainerRef",tableRef:"tableRef",tableBodyRef:"tableBodyRef",tableContentWrapperRef:"tableContentWrapperRef",virtualPhantomRef:"virtualPhantomRef",editInputRef:"editInputRef",cellSelectionRef:"cellSelectionRef",contextmenuRef:"contextmenuRef",cloneColumns:[],isGroupHeader:!1,headerRows:[],footerRows:[],colgroups:[],groupColumns:[],hiddenColumns:[],virtualScrollVisibleData:[],virtualScrollVisibleIndexs:{start:-1,end:-1},defaultVirtualScrollBufferScale:1,defaultVirtualScrollMinRowHeight:40,defaultPlaceholderPerScrollingRowCount:8,virtualScrollStartIndex:0,previewVirtualScrollStartIndex:0,virtualScrollEndIndex:0,showVirtualScrollingPlaceholder:!1,disablePointerEventsTimeoutId:null,isLeftScrolling:!1,isRightScrolling:!1,isVerticalScrolling:!1,hasXScrollBar:!1,hasYScrollBar:!1,scrollBarWidth:0,previewTableContainerScrollLeft:null,headerIndicatorColKeys:{startColKey:"",startColKeyIndex:-1,endColKey:"",endColKeyIndex:-1},bodyIndicatorRowKeys:{startRowKey:"",startRowKeyIndex:-1,endRowKey:"",endRowKeyIndex:-1},cellSelectionData:{currentCell:{rowKey:"",colKey:"",rowIndex:-1},normalEndCell:{rowKey:"",colKey:"",rowIndex:-1},autoFillEndCell:{rowKey:"",colKey:""}},cellSelectionRangeData:{leftColKey:"",rightColKey:"",topRowKey:"",bottomRowKey:""},isHeaderCellMousedown:!1,isBodyCellMousedown:!1,isBodyOperationColumnMousedown:!1,isAutofillStarting:!1,autofillingDirection:null,currentCellSelectionType:"",tableOffestHeight:0,tableHeight:0,highlightRowKey:"",editingCell:{rowKey:"",colKey:"",row:null,column:null},editorInputStartValue:"",enableStopEditing:!0,contextmenuEventTarget:"",contextmenuOptions:[],isColumnResizerHover:!1,isColumnResizing:!1}},computed:{actualRenderTableData:function(){return this.isVirtualScroll?this.virtualScrollVisibleData:this.tableData},allRowKeys:function(){var e=[],t=this.tableData,n=this.rowKeyFieldName;return n&&(e=t.map(function(e){return e[n]})),e},virtualScrollBufferCount:function(){var e=0,t=this.virtualScrollOption,n=this.defaultVirtualScrollBufferScale,r=this.virtualScrollVisibleCount;if(t){var i=t.bufferScale;e=(u(i)&&i>0?i:n)*r}return e},virtualScrollVisibleCount:function(){var e=0,t=this.isVirtualScroll,n=this.virtualScrollOption,r=this.defaultVirtualScrollMinRowHeight,i=this.maxHeight,o=this.tableOffestHeight;if(t&&i){var a=u(n.minRowHeight)?n.minRowHeight:r;u(i)?e=Math.ceil(i/a):o&&(e=Math.ceil(o/a))}return e},tableContainerWrapperStyle:function(){return{width:"100%"}},tableContainerStyle:function(){var e=d(this.maxHeight),t=null;return this.isVirtualScroll?e?t=e:console.error("maxHeight prop is required when 'virtualScrollOption.enable = true'"):(t=this.tableHeight,this.hasXScrollBar&&(t+=this.getScrollBarWidth()),t=d(t)),{"max-height":e,height:t}},tableStyle:function(){return{width:d(this.scrollWidth)}},tableClass:function(){var e;return Dr(e={},Xt("border-x"),this.borderX),Dr(e,Xt("border-y"),this.borderY),e},tableContainerClass:function(){var e,t=this.isVirtualScroll,n=this.isLeftScrolling,r=this.isRightScrolling,i=this.isVerticalScrolling,o=this.isCellEditing,a=this.isAutofillStarting,s=this.enableCellSelection;return Dr(e={},Xt("container"),!0),Dr(e,Xt("virtual-scroll"),t),Dr(e,Xt("container-left-scrolling"),n),Dr(e,Xt("container-right-scrolling"),r),Dr(e,Xt("container-vertical-scrolling"),i),Dr(e,Xt("is-cell-editing"),o),Dr(e,Xt("autofilling"),a),Dr(e,Xt("enable-cell-selection"),s),e},tableBodyClass:function(){var e,t=this.rowStyleOption,n=!0,r=!0,i=!1;return t&&(n=t.hoverHighlight,r=t.clickHighlight,i=t.stripe),Dr(e={},Xt("stripe"),!0===i),Dr(e,Xt("row-hover"),!1!==n),Dr(e,Xt("row-highlight"),!1!==r),e},isVirtualScroll:function(){var e=this.virtualScrollOption;return e&&e.enable},hasFixedColumn:function(){return this.colgroups.some(function(e){return e.fixed===Fe||e.fixed===Ke})},hasLeftFixedColumn:function(){return this.colgroups.some(function(e){return e.fixed===Fe})},hasRightFixedColumn:function(){return this.colgroups.some(function(e){return e.fixed===Ke})},isCellEditing:function(){var e=this.editingCell;return!s(e.rowKey)&&!s(e.colKey)},hasEditColumn:function(){return this.colgroups.some(function(e){return e.edit})},enableHeaderContextmenu:function(){var e=!1,t=this.contextmenuHeaderOption;if(t){var n=t.contextmenus;Array.isArray(n)&&n.length&&(e=!0)}return e},enableBodyContextmenu:function(){var e=!1,t=this.contextmenuBodyOption;if(t){var n=t.contextmenus;Array.isArray(n)&&n.length&&(e=!0)}return e},contextMenuType:function(){return this.headerIndicatorColKeys.startColKeyIndex>-1?Gt:"bodyContextmenu"},enableCellSelection:function(){var e=!0,t=this.cellSelectionOption;return(s(this.rowKeyFieldName)||t&&c(t.enable)&&!1===t.enable)&&(e=!1),e},enableClipboard:function(){return this.rowKeyFieldName},enableColumnResize:function(){var e=!1,t=this.columnWidthResizeOption;if(t){var n=t.enable;c(n)&&(e=n)}return e},headerTotalHeight:function(){var e=0;return this.showHeader&&(e=this.headerRows.reduce(function(e,t){return t.rowHeight+e},0)),e},footerTotalHeight:function(){return this.footerRows.reduce(function(e,t){return t.rowHeight+e},0)}},watch:{tableData:{handler:function(e,t){this.initVirtualScrollPositions(),t&&this.initVirtualScroll()},immediate:!0},allRowKeys:{handler:function(e){if(Array.isArray(e)){var t=this.cellSelectionData.currentCell;t.rowIndex>-1&&-1===e.indexOf(t.rowKey)&&this.clearCellSelectionCurrentCell()}},immediate:!1},columns:{handler:function(e,t){this.initColumns(),this.initGroupColumns(),this.initColumnWidthByColumnResize(),e!=t&&t&&(this.columnsOptionResetTime++,this.initScrolling())},immediate:!0},cloneColumns:{handler:function(){this.initGroupColumns(),this.initColumnWidthByColumnResize(),this.columnsOptionResetTime++,this.initScrolling()},immediate:!1},groupColumns:{handler:function(e){a(e)||this.initHeaderRows()},immediate:!0},footerData:{handler:function(e){a(e)||this.initFooterRows()},immediate:!0},"virtualScrollOption.enable":{handler:function(e){e?(this.initVirtualScrollPositions(),this.initVirtualScroll()):this.setTableContentTopValue({top:0})},immediate:!1},isAutofillStarting:{handler:function(e){e||(this.setCellSelectionByAutofill(),this.clearCellSelectionAutofillEndCell())}},"cellSelectionData.currentCell":{handler:function(){this.setCurrentCellSelectionType()},deep:!0,immediate:!0},"cellSelectionData.normalEndCell":{handler:function(){this.setCurrentCellSelectionType()},deep:!0,immediate:!0},headerIndicatorColKeys:{handler:function(){this.setRangeCellSelectionByHeaderIndicator()},deep:!0},bodyIndicatorRowKeys:{handler:function(){this.setRangeCellSelectionByBodyIndicator()},deep:!0}},methods:(Or={initHeaderRows:function(){var e=this.groupColumns;Array.isArray(e)&&(this.headerRows=e.map(function(){return{rowHeight:0}}))},initFooterRows:function(){var e=this.footerData;Array.isArray(e)&&(this.footerRows=e.map(function(){return{rowHeight:0}}))},headerRowHeightChange:function(e){var t=e.rowIndex,n=e.height;this.headerRows.splice(t,1,{rowHeight:n})},footRowHeightChange:function(e){var t=e.rowIndex,n=e.height;this.footerRows.splice(t,1,{rowHeight:n})},bodyCellWidthChange:function(e){this.colgroups=this.colgroups.map(function(t){return t._realTimeWidth=e.get(t.key),t}),this.hooks.triggerHook(It)},setColumnWidth:function(e){var t=this,n=e.colKey,r=e.width;this.colgroups=this.colgroups.map(function(e){return e.key===n&&(e._columnResizeWidth=r),e}),this.$nextTick(function(){t.setScrollBarStatus()}),this.hooks.triggerHook(It)},updateColgroupsBySortChange:function(e){this.colgroups=this.colgroups.map(function(t){return Object.keys(e).indexOf(t.field)>-1&&(t.sortBy=e[t.field]),t})},initColumnWidthByColumnResize:function(){this.enableColumnResize&&(this.colgroups=this.colgroups.map(function(e){var t=50;return u(e.width)&&(t=e.width),e._columnResizeWidth=t,e}))},initColumns:function(){var e=this.columnHiddenOption;if(e){var t=e.defaultHiddenColumnKeys;a(t)||(this.hiddenColumns=t)}this.showOrHideColumns()},showOrHideColumns:function(){var e=Object(P.cloneDeep)(this.columns);e=e.map(function(e){return e.operationColumn&&(e.fixed=Fe),e});var t=this.hiddenColumns;a(t)||t.forEach(function(t){e=function e(t,n){return t.filter(function(t){return"children"in t&&(t.children=e(t.children,n)),t.key!==n})}(e,t)}),this.cloneColumns=e},initGroupColumns:function(){var e=function(e){var t=[],n=[],r=1;e.forEach(function(e){e._level=1,function e(t,n){n&&(t._level=n._level+1,r<t._level&&(r=t._level)),t.children&&t.children.forEach(function(n){n.fixed=t.fixed,e(n,t)})}(e)}),e.forEach(function(e){!function e(t){if(t.children){var n="",i=0;t.children.forEach(function(t){e(t),i+=t._colspan,n+=t._keys.endsWith("|")?t._keys:t._keys+"|"}),t._keys=n,t._colspan=i,t._rowspan=1}else t._keys=t.key,t._colspan=1,t._rowspan=r-t._level+1}(e)});for(var i=0;i<r;i++)n.push([]);return e.forEach(function(e){!function e(r){if(!a(r.children)||!s(r.key)){var i=Object.assign({},r);if(n[r._level-1].push(i),r.children)r.children.forEach(function(t){e(t)});else{var o=Object.assign({},r);o._realTimeWidth=o.width,t.push(o)}}}(e)}),{isGroupHeader:r>1,colgroups:t,groupColumns:n}}(this.cloneColumns);this.isGroupHeader=e.isGroupHeader,this.colgroups=e.colgroups,this.groupColumns=e.groupColumns},getScrollBarWidth:function(){var e=0,t=this.scrollBarWidth;return t?e=t:(e=function(){var e=document.createElement("div");e.className="ve-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),t-r}(),this.scrollBarWidth=e),e},selectedAllChange:function(e){var t=e.isSelected;this.broadcast(Nt,ut,{isSelected:t})},setSelectedAllInfo:function(e){var t=e.isSelected,n=e.isIndeterminate;this.broadcast(Bt,dt,{isSelected:t,isIndeterminate:n})},cellSelectionCurrentCellChange:function(e){var t=e.rowKey,n=e.colKey;this.cellSelectionData.currentCell.colKey=n,this.cellSelectionData.currentCell.rowKey=t,this.cellSelectionData.currentCell.rowIndex=this.allRowKeys.indexOf(t)},cellSelectionNormalEndCellChange:function(e){var t=e.rowKey,n=e.colKey;this.cellSelectionData.normalEndCell.colKey=n,this.cellSelectionData.normalEndCell.rowKey=t,this.cellSelectionData.normalEndCell.rowIndex=this.allRowKeys.indexOf(t)},cellSelectionAutofillCellChange:function(e){var t=e.rowKey,n=e.colKey;this.cellSelectionData.autoFillEndCell.colKey=n,this.cellSelectionData.autoFillEndCell.rowKey=t},clearCellSelectionCurrentCell:function(){this.cellSelectionCurrentCellChange({rowKey:"",colKey:"",rowIndex:-1})},clearCellSelectionNormalEndCell:function(){this.cellSelectionNormalEndCellChange({rowKey:"",colKey:"",rowIndex:-1})},clearCellSelectionAutofillEndCell:function(){this.cellSelectionAutofillCellChange({rowKey:"",colKey:""})},headerIndicatorColKeysChange:function(e){var t=e.startColKey,n=e.endColKey,r=this.colgroups;this.headerIndicatorColKeys.startColKey=t,this.headerIndicatorColKeys.startColKeyIndex=r.findIndex(function(e){return e.key===t}),this.headerIndicatorColKeys.endColKey=n,this.headerIndicatorColKeys.endColKeyIndex=r.findIndex(function(e){return e.key===n})},clearHeaderIndicatorColKeys:function(){this.headerIndicatorColKeys.startColKey="",this.headerIndicatorColKeys.startColKeyIndex=-1,this.headerIndicatorColKeys.endColKey="",this.headerIndicatorColKeys.endColKeyIndex=-1},bodyIndicatorRowKeysChange:function(e){var t=e.startRowKey,n=e.endRowKey,r=this.allRowKeys;this.bodyIndicatorRowKeys.startRowKey=t,this.bodyIndicatorRowKeys.startRowKeyIndex=r.indexOf(t),this.bodyIndicatorRowKeys.endRowKey=n,this.bodyIndicatorRowKeys.endRowKeyIndex=r.indexOf(n)},clearBodyIndicatorRowKeys:function(){this.bodyIndicatorRowKeys.startRowKey="",this.bodyIndicatorRowKeys.startRowKeyIndex=-1,this.bodyIndicatorRowKeys.endRowKey="",this.bodyIndicatorRowKeys.endRowKeyIndex=-1},setCellSelectionByAutofill:function(){var e=this.cellAutofillOption,t=this.cellSelectionRangeData,n=this.colgroups,r=this.allRowKeys,i=this.autofillingDirection,o=this.currentCellSelectionType,a=this.cellSelectionData,u=a.autoFillEndCell,d=a.currentCell,f=u.rowKey,h=u.colKey;if(s(f)||s(h))return!1;var p={},m={},y=t.leftColKey,v=t.rightColKey,g=t.topRowKey,b=t.bottomRowKey;if(o===Ze){if(fn({cellData:u,cellSelectionRangeData:t,colgroups:n,allRowKeys:r}))return!1;i===We?(p={rowKey:g,colKey:y},m={rowKey:b,colKey:h}):i===$e?(p={rowKey:g,colKey:y},m={rowKey:f,colKey:v}):i===qe?(p={rowKey:f,colKey:y},m={rowKey:b,colKey:v}):i===He&&(p={rowKey:g,colKey:h},m={rowKey:b,colKey:v})}else if(o===Ge){if(d.rowKey===f&&d.colKey===h)return!1;i===We?(p={rowKey:f,colKey:y},m={rowKey:f,colKey:h}):i===$e?(p={rowKey:g,colKey:y},m={rowKey:f,colKey:y}):i===qe?(p={rowKey:f,colKey:y},m={rowKey:b,colKey:y}):i===He&&(p={rowKey:f,colKey:h},m={rowKey:f,colKey:v})}var _={tableData:this.tableData,allRowKeys:this.allRowKeys,colgroups:this.colgroups,rowKeyFieldName:this.rowKeyFieldName,direction:i,currentCellSelectionType:o,cellSelectionRangeData:t,nextCurrentCell:p,nextNormalEndCell:m};if(e){var k=e.beforeAutofill,w=e.afterAutofill;if(l(k)){var x=k(_n(Er({isReplaceData:!1},_)));if(c(x)&&!x)return!1}var C=_n(Er({isReplaceData:!0},_));l(w)&&w(C)}s(p.rowKey)||this.cellSelectionCurrentCellChange({rowKey:p.rowKey,colKey:p.colKey}),s(m.rowKey)||this.cellSelectionNormalEndCellChange({rowKey:m.rowKey,colKey:m.colKey})},cellSelectionRangeDataChange:function(e){this.cellSelectionRangeData=Object.assign(this.cellSelectionRangeData,e)},autofillingDirectionChange:function(e){this.autofillingDirection=e},setCurrentCellSelectionType:function(){var e,t=this.cellSelectionData,n=t.currentCell,r=t.normalEndCell;e=s(n.rowKey)||s(n.colKey)?"":s(r.rowKey)||s(r.colKey)?Ge:Ze,this.currentCellSelectionType=e},dealKeydownEvent:function(e){var t=this.colgroups,n=this.cellSelectionData,r=this.enableStopEditing,i=this.isCellEditing,o=e.keyCode,a=e.ctrlKey,l=e.shiftKey,c=e.altKey,u=n.currentCell,d=u.rowKey,f=u.colKey,h=t.find(function(e){return e.key===f});if(!s(d)&&!s(f))switch(o){case 9:var p;p=l?Ue:Ve,this.selectCellByDirection({direction:p}),this.clearCellSelectionNormalEndCell(),this[qt](),e.preventDefault();break;case 37:r&&(this.selectCellByDirection({direction:"left"}),this.clearCellSelectionNormalEndCell(),this[qt](),e.preventDefault());break;case 39:r&&(this.selectCellByDirection({direction:"right"}),this.clearCellSelectionNormalEndCell(),this[qt](),e.preventDefault());break;case 38:r&&(this.selectCellByDirection({direction:"up"}),this.clearCellSelectionNormalEndCell(),this[qt](),e.preventDefault());break;case 40:r&&(this.selectCellByDirection({direction:"down"}),this.clearCellSelectionNormalEndCell(),this[qt](),e.preventDefault());break;case 13:var m;c?this.$refs[this.editInputRef].textareaAddNewLine():l?(m="up",this[qt]()):(a||(m=ze),this[qt]()),m&&(this.clearCellSelectionNormalEndCell(),this.selectCellByDirection({direction:m})),e.preventDefault();break;case 32:i||(this[Ut]({rowKey:d,colKey:f,defaultValue:" "}),e.preventDefault());break;case 8:i||(this[Ut]({rowKey:d,colKey:f,defaultValue:""}),e.preventDefault());break;case 46:i||(this.deleteCellSelectionRangeValue(),e.preventDefault());break;case 113:i||(h.edit&&(this.enableStopEditing=!1,this[Ut]({rowKey:d,colKey:f})),e.preventDefault());break;default:(function(e){var t=!1,n=e.keyCode,r=e.altKey,i=e.ctrlKey,o=e.shiftKey;return r||i||o||(n>=48&&n<=57||n>=96&&n<=105||n>=65&&n<=90||[186,187,188,189,190,191,192,219,220,221,222].indexOf(n)>-1||229==n)&&(t=!0),t})(e)&&this[Ut]({rowKey:d,colKey:f,defaultValue:""})}},selectCellByDirection:function(e){var t=e.direction,n=this.colgroups,r=this.allRowKeys,i=this.cellSelectionData.currentCell,o=i.rowKey,a=i.colKey,s=n.findIndex(function(e){return e.key===a}),l=r.indexOf(o);if(t===Ue){if(s>0){var c=n[s-1];this.cellSelectionData.currentCell.colKey=c.key,this.columnToVisible(c)}}else if(t===Ve){if(s<n.length-1){var u=n[s+1];this.cellSelectionData.currentCell.colKey=u.key,this.columnToVisible(u)}}else if("up"===t){if(l>0){var d=r[l-1];this.rowToVisible(38,d)}}else if(t===ze&&l<r.length-1){var f=r[l+1];this.rowToVisible(40,f)}},columnToVisible:function(e){var t=this.hasXScrollBar,n=this.colgroups;if(!t)return!1;var r=this.$refs[this.tableContainerRef],i=r.scrollWidth,o=r.clientWidth,a=r.scrollLeft;if(!e.fixed){var s=rn({colgroups:n,colKey:e.key,fixed:Fe}),l=rn({colgroups:n,colKey:e.key,fixed:Ke});if(a){var c=a-s;c>0&&(r.scrollLeft=a-c)}var u=i-o-a;if(u){var d=u-l;d>0&&(r.scrollLeft=a+d)}}},rowToVisible:function(e,t){var n=this.$refs[this.tableContainerRef],r=this.$refs[this.tableContentWrapperRef].$el,i=this.isVirtualScroll,o=this.headerTotalHeight,a=this.footerTotalHeight,s=n.clientHeight,l=n.scrollTop,c=this.$el.querySelector("tbody tr[".concat(Vt,'="').concat(t,'"]'));if(c){var u=c.offsetTop,d=c.clientHeight,f=r.offsetTop;if(38===e){var h;(h=i?o-(u-(l-f)):l+o-u)>0&&(n.scrollTop=l-h)}else if(40===e){var p;(p=i?u-(l-f)+d+a-s:u+d+a-(s+l))>=0&&(n.scrollTop=l+p)}var m=this.cellSelectionData.currentCell;this.cellSelectionCurrentCellChange({rowKey:t,colKey:m.colKey})}},setVirtualScrollVisibleData:function(){var e=this.tableData,t=this.virtualScrollStartIndex,n=this.virtualScrollEndIndex,r=t-this.getVirtualScrollAboveCount(),i=n+this.getVirtualScrollBelowCount();this.virtualScrollVisibleIndexs.start=r,this.virtualScrollVisibleIndexs.end=i-1,this.virtualScrollVisibleData=e.slice(r,i)},getVirtualScrollAboveCount:function(){var e=0,t=this.isVirtualScroll,n=this.virtualScrollBufferCount,r=this.virtualScrollStartIndex;return t&&(e=Math.min(r,n)),e},getVirtualScrollBelowCount:function(){var e=0,t=this.isVirtualScroll,n=this.tableData,r=this.virtualScrollBufferCount,i=this.virtualScrollEndIndex;return t&&(e=Math.min(n.length-i,r)),e},getVirtualViewPhantom:function(){var e=this,t=this.$createElement,n=null,r=this.isVirtualScroll,i=this.hasLeftFixedColumn,o=this.expandOption;if(r||i&&o){var a={props:{tagName:"div"},style:{width:"100%"},on:{"on-dom-resize-change":function(t){var n=t.width;e.tableViewportWidth=n}}};n=t("div",{ref:this.virtualPhantomRef,class:[Xt("virtual-phantom"),r?Xt("virtual-scroll"):""]},[t(Wn,a)])}return n},initVirtualScrollPositions:function(){if(this.isVirtualScroll){var e=this.virtualScrollOption,t=this.rowKeyFieldName,n=this.tableData,r=this.defaultVirtualScrollMinRowHeight,i=u(e.minRowHeight)?e.minRowHeight:r;this.virtualScrollPositions=n.map(function(e,n){return{rowKey:e[t],height:i,top:n*i,bottom:(n+1)*i}})}},bodyRowHeightChange:function(e){var t=e.rowKey,n=e.height,r=this.virtualScrollPositions.findIndex(function(e){return e.rowKey===t}),i=this.virtualScrollPositions[r].height-n;if(i){this.virtualScrollPositions[r].bottom=this.virtualScrollPositions[r].bottom-i,this.virtualScrollPositions[r].height=n;for(var o=r+1;o<this.virtualScrollPositions.length;o++)this.virtualScrollPositions[o].top=this.virtualScrollPositions[o-1].bottom,this.virtualScrollPositions[o].bottom=this.virtualScrollPositions[o].bottom-i;this.setVirtualPhantomHeight(),this.setVirtualScrollStartOffset()}},setVirtualPhantomHeight:function(){var e=0;this.virtualScrollPositions.length&&(e=this.virtualScrollPositions[this.virtualScrollPositions.length-1].bottom),this.$refs[this.virtualPhantomRef].style.height=e+"px"},setVirtualScrollStartOffset:function(){var e=this.virtualScrollStartIndex,t=this.getVirtualScrollAboveCount(),n=0;if(e>=1){var r=this.virtualScrollPositions[e].top-(this.virtualScrollPositions[e-t]?this.virtualScrollPositions[e-t].top:0);n=this.virtualScrollPositions[e-1].bottom-r}this.setTableContentTopValue({top:n})},setTableContentTopValue:function(e){var t=this,n=e.top;window.requestAnimationFrame(function(){var e=t.$refs[t.tableContentWrapperRef];e&&(e.$el.style.top="".concat(n,"px"))})},getVirtualScrollStartIndex:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.virtualScrollBinarySearch(this.virtualScrollPositions,e)},virtualScrollBinarySearch:function(e,t){for(var n=0,r=e.length-1,i=null;n<=r;){var o=parseInt((n+r)/2),a=e[o].bottom;if(a===t)return o+1;a<t?n=o+1:a>t&&((null===i||i>o)&&(i=o),r-=1)}return i},tableContainerVirtualScrollHandler:function(e){var t=this.virtualScrollVisibleCount,n=this.virtualScrollOption,r=e.scrollTop,i=this.getVirtualScrollStartIndex(r);this.virtualScrollStartIndex=i;var o=i+t;this.virtualScrollEndIndex=o;var a=this.getVirtualScrollAboveCount(),s=this.getVirtualScrollBelowCount();if(this.setVirtualScrollStartOffset(),!this.showVirtualScrollingPlaceholder){var c=this.$refs[this.tableBodyRef];c&&c.renderingRowKeys(this.allRowKeys.slice(i-a,o+s))}var u=n.scrolling;if(l(u)){var d=this.getVirtualScrollAboveCount(),f=i-d;u({startRowIndex:f>0?f:0,visibleStartIndex:i,visibleEndIndex:o,visibleAboveCount:d,visibleBelowCount:this.getVirtualScrollBelowCount()})}this.setVirtualScrollVisibleData()},debounceScrollEnded:function(){var e=this.disablePointerEventsTimeoutId;e&&Tn(e.id),this.disablePointerEventsTimeoutId=function(e,t){var n;Promise.resolve().then(function(){n=Date.now()});var r={id:jn(function t(){Date.now()-n>=150?e.call():r.id=jn(t)})};return r}(this.debounceScrollEndedCallback)},debounceScrollEndedCallback:function(){this.disablePointerEventsTimeoutId=null,this.showVirtualScrollingPlaceholder=!1},initVirtualScroll:function(){var e=this;this.isVirtualScroll&&(this.virtualScrollStartIndex=0,this.virtualScrollEndIndex=0+this.virtualScrollVisibleCount,this.$nextTick(function(){var t=e.$refs[e.tableContainerRef];e.tableContainerVirtualScrollHandler(t),e.setVirtualPhantomHeight()}))},setScrolling:function(e){if(this.hasFixedColumn){var t=e.scrollWidth,n=e.clientWidth,r=e.scrollLeft,i=this.previewTableContainerScrollLeft;0!==i&&i===r||(this.previewTableContainerScrollLeft=r,this.isLeftScrolling=r>0,this.isRightScrolling=t-n>r),this.isLeftScrolling=r>0,this.isRightScrolling=t-n>r}if(this.fixedHeader){var o=e.scrollTop;this.isVerticalScrolling=o>0}},setScrollBarStatus:function(){var e=this.$refs[this.tableContainerRef];if(e){var t=e.scrollWidth,n=e.clientWidth,r=e.scrollHeight,i=e.clientHeight;t&&n&&(this.hasXScrollBar=!!(t-n)),r&&i&&(this.hasYScrollBar=!!(r-i))}},initScrolling:function(){this.setScrolling(this.$refs[this.tableContainerRef])},tableClickOutside:function(e){if(t=e,n=!1,r=document.querySelectorAll(".ve-contextmenu-popper"),[].forEach.call(r,function(e){e.contains(t.target)&&(n=!0)}),n)return!1;var t,n,r;this.isHeaderCellMousedown=!1,this.isBodyCellMousedown=!1,this.isBodyOperationColumnMousedown=!1,this.isAutofillStarting=!1,this.setIsColumnResizing(!1),this.clearCellSelectionCurrentCell(),this.clearCellSelectionNormalEndCell(),this.clearHeaderIndicatorColKeys(),this.clearBodyIndicatorRowKeys(),this[qt]()},saveCellWhenStopEditing:function(){var e=this.colgroups,t=this.rowKeyFieldName,n=this.editOption,r=this.editingCell,i=this.isCellEditing,o=n.cellValueChange,a=n.beforeCellValueChange,s=n.afterCellValueChange;if(i){var u=r.rowKey,d=r.colKey,f=this.tableData.find(function(e){return e[t]===u});if(f){var h=e.find(function(e){return e.key===d}),p=r.row[h.field];if(l(a)){var m=a({row:Object(P.cloneDeep)(f),column:h,changeValue:p});if(c(m)&&!m)return this.clearEditingCell(),!1}f[h.field]=p,o&&o({row:f,column:h,changeValue:p}),s&&s({row:f,column:h,changeValue:p}),this.clearEditingCell()}this.enableStopEditing=!0}},cellSelectionByClick:function(e){var t=e.rowData,n=e.column,r=Jt(t,this.rowKeyFieldName);this[$t]({rowKey:r,colKey:n.key,isScrollToRow:!1}),this.rowToVisible(38,r),this.rowToVisible(40,r)},bodyCellContextmenu:function(e){e.event;var t=e.rowData,n=e.column,r=this.editOption,i=this.rowKeyFieldName;if(r){var o=Jt(t,i);this.editCellByClick({isDblclick:!1,rowKey:o,colKey:n.key})}this.setContextmenuOptions(n)},bodyCellDoubleClick:function(e){e.event;var t=e.rowData,n=e.column,r=this.editOption,i=this.rowKeyFieldName,o=this.colgroups;if(en(n.key,o))return this.clearCellSelectionCurrentCell(),this.clearCellSelectionNormalEndCell(),this[qt](),!1;if(r){var a=Jt(t,i);this.editCellByClick({isDblclick:!0,rowKey:a,colKey:n.key})}},bodyCellClick:function(e){e.event,e.rowData,e.column},bodyCellMousedown:function(e){var t=e.event,n=e.rowData,r=e.column;if(!this.enableCellSelection)return!1;var i=t.shiftKey,o=this.editOption,a=this.rowKeyFieldName,l=this.colgroups,c=this.cellSelectionData,u=this.cellSelectionRangeData,d=this.allRowKeys,f=Jt(n,a),h=r.key,p=c.currentCell,m=In(t);if(en(h,l)){this.clearHeaderIndicatorColKeys();var y=this.bodyIndicatorRowKeys;this.isBodyOperationColumnMousedown=!0;var v=y.startRowKey,g=y.endRowKey,b=y.startRowKeyIndex,_=y.endRowKeyIndex,k=v,w=g;if(i&&(b>-1||p.rowIndex>-1))k=s(p.rowKey)?v:p.rowKey,w=f;else{var x=d.indexOf(f);(m===A||x<b||x>_)&&(k=f,w=f)}this.bodyIndicatorRowKeysChange({startRowKey:k,endRowKey:w})}else this.isBodyCellMousedown=!0,function(e){var t=e.cellData,n=e.cellSelectionRangeData,r=e.colgroups,i=e.allRowKeys,o=!0;return e.mouseEventClickType===j&&e.cellSelectionData.normalEndCell.rowIndex>-1&&(o=!fn({cellData:t,cellSelectionRangeData:n,colgroups:r,allRowKeys:i})),o}({mouseEventClickType:m,cellData:{rowKey:f,colKey:h},cellSelectionData:c,cellSelectionRangeData:u,colgroups:l,allRowKeys:d})&&(this.clearHeaderIndicatorColKeys(),this.clearBodyIndicatorRowKeys(),i&&p.rowIndex>-1?this.cellSelectionNormalEndCellChange({rowKey:f,colKey:h}):(this.cellSelectionByClick({rowData:n,column:r}),this.clearCellSelectionNormalEndCell()));o&&this.editCellByClick({isDblclick:!1,rowKey:f,colKey:h})},bodyCellMouseover:function(e){e.event;var t=e.rowData,n=e.column,r=this.rowKeyFieldName,i=this.isBodyCellMousedown,o=this.isAutofillStarting,a=this.isHeaderCellMousedown,s=this.isBodyOperationColumnMousedown,l=Jt(t,r),c=n.key;if(i){if(en(c,this.colgroups))return!1;this.cellSelectionNormalEndCellChange({rowKey:l,colKey:c})}if(s&&this.bodyIndicatorRowKeysChange({startRowKey:this.bodyIndicatorRowKeys.startRowKey,endRowKey:l}),a&&this.headerIndicatorColKeysChange({startColKey:this.headerIndicatorColKeys.startColKey,endColKey:c}),o){if(en(c,this.colgroups))return!1;this.cellSelectionAutofillCellChange({rowKey:l,colKey:c})}},bodyCellMousemove:function(e){var t=e.event,n=(e.rowData,e.column);this.hooks.triggerHook("body-cell-mousemove",{event:t,column:n})},bodyCellMouseup:function(e){e.event,e.rowData,e.column},headerCellClick:function(e){e.event,e.column},headerCellContextmenu:function(e){e.event;var t=e.column;this.setContextmenuOptions(t)},setContextmenuOptions:function(e){var t=this.contextMenuType;this.contextmenuOptions=t===Gt?function(e){var t=e.column,n=e.contextmenuHeaderOption,r=e.cellSelectionRangeData,i=e.colgroups,o=e.allRowKeys,a=e.headerIndicatorColKeys,c=e.enableHeaderContextmenu,u=e.t,d=[];if(c){var f=hn({cellSelectionRangeData:r}),h=pn({cellSelectionRangeData:r,colgroups:i,allRowKeys:o}),p=en(t.key,i),m=h.endColIndex-h.startColIndex+1,y=n.contextmenus,v=n.beforeShow,g=!s(a.startColKey),b=un({fixedType:Fe,colgroups:i,isExcludeOperationColumn:!0}),_=un({fixedType:Ke,colgroups:i,isExcludeOperationColumn:!0});l(v)&&v({isWholeColSelection:g,selectionRangeKeys:f,selectionRangeIndexes:h});var k=function(e){return[{type:Zt.SEPARATOR},{label:e("cut"),type:Zt.CUT},{label:e("copy"),type:Zt.COPY},{label:e("removeColumn"),type:Zt.REMOVE_COLUMN},{label:e("emptyColumn"),type:Zt.EMPTY_COLUMN},{label:e("hideColumn"),type:Zt.HIDE_COLUMN},{label:e("leftFixedColumnTo"),type:Zt.LEFT_FIXED_COLUMN_TO},{label:e("cancelLeftFixedColumnTo"),type:Zt.CANCEL_LEFT_FIXED_COLUMN_TO},{label:e("rightFixedColumnTo"),type:Zt.RIGHT_FIXED_COLUMN_TO},{label:e("cancelRightFixedColumnTo"),type:Zt.CANCEL_RIGHT_FIXED_COLUMN_TO}]}(u);y.forEach(function(e){var t=k.find(function(t){return t.type===e.type});if(t){var n=!0;t.type===Zt.EMPTY_COLUMN?g?t.label=t.label.replace("$1",m):n=!1:t.type===Zt.LEFT_FIXED_COLUMN_TO?p&&(t.disabled=!0):t.type===Zt.CANCEL_LEFT_FIXED_COLUMN_TO?b.length<1&&(t.disabled=!0):t.type===Zt.RIGHT_FIXED_COLUMN_TO?p&&(t.disabled=!0):t.type===Zt.CANCEL_RIGHT_FIXED_COLUMN_TO&&_.length<1&&(t.disabled=!0),n&&d.push(t)}else d.push(e)})}return d}({column:e,contextmenuHeaderOption:this.contextmenuHeaderOption,cellSelectionRangeData:this.cellSelectionRangeData,colgroups:this.colgroups,allRowKeys:this.allRowKeys,headerIndicatorColKeys:this.headerIndicatorColKeys,enableHeaderContextmenu:this.enableHeaderContextmenu,t:Ir}):function(e){var t=e.enableBodyContextmenu,n=e.contextmenuBodyOption,r=e.cellSelectionRangeData,i=e.colgroups,o=e.allRowKeys,a=e.bodyIndicatorRowKeys,c=e.t,u=[];if(t){var d=hn({cellSelectionRangeData:r}),f=pn({cellSelectionRangeData:r,colgroups:i,allRowKeys:o}),h=f.endRowIndex-f.startRowIndex+1,p=f.endColIndex-f.startColIndex+1,m=n.contextmenus,y=n.beforeShow,v=!s(a.startRowKey);l(y)&&y({isWholeRowSelection:v,selectionRangeKeys:d,selectionRangeIndexes:f});var g=function(e){return[{type:Zt.SEPARATOR},{label:e("cut"),type:Zt.CUT},{label:e("copy"),type:Zt.COPY},{label:e("insertRowAbove"),type:Zt.INSERT_ROW_ABOVE},{label:e("insertRowBelow"),type:Zt.INSERT_ROW_BELOW},{label:e("removeRow"),type:Zt.REMOVE_ROW},{label:e("emptyRow"),type:Zt.EMPTY_ROW},{label:e("removeColumn"),type:Zt.REMOVE_COLUMN},{label:e("emptyCell"),type:Zt.EMPTY_CELL}]}(c);m.forEach(function(e){var t=g.find(function(t){return t.type===e.type});if(t){var n=!0;t.type===Zt.REMOVE_ROW?t.label=t.label.replace("$1",h):t.type===Zt.EMPTY_ROW?v?t.label=t.label.replace("$1",h):n=!1:t.type===Zt.EMPTY_CELL?n=!v:t.type===Zt.REMOVE_COLUMN&&(v?n=!1:t.label=t.label.replace("$1",p)),n&&u.push(t)}else u.push(e)})}return u}({enableBodyContextmenu:this.enableBodyContextmenu,contextmenuBodyOption:this.contextmenuBodyOption,cellSelectionRangeData:this.cellSelectionRangeData,colgroups:this.colgroups,allRowKeys:this.allRowKeys,bodyIndicatorRowKeys:this.bodyIndicatorRowKeys,t:Ir})},headerCellMousedown:function(e){var t=this,n=e.event,r=e.column;if(!this.enableCellSelection)return!1;this.isHeaderCellMousedown=!0;var i,o=n.shiftKey,a=this.isGroupHeader,l=this.colgroups,c=this.headerIndicatorColKeys,u=this.cellSelectionData;this.clearBodyIndicatorRowKeys();var d=(i=a?sn({headerColumnItem:r}):[r.key])[0],f=i[i.length-1],h=u.currentCell;if(en(r.key,l))return this.clearCellSelectionCurrentCell(),this.clearCellSelectionNormalEndCell(),this.$nextTick(function(){t[Ht]()}),!1;s(c.startColKey)&&(JSON.stringify(i)!=JSON.stringify([h.colKey])&&this.$refs[this.cellSelectionRef].clearCurrentCellRect(),this.$refs[this.cellSelectionRef].clearNormalEndCellRect());var p=c.startColKey,m=c.endColKey,y=c.startColKeyIndex,v=c.endColKeyIndex,g=p,b=m;if(o)if(s(p))if(s(h.colKey))g=d,b=f;else{var _=bn({colgroups:l,colKeys:i.concat([h.colKey])});g=h.colKey,b=_===h.colKey?f:d}else g=p,b=bn({colgroups:l,colKeys:i.concat([p])})===p?f:d;else{var k=In(n),w=l.findIndex(function(e){return e.key===f}),x=l.findIndex(function(e){return e.key===d});(k===A||w<y||x<y||w>v||x>v)&&(g=d,b=f)}this.headerIndicatorColKeysChange({startColKey:g,endColKey:b})},headerCellMouseover:function(e){e.event;var t,n,r=e.column,i=this.colgroups,o=this.isGroupHeader,a=this.isHeaderCellMousedown,s=this.headerIndicatorColKeys;a&&!en(r.key,i)&&(n=bn({colgroups:i,colKeys:(t=o?sn({headerColumnItem:r}):[r.key]).concat([s.startColKey])})===s.startColKey?t[t.length-1]:t[0],this.headerIndicatorColKeysChange({startColKey:this.headerIndicatorColKeys.startColKey,endColKey:n}))},headerCellMousemove:function(e){var t=e.event,n=e.column;this.hooks.triggerHook(Mt,{event:t,column:n})},headerCellMouseleave:function(e){e.event,e.column},headerMouseleave:function(e){this.setIsColumnResizerHover(!1)},tableContainerMouseup:function(){this.isHeaderCellMousedown=!1,this.isBodyCellMousedown=!1,this.isBodyOperationColumnMousedown=!1,this.isAutofillStarting=!1},cellSelectionCornerMousedown:function(e){e.event,this.isAutofillStarting=!0},cellSelectionCornerMouseup:function(e){e.event,this.isAutofillStarting=!1},isEditColumn:function(e){return this.colgroups.some(function(t){return t.key===e&&t.edit})},editCellByClick:function(e){var t=e.isDblclick,n=e.rowKey,r=e.colKey,i=this.editOption,o=this.isCellEditing,a=this.hasEditColumn,l=this.editingCell,c=this.isEditColumn;return!!i&&!!a&&!s(n)&&!s(r)&&(!l||l.rowKey!=n||l.colKey!=r)&&(o&&this[qt](),void(t&&c(r)?(this.enableStopEditing=!1,this[Ut]({rowKey:n,colKey:r})):this.enableStopEditing=!0))},setEditingCell:function(e){var t=e.rowKey,n=e.colKey,r=e.column,i=e.row;this.editingCell={rowKey:t,row:Object(P.cloneDeep)(i),colKey:n,column:r}},updateEditingCellValue:function(e){var t=this.editingCell,n=t.row;n[t.column.field]=e,this.editingCell.row=n},clearEditingCell:function(){this.editingCell={rowKey:"",colKey:"",row:null,column:null}},contextmenuItemClick:function(e){this.contextMenuType===Gt?this.headerContextmenuItemClick(e):this.bodyContextmenuItemClick(e)},headerContextmenuItemClick:function(e){var t=this.contextmenuHeaderOption,n=this.cellSelectionData,r=this.cellSelectionRangeData,i=this.allRowKeys,o=this.colgroups,a=this.enableColumnResize,u=n.currentCell,d=u.rowKey,f=u.colKey,h=t.afterMenuClick;if(!s(d)&&!s(f)){var p=hn({cellSelectionRangeData:r}),m=pn({cellSelectionRangeData:r,colgroups:o,allRowKeys:i});if(l(h)){var y=h({type:e,selectionRangeKeys:p,selectionRangeIndexes:m});if(c(y)&&!y)return!1}var v=this.$refs[this.editInputRef];Zt.CUT===e?(v.textareaSelect(),document.execCommand("cut")):Zt.COPY===e?(v.textareaSelect(),document.execCommand("copy")):Zt.EMPTY_COLUMN===e?this.deleteCellSelectionRangeValue():Zt.LEFT_FIXED_COLUMN_TO===e?this.cloneColumns=kn({cloneColumns:this.cloneColumns,cellSelectionRangeData:r,fixedType:Fe,colgroups:o,enableColumnResize:a}):Zt.CANCEL_LEFT_FIXED_COLUMN_TO===e?this.cloneColumns=wn({cloneColumns:this.cloneColumns,colgroups:o,fixedType:Fe,enableColumnResize:a}):Zt.RIGHT_FIXED_COLUMN_TO===e?this.cloneColumns=kn({cloneColumns:this.cloneColumns,cellSelectionRangeData:r,fixedType:Ke,colgroups:o,enableColumnResize:a}):Zt.CANCEL_RIGHT_FIXED_COLUMN_TO===e&&(this.cloneColumns=wn({cloneColumns:this.cloneColumns,colgroups:o,fixedType:Ke,enableColumnResize:a}))}},bodyContextmenuItemClick:function(e){var t=this.contextmenuBodyOption,n=this.cellSelectionData,r=this.cellSelectionRangeData,i=this.tableData,o=this.allRowKeys,a=this.colgroups,u=this.rowKeyFieldName,d=n.currentCell,f=d.rowKey,h=d.colKey,p=t.afterMenuClick;if(!s(f)&&!s(h)){var m=hn({cellSelectionRangeData:r}),y=pn({cellSelectionRangeData:r,colgroups:a,allRowKeys:o});if(l(p)){var v=p({type:e,selectionRangeKeys:m,selectionRangeIndexes:y});if(c(v)&&!v)return!1}var g=y.startRowIndex,b=y.endRowIndex,_=o.findIndex(function(e){return e===f}),k=this.$refs[this.editInputRef];Zt.CUT===e?(k.textareaSelect(),document.execCommand("cut")):Zt.COPY===e?(k.textareaSelect(),document.execCommand("copy")):Zt.REMOVE_ROW===e?i.splice(g,b-g+1):Zt.EMPTY_ROW===e||Zt.EMPTY_CELL===e?this.deleteCellSelectionRangeValue():Zt.INSERT_ROW_ABOVE===e?i.splice(_,0,an({colgroups:a,rowKeyFieldName:u})):Zt.INSERT_ROW_BELOW===e&&i.splice(_+1,0,an({colgroups:a,rowKeyFieldName:u}))}},editorCopy:function(e){var t=this.isCellEditing,n=this.enableClipboard,r=this.clipboardOption,i=this.cellSelectionRangeData,o=this.tableData,a=this.colgroups,s=this.allRowKeys;if(!n)return!1;if(t)return!1;var u=r||{},d=u.copy,f=u.beforeCopy,h=u.afterCopy;if(c(d)&&!d)return!1;e.preventDefault();var p=mn({cellSelectionRangeData:i,resultType:"flat",tableData:o,colgroups:a,allRowKeys:s}),m=function(e){var t=e.cellSelectionRangeData,n=e.selectionRangeData,r=e.colgroups,i=e.allRowKeys,o=t.leftColKey,a=t.rightColKey,s=t.topRowKey,l=t.bottomRowKey;return{selectionRangeIndexes:{startColIndex:r.findIndex(function(e){return e.key===o}),endColIndex:r.findIndex(function(e){return e.key===a}),startRowIndex:i.indexOf(s),endRowIndex:i.indexOf(l)},selectionRangeKeys:{startColKey:o,endColKey:a,startRowKey:s,endRowKey:l},data:n}}({cellSelectionRangeData:i,selectionRangeData:p,colgroups:a,allRowKeys:s});if(l(f)){var y=f(m);if(c(y)&&!y)return!1}!function(e){var t=e.event,n=An(e.selectionRangeData);t.clipboardData?t.clipboardData.setData("text/plain",n):window.clipboardData&&window.clipboardData.setData("Text",n)}({event:e,selectionRangeData:p}),l(h)&&h(m)},editorPaste:function(e){var t=this.isCellEditing,n=this.enableClipboard,r=this.clipboardOption;if(!n)return!1;if(t)return!1;var i=r||{},o=i.paste,a=i.beforePaste,s=i.afterPaste;if(c(o)&&!o)return!1;e.preventDefault();var u,d,f,h,p,m=function(e){var t,n=e.event,r=e.cellSelectionRangeData,i=e.colgroups,o=e.allRowKeys;if(n.clipboardData?t=n.clipboardData.getData("text/plain"):window.clipboardData&&(t=window.clipboardData.getData("Text")),"string"!=typeof t)return null;var a=function(e){var t=[[""]];if(0===e.length)return t;for(var n,r=0,i=0;e.length>0&&n!==e.length;)if(n=e.length,e.match(Sn))e=e.replace(Sn,""),r+=1,t[i][r]="";else if(e.match(xn))e=e.replace(xn,""),r=0,t[i+=1]=[""];else{var o="";if(e.startsWith('"')){for(var a=0,s=!0;s;){var l=e.slice(0,1);'"'===l&&(a+=1),o+=l,(0===(e=e.slice(1)).length||e.match(/^[\t\r\n]/)&&a%2==0)&&(s=!1)}o=o.replace(/^"/,"").replace(/"$/,"").replace(/["]*/g,function(e){return new Array(Math.floor(e.length/2)).fill('"').join("")})}else{var c=e.match(Cn);o=c?c[0]:"",e=e.slice(o.length)}t[i][r]=o}return Array.isArray(t)&&t.length>1&&1===t[t.length-1].length&&""===t[t.length-1][0]&&(t=t.slice(0,t.length-1)),t}(t),s=i.findIndex(function(e){return e.key===r.leftColKey}),l=Math.min(s+a[0].length-1,i.length-1),c=o.indexOf(r.topRowKey),u=Math.min(c+a.length-1,o.length-1),d={selectionRangeIndexes:{startColIndex:s,endColIndex:l,startRowIndex:c,endRowIndex:u},selectionRangeKeys:{startColKey:i[s].key,endColKey:i[l].key,startRowKey:o[c],endRowKey:o[u]},data:[]},f=i.slice(s,l+1).map(function(e){return e.field});return d.data=a.slice(0,u-c+1).map(function(e){var t={};return e.forEach(function(e,n){n<=l-s&&(t[f[n]]=e)}),t}),d}({event:e,cellSelectionRangeData:this.cellSelectionRangeData,colgroups:this.colgroups,allRowKeys:this.allRowKeys,rowKeyFieldName:this.rowKeyFieldName});if(m&&Array.isArray(m.data)&&m.data.length){if(l(a)){var y=a(m);if(c(y)&&!y)return!1}u={tableData:this.tableData,beforePasteResponse:m},d=u.tableData,h=(f=u.beforePasteResponse).data,p=f.selectionRangeIndexes,h.forEach(function(e,t){Object.assign(d[p.startRowIndex+t],e)}),l(s)&&s(m);var v=m.selectionRangeKeys,g=v.startColKey,b=v.endColKey,_=v.startRowKey,k=v.endRowKey;this.cellSelectionCurrentCellChange({rowKey:_,colKey:g}),this.cellSelectionNormalEndCellChange({rowKey:k,colKey:b}),this.hooks.triggerHook(Rt)}},editorCut:function(e){var t=this.isCellEditing,n=this.enableClipboard,r=this.clipboardOption,i=this.cellSelectionRangeData,o=this.tableData,a=this.colgroups,s=this.allRowKeys;if(!n)return!1;if(t)return!1;var u=r||{},d=u.cut,f=u.beforeCut,h=u.afterCut;if(c(d)&&!d)return!1;e.preventDefault();var p=mn({cellSelectionRangeData:i,resultType:"flat",tableData:o,colgroups:a,allRowKeys:s}),m=function(e){var t=e.cellSelectionRangeData,n=e.selectionRangeData,r=e.colgroups,i=e.allRowKeys,o=t.leftColKey,a=t.rightColKey,s=t.topRowKey,l=t.bottomRowKey;return{selectionRangeIndexes:{startColIndex:r.findIndex(function(e){return e.key===o}),endColIndex:r.findIndex(function(e){return e.key===a}),startRowIndex:i.indexOf(s),endRowIndex:i.indexOf(l)},selectionRangeKeys:{startColKey:o,endColKey:a,startRowKey:s,endRowKey:l},data:n}}({cellSelectionRangeData:i,selectionRangeData:p,colgroups:a,allRowKeys:s});if(l(f)){var y=f(m);if(c(y)&&!y)return!1}!function(e){var t=e.event,n=e.tableData,r=e.colgroups,i=e.selectionRangeIndexes,o=An(e.selectionRangeData),a=i.endColIndex,s=i.endRowIndex,l=i.startColIndex,c=i.startRowIndex,u=r.slice(l,a+1).map(function(e){return e.field});n.forEach(function(e,t){t>=c&&t<=s&&u.forEach(function(t){e[t]=""})}),t.clipboardData?t.clipboardData.setData("text/plain",o):window.clipboardData&&window.clipboardData.setData("Text",o)}({event:e,tableData:o,colgroups:a,selectionRangeData:p,selectionRangeIndexes:m.selectionRangeIndexes}),l(h)&&h(m)},deleteCellSelectionRangeValue:function(){var e=this.isCellEditing,t=this.enableClipboard,n=this.clipboardOption,r=this.cellSelectionRangeData,i=this.tableData,o=this.colgroups,a=this.allRowKeys;if(!t)return!1;if(e)return!1;var s=n||{},u=s.delete,d=s.beforeDelete,f=s.afterDelete;if(c(u)&&!u)return!1;var h=function(e){var t=e.cellSelectionRangeData,n=e.selectionRangeData,r=e.colgroups,i=e.allRowKeys,o=t.leftColKey,a=t.rightColKey,s=t.topRowKey,l=t.bottomRowKey;return{selectionRangeIndexes:{startColIndex:r.findIndex(function(e){return e.key===o}),endColIndex:r.findIndex(function(e){return e.key===a}),startRowIndex:i.indexOf(s),endRowIndex:i.indexOf(l)},selectionRangeKeys:{startColKey:o,endColKey:a,startRowKey:s,endRowKey:l},data:n}}({cellSelectionRangeData:r,selectionRangeData:mn({cellSelectionRangeData:r,resultType:"flat",tableData:i,colgroups:o,allRowKeys:a}),colgroups:o,allRowKeys:a});if(l(d)){var p=d(h);if(c(p)&&!p)return!1}!function(e){var t=e.tableData,n=e.colgroups,r=e.selectionRangeIndexes,i=r.endColIndex,o=r.endRowIndex,a=r.startColIndex,s=r.startRowIndex,l=n.slice(a,i+1).map(function(e){return e.field});t.forEach(function(e,t){t>=s&&t<=o&&l.forEach(function(t){e[t]=""})})}({tableData:i,colgroups:o,selectionRangeIndexes:h.selectionRangeIndexes}),l(f)&&f(h)},setRangeCellSelectionByHeaderIndicator:function(){var e=this.headerIndicatorColKeys,t=this.allRowKeys,n=e.startColKey,r=e.endColKey;if(s(n)||s(r))return!1;this.cellSelectionCurrentCellChange({rowKey:t[0],colKey:n}),this.cellSelectionNormalEndCellChange({rowKey:t[t.length-1],colKey:r})},setRangeCellSelectionByBodyIndicator:function(){var e=this.bodyIndicatorRowKeys,t=this.colgroups,n=e.startRowKey,r=e.endRowKey;if(s(n)||s(r))return!1;t.length>1&&(this.cellSelectionCurrentCellChange({rowKey:n,colKey:t[1].key}),this.cellSelectionNormalEndCellChange({rowKey:r,colKey:t[t.length-1].key}))},setIsColumnResizerHover:function(e){this.isColumnResizerHover=e},setIsColumnResizing:function(e){this.isColumnResizing=e}},Dr(Or,$t,function(e){var t=e.rowKey,n=e.colKey,r=e.isScrollToRow,i=void 0===r||r;if(!this.enableCellSelection)return!1;if(!s(t)&&!s(n)){this.cellSelectionCurrentCellChange({rowKey:t,colKey:n});var o=Qt(n,this.colgroups);this.columnToVisible(o),i&&this[zt]({rowKey:t})}}),Dr(Or,"setRangeCellSelection",function(e){var t=e.startRowKey,n=e.startColKey,r=e.endRowKey,i=e.endColKey,o=e.isScrollToStartCell,a=void 0!==o&&o;if(!this.enableCellSelection)return!1;if(s(t)||s(n)||s(r)||s(i))return!1;if(this.cellSelectionCurrentCellChange({rowKey:t,colKey:n}),this.cellSelectionNormalEndCellChange({rowKey:r,colKey:i}),a){var l=Qt(n,this.colgroups);this.columnToVisible(l),this[zt]({rowKey:t})}}),Dr(Or,"getRangeCellSelection",function(){var e=this.cellSelectionData,t=this.cellSelectionRangeData,n=this.allRowKeys,r=this.colgroups,i=e.currentCell,o=i.rowKey,a=i.colKey;if(!s(o)&&!s(a))return{selectionRangeKeys:hn({cellSelectionRangeData:t}),selectionRangeIndexes:pn({cellSelectionRangeData:t,colgroups:r,allRowKeys:n})}}),Dr(Or,Ht,function(){if(!this.enableCellSelection)return!1;var e=this.colgroups,t=this.allRowKeys;if(e.length){var n=e.filter(function(e){return!e.operationColumn}).map(function(e){return e.key});n.length&&this.headerIndicatorColKeysChange({startColKey:n[0],endColKey:n[n.length-1]})}t.length&&this.bodyIndicatorRowKeysChange({startRowKey:t[0],endRowKey:t[t.length-1]})}),Dr(Or,"hideColumnsByKeys",function(e){a(e)||(this.hiddenColumns=Array.from(new Set(this.hiddenColumns.concat(e))),this.showOrHideColumns())}),Dr(Or,"showColumnsByKeys",function(e){if(!a(e)){for(var t=e.length-1;t>=0;t--){var n=this.hiddenColumns.indexOf(e[t]);n>-1&&this.hiddenColumns.splice(n,1)}this.showOrHideColumns()}}),Dr(Or,"scrollTo",function(e){f(this.$refs[this.tableContainerRef],e)}),Dr(Or,zt,function(e){var t=e.rowKey;if(s(t))return console.warn("Row key can't be empty!"),!1;var n=0,r=this.isVirtualScroll,i=this.headerTotalHeight,o=this.$refs[this.tableContainerRef];if(r){var a=this.virtualScrollPositions.find(function(e){return e.rowKey===t});a&&(n=a.top),setTimeout(function(){f(o,{top:n,behavior:"auto"})},200)}else{var l=this.$el.querySelector("tbody tr[".concat(Vt,'="').concat(t,'"]'));n=l.offsetTop-i}f(o,{top:n,behavior:r?"auto":"smooth"})}),Dr(Or,"scrollToColKey",function(e){var t=Qt(e.colKey,this.colgroups);t&&this.columnToVisible(t)}),Dr(Or,Ut,function(e){var t=e.rowKey,n=e.colKey,r=e.defaultValue,i=this.editOption,o=this.colgroups,a=this.rowKeyFieldName,s=this.editingCell,l=this.cellSelectionData;if(!i)return!1;var c=this.tableData.find(function(e){return e[a]===t});if(c=Object(P.cloneDeep)(c),s.rowKey===t&&s.colKey===n)return!1;var u=o.find(function(e){return e.key===n});if(!u.edit)return!1;null!=r?(this.editorInputStartValue=r,c[u.field]=r):this.editorInputStartValue=c[u.field],l.currentCell.colKey===n&&l.currentCell.rowKey===t||this.cellSelectionCurrentCellChange({rowKey:t,colKey:n}),this.setEditingCell({rowKey:t,colKey:n,column:u,row:Object(P.cloneDeep)(c)})}),Dr(Or,qt,function(){var e=this.editOption,t=this.isCellEditing;if(!e)return!1;this.editorInputStartValue="",t&&this.saveCellWhenStopEditing()}),Dr(Or,Wt,function(e){var t=e.rowKey;this.highlightRowKey=t}),Or),created:function(){this.debouncedBodyCellWidthChange=Object(P.debounce)(this.bodyCellWidthChange,0)},mounted:function(){var e=this;this.parentRendered=!0,this.contextmenuEventTarget=this.$el.querySelector(".".concat(Xt("content"))),this.hooks=new Dn,this.$on(ht,function(t){e.updateColgroupsBySortChange(t)}),this.$on(ut,function(t){e.selectedAllChange(t)}),this.$on(dt,function(t){e.setSelectedAllInfo(t)}),this.$on(Xe,function(t){var n=t.rowIndex,r=t.height;e.headerRowHeightChange({rowIndex:n,height:r})}),this.$on(Qe,function(t){var n=t.rowKey,r=t.height;e.bodyRowHeightChange({rowKey:n,height:r})}),this.$on(Je,function(t){var n=t.rowIndex,r=t.height;e.footRowHeightChange({rowIndex:n,height:r})}),this.$on(tt,function(t){e.bodyCellClick(t)}),this.$on(nt,function(t){e.bodyCellMouseover(t)}),this.$on(rt,function(t){e.bodyCellMousedown(t)}),this.$on(it,function(t){e.bodyCellMousemove(t)}),this.$on(ot,function(t){e.bodyCellMouseup(t)}),this.$on(Ot,function(t){e.cellSelectionCornerMousedown(t)}),this.$on(jt,function(t){e.cellSelectionCornerMouseup(t)}),this.$on(Tt,function(t){e.autofillingDirectionChange(t)}),this.$on(st,function(t){e.bodyCellContextmenu(t)}),this.$on(at,function(t){e.bodyCellDoubleClick(t)}),this.$on(mt,function(t){e.headerCellClick(t)}),this.$on(yt,function(t){e.headerCellContextmenu(t)}),this.$on(vt,function(t){e.headerCellMousedown(t)}),this.$on(gt,function(t){e.headerCellMouseover(t)}),this.$on(bt,function(t){e.headerCellMousemove(t)}),this.$on(_t,function(t){e.headerCellMouseleave(t)}),document.addEventListener("keydown",this.dealKeydownEvent),this.initScrolling()},destroyed:function(){document.removeEventListener("keydown",this.dealKeydownEvent)},render:function(){var e,t,n=this,r=arguments[0],i=this.showHeader,o=this.tableViewportWidth,a=this.tableContainerStyle,s=this.tableStyle,l=this.tableClass,c=this.colgroups,u=this.groupColumns,d=this.fixedHeader,f=this.fixedFooter,h=this.actualRenderTableData,p=this.debouncedBodyCellWidthChange,m=this.expandOption,y=this.checkboxOption,v=this.radioOption,g=this.rowKeyFieldName,b=this.virtualScrollOption,_=this.isVirtualScroll,k=this.sortOption,w=this.cellStyleOption,x=this.showVirtualScrollingPlaceholder,C=this.cellSelectionData,S=this.editOption,A=this.contextmenuOptions,O=this.allRowKeys,j=this.enableCellSelection,T=this.enableColumnResize,E=this.cellSelectionRangeData,D=this.headerIndicatorColKeys,I=this.bodyIndicatorRowKeys,R={class:Xt("header"),style:{cursor:this.isColumnResizerHover||this.isColumnResizing?"col-resize":""},props:{columnsOptionResetTime:this.columnsOptionResetTime,tableViewportWidth:o,groupColumns:u,colgroups:c,isGroupHeader:this.isGroupHeader,fixedHeader:d,checkboxOption:y,sortOption:k,cellStyleOption:w,eventCustomOption:this.eventCustomOption,headerRows:this.headerRows,cellSelectionData:C,cellSelectionRangeData:E,headerIndicatorColKeys:D},nativeOn:{click:function(){n[qt]()},mouseleave:function(e){n.headerMouseleave(e)}}},M={ref:this.tableBodyRef,class:[Xt("body"),this.tableBodyClass],props:{tableViewportWidth:o,columnsOptionResetTime:this.columnsOptionResetTime,colgroups:c,expandOption:m,checkboxOption:y,actualRenderTableData:h,rowKeyFieldName:g,radioOption:v,virtualScrollOption:b,isVirtualScroll:_,cellStyleOption:w,cellSpanOption:this.cellSpanOption,eventCustomOption:this.eventCustomOption,cellSelectionOption:this.cellSelectionOption,hasFixedColumn:this.hasFixedColumn,cellSelectionData:C,cellSelectionRangeData:E,allRowKeys:O,editOption:S,highlightRowKey:this.highlightRowKey,showVirtualScrollingPlaceholder:x,bodyIndicatorRowKeys:I},on:(e={},Dr(e,Ye,p),Dr(e,kt,this[Wt]),e)},P={class:[Xt("footer")],props:{colgroups:c,footerData:this.footerData,rowKeyFieldName:g,cellStyleOption:w,fixedFooter:f,cellSpanOption:this.cellSpanOption,eventCustomOption:this.eventCustomOption,hasFixedColumn:this.hasFixedColumn,allRowKeys:O,footerRows:this.footerRows},nativeOn:{click:function(){n[qt]()}}},L={ref:this.tableRootRef,class:{"vue-table-root":!0}},B={ref:this.tableContainerWrapperRef,style:this.tableContainerWrapperStyle,class:Dr({"ve-table":!0},Xt("border-around"),this.borderAround),props:{tagName:"div"},on:{"on-dom-resize-change":function(e){var t=e.height;n.tableOffestHeight=t,n.initVirtualScroll(),n.initScrolling(),n.setScrollBarStatus(),n.hooks.triggerHook(Dt)}},directives:[{name:"click-outside",value:function(e){n.tableClickOutside(e)}}]},N={ref:this.tableContainerRef,class:this.tableContainerClass,style:a,on:{scroll:function(){var e=n.$refs[n.tableContainerRef];if(n.hooks.triggerHook(Et,e),n.setScrolling(e),_){n.tableContainerVirtualScrollHandler(e);var t=n.virtualScrollStartIndex,r=n.previewVirtualScrollStartIndex,i=Math.abs(t-r);n.previewVirtualScrollStartIndex=t,i>n.defaultPlaceholderPerScrollingRowCount?n.showVirtualScrollingPlaceholder=!0:n.showVirtualScrollingPlaceholder=!1,n.debounceScrollEnded()}},mouseup:function(){n.tableContainerMouseup()},mousemove:function(e){}}},F={ref:this.tableContentWrapperRef,class:[Xt("content-wrapper")],props:{tagName:"div"},on:{"on-dom-resize-change":function(e){var t=e.height;n.tableHeight=t}}},K={ref:this.tableRef,class:[Xt("content"),l],style:s},V={ref:this.cellSelectionRef,props:{tableEl:this.$refs[this.tableRef],allRowKeys:O,colgroups:c,parentRendered:this.parentRendered,hooks:this.hooks,cellSelectionData:C,isAutofillStarting:this.isAutofillStarting,cellSelectionRangeData:E,currentCellSelectionType:this.currentCellSelectionType,showVirtualScrollingPlaceholder:x,isVirtualScroll:_,virtualScrollVisibleIndexs:this.virtualScrollVisibleIndexs,isCellEditing:this.isCellEditing,cellAutofillOption:this.cellAutofillOption},on:Dr({},pt,function(e){n.cellSelectionRangeDataChange(e)})},z={ref:this.editInputRef,props:{hooks:this.hooks,parentRendered:this.parentRendered,inputStartValue:this.editorInputStartValue,rowKeyFieldName:g,tableData:this.tableData,cellSelectionData:C,colgroups:c,editingCell:this.editingCell,isCellEditing:this.isCellEditing,allRowKeys:O,hasXScrollBar:this.hasXScrollBar,hasYScrollBar:this.hasYScrollBar,hasRightFixedColumn:this.hasRightFixedColumn,scrollBarWidth:this.getScrollBarWidth()},on:(t={},Dr(t,wt,function(){n.enableStopEditing=!1}),Dr(t,xt,function(e){n.updateEditingCellValue(e)}),Dr(t,Ct,function(e){n.editorCopy(e)}),Dr(t,St,function(e){n.editorPaste(e)}),Dr(t,At,function(e){n.editorCut(e)}),t)},U={ref:this.contextmenuRef,props:{eventTarget:this.contextmenuEventTarget,options:A},on:{"on-node-click":function(e){n.contextmenuItemClick(e)}}},q={props:{parentRendered:this.parentRendered,tableContainerEl:this.$refs[this.tableContainerRef],hooks:this.hooks,colgroups:c,isColumnResizerHover:this.isColumnResizerHover,isColumnResizing:this.isColumnResizing,setIsColumnResizerHover:this.setIsColumnResizerHover,setIsColumnResizing:this.setIsColumnResizing,setColumnWidth:this.setColumnWidth,columnWidthResizeOption:this.columnWidthResizeOption}};return r("div",L,[r(Wn,B,[r("div",N,[this.getVirtualViewPhantom(),r(Wn,F,[r("table",K,[r(Mn,{attrs:{colgroups:c,enableColumnResize:T}}),i&&r(Hn,R),r(sr,M),r(hr,P)]),j&&r(xr,V)])]),j&&r(vr,z),(this.enableHeaderContextmenu||this.enableBodyContextmenu)&&r(Sr.a,U),T&&r(jr,q)])])},install:function(e){e.component(Rr.name,Rr)}},Mr=Rr,Pr="2.24.0",Lr=[y,b,F,Y,Q,fe,ve,Ae,Ee,Le,Mr],Br=function(e){Lr.forEach(function(t){e.use(t)}),e.prototype.$veLoading=fe,e.prototype.$veLocale=ve};"undefined"!=typeof window&&window.Vue&&Br(window.Vue),t.default={install:Br,version:Pr,VeCheckbox:y,VeCheckboxGroup:b,VeContextmenu:F,VeDropdown:Y,VeIcon:Q,VeLoading:fe,VeLocale:ve,VePagination:Ae,VeRadio:Ee,VeSelect:Le,VeTable:Mr}}]).default},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},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="",n(n.s=190)}([,function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(this,n(73))},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(1),i=n(29),o=n(4),a=n(33),s=n(40),l=n(56),c=i("wks"),u=r.Symbol,d=l?u:u&&u.withoutSetter||a;e.exports=function(e){return o(c,e)&&(s||"string"==typeof c[e])||(s&&o(u,e)?c[e]=u[e]:c[e]=d("Symbol."+e)),c[e]}},function(e,t,n){var r=n(12),i={}.hasOwnProperty;e.exports=function(e,t){return i.call(r(e),t)}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(7),i=n(47),o=n(9),a=n(17),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(o(e),t=a(t,!0),o(n),i)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(2);e.exports=!r(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},function(e,t,n){var r=n(1),i=n(19).f,o=n(10),a=n(14),s=n(32),l=n(61),c=n(51);e.exports=function(e,t){var n,u,d,f,h,p=e.target,m=e.global,y=e.stat;if(n=m?r:y?r[p]||s(p,{}):(r[p]||{}).prototype)for(u in t){if(f=t[u],d=e.noTargetGet?(h=i(n,u))&&h.value:n[u],!c(m?u:p+(y?".":"#")+u,e.forced)&&void 0!==d){if(typeof f==typeof d)continue;l(f,d)}(e.sham||d&&d.sham)&&o(f,"sham",!0),a(n,u,f,e)}}},function(e,t,n){var r=n(5);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,n){var r=n(7),i=n(6),o=n(18);e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(35),i=n(13);e.exports=function(e){return r(i(e))}},function(e,t,n){var r=n(13);e.exports=function(e){return Object(r(e))}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(1),i=n(10),o=n(4),a=n(32),s=n(46),l=n(26),c=l.get,u=l.enforce,d=String(String).split("String");(e.exports=function(e,t,n,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,h=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||o(n,"name")||i(n,"name",t),(l=u(n)).source||(l.source=d.join("string"==typeof t?t:""))),e!==r?(c?!h&&e[t]&&(f=!0):delete e[t],f?e[t]=n:i(e,t,n)):f?e[t]=n:a(t,n)})(Function.prototype,"toString",function(){return"function"==typeof this&&c(this).source||s(this)})},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(25),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){var r=n(5);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")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(7),i=n(42),o=n(18),a=n(11),s=n(17),l=n(4),c=n(47),u=Object.getOwnPropertyDescriptor;t.f=r?u:function(e,t){if(e=a(e),t=s(t,!0),c)try{return u(e,t)}catch(e){}if(l(e,t))return o(!i.f.call(e,t),e[t])}},function(e,t,n){"use strict";n.d(t,"b",function(){return r}),n.d(t,"a",function(){return i}),n.d(t,"c",function(){return o});var r={BACK_SPACE:8,TAB:9,ENTER:13,SHIFT:16,SPACE:32,ARROW_LEFT:37,ARROW_UP:38,ARROW_RIGHT:39,ARROW_DOWN:40,DELETE:46,F2:113},i={FILTER:"filter",DOUBLE_RIGHT_ARROW:"double-right-arrow",DOUBLE_LEFT_ARROW:"double-left-arrow",TOP_ARROW:"top-arrow",RIGHT_ARROW:"right-arrow",BOTTOM_ARROW:"bottom-arrow",LEFT_ARROW:"left-arrow",SORT_TOP_ARROW:"sort-top-arrow",SORT_BOTTOM_ARROW:"sort-bottom-arrow",SEARCH:"search"},o={LEFT_MOUSE:1,MIDDLE_MOUSE:2,RIGHT_MOUSE:2}},function(e,t){e.exports={}},function(e,t,n){var r=n(53),i=n(1),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e])||o(i[e]):r[e]&&r[e][t]||i[e]&&i[e][t]}},function(e,t,n){var r=n(29),i=n(33),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},function(e,t){e.exports=!1},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r,i,o,a=n(80),s=n(1),l=n(5),c=n(10),u=n(4),d=n(30),f=n(23),h=n(21),p=s.WeakMap;if(a||d.state){var m=d.state||(d.state=new p),y=m.get,v=m.has,g=m.set;r=function(e,t){if(v.call(m,e))throw new TypeError("Object already initialized");return t.facade=e,g.call(m,e,t),t},i=function(e){return y.call(m,e)||{}},o=function(e){return v.call(m,e)}}else{var b=f("state");h[b]=!0,r=function(e,t){if(u(e,b))throw new TypeError("Object already initialized");return t.facade=e,c(e,b,t),t},i=function(e){return u(e,b)?e[b]:{}},o=function(e){return u(e,b)}}e.exports={set:r,get:i,has:o,enforce:function(e){return o(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){var r=n(48),i=n(31).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){var r,i=n(9),o=n(81),a=n(31),s=n(21),l=n(74),c=n(45),u=n(23)("IE_PROTO"),d=function(){},f=function(e){return"<script>"+e+"<\/script>"},h=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;h=r?function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t}(r):((t=c("iframe")).style.display="none",l.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F);for(var n=a.length;n--;)delete h.prototype[a[n]];return h()};s[u]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(d.prototype=i(e),n=new d,d.prototype=null,n[u]=e):n=h(),void 0===t?n:o(n,t)}},function(e,t,n){var r=n(24),i=n(30);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.13.0",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){var r=n(1),i=n(32),o=r["__core-js_shared__"]||i("__core-js_shared__",{});e.exports=o},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,n){var r=n(1),i=n(10);e.exports=function(e,t){try{i(r,e,t)}catch(n){r[e]=t}return t}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},function(e,t,n){var r=n(69),i=n(35),o=n(12),a=n(16),s=n(55),l=[].push,c=function(e){var t=1==e,n=2==e,c=3==e,u=4==e,d=6==e,f=7==e,h=5==e||d;return function(p,m,y,v){for(var g,b,_=o(p),k=i(_),w=r(m,y,3),x=a(k.length),C=0,S=v||s,A=t?S(p,x):n||f?S(p,0):void 0;x>C;C++)if((h||C in k)&&(b=w(g=k[C],C,_),e))if(t)A[C]=b;else if(b)switch(e){case 3:return!0;case 5:return g;case 6:return C;case 2:l.call(A,g)}else switch(e){case 4:return!1;case 7:l.call(A,g)}return d?-1:c||u?u:A}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterOut:c(7)}},function(e,t,n){var r=n(2),i=n(15),o="".split;e.exports=r(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==i(e)?o.call(e,""):Object(e)}:Object},function(e,t,n){var r=n(48),i=n(31);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){var r,i,o=n(1),a=n(82),s=o.process,l=s&&s.versions,c=l&&l.v8;c?i=(r=c.split("."))[0]<4?1:r[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=r[1]),e.exports=i&&+i},function(e,t,n){"use strict";var r=n(7),i=n(1),o=n(51),a=n(14),s=n(4),l=n(15),c=n(92),u=n(17),d=n(2),f=n(28),h=n(27).f,p=n(19).f,m=n(6).f,y=n(96).trim,v=i.Number,g=v.prototype,b="Number"==l(f(g)),_=function(e){var t,n,r,i,o,a,s,l,c=u(e,!1);if("string"==typeof c&&c.length>2)if(43===(t=(c=y(c)).charCodeAt(0))||45===t){if(88===(n=c.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(c.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+c}for(a=(o=c.slice(2)).length,s=0;s<a;s++)if((l=o.charCodeAt(s))<48||l>i)return NaN;return parseInt(o,r)}return+c};if(o("Number",!v(" 0o1")||!v("0b1")||v("+0x1"))){for(var k,w=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof w&&(b?d(function(){g.valueOf.call(n)}):"Number"!=l(n))?c(new v(_(t)),n,w):_(t)},x=r?h(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),C=0;x.length>C;C++)s(v,k=x[C])&&!s(w,k)&&m(w,k,p(v,k));w.prototype=g,g.constructor=w,a(i,"Number",w)}},function(e,t,n){var r=n(15);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(37),i=n(2);e.exports=!!Object.getOwnPropertySymbols&&!i(function(){return!String(Symbol())||!Symbol.sham&&r&&r<41})},function(e,t,n){var r=n(7),i=n(6).f,o=Function.prototype,a=o.toString,s=/^\s*function ([^ (]*)/;r&&!("name"in o)&&i(o,"name",{configurable:!0,get:function(){try{return a.call(this).match(s)[1]}catch(e){return""}}})},function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},,,function(e,t,n){var r=n(1),i=n(5),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},function(e,t,n){var r=n(30),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource},function(e,t,n){var r=n(7),i=n(2),o=n(45);e.exports=!r&&!i(function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(4),i=n(11),o=n(62).indexOf,a=n(21);e.exports=function(e,t){var n,s=i(e),l=0,c=[];for(n in s)!r(a,n)&&r(s,n)&&c.push(n);for(;t.length>l;)r(s,n=t[l++])&&(~o(c,n)||c.push(n));return c}},function(e,t){t.f=Object.getOwnPropertySymbols},,function(e,t,n){var r=n(2),i=/#|\.prototype\./,o=function(e,t){var n=s[a(e)];return n==c||n!=l&&("function"==typeof t?r(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=o.data={},l=o.NATIVE="N",c=o.POLYFILL="P";e.exports=o},function(e,t,n){var r=n(2),i=n(3),o=n(37),a=i("species");e.exports=function(e){return o>=51||!r(function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo})}},function(e,t,n){var r=n(1);e.exports=r},,function(e,t,n){var r=n(5),i=n(39),o=n(3)("species");e.exports=function(e,t){var n;return i(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!i(n.prototype)?r(n)&&null===(n=n[o])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},function(e,t,n){var r=n(40);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},,function(e,t,n){var r=n(9),i=n(91);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,o){return r(n),i(o),t?e.call(n,o):n.__proto__=o,n}}():void 0)},function(e,t,n){var r=n(25),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){var r=n(4),i=n(83),o=n(19),a=n(6);e.exports=function(e,t){for(var n=i(t),s=a.f,l=o.f,c=0;c<n.length;c++){var u=n[c];r(e,u)||s(e,u,l(t,u))}}},function(e,t,n){var r=n(11),i=n(16),o=n(59),a=function(e){return function(t,n,a){var s,l=r(t),c=i(l.length),u=o(a,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},,,,,,function(e,t){e.exports=n(56)},function(e,t,n){var r=n(60);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};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)}}},,,,function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(22);e.exports=r("document","documentElement")},function(e,t,n){"use strict";var r=n(2);e.exports=function(e,t){var n=[][e];return!!n&&r(function(){n.call(null,t||function(){throw 1},1)})}},,,,,function(e,t,n){var r=n(1),i=n(46),o=r.WeakMap;e.exports="function"==typeof o&&/native code/.test(i(o))},function(e,t,n){var r=n(7),i=n(6),o=n(9),a=n(36);e.exports=r?Object.defineProperties:function(e,t){o(e);for(var n,r=a(t),s=r.length,l=0;s>l;)i.f(e,n=r[l++],t[n]);return e}},function(e,t,n){var r=n(22);e.exports=r("navigator","userAgent")||""},function(e,t,n){var r=n(22),i=n(27),o=n(49),a=n(9);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),n=o.f;return n?t.concat(n(e)):t}},,function(e,t,n){"use strict";var r=n(8),i=n(34).map;r({target:"Array",proto:!0,forced:!n(52)("map")},{map:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},,,,,,function(e,t,n){var r=n(5);e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t,n){var r=n(5),i=n(58);e.exports=function(e,t,n){var o,a;return i&&"function"==typeof(o=t.constructor)&&o!==n&&r(a=o.prototype)&&a!==n.prototype&&i(e,a),e}},,,,function(e,t,n){var r=n(13),i="["+n(97)+"]",o=RegExp("^"+i+i+"*"),a=RegExp(i+i+"*$"),s=function(e){return function(t){var n=String(r(t));return 1&e&&(n=n.replace(o,"")),2&e&&(n=n.replace(a,"")),n}};e.exports={start:s(1),end:s(2),trim:s(3)}},function(e,t){e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},,,,,,,function(e,t,n){"use strict";var r=n(8),i=n(34).filter;r({target:"Array",proto:!0,forced:!n(52)("filter")},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},,,,,,,function(e,t,n){var r=n(8),i=n(127);r({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(7),i=n(2),o=n(36),a=n(49),s=n(42),l=n(12),c=n(35),u=Object.assign,d=Object.defineProperty;e.exports=!u||i(function(){if(r&&1!==u({b:1},u(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach(function(e){t[e]=e}),7!=u({},e)[n]||"abcdefghijklmnopqrst"!=o(u({},t)).join("")})?function(e,t){for(var n=l(e),i=arguments.length,u=1,d=a.f,f=s.f;i>u;)for(var h,p=c(arguments[u++]),m=d?o(p).concat(d(p)):o(p),y=m.length,v=0;y>v;)h=m[v++],r&&!f.call(p,h)||(n[h]=p[h]);return n}:u},,,function(e,t){e.exports=n(103)},,function(e,t,n){"use strict";var r=n(8),i=n(35),o=n(11),a=n(75),s=[].join,l=i!=Object,c=a("join",",");r({target:"Array",proto:!0,forced:l||!c},{join:function(e){return s.call(o(this),void 0===e?",":e)}})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t),n(41),n(38),n(111),n(132),n(85),n(104);var r=n(130),i=n.n(r);function o(e){return"ve-select-"+e}var a=n(68),s=n.n(a),l=n(20);function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u={name:"VeSelect",props:{width:{type:Number,default:90},maxWidth:{type:Number,default:0},isMultiple:{type:Boolean,default:!1},value:{type:Array,default:null},placeholder:{type:String,default:"请选择",validator:function(e){return e.length>0}},textAlign:{type:String,default:"left"},isInput:{type:Boolean,default:!1},popperAppendTo:{type:[String,HTMLElement],default:function(){return document.body}}},data:function(){return{visible:!1,internalOptions:[],inputValue:"",dropdownVisible:!1}},computed:{iconClass:function(){var e;return c(e={},o("show"),this.dropdownVisible),c(e,o("toggle-icon"),!0),e}},watch:{value:function(){this.init()}},methods:{init:function(){this.internalOptions=Object.assign([],this.value)},showSelectInfo:function(){var e;return e=this.selectedLabels(),Array.isArray(e)&&e.length>0?e.join():this.placeholder},selectedLabels:function(){return this.internalOptions.filter(function(e){return e.selected}).map(function(e){if(e.selected)return e.label})},dropdownChange:function(){this.$emit("input",this.internalOptions),this.$emit("on-select-change",this.internalOptions)}},created:function(){this.init()},render:function(){var e,t=this,n=arguments[0],r=this.isInput,a={class:"ve-select",props:{isSelect:!0,width:this.width,maxWidth:this.maxWidth,isMultiple:this.isMultiple,textAlign:this.textAlign,isInput:this.isInput,value:this.internalOptions,hideByItemClick:!0,popperAppendTo:this.popperAppendTo},style:{width:this.width},on:{input:function(e){t.internalOptions=e,t.dropdownChange()},"dropdown-visible-change":function(e){t.dropdownVisible=e}}};return e=r?n("input",{class:o("input"),attrs:{placeholder:this.placeholder,type:"text"},directives:[{name:"model",value:this.inputValue}]}):n("span",{class:o("selected-span")},[this.showSelectInfo()]),n(i.a,a,[n("span",[e,n(s.a,{attrs:{name:l.a.BOTTOM_ARROW},class:this.iconClass})])])},install:function(e){e.component(u.name,u)}};t.default=u}])},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="",n(n.s=185)}([,function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(this,n(73))},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(1),i=n(29),o=n(4),a=n(33),s=n(40),l=n(56),c=i("wks"),u=r.Symbol,d=l?u:u&&u.withoutSetter||a;e.exports=function(e){return o(c,e)&&(s||"string"==typeof c[e])||(s&&o(u,e)?c[e]=u[e]:c[e]=d("Symbol."+e)),c[e]}},function(e,t,n){var r=n(12),i={}.hasOwnProperty;e.exports=function(e,t){return i.call(r(e),t)}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(7),i=n(47),o=n(9),a=n(17),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(o(e),t=a(t,!0),o(n),i)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(2);e.exports=!r(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},function(e,t,n){var r=n(1),i=n(19).f,o=n(10),a=n(14),s=n(32),l=n(61),c=n(51);e.exports=function(e,t){var n,u,d,f,h,p=e.target,m=e.global,y=e.stat;if(n=m?r:y?r[p]||s(p,{}):(r[p]||{}).prototype)for(u in t){if(f=t[u],d=e.noTargetGet?(h=i(n,u))&&h.value:n[u],!c(m?u:p+(y?".":"#")+u,e.forced)&&void 0!==d){if(typeof f==typeof d)continue;l(f,d)}(e.sham||d&&d.sham)&&o(f,"sham",!0),a(n,u,f,e)}}},function(e,t,n){var r=n(5);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,n){var r=n(7),i=n(6),o=n(18);e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(35),i=n(13);e.exports=function(e){return r(i(e))}},function(e,t,n){var r=n(13);e.exports=function(e){return Object(r(e))}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(1),i=n(10),o=n(4),a=n(32),s=n(46),l=n(26),c=l.get,u=l.enforce,d=String(String).split("String");(e.exports=function(e,t,n,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,h=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||o(n,"name")||i(n,"name",t),(l=u(n)).source||(l.source=d.join("string"==typeof t?t:""))),e!==r?(c?!h&&e[t]&&(f=!0):delete e[t],f?e[t]=n:i(e,t,n)):f?e[t]=n:a(t,n)})(Function.prototype,"toString",function(){return"function"==typeof this&&c(this).source||s(this)})},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(25),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){var r=n(5);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")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(7),i=n(42),o=n(18),a=n(11),s=n(17),l=n(4),c=n(47),u=Object.getOwnPropertyDescriptor;t.f=r?u:function(e,t){if(e=a(e),t=s(t,!0),c)try{return u(e,t)}catch(e){}if(l(e,t))return o(!i.f.call(e,t),e[t])}},function(e,t,n){"use strict";n.d(t,"b",function(){return r}),n.d(t,"a",function(){return i}),n.d(t,"c",function(){return o});var r={BACK_SPACE:8,TAB:9,ENTER:13,SHIFT:16,SPACE:32,ARROW_LEFT:37,ARROW_UP:38,ARROW_RIGHT:39,ARROW_DOWN:40,DELETE:46,F2:113},i={FILTER:"filter",DOUBLE_RIGHT_ARROW:"double-right-arrow",DOUBLE_LEFT_ARROW:"double-left-arrow",TOP_ARROW:"top-arrow",RIGHT_ARROW:"right-arrow",BOTTOM_ARROW:"bottom-arrow",LEFT_ARROW:"left-arrow",SORT_TOP_ARROW:"sort-top-arrow",SORT_BOTTOM_ARROW:"sort-bottom-arrow",SEARCH:"search"},o={LEFT_MOUSE:1,MIDDLE_MOUSE:2,RIGHT_MOUSE:2}},function(e,t){e.exports={}},function(e,t,n){var r=n(53),i=n(1),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e])||o(i[e]):r[e]&&r[e][t]||i[e]&&i[e][t]}},function(e,t,n){var r=n(29),i=n(33),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},function(e,t){e.exports=!1},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r,i,o,a=n(80),s=n(1),l=n(5),c=n(10),u=n(4),d=n(30),f=n(23),h=n(21),p=s.WeakMap;if(a||d.state){var m=d.state||(d.state=new p),y=m.get,v=m.has,g=m.set;r=function(e,t){if(v.call(m,e))throw new TypeError("Object already initialized");return t.facade=e,g.call(m,e,t),t},i=function(e){return y.call(m,e)||{}},o=function(e){return v.call(m,e)}}else{var b=f("state");h[b]=!0,r=function(e,t){if(u(e,b))throw new TypeError("Object already initialized");return t.facade=e,c(e,b,t),t},i=function(e){return u(e,b)?e[b]:{}},o=function(e){return u(e,b)}}e.exports={set:r,get:i,has:o,enforce:function(e){return o(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){var r=n(48),i=n(31).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){var r,i=n(9),o=n(81),a=n(31),s=n(21),l=n(74),c=n(45),u=n(23)("IE_PROTO"),d=function(){},f=function(e){return"<script>"+e+"<\/script>"},h=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;h=r?function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t}(r):((t=c("iframe")).style.display="none",l.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F);for(var n=a.length;n--;)delete h.prototype[a[n]];return h()};s[u]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(d.prototype=i(e),n=new d,d.prototype=null,n[u]=e):n=h(),void 0===t?n:o(n,t)}},function(e,t,n){var r=n(24),i=n(30);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.13.0",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){var r=n(1),i=n(32),o=r["__core-js_shared__"]||i("__core-js_shared__",{});e.exports=o},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,n){var r=n(1),i=n(10);e.exports=function(e,t){try{i(r,e,t)}catch(n){r[e]=t}return t}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},function(e,t,n){var r=n(69),i=n(35),o=n(12),a=n(16),s=n(55),l=[].push,c=function(e){var t=1==e,n=2==e,c=3==e,u=4==e,d=6==e,f=7==e,h=5==e||d;return function(p,m,y,v){for(var g,b,_=o(p),k=i(_),w=r(m,y,3),x=a(k.length),C=0,S=v||s,A=t?S(p,x):n||f?S(p,0):void 0;x>C;C++)if((h||C in k)&&(b=w(g=k[C],C,_),e))if(t)A[C]=b;else if(b)switch(e){case 3:return!0;case 5:return g;case 6:return C;case 2:l.call(A,g)}else switch(e){case 4:return!1;case 7:l.call(A,g)}return d?-1:c||u?u:A}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterOut:c(7)}},function(e,t,n){var r=n(2),i=n(15),o="".split;e.exports=r(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==i(e)?o.call(e,""):Object(e)}:Object},function(e,t,n){var r=n(48),i=n(31);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){var r,i,o=n(1),a=n(82),s=o.process,l=s&&s.versions,c=l&&l.v8;c?i=(r=c.split("."))[0]<4?1:r[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=r[1]),e.exports=i&&+i},,function(e,t,n){var r=n(15);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(37),i=n(2);e.exports=!!Object.getOwnPropertySymbols&&!i(function(){return!String(Symbol())||!Symbol.sham&&r&&r<41})},function(e,t,n){var r=n(7),i=n(6).f,o=Function.prototype,a=o.toString,s=/^\s*function ([^ (]*)/;r&&!("name"in o)&&i(o,"name",{configurable:!0,get:function(){try{return a.call(this).match(s)[1]}catch(e){return""}}})},function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},function(e,t,n){var r=n(6).f,i=n(4),o=n(3)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t,n){var r={};r[n(3)("toStringTag")]="z",e.exports="[object z]"===String(r)},function(e,t,n){var r=n(1),i=n(5),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},function(e,t,n){var r=n(30),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource},function(e,t,n){var r=n(7),i=n(2),o=n(45);e.exports=!r&&!i(function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(4),i=n(11),o=n(62).indexOf,a=n(21);e.exports=function(e,t){var n,s=i(e),l=0,c=[];for(n in s)!r(a,n)&&r(s,n)&&c.push(n);for(;t.length>l;)r(s,n=t[l++])&&(~o(c,n)||c.push(n));return c}},function(e,t){t.f=Object.getOwnPropertySymbols},,function(e,t,n){var r=n(2),i=/#|\.prototype\./,o=function(e,t){var n=s[a(e)];return n==c||n!=l&&("function"==typeof t?r(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=o.data={},l=o.NATIVE="N",c=o.POLYFILL="P";e.exports=o},function(e,t,n){var r=n(2),i=n(3),o=n(37),a=i("species");e.exports=function(e){return o>=51||!r(function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo})}},function(e,t,n){var r=n(1);e.exports=r},function(e,t,n){var r=n(1),i=n(66),o=n(98),a=n(10);for(var s in i){var l=r[s],c=l&&l.prototype;if(c&&c.forEach!==o)try{a(c,"forEach",o)}catch(e){c.forEach=o}}},function(e,t,n){var r=n(5),i=n(39),o=n(3)("species");e.exports=function(e,t){var n;return i(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!i(n.prototype)?r(n)&&null===(n=n[o])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},function(e,t,n){var r=n(40);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},,,function(e,t,n){var r=n(25),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){var r=n(4),i=n(83),o=n(19),a=n(6);e.exports=function(e,t){for(var n=i(t),s=a.f,l=o.f,c=0;c<n.length;c++){var u=n[c];r(e,u)||s(e,u,l(t,u))}}},function(e,t,n){var r=n(11),i=n(16),o=n(59),a=function(e){return function(t,n,a){var s,l=r(t),c=i(l.length),u=o(a,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t,n){var r=n(3);t.f=r},function(e,t,n){var r=n(44),i=n(14),o=n(100);r||i(Object.prototype,"toString",o,{unsafe:!0})},function(e,t,n){var r=n(3),i=n(28),o=n(6),a=r("unscopables"),s=Array.prototype;null==s[a]&&o.f(s,a,{configurable:!0,value:i(null)}),e.exports=function(e){s[a][e]=!0}},function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t,n){var r=n(53),i=n(4),o=n(63),a=n(6).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||a(t,e,{value:o.f(e)})}},function(e,t){e.exports=n(56)},function(e,t,n){var r=n(60);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};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)}}},,function(e,t,n){"use strict";var r=n(17),i=n(6),o=n(18);e.exports=function(e,t,n){var a=r(t);a in e?i.f(e,a,o(0,n)):e[a]=n}},function(e,t){e.exports=n(58)},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(22);e.exports=r("document","documentElement")},function(e,t,n){"use strict";var r=n(2);e.exports=function(e,t){var n=[][e];return!!n&&r(function(){n.call(null,t||function(){throw 1},1)})}},function(e,t,n){"use strict";var r=n(8),i=n(1),o=n(22),a=n(24),s=n(7),l=n(40),c=n(56),u=n(2),d=n(4),f=n(39),h=n(5),p=n(9),m=n(12),y=n(11),v=n(17),g=n(18),b=n(28),_=n(36),k=n(27),w=n(99),x=n(49),C=n(19),S=n(6),A=n(42),O=n(10),j=n(14),T=n(29),E=n(23),D=n(21),I=n(33),R=n(3),M=n(63),P=n(67),L=n(43),B=n(26),N=n(34).forEach,F=E("hidden"),K=R("toPrimitive"),V=B.set,z=B.getterFor("Symbol"),U=Object.prototype,q=i.Symbol,W=o("JSON","stringify"),$=C.f,H=S.f,G=w.f,Z=A.f,Y=T("symbols"),X=T("op-symbols"),J=T("string-to-symbol-registry"),Q=T("symbol-to-string-registry"),ee=T("wks"),te=i.QObject,ne=!te||!te.prototype||!te.prototype.findChild,re=s&&u(function(){return 7!=b(H({},"a",{get:function(){return H(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=$(U,t);r&&delete U[t],H(e,t,n),r&&e!==U&&H(U,t,r)}:H,ie=function(e,t){var n=Y[e]=b(q.prototype);return V(n,{type:"Symbol",tag:e,description:t}),s||(n.description=t),n},oe=c?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof q},ae=function(e,t,n){e===U&&ae(X,t,n),p(e);var r=v(t,!0);return p(n),d(Y,r)?(n.enumerable?(d(e,F)&&e[F][r]&&(e[F][r]=!1),n=b(n,{enumerable:g(0,!1)})):(d(e,F)||H(e,F,g(1,{})),e[F][r]=!0),re(e,r,n)):H(e,r,n)},se=function(e,t){p(e);var n=y(t),r=_(n).concat(de(n));return N(r,function(t){s&&!le.call(n,t)||ae(e,t,n[t])}),e},le=function(e){var t=v(e,!0),n=Z.call(this,t);return!(this===U&&d(Y,t)&&!d(X,t))&&(!(n||!d(this,t)||!d(Y,t)||d(this,F)&&this[F][t])||n)},ce=function(e,t){var n=y(e),r=v(t,!0);if(n!==U||!d(Y,r)||d(X,r)){var i=$(n,r);return!i||!d(Y,r)||d(n,F)&&n[F][r]||(i.enumerable=!0),i}},ue=function(e){var t=G(y(e)),n=[];return N(t,function(e){d(Y,e)||d(D,e)||n.push(e)}),n},de=function(e){var t=e===U,n=G(t?X:y(e)),r=[];return N(n,function(e){!d(Y,e)||t&&!d(U,e)||r.push(Y[e])}),r};l||(j((q=function(){if(this instanceof q)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=I(e),n=function(e){this===U&&n.call(X,e),d(this,F)&&d(this[F],t)&&(this[F][t]=!1),re(this,t,g(1,e))};return s&&ne&&re(U,t,{configurable:!0,set:n}),ie(t,e)}).prototype,"toString",function(){return z(this).tag}),j(q,"withoutSetter",function(e){return ie(I(e),e)}),A.f=le,S.f=ae,C.f=ce,k.f=w.f=ue,x.f=de,M.f=function(e){return ie(R(e),e)},s&&(H(q.prototype,"description",{configurable:!0,get:function(){return z(this).description}}),a||j(U,"propertyIsEnumerable",le,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:q}),N(_(ee),function(e){P(e)}),r({target:"Symbol",stat:!0,forced:!l},{for:function(e){var t=String(e);if(d(J,t))return J[t];var n=q(t);return J[t]=n,Q[n]=t,n},keyFor:function(e){if(!oe(e))throw TypeError(e+" is not a symbol");if(d(Q,e))return Q[e]},useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),r({target:"Object",stat:!0,forced:!l,sham:!s},{create:function(e,t){return void 0===t?b(e):se(b(e),t)},defineProperty:ae,defineProperties:se,getOwnPropertyDescriptor:ce}),r({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:ue,getOwnPropertySymbols:de}),r({target:"Object",stat:!0,forced:u(function(){x.f(1)})},{getOwnPropertySymbols:function(e){return x.f(m(e))}}),W&&r({target:"JSON",stat:!0,forced:!l||u(function(){var e=q();return"[null]"!=W([e])||"{}"!=W({a:e})||"{}"!=W(Object(e))})},{stringify:function(e,t,n){for(var r,i=[e],o=1;arguments.length>o;)i.push(arguments[o++]);if(r=t,(h(t)||void 0!==e)&&!oe(e))return f(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!oe(t))return t}),i[1]=t,W.apply(null,i)}}),q.prototype[K]||O(q.prototype,K,q.prototype.valueOf),L(q,"Symbol"),D[F]=!0},,,,function(e,t,n){var r=n(1),i=n(46),o=r.WeakMap;e.exports="function"==typeof o&&/native code/.test(i(o))},function(e,t,n){var r=n(7),i=n(6),o=n(9),a=n(36);e.exports=r?Object.defineProperties:function(e,t){o(e);for(var n,r=a(t),s=r.length,l=0;s>l;)i.f(e,n=r[l++],t[n]);return e}},function(e,t,n){var r=n(22);e.exports=r("navigator","userAgent")||""},function(e,t,n){var r=n(22),i=n(27),o=n(49),a=n(9);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),n=o.f;return n?t.concat(n(e)):t}},,function(e,t,n){"use strict";var r=n(8),i=n(34).map;r({target:"Array",proto:!0,forced:!n(52)("map")},{map:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r,i,o=n(113),a=n(112),s=n(29),l=RegExp.prototype.exec,c=s("native-string-replace",String.prototype.replace),u=l,d=(r=/a/,i=/b*/g,l.call(r,"a"),l.call(i,"a"),0!==r.lastIndex||0!==i.lastIndex),f=a.UNSUPPORTED_Y||a.BROKEN_CARET,h=void 0!==/()??/.exec("")[1];(d||h||f)&&(u=function(e){var t,n,r,i,a=this,s=f&&a.sticky,u=o.call(a),p=a.source,m=0,y=e;return s&&(-1===(u=u.replace("y","")).indexOf("g")&&(u+="g"),y=String(e).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==e[a.lastIndex-1])&&(p="(?: "+p+")",y=" "+y,m++),n=new RegExp("^(?:"+p+")",u)),h&&(n=new RegExp("^"+p+"$(?!\\s)",u)),d&&(t=a.lastIndex),r=l.call(s?n:a,y),s?r?(r.input=r.input.slice(m),r[0]=r[0].slice(m),r.index=a.lastIndex,a.lastIndex+=r[0].length):a.lastIndex=0:d&&r&&(a.lastIndex=a.global?r.index+r[0].length:t),h&&r&&r.length>1&&c.call(r[0],n,function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)}),r}),e.exports=u},function(e,t,n){"use strict";function r(e,t){if(e){for(var n=e.className,r=(t||"").split(" "),i=0,a=r.length;i<a;i++){var s=r[i];s&&(e.classList?e.classList.add(s):o(e,s)||(n+=" "+s))}e.classList||(e.className=n)}}function i(e,t){if(e&&t){for(var n=t.split(" "),r=" "+e.className+" ",i=0,a=n.length;i<a;i++){var s=n[i];s&&(e.classList?e.classList.remove(s):o(e,s)&&(r=r.replace(" "+s+" "," ")))}e.classList||(e.className=(r||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,""))}}function o(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 a(e){var t=document.documentElement,n=void 0!==e.getBoundingClientRect?e.getBoundingClientRect():0,r=(window.pageXOffset||t.scrollLeft)-(t.clientLeft||0),i=(window.pageYOffset||t.scrollTop)-(t.clientTop||0),o=n.left+window.pageXOffset,a=n.top+window.pageYOffset,s=o-r,l=a-i;return{offsetTop:a,offsetLeft:o,left:s,top:l,right:window.document.documentElement.clientWidth-n.width-s,bottom:window.document.documentElement.clientHeight-n.height-l,right2:window.document.documentElement.clientWidth-s,bottom2:window.document.documentElement.clientHeight-l}}function s(e,t){var n=a(e),r=n.offsetTop,i=n.offsetLeft,o=n.left,s=n.top,l=n.right,c=n.bottom,u=n.right2,d=n.bottom2,f=a(t);return{offsetTop:r-f.offsetTop,offsetLeft:i-f.offsetLeft,left:o-f.left,top:s-f.top,right:l-f.right,bottom:c-f.bottom,right2:u-f.right2,bottom2:d-f.bottom2}}function l(e){var t=0,n=0,r=document.documentElement,i=document.body;return e||(e=window.event),window.pageYoffset?(t=window.pageXOffset,n=window.pageYOffset):(t=(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),n=(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),{left:t+=e.clientX,top:n+=e.clientY,right:r.clientWidth-e.clientX,bottom:r.clientHeight-e.clientY}}function c(e){var t=document;if(e.selectionStart)return e.selectionStart;if(t.selection){e.focus();var n=t.selection.createRange();if(null===n)return 0;var r=e.createTextRange(),i=r.duplicate();return r.moveToBookmark(n.getBookmark()),i.setEndPoint("EndToStart",r),i.text.length}return 0}function u(e,t,n){if(void 0===n&&(n=t),e.setSelectionRange){e.focus();try{e.setSelectionRange(t,n)}catch(o){var r=e.parentNode,i=r.style.display;r.style.display="block",e.setSelectionRange(t,n),r.style.display=i}}}n.d(t,"a",function(){return r}),n.d(t,"f",function(){return i}),n.d(t,"d",function(){return a}),n.d(t,"e",function(){return s}),n.d(t,"c",function(){return l}),n.d(t,"b",function(){return c}),n.d(t,"g",function(){return u}),n(101),n(117),n(118)},,function(e,t,n){var r=n(25),i=n(13),o=function(e){return function(t,n){var o,a,s=String(i(t)),l=r(n),c=s.length;return l<0||l>=c?e?"":void 0:(o=s.charCodeAt(l))<55296||o>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):o:e?s.slice(l,l+2):a-56320+(o-55296<<10)+65536}};e.exports={codeAt:o(!1),charAt:o(!0)}},,,,,function(e,t,n){var r=n(44),i=n(15),o=n(3)("toStringTag"),a="Arguments"==i(function(){return arguments}());e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:a?i(t):"Object"==(r=i(t))&&"function"==typeof t.callee?"Arguments":r}},,,,function(e,t,n){"use strict";var r=n(34).forEach,i=n(75)("forEach");e.exports=i?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},function(e,t,n){var r=n(11),i=n(27).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?function(e){try{return i(e)}catch(e){return a.slice()}}(e):i(r(e))}},function(e,t,n){"use strict";var r=n(44),i=n(94);e.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},function(e,t,n){"use strict";var r=n(8),i=n(86);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},,,function(e,t,n){"use strict";var r=n(8),i=n(34).filter;r({target:"Array",proto:!0,forced:!n(52)("filter")},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(8),i=n(62).includes,o=n(65);r({target:"Array",proto:!0},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("includes")},function(e,t,n){"use strict";var r=n(8),i=n(115),o=n(13);r({target:"String",proto:!0,forced:!n(116)("includes")},{includes:function(e){return!!~String(o(this)).indexOf(i(e),arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(5),i=n(15),o=n(3)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},function(e,t,n){"use strict";n(101);var r=n(14),i=n(86),o=n(2),a=n(3),s=n(10),l=a("species"),c=RegExp.prototype,u=!o(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}),d="$0"==="a".replace(/./,"$0"),f=a("replace"),h=!!/./[f]&&""===/./[f]("a","$0"),p=!o(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,f){var m=a(e),y=!o(function(){var t={};return t[m]=function(){return 7},7!=""[e](t)}),v=y&&!o(function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[l]=function(){return n},n.flags="",n[m]=/./[m]),n.exec=function(){return t=!0,null},n[m](""),!t});if(!y||!v||"replace"===e&&(!u||!d||h)||"split"===e&&!p){var g=/./[m],b=n(m,""[e],function(e,t,n,r,o){var a=t.exec;return a===i||a===c.exec?y&&!o?{done:!0,value:g.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}},{REPLACE_KEEPS_$0:d,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:h}),_=b[0],k=b[1];r(String.prototype,e,_),r(c,m,2==t?function(e,t){return k.call(e,this,t)}:function(e){return k.call(e,this)})}f&&s(c[m],"sham",!0)}},function(e,t,n){"use strict";var r=n(89).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},function(e,t,n){var r=n(15),i=n(86);e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var o=n.call(e,t);if("object"!=typeof o)throw TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},,function(e,t,n){"use strict";var r=n(2);function i(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=r(function(){var e=i("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),t.BROKEN_CARET=r(function(){var e=i("^r","gy");return e.lastIndex=2,null!=e.exec("str")})},function(e,t,n){"use strict";var r=n(9);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){"use strict";var r=n(8),i=n(34).findIndex,o=n(65),a=!0;"findIndex"in[]&&Array(1).findIndex(function(){a=!1}),r({target:"Array",proto:!0,forced:a},{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("findIndex")},function(e,t,n){var r=n(107);e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},function(e,t,n){var r=n(3)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},function(e,t,n){"use strict";var r=n(108),i=n(9),o=n(16),a=n(25),s=n(13),l=n(109),c=n(126),u=n(110),d=Math.max,f=Math.min;r("replace",2,function(e,t,n,r){var h=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,p=r.REPLACE_KEEPS_$0,m=h?"$":"$0";return[function(n,r){var i=s(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,i,r):t.call(String(i),n,r)},function(e,r){if(!h&&p||"string"==typeof r&&-1===r.indexOf(m)){var s=n(t,e,this,r);if(s.done)return s.value}var y=i(e),v=String(this),g="function"==typeof r;g||(r=String(r));var b=y.global;if(b){var _=y.unicode;y.lastIndex=0}for(var k=[];;){var w=u(y,v);if(null===w)break;if(k.push(w),!b)break;""===String(w[0])&&(y.lastIndex=l(v,o(y.lastIndex),_))}for(var x,C="",S=0,A=0;A<k.length;A++){w=k[A];for(var O=String(w[0]),j=d(f(a(w.index),v.length),0),T=[],E=1;E<w.length;E++)T.push(void 0===(x=w[E])?x:String(x));var D=w.groups;if(g){var I=[O].concat(T,j,v);void 0!==D&&I.push(D);var R=String(r.apply(void 0,I))}else R=c(O,v,j,T,D,r);j>=S&&(C+=v.slice(S,j)+R,S=j+O.length)}return C+v.slice(S)}]})},function(e,t,n){"use strict";var r=n(108),i=n(107),o=n(9),a=n(13),s=n(122),l=n(109),c=n(16),u=n(110),d=n(86),f=n(112).UNSUPPORTED_Y,h=[].push,p=Math.min;r("split",2,function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=String(a(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!i(e))return t.call(r,e,o);for(var s,l,c,u=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,m=new RegExp(e.source,f+"g");(s=d.call(m,r))&&!((l=m.lastIndex)>p&&(u.push(r.slice(p,s.index)),s.length>1&&s.index<r.length&&h.apply(u,s.slice(1)),c=s[0].length,p=l,u.length>=o));)m.lastIndex===s.index&&m.lastIndex++;return p===r.length?!c&&m.test("")||u.push(""):u.push(r.slice(p)),u.length>o?u.slice(0,o):u}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var i=a(this),o=null==t?void 0:t[e];return void 0!==o?o.call(t,i,n):r.call(String(i),t,n)},function(e,i){var a=n(r,e,this,i,r!==t);if(a.done)return a.value;var d=o(e),h=String(this),m=s(d,RegExp),y=d.unicode,v=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(f?"g":"y"),g=new m(f?"^(?:"+d.source+")":d,v),b=void 0===i?4294967295:i>>>0;if(0===b)return[];if(0===h.length)return null===u(g,h)?[h]:[];for(var _=0,k=0,w=[];k<h.length;){g.lastIndex=f?0:k;var x,C=u(g,f?h.slice(k):h);if(null===C||(x=p(c(g.lastIndex+(f?k:0)),h.length))===_)k=l(h,k,y);else{if(w.push(h.slice(_,k)),w.length===b)return w;for(var S=1;S<=C.length-1;S++)if(w.push(C[S]),w.length===b)return w;k=_=x}}return w.push(h.slice(_)),w}]},f)},,,,function(e,t,n){var r=n(9),i=n(60),o=n(3)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[o])?t:i(n)}},function(e,t,n){"use strict";function r(){return Date.now().toString(36)+Math.random().toString(36).substr(2)}n.d(t,"a",function(){return r}),n(64),n(131)},function(e,t,n){"use strict";var r=n(8),i=n(59),o=n(25),a=n(16),s=n(12),l=n(55),c=n(71),u=n(52)("splice"),d=Math.max,f=Math.min;r({target:"Array",proto:!0,forced:!u},{splice:function(e,t){var n,r,u,h,p,m,y=s(this),v=a(y.length),g=i(e,v),b=arguments.length;if(0===b?n=r=0:1===b?(n=0,r=v-g):(n=b-2,r=f(d(o(t),0),v-g)),v+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(u=l(y,r),h=0;h<r;h++)(p=g+h)in y&&c(u,h,y[p]);if(u.length=r,n<r){for(h=g;h<v-r;h++)m=h+n,(p=h+r)in y?y[m]=y[p]:delete y[m];for(h=v;h>v-r+n;h--)delete y[h-1]}else if(n>r)for(h=v-r;h>g;h--)m=h+n-1,(p=h+r-1)in y?y[m]=y[p]:delete y[m];for(h=0;h<n;h++)y[h+g]=arguments[h+2];return y.length=v-r+n,u}})},function(e,t,n){var r=n(8),i=n(12),o=n(36);r({target:"Object",stat:!0,forced:n(2)(function(){o(1)})},{keys:function(e){return o(i(e))}})},function(e,t,n){var r=n(12),i=Math.floor,o="".replace,a=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,l,c,u){var d=n+e.length,f=l.length,h=s;return void 0!==c&&(c=r(c),h=a),o.call(u,h,function(r,o){var a;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(d);case"<":a=c[o.slice(1,-1)];break;default:var s=+o;if(0===s)return r;if(s>f){var u=i(s/10);return 0===u?r:u<=f?void 0===l[u-1]?o.charAt(1):l[u-1]+o.charAt(1):r}a=l[s-1]}return void 0===a?"":a})}},,,,,function(e,t,n){"use strict";var r=n(14),i=n(9),o=n(2),a=n(113),s=RegExp.prototype,l=s.toString,c=o(function(){return"/a/b"!=l.call({source:"a",flags:"b"})}),u="toString"!=l.name;(c||u)&&r(RegExp.prototype,"toString",function(){var e=i(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in s)?a.call(e):n)},{unsafe:!0})},,,,function(e,t,n){var r=n(8),i=n(2),o=n(11),a=n(19).f,s=n(7),l=i(function(){a(1)});r({target:"Object",stat:!0,forced:!s||l,sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(o(e),t)}})},function(e,t,n){var r=n(8),i=n(7),o=n(83),a=n(11),s=n(19),l=n(71);r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(e){for(var t,n,r=a(e),i=s.f,c=o(r),u={},d=0;c.length>d;)void 0!==(n=i(r,t=c[d++]))&&l(u,t,n);return u}})},,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(8),i=n(39),o=[].reverse,a=[1,2];r({target:"Array",proto:!0,forced:String(a)===String(a.reverse())},{reverse:function(){return i(this)&&(this.length=this.length),o.call(this)}})},,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t),n(41),n(85),n(114),n(160),n(104),n(124),n(54),n(105),n(106),n(125),n(76),n(135),n(136);var r="SEPARATOR";function i(e){return"ve-contextmenu-"+e}var o=n(68),a=n.n(o),s=n(20),l=n(87),c=n(123),u=n(72);function d(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 f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h={name:"VeContextmenu",directives:{"events-outside":{bind:function(e,t,n){var r=t.value,i=r.events,o=r.callback;if(Array.isArray(i)&&i.length&&"function"==typeof o){var a=function(t){if(e.contains(t.target)||e===t.target)return!1;o(t)};e.__eventsOutside__=a,i.forEach(function(e){document.addEventListener(e,a,!0)})}else{var s=n.context.name;console.error("[events-outside] Please provided 'events' and 'callback' in ".concat(s))}},unbind:function(e,t,n){t.value.events.forEach(function(t){document.removeEventListener(t,e.__eventsOutside__,!0)}),e.__eventsOutside__=null}}},props:{options:{type:Array,required:!0},eventTarget:{type:[String,HTMLElement],required:!0}},data:function(){return{internalOptions:[],panelOptions:[],eventTargetEl:"",rootContextmenuId:"",isChildrenPanelsClicked:!1,isPanelRightDirection:!0,isPanelsEmptyed:!0}},computed:{activeMenuIds:function(){return this.panelOptions.map(function(e){return e.parentId})}},watch:{options:{handler:function(e){Array.isArray(e)&&e.length>0&&(this.removeOrEmptyPanels(!0),this.rootContextmenuId=this.getRandomIdWithPrefix(),this.createInternalOptions(),this.createPanelOptions({options:this.internalOptions}),this.resetContextmenu(),this.addRootContextmenuPanelToBody())},immediate:!0},eventTarget:{handler:function(e){e&&this.registerContextmenuEvent()},immediate:!0}},methods:f({getRandomIdWithPrefix:function(){return i(Object(c.a)())},hasChildren:function(e){return Array.isArray(e.children)&&e.children.length},getPanelOptionByMenuId:function(e,t){for(var n=0;n<e.length;n++){if(e[n].id===t)return e[n].children;if(e[n].children){var r=this.getPanelOptionByMenuId(e[n].children,t);if(r)return r}}},getParentContextmenuPanelEl:function(e){var t,n=this.panelOptions,r=n.findIndex(function(t){return t.parentId===e});if(r>0){var i=n[r-1].parentId;t=document.querySelector("#".concat(i))}return t},createPanelByHover:function(e){var t=this,n=e.event,r=e.menu,i=this.internalOptions,o=this.panelOptions;if(this.isPanelsEmptyed)return!1;if(o.findIndex(function(e){return e.parentId===r.id})>-1)return!1;var a=o.filter(function(e){return e.parentDeep>=r.deep}).map(function(e){return e.parentDeep}).reverse();if(a.length)for(var s=function(e){var n=o.findIndex(function(t){return t.parentDeep===a[e]});n>-1&&t.panelOptions.splice(n,1)},l=a.length-1;l>=0;l--)s(l);var c=this.getPanelOptionByMenuId(i,r.id);c&&(this.createPanelOptions({options:c,currentMenu:r}),this.$nextTick(function(){t.addContextmenuPanelToBody({contextmenuId:r.id}),t.showContextmenuPanel({event:n,contextmenuId:r.id})}))},createPanelOptions:function(e){var t=e.options,n=e.currentMenu,r=this.hasChildren,i=this.rootContextmenuId;if(Array.isArray(t)){var o=t.map(function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach(function(t){f(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({hasChildren:r(e)},e)});this.panelOptions.push({parentId:n?n.id:i,parentDeep:n?n.deep:-1,menus:o})}},createInternalOptionsRecursion:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e.id=this.getRandomIdWithPrefix(),e.deep=n,n++,Array.isArray(e.children)&&e.children.map(function(e){return t.createInternalOptionsRecursion(e,n)}),e},createInternalOptions:function(){var e=this;this.internalOptions=Object(u.cloneDeep)(this.options).map(function(t){return e.createInternalOptionsRecursion(t)})},showRootContextmenuPanel:function(e){e.preventDefault();var t=this.rootContextmenuId;t&&(this.resetContextmenu(),this.showContextmenuPanel({event:e,contextmenuId:t,isRootContextmenu:!0}),this.isPanelsEmptyed=!1)},showContextmenuPanel:function(e){var t=e.event,n=e.contextmenuId,r=e.isRootContextmenu,o=this.getParentContextmenuPanelEl,a=document.querySelector("#".concat(n));if(a){a.innerHTML="",a.appendChild(this.$refs[n]),a.style.position="absolute",a.classList.add(i("popper"));var s=a.getBoundingClientRect(),c=s.width,u=s.height;if(r){var d,f=Object(l.c)(t),h=f.left,p=f.top,m=f.right,y=f.bottom,v=0;m>=c?(v=h,this.isPanelRightDirection=!0):(v=h-c,this.isPanelRightDirection=!1),d=y>=u?p:p-u,a.style.left=v+"px",a.style.top=d+"px"}else{var g=o(n);if(g){var b,_,k=Object(l.d)(g),w=k.left,x=k.right,C=Object(l.c)(t),S=C.top,A=C.bottom,O=g.getBoundingClientRect().width;b=this.isPanelRightDirection?x>=c?w+O:w-O:w>=c?w-O:w+O,_=A>=u?S:S-u,a.style.left=b+"px",a.style.top=_+"px"}}}},emptyContextmenuPanels:function(){var e=this;setTimeout(function(){e.isChildrenPanelsClicked?e.isChildrenPanelsClicked=!1:(e.removeOrEmptyPanels(),e.isPanelsEmptyed=!0)})},removeOrEmptyPanels:function(e){this.panelOptions.forEach(function(t){var n=document.querySelector("#".concat(t.parentId));n&&(e?n.remove():n.innerHTML="")})},resetContextmenu:function(){this.panelOptions=[],this.createPanelOptions({options:this.internalOptions})},addContextmenuPanelToBody:function(e){var t=e.contextmenuId;if(document.querySelector("#".concat(t)))return!1;var n=document.createElement("div");n.setAttribute("id",t),document.body.appendChild(n)},addRootContextmenuPanelToBody:function(){this.rootContextmenuId&&this.addContextmenuPanelToBody({contextmenuId:this.rootContextmenuId})},registerContextmenuEvent:function(){var e=this.eventTarget;"string"==typeof e&&e.length>0?this.eventTargetEl=document.querySelector(e):this.eventTargetEl=e,this.eventTargetEl&&this.eventTargetEl.addEventListener("contextmenu",this.showRootContextmenuPanel)},removeContextmenuEvent:function(){this.eventTargetEl&&this.eventTargetEl.removeEventListener("contextmenu",this.showRootContextmenuPanel)}},"hideContextmenu",function(){this.emptyContextmenuPanels()}),created:function(){this.debounceCreatePanelByHover=Object(u.debounce)(this.createPanelByHover,300)},mounted:function(){this.addRootContextmenuPanelToBody()},destroyed:function(){this.removeContextmenuEvent(),this.removeOrEmptyPanels(!0)},render:function(){var e=this,t=arguments[0],n=this.panelOptions,o=this.activeMenuIds,l=this.hasChildren,c=this.emptyContextmenuPanels,u=this.debounceCreatePanelByHover;return t("div",{class:["ve-contextmenu"],style:{display:"none"}},[n.map(function(n,d){var h={ref:n.parentId,class:f({},i("panel"),!0),directives:[{name:"events-outside",value:{events:["click"],callback:function(e){0===d&&c()}}}],on:{click:function(){0!==d&&(e.isChildrenPanelsClicked=!0)},contextmenu:function(e){e.preventDefault()}}};return t("div",h,[t("ul",{class:i("list")},[n.menus.map(function(n){var d,h;return d=n.type!==r?{class:(h={},f(h,i("node"),!0),f(h,i("node-active"),o.includes(n.id)),f(h,i("node-disabled"),n.disabled),h),on:{mouseover:function(e){n.disabled||u({event:e,menu:n})},click:function(){n.disabled||l(n)||(e.$emit("on-node-click",n.type),setTimeout(function(){c()},50))}}}:{class:f({},i("node-separator"),!0)},n.type!==r?t("li",d,[t("span",{class:i("node-label")},[n.label]),n.hasChildren&&t(a.a,{class:i("node-icon-postfix"),attrs:{name:s.a.RIGHT_ARROW}})]):t("li",d)})])])})])},install:function(e){e.component(h.name,h)}};t.default=h}])},function(e,t,n){var r,i,o;!function(n,a){i=[t],void 0===(o="function"==typeof(r=a)?r.apply(t,i):r)||(e.exports=o)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={pagination:{goto:"前往",page:"页",itemsPerPage:" 条/页",total:function(e){return"共 "+e+" 条"},prev5:"向前 5 页",next5:"向后 5 页"},table:{confirmFilter:"筛选",resetFilter:"重置",cut:"剪切",copy:"复制",insertRowAbove:"上方插入行",insertRowBelow:"下方插入行",removeRow:"删除 $1 行",emptyRow:"清空 $1 行",emptyColumn:"清空 $1 列",emptyCell:"清空单元格",leftFixedColumnTo:"左列冻结",cancelLeftFixedColumnTo:"取消左列冻结",rightFixedColumnTo:"右列冻结",cancelRightFixedColumnTo:"取消右列冻结"}}})},function(e,t,n){e.exports={default:n(231),__esModule:!0}},function(e,t,n){n(38),n(236),e.exports=n(4).Array.from},function(e,t,n){var r=n(51),i=n(49);e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),l=r(n),c=s.length;return l<0||l>=c?e?"":void 0:(o=s.charCodeAt(l))<55296||o>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):o:e?s.slice(l,l+2):a-56320+(o-55296<<10)+65536}}},function(e,t,n){"use strict";var r=n(109),i=n(24),o=n(39),a={};n(14)(a,n(6)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},function(e,t,n){var r=n(10),i=n(11),o=n(21);e.exports=n(9)?Object.defineProperties:function(e,t){i(e);for(var n,a=o(t),s=a.length,l=0;s>l;)r.f(e,n=a[l++],t[n]);return e}},function(e,t,n){var r=n(16),i=n(28),o=n(52)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){"use strict";var r=n(23),i=n(8),o=n(28),a=n(111),s=n(112),l=n(50),c=n(237),u=n(59);i(i.S+i.F*!n(114)(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,i,d,f=o(e),h="function"==typeof this?this:Array,p=arguments.length,m=p>1?arguments[1]:void 0,y=void 0!==m,v=0,g=u(f);if(y&&(m=r(m,p>2?arguments[2]:void 0,2)),void 0==g||h==Array&&s(g))for(n=new h(t=l(f.length));t>v;v++)c(n,v,y?m(f[v],v):f[v]);else for(d=g.call(f),n=new h;!(i=d.next()).done;v++)c(n,v,y?a(d,m,[i.value,v],!0):i.value);return n.length=v,n}})},function(e,t,n){"use strict";var r=n(10),i=n(24);e.exports=function(e,t,n){t in e?r.f(e,t,i(0,n)):e[t]=n}},function(e,t,n){e.exports={default:n(239),__esModule:!0}},function(e,t,n){n(240);var r=n(4).Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},function(e,t,n){var r=n(8);r(r.S+r.F*!n(9),"Object",{defineProperty:n(10).f})},function(e,t,n){var r={"./DshBox.vue":[105],"./DshCard.vue":[430,6],"./DshCrossTable.vue":[431,3],"./DshList.vue":[115],"./DshPanel.vue":[432,5],"./DshSingleData.vue":[433,4],"./DshTable.vue":[117]};function i(e){var t=r[e];return t?Promise.all(t.slice(1).map(n.e)).then(function(){return n(t[0])}):Promise.reject(new Error("Cannot find module '"+e+"'."))}i.keys=function(){return Object.keys(r)},i.id=241,e.exports=i},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"show",rawName:"v-show",value:e.showData,expression:"showData"}],staticClass:"DshList"},[n("div",{staticClass:"list-cols"},[e.multiple?n("div",{staticClass:"list-cols-left"},[n("Checkbox",{on:{"on-change":e.selectAll},model:{value:e.isSelectAll,callback:function(t){e.isSelectAll=t},expression:"isSelectAll"}})],1):e._e(),e._v(" "),n("div",{staticClass:"list-cols-right row",style:{paddingLeft:e.multiple?"48px":"0px",background:e.useColBg?"#f0f0f0":"none"}},[e.sequence?n("div",{staticClass:"row-item",staticStyle:{minWidth:"60px",textAlign:"center"}},[e._v("\n 序号\n ")]):e._e(),e._v(" "),e._l(e.selfColumns,function(t){return n("div",{key:t._key,staticClass:"row-item",style:{flexBasis:(t.width||t.minWidth)+"px",textAlign:t._align,flexGrow:1,display:"flex",justifyContent:e.getFlexLayout(t._align)}},[n("bri-tooltip",{attrs:{transfer:"",content:t._name}},[n("span",{staticClass:"dsh-ellipsis"},[e._v("\n "+e._s(t._name)+"\n ")])])],1)})],2)]),e._v(" "),n("div",{staticClass:"list-rows"},[e.isLoading?n("div",{staticClass:"list-loading"},[n("div",{staticClass:"list-loading-wrap"}),e._v(" "),e._m(0)]):[e.data.length?[e.multiple?n("div",{staticClass:"list-rows-left"},[n("CheckboxGroup",{on:{"on-change":e.select},model:{value:e.selectIds,callback:function(t){e.selectIds=t},expression:"selectIds"}},e._l(e.data,function(t){return n("Checkbox",{key:t._id,attrs:{label:t._id},nativeOn:{click:function(n){return e.clickRowCheckbox(t)}}},[e._v("\n "+e._s("")+"\n ")])}),1)],1):e._e(),e._v(" "),n("div",{staticClass:"list-rows-right"},e._l(e.data,function(t,r){return n("div",{key:t._id,staticClass:"row",style:{paddingLeft:e.multiple?"48px":"0px"},on:{click:function(n){return e.clickRow(t)}}},[e.sequence?n("div",{staticClass:"row-item",staticStyle:{minWidth:"60px",textAlign:"center"}},[n("div",{staticClass:"row-item-inner"},[e._v("\n "+e._s(r+1)+"\n ")])]):e._e(),e._v(" "),e._l(e.selfColumns,function(i){return n("div",{key:i._key,staticClass:"row-item",style:{flexBasis:(i.width||i.minWidth)+"px",textAlign:i._align,flexGrow:1,display:"flex",justifyContent:e.getFlexLayout(i._align)}},[n("div",{staticClass:"row-item-inner dsh-ellipsis"},[i.renderBodyCell?n("dsh-td-render",{staticClass:"ms-ellipsis",attrs:{row:t,column:i,index:r,render:i.renderBodyCell}}):i.formatter?[n("div",{domProps:{innerHTML:e._s(i.formatter(t,r))}})]:t[i._key]?n("Tooltip",{staticClass:"list-tooltip",attrs:{transfer:!0,"max-width":"200",placement:0===r?"bottom-start":"top-start",content:t[i._key]}},[n("div",{staticClass:"list-tooltip-box"},[e._v(e._s(t[i._key]))])]):e._e()],2)])})],2)}),0)]:n("div",{staticClass:"list-noData"},[e._v("\n "+e._s(e.noDataText)+"\n ")])]],2)])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"list-loading-content"},[t("span",[t("i",{staticClass:"list-loading-content-icon"})])])}]};t.a=r},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"DshTable"},[n("bri-table",{attrs:{data:e.data,columns:e.selfColumns,propsObj:e.propsObj,isLoading:e.isLoading,noDataText:e.noDataText},on:{selectChange:e.changeSelect,selectAll:e.changeSelect,"click-row":e.clickRow,"sort-change":e.changeSort}})],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"DshBox"},[n("div",{staticClass:"DshBox-list"},[n("Dsh"+e.$firstUpperCase(e.mode),{ref:"list",tag:"component",attrs:{data:e.data,columns:e.columns,fixTitle:e.fixTitle,ownColumns:e.ownColumns,operationList:e.operationList,extraOperationList:e.extraOperationList,propsObj:e.listPropsObj,changedFields:e.changedFields,isLoading:e.listPropsObj&&e.listPropsObj.isLoading,noDataText:e.listPropsObj&&e.listPropsObj.noDataText||"暂无内容..."},on:{clickRow:e.clickRow,sortChange:e.changeSort,selectChange:e.changeSelect,selectAll:e.selectAll,select:e.select,groupScroll:e.groupScroll,groupLoad:e.groupLoad,dsh:e.dshEmit},scopedSlots:e._u([{key:"col",fn:function(t){var n=t.col;return e._t("col",null,{col:n})}}],null,!0)})],1),e._v(" "),e._t("default"),e._v(" "),!["panel","singleData"].includes(e.mode)&&e.pagePropsObj?n("div",{staticClass:"DshBox-page"},[n("dsh-page",{attrs:{mode:e.pageMode,total:e.total,propsObj:e.pagePropsObj},on:{changePage:e.changePage,changePageSize:e.changePageSize}},[e._t("page")],2)],1):e._e()],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r=n(119),i=n(246),o=n(0)(r.a,i.a,!1,null,null,null);t.a=o.exports},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"BriFlatTable"},[n("bri-table",{staticClass:"BriFlatTable-main",attrs:{propsObj:e.tablePropsObj,columns:e.showColumns,data:e.listData,"footer-data":e.footerData},on:{selectChange:e.changeSelect,selectAll:e.changeSelect}}),e._v(" "),n("dsh-buttons",{staticClass:"BriFlatTable-create",attrs:{list:e.$getOperationList(["create"])},on:{click:function(t){return e.$dispatchEvent(t,null,null,e.listData)}}})],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r=n(120),i=n(248),o=n(0)(r.a,i.a,!1,null,null,null);t.a=o.exports},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"bri-table"},[n("ve-table",{staticClass:"bri-table-content",class:[e.selfClassName,e.selfPropsObj.className],attrs:{"table-data":e.data,"footer-data":e.footerData,columns:e.columnsList,"show-header":e.selfPropsObj.showHeader,"fixed-header":e.selfPropsObj.fixedHeader,"fixed-footer":e.selfPropsObj.fixedFooter,"scroll-width":e.selfPropsObj.scrollWidth,"max-height":e.selfPropsObj.maxHeight,"row-key-field-name":e.selfPropsObj.rowKeyFieldName,"border-around":e.selfPropsObj.borderAround,"border-x":e.selfPropsObj.borderX,"border-y":e.selfPropsObj.borderY,cellSpanOption:e.selfPropsObj.cellSpanOption,columnHiddenOption:e.selfPropsObj.columnHiddenOption,cellStyleOption:e.cellStyleOption,rowStyleOption:e.rowStyleOption,expandOption:e.selfPropsObj.expandOption,"checkbox-option":e.checkboxOption,radioOption:e.selfPropsObj.radioOption,sortOption:e.sortOption,cellSelectionOption:e.selfPropsObj.cellSelectionOption,editOption:e.selfPropsObj.editOption,contextmenuHeaderOption:e.selfPropsObj.contextmenuHeaderOption,contextmenuBodyOption:e.selfPropsObj.contextmenuBodyOption,"event-custom-option":e.eventCustomOption,cellAutofillOption:e.selfPropsObj.cellAutofillOption,clipboardOption:e.selfPropsObj.clipboardOption,columnWidthResizeOption:e.columnWidthResizeOption}}),e._v(" "),e.isLoading?n("bri-loading"):e.data.length?e._e():n("div",{staticClass:"bri-table-empty"},[e._t("empty",function(){return[e._v(e._s(e.noDataText))]})],2)],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r=n(121),i=n(321),o=n(0)(r.a,i.a,!1,null,null,null);t.a=o.exports},function(e,t,n){n(251),e.exports=n(4).Object.entries},function(e,t,n){var r=n(8),i=n(126)(!0);r(r.S,"Object",{entries:function(e){return i(e)}})},function(e,t,n){var r={"./BriControlInput":[61],"./BriControlInput.vue":[61],"./base/BriInputs":[62],"./base/BriInputs.vue":[62],"./base/BriUpload/BriUpload":[63],"./base/BriUpload/BriUpload.vue":[63],"./base/BriUpload/BriUploadImage":[42],"./base/BriUpload/BriUploadImage.vue":[42],"./base/BriUpload/uploadList":[71],"./base/BriUpload/uploadList.vue":[71],"./base/BriUpload/uploadMixin":[30],"./base/BriUpload/uploadMixin.js":[30],"./base/DshCascader/DshCascader":[72],"./base/DshCascader/DshCascader.vue":[72],"./base/DshCascader/InfoCascader":[73],"./base/DshCascader/InfoCascader.vue":[73],"./base/DshCheckbox":[75],"./base/DshCheckbox.vue":[75],"./base/DshCoordinates":[76],"./base/DshCoordinates.vue":[76],"./base/DshDate":[77],"./base/DshDate.vue":[77],"./base/DshDaterange":[78],"./base/DshDaterange.vue":[78],"./base/DshDivider":[79],"./base/DshDivider.vue":[79],"./base/DshEditor":[80],"./base/DshEditor.vue":[80],"./base/DshInput":[81],"./base/DshInput.vue":[81],"./base/DshNumber/BriInputNumber/BriInputNumber":[44],"./base/DshNumber/BriInputNumber/BriInputNumber.vue":[44],"./base/DshNumber/BriInputNumber/mixins/emitter":[83],"./base/DshNumber/BriInputNumber/mixins/emitter.js":[83],"./base/DshNumber/BriInputNumber/mixins/form":[84],"./base/DshNumber/BriInputNumber/mixins/form.js":[84],"./base/DshNumber/BriInputNumber/utils/assist":[82],"./base/DshNumber/BriInputNumber/utils/assist.js":[82],"./base/DshNumber/DshNumber":[85],"./base/DshNumber/DshNumber.vue":[85],"./base/DshNumberange":[86],"./base/DshNumberange.vue":[86],"./base/DshSelect":[87],"./base/DshSelect.vue":[87],"./base/DshSwitch":[88],"./base/DshSwitch.vue":[88],"./base/selectMixin":[43],"./base/selectMixin.js":[43],"./controlMap":[60],"./controlMap.js":[60],"./controlMixin":[3],"./controlMixin.js":[3],"./senior/BriLabels":[208,2],"./senior/BriLabels.vue":[208,2],"./senior/DshPackage":[89],"./senior/DshPackage.vue":[89],"./senior/cascaderTable":[209,1],"./senior/cascaderTable.vue":[209,1],"./senior/flatTable":[210,0],"./senior/flatTable.vue":[210,0],"./senior/selectDepartments":[90],"./senior/selectDepartments.vue":[90],"./senior/selectUsers/DepartmentMenu":[91],"./senior/selectUsers/DepartmentMenu.vue":[91],"./senior/selectUsers/selectUsers":[92],"./senior/selectUsers/selectUsers.vue":[92],"./special/DshBack":[93],"./special/DshBack.vue":[93],"./special/DshUndeveloped":[94],"./special/DshUndeveloped.vue":[94]};function i(e){var t=r[e];return t?Promise.all(t.slice(1).map(n.e)).then(function(){return n(t[0])}):Promise.reject(new Error("Cannot find module '"+e+"'."))}i.keys=function(){return Object.keys(r)},i.id=252,e.exports=i},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"BriControlInput",on:{mouseenter:function(t){e.isHover=!0},mouseleave:function(t){e.isHover=!1}}},[e.$isEmptyData(e.value)?[n("div",{staticClass:"placeholder"},[e._v("\n "+e._s(e.propsObj._placeholder)+"\n ")])]:[Array.isArray(e.value)?n("dsh-tags",{staticClass:"overflow",attrs:{list:e.value,propsObj:{disabled:!e.canEdit,closable:!0}},on:{delete:e.clickDeleteItem}}):e.$dataType(e.value,"object")?n("div",{staticClass:"text"},[e._v("\n "+e._s(e.value._name||e.value.name||e.value.lnglat)+"\n ")]):n("div",{staticClass:"text"},[e._v("\n "+e._s(e.value)+"\n ")])],e._v(" "),[!e.$isEmptyData(e.value)&&e.propsObj._clearable&&e.isHover?n("Icon",{staticClass:"icon-close",attrs:{type:"ios-close-circle"},on:{click:function(t){return t.stopPropagation(),e.clickClear.apply(null,arguments)}}}):n("Icon",{staticClass:"icon-default",attrs:{type:e.inputIcon}})]],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"BriInputs"},[n("Input",{directives:[{name:"show",rawName:"v-show",value:"edit"===e.status,expression:"status === 'edit'"}],attrs:{icon:"ios-search",placeholder:e.selfPropsObj._placeholder},on:{"on-enter":e.clickConfirm,"on-click":e.clickConfirm},model:{value:e.curInputVal,callback:function(t){e.curInputVal=t},expression:"curInputVal"}}),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:"show"===e.status,expression:"status === 'show'"}],staticClass:"BriInputs-show"},[n("span",{staticClass:"BriInputs-show-content",on:{click:e.clickAdd}},e._l(e.value[e.controlKey],function(t,r){return n("span",{key:r,staticClass:"BriInputs-show-content-item"},[n("span",{staticClass:"BriInputs-show-content-item-content",on:{click:function(n){return n.stopPropagation(),e.clickEdit(t,r)}}},[e._v("\n "+e._s(t)+"\n ")]),e._v(" "),n("Icon",{staticClass:"BriInputs-show-content-item-del",attrs:{type:"ios-close",size:"20"},on:{click:function(n){return n.stopPropagation(),e.clickDelete(t)}}})],1)}),0),e._v(" "),n("Icon",{staticClass:"BriInputs-show-add",attrs:{type:"md-create"},on:{click:e.clickAdd}})],1)],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=c(e),a=r[0],s=r[1],l=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),u=0,d=s>0?a-4:a;for(n=0;n<d;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],l[u++]=t>>16&255,l[u++]=t>>8&255,l[u++]=255&t;2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,l[u++]=255&t);1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t);return l},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;a<s;a+=16383)o.push(d(e,a,a+16383>s?s:a+16383));1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s<l;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function d(e,t,n){for(var r,i=[],o=t;o<n;o+=3)r=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),i.push(u(r));return i.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){
27
27
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
28
28
  t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?i-1:0,f=n?-1:1,h=e[t+d];for(d+=f,o=h&(1<<-u)-1,h>>=-u,u+=s;u>0;o=256*o+e[t+d],d+=f,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+e[t+d],d+=f,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=c}return(h?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,c=8*o-i-1,u=(1<<c)-1,d=u>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?f/l:f*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[n+h]=255&a,h+=p,a/=256,c-=8);e[n+h-p]|=128*m}},function(e,t,n){e.exports=n(258)},function(e,t,n){var r=function(){return this}()||Function("return this")(),i=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,o=i&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,e.exports=n(259),i)r.regeneratorRuntime=o;else try{delete r.regeneratorRuntime}catch(e){r.regeneratorRuntime=void 0}},function(e,t){!function(t){"use strict";var n,r=Object.prototype,i=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag",c="object"==typeof e,u=t.regeneratorRuntime;if(u)c&&(e.exports=u);else{(u=t.regeneratorRuntime=c?e.exports:{}).wrap=_;var d="suspendedStart",f="suspendedYield",h="executing",p="completed",m={},y={};y[a]=function(){return this};var v=Object.getPrototypeOf,g=v&&v(v(D([])));g&&g!==r&&i.call(g,a)&&(y=g);var b=C.prototype=w.prototype=Object.create(y);x.prototype=b.constructor=C,C.constructor=x,C[l]=x.displayName="GeneratorFunction",u.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===x||"GeneratorFunction"===(t.displayName||t.name))},u.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,C):(e.__proto__=C,l in e||(e[l]="GeneratorFunction")),e.prototype=Object.create(b),e},u.awrap=function(e){return{__await:e}},S(A.prototype),A.prototype[s]=function(){return this},u.AsyncIterator=A,u.async=function(e,t,n,r){var i=new A(_(e,t,n,r));return u.isGeneratorFunction(t)?i:i.next().then(function(e){return e.done?e.value:i.next()})},S(b),b[l]="Generator",b[a]=function(){return this},b.toString=function(){return"[object Generator]"},u.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},u.values=D,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(T),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,i){return s.type="throw",s.arg=e,t.next=r,i&&(t.method="next",t.arg=n),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;T(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:D(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),m}}}function _(e,t,n,r){var i=t&&t.prototype instanceof w?t:w,o=Object.create(i.prototype),a=new E(r||[]);return o._invoke=function(e,t,n){var r=d;return function(i,o){if(r===h)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw o;return I()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=O(a,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var l=k(e,t,n);if("normal"===l.type){if(r=n.done?p:f,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=p,n.method="throw",n.arg=l.arg)}}}(e,n,a),o}function k(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function w(){}function x(){}function C(){}function S(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function A(e){var t;this._invoke=function(n,r){function o(){return new Promise(function(t,o){!function t(n,r,o,a){var s=k(e[n],e,r);if("throw"!==s.type){var l=s.arg,c=l.value;return c&&"object"==typeof c&&i.call(c,"__await")?Promise.resolve(c.__await).then(function(e){t("next",e,o,a)},function(e){t("throw",e,o,a)}):Promise.resolve(c).then(function(e){l.value=e,o(l)},a)}a(s.arg)}(n,r,t,o)})}return t=t?t.then(o,o):o()}}function O(e,t){var r=e.iterator[t.method];if(r===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,O(e,t),"throw"===t.method))return m;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var i=k(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,m;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,m):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,m)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function D(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(i.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=n,t.done=!0,t};return o.next=o}}return{next:I}}function I(){return{value:n,done:!0}}}(function(){return this}()||Function("return this")())},function(e,t,n){"use strict";t.__esModule=!0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(261));t.default=function(e){return function(){var t=e.apply(this,arguments);return new r.default(function(e,n){return function i(o,a){try{var s=t[o](a),l=s.value}catch(e){return void n(e)}if(!s.done)return r.default.resolve(l).then(function(e){i("next",e)},function(e){i("throw",e)});e(l)}("next")})}}},function(e,t,n){e.exports={default:n(262),__esModule:!0}},function(e,t,n){n(131),n(38),n(64),n(266),n(274),n(275),e.exports=n(4).Promise},function(e,t,n){"use strict";var r=n(264),i=n(265),o=n(29),a=n(17);e.exports=n(107)(Array,"Array",function(e,t){this._t=a(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"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){"use strict";var r,i,o,a,s=n(26),l=n(5),c=n(23),u=n(113),d=n(8),f=n(15),h=n(34),p=n(267),m=n(268),y=n(132),v=n(133).set,g=n(270)(),b=n(65),_=n(134),k=n(271),w=n(135),x=l.TypeError,C=l.process,S=C&&C.versions,A=S&&S.v8||"",O=l.Promise,j="process"==u(C),T=function(){},E=i=b.f,D=!!function(){try{var e=O.resolve(1),t=(e.constructor={})[n(6)("species")]=function(e){e(T,T)};return(j||"function"==typeof PromiseRejectionEvent)&&e.then(T)instanceof t&&0!==A.indexOf("6.6")&&-1===k.indexOf("Chrome/66")}catch(e){}}(),I=function(e){var t;return!(!f(e)||"function"!=typeof(t=e.then))&&t},R=function(e,t){if(!e._n){e._n=!0;var n=e._c;g(function(){for(var r=e._v,i=1==e._s,o=0,a=function(t){var n,o,a,s=i?t.ok:t.fail,l=t.resolve,c=t.reject,u=t.domain;try{s?(i||(2==e._h&&L(e),e._h=1),!0===s?n=r:(u&&u.enter(),n=s(r),u&&(u.exit(),a=!0)),n===t.promise?c(x("Promise-chain cycle")):(o=I(n))?o.call(n,l,c):l(n)):c(r)}catch(e){u&&!a&&u.exit(),c(e)}};n.length>o;)a(n[o++]);e._c=[],e._n=!1,t&&!e._h&&M(e)})}},M=function(e){v.call(l,function(){var t,n,r,i=e._v,o=P(e);if(o&&(t=_(function(){j?C.emit("unhandledRejection",i,e):(n=l.onunhandledrejection)?n({promise:e,reason:i}):(r=l.console)&&r.error&&r.error("Unhandled promise rejection",i)}),e._h=j||P(e)?2:1),e._a=void 0,o&&t.e)throw t.v})},P=function(e){return 1!==e._h&&0===(e._a||e._c).length},L=function(e){v.call(l,function(){var t;j?C.emit("rejectionHandled",e):(t=l.onrejectionhandled)&&t({promise:e,reason:e._v})})},B=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),R(t,!0))},N=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw x("Promise can't be resolved itself");(t=I(e))?g(function(){var r={_w:n,_d:!1};try{t.call(e,c(N,r,1),c(B,r,1))}catch(e){B.call(r,e)}}):(n._v=e,n._s=1,R(n,!1))}catch(e){B.call({_w:n,_d:!1},e)}}};D||(O=function(e){p(this,O,"Promise","_h"),h(e),r.call(this);try{e(c(N,this,1),c(B,this,1))}catch(e){B.call(this,e)}},(r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(272)(O.prototype,{then:function(e,t){var n=E(y(this,O));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=j?C.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&R(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new r;this.promise=e,this.resolve=c(N,e,1),this.reject=c(B,e,1)},b.f=E=function(e){return e===O||e===a?new o(e):i(e)}),d(d.G+d.W+d.F*!D,{Promise:O}),n(39)(O,"Promise"),n(273)("Promise"),a=n(4).Promise,d(d.S+d.F*!D,"Promise",{reject:function(e){var t=E(this);return(0,t.reject)(e),t.promise}}),d(d.S+d.F*(s||!D),"Promise",{resolve:function(e){return w(s&&this===a?O:this,e)}}),d(d.S+d.F*!(D&&n(114)(function(e){O.all(e).catch(T)})),"Promise",{all:function(e){var t=this,n=E(t),r=n.resolve,i=n.reject,o=_(function(){var n=[],o=0,a=1;m(e,!1,function(e){var s=o++,l=!1;n.push(void 0),a++,t.resolve(e).then(function(e){l||(l=!0,n[s]=e,--a||r(n))},i)}),--a||r(n)});return o.e&&i(o.v),n.promise},race:function(e){var t=this,n=E(t),r=n.reject,i=_(function(){m(e,!1,function(e){t.resolve(e).then(n.resolve,r)})});return i.e&&r(i.v),n.promise}})},function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var r=n(23),i=n(111),o=n(112),a=n(11),s=n(50),l=n(59),c={},u={};(t=e.exports=function(e,t,n,d,f){var h,p,m,y,v=f?function(){return e}:l(e),g=r(n,d,t?2:1),b=0;if("function"!=typeof v)throw TypeError(e+" is not iterable!");if(o(v)){for(h=s(e.length);h>b;b++)if((y=t?g(a(p=e[b])[0],p[1]):g(e[b]))===c||y===u)return y}else for(m=v.call(e);!(p=m.next()).done;)if((y=i(m,g,p.value,t))===c||y===u)return y}).BREAK=c,t.RETURN=u},function(e,t){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){var r=n(5),i=n(133).set,o=r.MutationObserver||r.WebKitMutationObserver,a=r.process,s=r.Promise,l="process"==n(25)(a);e.exports=function(){var e,t,n,c=function(){var r,i;for(l&&(r=a.domain)&&r.exit();e;){i=e.fn,e=e.next;try{i()}catch(r){throw e?n():t=void 0,r}}t=void 0,r&&r.enter()};if(l)n=function(){a.nextTick(c)};else if(!o||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var u=s.resolve(void 0);n=function(){u.then(c)}}else n=function(){i.call(r,c)};else{var d=!0,f=document.createTextNode("");new o(c).observe(f,{characterData:!0}),n=function(){f.data=d=!d}}return function(r){var i={fn:r,next:void 0};t&&(t.next=i),e||(e=i,n()),t=i}}},function(e,t,n){var r=n(5).navigator;e.exports=r&&r.userAgent||""},function(e,t,n){var r=n(14);e.exports=function(e,t,n){for(var i in t)n&&e[i]?e[i]=t[i]:r(e,i,t[i]);return e}},function(e,t,n){"use strict";var r=n(5),i=n(4),o=n(10),a=n(9),s=n(6)("species");e.exports=function(e){var t="function"==typeof i[e]?i[e]:r[e];a&&t&&!t[s]&&o.f(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,n){"use strict";var r=n(8),i=n(4),o=n(5),a=n(132),s=n(135);r(r.P+r.R,"Promise",{finally:function(e){var t=a(this,i.Promise||o.Promise),n="function"==typeof e;return this.then(n?function(n){return s(t,e()).then(function(){return n})}:e,n?function(n){return s(t,e()).then(function(){throw n})}:e)}})},function(e,t,n){"use strict";var r=n(8),i=n(65),o=n(134);r(r.S,"Promise",{try:function(e){var t=i.f(this),n=o(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})},function(e,t,n){var r=n(4),i=r.JSON||(r.JSON={stringify:JSON.stringify});e.exports=function(e){return i.stringify.apply(i,arguments)}},function(e,t,n){(function(t){var n;!function(t){e.exports=t()}(function(){return function(){return function e(t,r,i){function o(s,l){if(!r[s]){if(!t[s]){if(!l&&"function"==typeof n&&n)return n(s,!0);if(a)return a(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var u=r[s]={exports:{}};t[s][0].call(u.exports,function(e){return o(t[s][1][e]||e)},u,u.exports,e,t,r,i)}return r[s].exports}for(var a="function"==typeof n&&n,s=0;s<i.length;s++)o(i[s]);return o}}()({1:[function(e,t,n){"use strict";var r=e("./browser/client");r.Buffer=e("buffer").Buffer,r.urllib=e("../shims/xhr"),r.version=e("./browser/version").version,t.exports=r},{"../shims/xhr":407,"./browser/client":3,"./browser/version":6,buffer:85}],2:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),i=r(e("@babel/runtime/regenerator")),o=r(e("@babel/runtime/helpers/asyncToGenerator"));e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js"),e("core-js/modules/es.array.slice.js");var a=e("assert"),s=e("../common/utils/checkBucketName").checkBucketName,l=n;function c(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)}function u(e){return e?c(e)?e:[e]:[]}l.useBucket=function(e){return s(e),this.options.bucket=e,this},l.setBucket=function(e){return s(e),this.options.bucket=e,this},l.getBucket=function(){return this.options.bucket},l.deleteBucket=function(){var e=(0,o.default)(i.default.mark(function e(t,n){var r,o;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=this._bucketRequestParams("DELETE",t,"",n),e.next=3,this.request(r);case 3:if(200!==(o=e.sent).status&&204!==o.status){e.next=6;break}return e.abrupt("return",{res:o.res});case 6:return e.next=8,this.requestError(o);case 8:throw e.sent;case 9:case"end":return e.stop()}},e,this)}));return function(t,n){return e.apply(this,arguments)}}(),l.putBucketACL=function(){var e=(0,o.default)(i.default.mark(function e(t,n,r){var o,a;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(o=this._bucketRequestParams("PUT",t,"acl",r)).headers={"x-oss-acl":n},o.successStatuses=[200],e.next=5,this.request(o);case 5:return a=e.sent,e.abrupt("return",{bucket:a.headers.location&&a.headers.location.substring(1)||null,res:a.res});case 7:case"end":return e.stop()}},e,this)}));return function(t,n,r){return e.apply(this,arguments)}}(),l.getBucketACL=function(){var e=(0,o.default)(i.default.mark(function e(t,n){var r,o;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(r=this._bucketRequestParams("GET",t,"acl",n)).successStatuses=[200],r.xmlResponse=!0,e.next=5,this.request(r);case 5:return o=e.sent,e.abrupt("return",{acl:o.data.AccessControlList.Grant,owner:{id:o.data.Owner.ID,displayName:o.data.Owner.DisplayName},res:o.res});case 7:case"end":return e.stop()}},e,this)}));return function(t,n){return e.apply(this,arguments)}}(),l.putBucketLogging=function(){var e=(0,o.default)(i.default.mark(function e(t,n,r){var o,a,s;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o=this._bucketRequestParams("PUT",t,"logging",r),a="".concat('<?xml version="1.0" encoding="UTF-8"?>\n<BucketLoggingStatus>\n<LoggingEnabled>\n<TargetBucket>').concat(t,"</TargetBucket>\n"),n&&(a+="<TargetPrefix>".concat(n,"</TargetPrefix>\n")),a+="</LoggingEnabled>\n</BucketLoggingStatus>",o.content=a,o.mime="xml",o.successStatuses=[200],e.next=9,this.request(o);case 9:return s=e.sent,e.abrupt("return",{res:s.res});case 11:case"end":return e.stop()}},e,this)}));return function(t,n,r){return e.apply(this,arguments)}}(),l.getBucketLogging=function(){var e=(0,o.default)(i.default.mark(function e(t,n){var r,o,a;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(r=this._bucketRequestParams("GET",t,"logging",n)).successStatuses=[200],r.xmlResponse=!0,e.next=5,this.request(r);case 5:return o=e.sent,a=o.data.LoggingEnabled,e.abrupt("return",{enable:!!a,prefix:a&&a.TargetPrefix||null,res:o.res});case 8:case"end":return e.stop()}},e,this)}));return function(t,n){return e.apply(this,arguments)}}(),l.deleteBucketLogging=function(){var e=(0,o.default)(i.default.mark(function e(t,n){var r,o;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(r=this._bucketRequestParams("DELETE",t,"logging",n)).successStatuses=[204,200],e.next=4,this.request(r);case 4:return o=e.sent,e.abrupt("return",{res:o.res});case 6:case"end":return e.stop()}},e,this)}));return function(t,n){return e.apply(this,arguments)}}(),l.putBucketCORS=function(){var e=(0,o.default)(i.default.mark(function e(t,n,r){var o,s,l,c,d,f,h,p,m,y;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(a((n=n||[]).length,"rules is required"),n.forEach(function(e){a(e.allowedOrigin,"allowedOrigin is required"),a(e.allowedMethod,"allowedMethod is required")}),o=this._bucketRequestParams("PUT",t,"cors",r),s='<?xml version="1.0" encoding="UTF-8"?>\n<CORSConfiguration>',l=function(e){s+="<AllowedOrigin>".concat(e,"</AllowedOrigin>")},c=function(e){s+="<AllowedMethod>".concat(e,"</AllowedMethod>")},d=function(e){s+="<AllowedHeader>".concat(e,"</AllowedHeader>")},f=function(e){s+="<ExposeHeader>".concat(e,"</ExposeHeader>")},h=0,p=n.length;h<p;h++)m=n[h],s+="<CORSRule>",u(m.allowedOrigin).forEach(l),u(m.allowedMethod).forEach(c),u(m.allowedHeader).forEach(d),u(m.exposeHeader).forEach(f),m.maxAgeSeconds&&(s+="<MaxAgeSeconds>".concat(m.maxAgeSeconds,"</MaxAgeSeconds>")),s+="</CORSRule>";return s+="</CORSConfiguration>",o.content=s,o.mime="xml",o.successStatuses=[200],e.next=16,this.request(o);case 16:return y=e.sent,e.abrupt("return",{res:y.res});case 18:case"end":return e.stop()}},e,this)}));return function(t,n,r){return e.apply(this,arguments)}}(),l.getBucketCORS=function(){var e=(0,o.default)(i.default.mark(function e(t,n){var r,o,a,s;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(r=this._bucketRequestParams("GET",t,"cors",n)).successStatuses=[200],r.xmlResponse=!0,e.next=5,this.request(r);case 5:return o=e.sent,a=[],o.data&&o.data.CORSRule&&(c(s=o.data.CORSRule)||(s=[s]),s.forEach(function(e){var t={};Object.keys(e).forEach(function(n){t[n.slice(0,1).toLowerCase()+n.slice(1,n.length)]=e[n]}),a.push(t)})),e.abrupt("return",{rules:a,res:o.res});case 9:case"end":return e.stop()}},e,this)}));return function(t,n){return e.apply(this,arguments)}}(),l.deleteBucketCORS=function(){var e=(0,o.default)(i.default.mark(function e(t,n){var r,o;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(r=this._bucketRequestParams("DELETE",t,"cors",n)).successStatuses=[204],e.next=4,this.request(r);case 4:return o=e.sent,e.abrupt("return",{res:o.res});case 6:case"end":return e.stop()}},e,this)}));return function(t,n){return e.apply(this,arguments)}}(),l.putBucketReferer=function(){var e=(0,o.default)(i.default.mark(function e(t,n,r,o){var a,s,l,c;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a=this._bucketRequestParams("PUT",t,"referer",o),s='<?xml version="1.0" encoding="UTF-8"?>\n<RefererConfiguration>\n',s+=" <AllowEmptyReferer>".concat(n?"true":"false","</AllowEmptyReferer>\n"),r&&r.length>0){for(s+=" <RefererList>\n",l=0;l<r.length;l++)s+=" <Referer>".concat(r[l],"</Referer>\n");s+=" </RefererList>\n"}else s+=" <RefererList />\n";return s+="</RefererConfiguration>",a.content=s,a.mime="xml",a.successStatuses=[200],e.next=10,this.request(a);case 10:return c=e.sent,e.abrupt("return",{res:c.res});case 12:case"end":return e.stop()}},e,this)}));return function(t,n,r,i){return e.apply(this,arguments)}}(),l.getBucketReferer=function(){var e=(0,o.default)(i.default.mark(function e(t,n){var r,o,a;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(r=this._bucketRequestParams("GET",t,"referer",n)).successStatuses=[200],r.xmlResponse=!0,e.next=5,this.request(r);case 5:return o=e.sent,(a=o.data.RefererList.Referer||null)&&(c(a)||(a=[a])),e.abrupt("return",{allowEmpty:"true"===o.data.AllowEmptyReferer,referers:a,res:o.res});case 9:case"end":return e.stop()}},e,this)}));return function(t,n){return e.apply(this,arguments)}}(),l.deleteBucketReferer=function(){var e=(0,o.default)(i.default.mark(function e(t,n){return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.putBucketReferer(t,!0,null,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)}));return function(t,n){return e.apply(this,arguments)}}(),l._bucketRequestParams=function(e,t,n,r){return{method:e,bucket:t,subres:n,timeout:r&&r.timeout,ctx:r&&r.ctx}}},{"../common/utils/checkBucketName":50,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,assert:78,"core-js/modules/es.array.slice.js":250,"core-js/modules/es.object.keys.js":257,"core-js/modules/es.object.to-string.js":258,"core-js/modules/web.dom-collections.for-each.js":296}],3:[function(e,t,n){(function(n,r){(function(){"use strict";var i=e("@babel/runtime/helpers/interopRequireDefault"),o=i(e("@babel/runtime/regenerator")),a=i(e("@babel/runtime/helpers/asyncToGenerator"));e("core-js/modules/es.function.name.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.split.js"),e("core-js/modules/es.object.assign.js"),e("core-js/modules/es.array.includes.js"),e("core-js/modules/es.string.replace.js"),e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.symbol.js"),e("core-js/modules/es.symbol.description.js"),e("core-js/modules/es.array.slice.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.promise.js"),e("core-js/modules/es.regexp.to-string.js");var s=e("debug")("ali-oss"),l=e("xml2js"),c=e("agentkeepalive"),u=e("merge-descriptors"),d=e("platform"),f=e("utility"),h=e("urllib"),p=e("./version"),m=e("bowser"),y=e("../common/signUtils"),v=e("../common/client/initOptions"),g=e("../common/utils/createRequest").createRequest,b=e("../common/utils/encoder").encoder,_=e("../common/client/getReqUrl").getReqUrl,k=e("../common/utils/setSTSToken").setSTSToken,w=e("../common/utils/retry").retry,x=e("../common/utils/isFunction").isFunction,C=new c;function S(e,t){if(function(){var e=d.name,t=d.version;e&&e.toLowerCase&&"ie"===e.toLowerCase()&&t.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}(),!(this instanceof S))return new S(e,t);e&&e.inited?this.options=e:this.options=S.initOptions(e),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=h,this.agent=this.options.agent||C),this.ctx=t,this.userAgent=this._getUserAgent(),this.stsTokenFreshTime=new Date,this.options.amendTimeSkewed=0}t.exports=S,S.initOptions=function(e){e.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var t=Object.assign({secure:location&&"https:"===location.protocol,useFetch:!1},e);return v(t)};var A=S.prototype;function O(e){return j.apply(this,arguments)}function j(){return(j=(0,a.default)(o.default.mark(function e(t){var n,r,i,a,s,l;return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.options.stsToken||!x(this.options.refreshSTSToken)){e.next=3;break}return e.next=3,k.call(this);case 3:return n=g.call(this,t),this.options.useFetch||(n.params.mode="disable-fetch"),a=!!t.stream,e.prev=6,e.next=9,this.urllib.request(n.url,n.params);case 9:r=e.sent,this.debug("response %s %s, got %s, headers: %j",t.method,n.url,r.status,r.headers,"info"),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(6),i=e.t0;case 16:if(!r||!t.successStatuses||-1!==t.successStatuses.indexOf(r.status)){e.next=28;break}return e.next=19,this.requestError(r);case 19:if("RequestTimeTooSkewed"!==(s=e.sent).code||a){e.next=25;break}return this.options.amendTimeSkewed=+new Date(s.serverTime)-new Date,e.next=24,this.request(t);case 24:return e.abrupt("return",e.sent);case 25:s.params=t,e.next=32;break;case 28:if(!i){e.next=32;break}return e.next=31,this.requestError(i);case 31:s=e.sent;case 32:if(!s){e.next=34;break}throw s;case 34:if(!t.xmlResponse){e.next=39;break}return e.next=37,this.parseXML(r.data);case 37:l=e.sent,r.data=l;case 39:return e.abrupt("return",r);case 40:case"end":return e.stop()}},e,this,[[6,13]])}))).apply(this,arguments)}A.debug=s,u(A,e("./object")),u(A,e("./bucket")),u(A,e("../common/bucket/getBucketWebsite")),u(A,e("../common/bucket/putBucketWebsite")),u(A,e("../common/bucket/deleteBucketWebsite")),u(A,e("../common/bucket/getBucketLifecycle")),u(A,e("../common/bucket/putBucketLifecycle")),u(A,e("../common/bucket/deleteBucketLifecycle")),u(A,e("../common/bucket/putBucketVersioning")),u(A,e("../common/bucket/getBucketVersioning")),u(A,e("../common/bucket/getBucketInventory")),u(A,e("../common/bucket/deleteBucketInventory")),u(A,e("../common/bucket/listBucketInventory")),u(A,e("../common/bucket/putBucketInventory")),u(A,e("../common/bucket/abortBucketWorm")),u(A,e("../common/bucket/completeBucketWorm")),u(A,e("../common/bucket/extendBucketWorm")),u(A,e("../common/bucket/getBucketWorm")),u(A,e("../common/bucket/initiateBucketWorm")),u(A,e("./managed-upload")),u(A,e("../common/multipart-copy")),u(A,e("../common/multipart")),u(A,e("../common/parallel")),A.signature=function(e){return this.debug("authorization stringToSign: %s",e,"info"),y.computeSignature(this.options.accessKeySecret,e,this.options.headerEncoding)},A._getReqUrl=_,A.authorization=function(e,t,n,r){var i=y.buildCanonicalString(e.toUpperCase(),t,{headers:r,parameters:n});return y.authorization(this.options.accessKeyId,this.options.accessKeySecret,i,this.options.headerEncoding)},A.request=function(){var e=(0,a.default)(o.default.mark(function e(t){var n=this;return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.options.retryMax){e.next=6;break}return e.next=3,w(O.bind(this),this.options.retryMax,{errorHandler:function(e){return!!function(e){if(t.stream)return!1;var r=[-1,-2].includes(e.status),i=n.options.requestErrorRetryHandle||function(){return!0};return r&&i(e)}(e)}})(t);case 3:return e.abrupt("return",e.sent);case 6:return e.abrupt("return",O.call(this,t));case 7:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}(),A._getResource=function(e){var t="/";return e.bucket&&(t+="".concat(e.bucket,"/")),e.object&&(t+=b(e.object,this.options.headerEncoding)),t},A._escape=function(e){return f.encodeURIComponent(e).replace(/%2F/g,"/")},A._getUserAgent=function(){var e=r&&r.browser?"js":"nodejs",t="aliyun-sdk-".concat(e,"/").concat(p.version),n=d.description;return!n&&r&&(n="Node.js ".concat(r.version.slice(1)," on ").concat(r.platform," ").concat(r.arch)),this._checkUserAgent("".concat(t," ").concat(n))},A._checkUserAgent=function(e){return e.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta")},A.checkBrowserAndVersion=function(e,t){return m.name===e&&m.version.split(".")[0]===t},A.parseXML=function(e){return new Promise(function(t,r){n.isBuffer(e)&&(e=e.toString()),l.parseString(e,{explicitRoot:!1,explicitArray:!1},function(e,n){e?r(e):t(n)})})},A.requestError=function(){var e=(0,a.default)(o.default.mark(function e(t){var n,r,i,a;return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=null,t.data&&t.data.length){e.next=5;break}-1===t.status||-2===t.status?((n=new Error(t.message)).name=t.name,n.status=t.status,n.code=t.name):(404===t.status?((n=new Error("Object not exists")).name="NoSuchKeyError",n.status=404,n.code="NoSuchKey"):412===t.status?((n=new Error("Pre condition failed")).name="PreconditionFailedError",n.status=412,n.code="PreconditionFailed"):((n=new Error("Unknow error, status: ".concat(t.status))).name="UnknowError",n.status=t.status),n.requestId=t.headers["x-oss-request-id"],n.host=""),e.next=32;break;case 5:return r=String(t.data),this.debug("request response error data: %s",r,"error"),e.prev=7,e.next=10,this.parseXML(r);case 10:if(e.t0=e.sent,e.t0){e.next=13;break}e.t0={};case 13:i=e.t0,e.next=23;break;case 16:return e.prev=16,e.t1=e.catch(7),this.debug(r,"error"),e.t1.message+="\nraw xml: ".concat(r),e.t1.status=t.status,e.t1.requestId=t.headers["x-oss-request-id"],e.abrupt("return",e.t1);case 23:a=i.Message||"unknow request error, status: ".concat(t.status),i.Condition&&(a+=" (condition: ".concat(i.Condition,")")),(n=new Error(a)).name=i.Code?"".concat(i.Code,"Error"):"UnknowError",n.status=t.status,n.code=i.Code,n.requestId=i.RequestId,n.hostId=i.HostId,n.serverTime=i.ServerTime;case 32:return this.debug("generate error %j",n,"error"),e.abrupt("return",n);case 34:case"end":return e.stop()}},e,this,[[7,16]])}));return function(t){return e.apply(this,arguments)}}()}).call(this)}).call(this,{isBuffer:e("../../node_modules/is-buffer/index.js")},e("_process"))},{"../../node_modules/is-buffer/index.js":312,"../common/bucket/abortBucketWorm":7,"../common/bucket/completeBucketWorm":8,"../common/bucket/deleteBucketInventory":9,"../common/bucket/deleteBucketLifecycle":10,"../common/bucket/deleteBucketWebsite":11,"../common/bucket/extendBucketWorm":12,"../common/bucket/getBucketInventory":13,"../common/bucket/getBucketLifecycle":14,"../common/bucket/getBucketVersioning":15,"../common/bucket/getBucketWebsite":16,"../common/bucket/getBucketWorm":17,"../common/bucket/initiateBucketWorm":18,"../common/bucket/listBucketInventory":19,"../common/bucket/putBucketInventory":20,"../common/bucket/putBucketLifecycle":21,"../common/bucket/putBucketVersioning":22,"../common/bucket/putBucketWebsite":23,"../common/client/getReqUrl":25,"../common/client/initOptions":26,"../common/multipart":30,"../common/multipart-copy":29,"../common/parallel":48,"../common/signUtils":49,"../common/utils/createRequest":54,"../common/utils/encoder":57,"../common/utils/isFunction":65,"../common/utils/retry":70,"../common/utils/setSTSToken":72,"./bucket":2,"./managed-upload":4,"./object":5,"./version":6,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,_process:399,agentkeepalive:77,bowser:83,"core-js/modules/es.array.concat.js":241,"core-js/modules/es.array.includes.js":246,"core-js/modules/es.array.slice.js":250,"core-js/modules/es.function.name.js":253,"core-js/modules/es.object.assign.js":255,"core-js/modules/es.object.to-string.js":258,"core-js/modules/es.promise.js":259,"core-js/modules/es.regexp.exec.js":261,"core-js/modules/es.regexp.to-string.js":262,"core-js/modules/es.string.replace.js":266,"core-js/modules/es.string.split.js":268,"core-js/modules/es.symbol.description.js":270,"core-js/modules/es.symbol.js":271,debug:397,"merge-descriptors":315,platform:322,urllib:407,utility:406,xml2js:358}],4:[function(e,t,n){(function(t){(function(){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),i=r(e("@babel/runtime/regenerator"));e("core-js/modules/es.function.name.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.promise.js"),e("core-js/modules/es.array.from.js"),e("core-js/modules/es.string.iterator.js"),e("core-js/modules/es.array.map.js"),e("core-js/modules/es.array.filter.js"),e("core-js/modules/es.array.find.js"),e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.regexp.to-string.js"),e("core-js/modules/es.array.slice.js"),e("core-js/modules/es.array.iterator.js"),e("core-js/modules/es.array-buffer.slice.js"),e("core-js/modules/es.typed-array.uint8-array.js"),e("core-js/modules/es.typed-array.copy-within.js"),e("core-js/modules/es.typed-array.every.js"),e("core-js/modules/es.typed-array.fill.js"),e("core-js/modules/es.typed-array.filter.js"),e("core-js/modules/es.typed-array.find.js"),e("core-js/modules/es.typed-array.find-index.js"),e("core-js/modules/es.typed-array.for-each.js"),e("core-js/modules/es.typed-array.includes.js"),e("core-js/modules/es.typed-array.index-of.js"),e("core-js/modules/es.typed-array.iterator.js"),e("core-js/modules/es.typed-array.join.js"),e("core-js/modules/es.typed-array.last-index-of.js"),e("core-js/modules/es.typed-array.map.js"),e("core-js/modules/es.typed-array.reduce.js"),e("core-js/modules/es.typed-array.reduce-right.js"),e("core-js/modules/es.typed-array.reverse.js"),e("core-js/modules/es.typed-array.set.js"),e("core-js/modules/es.typed-array.slice.js"),e("core-js/modules/es.typed-array.some.js"),e("core-js/modules/es.typed-array.sort.js"),e("core-js/modules/es.typed-array.subarray.js"),e("core-js/modules/es.typed-array.to-locale-string.js"),e("core-js/modules/es.typed-array.to-string.js");var o=r(e("@babel/runtime/helpers/asyncToGenerator")),a=e("util"),s=e("path"),l=e("mime"),c=e("copy-to"),u=e("../common/utils/isBlob").isBlob,d=e("../common/utils/isFile").isFile,f=(e("../common/utils/isArray").isArray,e("../common/utils/isBuffer").isBuffer),h=(e("../common/utils/retry").retry,n);h.multipartUpload=function(){var e=(0,o.default)(i.default.mark(function e(t,n){var r,o,a,c,h,p,m,y,v,g=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=g.length>2&&void 0!==g[2]?g[2]:{},this.resetCancelFlag(),r.disabledMD5=void 0===r.disabledMD5||!!r.disabledMD5,!r.checkpoint||!r.checkpoint.uploadId){e.next=8;break}return n&&d(n)&&(r.checkpoint.file=n),e.next=7,this._resumeMultipart(r.checkpoint,r);case 7:return e.abrupt("return",e.sent);case 8:return o=102400,r.mime||(d(n)?r.mime=l.getType(s.extname(n.name)):u(n)?r.mime=n.type:f(n)?r.mime="":r.mime=l.getType(s.extname(n))),r.headers=r.headers||{},this._convertMetaToHeaders(r.meta,r.headers),e.next=14,this._getFileSize(n);case 14:if(!((a=e.sent)<o)){e.next=26;break}return r.contentLength=a,e.next=19,this.put(t,n,r);case 19:if(c=e.sent,!r||!r.progress){e.next=23;break}return e.next=23,r.progress(1);case 23:return h={res:c.res,bucket:this.options.bucket,name:t,etag:c.res.headers.etag},(r.headers&&r.headers["x-oss-callback"]||r.callback)&&(h.data=c.data),e.abrupt("return",h);case 26:if(!r.partSize||parseInt(r.partSize,10)===r.partSize){e.next=28;break}throw new Error("partSize must be int number");case 28:if(!(r.partSize&&r.partSize<o)){e.next=30;break}throw new Error("partSize must not be smaller than ".concat(o));case 30:return e.next=32,this.initMultipartUpload(t,r);case 32:if(p=e.sent,m=p.uploadId,y=this._getPartSize(a,r.partSize),v={file:n,name:t,fileSize:a,partSize:y,uploadId:m,doneParts:[]},!r||!r.progress){e.next=39;break}return e.next=39,r.progress(0,v,p.res);case 39:return e.next=41,this._resumeMultipart(v,r);case 41:return e.abrupt("return",e.sent);case 42:case"end":return e.stop()}},e,this)}));return function(t,n){return e.apply(this,arguments)}}(),h._resumeMultipart=function(){var e=(0,o.default)(i.default.mark(function e(t,n){var r,a,s,l,u,d,f,h,p,m,y,v,g,b,_,k,w,x,C;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this,!this.isCancel()){e.next=3;break}throw this._makeCancelEvent();case 3:return a=t.file,s=t.fileSize,l=t.partSize,u=t.uploadId,d=t.doneParts,f=t.name,h=[],d.length>0&&c(d).to(h),p=this._divideParts(s,l),m=p.length,y=!1,v=function(e,r){return new Promise(function(){var s=(0,o.default)(i.default.mark(function o(s,l){var h,v,g,b,_;return i.default.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(i.prev=0,e.isCancel()){i.next=29;break}return h=p[r-1],i.next=5,e._createBuffer(a,h.start,h.end);case 5:return v=i.sent,g={content:v,size:h.end-h.start},i.prev=7,i.next=10,e._uploadPart(f,u,r,g,{timeout:n.timeout,disabledMD5:n.disabledMD5});case 10:b=i.sent,i.next=18;break;case 13:if(i.prev=13,i.t0=i.catch(7),404!==i.t0.status){i.next=17;break}throw e._makeAbortEvent();case 17:throw i.t0;case 18:if(e.isCancel()||y){i.next=26;break}if(t.doneParts.push({number:r,etag:b.res.headers.etag}),!n.progress){i.next=23;break}return i.next=23,n.progress(d.length/m,t,b.res);case 23:s({number:r,etag:b.res.headers.etag}),i.next=27;break;case 26:s();case 27:i.next=30;break;case 29:s();case 30:i.next=41;break;case 32:i.prev=32,i.t1=i.catch(0),(_=new Error).name=i.t1.name,_.message=i.t1.message,_.stack=i.t1.stack,_.partNum=r,c(i.t1).to(_),l(_);case 41:case"end":return i.stop()}},o,null,[[0,32],[7,13]])}));return function(e,t){return s.apply(this,arguments)}}())},g=Array.from(new Array(m),function(e,t){return t+1}),b=h.map(function(e){return e.number}),_=g.filter(function(e){return b.indexOf(e)<0}),k=5,w=n.parallel||k,e.next=17,this._parallel(_,w,function(e){return new Promise(function(t,n){v(r,e).then(function(e){e&&h.push(e),t()}).catch(function(e){n(e)})})});case 17:if(x=e.sent,y=!0,!(C=x.find(function(e){return"abort"===e.name}))){e.next=22;break}throw C;case 22:if(!this.isCancel()){e.next=25;break}throw v=null,this._makeCancelEvent();case 25:if(!(x&&x.length>0)){e.next=28;break}throw x[0].message="Failed to upload some parts with error: ".concat(x[0].toString()," part_num: ").concat(x[0].partNum),x[0];case 28:return e.next=30,this.completeMultipartUpload(f,u,h,n);case 30:return e.abrupt("return",e.sent);case 31:case"end":return e.stop()}},e,this)}));return function(t,n){return e.apply(this,arguments)}}(),h._getFileSize=function(){var e=(0,o.default)(i.default.mark(function e(t){return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!f(t)){e.next=4;break}return e.abrupt("return",t.length);case 4:if(!u(t)&&!d(t)){e.next=6;break}return e.abrupt("return",t.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}();var p=e("stream").Readable;function m(e,t){if(!(this instanceof m))return new m(e,t);p.call(this,t),this.file=e,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}function y(e){return e.arrayBuffer?e.arrayBuffer():new Promise(function(t,n){var r=new FileReader;r.onload=function(e){t(e.target.result)},r.onerror=function(e){n(e)},r.readAsArrayBuffer(e)})}a.inherits(m,p),m.prototype.readFileAndPush=function(e){if(this.fileBuffer)for(var t=!0;t&&this.fileBuffer&&this.start<this.fileBuffer.length;){var n=this.start,r=n+e;r=r>this.fileBuffer.length?this.fileBuffer.length:r,this.start=r,t=this.push(this.fileBuffer.slice(n,r))}},m.prototype._read=function(e){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||0===this.start&&!this.file)return this.finish||(this.fileBuffer=null,this.finish=!0),void this.push(null);e=e||16384;var n=this;this.reader.onload=function(r){n.fileBuffer=t.from(new Uint8Array(r.target.result)),n.file=null,n.readFileAndPush(e)},0===this.start?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(e)},h._createBuffer=function(){var e=(0,o.default)(i.default.mark(function e(n,r,o){var a,s;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!u(n)&&!d(n)){e.next=8;break}return a=n.slice(r,o),e.next=4,y(a);case 4:return s=e.sent,e.abrupt("return",t.from(s));case 8:if(!f(n)){e.next=12;break}return e.abrupt("return",n.subarray(r,o));case 12:throw new Error("_createBuffer requires File/Blob/Buffer.");case 13:case"end":return e.stop()}},e)}));return function(t,n,r){return e.apply(this,arguments)}}(),h._getPartSize=function(e,t){t||(t=1048576);var n=Math.ceil(e/1e4);return t<n&&(t=n,console.warn("partSize has been set to ".concat(t,", because the partSize you provided causes partNumber to be greater than 10,000"))),t},h._divideParts=function(e,t){for(var n=Math.ceil(e/t),r=[],i=0;i<n;i++){var o=t*i,a=Math.min(o+t,e);r.push({start:o,end:a})}return r}}).call(this)}).call(this,e("buffer").Buffer)},{"../common/utils/isArray":61,"../common/utils/isBlob":62,"../common/utils/isBuffer":63,"../common/utils/isFile":64,"../common/utils/retry":70,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,buffer:85,"copy-to":88,"core-js/modules/es.array-buffer.slice.js":240,"core-js/modules/es.array.concat.js":241,"core-js/modules/es.array.filter.js":243,"core-js/modules/es.array.find.js":244,"core-js/modules/es.array.from.js":245,"core-js/modules/es.array.iterator.js":247,"core-js/modules/es.array.map.js":249,"core-js/modules/es.array.slice.js":250,"core-js/modules/es.function.name.js":253,"core-js/modules/es.object.to-string.js":258,"core-js/modules/es.promise.js":259,"core-js/modules/es.regexp.to-string.js":262,"core-js/modules/es.string.iterator.js":264,"core-js/modules/es.typed-array.copy-within.js":272,"core-js/modules/es.typed-array.every.js":273,"core-js/modules/es.typed-array.fill.js":274,"core-js/modules/es.typed-array.filter.js":275,"core-js/modules/es.typed-array.find-index.js":276,"core-js/modules/es.typed-array.find.js":277,"core-js/modules/es.typed-array.for-each.js":278,"core-js/modules/es.typed-array.includes.js":279,"core-js/modules/es.typed-array.index-of.js":280,"core-js/modules/es.typed-array.iterator.js":281,"core-js/modules/es.typed-array.join.js":282,"core-js/modules/es.typed-array.last-index-of.js":283,"core-js/modules/es.typed-array.map.js":284,"core-js/modules/es.typed-array.reduce-right.js":285,"core-js/modules/es.typed-array.reduce.js":286,"core-js/modules/es.typed-array.reverse.js":287,"core-js/modules/es.typed-array.set.js":288,"core-js/modules/es.typed-array.slice.js":289,"core-js/modules/es.typed-array.some.js":290,"core-js/modules/es.typed-array.sort.js":291,"core-js/modules/es.typed-array.subarray.js":292,"core-js/modules/es.typed-array.to-locale-string.js":293,"core-js/modules/es.typed-array.to-string.js":294,"core-js/modules/es.typed-array.uint8-array.js":295,mime:317,path:321,stream:345,util:352}],5:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.function.name.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.regexp.to-string.js"),e("core-js/modules/es.array.map.js"),e("core-js/modules/es.number.constructor.js"),e("core-js/modules/es.object.assign.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js"),e("core-js/modules/es.promise.js");var i=r(e("@babel/runtime/regenerator")),o=r(e("@babel/runtime/helpers/asyncToGenerator")),a=e("fs"),s=e("copy-to"),l=e("path"),c=e("mime"),u=e("../common/callback"),d=e("merge-descriptors"),f=e("../common/utils/isBlob").isBlob,h=e("../common/utils/isFile").isFile,p=e("../common/utils/isBuffer").isBuffer,m=e("../common/utils/obj2xml").obj2xml,y=n;y.append=function(){var e=(0,o.default)(i.default.mark(function e(t,n,r){var o;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return void 0===(r=r||{}).position&&(r.position="0"),r.subres={append:"",position:r.position},r.method="POST",e.next=6,this.put(t,n,r);case 6:return(o=e.sent).nextAppendPosition=o.res.headers["x-oss-next-append-position"],e.abrupt("return",o);case 9:case"end":return e.stop()}},e,this)}));return function(t,n,r){return e.apply(this,arguments)}}(),y.put=function(){var e=(0,o.default)(i.default.mark(function e(t,n,r){var o,a,s,d,m;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((r=r||{}).disabledMD5=void 0===r.disabledMD5||!!r.disabledMD5,r.headers=r.headers||{},t=this._objectName(t),!p(n)){e.next=8;break}o=n,e.next=19;break;case 8:if(!f(n)&&!h(n)){e.next=18;break}return r.mime||(h(n)?r.mime=c.getType(l.extname(n.name)):r.mime=n.type),e.next=12,this._createBuffer(n,0,n.size);case 12:return o=e.sent,e.next=15,this._getFileSize(n);case 15:r.contentLength=e.sent,e.next=19;break;case 18:throw new TypeError("Must provide Buffer/Blob/File for put.");case 19:return this._convertMetaToHeaders(r.meta,r.headers),a=r.method||"PUT",s=this._objectRequestParams(a,t,r),u.encodeCallback(s,r),s.mime=r.mime,s.disabledMD5=r.disabledMD5,s.content=o,s.successStatuses=[200],e.next=29,this.request(s);case 29:return d=e.sent,m={name:t,url:this._objectUrl(t),res:d.res},s.headers&&s.headers["x-oss-callback"]&&(m.data=JSON.parse(d.data.toString())),e.abrupt("return",m);case 33:case"end":return e.stop()}},e,this)}));return function(t,n,r){return e.apply(this,arguments)}}(),y.putStream=function(){var e=(0,o.default)(i.default.mark(function e(t,n,r){var o,a,s,l;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(r=r||{}).headers=r.headers||{},t=this._objectName(t),r.contentLength?r.headers["Content-Length"]=r.contentLength:r.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(r.meta,r.headers),o=r.method||"PUT",a=this._objectRequestParams(o,t,r),u.encodeCallback(a,r),a.mime=r.mime,a.stream=n,a.successStatuses=[200],e.next=13,this.request(a);case 13:return s=e.sent,l={name:t,url:this._objectUrl(t),res:s.res},a.headers&&a.headers["x-oss-callback"]&&(l.data=JSON.parse(s.data.toString())),e.abrupt("return",l);case 17:case"end":return e.stop()}},e,this)}));return function(t,n,r){return e.apply(this,arguments)}}(),d(y,e("../common/object/copyObject")),d(y,e("../common/object/getObjectTagging")),d(y,e("../common/object/putObjectTagging")),d(y,e("../common/object/deleteObjectTagging")),d(y,e("../common/image")),d(y,e("../common/object/getBucketVersions")),d(y,e("../common/object/getACL")),d(y,e("../common/object/putACL")),d(y,e("../common/object/head")),d(y,e("../common/object/delete")),d(y,e("../common/object/get")),d(y,e("../common/object/putSymlink")),d(y,e("../common/object/getSymlink")),d(y,e("../common/object/deleteMulti")),d(y,e("../common/object/getObjectMeta")),d(y,e("../common/object/getObjectUrl")),d(y,e("../common/object/generateObjectUrl")),d(y,e("../common/object/signatureUrl")),y.putMeta=function(){var e=(0,o.default)(i.default.mark(function e(t,n,r){var o;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.copy(t,t,{meta:n||{},timeout:r&&r.timeout,ctx:r&&r.ctx});case 2:return o=e.sent,e.abrupt("return",o);case 4:case"end":return e.stop()}},e,this)}));return function(t,n,r){return e.apply(this,arguments)}}(),y.list=function(){var e=(0,o.default)(i.default.mark(function e(t,n){var r,o,a,s,l;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(r=this._objectRequestParams("GET","",n)).query=t,r.xmlResponse=!0,r.successStatuses=[200],e.next=6,this.request(r);case 6:return o=e.sent,a=o.data.Contents||[],s=this,a&&(Array.isArray(a)||(a=[a]),a=a.map(function(e){return{name:e.Key,url:s._objectUrl(e.Key),lastModified:e.LastModified,etag:e.ETag,type:e.Type,size:Number(e.Size),storageClass:e.StorageClass,owner:{id:e.Owner.ID,displayName:e.Owner.DisplayName}}})),(l=o.data.CommonPrefixes||null)&&(Array.isArray(l)||(l=[l]),l=l.map(function(e){return e.Prefix})),e.abrupt("return",{res:o.res,objects:a,prefixes:l,nextMarker:o.data.NextMarker||null,isTruncated:"true"===o.data.IsTruncated});case 13:case"end":return e.stop()}},e,this)}));return function(t,n){return e.apply(this,arguments)}}(),y.listV2=function(){var e=(0,o.default)(i.default.mark(function e(t){var n,r,o,a,s,l,c,u=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=u.length>1&&void 0!==u[1]?u[1]:{},(r=t["continuation-token"]||t.continuationToken)&&(n.subres=Object.assign({"continuation-token":r},n.subres)),(o=this._objectRequestParams("GET","",n)).query=Object.assign({"list-type":2},t),delete o.query["continuation-token"],delete o.query.continuationToken,o.xmlResponse=!0,o.successStatuses=[200],e.next=11,this.request(o);case 11:return a=e.sent,s=a.data.Contents||[],l=this,s&&(Array.isArray(s)||(s=[s]),s=s.map(function(e){return{name:e.Key,url:l._objectUrl(e.Key),lastModified:e.LastModified,etag:e.ETag,type:e.Type,size:Number(e.Size),storageClass:e.StorageClass,owner:e.Owner?{id:e.Owner.ID,displayName:e.Owner.DisplayName}:null}})),(c=a.data.CommonPrefixes||null)&&(Array.isArray(c)||(c=[c]),c=c.map(function(e){return e.Prefix})),e.abrupt("return",{res:a.res,objects:s,prefixes:c,isTruncated:"true"===a.data.IsTruncated,keyCount:+a.data.KeyCount,continuationToken:a.data.ContinuationToken||null,nextContinuationToken:a.data.NextContinuationToken||null});case 18:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}(),y.restore=function(){var e=(0,o.default)(i.default.mark(function e(t){var n,r,o,a,s=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(n=(n=s.length>1&&void 0!==s[1]?s[1]:{type:"Archive"})||{}).subres=Object.assign({restore:""},n.subres),n.versionId&&(n.subres.versionId=n.versionId),r=this._objectRequestParams("POST",t,n),"ColdArchive"===n.type&&(o={RestoreRequest:{Days:n.Days?n.Days:2,JobParameters:{Tier:n.JobParameters?n.JobParameters:"Standard"}}},r.content=m(o,{headers:!0}),r.mime="xml"),r.successStatuses=[202],e.next=9,this.request(r);case 9:return a=e.sent,e.abrupt("return",{res:a.res});case 11:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}(),y._objectUrl=function(e){return this._getReqUrl({bucket:this.options.bucket,object:e})},y._objectRequestParams=function(e,t,n){if(!this.options.bucket&&!this.options.cname)throw new Error("Please create a bucket first");n=n||{};var r={object:t=this._objectName(t),bucket:this.options.bucket,method:e,subres:n&&n.subres,timeout:n&&n.timeout,ctx:n&&n.ctx};return n.headers&&(r.headers={},s(n.headers).to(r.headers)),r},y._objectName=function(e){return e.replace(/^\/+/,"")},y._convertMetaToHeaders=function(e,t){e&&Object.keys(e).forEach(function(n){t["x-oss-meta-".concat(n)]=e[n]})},y._deleteFileSafe=function(e){var t=this;return new Promise(function(n){a.exists(e,function(r){r?a.unlink(e,function(r){r&&t.debug("unlink %j error: %s",e,r,"error"),n()}):n()})})}},{"../common/callback":24,"../common/image":27,"../common/object/copyObject":31,"../common/object/delete":32,"../common/object/deleteMulti":33,"../common/object/deleteObjectTagging":34,"../common/object/generateObjectUrl":35,"../common/object/get":36,"../common/object/getACL":37,"../common/object/getBucketVersions":38,"../common/object/getObjectMeta":39,"../common/object/getObjectTagging":40,"../common/object/getObjectUrl":41,"../common/object/getSymlink":42,"../common/object/head":43,"../common/object/putACL":44,"../common/object/putObjectTagging":45,"../common/object/putSymlink":46,"../common/object/signatureUrl":47,"../common/utils/isBlob":62,"../common/utils/isBuffer":63,"../common/utils/isFile":64,"../common/utils/obj2xml":69,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"copy-to":88,"core-js/modules/es.array.map.js":249,"core-js/modules/es.function.name.js":253,"core-js/modules/es.number.constructor.js":254,"core-js/modules/es.object.assign.js":255,"core-js/modules/es.object.keys.js":257,"core-js/modules/es.object.to-string.js":258,"core-js/modules/es.promise.js":259,"core-js/modules/es.regexp.exec.js":261,"core-js/modules/es.regexp.to-string.js":262,"core-js/modules/es.string.replace.js":266,"core-js/modules/web.dom-collections.for-each.js":296,fs:84,"merge-descriptors":315,mime:317,path:321}],6:[function(e,t,n){"use strict";n.version="6.17.1"},{}],7:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),i=r(e("@babel/runtime/regenerator")),o=r(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(n,"__esModule",{value:!0}),n.abortBucketWorm=void 0;var a=e("../utils/checkBucketName");function s(){return(s=(0,o.default)(i.default.mark(function e(t,n){var r,o;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a.checkBucketName(t),r=this._bucketRequestParams("DELETE",t,"worm",n),e.next=4,this.request(r);case 4:return o=e.sent,e.abrupt("return",{res:o.res,status:o.status});case 6:case"end":return e.stop()}},e,this)}))).apply(this,arguments)}n.abortBucketWorm=function(e,t){return s.apply(this,arguments)}},{"../utils/checkBucketName":50,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76}],8:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),i=r(e("@babel/runtime/regenerator")),o=r(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(n,"__esModule",{value:!0}),n.completeBucketWorm=void 0;var a=e("../utils/checkBucketName");function s(){return(s=(0,o.default)(i.default.mark(function e(t,n,r){var o,s;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a.checkBucketName(t),o=this._bucketRequestParams("POST",t,{wormId:n},r),e.next=4,this.request(o);case 4:return s=e.sent,e.abrupt("return",{res:s.res,status:s.status});case 6:case"end":return e.stop()}},e,this)}))).apply(this,arguments)}n.completeBucketWorm=function(e,t,n){return s.apply(this,arguments)}},{"../utils/checkBucketName":50,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76}],9:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),i=r(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var o=r(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(n,"__esModule",{value:!0}),n.deleteBucketInventory=void 0;var a=e("../utils/checkBucketName");function s(){return(s=(0,o.default)(i.default.mark(function e(t,n){var r,o,s,l,c=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=c.length>2&&void 0!==c[2]?c[2]:{},o=Object.assign({inventory:"",inventoryId:n},r.subres),a.checkBucketName(t),(s=this._bucketRequestParams("DELETE",t,o,r)).successStatuses=[204],e.next=7,this.request(s);case 7:return l=e.sent,e.abrupt("return",{status:l.status,res:l.res});case 9:case"end":return e.stop()}},e,this)}))).apply(this,arguments)}n.deleteBucketInventory=function(e,t){return s.apply(this,arguments)}},{"../utils/checkBucketName":50,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.object.assign.js":255}],10:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),i=r(e("@babel/runtime/regenerator")),o=r(e("@babel/runtime/helpers/asyncToGenerator")),a=e("../utils/checkBucketName").checkBucketName;n.deleteBucketLifecycle=function(){var e=(0,o.default)(i.default.mark(function e(t,n){var r,o;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a(t),(r=this._bucketRequestParams("DELETE",t,"lifecycle",n)).successStatuses=[204],e.next=5,this.request(r);case 5:return o=e.sent,e.abrupt("return",{res:o.res});case 7:case"end":return e.stop()}},e,this)}));return function(t,n){return e.apply(this,arguments)}}()},{"../utils/checkBucketName":50,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76}],11:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),i=r(e("@babel/runtime/regenerator")),o=r(e("@babel/runtime/helpers/asyncToGenerator")),a=e("../utils/checkBucketName").checkBucketName;n.deleteBucketWebsite=function(){var e=(0,o.default)(i.default.mark(function e(t,n){var r,o;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a(t),(r=this._bucketRequestParams("DELETE",t,"website",n)).successStatuses=[204],e.next=5,this.request(r);case 5:return o=e.sent,e.abrupt("return",{res:o.res});case 7:case"end":return e.stop()}},e,this)}));return function(t,n){return e.apply(this,arguments)}}()},{"../utils/checkBucketName":50,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76}],12:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),i=r(e("@babel/runtime/regenerator")),o=r(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(n,"__esModule",{value:!0}),n.extendBucketWorm=void 0;var a=e("../utils/checkBucketName"),s=e("../utils/obj2xml");function l(){return(l=(0,o.default)(i.default.mark(function e(t,n,r,o){var l,c,u;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a.checkBucketName(t),l=this._bucketRequestParams("POST",t,{wormExtend:"",wormId:n},o),c={ExtendWormConfiguration:{RetentionPeriodInDays:r}},l.mime="xml",l.content=s.obj2xml(c,{headers:!0}),l.successStatuses=[200],e.next=8,this.request(l);case 8:return u=e.sent,e.abrupt("return",{res:u.res,status:u.status});case 10:case"end":return e.stop()}},e,this)}))).apply(this,arguments)}n.extendBucketWorm=function(e,t,n,r){return l.apply(this,arguments)}},{"../utils/checkBucketName":50,"../utils/obj2xml":69,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76}],13:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),i=r(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var o=r(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(n,"__esModule",{value:!0}),n.getBucketInventory=void 0;var a=e("../utils/checkBucketName"),s=e("../utils/formatInventoryConfig");function l(){return(l=(0,o.default)(i.default.mark(function e(t,n){var r,o,l,c,u=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=u.length>2&&void 0!==u[2]?u[2]:{},o=Object.assign({inventory:"",inventoryId:n},r.subres),a.checkBucketName(t),(l=this._bucketRequestParams("GET",t,o,r)).successStatuses=[200],l.xmlResponse=!0,e.next=8,this.request(l);case 8:return c=e.sent,e.abrupt("return",{status:c.status,res:c.res,inventory:s.formatInventoryConfig(c.data)});case 10:case"end":return e.stop()}},e,this)}))).apply(this,arguments)}n.getBucketInventory=function(e,t){return l.apply(this,arguments)}},{"../utils/checkBucketName":50,"../utils/formatInventoryConfig":58,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.object.assign.js":255}],14:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),i=r(e("@babel/runtime/regenerator"));e("core-js/modules/es.array.map.js");var o=r(e("@babel/runtime/helpers/asyncToGenerator")),a=e("../utils/checkBucketName").checkBucketName,s=e("../utils/isArray").isArray,l=e("../utils/formatObjKey").formatObjKey;n.getBucketLifecycle=function(){var e=(0,o.default)(i.default.mark(function e(t,n){var r,o,c;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a(t),(r=this._bucketRequestParams("GET",t,"lifecycle",n)).successStatuses=[200],r.xmlResponse=!0,e.next=6,this.request(r);case 6:return o=e.sent,(c=o.data.Rule||null)&&(s(c)||(c=[c]),c=c.map(function(e){return e.ID&&(e.id=e.ID,delete e.ID),e.Tag&&!s(e.Tag)&&(e.Tag=[e.Tag]),l(e,"firstLowerCase")})),e.abrupt("return",{rules:c,res:o.res});case 10:case"end":return e.stop()}},e,this)}));return function(t,n){return e.apply(this,arguments)}}()},{"../utils/checkBucketName":50,"../utils/formatObjKey":59,"../utils/isArray":61,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.array.map.js":249}],15:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),i=r(e("@babel/runtime/regenerator")),o=r(e("@babel/runtime/helpers/asyncToGenerator")),a=e("../utils/checkBucketName").checkBucketName;n.getBucketVersioning=function(){var e=(0,o.default)(i.default.mark(function e(t,n){var r,o,s;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a(t),(r=this._bucketRequestParams("GET",t,"versioning",n)).xmlResponse=!0,r.successStatuses=[200],e.next=6,this.request(r);case 6:return o=e.sent,s=o.data.Status,e.abrupt("return",{status:o.status,versionStatus:s,res:o.res});case 9:case"end":return e.stop()}},e,this)}));return function(t,n){return e.apply(this,arguments)}}()},{"../utils/checkBucketName":50,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76}],16:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),i=r(e("@babel/runtime/regenerator")),o=r(e("@babel/runtime/helpers/asyncToGenerator")),a=e("../utils/checkBucketName").checkBucketName,s=e("../utils/isObject").isObject;n.getBucketWebsite=function(){var e=(0,o.default)(i.default.mark(function e(t,n){var r,o,l;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a(t),(r=this._bucketRequestParams("GET",t,"website",n)).successStatuses=[200],r.xmlResponse=!0,e.next=6,this.request(r);case 6:return o=e.sent,l=[],o.data.RoutingRules&&o.data.RoutingRules.RoutingRule&&(l=s(o.data.RoutingRules.RoutingRule)?[o.data.RoutingRules.RoutingRule]:o.data.RoutingRules.RoutingRule),e.abrupt("return",{index:o.data.IndexDocument&&o.data.IndexDocument.Suffix||"",supportSubDir:o.data.IndexDocument&&o.data.IndexDocument.SupportSubDir||"false",type:o.data.IndexDocument&&o.data.IndexDocument.Type,routingRules:l,error:o.data.ErrorDocument&&o.data.ErrorDocument.Key||null,res:o.res});case 10:case"end":return e.stop()}},e,this)}));return function(t,n){return e.apply(this,arguments)}}()},{"../utils/checkBucketName":50,"../utils/isObject":67,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76}],17:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),i=r(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var o=r(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(n,"__esModule",{value:!0}),n.getBucketWorm=void 0;var a=e("../utils/checkBucketName"),s=e("../utils/dataFix");function l(){return(l=(0,o.default)(i.default.mark(function e(t,n){var r,o;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a.checkBucketName(t),(r=this._bucketRequestParams("GET",t,"worm",n)).successStatuses=[200],r.xmlResponse=!0,e.next=6,this.request(r);case 6:return o=e.sent,s.dataFix(o.data,{lowerFirst:!0,rename:{RetentionPeriodInDays:"days"}}),e.abrupt("return",Object.assign(Object.assign({},o.data),{res:o.res,status:o.status}));case 9:case"end":return e.stop()}},e,this)}))).apply(this,arguments)}n.getBucketWorm=function(e,t){return l.apply(this,arguments)}},{"../utils/checkBucketName":50,"../utils/dataFix":55,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.object.assign.js":255}],18:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),i=r(e("@babel/runtime/regenerator")),o=r(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(n,"__esModule",{value:!0}),n.initiateBucketWorm=void 0;var a=e("../utils/obj2xml"),s=e("../utils/checkBucketName");function l(){return(l=(0,o.default)(i.default.mark(function e(t,n,r){var o,l,c;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return s.checkBucketName(t),o=this._bucketRequestParams("POST",t,"worm",r),l={InitiateWormConfiguration:{RetentionPeriodInDays:n}},o.mime="xml",o.content=a.obj2xml(l,{headers:!0}),o.successStatuses=[200],e.next=8,this.request(o);case 8:return c=e.sent,e.abrupt("return",{res:c.res,wormId:c.res.headers["x-oss-worm-id"],status:c.status});case 10:case"end":return e.stop()}},e,this)}))).apply(this,arguments)}n.initiateBucketWorm=function(e,t,n){return l.apply(this,arguments)}},{"../utils/checkBucketName":50,"../utils/obj2xml":69,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76}],19:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),i=r(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var o=r(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(n,"__esModule",{value:!0}),n.listBucketInventory=void 0;var a=e("../utils/checkBucketName"),s=e("../utils/formatInventoryConfig");function l(){return(l=(0,o.default)(i.default.mark(function e(t){var n,r,o,l,c,u,d,f,h=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=h.length>1&&void 0!==h[1]?h[1]:{},r=n.continuationToken,o=Object.assign({inventory:""},r&&{"continuation-token":r},n.subres),a.checkBucketName(t),(l=this._bucketRequestParams("GET",t,o,n)).successStatuses=[200],l.xmlResponse=!0,e.next=9,this.request(l);case 9:return c=e.sent,u=c.data,d=c.res,f=c.status,e.abrupt("return",{isTruncated:"true"===u.IsTruncated,nextContinuationToken:u.NextContinuationToken,inventoryList:s.formatInventoryConfig(u.InventoryConfiguration,!0),status:f,res:d});case 12:case"end":return e.stop()}},e,this)}))).apply(this,arguments)}n.listBucketInventory=function(e){return l.apply(this,arguments)}},{"../utils/checkBucketName":50,"../utils/formatInventoryConfig":58,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.object.assign.js":255}],20:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),i=r(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js"),e("core-js/modules/es.array.concat.js");var o=r(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(n,"__esModule",{value:!0}),n.putBucketInventory=void 0;var a=e("../utils/checkBucketName"),s=e("../utils/obj2xml");function l(){return(l=(0,o.default)(i.default.mark(function e(t,n){var r,o,l,c,u,d,f,h,p,m,y,v=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=v.length>2&&void 0!==v[2]?v[2]:{},o=Object.assign({inventory:"",inventoryId:n.id},r.subres),a.checkBucketName(t),l=n.OSSBucketDestination,c=n.optionalFields,u=n.includedObjectVersions,d="acs:oss:::",f="acs:ram::".concat(l.accountId,":role/"),h={InventoryConfiguration:{Id:n.id,IsEnabled:n.isEnabled,Filter:{Prefix:n.prefix||""},Destination:{OSSBucketDestination:{Format:l.format,AccountId:l.accountId,RoleArn:"".concat(f).concat(l.rolename),Bucket:"".concat(d).concat(l.bucket),Prefix:l.prefix||"",Encryption:l.encryption||""}},Schedule:{Frequency:n.frequency},IncludedObjectVersions:u,OptionalFields:{Field:(null===c||void 0===c?void 0:c.field)||[]}}},p=s.obj2xml(h,{headers:!0,firstUpperCase:!0}),(m=this._bucketRequestParams("PUT",t,o,r)).successStatuses=[200],m.mime="xml",m.content=p,e.next=14,this.request(m);case 14:return y=e.sent,e.abrupt("return",{status:y.status,res:y.res});case 16:case"end":return e.stop()}},e,this)}))).apply(this,arguments)}n.putBucketInventory=function(e,t){return l.apply(this,arguments)}},{"../utils/checkBucketName":50,"../utils/obj2xml":69,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.array.concat.js":241,"core-js/modules/es.object.assign.js":255}],21:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),i=r(e("@babel/runtime/regenerator"));e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.array.includes.js");var o=r(e("@babel/runtime/helpers/asyncToGenerator")),a=e("../utils/checkBucketName").checkBucketName,s=e("../utils/isArray").isArray,l=e("../utils/deepCopy").deepCopy,c=e("../utils/isObject").isObject,u=e("../utils/obj2xml").obj2xml,d=e("../utils/checkObjectTag").checkObjectTag,f=e("../utils/getStrBytesCount").getStrBytesCount;function h(e){e.days&&(e.expiration={days:e.days}),e.date&&(e.expiration={createdBeforeDate:e.date})}function p(e,t){var n=e.days,r=e.createdBeforeDate;if(!n&&!r)throw new Error("".concat(t," must includes days or createdBeforeDate"));if(n&&!/^[1-9][0-9]*$/.test(n))throw new Error("days must be a positive integer");if(r&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(r))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function m(e){if(e.id&&f(e.id)>255)throw new Error("ID is composed of 255 bytes at most");if(void 0===e.prefix)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(e.status))throw new Error("Status must be Enabled or Disabled");if(e.transition){if(!["IA","Archive"].includes(e.transition.storageClass))throw new Error("StorageClass must be IA or Archive");p(e.transition,"Transition")}if(e.expiration)if(e.expiration.expiredObjectDeleteMarker){if(e.expiration.days||e.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}else p(e.expiration,"Expiration");if(e.abortMultipartUpload&&p(e.abortMultipartUpload,"AbortMultipartUpload"),!(e.expiration||e.abortMultipartUpload||e.transition||e.noncurrentVersionTransition))throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(e.tag){if(e.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");!function(e){if(!s(e)&&!c(e))throw new Error("tag must be Object or Array");e=c(e)?[e]:e;var t={};l(e).forEach(function(e){t[e.key]=e.value}),d(t)}(e.tag)}}n.putBucketLifecycle=function(){var e=(0,o.default)(i.default.mark(function e(t,n,r){var o,l,c,d,f;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a(t),s(n)){e.next=3;break}throw new Error("rules must be Array");case 3:return o=this._bucketRequestParams("PUT",t,"lifecycle",r),c={LifecycleConfiguration:{Rule:l=[]}},n.forEach(function(e){h(e),m(e),e.id&&(e.ID=e.id,delete e.id),l.push(e)}),d=u(c,{headers:!0,firstUpperCase:!0}),o.content=d,o.mime="xml",o.successStatuses=[200],e.next=13,this.request(o);case 13:return f=e.sent,e.abrupt("return",{res:f.res});case 15:case"end":return e.stop()}},e,this)}));return function(t,n,r){return e.apply(this,arguments)}}()},{"../utils/checkBucketName":50,"../utils/checkObjectTag":52,"../utils/deepCopy":56,"../utils/getStrBytesCount":60,"../utils/isArray":61,"../utils/isObject":67,"../utils/obj2xml":69,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.array.includes.js":246,"core-js/modules/web.dom-collections.for-each.js":296}],22:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),i=r(e("@babel/runtime/regenerator"));e("core-js/modules/es.array.includes.js");var o=r(e("@babel/runtime/helpers/asyncToGenerator")),a=e("../utils/checkBucketName").checkBucketName,s=e("../utils/obj2xml").obj2xml;n.putBucketVersioning=function(){var e=(0,o.default)(i.default.mark(function e(t,n){var r,o,l,c,u=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=u.length>2&&void 0!==u[2]?u[2]:{},a(t),["Enabled","Suspended"].includes(n)){e.next=4;break}throw new Error("status must be Enabled or Suspended");case 4:return o=this._bucketRequestParams("PUT",t,"versioning",r),l={VersioningConfiguration:{Status:n}},o.mime="xml",o.content=s(l,{headers:!0}),e.next=10,this.request(o);case 10:return c=e.sent,e.abrupt("return",{res:c.res,status:c.status});case 12:case"end":return e.stop()}},e,this)}));return function(t,n){return e.apply(this,arguments)}}()},{"../utils/checkBucketName":50,"../utils/obj2xml":69,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.array.includes.js":246}],23:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),i=r(e("@babel/runtime/regenerator")),o=r(e("@babel/runtime/helpers/asyncToGenerator")),a=e("../utils/checkBucketName").checkBucketName,s=e("../utils/obj2xml").obj2xml,l=e("../utils/isArray").isArray;n.putBucketWebsite=function(){var e=(0,o.default)(i.default.mark(function e(t){var n,r,o,c,u,d,f,h=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=h.length>1&&void 0!==h[1]?h[1]:{},r=h.length>2?h[2]:void 0,a(t),o=this._bucketRequestParams("PUT",t,"website",r),c={Suffix:n.index||"index.html"},d={WebsiteConfiguration:u={IndexDocument:c}},n.supportSubDir&&(c.SupportSubDir=n.supportSubDir),n.type&&(c.Type=n.type),n.error&&(u.ErrorDocument={Key:n.error}),void 0===n.routingRules){e.next=14;break}if(l(n.routingRules)){e.next=13;break}throw new Error("RoutingRules must be Array");case 13:u.RoutingRules={RoutingRule:n.routingRules};case 14:return d=s(d),o.content=d,o.mime="xml",o.successStatuses=[200],e.next=20,this.request(o);case 20:return f=e.sent,e.abrupt("return",{res:f.res});case 22:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()},{"../utils/checkBucketName":50,"../utils/isArray":61,"../utils/obj2xml":69,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76}],24:[function(e,t,n){(function(t){(function(){"use strict";e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.regexp.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js"),n.encodeCallback=function(e,n){if(e.headers=e.headers||{},!Object.prototype.hasOwnProperty.call(e.headers,"x-oss-callback")&&n.callback){var r={callbackUrl:encodeURI(n.callback.url),callbackBody:n.callback.body};n.callback.host&&(r.callbackHost=n.callback.host),n.callback.contentType&&(r.callbackBodyType=n.callback.contentType);var i=t.from(JSON.stringify(r)).toString("base64");if(e.headers["x-oss-callback"]=i,n.callback.customValue){var o={};Object.keys(n.callback.customValue).forEach(function(e){o["x:".concat(e)]=n.callback.customValue[e]}),e.headers["x-oss-callback-var"]=t.from(JSON.stringify(o)).toString("base64")}}}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:85,"core-js/modules/es.object.keys.js":257,"core-js/modules/es.object.to-string.js":258,"core-js/modules/es.regexp.to-string.js":262,"core-js/modules/web.dom-collections.for-each.js":296}],25:[function(e,t,n){"use strict";e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js"),e("core-js/modules/web.dom-collections.for-each.js");var r=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.getReqUrl=void 0;var i=r(e("copy-to")),o=r(e("url")),a=r(e("merge-descriptors")),s=r(e("is-type-of")),l=e("../utils/isIP"),c=e("../utils/checkConfigValid");n.getReqUrl=function(e){var t={},n=this.options.cname;c.checkConfigValid(this.options.endpoint,"endpoint"),i.default(this.options.endpoint,!1).to(t),!e.bucket||n||l.isIP(t.hostname)||this.options.sldEnable||(t.host="".concat(e.bucket,".").concat(t.host));var r="/";e.bucket&&this.options.sldEnable&&(r+="".concat(e.bucket,"/")),e.object&&(r+=this._escape(e.object).replace(/\+/g,"%2B")),t.pathname=r;var u={};if(e.query&&a.default(u,e.query),e.subres){var d={};s.default.string(e.subres)?d[e.subres]="":s.default.array(e.subres)?e.subres.forEach(function(e){d[e]=""}):d=e.subres,a.default(u,d)}return t.query=u,o.default.format(t)}},{"../utils/checkConfigValid":51,"../utils/isIP":66,"copy-to":88,"core-js/modules/es.array.concat.js":241,"core-js/modules/es.regexp.exec.js":261,"core-js/modules/es.string.replace.js":266,"core-js/modules/web.dom-collections.for-each.js":296,"is-type-of":398,"merge-descriptors":315,url:404}],26:[function(e,t,n){"use strict";e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.object.assign.js"),e("core-js/modules/es.string.trim.js");var r=e("humanize-ms"),i=e("url"),o=e("../utils/checkBucketName").checkBucketName,a=e("../utils/setRegion").setRegion,s=e("../utils/checkConfigValid").checkConfigValid;t.exports=function(e){if(!e||!e.accessKeyId||!e.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");!e.stsToken||e.refreshSTSToken||e.refreshSTSTokenInterval||console.warn("It's recommended to set 'refreshSTSToken' and 'refreshSTSTokenInterval' to refresh stsToken、accessKeyId、accessKeySecret automatically when sts token has expired"),e.bucket&&o(e.bucket);var t=Object.assign({region:"oss-cn-hangzhou",internal:!1,secure:!1,timeout:6e4,bucket:null,endpoint:null,cname:!1,isRequestPay:!1,sldEnable:!1,headerEncoding:"utf-8",refreshSTSToken:null,refreshSTSTokenInterval:3e5,retryMax:0},e);if(t.accessKeyId=t.accessKeyId.trim(),t.accessKeySecret=t.accessKeySecret.trim(),t.timeout&&(t.timeout=r(t.timeout)),t.endpoint)t.endpoint=function(e,t){s(e,"endpoint");var n=i.parse(e);if(n.protocol||(n=i.parse("http".concat(t?"s":"","://").concat(e))),"http:"!==n.protocol&&"https:"!==n.protocol)throw new Error("Endpoint protocol must be http or https.");return n}(t.endpoint,t.secure);else{if(!t.region)throw new Error("require options.endpoint or options.region");t.endpoint=a(t.region,t.internal,t.secure)}return t.inited=!0,t}},{"../utils/checkBucketName":50,"../utils/checkConfigValid":51,"../utils/setRegion":71,"core-js/modules/es.array.concat.js":241,"core-js/modules/es.object.assign.js":255,"core-js/modules/es.string.trim.js":269,"humanize-ms":303,url:404}],27:[function(e,t,n){"use strict";e("merge-descriptors")(n,e("./processObjectSave"))},{"./processObjectSave":28,"merge-descriptors":315}],28:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),i=r(e("@babel/runtime/regenerator"));e("core-js/modules/es.array.concat.js");var o=r(e("@babel/runtime/helpers/asyncToGenerator")),a=e("../utils/checkBucketName").checkBucketName,s=e("querystring"),l=e("js-base64").Base64.encode;function c(e,t){if(!e)throw new Error("".concat(t," is required"));if("string"!=typeof e)throw new Error("".concat(t," must be String"))}n.processObjectSave=function(){var e=(0,o.default)(i.default.mark(function e(t,n,r,o){var u,d,f,h;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return c(t,"sourceObject"),c(n,"targetObject"),c(r,"process"),n=this._objectName(n),o&&a(o),u=this._objectRequestParams("POST",t,{subres:"x-oss-process"}),d=o?",b_".concat(l(o)):"",n=l(n),f={"x-oss-process":"".concat(r,"|sys/saveas,o_").concat(n).concat(d)},u.content=s.stringify(f),e.next=12,this.request(u);case 12:return h=e.sent,e.abrupt("return",{res:h.res,status:h.res.status});case 14:case"end":return e.stop()}},e,this)}));return function(t,n,r,i){return e.apply(this,arguments)}}()},{"../utils/checkBucketName":50,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.array.concat.js":241,"js-base64":314,querystring:328}],29:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),i=r(e("@babel/runtime/regenerator"));e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.function.name.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.promise.js"),e("core-js/modules/es.array.from.js"),e("core-js/modules/es.string.iterator.js"),e("core-js/modules/es.array.map.js"),e("core-js/modules/es.array.filter.js"),e("core-js/modules/es.array.find.js"),e("core-js/modules/es.regexp.to-string.js");var o=r(e("@babel/runtime/helpers/asyncToGenerator")),a=e("debug")("ali-oss:multipart-copy"),s=e("copy-to"),l=n;l.uploadPartCopy=function(){var e=(0,o.default)(i.default.mark(function e(t,n,r,o,a){var s,l,c,u,d,f=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(s=f.length>5&&void 0!==f[5]?f[5]:{}).headers=s.headers||{},l=s.versionId||s.subres&&s.subres.versionId||null,c=l?"/".concat(a.sourceBucketName,"/").concat(encodeURIComponent(a.sourceKey),"?versionId=").concat(l):"/".concat(a.sourceBucketName,"/").concat(encodeURIComponent(a.sourceKey)),s.headers["x-oss-copy-source"]=c,o&&(s.headers["x-oss-copy-source-range"]="bytes=".concat(o)),s.subres={partNumber:r,uploadId:n},(u=this._objectRequestParams("PUT",t,s)).mime=s.mime,u.successStatuses=[200],e.next=12,this.request(u);case 12:return d=e.sent,e.abrupt("return",{name:t,etag:d.res.headers.etag,res:d.res});case 14:case"end":return e.stop()}},e,this)}));return function(t,n,r,i,o){return e.apply(this,arguments)}}(),l.multipartUploadCopy=function(){var e=(0,o.default)(i.default.mark(function e(t,n){var r,o,a,s,l,c,u,d,f,h,p,m=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=m.length>2&&void 0!==m[2]?m[2]:{},this.resetCancelFlag(),o=r.versionId,a={versionId:void 0===o?null:o},e.next=6,this._getObjectMeta(n.sourceBucketName,n.sourceKey,a);case 6:if(s=e.sent,l=s.res.headers["content-length"],n.startOffset=n.startOffset||0,n.endOffset=n.endOffset||l,!r.checkpoint||!r.checkpoint.uploadId){e.next=14;break}return e.next=13,this._resumeMultipartCopy(r.checkpoint,n,r);case 13:return e.abrupt("return",e.sent);case 14:if(c=102400,!((u=n.endOffset-n.startOffset)<c)){e.next=18;break}throw new Error("copySize must not be smaller than ".concat(c));case 18:if(!(r.partSize&&r.partSize<c)){e.next=20;break}throw new Error("partSize must not be smaller than ".concat(c));case 20:return e.next=22,this.initMultipartUpload(t,r);case 22:if(d=e.sent,f=d.uploadId,h=this._getPartSize(u,r.partSize),p={name:t,copySize:u,partSize:h,uploadId:f,doneParts:[]},!r||!r.progress){e.next=29;break}return e.next=29,r.progress(0,p,d.res);case 29:return e.next=31,this._resumeMultipartCopy(p,n,r);case 31:return e.abrupt("return",e.sent);case 32:case"end":return e.stop()}},e,this)}));return function(t,n){return e.apply(this,arguments)}}(),l._resumeMultipartCopy=function(){var e=(0,o.default)(i.default.mark(function e(t,n,r){var l,c,u,d,f,h,p,m,y,v,g,b,_,k,w,x,C,S,A,O,j;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.isCancel()){e.next=2;break}throw this._makeCancelEvent();case 2:if(l=r.versionId,u={versionId:c=void 0===l?null:l},d=t.copySize,f=t.partSize,h=t.uploadId,p=t.doneParts,m=t.name,y=this._divideMultipartCopyParts(d,f,n.startOffset),v=y.length,g={headers:{}},r.copyheaders&&s(r.copyheaders).to(g.headers),c&&s(u).to(g),b=function(e,n,s){return new Promise(function(){var l=(0,o.default)(i.default.mark(function o(l,c){var u,d,f;return i.default.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(i.prev=0,e.isCancel()){i.next=22;break}return u=y[n-1],d="".concat(u.start,"-").concat(u.end-1),i.prev=4,i.next=7,e.uploadPartCopy(m,h,n,d,s,g);case 7:f=i.sent,i.next=15;break;case 10:if(i.prev=10,i.t0=i.catch(4),404!==i.t0.status){i.next=14;break}throw e._makeAbortEvent();case 14:throw i.t0;case 15:if(e.isCancel()){i.next=22;break}if(a("content-range ".concat(f.res.headers["content-range"])),p.push({number:n,etag:f.res.headers.etag}),t.doneParts=p,!r||!r.progress){i.next=22;break}return i.next=22,r.progress(p.length/v,t,f.res);case 22:l(),i.next=29;break;case 25:i.prev=25,i.t1=i.catch(0),i.t1.partNum=n,c(i.t1);case 29:case"end":return i.stop()}},o,null,[[0,25],[4,10]])}));return function(e,t){return l.apply(this,arguments)}}())},_=Array.from(new Array(v),function(e,t){return t+1}),k=p.map(function(e){return e.number}),w=_.filter(function(e){return k.indexOf(e)<0}),x=5,C=r.parallel||x,!this.checkBrowserAndVersion("Internet Explorer","10")&&1!==C){e.next=28;break}S=0;case 18:if(!(S<w.length)){e.next=26;break}if(!this.isCancel()){e.next=21;break}throw this._makeCancelEvent();case 21:return e.next=23,b(this,w[S],n);case 23:S++,e.next=18;break;case 26:e.next=40;break;case 28:return e.next=30,this._parallelNode(w,C,b,n);case 30:if(A=e.sent,!(O=A.find(function(e){return"abort"===e.name}))){e.next=34;break}throw O;case 34:if(!this.isCancel()){e.next=36;break}throw this._makeCancelEvent();case 36:if(!(A&&A.length>0)){e.next=40;break}throw(j=A[0]).message="Failed to copy some parts with error: ".concat(j.toString()," part_num: ").concat(j.partNum),j;case 40:return e.next=42,this.completeMultipartUpload(m,h,p,r);case 42:return e.abrupt("return",e.sent);case 43:case"end":return e.stop()}},e,this)}));return function(t,n,r){return e.apply(this,arguments)}}(),l._divideMultipartCopyParts=function(e,t,n){for(var r=Math.ceil(e/t),i=[],o=0;o<r;o++){var a=t*o+n,s=Math.min(a+t,e+n);i.push({start:a,end:s})}return i},l._getObjectMeta=function(){var e=(0,o.default)(i.default.mark(function e(t,n,r){var o,a;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o=this.getBucket(),this.setBucket(t),e.next=4,this.head(n,r);case 4:return a=e.sent,this.setBucket(o),e.abrupt("return",a);case 7:case"end":return e.stop()}},e,this)}));return function(t,n,r){return e.apply(this,arguments)}}()},{"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"copy-to":88,"core-js/modules/es.array.concat.js":241,"core-js/modules/es.array.filter.js":243,"core-js/modules/es.array.find.js":244,"core-js/modules/es.array.from.js":245,"core-js/modules/es.array.map.js":249,"core-js/modules/es.function.name.js":253,"core-js/modules/es.object.to-string.js":258,"core-js/modules/es.promise.js":259,"core-js/modules/es.regexp.to-string.js":262,"core-js/modules/es.string.iterator.js":264,debug:397}],30:[function(e,t,n){(function(t){(function(){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),i=r(e("@babel/runtime/regenerator"));e("core-js/modules/es.array.map.js"),e("core-js/modules/es.array.filter.js"),e("core-js/modules/es.array.sort.js"),e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.regexp.to-string.js");var o=r(e("@babel/runtime/helpers/asyncToGenerator")),a=e("copy-to"),s=e("./callback"),l=e("./utils/deepCopy").deepCopyWith,c=e("./utils/isBuffer").isBuffer,u=n;u.listUploads=function(){var e=(0,o.default)(i.default.mark(function e(t,n){var r,o,s,l;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r={},a(n=n||{}).to(r),r.subres="uploads",(o=this._objectRequestParams("GET","",r)).query=t,o.xmlResponse=!0,o.successStatuses=[200],e.next=10,this.request(o);case 10:return s=e.sent,l=s.data.Upload||[],Array.isArray(l)||(l=[l]),l=l.map(function(e){return{name:e.Key,uploadId:e.UploadId,initiated:e.Initiated}}),e.abrupt("return",{res:s.res,uploads:l,bucket:s.data.Bucket,nextKeyMarker:s.data.NextKeyMarker,nextUploadIdMarker:s.data.NextUploadIdMarker,isTruncated:"true"===s.data.IsTruncated});case 15:case"end":return e.stop()}},e,this)}));return function(t,n){return e.apply(this,arguments)}}(),u.listParts=function(){var e=(0,o.default)(i.default.mark(function e(t,n,r,o){var s,l,c;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return s={},a(o=o||{}).to(s),s.subres={uploadId:n},(l=this._objectRequestParams("GET",t,s)).query=r,l.xmlResponse=!0,l.successStatuses=[200],e.next=10,this.request(l);case 10:return c=e.sent,e.abrupt("return",{res:c.res,uploadId:c.data.UploadId,bucket:c.data.Bucket,name:c.data.Key,partNumberMarker:c.data.PartNumberMarker,nextPartNumberMarker:c.data.NextPartNumberMarker,maxParts:c.data.MaxParts,isTruncated:c.data.IsTruncated,parts:c.data.Part||[]});case 12:case"end":return e.stop()}},e,this)}));return function(t,n,r,i){return e.apply(this,arguments)}}(),u.abortMultipartUpload=function(){var e=(0,o.default)(i.default.mark(function e(t,n,r){var o,s,l;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this._stop(),o={},a(r=r||{}).to(o),o.subres={uploadId:n},(s=this._objectRequestParams("DELETE",t,o)).successStatuses=[204],e.next=9,this.request(s);case 9:return l=e.sent,e.abrupt("return",{res:l.res});case 11:case"end":return e.stop()}},e,this)}));return function(t,n,r){return e.apply(this,arguments)}}(),u.initMultipartUpload=function(){var e=(0,o.default)(i.default.mark(function e(t,n){var r,o,s;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r={},a(n=n||{}).to(r),r.headers=r.headers||{},this._convertMetaToHeaders(n.meta,r.headers),r.subres="uploads",(o=this._objectRequestParams("POST",t,r)).mime=n.mime,o.xmlResponse=!0,o.successStatuses=[200],e.next=12,this.request(o);case 12:return s=e.sent,e.abrupt("return",{res:s.res,bucket:s.data.Bucket,name:s.data.Key,uploadId:s.data.UploadId});case 14:case"end":return e.stop()}},e,this)}));return function(t,n){return e.apply(this,arguments)}}(),u.uploadPart=function(){var e=(0,o.default)(i.default.mark(function e(n,r,o,a,s,l,c){var u;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(u={size:l-s},!(t&&t.browser)){e.next=8;break}return e.next=5,this._createBuffer(a,s,l);case 5:u.content=e.sent,e.next=11;break;case 8:return e.next=10,this._createStream(a,s,l);case 10:u.stream=e.sent;case 11:return e.next=13,this._uploadPart(n,r,o,u,c);case 13:return e.abrupt("return",e.sent);case 14:case"end":return e.stop()}},e,this)}));return function(t,n,r,i,o,a,s){return e.apply(this,arguments)}}(),u.completeMultipartUpload=function(){var e=(0,o.default)(i.default.mark(function e(t,n,r,o){var a,u,d,f,h,p,m,y;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(a=r.concat().sort(function(e,t){return e.number-t.number}).filter(function(e,t,n){return!t||e.number!==n[t-1].number}),u='<?xml version="1.0" encoding="UTF-8"?>\n<CompleteMultipartUpload>\n',d=0;d<a.length;d++)f=a[d],u+="<Part>\n",u+="<PartNumber>".concat(f.number,"</PartNumber>\n"),u+="<ETag>".concat(f.etag,"</ETag>\n"),u+="</Part>\n";return u+="</CompleteMultipartUpload>",h={},(h=l(o=o||{},function(e){if(c(e))return null})).headers&&delete h.headers["x-oss-server-side-encryption"],h.subres={uploadId:n},p=this._objectRequestParams("POST",t,h),s.encodeCallback(p,h),p.mime="xml",p.content=u,p.headers&&p.headers["x-oss-callback"]||(p.xmlResponse=!0),p.successStatuses=[200],e.next=17,this.request(p);case 17:return m=e.sent,y={res:m.res,bucket:p.bucket,name:t,etag:m.res.headers.etag},p.headers&&p.headers["x-oss-callback"]&&(y.data=JSON.parse(m.data.toString())),e.abrupt("return",y);case 21:case"end":return e.stop()}},e,this)}));return function(t,n,r,i){return e.apply(this,arguments)}}(),u._uploadPart=function(){var e=(0,o.default)(i.default.mark(function e(n,r,o,s,l){var c,u,d;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return c={},a(l=l||{}).to(c),c.headers={"Content-Length":s.size},c.subres={partNumber:o,uploadId:r},(u=this._objectRequestParams("PUT",n,c)).mime=c.mime,t&&t.browser?u.content=s.content:u.stream=s.stream,u.successStatuses=[200],u.disabledMD5=l.disabledMD5,e.next=13,this.request(u);case 13:if((d=e.sent).res.headers.etag){e.next=16;break}throw new Error("Please set the etag of expose-headers in OSS \n https://help.aliyun.com/document_detail/32069.html");case 16:return s.stream&&(s.stream=null,u.stream=null),e.abrupt("return",{name:n,etag:d.res.headers.etag,res:d.res});case 18:case"end":return e.stop()}},e,this)}));return function(t,n,r,i,o){return e.apply(this,arguments)}}()}).call(this)}).call(this,e("_process"))},{"./callback":24,"./utils/deepCopy":56,"./utils/isBuffer":63,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,_process:399,"copy-to":88,"core-js/modules/es.array.concat.js":241,"core-js/modules/es.array.filter.js":243,"core-js/modules/es.array.map.js":249,"core-js/modules/es.array.sort.js":251,"core-js/modules/es.object.to-string.js":258,"core-js/modules/es.regexp.to-string.js":262}],31:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),i=r(e("@babel/runtime/regenerator"));e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js"),e("core-js/modules/es.array.find.js"),e("core-js/modules/es.array.includes.js"),e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js");var o=r(e("@babel/runtime/helpers/typeof")),a=r(e("@babel/runtime/helpers/asyncToGenerator")),s=e("../utils/checkBucketName").checkBucketName,l=n,c=["content-type","content-encoding","content-language","content-disposition","cache-control","expires"];l.copy=function(){var e=(0,a.default)(i.default.mark(function e(t,n,r,a){var s,l,u;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return"object"===(0,o.default)(r)&&(a=r),(a=a||{}).headers=a.headers||{},Object.keys(a.headers).forEach(function(e){a.headers["x-oss-copy-source-".concat(e.toLowerCase())]=a.headers[e]}),(a.meta||Object.keys(a.headers).find(function(e){return c.includes(e.toLowerCase())}))&&(a.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(a.meta,a.headers),n=this._getSourceName(n,r),a.versionId&&(n="".concat(n,"?versionId=").concat(a.versionId)),a.headers["x-oss-copy-source"]=n,(s=this._objectRequestParams("PUT",t,a)).xmlResponse=!0,s.successStatuses=[200,304],e.next=14,this.request(s);case 14:return l=e.sent,(u=l.data)&&(u={etag:u.ETag,lastModified:u.LastModified}),e.abrupt("return",{data:u,res:l.res});case 18:case"end":return e.stop()}},e,this)}));return function(t,n,r,i){return e.apply(this,arguments)}}(),l._getSourceName=function(e,t){return"string"==typeof t?e=this._objectName(e):"/"!==e[0]?t=this.options.bucket:(t=e.replace(/\/(.+?)(\/.*)/,"$1"),e=e.replace(/(\/.+?\/)(.*)/,"$2")),s(t),e=encodeURIComponent(e),e="/".concat(t,"/").concat(e)}},{"../utils/checkBucketName":50,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/helpers/typeof":75,"@babel/runtime/regenerator":76,"core-js/modules/es.array.concat.js":241,"core-js/modules/es.array.find.js":244,"core-js/modules/es.array.includes.js":246,"core-js/modules/es.object.keys.js":257,"core-js/modules/es.regexp.exec.js":261,"core-js/modules/es.string.replace.js":266,"core-js/modules/web.dom-collections.for-each.js":296}],32:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),i=r(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var o=r(e("@babel/runtime/helpers/asyncToGenerator"));n.delete=function(){var e=(0,o.default)(i.default.mark(function e(t){var n,r,o,a=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(n=a.length>1&&void 0!==a[1]?a[1]:{}).subres=Object.assign({},n.subres),n.versionId&&(n.subres.versionId=n.versionId),(r=this._objectRequestParams("DELETE",t,n)).successStatuses=[204],e.next=7,this.request(r);case 7:return o=e.sent,e.abrupt("return",{res:o.res});case 9:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()},{"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.object.assign.js":255}],33:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),i=r(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var o=r(e("@babel/runtime/helpers/asyncToGenerator")),a=e("utility"),s=e("../utils/obj2xml").obj2xml;n.deleteMulti=function(){var e=(0,o.default)(i.default.mark(function e(t){var n,r,o,l,c,u,d,f,h,p,m,y,v,g=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=g.length>1&&void 0!==g[1]?g[1]:{},r=[],t&&t.length){e.next=4;break}throw new Error("names is required");case 4:for(o=0;o<t.length;o++)l={},"string"==typeof t[o]?l.Key=a.escape(this._objectName(t[o])):(c=t[o],u=c.key,d=c.versionId,l.Key=a.escape(this._objectName(u)),l.VersionId=d),r.push(l);return f={Delete:{Quiet:!!n.quiet,Object:r}},h=s(f,{headers:!0}),n.subres=Object.assign({delete:""},n.subres),n.versionId&&(n.subres.versionId=n.versionId),(p=this._objectRequestParams("POST","",n)).mime="xml",p.content=h,p.xmlResponse=!0,p.successStatuses=[200],e.next=16,this.request(p);case 16:return m=e.sent,y=m.data,(v=y&&y.Deleted||null)&&(Array.isArray(v)||(v=[v])),e.abrupt("return",{res:m.res,deleted:v||[]});case 21:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()},{"../utils/obj2xml":69,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.object.assign.js":255,utility:406}],34:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),i=r(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var o=r(e("@babel/runtime/helpers/asyncToGenerator"));n.deleteObjectTagging=function(){var e=(0,o.default)(i.default.mark(function e(t){var n,r,o,a=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(n=a.length>1&&void 0!==a[1]?a[1]:{}).subres=Object.assign({tagging:""},n.subres),n.versionId&&(n.subres.versionId=n.versionId),t=this._objectName(t),(r=this._objectRequestParams("DELETE",t,n)).successStatuses=[204],e.next=8,this.request(r);case 8:return o=e.sent,e.abrupt("return",{status:o.status,res:o.res});case 10:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()},{"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.object.assign.js":255}],35:[function(e,t,n){"use strict";e("core-js/modules/es.array.concat.js");var r=e("url"),i=e("../utils/isIP").isIP;n.generateObjectUrl=function(e,t){if(i(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");if(t)"/"!==t[t.length-1]&&(t+="/");else{t=this.options.endpoint.format();var n=r.parse(t),o=this.options.bucket;n.hostname="".concat(o,".").concat(n.hostname),n.host="".concat(o,".").concat(n.host),t=n.format()}return t+this._escape(this._objectName(e))}},{"../utils/isIP":66,"core-js/modules/es.array.concat.js":241,url:404}],36:[function(e,t,n){(function(t){(function(){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),i=r(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var o=r(e("@babel/runtime/helpers/asyncToGenerator")),a=e("fs"),s=e("is-type-of");n.get=function(){var e=(0,o.default)(i.default.mark(function e(n,r){var o,l,c,u,d,f,h,p,m=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o=m.length>2&&void 0!==m[2]?m[2]:{},l=null,c=!1,s.writableStream(r)?l=r:s.string(r)?(l=a.createWriteStream(r),c=!0):o=r,o=o||{},u=t&&t.browser,d=null===o.responseCacheControl?"":"no-cache",f=u&&d?{"response-cache-control":d}:{},o.subres=Object.assign(f,o.subres),o.versionId&&(o.subres.versionId=o.versionId),o.process&&(o.subres["x-oss-process"]=o.process),e.prev=11,(p=this._objectRequestParams("GET",n,o)).writeStream=l,p.successStatuses=[200,206,304],e.next=17,this.request(p);case 17:h=e.sent,c&&l.destroy(),e.next=28;break;case 21:if(e.prev=21,e.t0=e.catch(11),!c){e.next=27;break}return l.destroy(),e.next=27,this._deleteFileSafe(r);case 27:throw e.t0;case 28:return e.abrupt("return",{res:h.res,content:h.data});case 29:case"end":return e.stop()}},e,this,[[11,21]])}));return function(t,n){return e.apply(this,arguments)}}()}).call(this)}).call(this,e("_process"))},{"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,_process:399,"core-js/modules/es.object.assign.js":255,fs:84,"is-type-of":398}],37:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),i=r(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var o=r(e("@babel/runtime/helpers/asyncToGenerator"));n.getACL=function(){var e=(0,o.default)(i.default.mark(function e(t){var n,r,o,a=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(n=a.length>1&&void 0!==a[1]?a[1]:{}).subres=Object.assign({acl:""},n.subres),n.versionId&&(n.subres.versionId=n.versionId),t=this._objectName(t),(r=this._objectRequestParams("GET",t,n)).successStatuses=[200],r.xmlResponse=!0,e.next=9,this.request(r);case 9:return o=e.sent,e.abrupt("return",{acl:o.data.AccessControlList.Grant,owner:{id:o.data.Owner.ID,displayName:o.data.Owner.DisplayName},res:o.res});case 11:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()},{"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.object.assign.js":255}],38:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),i=r(e("@babel/runtime/regenerator"));e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js"),e("core-js/modules/es.object.assign.js"),e("core-js/modules/es.array.map.js"),e("core-js/modules/es.number.constructor.js");var o=r(e("@babel/runtime/helpers/asyncToGenerator")),a=n,s=e("../utils/isObject").isObject,l=e("../utils/isArray").isArray;function c(){return u.apply(this,arguments)}function u(){return(u=(0,o.default)(i.default.mark(function e(){var t,n,r,o,a,s,c,u,f=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=f.length>0&&void 0!==f[0]?f[0]:{},n=f.length>1&&void 0!==f[1]?f[1]:{},!t.versionIdMarker||void 0!==t.keyMarker){e.next=4;break}throw new Error("A version-id marker cannot be specified without a key marker");case 4:return n.subres=Object.assign({versions:""},n.subres),n.versionId&&(n.subres.versionId=n.versionId),(r=this._objectRequestParams("GET","",n)).xmlResponse=!0,r.successStatuses=[200],r.query=d(t),e.next=12,this.request(r);case 12:return o=e.sent,a=o.data.Version||[],s=o.data.DeleteMarker||[],c=this,a&&(Array.isArray(a)||(a=[a]),a=a.map(function(e){return{name:e.Key,url:c._objectUrl(e.Key),lastModified:e.LastModified,isLatest:"true"===e.IsLatest,versionId:e.VersionId,etag:e.ETag,type:e.Type,size:Number(e.Size),storageClass:e.StorageClass,owner:{id:e.Owner.ID,displayName:e.Owner.DisplayName}}})),s&&(l(s)||(s=[s]),s=s.map(function(e){return{name:e.Key,lastModified:e.LastModified,versionId:e.VersionId,owner:{id:e.Owner.ID,displayName:e.Owner.DisplayName}}})),(u=o.data.CommonPrefixes||null)&&(l(u)||(u=[u]),u=u.map(function(e){return e.Prefix})),e.abrupt("return",{res:o.res,objects:a,deleteMarker:s,prefixes:u,nextMarker:o.data.NextKeyMarker||null,NextVersionIdMarker:o.data.NextVersionIdMarker||null,nextKeyMarker:o.data.NextKeyMarker||null,nextVersionIdMarker:o.data.NextVersionIdMarker||null,isTruncated:"true"===o.data.IsTruncated});case 21:case"end":return e.stop()}},e,this)}))).apply(this,arguments)}function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={};return s(e)&&Object.keys(e).forEach(function(n){t[function(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}(n)]=e[n]}),t}a.getBucketVersions=c,a.listObjectVersions=c},{"../utils/isArray":61,"../utils/isObject":67,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.array.map.js":249,"core-js/modules/es.number.constructor.js":254,"core-js/modules/es.object.assign.js":255,"core-js/modules/es.object.keys.js":257,"core-js/modules/es.regexp.exec.js":261,"core-js/modules/es.string.replace.js":266,"core-js/modules/web.dom-collections.for-each.js":296}],39:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),i=r(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var o=r(e("@babel/runtime/helpers/asyncToGenerator"));n.getObjectMeta=function(){var e=(0,o.default)(i.default.mark(function e(t,n){var r,o;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=n||{},t=this._objectName(t),n.subres=Object.assign({objectMeta:""},n.subres),n.versionId&&(n.subres.versionId=n.versionId),(r=this._objectRequestParams("HEAD",t,n)).successStatuses=[200],e.next=8,this.request(r);case 8:return o=e.sent,e.abrupt("return",{status:o.status,res:o.res});case 10:case"end":return e.stop()}},e,this)}));return function(t,n){return e.apply(this,arguments)}}()},{"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.object.assign.js":255}],40:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),i=r(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js"),e("core-js/modules/web.dom-collections.for-each.js");var o=r(e("@babel/runtime/helpers/asyncToGenerator")),a=n,s=e("../utils/isObject").isObject;a.getObjectTagging=function(){var e=(0,o.default)(i.default.mark(function e(t){var n,r,o,a,l,c,u=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(n=u.length>1&&void 0!==u[1]?u[1]:{}).subres=Object.assign({tagging:""},n.subres),n.versionId&&(n.subres.versionId=n.versionId),t=this._objectName(t),(r=this._objectRequestParams("GET",t,n)).successStatuses=[200],e.next=8,this.request(r);case 8:return o=e.sent,e.next=11,this.parseXML(o.data);case 11:return a=e.sent,l=(l=a.TagSet.Tag)&&s(l)?[l]:l||[],c={},l.forEach(function(e){c[e.Key]=e.Value}),e.abrupt("return",{status:o.status,res:o.res,tag:c});case 17:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()},{"../utils/isObject":67,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.object.assign.js":255,"core-js/modules/web.dom-collections.for-each.js":296}],41:[function(e,t,n){"use strict";var r=e("../utils/isIP").isIP;n.getObjectUrl=function(e,t){if(r(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");return t?"/"!==t[t.length-1]&&(t+="/"):t=this.options.endpoint.format(),t+this._escape(this._objectName(e))}},{"../utils/isIP":66}],42:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),i=r(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var o=r(e("@babel/runtime/helpers/asyncToGenerator"));n.getSymlink=function(){var e=(0,o.default)(i.default.mark(function e(t){var n,r,o,a,s=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(n=s.length>1&&void 0!==s[1]?s[1]:{}).subres=Object.assign({symlink:""},n.subres),n.versionId&&(n.subres.versionId=n.versionId),t=this._objectName(t),(r=this._objectRequestParams("GET",t,n)).successStatuses=[200],e.next=8,this.request(r);case 8:return o=e.sent,a=o.res.headers["x-oss-symlink-target"],e.abrupt("return",{targetName:decodeURIComponent(a),res:o.res});case 11:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()},{"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.object.assign.js":255}],43:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),i=r(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js");var o=r(e("@babel/runtime/helpers/asyncToGenerator"));n.head=function(){var e=(0,o.default)(i.default.mark(function e(t){var n,r,o,a,s=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(n=s.length>1&&void 0!==s[1]?s[1]:{}).subres=Object.assign({},n.subres),n.versionId&&(n.subres.versionId=n.versionId),(r=this._objectRequestParams("HEAD",t,n)).successStatuses=[200,304],e.next=7,this.request(r);case 7:return o=e.sent,a={meta:null,res:o.res,status:o.status},200===o.status&&Object.keys(o.headers).forEach(function(e){0===e.indexOf("x-oss-meta-")&&(a.meta||(a.meta={}),a.meta[e.substring(11)]=o.headers[e])}),e.abrupt("return",a);case 11:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()},{"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.object.assign.js":255,"core-js/modules/es.object.keys.js":257,"core-js/modules/web.dom-collections.for-each.js":296}],44:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),i=r(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var o=r(e("@babel/runtime/helpers/asyncToGenerator"));n.putACL=function(){var e=(0,o.default)(i.default.mark(function e(t,n,r){var o,a;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(r=r||{}).subres=Object.assign({acl:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),r.headers=r.headers||{},r.headers["x-oss-object-acl"]=n,t=this._objectName(t),(o=this._objectRequestParams("PUT",t,r)).successStatuses=[200],e.next=10,this.request(o);case 10:return a=e.sent,e.abrupt("return",{res:a.res});case 12:case"end":return e.stop()}},e,this)}));return function(t,n,r){return e.apply(this,arguments)}}()},{"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.object.assign.js":255}],45:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),i=r(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js"),e("core-js/modules/es.array.map.js"),e("core-js/modules/es.object.keys.js");var o=r(e("@babel/runtime/helpers/asyncToGenerator")),a=e("../utils/obj2xml").obj2xml,s=e("../utils/checkObjectTag").checkObjectTag;n.putObjectTagging=function(){var e=(0,o.default)(i.default.mark(function e(t,n){var r,o,l,c,u=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=u.length>2&&void 0!==u[2]?u[2]:{},s(n),r.subres=Object.assign({tagging:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),t=this._objectName(t),(o=this._objectRequestParams("PUT",t,r)).successStatuses=[200],n=Object.keys(n).map(function(e){return{Key:e,Value:n[e]}}),l={Tagging:{TagSet:{Tag:n}}},o.mime="xml",o.content=a(l),e.next=13,this.request(o);case 13:return c=e.sent,e.abrupt("return",{res:c.res,status:c.status});case 15:case"end":return e.stop()}},e,this)}));return function(t,n){return e.apply(this,arguments)}}()},{"../utils/checkObjectTag":52,"../utils/obj2xml":69,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.array.map.js":249,"core-js/modules/es.object.assign.js":255,"core-js/modules/es.object.keys.js":257}],46:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),i=r(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var o=r(e("@babel/runtime/helpers/asyncToGenerator"));n.putSymlink=function(){var e=(0,o.default)(i.default.mark(function e(t,n,r){var o,a;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(r=r||{}).headers=r.headers||{},n=this._escape(this._objectName(n)),this._convertMetaToHeaders(r.meta,r.headers),r.headers["x-oss-symlink-target"]=n,r.subres=Object.assign({symlink:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),r.storageClass&&(r.headers["x-oss-storage-class"]=r.storageClass),t=this._objectName(t),(o=this._objectRequestParams("PUT",t,r)).successStatuses=[200],e.next=13,this.request(o);case 13:return a=e.sent,e.abrupt("return",{res:a.res});case 15:case"end":return e.stop()}},e,this)}));return function(t,n,r){return e.apply(this,arguments)}}()},{"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.object.assign.js":255}],47:[function(e,t,n){"use strict";e("core-js/modules/es.object.assign.js");var r=e("url"),i=e("utility"),o=e("copy-to"),a=e("../../common/signUtils"),s=e("../utils/isIP").isIP,l=e("../../common/utils/isFunction").isFunction,c=e("../utils/setSTSToken").checkCredentials,u=e("../utils/formatObjKey").formatObjKey;n.signatureUrl=function(e,t){var n=this;if(s(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");t=t||{},e=this._objectName(e),t.method=t.method||"GET";var d=i.timestamp()+(t.expires||1800),f={bucket:this.options.bucket,object:e},h=this._getResource(f);if(this.options.stsToken&&l(this.options.refreshSTSToken)){var p=new Date;this.stsTokenFreshTime>=this.options.refreshSTSTokenInterval?(this.stsTokenFreshTime=p,this.options.refreshSTSToken().then(function(e){var t=u(e,"firstLowerCase");t.securityToken&&(t.stsToken=t.securityToken),c(t),Object.assign(n.options,t)})):this.stsTokenFreshTime=p}this.options.stsToken&&(t["security-token"]=this.options.stsToken);var m=a._signatureForURL(this.options.accessKeySecret,t,h,d),y=r.parse(this._getReqUrl(f));return y.query={OSSAccessKeyId:this.options.accessKeyId,Expires:d,Signature:m.Signature},o(m.subResource).to(y.query),y.format()}},{"../../common/signUtils":49,"../../common/utils/isFunction":65,"../utils/formatObjKey":59,"../utils/isIP":66,"../utils/setSTSToken":72,"copy-to":88,"core-js/modules/es.object.assign.js":255,url:404,utility:406}],48:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),i=r(e("@babel/runtime/regenerator"));e("core-js/modules/es.array.iterator.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.promise.js"),e("core-js/modules/es.string.iterator.js"),e("core-js/modules/web.dom-collections.iterator.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.function.name.js");var o=r(e("@babel/runtime/helpers/asyncToGenerator")),a=e("./utils/isArray").isArray,s=n;s._parallelNode=function(){var e=(0,o.default)(i.default.mark(function e(t,n,r,o){var a,s,l,c,u,d,f,h;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:a=this,s=[],l=[],c=t.length/n,u=t.length%n,d=0===u?c:(t.length-u)/n+1,f=1,h=0;case 8:if(!(h<t.length)){e.next=26;break}if(!a.isCancel()){e.next=11;break}return e.abrupt("break",26);case 11:if(o?l.push(r(a,t[h],o)):l.push(r(a,t[h])),l.length!==n&&(f!==d||h!==t.length-1)){e.next=23;break}return e.prev=13,f+=1,e.next=17,Promise.all(l);case 17:e.next=22;break;case 19:e.prev=19,e.t0=e.catch(13),s.push(e.t0);case 22:l=[];case 23:h++,e.next=8;break;case 26:return e.abrupt("return",s);case 27:case"end":return e.stop()}},e,this,[[13,19]])}));return function(t,n,r,i){return e.apply(this,arguments)}}(),s._parallel=function(e,t,n){var r=this;return new Promise(function(i){var o=[];if(t<=0||!e)i(o);else{var a=function(e){var t=-1,n=e.length;return function(){return++t<n&&!r.isCancel()?{value:e[t],key:t}:null}}(e),s=!1,l=0,c=!1;h()}function u(e){return function(){if(null===e)throw new Error("Callback was already called.");var t=e;e=null;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];t.apply(this,r)}}function d(e,t){l-=1,e?(s=!0,o.push(e),i(o)):t==={}||s&&l<=0?(s=!0,i(o)):c||(r.isCancel()?i(o):h())}function f(e,t){n(e).then(function(e){t(null,e)}).catch(function(e){t(e)})}function h(){for(c=!0;l<t&&!s&&!r.isCancel();){var e=a();if(null===e||o.length>0)return s=!0,void(l<=0&&i(o));l+=1,f(e.value,u(d))}c=!1}})},s.cancel=function(e){this.options.cancelFlag=!0,a(this.multipartUploadStreams)&&this.multipartUploadStreams.forEach(function(e){if(!1===e.destroyed){e.destroy({name:"cancel",message:"cancel"})}}),this.multipartUploadStreams=[],e&&this.abortMultipartUpload(e.name,e.uploadId,e.options)},s.isCancel=function(){return this.options.cancelFlag},s.resetCancelFlag=function(){this.options.cancelFlag=!1},s._stop=function(){this.options.cancelFlag=!0},s._makeCancelEvent=function(){return{status:0,name:"cancel"}},s._makeAbortEvent=function(){return{status:0,name:"abort",message:"upload task has been abort"}}},{"./utils/isArray":61,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.array.iterator.js":247,"core-js/modules/es.function.name.js":253,"core-js/modules/es.object.to-string.js":258,"core-js/modules/es.promise.js":259,"core-js/modules/es.string.iterator.js":264,"core-js/modules/web.dom-collections.for-each.js":296,"core-js/modules/web.dom-collections.iterator.js":297}],49:[function(e,t,n){(function(t){(function(){"use strict";e("core-js/modules/es.string.trim.js"),e("core-js/modules/es.array.sort.js"),e("core-js/modules/es.array.join.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js"),e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.regexp.to-string.js");var r=e("./../../shims/crypto/crypto.js"),i=e("is-type-of"),o=e("./utils/lowercaseKeyHeader").lowercaseKeyHeader;n.buildCanonicalizedResource=function(e,t){var n="".concat(e),r="?";if(i.string(t)&&""!==t.trim())n+=r+t;else if(i.array(t))t.sort(),n+=r+t.join("&");else if(t){Object.keys(t).sort(function(e,t){return e[0]>t[0]?1:e[0]<t[0]?-1:0}).forEach(function(e){n+=r+e,(t[e]||0===t[e])&&(n+="=".concat(t[e])),r="&"})}return n},n.buildCanonicalString=function(e,t,n,r){var i=o((n=n||{}).headers),a=[],s={},l=[e.toUpperCase(),i["content-md5"]||"",i["content-type"],r||i["x-oss-date"]];return Object.keys(i).forEach(function(e){var t=e.toLowerCase();0===t.indexOf("x-oss-")&&(s[t]=String(i[e]).trim())}),Object.keys(s).sort().forEach(function(e){a.push("".concat(e,":").concat(s[e]))}),(l=l.concat(a)).push(this.buildCanonicalizedResource(t,n.parameters)),l.join("\n")},n.computeSignature=function(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"utf-8";return r.createHmac("sha1",e).update(t.from(n,i)).digest("base64")},n.authorization=function(e,t,n,r){return"OSS ".concat(e,":").concat(this.computeSignature(t,n,r))},n._signatureForURL=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,a={},s=n.subResource,l=void 0===s?{}:s;if(n.process){l["x-oss-process"]=n.process}if(n.trafficLimit){l["x-oss-traffic-limit"]=n.trafficLimit}if(n.response&&Object.keys(n.response).forEach(function(e){var t="response-".concat(e.toLowerCase());l[t]=n.response[e]}),Object.keys(n).forEach(function(e){var t=e.toLowerCase(),r=n[e];0===t.indexOf("x-oss-")?a[t]=r:0===t.indexOf("content-md5")?a[e]=r:0===t.indexOf("content-type")&&(a[e]=r)}),Object.prototype.hasOwnProperty.call(n,"security-token")&&(l["security-token"]=n["security-token"]),Object.prototype.hasOwnProperty.call(n,"callback")){var c={callbackUrl:encodeURI(n.callback.url),callbackBody:n.callback.body};if(n.callback.host&&(c.callbackHost=n.callback.host),n.callback.contentType&&(c.callbackBodyType=n.callback.contentType),l.callback=t.from(JSON.stringify(c)).toString("base64"),n.callback.customValue){var u={};Object.keys(n.callback.customValue).forEach(function(e){u["x:".concat(e)]=n.callback.customValue[e]}),l["callback-var"]=t.from(JSON.stringify(u)).toString("base64")}}var d=this.buildCanonicalString(n.method,r,{headers:a,parameters:l},i.toString());return{Signature:this.computeSignature(e,d,o),subResource:l}}}).call(this)}).call(this,e("buffer").Buffer)},{"./../../shims/crypto/crypto.js":393,"./utils/lowercaseKeyHeader":68,buffer:85,"core-js/modules/es.array.concat.js":241,"core-js/modules/es.array.join.js":248,"core-js/modules/es.array.sort.js":251,"core-js/modules/es.object.keys.js":257,"core-js/modules/es.object.to-string.js":258,"core-js/modules/es.regexp.to-string.js":262,"core-js/modules/es.string.trim.js":269,"core-js/modules/web.dom-collections.for-each.js":296,"is-type-of":398}],50:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.checkBucketName=void 0,n.checkBucketName=function(e){if(!(arguments.length>1&&void 0!==arguments[1]&&arguments[1]?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/).test(e))throw new Error("The bucket must be conform to the specifications")}},{}],51:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.checkConfigValid=void 0;var r={endpoint:function(e){if("string"==typeof e)return/^[a-zA-Z0-9._:/-]+$/.test(e);if(e.host)return/^[a-zA-Z0-9._:/-]+$/.test(e.host);return!1},region:/^[a-zA-Z0-9\-_]+$/};n.checkConfigValid=function(e,t){if(r[t]){if(!(r[t]instanceof Function?r[t](e):r[t].test(e)))throw new Error("The ".concat(t," must be conform to the specifications"))}}},{}],52:[function(e,t,n){"use strict";e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.object.entries.js"),e("core-js/modules/web.dom-collections.for-each.js"),Object.defineProperty(n,"__esModule",{value:!0}),n.checkObjectTag=void 0;var r=e("./checkValid").checkValid,i=e("./isObject").isObject,o=[{validator:function(e){if("string"!=typeof e)throw new Error("the key and value of the tag must be String")}},{pattern:/^[a-zA-Z0-9 +-=._:/]+$/,msg:"tag can contain letters, numbers, spaces, and the following symbols: plus sign (+), hyphen (-), equal sign (=), period (.), underscore (_), colon (:), and forward slash (/)"}],a={key:[].concat(o,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(o,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};n.checkObjectTag=function(e){if(!i(e))throw new Error("tag must be Object");var t=Object.entries(e);if(t.length>10)throw new Error("maximum of 10 tags for a object");var n=["key","value"];t.forEach(function(e){e.forEach(function(e,t){r(e,a[n[t]])})})}},{"./checkValid":53,"./isObject":67,"core-js/modules/es.array.concat.js":241,"core-js/modules/es.object.entries.js":256,"core-js/modules/web.dom-collections.for-each.js":296}],53:[function(e,t,n){"use strict";e("core-js/modules/web.dom-collections.for-each.js"),Object.defineProperty(n,"__esModule",{value:!0}),n.checkValid=void 0,n.checkValid=function(e,t){t.forEach(function(t){if(t.validator)t.validator(e);else if(t.pattern&&!t.pattern.test(e))throw new Error(t.msg)})}},{"core-js/modules/web.dom-collections.for-each.js":296}],54:[function(e,t,n){(function(t){(function(){"use strict";e("core-js/modules/es.array.includes.js"),e("core-js/modules/es.string.includes.js"),e("core-js/modules/es.object.assign.js"),e("core-js/modules/es.array.concat.js"),Object.defineProperty(n,"__esModule",{value:!0}),n.createRequest=void 0;var r=e("./../../../shims/crypto/crypto.js"),i=e("debug")("ali-oss"),o=e("mime"),a=e("dateformat"),s=e("copy-to"),l=e("path"),c=e("./encoder").encoder,u=e("./isIP").isIP,d=e("./setRegion").setRegion,f=e("../client/getReqUrl").getReqUrl;function h(e,t){return e[t]||e[t.toLowerCase()]}n.createRequest=function(e){var n=new Date;this.options.amendTimeSkewed&&(n=+new Date+this.options.amendTimeSkewed);var p={"x-oss-date":a(n,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'")};"undefined"!=typeof window&&(p["x-oss-user-agent"]=this.userAgent),this.userAgent.includes("nodejs")&&(p["User-Agent"]=this.userAgent),this.options.isRequestPay&&Object.assign(p,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(p["x-oss-security-token"]=this.options.stsToken),s(e.headers).to(p),h(p,"Content-Type")||(e.mime&&e.mime.indexOf("/")>0?p["Content-Type"]=e.mime:p["Content-Type"]=o.getType(e.mime||l.extname(e.object||""))),h(p,"Content-Type")||function(e,t){delete e[t],delete e[t.toLowerCase()]}(p,"Content-Type"),e.content&&(e.disabledMD5||(p["Content-MD5"]=r.createHash("md5").update(t.from(e.content,"utf8")).digest("base64")),p["Content-Length"]||(p["Content-Length"]=e.content.length));var m=Object.prototype.hasOwnProperty;for(var y in p)p[y]&&m.call(p,y)&&(p[y]=c(String(p[y]),this.options.headerEncoding));var v=this._getResource(e);if(p.authorization=this.authorization(e.method,v,e.subres,p,this.options.headerEncoding),u(this.options.endpoint.hostname)){var g=this.options,b=g.region,_=g.internal,k=g.secure,w=d(b,_,k);p.host="".concat(e.bucket,".").concat(w.host)}var x=f.bind(this)(e);i("request %s %s, with headers %j, !!stream: %s",e.method,x,p,!!e.stream);var C=e.timeout||this.options.timeout,S={method:e.method,content:e.content,stream:e.stream,headers:p,timeout:C,writeStream:e.writeStream,customResponse:e.customResponse,ctx:e.ctx||this.ctx};return this.agent&&(S.agent=this.agent),this.httpsAgent&&(S.httpsAgent=this.httpsAgent),S.enableProxy=!!this.options.enableProxy,S.proxy=this.options.proxy?this.options.proxy:null,{url:x,params:S}}}).call(this)}).call(this,e("buffer").Buffer)},{"../client/getReqUrl":25,"./../../../shims/crypto/crypto.js":393,"./encoder":57,"./isIP":66,"./setRegion":71,buffer:85,"copy-to":88,"core-js/modules/es.array.concat.js":241,"core-js/modules/es.array.includes.js":246,"core-js/modules/es.object.assign.js":255,"core-js/modules/es.string.includes.js":263,dateformat:299,debug:397,mime:317,path:321}],55:[function(e,t,n){"use strict";e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.entries.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js"),e("core-js/modules/es.array.includes.js"),e("core-js/modules/es.object.keys.js"),Object.defineProperty(n,"__esModule",{value:!0}),n.dataFix=void 0;var r=e("./isObject"),i=["true","TRUE","1",1],o=["false","FALSE","0",0];n.dataFix=function e(t,n,a){if(r.isObject(t)){var s=n.remove,l=void 0===s?[]:s,c=n.rename,u=void 0===c?{}:c,d=n.camel,f=void 0===d?[]:d,h=n.bool,p=void 0===h?[]:h,m=n.lowerFirst,y=void 0!==m&&m;return l.forEach(function(e){return delete t[e]}),Object.entries(u).forEach(function(e){t[e[0]]&&(t[e[1]]||(t[e[1]]=t[e[0]],delete t[e[0]]))}),f.forEach(function(e){if(t[e]){var n=e.replace(/^(.)/,function(e){return e.toLowerCase()}).replace(/-(\w)/g,function(e,t){return t.toUpperCase()});t[n]||(t[n]=t[e])}}),p.forEach(function(e){t[e]=function(e){return!!e&&(!!i.includes(e)||!o.includes(e)&&e)}(t[e])}),"function"==typeof a&&a(t),function(e,t){t&&Object.keys(e).forEach(function(t){var n=t.replace(/^\w/,function(e){return e.toLowerCase()});void 0===e[n]&&(e[n]=e[t],delete e[t])})}(t,y),e}}},{"./isObject":67,"core-js/modules/es.array.includes.js":246,"core-js/modules/es.object.entries.js":256,"core-js/modules/es.object.keys.js":257,"core-js/modules/es.regexp.exec.js":261,"core-js/modules/es.string.replace.js":266,"core-js/modules/web.dom-collections.for-each.js":296}],56:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.array.slice.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js");var i=r(e("@babel/runtime/helpers/typeof"));Object.defineProperty(n,"__esModule",{value:!0}),n.deepCopyWith=n.deepCopy=void 0;var o=e("./isBuffer");n.deepCopy=function(e){if(null===e||"object"!==(0,i.default)(e))return e;if(o.isBuffer(e))return e.slice();var t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(function(r){t[r]=n.deepCopy(e[r])}),t},n.deepCopyWith=function(e,t){return t?function e(n,r,a){var s=t(n,r,a);if(void 0!==s)return s;if(null===n||"object"!==(0,i.default)(n))return n;if(o.isBuffer(n))return n.slice();var l=Array.isArray(n)?[]:{};return Object.keys(n).forEach(function(t){l[t]=e(n[t],t,n)}),l}(e,"",null):n.deepCopy(e)}},{"./isBuffer":63,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/helpers/typeof":75,"core-js/modules/es.array.slice.js":250,"core-js/modules/es.object.keys.js":257,"core-js/modules/web.dom-collections.for-each.js":296}],57:[function(e,t,n){(function(t){(function(){"use strict";e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(n,"__esModule",{value:!0}),n.encoder=void 0,n.encoder=function(e){return"utf-8"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"utf-8")?e:t.from(e).toString("latin1")}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:85,"core-js/modules/es.object.to-string.js":258,"core-js/modules/es.regexp.to-string.js":262}],58:[function(e,t,n){"use strict";e("core-js/modules/es.array.map.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js"),Object.defineProperty(n,"__esModule",{value:!0}),n.formatInventoryConfig=void 0;var r=e("../utils/dataFix"),i=e("../utils/isObject"),o=e("../utils/isArray"),a=e("../utils/formatObjKey");function s(e){return r.dataFix(e,{bool:["IsEnabled"]},function(e){var t,n;e.prefix=e.Filter.Prefix,delete e.Filter,e.OSSBucketDestination=e.Destination.OSSBucketDestination,e.OSSBucketDestination.rolename=e.OSSBucketDestination.RoleArn.replace(/.*\//,""),delete e.OSSBucketDestination.RoleArn,e.OSSBucketDestination.bucket=e.OSSBucketDestination.Bucket.replace(/.*:::/,""),delete e.OSSBucketDestination.Bucket,delete e.Destination,e.frequency=e.Schedule.Frequency,delete e.Schedule.Frequency,(null===(t=null===e||void 0===e?void 0:e.OptionalFields)||void 0===t?void 0:t.Field)&&!o.isArray(null===(n=e.OptionalFields)||void 0===n?void 0:n.Field)&&(e.OptionalFields.Field=[e.OptionalFields.Field])}),e=a.formatObjKey(e,"firstLowerCase",{exclude:["OSSBucketDestination","SSE-OSS","SSE-KMS"]})}n.formatInventoryConfig=function(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&i.isObject(e)&&(e=[e]),e=o.isArray(e)?e.map(s):s(e)}},{"../utils/dataFix":55,"../utils/formatObjKey":59,"../utils/isArray":61,"../utils/isObject":67,"core-js/modules/es.array.map.js":249,"core-js/modules/es.regexp.exec.js":261,"core-js/modules/es.string.replace.js":266}],59:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js"),e("core-js/modules/es.array.includes.js"),e("core-js/modules/es.string.includes.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js");var i=r(e("@babel/runtime/helpers/typeof"));Object.defineProperty(n,"__esModule",{value:!0}),n.formatObjKey=void 0,n.formatObjKey=function e(t,n,r){if(null===t||"object"!==(0,i.default)(t))return t;var o;if(Array.isArray(t)){o=[];for(var a=0;a<t.length;a++)o.push(e(t[a],n,r))}else o={},Object.keys(t).forEach(function(i){o[function(e,t,n){var r;return n&&(null===(r=n.exclude)||void 0===r?void 0:r.includes(e))?e:("firstUpperCase"===t?e=e.replace(/^./,function(e){return e.toUpperCase()}):"firstLowerCase"===t&&(e=e.replace(/^./,function(e){return e.toLowerCase()})),e)}(i,n,r)]=e(t[i],n,r)});return o}},{"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/helpers/typeof":75,"core-js/modules/es.array.includes.js":246,"core-js/modules/es.object.keys.js":257,"core-js/modules/es.regexp.exec.js":261,"core-js/modules/es.string.includes.js":263,"core-js/modules/es.string.replace.js":266,"core-js/modules/web.dom-collections.for-each.js":296}],60:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getStrBytesCount=void 0,n.getStrBytesCount=function(e){for(var t=0,n=0;n<e.length;n++){var r=e.charAt(n);/^[\u00-\uff]$/.test(r)?t+=1:t+=2}return t}},{}],61:[function(e,t,n){"use strict";e("core-js/modules/es.object.to-string.js"),Object.defineProperty(n,"__esModule",{value:!0}),n.isArray=void 0,n.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{"core-js/modules/es.object.to-string.js":258}],62:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isBlob=void 0,n.isBlob=function(e){return"undefined"!=typeof Blob&&e instanceof Blob}},{}],63:[function(e,t,n){(function(e){(function(){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isBuffer=void 0,n.isBuffer=function(t){return e.isBuffer(t)}}).call(this)}).call(this,{isBuffer:e("../../../node_modules/is-buffer/index.js")})},{"../../../node_modules/is-buffer/index.js":312}],64:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isFile=void 0,n.isFile=function(e){return"undefined"!=typeof File&&e instanceof File}},{}],65:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isFunction=void 0,n.isFunction=function(e){return"function"==typeof e}},{}],66:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isIP=void 0,n.isIP=function(e){return/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/.test(e)||/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/.test(e)}},{}],67:[function(e,t,n){"use strict";e("core-js/modules/es.object.to-string.js"),Object.defineProperty(n,"__esModule",{value:!0}),n.isObject=void 0,n.isObject=function(e){return"[object Object]"===Object.prototype.toString.call(e)}},{"core-js/modules/es.object.to-string.js":258}],68:[function(e,t,n){"use strict";e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js"),Object.defineProperty(n,"__esModule",{value:!0}),n.lowercaseKeyHeader=void 0;var r=e("./isObject");n.lowercaseKeyHeader=function(e){var t={};return r.isObject(e)&&Object.keys(e).forEach(function(n){t[n.toLowerCase()]=e[n]}),t}},{"./isObject":67,"core-js/modules/es.object.keys.js":257,"core-js/modules/web.dom-collections.for-each.js":296}],69:[function(e,t,n){"use strict";e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js"),e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.array.join.js"),e("core-js/modules/es.array.map.js"),e("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(n,"__esModule",{value:!0}),n.obj2xml=void 0;var r=e("./formatObjKey");function i(e){return Object.prototype.toString.call(e).replace(/(.*? |])/g,"").toLowerCase()}n.obj2xml=function e(t,n){var o="";return n&&n.headers&&(o='<?xml version="1.0" encoding="UTF-8"?>\n'),n&&n.firstUpperCase&&(t=r.formatObjKey(t,"firstUpperCase")),"object"===i(t)?Object.keys(t).forEach(function(n){"undefined"!==i(t[n])&&"null"!==i(t[n])&&("string"===i(t[n])||"number"===i(t[n])?o+="<".concat(n,">").concat(t[n],"</").concat(n,">"):"object"===i(t[n])?o+="<".concat(n,">").concat(e(t[n]),"</").concat(n,">"):"array"===i(t[n])?o+=t[n].map(function(t){return"<".concat(n,">").concat(e(t),"</").concat(n,">")}).join(""):o+="<".concat(n,">").concat(t[n].toString(),"</").concat(n,">"))}):o+=t.toString(),o}},{"./formatObjKey":59,"core-js/modules/es.array.concat.js":241,"core-js/modules/es.array.join.js":248,"core-js/modules/es.array.map.js":249,"core-js/modules/es.object.keys.js":257,"core-js/modules/es.object.to-string.js":258,"core-js/modules/es.regexp.exec.js":261,"core-js/modules/es.regexp.to-string.js":262,"core-js/modules/es.string.replace.js":266,"core-js/modules/web.dom-collections.for-each.js":296}],70:[function(e,t,n){"use strict";e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.promise.js"),Object.defineProperty(n,"__esModule",{value:!0}),n.retry=void 0,n.retry=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=0,i=n.retryDelay,o=void 0===i?500:i,a=n.errorHandler,s=void 0===a?function(){return!0}:a;return function n(){for(var i=arguments.length,a=new Array(i),l=0;l<i;l++)a[l]=arguments[l];return new Promise(function(i,l){e.apply(void 0,a).then(function(e){r=0,i(e)}).catch(function(e){r<t&&s(e)?(r++,setTimeout(function(){i(n.apply(void 0,a))},o)):(r=0,l(e))})})}}},{"core-js/modules/es.object.to-string.js":258,"core-js/modules/es.promise.js":259}],71:[function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.setRegion=void 0;var i=r(e("url")),o=e("./checkConfigValid");n.setRegion=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];o.checkConfigValid(e,"region");var r=n?"https://":"http://",a=t?"-internal.aliyuncs.com":".aliyuncs.com";return"vpc100-oss-cn-"===e.substr(0,"vpc100-oss-cn-".length)&&(a=".aliyuncs.com"),i.default.parse(r+e+a)}},{"./checkConfigValid":51,url:404}],72:[function(e,t,n){"use strict";var r=e("@babel/runtime/helpers/interopRequireDefault"),i=r(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.keys.js"),e("core-js/modules/es.array.find.js"),e("core-js/modules/es.object.assign.js");var o=r(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(n,"__esModule",{value:!0}),n.checkCredentials=n.setSTSToken=void 0;var a=e("./formatObjKey");function s(){return(s=(0,o.default)(i.default.mark(function e(){var t,n;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.options||(this.options={}),t=new Date,!this.stsTokenFreshTime){e.next=14;break}if(!(+t-this.stsTokenFreshTime>=this.options.refreshSTSTokenInterval)){e.next=12;break}return this.stsTokenFreshTime=t,e.next=7,this.options.refreshSTSToken();case 7:n=e.sent,(n=a.formatObjKey(n,"firstLowerCase")).securityToken&&(n.stsToken=n.securityToken),l(n),Object.assign(this.options,n);case 12:e.next=15;break;case 14:this.stsTokenFreshTime=t;case 15:return e.abrupt("return",null);case 16:case"end":return e.stop()}},e,this)}))).apply(this,arguments)}function l(e){var t=Object.keys(e);["accessKeySecret","accessKeyId","stsToken"].forEach(function(e){if(!t.find(function(t){return t===e}))throw Error("refreshSTSToken must return contains ".concat(e))})}n.setSTSToken=function(){return s.apply(this,arguments)},n.checkCredentials=l},{"./formatObjKey":59,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.array.find.js":244,"core-js/modules/es.object.assign.js":255,"core-js/modules/es.object.keys.js":257}],73:[function(e,t,n){function r(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}t.exports=function(e){return function(){var t=this,n=arguments;return new Promise(function(i,o){var a=e.apply(t,n);function s(e){r(a,i,o,s,l,"next",e)}function l(e){r(a,i,o,s,l,"throw",e)}s(void 0)})}},t.exports.default=t.exports,t.exports.__esModule=!0},{}],74:[function(e,t,n){t.exports=function(e){return e&&e.__esModule?e:{default:e}},t.exports.default=t.exports,t.exports.__esModule=!0},{}],75:[function(e,t,n){function r(e){"@babel/helpers - typeof";return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(t.exports=r=function(e){return typeof e},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=r=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t.exports.default=t.exports,t.exports.__esModule=!0),r(e)}t.exports=r,t.exports.default=t.exports,t.exports.__esModule=!0},{}],76:[function(e,t,n){t.exports=e("regenerator-runtime")},{"regenerator-runtime":342}],77:[function(e,t,n){function r(){}t.exports=r,t.exports.HttpsAgent=r},{}],78:[function(e,n,r){(function(t){(function(){"use strict";var r=e("object-assign");
29
29
  /*!